@anoki/fse-ui 1.0.526 → 1.0.527

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 (255) hide show
  1. package/dist/index.cjs106.js +1 -1
  2. package/dist/index.cjs16.js +1 -1
  3. package/dist/index.cjs18.js +1 -1
  4. package/dist/index.cjs208.js +1 -1
  5. package/dist/index.cjs212.js +1 -1
  6. package/dist/index.cjs213.js +1 -1
  7. package/dist/index.cjs219.js +1 -1
  8. package/dist/index.cjs230.js +1 -1
  9. package/dist/index.cjs238.js +1 -1
  10. package/dist/index.cjs24.js +1 -1
  11. package/dist/index.cjs247.js +1 -1
  12. package/dist/index.cjs25.js +1 -1
  13. package/dist/index.cjs257.js +1 -1
  14. package/dist/index.cjs259.js +2 -2
  15. package/dist/index.cjs259.js.map +1 -1
  16. package/dist/index.cjs26.js +1 -1
  17. package/dist/index.cjs27.js +1 -1
  18. package/dist/index.cjs296.js +1 -1
  19. package/dist/index.cjs30.js +1 -1
  20. package/dist/index.cjs309.js +1 -1
  21. package/dist/index.cjs316.js +2 -2
  22. package/dist/index.cjs317.js +9 -9
  23. package/dist/index.cjs32.js +1 -1
  24. package/dist/index.cjs324.js +1 -1
  25. package/dist/index.cjs324.js.map +1 -1
  26. package/dist/index.cjs325.js +2 -0
  27. package/dist/index.cjs325.js.map +1 -0
  28. package/dist/index.cjs326.js +2 -0
  29. package/dist/index.cjs326.js.map +1 -0
  30. package/dist/index.cjs327.js +1 -1
  31. package/dist/index.cjs327.js.map +1 -1
  32. package/dist/index.cjs328.js +1 -1
  33. package/dist/index.cjs328.js.map +1 -1
  34. package/dist/index.cjs329.js +1 -1
  35. package/dist/index.cjs329.js.map +1 -1
  36. package/dist/index.cjs330.js +1 -1
  37. package/dist/index.cjs330.js.map +1 -1
  38. package/dist/index.cjs331.js +1 -1
  39. package/dist/index.cjs331.js.map +1 -1
  40. package/dist/index.cjs334.js +1 -1
  41. package/dist/index.cjs334.js.map +1 -1
  42. package/dist/index.cjs335.js +1 -1
  43. package/dist/index.cjs335.js.map +1 -1
  44. package/dist/index.cjs336.js +1 -1
  45. package/dist/index.cjs336.js.map +1 -1
  46. package/dist/index.cjs337.js +1 -1
  47. package/dist/index.cjs337.js.map +1 -1
  48. package/dist/index.cjs338.js +1 -1
  49. package/dist/index.cjs338.js.map +1 -1
  50. package/dist/index.cjs339.js +1 -1
  51. package/dist/index.cjs339.js.map +1 -1
  52. package/dist/index.cjs340.js +1 -1
  53. package/dist/index.cjs340.js.map +1 -1
  54. package/dist/index.cjs341.js +1 -1
  55. package/dist/index.cjs341.js.map +1 -1
  56. package/dist/index.cjs342.js +1 -1
  57. package/dist/index.cjs342.js.map +1 -1
  58. package/dist/index.cjs343.js +1 -1
  59. package/dist/index.cjs343.js.map +1 -1
  60. package/dist/index.cjs344.js +1 -1
  61. package/dist/index.cjs344.js.map +1 -1
  62. package/dist/index.cjs345.js +1 -1
  63. package/dist/index.cjs345.js.map +1 -1
  64. package/dist/index.cjs346.js +1 -1
  65. package/dist/index.cjs346.js.map +1 -1
  66. package/dist/index.cjs347.js +1 -1
  67. package/dist/index.cjs347.js.map +1 -1
  68. package/dist/index.cjs348.js +1 -1
  69. package/dist/index.cjs348.js.map +1 -1
  70. package/dist/index.cjs349.js +1 -1
  71. package/dist/index.cjs349.js.map +1 -1
  72. package/dist/index.cjs35.js +1 -1
  73. package/dist/index.cjs350.js +1 -1
  74. package/dist/index.cjs351.js +1 -1
  75. package/dist/index.cjs352.js +1 -1
  76. package/dist/index.cjs353.js +1 -1
  77. package/dist/{index.cjs362.js → index.cjs365.js} +1 -1
  78. package/dist/{index.cjs362.js.map → index.cjs365.js.map} +1 -1
  79. package/dist/{index.cjs363.js → index.cjs366.js} +2 -2
  80. package/dist/{index.cjs363.js.map → index.cjs366.js.map} +1 -1
  81. package/dist/{index.cjs364.js → index.cjs367.js} +1 -1
  82. package/dist/{index.cjs364.js.map → index.cjs367.js.map} +1 -1
  83. package/dist/index.cjs37.js +1 -1
  84. package/dist/index.cjs373.js +1 -1
  85. package/dist/index.cjs375.js +1 -1
  86. package/dist/index.cjs376.js +1 -1
  87. package/dist/index.cjs377.js +1 -1
  88. package/dist/index.cjs377.js.map +1 -1
  89. package/dist/index.cjs379.js +1 -1
  90. package/dist/index.cjs380.js +38 -1
  91. package/dist/index.cjs380.js.map +1 -1
  92. package/dist/index.cjs381.js +1 -38
  93. package/dist/index.cjs381.js.map +1 -1
  94. package/dist/index.cjs382.js +1 -1
  95. package/dist/index.cjs382.js.map +1 -1
  96. package/dist/index.cjs383.js +1 -1
  97. package/dist/index.cjs383.js.map +1 -1
  98. package/dist/index.cjs384.js +1 -1
  99. package/dist/index.cjs384.js.map +1 -1
  100. package/dist/index.cjs387.js +1 -1
  101. package/dist/index.cjs387.js.map +1 -1
  102. package/dist/index.cjs388.js +1 -1
  103. package/dist/index.cjs388.js.map +1 -1
  104. package/dist/index.cjs389.js +1 -1
  105. package/dist/index.cjs389.js.map +1 -1
  106. package/dist/index.cjs390.js +1 -1
  107. package/dist/index.cjs390.js.map +1 -1
  108. package/dist/index.cjs394.js +1 -1
  109. package/dist/index.cjs394.js.map +1 -1
  110. package/dist/index.cjs397.js +1 -1
  111. package/dist/index.cjs397.js.map +1 -1
  112. package/dist/index.cjs399.js +1 -1
  113. package/dist/index.cjs400.js +1 -1
  114. package/dist/index.cjs403.js +1 -1
  115. package/dist/index.cjs403.js.map +1 -1
  116. package/dist/index.cjs405.js +1 -1
  117. package/dist/index.cjs47.js +1 -1
  118. package/dist/index.cjs68.js +1 -1
  119. package/dist/index.cjs69.js +1 -1
  120. package/dist/index.es106.js +17 -17
  121. package/dist/index.es16.js +18 -18
  122. package/dist/index.es161.js +1 -1
  123. package/dist/index.es163.js +2 -2
  124. package/dist/index.es164.js +24 -24
  125. package/dist/index.es171.js +1 -1
  126. package/dist/index.es18.js +22 -22
  127. package/dist/index.es208.js +22 -22
  128. package/dist/index.es212.js +25 -25
  129. package/dist/index.es213.js +10 -10
  130. package/dist/index.es219.js +8 -8
  131. package/dist/index.es230.js +14 -14
  132. package/dist/index.es238.js +1 -1
  133. package/dist/index.es24.js +4 -4
  134. package/dist/index.es247.js +1 -1
  135. package/dist/index.es25.js +38 -38
  136. package/dist/index.es257.js +32 -32
  137. package/dist/index.es259.js +22 -22
  138. package/dist/index.es259.js.map +1 -1
  139. package/dist/index.es26.js +21 -21
  140. package/dist/index.es27.js +2 -2
  141. package/dist/index.es296.js +13 -13
  142. package/dist/index.es30.js +6 -6
  143. package/dist/index.es309.js +3 -3
  144. package/dist/index.es316.js +20 -20
  145. package/dist/index.es317.js +91 -91
  146. package/dist/index.es32.js +4 -4
  147. package/dist/index.es324.js +7 -15
  148. package/dist/index.es324.js.map +1 -1
  149. package/dist/index.es325.js +30 -0
  150. package/dist/index.es325.js.map +1 -0
  151. package/dist/index.es326.js +71 -0
  152. package/dist/index.es326.js.map +1 -0
  153. package/dist/index.es327.js +29 -6
  154. package/dist/index.es327.js.map +1 -1
  155. package/dist/index.es328.js +32 -26
  156. package/dist/index.es328.js.map +1 -1
  157. package/dist/index.es329.js +617 -63
  158. package/dist/index.es329.js.map +1 -1
  159. package/dist/index.es330.js +10 -29
  160. package/dist/index.es330.js.map +1 -1
  161. package/dist/index.es331.js +15 -33
  162. package/dist/index.es331.js.map +1 -1
  163. package/dist/index.es334.js +10 -5
  164. package/dist/index.es334.js.map +1 -1
  165. package/dist/index.es335.js +52 -24
  166. package/dist/index.es335.js.map +1 -1
  167. package/dist/index.es336.js +43 -66
  168. package/dist/index.es336.js.map +1 -1
  169. package/dist/index.es337.js +7 -10
  170. package/dist/index.es337.js.map +1 -1
  171. package/dist/index.es338.js +120 -48
  172. package/dist/index.es338.js.map +1 -1
  173. package/dist/index.es339.js +14 -45
  174. package/dist/index.es339.js.map +1 -1
  175. package/dist/index.es340.js +134 -7
  176. package/dist/index.es340.js.map +1 -1
  177. package/dist/index.es341.js +206 -113
  178. package/dist/index.es341.js.map +1 -1
  179. package/dist/index.es342.js +13 -14
  180. package/dist/index.es342.js.map +1 -1
  181. package/dist/index.es343.js +60 -126
  182. package/dist/index.es343.js.map +1 -1
  183. package/dist/index.es344.js +163 -203
  184. package/dist/index.es344.js.map +1 -1
  185. package/dist/index.es345.js +50 -14
  186. package/dist/index.es345.js.map +1 -1
  187. package/dist/index.es346.js +9 -178
  188. package/dist/index.es346.js.map +1 -1
  189. package/dist/index.es347.js +3 -49
  190. package/dist/index.es347.js.map +1 -1
  191. package/dist/index.es348.js +6 -9
  192. package/dist/index.es348.js.map +1 -1
  193. package/dist/index.es349.js +25 -4
  194. package/dist/index.es349.js.map +1 -1
  195. package/dist/index.es35.js +14 -14
  196. package/dist/index.es350.js +1 -1
  197. package/dist/index.es351.js +8 -8
  198. package/dist/index.es352.js +1 -1
  199. package/dist/index.es353.js +126 -126
  200. package/dist/{index.es362.js → index.es365.js} +1 -1
  201. package/dist/{index.es362.js.map → index.es365.js.map} +1 -1
  202. package/dist/{index.es363.js → index.es366.js} +12 -12
  203. package/dist/{index.es363.js.map → index.es366.js.map} +1 -1
  204. package/dist/{index.es364.js → index.es367.js} +1 -1
  205. package/dist/{index.es364.js.map → index.es367.js.map} +1 -1
  206. package/dist/index.es37.js +6 -6
  207. package/dist/index.es373.js +1 -1
  208. package/dist/index.es375.js +5 -5
  209. package/dist/index.es376.js +1 -1
  210. package/dist/index.es377.js +97 -97
  211. package/dist/index.es378.js +6 -6
  212. package/dist/index.es379.js +42 -42
  213. package/dist/index.es380.js +69 -65
  214. package/dist/index.es380.js.map +1 -1
  215. package/dist/index.es381.js +8 -68
  216. package/dist/index.es381.js.map +1 -1
  217. package/dist/index.es382.js +14 -9
  218. package/dist/index.es382.js.map +1 -1
  219. package/dist/index.es383.js +62 -14
  220. package/dist/index.es383.js.map +1 -1
  221. package/dist/index.es384.js +64 -61
  222. package/dist/index.es384.js.map +1 -1
  223. package/dist/index.es387.js +11 -21
  224. package/dist/index.es387.js.map +1 -1
  225. package/dist/index.es388.js +26 -11
  226. package/dist/index.es388.js.map +1 -1
  227. package/dist/index.es389.js +4 -27
  228. package/dist/index.es389.js.map +1 -1
  229. package/dist/index.es390.js +22 -4
  230. package/dist/index.es390.js.map +1 -1
  231. package/dist/index.es394.js +2 -2
  232. package/dist/index.es394.js.map +1 -1
  233. package/dist/index.es397.js +34 -34
  234. package/dist/index.es397.js.map +1 -1
  235. package/dist/index.es399.js +2 -2
  236. package/dist/index.es399.js.map +1 -1
  237. package/dist/index.es400.js +8 -8
  238. package/dist/index.es403.js +2 -2
  239. package/dist/index.es403.js.map +1 -1
  240. package/dist/index.es47.js +2 -2
  241. package/dist/index.es5.js +4 -4
  242. package/dist/index.es65.js +44 -44
  243. package/dist/index.es68.js +25 -25
  244. package/dist/index.es69.js +23 -23
  245. package/dist/index.es98.js +12 -12
  246. package/package.json +1 -1
  247. package/dist/index.cjs332.js +0 -2
  248. package/dist/index.cjs332.js.map +0 -1
  249. package/dist/index.cjs333.js +0 -2
  250. package/dist/index.cjs333.js.map +0 -1
  251. package/dist/index.es332.js +0 -625
  252. package/dist/index.es332.js.map +0 -1
  253. package/dist/index.es333.js +0 -14
  254. package/dist/index.es333.js.map +0 -1
  255. /package/dist/components/ui/{ConsentModal/ConsentModalContent/ConsentModalContent.css → DoctorConfirmModal/DoctorConfirmModalContent/DoctorConfirmModalContent.css} +0 -0
@@ -1,4 +1,4 @@
1
- import { __exports as e } from "./index.es321.js";
1
+ import { __exports as t } from "./index.es321.js";
2
2
  /**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.js
@@ -8,29 +8,29 @@ import { __exports as e } from "./index.es321.js";
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
10
  */
11
- var s;
12
- function a() {
13
- if (s) return e;
14
- s = 1;
15
- var i = Symbol.for("react.transitional.element"), _ = Symbol.for("react.fragment");
16
- function o(l, r, t) {
17
- var u = null;
18
- if (t !== void 0 && (u = "" + t), r.key !== void 0 && (u = "" + r.key), "key" in r) {
19
- t = {};
20
- for (var n in r)
21
- n !== "key" && (t[n] = r[n]);
22
- } else t = r;
23
- return r = t.ref, {
24
- $$typeof: i,
25
- type: l,
26
- key: u,
11
+ var i;
12
+ function R() {
13
+ if (i) return t;
14
+ i = 1;
15
+ var d = Symbol.for("react.transitional.element"), o = Symbol.for("react.fragment");
16
+ function s(_, r, e) {
17
+ var n = null;
18
+ if (e !== void 0 && (n = "" + e), r.key !== void 0 && (n = "" + r.key), "key" in r) {
19
+ e = {};
20
+ for (var u in r)
21
+ u !== "key" && (e[u] = r[u]);
22
+ } else e = r;
23
+ return r = e.ref, {
24
+ $$typeof: d,
25
+ type: _,
26
+ key: n,
27
27
  ref: r !== void 0 ? r : null,
28
- props: t
28
+ props: e
29
29
  };
30
30
  }
31
- return e.Fragment = _, e.jsx = o, e.jsxs = o, e;
31
+ return t.Fragment = o, t.jsx = s, t.jsxs = s, t;
32
32
  }
33
33
  export {
34
- a as __require
34
+ R as __require
35
35
  };
36
36
  //# sourceMappingURL=index.es316.js.map
@@ -20,7 +20,7 @@ function he() {
20
20
  switch (e) {
21
21
  case j:
22
22
  return "Fragment";
23
- case de:
23
+ case ge:
24
24
  return "Portal";
25
25
  case K:
26
26
  return "Profiler";
@@ -65,8 +65,8 @@ function he() {
65
65
  }
66
66
  if (r) {
67
67
  r = console;
68
- var o = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
69
- return o.call(
68
+ var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
69
+ return t.call(
70
70
  r,
71
71
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
72
72
  n
@@ -76,7 +76,7 @@ function he() {
76
76
  function $() {
77
77
  }
78
78
  function le() {
79
- if (g === 0) {
79
+ if (v === 0) {
80
80
  Z = console.log, F = console.info, I = console.warn, L = console.error, Q = console.group, D = console.groupCollapsed, ee = console.groupEnd;
81
81
  var e = {
82
82
  configurable: !0,
@@ -94,22 +94,22 @@ function he() {
94
94
  groupEnd: e
95
95
  });
96
96
  }
97
- g++;
97
+ v++;
98
98
  }
99
99
  function fe() {
100
- if (g--, g === 0) {
100
+ if (v--, v === 0) {
101
101
  var e = { configurable: !0, enumerable: !0, writable: !0 };
102
102
  Object.defineProperties(console, {
103
- log: v({}, e, { value: Z }),
104
- info: v({}, e, { value: F }),
105
- warn: v({}, e, { value: I }),
106
- error: v({}, e, { value: L }),
107
- group: v({}, e, { value: Q }),
108
- groupCollapsed: v({}, e, { value: D }),
109
- groupEnd: v({}, e, { value: ee })
103
+ log: E({}, e, { value: Z }),
104
+ info: E({}, e, { value: F }),
105
+ warn: E({}, e, { value: I }),
106
+ error: E({}, e, { value: L }),
107
+ group: E({}, e, { value: Q }),
108
+ groupCollapsed: E({}, e, { value: D }),
109
+ groupEnd: E({}, e, { value: ee })
110
110
  });
111
111
  }
112
- 0 > g && console.error(
112
+ 0 > v && console.error(
113
113
  "disabledDepth fell below zero. This is a bug in React. Please file an issue."
114
114
  );
115
115
  }
@@ -117,21 +117,21 @@ function he() {
117
117
  if (x === void 0)
118
118
  try {
119
119
  throw Error();
120
- } catch (o) {
121
- var r = o.stack.trim().match(/\n( *(at )?)/);
122
- x = r && r[1] || "", re = -1 < o.stack.indexOf(`
123
- at`) ? " (<anonymous>)" : -1 < o.stack.indexOf("@") ? "@unknown:0:0" : "";
120
+ } catch (t) {
121
+ var r = t.stack.trim().match(/\n( *(at )?)/);
122
+ x = r && r[1] || "", re = -1 < t.stack.indexOf(`
123
+ at`) ? " (<anonymous>)" : -1 < t.stack.indexOf("@") ? "@unknown:0:0" : "";
124
124
  }
125
125
  return `
126
126
  ` + x + e + re;
127
127
  }
128
128
  function U(e, r) {
129
129
  if (!e || P) return "";
130
- var o = Y.get(e);
131
- if (o !== void 0) return o;
132
- P = !0, o = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
130
+ var t = Y.get(e);
131
+ if (t !== void 0) return t;
132
+ P = !0, t = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
133
133
  var n = null;
134
- n = E.H, E.H = null, le();
134
+ n = d.H, d.H = null, le();
135
135
  try {
136
136
  var u = {
137
137
  DetermineComponentFrameRoot: function() {
@@ -185,27 +185,27 @@ function he() {
185
185
  "name",
186
186
  { value: "DetermineComponentFrameRoot" }
187
187
  );
188
- var t = u.DetermineComponentFrameRoot(), f = t[0], d = t[1];
189
- if (f && d) {
188
+ var o = u.DetermineComponentFrameRoot(), f = o[0], g = o[1];
189
+ if (f && g) {
190
190
  var l = f.split(`
191
- `), b = d.split(`
191
+ `), b = g.split(`
192
192
  `);
193
- for (t = a = 0; a < l.length && !l[a].includes(
193
+ for (o = a = 0; a < l.length && !l[a].includes(
194
194
  "DetermineComponentFrameRoot"
195
195
  ); )
196
196
  a++;
197
- for (; t < b.length && !b[t].includes(
197
+ for (; o < b.length && !b[o].includes(
198
198
  "DetermineComponentFrameRoot"
199
199
  ); )
200
- t++;
201
- if (a === l.length || t === b.length)
202
- for (a = l.length - 1, t = b.length - 1; 1 <= a && 0 <= t && l[a] !== b[t]; )
203
- t--;
204
- for (; 1 <= a && 0 <= t; a--, t--)
205
- if (l[a] !== b[t]) {
206
- if (a !== 1 || t !== 1)
200
+ o++;
201
+ if (a === l.length || o === b.length)
202
+ for (a = l.length - 1, o = b.length - 1; 1 <= a && 0 <= o && l[a] !== b[o]; )
203
+ o--;
204
+ for (; 1 <= a && 0 <= o; a--, o--)
205
+ if (l[a] !== b[o]) {
206
+ if (a !== 1 || o !== 1)
207
207
  do
208
- if (a--, t--, 0 > t || l[a] !== b[t]) {
208
+ if (a--, o--, 0 > o || l[a] !== b[o]) {
209
209
  var m = `
210
210
  ` + l[a].replace(
211
211
  " at new ",
@@ -213,12 +213,12 @@ function he() {
213
213
  );
214
214
  return e.displayName && m.includes("<anonymous>") && (m = m.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, m), m;
215
215
  }
216
- while (1 <= a && 0 <= t);
216
+ while (1 <= a && 0 <= o);
217
217
  break;
218
218
  }
219
219
  }
220
220
  } finally {
221
- P = !1, E.H = n, fe(), Error.prepareStackTrace = o;
221
+ P = !1, d.H = n, fe(), Error.prepareStackTrace = t;
222
222
  }
223
223
  return l = (l = e ? e.displayName || e.name : "") ? y(l) : "", typeof e == "function" && Y.set(e, l), l;
224
224
  }
@@ -254,7 +254,7 @@ function he() {
254
254
  return "";
255
255
  }
256
256
  function C() {
257
- var e = E.A;
257
+ var e = d.A;
258
258
  return e === null ? null : e.getOwner();
259
259
  }
260
260
  function ce(e) {
@@ -265,31 +265,31 @@ function he() {
265
265
  return e.key !== void 0;
266
266
  }
267
267
  function se(e, r) {
268
- function o() {
269
- oe || (oe = !0, console.error(
268
+ function t() {
269
+ te || (te = !0, console.error(
270
270
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
271
271
  r
272
272
  ));
273
273
  }
274
- o.isReactWarning = !0, Object.defineProperty(e, "key", {
275
- get: o,
274
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
275
+ get: t,
276
276
  configurable: !0
277
277
  });
278
278
  }
279
279
  function ie() {
280
280
  var e = s(this.type);
281
- return te[e] || (te[e] = !0, console.error(
281
+ return oe[e] || (oe[e] = !0, console.error(
282
282
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
283
283
  )), e = this.props.ref, e !== void 0 ? e : null;
284
284
  }
285
- function Ee(e, r, o, n, u, a) {
286
- return o = a.ref, e = {
285
+ function de(e, r, t, n, u, a) {
286
+ return t = a.ref, e = {
287
287
  $$typeof: O,
288
288
  type: e,
289
289
  key: r,
290
290
  props: a,
291
291
  _owner: u
292
- }, (o !== void 0 ? o : null) !== null ? Object.defineProperty(e, "ref", {
292
+ }, (t !== void 0 ? t : null) !== null ? Object.defineProperty(e, "ref", {
293
293
  enumerable: !1,
294
294
  get: ie
295
295
  }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
@@ -304,32 +304,32 @@ function he() {
304
304
  value: null
305
305
  }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
306
306
  }
307
- function z(e, r, o, n, u, a) {
308
- if (typeof e == "string" || typeof e == "function" || e === j || e === K || e === H || e === A || e === R || e === ge || typeof e == "object" && e !== null && (e.$$typeof === p || e.$$typeof === k || e.$$typeof === q || e.$$typeof === X || e.$$typeof === S || e.$$typeof === _e || e.getModuleId !== void 0)) {
309
- var t = r.children;
310
- if (t !== void 0)
307
+ function z(e, r, t, n, u, a) {
308
+ if (typeof e == "string" || typeof e == "function" || e === j || e === K || e === H || e === A || e === R || e === ve || typeof e == "object" && e !== null && (e.$$typeof === p || e.$$typeof === k || e.$$typeof === q || e.$$typeof === X || e.$$typeof === S || e.$$typeof === _e || e.getModuleId !== void 0)) {
309
+ var o = r.children;
310
+ if (o !== void 0)
311
311
  if (n)
312
- if (N(t)) {
313
- for (n = 0; n < t.length; n++)
314
- V(t[n], e);
315
- Object.freeze && Object.freeze(t);
312
+ if (N(o)) {
313
+ for (n = 0; n < o.length; n++)
314
+ V(o[n], e);
315
+ Object.freeze && Object.freeze(o);
316
316
  } else
317
317
  console.error(
318
318
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
319
319
  );
320
- else V(t, e);
320
+ else V(o, e);
321
321
  } else
322
- t = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (t += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? n = "null" : N(e) ? n = "array" : e !== void 0 && e.$$typeof === O ? (n = "<" + (s(e.type) || "Unknown") + " />", t = " Did you accidentally export a JSX literal instead of a component?") : n = typeof e, console.error(
322
+ o = "", (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), e === null ? n = "null" : N(e) ? n = "array" : e !== void 0 && e.$$typeof === O ? (n = "<" + (s(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : n = typeof e, console.error(
323
323
  "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
324
324
  n,
325
- t
325
+ o
326
326
  );
327
327
  if (J.call(r, "key")) {
328
- t = s(e);
328
+ o = s(e);
329
329
  var f = Object.keys(r).filter(function(l) {
330
330
  return l !== "key";
331
331
  });
332
- n = 0 < f.length ? "{key: someKey, " + f.join(": ..., ") + ": ...}" : "{key: someKey}", ne[t + n] || (f = 0 < f.length ? "{" + f.join(": ..., ") + ": ...}" : "{}", console.error(
332
+ n = 0 < f.length ? "{key: someKey, " + f.join(": ..., ") + ": ...}" : "{key: someKey}", ne[o + n] || (f = 0 < f.length ? "{" + f.join(": ..., ") + ": ...}" : "{}", console.error(
333
333
  `A props object containing a "key" prop is being spread into JSX:
334
334
  let props = %s;
335
335
  <%s {...props} />
@@ -337,32 +337,32 @@ React keys must be passed directly to JSX without using spread:
337
337
  let props = %s;
338
338
  <%s key={someKey} {...props} />`,
339
339
  n,
340
- t,
340
+ o,
341
341
  f,
342
- t
343
- ), ne[t + n] = !0);
342
+ o
343
+ ), ne[o + n] = !0);
344
344
  }
345
- if (t = null, o !== void 0 && (W(o), t = "" + o), ce(r) && (W(r.key), t = "" + r.key), "key" in r) {
346
- o = {};
347
- for (var d in r)
348
- d !== "key" && (o[d] = r[d]);
349
- } else o = r;
350
- return t && se(
351
- o,
345
+ if (o = null, t !== void 0 && (W(t), o = "" + t), ce(r) && (W(r.key), o = "" + r.key), "key" in r) {
346
+ t = {};
347
+ for (var g in r)
348
+ g !== "key" && (t[g] = r[g]);
349
+ } else t = r;
350
+ return o && se(
351
+ t,
352
352
  typeof e == "function" ? e.displayName || e.name || "Unknown" : e
353
- ), Ee(e, t, a, u, C(), o);
353
+ ), de(e, o, a, u, C(), t);
354
354
  }
355
355
  function V(e, r) {
356
356
  if (typeof e == "object" && e && e.$$typeof !== ye) {
357
357
  if (N(e))
358
- for (var o = 0; o < e.length; o++) {
359
- var n = e[o];
358
+ for (var t = 0; t < e.length; t++) {
359
+ var n = e[t];
360
360
  h(n) && G(n, r);
361
361
  }
362
362
  else if (h(e))
363
363
  e._store && (e._store.validated = 1);
364
- else if (e === null || typeof e != "object" ? o = null : (o = B && e[B] || e["@@iterator"], o = typeof o == "function" ? o : null), typeof o == "function" && o !== e.entries && (o = o.call(e), o !== e))
365
- for (; !(e = o.next()).done; )
364
+ else if (e === null || typeof e != "object" ? t = null : (t = B && e[B] || e["@@iterator"], t = typeof t == "function" ? t : null), typeof t == "function" && t !== e.entries && (t = t.call(e), t !== e))
365
+ for (; !(e = t.next()).done; )
366
366
  h(e.value) && G(e.value, r);
367
367
  }
368
368
  }
@@ -370,36 +370,36 @@ React keys must be passed directly to JSX without using spread:
370
370
  return typeof e == "object" && e !== null && e.$$typeof === O;
371
371
  }
372
372
  function G(e, r) {
373
- if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, r = ve(r), !ae[r])) {
373
+ if (e._store && !e._store.validated && e.key == null && (e._store.validated = 1, r = Ee(r), !ae[r])) {
374
374
  ae[r] = !0;
375
- var o = "";
376
- e && e._owner != null && e._owner !== C() && (o = null, typeof e._owner.tag == "number" ? o = s(e._owner.type) : typeof e._owner.name == "string" && (o = e._owner.name), o = " It was passed a child from " + o + ".");
377
- var n = E.getCurrentStack;
378
- E.getCurrentStack = function() {
375
+ var t = "";
376
+ e && e._owner != null && e._owner !== C() && (t = null, typeof e._owner.tag == "number" ? t = s(e._owner.type) : typeof e._owner.name == "string" && (t = e._owner.name), t = " It was passed a child from " + t + ".");
377
+ var n = d.getCurrentStack;
378
+ d.getCurrentStack = function() {
379
379
  var u = T(e.type);
380
380
  return n && (u += n() || ""), u;
381
381
  }, console.error(
382
382
  'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
383
383
  r,
384
- o
385
- ), E.getCurrentStack = n;
384
+ t
385
+ ), d.getCurrentStack = n;
386
386
  }
387
387
  }
388
- function ve(e) {
389
- var r = "", o = C();
390
- return o && (o = s(o.type)) && (r = `
388
+ function Ee(e) {
389
+ var r = "", t = C();
390
+ return t && (t = s(t.type)) && (r = `
391
391
 
392
- Check the render method of \`` + o + "`."), r || (e = s(e)) && (r = `
392
+ Check the render method of \`` + t + "`."), r || (e = s(e)) && (r = `
393
393
 
394
394
  Check the top-level render call using <` + e + ">."), r;
395
395
  }
396
- var be = we, O = Symbol.for("react.transitional.element"), de = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), H = Symbol.for("react.strict_mode"), K = Symbol.for("react.profiler"), X = Symbol.for("react.consumer"), q = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), ge = Symbol.for("react.offscreen"), B = Symbol.iterator, me = Symbol.for("react.client.reference"), E = be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, v = Object.assign, _e = Symbol.for("react.client.reference"), N = Array.isArray, g = 0, Z, F, I, L, Q, D, ee;
396
+ var be = we, O = Symbol.for("react.transitional.element"), ge = Symbol.for("react.portal"), j = Symbol.for("react.fragment"), H = Symbol.for("react.strict_mode"), K = Symbol.for("react.profiler"), X = Symbol.for("react.consumer"), q = Symbol.for("react.context"), S = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), k = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), ve = Symbol.for("react.offscreen"), B = Symbol.iterator, me = Symbol.for("react.client.reference"), d = be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, E = Object.assign, _e = Symbol.for("react.client.reference"), N = Array.isArray, v = 0, Z, F, I, L, Q, D, ee;
397
397
  $.__reactDisabledLog = !0;
398
- var x, re, P = !1, Y = new (typeof WeakMap == "function" ? WeakMap : Map)(), ye = Symbol.for("react.client.reference"), oe, te = {}, ne = {}, ae = {};
399
- _.Fragment = j, _.jsx = function(e, r, o, n, u) {
400
- return z(e, r, o, !1, n, u);
401
- }, _.jsxs = function(e, r, o, n, u) {
402
- return z(e, r, o, !0, n, u);
398
+ var x, re, P = !1, Y = new (typeof WeakMap == "function" ? WeakMap : Map)(), ye = Symbol.for("react.client.reference"), te, oe = {}, ne = {}, ae = {};
399
+ _.Fragment = j, _.jsx = function(e, r, t, n, u) {
400
+ return z(e, r, t, !1, n, u);
401
+ }, _.jsxs = function(e, r, t, n, u) {
402
+ return z(e, r, t, !0, n, u);
403
403
  };
404
404
  }(), _);
405
405
  }
@@ -2,12 +2,12 @@ import { j as r } from "./index.es180.js";
2
2
  import { clsx as n } from "./index.es182.js";
3
3
  import './components/ui/SupportBanner/SupportBanner.css';/* empty css */
4
4
  import { useMemo as h } from "react";
5
- import { Attachment as g } from "./index.es150.js";
6
- import { ArrowLink as w } from "./index.es35.js";
5
+ import { ArrowLink as g } from "./index.es35.js";
6
+ import { Attachment as w } from "./index.es150.js";
7
7
  import { Col as A } from "./index.es10.js";
8
8
  import { Button as C } from "./index.es25.js";
9
9
  const b = {
10
- link: (s, a) => /* @__PURE__ */ r.jsx(w, { href: a, children: s }),
10
+ link: (s, a) => /* @__PURE__ */ r.jsx(g, { href: a, children: s }),
11
11
  button: (s) => /* @__PURE__ */ r.jsx("button", { className: "button-style", children: s }),
12
12
  outlineButton: (s, a, l, u) => /* @__PURE__ */ r.jsxs(
13
13
  C,
@@ -19,7 +19,7 @@ const b = {
19
19
  border: "primary",
20
20
  onClick: u,
21
21
  children: [
22
- l && /* @__PURE__ */ r.jsx(g, { className: "mr-x8" }),
22
+ l && /* @__PURE__ */ r.jsx(w, { className: "mr-x8" }),
23
23
  /* @__PURE__ */ r.jsx("p", { className: "fs-6 fw-bold", children: s })
24
24
  ]
25
25
  }
@@ -1,18 +1,10 @@
1
- import { useEffect as l } from "react";
2
- const f = (t, n) => {
3
- l(() => {
4
- if (!n || !t.current) return;
5
- const o = t.current.querySelectorAll(
6
- 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
7
- ), c = o[0], r = o[o.length - 1], s = (e) => {
8
- e.key === "Tab" && (e.shiftKey ? document.activeElement === c && (r.focus(), e.preventDefault()) : document.activeElement === r && (c.focus(), e.preventDefault()));
9
- }, u = document.activeElement;
10
- return c.focus(), document.addEventListener("keydown", s), () => {
11
- document.removeEventListener("keydown", s), n && (u == null || u.focus());
12
- };
13
- }, [n, t]);
14
- };
1
+ function h(f, c, { checkForDefaultPrevented: p = !0 } = {}) {
2
+ return function(s) {
3
+ if (f == null || f(s), p === !1 || !s.defaultPrevented)
4
+ return c == null ? void 0 : c(s);
5
+ };
6
+ }
15
7
  export {
16
- f as useFocusTrap
8
+ h as composeEventHandlers
17
9
  };
18
10
  //# sourceMappingURL=index.es324.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es324.js","sources":["../src/hooks/useFocusTrap.ts"],"sourcesContent":["import { useEffect } from \"react\";\n\nexport const useFocusTrap = (\n ref: React.RefObject<HTMLElement | null>,\n isActive: boolean,\n) => {\n useEffect(() => {\n if (!isActive || !ref.current) return;\n\n const focusableElements = ref.current.querySelectorAll(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])',\n );\n const firstFocusableElement = focusableElements[0] as HTMLElement;\n const lastFocusableElement = focusableElements[\n focusableElements.length - 1\n ] as HTMLElement;\n\n const handleKeyDown = (e: KeyboardEvent) => {\n if (e.key !== \"Tab\") return;\n\n if (e.shiftKey) {\n if (document.activeElement === firstFocusableElement) {\n lastFocusableElement.focus();\n e.preventDefault();\n }\n } else {\n if (document.activeElement === lastFocusableElement) {\n firstFocusableElement.focus();\n e.preventDefault();\n }\n }\n };\n\n const previousActiveElement = document.activeElement as HTMLElement;\n\n firstFocusableElement.focus();\n\n document.addEventListener(\"keydown\", handleKeyDown);\n\n return () => {\n document.removeEventListener(\"keydown\", handleKeyDown);\n\n if (isActive) {\n previousActiveElement?.focus();\n }\n };\n }, [isActive, ref]);\n};\n"],"names":["useFocusTrap","ref","isActive","useEffect","focusableElements","firstFocusableElement","lastFocusableElement","handleKeyDown","previousActiveElement"],"mappings":";AAEa,MAAAA,IAAe,CAC1BC,GACAC,MACG;AACH,EAAAC,EAAU,MAAM;AACd,QAAI,CAACD,KAAY,CAACD,EAAI,QAAS;AAEzB,UAAAG,IAAoBH,EAAI,QAAQ;AAAA,MACpC;AAAA,IACF,GACMI,IAAwBD,EAAkB,CAAC,GAC3CE,IAAuBF,EAC3BA,EAAkB,SAAS,CAC7B,GAEMG,IAAgB,CAAC,MAAqB;AACtC,MAAA,EAAE,QAAQ,UAEV,EAAE,WACA,SAAS,kBAAkBF,MAC7BC,EAAqB,MAAM,GAC3B,EAAE,eAAe,KAGf,SAAS,kBAAkBA,MAC7BD,EAAsB,MAAM,GAC5B,EAAE,eAAe;AAAA,IAGvB,GAEMG,IAAwB,SAAS;AAEvC,WAAAH,EAAsB,MAAM,GAEnB,SAAA,iBAAiB,WAAWE,CAAa,GAE3C,MAAM;AACF,eAAA,oBAAoB,WAAWA,CAAa,GAEjDL,MACFM,KAAA,QAAAA,EAAuB;AAAA,IAE3B;AAAA,EAAA,GACC,CAACN,GAAUD,CAAG,CAAC;AACpB;"}
1
+ {"version":3,"file":"index.es324.js","sources":["../node_modules/@radix-ui/primitive/dist/index.mjs"],"sourcesContent":["// packages/core/primitive/src/primitive.tsx\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nexport {\n composeEventHandlers\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["composeEventHandlers","originalEventHandler","ourEventHandler","checkForDefaultPrevented","event"],"mappings":"AACA,SAASA,EAAqBC,GAAsBC,GAAiB,EAAE,0BAAAC,IAA2B,GAAM,IAAG,IAAI;AAC7G,SAAO,SAAqBC,GAAO;AAEjC,QADAH,KAAA,QAAAA,EAAuBG,IACnBD,MAA6B,MAAS,CAACC,EAAM;AAC/C,aAAOF,KAAA,gBAAAA,EAAkBE;AAAA,EAE5B;AACH;","x_google_ignoreList":[0]}
@@ -0,0 +1,30 @@
1
+ import * as l from "react";
2
+ function f(n, u) {
3
+ if (typeof n == "function")
4
+ return n(u);
5
+ n != null && (n.current = u);
6
+ }
7
+ function i(...n) {
8
+ return (u) => {
9
+ let o = !1;
10
+ const c = n.map((e) => {
11
+ const t = f(e, u);
12
+ return !o && typeof t == "function" && (o = !0), t;
13
+ });
14
+ if (o)
15
+ return () => {
16
+ for (let e = 0; e < c.length; e++) {
17
+ const t = c[e];
18
+ typeof t == "function" ? t() : f(n[e], null);
19
+ }
20
+ };
21
+ };
22
+ }
23
+ function s(...n) {
24
+ return l.useCallback(i(...n), n);
25
+ }
26
+ export {
27
+ i as composeRefs,
28
+ s as useComposedRefs
29
+ };
30
+ //# sourceMappingURL=index.es325.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es325.js","sources":["../node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","i","useComposedRefs","React"],"mappings":";AAEA,SAASA,EAAOC,GAAKC,GAAO;AAC1B,MAAI,OAAOD,KAAQ;AACjB,WAAOA,EAAIC,CAAK;AACX,EAAID,KAAQ,SACjBA,EAAI,UAAUC;AAElB;AACA,SAASC,KAAeC,GAAM;AAC5B,SAAO,CAACC,MAAS;AACf,QAAIC,IAAa;AACjB,UAAMC,IAAWH,EAAK,IAAI,CAACH,MAAQ;AACjC,YAAMO,IAAUR,EAAOC,GAAKI,CAAI;AAChC,aAAI,CAACC,KAAc,OAAOE,KAAW,eACnCF,IAAa,KAERE;AAAA,IACb,CAAK;AACD,QAAIF;AACF,aAAO,MAAM;AACX,iBAASG,IAAI,GAAGA,IAAIF,EAAS,QAAQE,KAAK;AACxC,gBAAMD,IAAUD,EAASE,CAAC;AAC1B,UAAI,OAAOD,KAAW,aACpBA,EAAS,IAETR,EAAOI,EAAKK,CAAC,GAAG,IAAI;AAAA,QAEhC;AAAA,MACO;AAAA,EAEJ;AACH;AACA,SAASC,KAAmBN,GAAM;AAChC,SAAOO,EAAM,YAAYR,EAAY,GAAGC,CAAI,GAAGA,CAAI;AACrD;","x_google_ignoreList":[0]}
@@ -0,0 +1,71 @@
1
+ import * as u from "react";
2
+ import { j as h } from "./index.es180.js";
3
+ function j(t, c) {
4
+ const r = u.createContext(c), a = (o) => {
5
+ const { children: e, ...n } = o, s = u.useMemo(() => n, Object.values(n));
6
+ return /* @__PURE__ */ h.jsx(r.Provider, { value: s, children: e });
7
+ };
8
+ a.displayName = t + "Provider";
9
+ function i(o) {
10
+ const e = u.useContext(r);
11
+ if (e) return e;
12
+ if (c !== void 0) return c;
13
+ throw new Error(`\`${o}\` must be used within \`${t}\``);
14
+ }
15
+ return [a, i];
16
+ }
17
+ function w(t, c = []) {
18
+ let r = [];
19
+ function a(o, e) {
20
+ const n = u.createContext(e), s = r.length;
21
+ r = [...r, e];
22
+ const p = (d) => {
23
+ var S;
24
+ const { scope: x, children: C, ...m } = d, f = ((S = x == null ? void 0 : x[t]) == null ? void 0 : S[s]) || n, P = u.useMemo(() => m, Object.values(m));
25
+ return /* @__PURE__ */ h.jsx(f.Provider, { value: P, children: C });
26
+ };
27
+ p.displayName = o + "Provider";
28
+ function v(d, x) {
29
+ var f;
30
+ const C = ((f = x == null ? void 0 : x[t]) == null ? void 0 : f[s]) || n, m = u.useContext(C);
31
+ if (m) return m;
32
+ if (e !== void 0) return e;
33
+ throw new Error(`\`${d}\` must be used within \`${o}\``);
34
+ }
35
+ return [p, v];
36
+ }
37
+ const i = () => {
38
+ const o = r.map((e) => u.createContext(e));
39
+ return function(n) {
40
+ const s = (n == null ? void 0 : n[t]) || o;
41
+ return u.useMemo(
42
+ () => ({ [`__scope${t}`]: { ...n, [t]: s } }),
43
+ [n, s]
44
+ );
45
+ };
46
+ };
47
+ return i.scopeName = t, [a, l(i, ...c)];
48
+ }
49
+ function l(...t) {
50
+ const c = t[0];
51
+ if (t.length === 1) return c;
52
+ const r = () => {
53
+ const a = t.map((i) => ({
54
+ useScope: i(),
55
+ scopeName: i.scopeName
56
+ }));
57
+ return function(o) {
58
+ const e = a.reduce((n, { useScope: s, scopeName: p }) => {
59
+ const d = s(o)[`__scope${p}`];
60
+ return { ...n, ...d };
61
+ }, {});
62
+ return u.useMemo(() => ({ [`__scope${c.scopeName}`]: e }), [e]);
63
+ };
64
+ };
65
+ return r.scopeName = c.scopeName, r;
66
+ }
67
+ export {
68
+ j as createContext,
69
+ w as createContextScope
70
+ };
71
+ //# sourceMappingURL=index.es326.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es326.js","sources":["../node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// packages/react/context/src/create-context.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n const Provider = (props) => {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n const Provider = (props) => {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContext2","rootComponentName","defaultContext","Context","React","Provider","props","children","context","value","jsx","useContext2","consumerName","createContextScope","scopeName","createContextScopeDeps","defaultContexts","createContext3","BaseContext","index","scope","_a","createScope","scopeContexts","contexts","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","overrideScopes","nextScopes","nextScopes2","useScope","currentScope"],"mappings":";;AAGA,SAASA,EAAeC,GAAmBC,GAAgB;AACzD,QAAMC,IAAUC,EAAM,cAAcF,CAAc,GAC5CG,IAAW,CAACC,MAAU;AAC1B,UAAM,EAAE,UAAAC,GAAU,GAAGC,EAAO,IAAKF,GAC3BG,IAAQL,EAAM,QAAQ,MAAMI,GAAS,OAAO,OAAOA,CAAO,CAAC;AACjE,WAAuBE,gBAAAA,EAAAA,IAAIP,EAAQ,UAAU,EAAE,OAAAM,GAAO,UAAAF,EAAQ,CAAE;AAAA,EACjE;AACD,EAAAF,EAAS,cAAcJ,IAAoB;AAC3C,WAASU,EAAYC,GAAc;AACjC,UAAMJ,IAAUJ,EAAM,WAAWD,CAAO;AACxC,QAAIK,EAAS,QAAOA;AACpB,QAAIN,MAAmB,OAAQ,QAAOA;AACtC,UAAM,IAAI,MAAM,KAAKU,CAAY,4BAA4BX,CAAiB,IAAI;AAAA,EACtF;AACE,SAAO,CAACI,GAAUM,CAAW;AAC/B;AACA,SAASE,EAAmBC,GAAWC,IAAyB,IAAI;AAClE,MAAIC,IAAkB,CAAE;AACxB,WAASC,EAAehB,GAAmBC,GAAgB;AACzD,UAAMgB,IAAcd,EAAM,cAAcF,CAAc,GAChDiB,IAAQH,EAAgB;AAC9B,IAAAA,IAAkB,CAAC,GAAGA,GAAiBd,CAAc;AACrD,UAAMG,IAAW,CAACC,MAAU;;AAC1B,YAAM,EAAE,OAAAc,GAAO,UAAAb,GAAU,GAAGC,EAAS,IAAGF,GAClCH,MAAUkB,IAAAD,KAAA,gBAAAA,EAAQN,OAAR,gBAAAO,EAAqBF,OAAUD,GACzCT,IAAQL,EAAM,QAAQ,MAAMI,GAAS,OAAO,OAAOA,CAAO,CAAC;AACjE,aAAuBE,gBAAAA,EAAAA,IAAIP,EAAQ,UAAU,EAAE,OAAAM,GAAO,UAAAF,EAAQ,CAAE;AAAA,IACjE;AACD,IAAAF,EAAS,cAAcJ,IAAoB;AAC3C,aAASU,EAAYC,GAAcQ,GAAO;;AACxC,YAAMjB,MAAUkB,IAAAD,KAAA,gBAAAA,EAAQN,OAAR,gBAAAO,EAAqBF,OAAUD,GACzCV,IAAUJ,EAAM,WAAWD,CAAO;AACxC,UAAIK,EAAS,QAAOA;AACpB,UAAIN,MAAmB,OAAQ,QAAOA;AACtC,YAAM,IAAI,MAAM,KAAKU,CAAY,4BAA4BX,CAAiB,IAAI;AAAA,IACxF;AACI,WAAO,CAACI,GAAUM,CAAW;AAAA,EACjC;AACE,QAAMW,IAAc,MAAM;AACxB,UAAMC,IAAgBP,EAAgB,IAAI,CAACd,MAClCE,EAAM,cAAcF,CAAc,CAC1C;AACD,WAAO,SAAkBkB,GAAO;AAC9B,YAAMI,KAAWJ,KAAA,gBAAAA,EAAQN,OAAcS;AACvC,aAAOnB,EAAM;AAAA,QACX,OAAO,EAAE,CAAC,UAAUU,CAAS,EAAE,GAAG,EAAE,GAAGM,GAAO,CAACN,CAAS,GAAGU,EAAQ;QACnE,CAACJ,GAAOI,CAAQ;AAAA,MACjB;AAAA,IACF;AAAA,EACF;AACD,SAAAF,EAAY,YAAYR,GACjB,CAACG,GAAgBQ,EAAqBH,GAAa,GAAGP,CAAsB,CAAC;AACtF;AACA,SAASU,KAAwBC,GAAQ;AACvC,QAAMC,IAAYD,EAAO,CAAC;AAC1B,MAAIA,EAAO,WAAW,EAAG,QAAOC;AAChC,QAAML,IAAc,MAAM;AACxB,UAAMM,IAAaF,EAAO,IAAI,CAACG,OAAkB;AAAA,MAC/C,UAAUA,EAAc;AAAA,MACxB,WAAWA,EAAa;AAAA,IAC9B,EAAM;AACF,WAAO,SAA2BC,GAAgB;AAChD,YAAMC,IAAaH,EAAW,OAAO,CAACI,GAAa,EAAE,UAAAC,GAAU,WAAAnB,QAAgB;AAE7E,cAAMoB,IADaD,EAASH,CAAc,EACV,UAAUhB,CAAS,EAAE;AACrD,eAAO,EAAE,GAAGkB,GAAa,GAAGE,EAAc;AAAA,MAC3C,GAAE,EAAE;AACL,aAAO9B,EAAM,QAAQ,OAAO,EAAE,CAAC,UAAUuB,EAAU,SAAS,EAAE,GAAGI,EAAU,IAAK,CAACA,CAAU,CAAC;AAAA,IAC7F;AAAA,EACF;AACD,SAAAT,EAAY,YAAYK,EAAU,WAC3BL;AACT;","x_google_ignoreList":[0]}
@@ -1,10 +1,33 @@
1
- function h(f, c, { checkForDefaultPrevented: p = !0 } = {}) {
2
- return function(s) {
3
- if (f == null || f(s), p === !1 || !s.defaultPrevented)
4
- return c == null ? void 0 : c(s);
5
- };
1
+ import * as l from "react";
2
+ import { useCallbackRef as f } from "./index.es334.js";
3
+ function R({
4
+ prop: e,
5
+ defaultProp: r,
6
+ onChange: s = () => {
7
+ }
8
+ }) {
9
+ const [t, n] = C({ defaultProp: r, onChange: s }), o = e !== void 0, i = o ? e : t, u = f(s), d = l.useCallback(
10
+ (c) => {
11
+ if (o) {
12
+ const a = typeof c == "function" ? c(e) : c;
13
+ a !== e && u(a);
14
+ } else
15
+ n(c);
16
+ },
17
+ [o, e, n, u]
18
+ );
19
+ return [i, d];
20
+ }
21
+ function C({
22
+ defaultProp: e,
23
+ onChange: r
24
+ }) {
25
+ const s = l.useState(e), [t] = s, n = l.useRef(t), o = f(r);
26
+ return l.useEffect(() => {
27
+ n.current !== t && (o(t), n.current = t);
28
+ }, [t, n, o]), s;
6
29
  }
7
30
  export {
8
- h as composeEventHandlers
31
+ R as useControllableState
9
32
  };
10
33
  //# sourceMappingURL=index.es327.js.map