@noxickon/onyx 0.0.2 → 0.0.4-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/chunks/Button-D-v4l8ZE.js +20 -0
  2. package/dist/chunks/{Button-CLMaoxRW.js → Button-bARrxYyo.js} +627 -628
  3. package/dist/chunks/Input-CLi1H63d.js +1 -0
  4. package/dist/chunks/{Input-BQQT5eZ0.js → Input-dfvmdIHi.js} +39 -39
  5. package/dist/chunks/errorHelper--G-SWQzN.js +18 -0
  6. package/dist/chunks/errorHelper-DaP_XxEx.js +1 -0
  7. package/dist/chunks/formatTimestamp-CMxOnPo1.js +12 -0
  8. package/dist/chunks/formatTimestamp-TTsNcy7u.js +1 -0
  9. package/dist/chunks/{jsx-runtime-C5mzlN2N.js → jsx-runtime--oOP9f8K.js} +15 -15
  10. package/dist/chunks/{jsx-runtime-DUiatUiq.js → jsx-runtime-CITbqOLs.js} +2 -2
  11. package/dist/chunks/{index-BgUMV1hv.js → useAuth-DDRXztKj.js} +240 -178
  12. package/dist/chunks/{index-XTQUUzZ1.js → useAuth-DPnpY3XC.js} +18 -9
  13. package/dist/chunks/{useForm-BIKRbGHj.js → useForm-D4co95Vn.js} +785 -801
  14. package/dist/chunks/useForm-DUviJ7xS.js +18 -0
  15. package/dist/chunks/useQuery-BvCyJMae.js +2065 -0
  16. package/dist/chunks/useQuery-DTNHO7so.js +3 -0
  17. package/dist/context/context.cjs.js +1 -1
  18. package/dist/context/context.es.js +1 -1
  19. package/dist/context.d.ts +1 -0
  20. package/dist/hooks/hooks.cjs.js +6 -6
  21. package/dist/hooks/hooks.es.js +117 -118
  22. package/dist/index.css +1 -1
  23. package/dist/index.d.ts +24 -10
  24. package/dist/layout/layout.cjs.js +1 -1
  25. package/dist/layout/layout.es.js +2 -2
  26. package/dist/onyx.cjs.js +1 -12
  27. package/dist/onyx.es.js +779 -2035
  28. package/dist/pages/pages.cjs.js +8 -2
  29. package/dist/pages/pages.es.js +35 -25
  30. package/dist/utils/utils.cjs.js +1 -0
  31. package/dist/utils/utils.es.js +8 -0
  32. package/dist/utils.d.ts +29 -0
  33. package/package.json +31 -27
  34. package/dist/chunks/Button-CZYAHivj.js +0 -20
  35. package/dist/chunks/Input-DJZcvJdP.js +0 -1
  36. package/dist/chunks/index-1-zQ3RaM.js +0 -601
  37. package/dist/chunks/index-CjVXr8mh.js +0 -2
  38. package/dist/chunks/useAuth-C-TIgBfr.js +0 -61
  39. package/dist/chunks/useAuth-CfKOZqhG.js +0 -10
  40. package/dist/chunks/useForm-BZEaiRaa.js +0 -26
  41. package/dist/chunks/useQuery-B_ce5e8f.js +0 -2
  42. package/dist/chunks/useQuery-CJdYhuQu.js +0 -1481
@@ -0,0 +1 @@
1
+ "use strict";const e=require("./jsx-runtime-CITbqOLs.js"),p=require("react"),x=require("./Button-D-v4l8ZE.js"),F=require("./isObject-BDHKUJKN.js"),N=({children:n,className:r,disabled:s=!1,htmlFor:t,required:l=!1})=>e.jsxRuntimeExports.jsxs("label",{id:`${t}-label`,className:x.twMerge("block text-sm font-medium text-neutral-300",s&&"cursor-not-allowed text-neutral-500",r),htmlFor:t,children:[n,l&&e.jsxRuntimeExports.jsx("span",{className:"ml-1 text-rose-400",children:"*"})]}),I=({children:n,className:r,disabled:s=!1,id:t})=>e.jsxRuntimeExports.jsx("p",{id:t,className:x.twMerge("text-xs text-neutral-400",s&&"text-neutral-500",r),children:n}),f=({children:n,className:r,icon:s="mdiAlertCircleOutline",id:t})=>n?e.jsxRuntimeExports.jsxs("div",{id:t,className:x.twMerge("flex max-w-full items-center gap-1 text-xs text-rose-400",r),role:"alert",children:[s?e.jsxRuntimeExports.jsx(x.OxIcon,{className:"flex-shrink-0",icon:s,size:.8}):null,e.jsxRuntimeExports.jsx("p",{className:"min-w-0 break-words",children:n})]}):null,S=({children:n,className:r,fullWidth:s=!1,noValidate:t=!0,...l})=>e.jsxRuntimeExports.jsx("form",{className:x.twMerge(s&&"w-full",r),noValidate:t,...l,children:n}),G=({className:n,description:r,disabled:s=!1,error:t=!1,errorMessage:l,icon:a="",iconPosition:c="left",id:y,label:j,name:L,onChange:v,placeholder:$="Input placeholder...",readOnly:M=!1,required:h=!1,showMaxLength:k=!1,type:q="text",value:i,...g})=>{const C=p.useId(),[z,E]=p.useState(typeof i=="string"?i.length:0),m=y||C,R=`${m}-input`,w=`${m}-description`,d=`${m}-error`,O=g.maxLength,b=t&&typeof l=="string",A=t&&F.isObject(l);p.useEffect(()=>{typeof i=="string"&&E(i.length)},[i]);const B=u=>{const o=u.target.value.length;E(o),v?.(u)},D=e.jsxRuntimeExports.jsxs("div",{className:"relative flex w-full items-center",children:[a!==""&&c==="left"?e.jsxRuntimeExports.jsx("div",{className:"absolute left-3 flex items-center",children:e.jsxRuntimeExports.jsx(x.OxIcon,{icon:a,size:.8})}):null,e.jsxRuntimeExports.jsx("input",{id:R,"aria-describedby":[r?w:"",b?d:""].filter(Boolean).join(" ")||void 0,"aria-invalid":t,"aria-required":h,className:x.twMerge("flex h-10 w-full rounded-lg bg-transparent px-2 py-2 text-sm text-white","default-outset-focus","placeholder:text-muted-foreground placeholder:text-neutral-500","default-disabled",a&&(c==="left"?"pl-10":"pr-10"),t?"default-error-border":"default-border",n),disabled:s,name:L,placeholder:$,readOnly:M,type:q,value:i,onChange:B,...g}),a!==""&&c==="right"?e.jsxRuntimeExports.jsx("div",{className:"absolute right-3 flex items-center",children:e.jsxRuntimeExports.jsx(x.OxIcon,{icon:a,size:.8})}):null]});return e.jsxRuntimeExports.jsxs("div",{className:"flex w-full flex-col gap-1",children:[j?e.jsxRuntimeExports.jsx(N,{disabled:s,htmlFor:R,required:h,children:j}):null,D,k&&typeof O=="number"?e.jsxRuntimeExports.jsxs("div",{className:"pointer-events-none mt-1 text-right text-xs text-neutral-400",children:[z,"/",O]}):null,r?e.jsxRuntimeExports.jsx(I,{id:w,disabled:s,children:r}):null,b?e.jsxRuntimeExports.jsx(f,{id:d,children:l}):null,A&&Array.isArray(l)?e.jsxRuntimeExports.jsx("div",{className:"mt-1 space-y-1",children:l.map((u,o)=>e.jsxRuntimeExports.jsx(f,{id:`${d}-${o}`,children:u},o))}):null]})};exports.OxDescription=I;exports.OxErrorMessage=f;exports.OxForm=S;exports.OxInput=G;exports.OxLabel=N;
@@ -1,6 +1,6 @@
1
- import { j as e } from "./jsx-runtime-C5mzlN2N.js";
2
- import { useId as S, useState as q, useEffect as C } from "react";
3
- import { t as x, a as p } from "./Button-CLMaoxRW.js";
1
+ import { j as e } from "./jsx-runtime--oOP9f8K.js";
2
+ import { useId as R, useState as S, useEffect as q } from "react";
3
+ import { t as x, a as m } from "./Button-bARrxYyo.js";
4
4
  import { i as G } from "./isObject-vmP43YLW.js";
5
5
  const H = ({
6
6
  children: r,
@@ -35,7 +35,7 @@ const H = ({
35
35
  className: x("text-xs text-neutral-400", s && "text-neutral-500", l),
36
36
  children: r
37
37
  }
38
- ), I = ({
38
+ ), O = ({
39
39
  children: r,
40
40
  className: l,
41
41
  icon: s = "mdiAlertCircleOutline",
@@ -47,7 +47,7 @@ const H = ({
47
47
  className: x("flex max-w-full items-center gap-1 text-xs text-rose-400", l),
48
48
  role: "alert",
49
49
  children: [
50
- s ? /* @__PURE__ */ e.jsx(p, { className: "flex-shrink-0", icon: s, size: 0.8 }) : null,
50
+ s ? /* @__PURE__ */ e.jsx(m, { className: "flex-shrink-0", icon: s, size: 0.8 }) : null,
51
51
  /* @__PURE__ */ e.jsx("p", { className: "min-w-0 break-words", children: r })
52
52
  ]
53
53
  }
@@ -64,75 +64,75 @@ const H = ({
64
64
  error: t = !1,
65
65
  errorMessage: a,
66
66
  icon: i = "",
67
- iconPosition: u = "left",
68
- id: v,
67
+ iconPosition: d = "left",
68
+ id: I,
69
69
  label: h,
70
- name: E,
71
- onChange: o,
70
+ name: v,
71
+ onChange: E,
72
72
  placeholder: L = "Input placeholder...",
73
73
  readOnly: $ = !1,
74
- required: j = !1,
74
+ required: p = !1,
75
75
  showMaxLength: k = !1,
76
- type: z = "text",
76
+ type: C = "text",
77
77
  value: n,
78
- ...g
78
+ ...j
79
79
  }) => {
80
- const A = S(), [B, b] = q(
80
+ const z = R(), [A, g] = S(
81
81
  typeof n == "string" ? n.length : 0
82
- ), f = v || A, N = `${f}-input`, w = `${f}-description`, m = `${f}-error`, y = g.maxLength, O = t && typeof a == "string", D = t && G(a);
83
- C(() => {
84
- typeof n == "string" && b(n.length);
82
+ ), u = I || z, b = `${u}-input`, N = `${u}-description`, f = `${u}-error`, w = j.maxLength, y = t && typeof a == "string", B = t && G(a);
83
+ q(() => {
84
+ typeof n == "string" && g(n.length);
85
85
  }, [n]);
86
- const F = (c) => {
87
- const d = c.target.value.length;
88
- b(d), o == null || o(c);
89
- }, R = /* @__PURE__ */ e.jsxs("div", { className: "relative flex w-full items-center", children: [
90
- i !== "" && u === "left" ? /* @__PURE__ */ e.jsx("div", { className: "absolute left-3 flex items-center", children: /* @__PURE__ */ e.jsx(p, { icon: i, size: 0.8 }) }) : null,
86
+ const D = (c) => {
87
+ const o = c.target.value.length;
88
+ g(o), E?.(c);
89
+ }, F = /* @__PURE__ */ e.jsxs("div", { className: "relative flex w-full items-center", children: [
90
+ i !== "" && d === "left" ? /* @__PURE__ */ e.jsx("div", { className: "absolute left-3 flex items-center", children: /* @__PURE__ */ e.jsx(m, { icon: i, size: 0.8 }) }) : null,
91
91
  /* @__PURE__ */ e.jsx(
92
92
  "input",
93
93
  {
94
- id: N,
95
- "aria-describedby": [l ? w : "", O ? m : ""].filter(Boolean).join(" ") || void 0,
94
+ id: b,
95
+ "aria-describedby": [l ? N : "", y ? f : ""].filter(Boolean).join(" ") || void 0,
96
96
  "aria-invalid": t,
97
- "aria-required": j,
97
+ "aria-required": p,
98
98
  className: x(
99
99
  "flex h-10 w-full rounded-lg bg-transparent px-2 py-2 text-sm text-white",
100
100
  "default-outset-focus",
101
101
  "placeholder:text-muted-foreground placeholder:text-neutral-500",
102
102
  "default-disabled",
103
- i && (u === "left" ? "pl-10" : "pr-10"),
103
+ i && (d === "left" ? "pl-10" : "pr-10"),
104
104
  t ? "default-error-border" : "default-border",
105
105
  r
106
106
  ),
107
107
  disabled: s,
108
- name: E,
108
+ name: v,
109
109
  placeholder: L,
110
110
  readOnly: $,
111
- type: z,
111
+ type: C,
112
112
  value: n,
113
- onChange: F,
114
- ...g
113
+ onChange: D,
114
+ ...j
115
115
  }
116
116
  ),
117
- i !== "" && u === "right" ? /* @__PURE__ */ e.jsx("div", { className: "absolute right-3 flex items-center", children: /* @__PURE__ */ e.jsx(p, { icon: i, size: 0.8 }) }) : null
117
+ i !== "" && d === "right" ? /* @__PURE__ */ e.jsx("div", { className: "absolute right-3 flex items-center", children: /* @__PURE__ */ e.jsx(m, { icon: i, size: 0.8 }) }) : null
118
118
  ] });
119
119
  return /* @__PURE__ */ e.jsxs("div", { className: "flex w-full flex-col gap-1", children: [
120
- h ? /* @__PURE__ */ e.jsx(H, { disabled: s, htmlFor: N, required: j, children: h }) : null,
121
- R,
122
- k && typeof y == "number" ? /* @__PURE__ */ e.jsxs("div", { className: "pointer-events-none mt-1 text-right text-xs text-neutral-400", children: [
123
- B,
120
+ h ? /* @__PURE__ */ e.jsx(H, { disabled: s, htmlFor: b, required: p, children: h }) : null,
121
+ F,
122
+ k && typeof w == "number" ? /* @__PURE__ */ e.jsxs("div", { className: "pointer-events-none mt-1 text-right text-xs text-neutral-400", children: [
123
+ A,
124
124
  "/",
125
- y
125
+ w
126
126
  ] }) : null,
127
- l ? /* @__PURE__ */ e.jsx(J, { id: w, disabled: s, children: l }) : null,
128
- O ? /* @__PURE__ */ e.jsx(I, { id: m, children: a }) : null,
129
- D && Array.isArray(a) ? /* @__PURE__ */ e.jsx("div", { className: "mt-1 space-y-1", children: a.map((c, d) => /* @__PURE__ */ e.jsx(I, { id: `${m}-${d}`, children: c }, d)) }) : null
127
+ l ? /* @__PURE__ */ e.jsx(J, { id: N, disabled: s, children: l }) : null,
128
+ y ? /* @__PURE__ */ e.jsx(O, { id: f, children: a }) : null,
129
+ B && Array.isArray(a) ? /* @__PURE__ */ e.jsx("div", { className: "mt-1 space-y-1", children: a.map((c, o) => /* @__PURE__ */ e.jsx(O, { id: `${f}-${o}`, children: c }, o)) }) : null
130
130
  ] });
131
131
  };
132
132
  export {
133
133
  U as O,
134
134
  V as a,
135
- I as b,
135
+ O as b,
136
136
  H as c,
137
137
  J as d
138
138
  };
@@ -0,0 +1,18 @@
1
+ const n = (a) => a.map((s) => ({
2
+ message: s.message,
3
+ code: s.extensions?.code || "UNKNOWN_ERROR",
4
+ field: s.extensions?.field,
5
+ path: s.path
6
+ })), o = (a, s) => {
7
+ a.forEach((e) => {
8
+ e.field ? s.setError(e.field, e.message) : s.setError("", e.message);
9
+ });
10
+ }, t = (a, s) => {
11
+ const e = n(a);
12
+ o(e, s);
13
+ };
14
+ export {
15
+ n as O,
16
+ o as a,
17
+ t as b
18
+ };
@@ -0,0 +1 @@
1
+ "use strict";const a=r=>r.map(s=>({message:s.message,code:s.extensions?.code||"UNKNOWN_ERROR",field:s.extensions?.field,path:s.path})),o=(r,s)=>{r.forEach(e=>{e.field?s.setError(e.field,e.message):s.setError("",e.message)})},n=(r,s)=>{const e=a(r);o(e,s)};exports.OxHandleFormErrors=o;exports.OxHandleGraphQLFormErrors=n;exports.OxParseGraphQLErrors=a;
@@ -0,0 +1,12 @@
1
+ const f = (n) => {
2
+ const t = Math.floor(((/* @__PURE__ */ new Date()).getTime() - n.getTime()) / (1e3 * 60));
3
+ if (t < 1) return "just now";
4
+ if (t < 60) return `${t}m ago`;
5
+ const o = Math.floor(t / 60);
6
+ if (o < 24) return `${o}h ago`;
7
+ const r = Math.floor(o / 24);
8
+ return r < 7 ? `${r}d ago` : n.toLocaleDateString();
9
+ };
10
+ export {
11
+ f
12
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=n=>{const t=Math.floor((new Date().getTime()-n.getTime())/(1e3*60));if(t<1)return"just now";if(t<60)return`${t}m ago`;const o=Math.floor(t/60);if(o<24)return`${o}h ago`;const r=Math.floor(o/24);return r<7?`${r}d ago`:n.toLocaleDateString()};exports.formatTimestamp=e;
@@ -14,17 +14,17 @@ function re() {
14
14
  if (F) return R;
15
15
  F = 1;
16
16
  var l = Symbol.for("react.transitional.element"), _ = Symbol.for("react.fragment");
17
- function f(d, a, s) {
18
- var m = null;
19
- if (s !== void 0 && (m = "" + s), a.key !== void 0 && (m = "" + a.key), "key" in a) {
17
+ function f(m, a, s) {
18
+ var d = null;
19
+ if (s !== void 0 && (d = "" + s), a.key !== void 0 && (d = "" + a.key), "key" in a) {
20
20
  s = {};
21
21
  for (var E in a)
22
22
  E !== "key" && (s[E] = a[E]);
23
23
  } else s = a;
24
24
  return a = s.ref, {
25
25
  $$typeof: l,
26
- type: d,
27
- key: m,
26
+ type: m,
27
+ key: d,
28
28
  ref: a !== void 0 ? a : null,
29
29
  props: s
30
30
  };
@@ -41,9 +41,9 @@ var b = {};
41
41
  * This source code is licensed under the MIT license found in the
42
42
  * LICENSE file in the root directory of this source tree.
43
43
  */
44
- var D;
44
+ var $;
45
45
  function te() {
46
- return D || (D = 1, process.env.NODE_ENV !== "production" && function() {
46
+ return $ || ($ = 1, process.env.NODE_ENV !== "production" && function() {
47
47
  function l(e) {
48
48
  if (e == null) return null;
49
49
  if (typeof e == "function")
@@ -107,7 +107,7 @@ function te() {
107
107
  ), _(e);
108
108
  }
109
109
  }
110
- function d(e) {
110
+ function m(e) {
111
111
  if (e === p) return "<>";
112
112
  if (typeof e == "object" && e !== null && e.$$typeof === g)
113
113
  return "<...>";
@@ -125,7 +125,7 @@ function te() {
125
125
  function s() {
126
126
  return Error("react-stack-top-frame");
127
127
  }
128
- function m(e) {
128
+ function d(e) {
129
129
  if (h.call(e, "key")) {
130
130
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
131
131
  if (r && r.isReactWarning) return !1;
@@ -213,7 +213,7 @@ React keys must be passed directly to JSX without using spread:
213
213
  o
214
214
  ), I[o + n] = !0);
215
215
  }
216
- if (o = null, t !== void 0 && (f(t), o = "" + t), m(r) && (f(r.key), o = "" + r.key), "key" in r) {
216
+ if (o = null, t !== void 0 && (f(t), o = "" + t), d(r) && (f(r.key), o = "" + r.key), "key" in r) {
217
217
  t = {};
218
218
  for (var P in r)
219
219
  P !== "key" && (t[P] = r[P]);
@@ -246,7 +246,7 @@ React keys must be passed directly to JSX without using spread:
246
246
  var y, N = {}, C = v["react-stack-bottom-frame"].bind(
247
247
  v,
248
248
  s
249
- )(), Y = O(d(s)), I = {};
249
+ )(), Y = O(m(s)), I = {};
250
250
  b.Fragment = p, b.jsx = function(e, r, t, n, c) {
251
251
  var u = 1e4 > k.recentlyCreatedOwnerStacks++;
252
252
  return j(
@@ -257,7 +257,7 @@ React keys must be passed directly to JSX without using spread:
257
257
  n,
258
258
  c,
259
259
  u ? Error("react-stack-top-frame") : C,
260
- u ? O(d(e)) : Y
260
+ u ? O(m(e)) : Y
261
261
  );
262
262
  }, b.jsxs = function(e, r, t, n, c) {
263
263
  var u = 1e4 > k.recentlyCreatedOwnerStacks++;
@@ -269,14 +269,14 @@ React keys must be passed directly to JSX without using spread:
269
269
  n,
270
270
  c,
271
271
  u ? Error("react-stack-top-frame") : C,
272
- u ? O(d(e)) : Y
272
+ u ? O(m(e)) : Y
273
273
  );
274
274
  };
275
275
  }()), b;
276
276
  }
277
- var $;
277
+ var D;
278
278
  function ne() {
279
- return $ || ($ = 1, process.env.NODE_ENV === "production" ? T.exports = re() : T.exports = te()), T.exports;
279
+ return D || (D = 1, process.env.NODE_ENV === "production" ? T.exports = re() : T.exports = te()), T.exports;
280
280
  }
281
281
  var ae = ne();
282
282
  export {
@@ -14,9 +14,9 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var D;function te(){return D||(D=1,process.env.NODE_ENV!=="production"&&function(){function l(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Z?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case p:return"Fragment";case q:return"Profiler";case U:return"StrictMode";case G:return"Suspense";case X:return"SuspenseList";case H:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case W:return"Portal";case z:return(e.displayName||"Context")+".Provider";case J:return(e._context.displayName||"Context")+".Consumer";case V:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case B:return r=e.displayName||null,r!==null?r:l(e.type)||"Memo";case g:r=e._payload,e=e._init;try{return l(e(r))}catch{}}return null}function _(e){return""+e}function f(e){try{_(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),_(e)}}function d(e){if(e===p)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===g)return"<...>";try{var r=l(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function a(){var e=k.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function m(e){if(h.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function E(e,r){function t(){y||(y=!0,console.error("%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)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function L(){var e=l(this.type);return N[e]||(N[e]=!0,console.error("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.")),e=this.props.ref,e!==void 0?e:null}function M(e,r,t,n,c,u,A,S){return t=u.ref,e={$$typeof:x,type:e,key:r,props:u,_owner:c},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:L}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function j(e,r,t,n,c,u,A,S){var o=r.children;if(o!==void 0)if(n)if(Q(o)){for(n=0;n<o.length;n++)w(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else w(o);if(h.call(r,"key")){o=l(e);var i=Object.keys(r).filter(function(K){return K!=="key"});n=0<i.length?"{key: someKey, "+i.join(": ..., ")+": ...}":"{key: someKey}",I[o+n]||(i=0<i.length?"{"+i.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var $;function te(){return $||($=1,process.env.NODE_ENV!=="production"&&function(){function l(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Z?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case p:return"Fragment";case q:return"Profiler";case U:return"StrictMode";case G:return"Suspense";case X:return"SuspenseList";case H:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case W:return"Portal";case z:return(e.displayName||"Context")+".Provider";case J:return(e._context.displayName||"Context")+".Consumer";case V:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case B:return r=e.displayName||null,r!==null?r:l(e.type)||"Memo";case g:r=e._payload,e=e._init;try{return l(e(r))}catch{}}return null}function _(e){return""+e}function f(e){try{_(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),_(e)}}function d(e){if(e===p)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===g)return"<...>";try{var r=l(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function a(){var e=k.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function m(e){if(h.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function E(e,r){function t(){y||(y=!0,console.error("%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)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function L(){var e=l(this.type);return N[e]||(N[e]=!0,console.error("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.")),e=this.props.ref,e!==void 0?e:null}function M(e,r,t,n,c,u,A,S){return t=u.ref,e={$$typeof:x,type:e,key:r,props:u,_owner:c},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:L}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:S}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function j(e,r,t,n,c,u,A,S){var o=r.children;if(o!==void 0)if(n)if(Q(o)){for(n=0;n<o.length;n++)w(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else w(o);if(h.call(r,"key")){o=l(e);var i=Object.keys(r).filter(function(K){return K!=="key"});n=0<i.length?"{key: someKey, "+i.join(": ..., ")+": ...}":"{key: someKey}",I[o+n]||(i=0<i.length?"{"+i.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,n,o,i,o),I[o+n]=!0)}if(o=null,t!==void 0&&(f(t),o=""+t),m(r)&&(f(r.key),o=""+r.key),"key"in r){t={};for(var P in r)P!=="key"&&(t[P]=r[P])}else t=r;return o&&E(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),M(e,o,u,c,a(),t,A,S)}function w(e){typeof e=="object"&&e!==null&&e.$$typeof===x&&e._store&&(e._store.validated=1)}var v=ee,x=Symbol.for("react.transitional.element"),W=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),J=Symbol.for("react.consumer"),z=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),Z=Symbol.for("react.client.reference"),k=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,h=Object.prototype.hasOwnProperty,Q=Array.isArray,O=console.createTask?console.createTask:function(){return null};v={"react-stack-bottom-frame":function(e){return e()}};var y,N={},C=v["react-stack-bottom-frame"].bind(v,s)(),Y=O(d(s)),I={};b.Fragment=p,b.jsx=function(e,r,t,n,c){var u=1e4>k.recentlyCreatedOwnerStacks++;return j(e,r,t,!1,n,c,u?Error("react-stack-top-frame"):C,u?O(d(e)):Y)},b.jsxs=function(e,r,t,n,c){var u=1e4>k.recentlyCreatedOwnerStacks++;return j(e,r,t,!0,n,c,u?Error("react-stack-top-frame"):C,u?O(d(e)):Y)}}()),b}var $;function ne(){return $||($=1,process.env.NODE_ENV==="production"?T.exports=re():T.exports=te()),T.exports}var oe=ne();exports.jsxRuntimeExports=oe;
22
+ <%s key={someKey} {...props} />`,n,o,i,o),I[o+n]=!0)}if(o=null,t!==void 0&&(f(t),o=""+t),m(r)&&(f(r.key),o=""+r.key),"key"in r){t={};for(var P in r)P!=="key"&&(t[P]=r[P])}else t=r;return o&&E(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),M(e,o,u,c,a(),t,A,S)}function w(e){typeof e=="object"&&e!==null&&e.$$typeof===x&&e._store&&(e._store.validated=1)}var v=ee,x=Symbol.for("react.transitional.element"),W=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),J=Symbol.for("react.consumer"),z=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),Z=Symbol.for("react.client.reference"),k=v.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,h=Object.prototype.hasOwnProperty,Q=Array.isArray,O=console.createTask?console.createTask:function(){return null};v={"react-stack-bottom-frame":function(e){return e()}};var y,N={},C=v["react-stack-bottom-frame"].bind(v,s)(),Y=O(d(s)),I={};b.Fragment=p,b.jsx=function(e,r,t,n,c){var u=1e4>k.recentlyCreatedOwnerStacks++;return j(e,r,t,!1,n,c,u?Error("react-stack-top-frame"):C,u?O(d(e)):Y)},b.jsxs=function(e,r,t,n,c){var u=1e4>k.recentlyCreatedOwnerStacks++;return j(e,r,t,!0,n,c,u?Error("react-stack-top-frame"):C,u?O(d(e)):Y)}}()),b}var D;function ne(){return D||(D=1,process.env.NODE_ENV==="production"?T.exports=re():T.exports=te()),T.exports}var oe=ne();exports.jsxRuntimeExports=oe;