@ram_28/kf-ai-sdk 1.0.12 → 1.0.14
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.
- package/dist/auth.cjs +1 -1
- package/dist/auth.mjs +87 -87
- package/dist/kanban.ui.cjs +1 -1
- package/dist/kanban.ui.mjs +27 -27
- package/package.json +1 -1
- package/dist/jsx-runtime-BYECrxsp.cjs +0 -30
- package/dist/jsx-runtime-DGlMoOmv.js +0 -630
package/dist/auth.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var z=Object.defineProperty;var J=(e,t,n)=>t in e?z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var M=(e,t,n)=>J(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("
|
|
1
|
+
"use strict";var z=Object.defineProperty;var J=(e,t,n)=>t in e?z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var M=(e,t,n)=>J(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("react/jsx-runtime"),r=require("react"),K=require("@tanstack/react-query"),x=require("./client-C15j4O5B.cjs"),H={sessionEndpoint:"/api/id",providers:{google:{loginPath:"/api/auth/google/login",logoutPath:"/api/auth/logout"}},defaultProvider:"google",autoRedirect:!1,sessionCheckInterval:0,retry:{count:3,delay:1e3},staleTime:5*60*1e3,refetchOnWindowFocus:!1,refetchOnReconnect:!0};let h={...H};function N(e){h={...h,...e,providers:{...h.providers,...e.providers},retry:{...h.retry,...e.retry}}}function X(e,t){h.providers[e]=t}function b(){return{...h}}function k(){return h.baseUrl||x.getApiBaseUrl()||(typeof window<"u"?window.location.origin:"")}function Y(e){return h.providers[e]}function Z(){h={...H}}class m extends Error{constructor(n,o){super(n);M(this,"statusCode");this.name="AuthenticationError",this.statusCode=o}}async function D(){const e=b(),t=k(),n=x.getDefaultHeaders(),o=await fetch(`${t}${e.sessionEndpoint}`,{method:"GET",headers:n,credentials:"include"});if(!o.ok)throw o.status===401||o.status===403?new m("Not authenticated",o.status):new m(`Session check failed: ${o.statusText}`,o.status);return await o.json()}function W(e,t){return new Promise(()=>{const n=b(),o=k();if(!o)throw new Error('Auth base URL is not configured. Call setApiBaseUrl("https://...") or configureAuth({ baseUrl: "https://..." }) first.');const i=e||n.defaultProvider,c=Y(i);if(!c){const w=Object.keys(n.providers||{}).join(", ")||"none";throw new Error(`Auth provider "${i}" is not configured. Available providers: ${w}`)}if(!c.loginPath)throw new Error(`Login path not configured for provider "${i}". Configure it with: configureAuth({ providers: { ${i}: { loginPath: '/api/auth/...' } } })`);let f;try{f=new URL(`${o}${c.loginPath}`)}catch{throw new Error(`Failed to construct login URL. Base URL: "${o}", Login path: "${c.loginPath}". Ensure baseUrl is a valid URL (e.g., "https://example.com").`)}(t!=null&&t.callbackUrl||n.callbackUrl)&&f.searchParams.set("callbackUrl",(t==null?void 0:t.callbackUrl)||n.callbackUrl||window.location.href),t!=null&&t.params&&Object.entries(t.params).forEach(([w,v])=>{f.searchParams.set(w,v)}),window.location.href=f.toString()})}async function ee(e){const t=b(),n=k(),o=x.getDefaultHeaders(),i=Y(t.defaultProvider),c=i==null?void 0:i.logoutPath;if(c&&(e==null?void 0:e.callLogoutEndpoint)!==!1)try{await fetch(`${n}${c}`,{method:"POST",headers:o,credentials:"include"})}catch(f){console.warn("Logout endpoint call failed:",f)}e!=null&&e.redirectUrl?window.location.href=e.redirectUrl:t.loginRedirectUrl&&(window.location.href=t.loginRedirectUrl)}const G=r.createContext(null),_=["auth","session"];function te({children:e,config:t,onAuthChange:n,onError:o,loadingComponent:i,unauthenticatedComponent:c,skipInitialCheck:f=!1}){const w=r.useRef(!1);t&&!w.current&&(N(t),w.current=!0);const v=K.useQueryClient(),l=b(),{data:a,isLoading:g,error:U,refetch:R,isFetching:C}=K.useQuery({queryKey:_,queryFn:D,enabled:!f,retry:(s,y)=>y instanceof m&&(y.statusCode===401||y.statusCode===403)?!1:s<l.retry.count,retryDelay:l.retry.delay,staleTime:l.staleTime,gcTime:l.staleTime*2,refetchOnWindowFocus:l.refetchOnWindowFocus??!0,refetchOnReconnect:l.refetchOnReconnect??!0,refetchInterval:l.sessionCheckInterval||!1}),[S,L]=r.useState(null),d=r.useMemo(()=>g||C?"loading":a!=null&&a.userDetails?"authenticated":"unauthenticated",[g,C,a]),u=(a==null?void 0:a.userDetails)||null,$=(a==null?void 0:a.staticBaseUrl)||null,B=(a==null?void 0:a.buildId)||null,O=d==="authenticated",E=r.useRef(n);E.current=n;const P=r.useRef(o);P.current=o,r.useEffect(()=>{var s;g||(s=E.current)==null||s.call(E,d,u)},[d,u,g]),r.useEffect(()=>{var s;U&&(L(U),(s=P.current)==null||s.call(P,U))},[U]),r.useEffect(()=>{d==="unauthenticated"&&l.autoRedirect&&!g&&W()},[d,g,l.autoRedirect]);const j=r.useCallback((s,y)=>{W(s,y)},[]),p=r.useCallback(async s=>{v.removeQueries({queryKey:_}),await ee(s)},[v]),q=r.useCallback(async()=>{if(C)return a||null;try{return(await R()).data||null}catch(s){return L(s),null}},[R,C,a]),I=r.useCallback(s=>(u==null?void 0:u.Role)===s,[u]),T=r.useCallback(s=>s.includes((u==null?void 0:u.Role)||""),[u]),F=r.useCallback(()=>{L(null)},[]),Q=r.useCallback(()=>{R()},[R]),V=r.useMemo(()=>({user:u,staticBaseUrl:$,buildId:B,status:d,isAuthenticated:O,isLoading:g,login:j,logout:p,refreshSession:q,hasRole:I,hasAnyRole:T,error:S,clearError:F,_forceCheck:Q}),[u,$,B,d,O,g,j,p,q,I,T,S,F,Q]);return d==="loading"&&i?A.jsx(A.Fragment,{children:i}):d==="unauthenticated"&&!l.autoRedirect&&c?A.jsx(A.Fragment,{children:c}):A.jsx(G.Provider,{value:V,children:e})}function re(){const e=r.useContext(G);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e}function ne(){const e=re();return r.useMemo(()=>({user:e.user,staticBaseUrl:e.staticBaseUrl,buildId:e.buildId,status:e.status,isAuthenticated:e.isAuthenticated,isLoading:e.isLoading,login:e.login,logout:e.logout,refreshSession:e.refreshSession,hasRole:e.hasRole,hasAnyRole:e.hasAnyRole,error:e.error,clearError:e.clearError}),[e.user,e.staticBaseUrl,e.buildId,e.status,e.isAuthenticated,e.isLoading,e.login,e.logout,e.refreshSession,e.hasRole,e.hasAnyRole,e.error,e.clearError])}exports.AuthProvider=te;exports.AuthenticationError=m;exports.configureAuth=N;exports.getAuthBaseUrl=k;exports.getAuthConfig=b;exports.resetAuthConfig=Z;exports.setAuthProvider=X;exports.useAuth=ne;
|
package/dist/auth.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var _ = (e, t, r) =>
|
|
4
|
-
import {
|
|
5
|
-
import { useRef as
|
|
6
|
-
import { useQueryClient as
|
|
7
|
-
import { c as
|
|
8
|
-
const
|
|
1
|
+
var X = Object.defineProperty;
|
|
2
|
+
var Z = (e, t, r) => t in e ? X(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var _ = (e, t, r) => Z(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
import { jsx as C, Fragment as N } from "react/jsx-runtime";
|
|
5
|
+
import { useRef as L, useState as D, useMemo as $, useEffect as p, useCallback as g, createContext as ee, useContext as te } from "react";
|
|
6
|
+
import { useQueryClient as re, useQuery as ne } from "@tanstack/react-query";
|
|
7
|
+
import { c as oe, g as H } from "./client-CfvLiGfP.js";
|
|
8
|
+
const M = {
|
|
9
9
|
sessionEndpoint: "/api/id",
|
|
10
10
|
providers: {
|
|
11
11
|
google: {
|
|
@@ -24,8 +24,8 @@ const H = {
|
|
|
24
24
|
refetchOnWindowFocus: !1,
|
|
25
25
|
refetchOnReconnect: !0
|
|
26
26
|
};
|
|
27
|
-
let d = { ...
|
|
28
|
-
function
|
|
27
|
+
let d = { ...M };
|
|
28
|
+
function ie(e) {
|
|
29
29
|
d = {
|
|
30
30
|
...d,
|
|
31
31
|
...e,
|
|
@@ -39,58 +39,58 @@ function oe(e) {
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function ge(e, t) {
|
|
43
43
|
d.providers[e] = t;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function E() {
|
|
46
46
|
return { ...d };
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
return d.baseUrl ||
|
|
48
|
+
function x() {
|
|
49
|
+
return d.baseUrl || oe() || (typeof window < "u" ? window.location.origin : "");
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function V(e) {
|
|
52
52
|
return d.providers[e];
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
d = { ...
|
|
54
|
+
function we() {
|
|
55
|
+
d = { ...M };
|
|
56
56
|
}
|
|
57
|
-
class
|
|
57
|
+
class k extends Error {
|
|
58
58
|
constructor(r, n) {
|
|
59
59
|
super(r);
|
|
60
60
|
_(this, "statusCode");
|
|
61
61
|
this.name = "AuthenticationError", this.statusCode = n;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
async function
|
|
65
|
-
const e =
|
|
64
|
+
async function ae() {
|
|
65
|
+
const e = E(), t = x(), r = H(), n = await fetch(`${t}${e.sessionEndpoint}`, {
|
|
66
66
|
method: "GET",
|
|
67
67
|
headers: r,
|
|
68
68
|
credentials: "include"
|
|
69
69
|
});
|
|
70
70
|
if (!n.ok)
|
|
71
|
-
throw n.status === 401 || n.status === 403 ? new
|
|
71
|
+
throw n.status === 401 || n.status === 403 ? new k("Not authenticated", n.status) : new k(
|
|
72
72
|
`Session check failed: ${n.statusText}`,
|
|
73
73
|
n.status
|
|
74
74
|
);
|
|
75
75
|
return await n.json();
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Y(e, t) {
|
|
78
78
|
return new Promise(() => {
|
|
79
|
-
const r =
|
|
79
|
+
const r = E(), n = x();
|
|
80
80
|
if (!n)
|
|
81
81
|
throw new Error(
|
|
82
82
|
'Auth base URL is not configured. Call setApiBaseUrl("https://...") or configureAuth({ baseUrl: "https://..." }) first.'
|
|
83
83
|
);
|
|
84
|
-
const
|
|
84
|
+
const a = e || r.defaultProvider, c = V(a);
|
|
85
85
|
if (!c) {
|
|
86
86
|
const w = Object.keys(r.providers || {}).join(", ") || "none";
|
|
87
87
|
throw new Error(
|
|
88
|
-
`Auth provider "${
|
|
88
|
+
`Auth provider "${a}" is not configured. Available providers: ${w}`
|
|
89
89
|
);
|
|
90
90
|
}
|
|
91
91
|
if (!c.loginPath)
|
|
92
92
|
throw new Error(
|
|
93
|
-
`Login path not configured for provider "${
|
|
93
|
+
`Login path not configured for provider "${a}". Configure it with: configureAuth({ providers: { ${a}: { loginPath: '/api/auth/...' } } })`
|
|
94
94
|
);
|
|
95
95
|
let h;
|
|
96
96
|
try {
|
|
@@ -103,13 +103,13 @@ function N(e, t) {
|
|
|
103
103
|
(t != null && t.callbackUrl || r.callbackUrl) && h.searchParams.set(
|
|
104
104
|
"callbackUrl",
|
|
105
105
|
(t == null ? void 0 : t.callbackUrl) || r.callbackUrl || window.location.href
|
|
106
|
-
), t != null && t.params && Object.entries(t.params).forEach(([w,
|
|
107
|
-
h.searchParams.set(w,
|
|
106
|
+
), t != null && t.params && Object.entries(t.params).forEach(([w, U]) => {
|
|
107
|
+
h.searchParams.set(w, U);
|
|
108
108
|
}), window.location.href = h.toString();
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
111
|
async function se(e) {
|
|
112
|
-
const t =
|
|
112
|
+
const t = E(), r = x(), n = H(), a = V(t.defaultProvider), c = a == null ? void 0 : a.logoutPath;
|
|
113
113
|
if (c && (e == null ? void 0 : e.callLogoutEndpoint) !== !1)
|
|
114
114
|
try {
|
|
115
115
|
await fetch(`${r}${c}`, {
|
|
@@ -122,86 +122,86 @@ async function se(e) {
|
|
|
122
122
|
}
|
|
123
123
|
e != null && e.redirectUrl ? window.location.href = e.redirectUrl : t.loginRedirectUrl && (window.location.href = t.loginRedirectUrl);
|
|
124
124
|
}
|
|
125
|
-
const
|
|
126
|
-
function
|
|
125
|
+
const z = ee(null), G = ["auth", "session"];
|
|
126
|
+
function ye({
|
|
127
127
|
children: e,
|
|
128
128
|
config: t,
|
|
129
129
|
onAuthChange: r,
|
|
130
130
|
onError: n,
|
|
131
|
-
loadingComponent:
|
|
131
|
+
loadingComponent: a,
|
|
132
132
|
unauthenticatedComponent: c,
|
|
133
133
|
skipInitialCheck: h = !1
|
|
134
134
|
}) {
|
|
135
|
-
const w =
|
|
136
|
-
t && !w.current && (
|
|
137
|
-
const
|
|
135
|
+
const w = L(!1);
|
|
136
|
+
t && !w.current && (ie(t), w.current = !0);
|
|
137
|
+
const U = re(), u = E(), {
|
|
138
138
|
data: i,
|
|
139
139
|
isLoading: f,
|
|
140
140
|
error: v,
|
|
141
141
|
refetch: A,
|
|
142
|
-
isFetching:
|
|
143
|
-
} =
|
|
144
|
-
queryKey:
|
|
145
|
-
queryFn:
|
|
142
|
+
isFetching: m
|
|
143
|
+
} = ne({
|
|
144
|
+
queryKey: G,
|
|
145
|
+
queryFn: ae,
|
|
146
146
|
enabled: !h,
|
|
147
|
-
retry: (o, y) => y instanceof
|
|
147
|
+
retry: (o, y) => y instanceof k && (y.statusCode === 401 || y.statusCode === 403) ? !1 : o < u.retry.count,
|
|
148
148
|
retryDelay: u.retry.delay,
|
|
149
149
|
staleTime: u.staleTime,
|
|
150
150
|
gcTime: u.staleTime * 2,
|
|
151
151
|
refetchOnWindowFocus: u.refetchOnWindowFocus ?? !0,
|
|
152
152
|
refetchOnReconnect: u.refetchOnReconnect ?? !0,
|
|
153
153
|
refetchInterval: u.sessionCheckInterval || !1
|
|
154
|
-
}), [S,
|
|
154
|
+
}), [S, P] = D(null), l = $(() => f || m ? "loading" : i != null && i.userDetails ? "authenticated" : "unauthenticated", [f, m, i]), s = (i == null ? void 0 : i.userDetails) || null, B = (i == null ? void 0 : i.staticBaseUrl) || null, I = (i == null ? void 0 : i.buildId) || null, O = l === "authenticated", b = L(r);
|
|
155
155
|
b.current = r;
|
|
156
|
-
const
|
|
157
|
-
|
|
156
|
+
const R = L(n);
|
|
157
|
+
R.current = n, p(() => {
|
|
158
158
|
var o;
|
|
159
|
-
f || (o = b.current) == null || o.call(b, l,
|
|
160
|
-
}, [l,
|
|
159
|
+
f || (o = b.current) == null || o.call(b, l, s);
|
|
160
|
+
}, [l, s, f]), p(() => {
|
|
161
161
|
var o;
|
|
162
|
-
v && (
|
|
163
|
-
}, [v]),
|
|
164
|
-
l === "unauthenticated" && u.autoRedirect && !f &&
|
|
162
|
+
v && (P(v), (o = R.current) == null || o.call(R, v));
|
|
163
|
+
}, [v]), p(() => {
|
|
164
|
+
l === "unauthenticated" && u.autoRedirect && !f && Y();
|
|
165
165
|
}, [l, f, u.autoRedirect]);
|
|
166
|
-
const
|
|
166
|
+
const T = g(
|
|
167
167
|
(o, y) => {
|
|
168
|
-
|
|
168
|
+
Y(o, y);
|
|
169
169
|
},
|
|
170
170
|
[]
|
|
171
171
|
), F = g(
|
|
172
172
|
async (o) => {
|
|
173
|
-
|
|
173
|
+
U.removeQueries({ queryKey: G }), await se(o);
|
|
174
174
|
},
|
|
175
|
-
[
|
|
176
|
-
),
|
|
177
|
-
if (
|
|
175
|
+
[U]
|
|
176
|
+
), j = g(async () => {
|
|
177
|
+
if (m)
|
|
178
178
|
return i || null;
|
|
179
179
|
try {
|
|
180
180
|
return (await A()).data || null;
|
|
181
181
|
} catch (o) {
|
|
182
|
-
return
|
|
182
|
+
return P(o), null;
|
|
183
183
|
}
|
|
184
|
-
}, [A,
|
|
185
|
-
(o) => (
|
|
186
|
-
[
|
|
184
|
+
}, [A, m, i]), q = g(
|
|
185
|
+
(o) => (s == null ? void 0 : s.Role) === o,
|
|
186
|
+
[s]
|
|
187
187
|
), Q = g(
|
|
188
|
-
(o) => o.includes((
|
|
189
|
-
[
|
|
188
|
+
(o) => o.includes((s == null ? void 0 : s.Role) || ""),
|
|
189
|
+
[s]
|
|
190
190
|
), K = g(() => {
|
|
191
|
-
|
|
191
|
+
P(null);
|
|
192
192
|
}, []), W = g(() => {
|
|
193
193
|
A();
|
|
194
|
-
}, [A]),
|
|
194
|
+
}, [A]), J = $(
|
|
195
195
|
() => ({
|
|
196
|
-
user:
|
|
197
|
-
staticBaseUrl:
|
|
198
|
-
buildId:
|
|
196
|
+
user: s,
|
|
197
|
+
staticBaseUrl: B,
|
|
198
|
+
buildId: I,
|
|
199
199
|
status: l,
|
|
200
|
-
isAuthenticated:
|
|
200
|
+
isAuthenticated: O,
|
|
201
201
|
isLoading: f,
|
|
202
|
-
login:
|
|
202
|
+
login: T,
|
|
203
203
|
logout: F,
|
|
204
|
-
refreshSession:
|
|
204
|
+
refreshSession: j,
|
|
205
205
|
hasRole: q,
|
|
206
206
|
hasAnyRole: Q,
|
|
207
207
|
error: S,
|
|
@@ -209,15 +209,15 @@ function we({
|
|
|
209
209
|
_forceCheck: W
|
|
210
210
|
}),
|
|
211
211
|
[
|
|
212
|
-
|
|
213
|
-
j,
|
|
212
|
+
s,
|
|
214
213
|
B,
|
|
215
|
-
l,
|
|
216
214
|
I,
|
|
217
|
-
|
|
215
|
+
l,
|
|
218
216
|
O,
|
|
219
|
-
|
|
217
|
+
f,
|
|
220
218
|
T,
|
|
219
|
+
F,
|
|
220
|
+
j,
|
|
221
221
|
q,
|
|
222
222
|
Q,
|
|
223
223
|
S,
|
|
@@ -225,17 +225,17 @@ function we({
|
|
|
225
225
|
W
|
|
226
226
|
]
|
|
227
227
|
);
|
|
228
|
-
return l === "loading" &&
|
|
228
|
+
return l === "loading" && a ? /* @__PURE__ */ C(N, { children: a }) : l === "unauthenticated" && !u.autoRedirect && c ? /* @__PURE__ */ C(N, { children: c }) : /* @__PURE__ */ C(z.Provider, { value: J, children: e });
|
|
229
229
|
}
|
|
230
|
-
function
|
|
231
|
-
const e =
|
|
230
|
+
function ce() {
|
|
231
|
+
const e = te(z);
|
|
232
232
|
if (!e)
|
|
233
233
|
throw new Error("useAuth must be used within an AuthProvider");
|
|
234
234
|
return e;
|
|
235
235
|
}
|
|
236
|
-
function
|
|
237
|
-
const e =
|
|
238
|
-
return
|
|
236
|
+
function Ue() {
|
|
237
|
+
const e = ce();
|
|
238
|
+
return $(
|
|
239
239
|
() => ({
|
|
240
240
|
user: e.user,
|
|
241
241
|
staticBaseUrl: e.staticBaseUrl,
|
|
@@ -269,12 +269,12 @@ function ye() {
|
|
|
269
269
|
);
|
|
270
270
|
}
|
|
271
271
|
export {
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
272
|
+
ye as AuthProvider,
|
|
273
|
+
k as AuthenticationError,
|
|
274
|
+
ie as configureAuth,
|
|
275
|
+
x as getAuthBaseUrl,
|
|
276
|
+
E as getAuthConfig,
|
|
277
|
+
we as resetAuthConfig,
|
|
278
|
+
ge as setAuthProvider,
|
|
279
|
+
Ue as useAuth
|
|
280
280
|
};
|
package/dist/kanban.ui.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),K=require("react"),t=require("./cn-mXUIg4vp.cjs");function p(a){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const n in a)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(a,n);Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>a[n]})}}return e.default=a,Object.freeze(e)}const r=p(K),l=r.forwardRef(({className:a,...e},n)=>o.jsx("div",{ref:n,className:t.cn("flex h-full flex-grow items-start gap-x-4 overflow-x-auto py-2",a),...e}));l.displayName="Kanban";const d=r.forwardRef(({className:a,...e},n)=>o.jsx("div",{ref:n,className:t.cn("flex h-full min-w-[300px] flex-col rounded-lg border bg-gray-50 p-3",a),...e}));d.displayName="KanbanColumn";const c=r.forwardRef(({className:a,...e},n)=>o.jsx("div",{ref:n,className:t.cn("mb-3 flex items-center justify-between",a),...e}));c.displayName="KanbanColumnHeader";const i=r.forwardRef(({className:a,...e},n)=>o.jsx("h3",{ref:n,className:t.cn("text-sm font-semibold text-gray-700",a),...e}));i.displayName="KanbanColumnTitle";const m=r.forwardRef(({className:a,...e},n)=>o.jsx("div",{ref:n,className:t.cn("flex-1 space-y-2 overflow-y-auto",a),...e}));m.displayName="KanbanColumnContent";const b=r.forwardRef(({className:a,...e},n)=>o.jsx("div",{ref:n,className:t.cn("rounded-lg border border-gray-200 bg-white p-3 shadow-sm hover:shadow-md transition-shadow cursor-move",a),...e}));b.displayName="KanbanCard";const f=r.forwardRef(({className:a,...e},n)=>o.jsx("div",{ref:n,className:t.cn("font-medium text-gray-900 mb-1",a),...e}));f.displayName="KanbanCardTitle";const u=r.forwardRef(({className:a,...e},n)=>o.jsx("div",{ref:n,className:t.cn("text-sm text-gray-600",a),...e}));u.displayName="KanbanCardDescription";const C=r.forwardRef(({className:a,...e},n)=>o.jsx("div",{ref:n,className:t.cn("mt-3 pt-3 border-t border-gray-200",a),...e}));C.displayName="KanbanColumnFooter";exports.Kanban=l;exports.KanbanCard=b;exports.KanbanCardDescription=u;exports.KanbanCardTitle=f;exports.KanbanColumn=d;exports.KanbanColumnContent=m;exports.KanbanColumnFooter=C;exports.KanbanColumnHeader=c;exports.KanbanColumnTitle=i;
|
package/dist/kanban.ui.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as
|
|
3
|
-
import { c as
|
|
4
|
-
const t =
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import { c as s } from "./cn-Dr87sK3i.js";
|
|
4
|
+
const t = r.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o(
|
|
5
5
|
"div",
|
|
6
6
|
{
|
|
7
7
|
ref: n,
|
|
8
|
-
className:
|
|
8
|
+
className: s(
|
|
9
9
|
"flex h-full flex-grow items-start gap-x-4 overflow-x-auto py-2",
|
|
10
10
|
a
|
|
11
11
|
),
|
|
@@ -13,11 +13,11 @@ const t = s.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o.jsx(
|
|
|
13
13
|
}
|
|
14
14
|
));
|
|
15
15
|
t.displayName = "Kanban";
|
|
16
|
-
const d =
|
|
16
|
+
const d = r.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o(
|
|
17
17
|
"div",
|
|
18
18
|
{
|
|
19
19
|
ref: n,
|
|
20
|
-
className:
|
|
20
|
+
className: s(
|
|
21
21
|
"flex h-full min-w-[300px] flex-col rounded-lg border bg-gray-50 p-3",
|
|
22
22
|
a
|
|
23
23
|
),
|
|
@@ -25,38 +25,38 @@ const d = s.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o.jsx(
|
|
|
25
25
|
}
|
|
26
26
|
));
|
|
27
27
|
d.displayName = "KanbanColumn";
|
|
28
|
-
const
|
|
28
|
+
const l = r.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o(
|
|
29
29
|
"div",
|
|
30
30
|
{
|
|
31
31
|
ref: n,
|
|
32
|
-
className:
|
|
32
|
+
className: s("mb-3 flex items-center justify-between", a),
|
|
33
33
|
...e
|
|
34
34
|
}
|
|
35
35
|
));
|
|
36
|
-
|
|
37
|
-
const
|
|
36
|
+
l.displayName = "KanbanColumnHeader";
|
|
37
|
+
const m = r.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o(
|
|
38
38
|
"h3",
|
|
39
39
|
{
|
|
40
40
|
ref: n,
|
|
41
|
-
className:
|
|
41
|
+
className: s("text-sm font-semibold text-gray-700", a),
|
|
42
42
|
...e
|
|
43
43
|
}
|
|
44
44
|
));
|
|
45
|
-
|
|
46
|
-
const i =
|
|
45
|
+
m.displayName = "KanbanColumnTitle";
|
|
46
|
+
const i = r.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o(
|
|
47
47
|
"div",
|
|
48
48
|
{
|
|
49
49
|
ref: n,
|
|
50
|
-
className:
|
|
50
|
+
className: s("flex-1 space-y-2 overflow-y-auto", a),
|
|
51
51
|
...e
|
|
52
52
|
}
|
|
53
53
|
));
|
|
54
54
|
i.displayName = "KanbanColumnContent";
|
|
55
|
-
const f =
|
|
55
|
+
const f = r.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o(
|
|
56
56
|
"div",
|
|
57
57
|
{
|
|
58
58
|
ref: n,
|
|
59
|
-
className:
|
|
59
|
+
className: s(
|
|
60
60
|
"rounded-lg border border-gray-200 bg-white p-3 shadow-sm hover:shadow-md transition-shadow cursor-move",
|
|
61
61
|
a
|
|
62
62
|
),
|
|
@@ -64,33 +64,33 @@ const f = s.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o.jsx(
|
|
|
64
64
|
}
|
|
65
65
|
));
|
|
66
66
|
f.displayName = "KanbanCard";
|
|
67
|
-
const b =
|
|
67
|
+
const b = r.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o(
|
|
68
68
|
"div",
|
|
69
69
|
{
|
|
70
70
|
ref: n,
|
|
71
|
-
className:
|
|
71
|
+
className: s("font-medium text-gray-900 mb-1", a),
|
|
72
72
|
...e
|
|
73
73
|
}
|
|
74
74
|
));
|
|
75
75
|
b.displayName = "KanbanCardTitle";
|
|
76
|
-
const c =
|
|
76
|
+
const c = r.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o(
|
|
77
77
|
"div",
|
|
78
78
|
{
|
|
79
79
|
ref: n,
|
|
80
|
-
className:
|
|
80
|
+
className: s("text-sm text-gray-600", a),
|
|
81
81
|
...e
|
|
82
82
|
}
|
|
83
83
|
));
|
|
84
84
|
c.displayName = "KanbanCardDescription";
|
|
85
|
-
const
|
|
85
|
+
const p = r.forwardRef(({ className: a, ...e }, n) => /* @__PURE__ */ o(
|
|
86
86
|
"div",
|
|
87
87
|
{
|
|
88
88
|
ref: n,
|
|
89
|
-
className:
|
|
89
|
+
className: s("mt-3 pt-3 border-t border-gray-200", a),
|
|
90
90
|
...e
|
|
91
91
|
}
|
|
92
92
|
));
|
|
93
|
-
|
|
93
|
+
p.displayName = "KanbanColumnFooter";
|
|
94
94
|
export {
|
|
95
95
|
t as Kanban,
|
|
96
96
|
f as KanbanCard,
|
|
@@ -98,7 +98,7 @@ export {
|
|
|
98
98
|
b as KanbanCardTitle,
|
|
99
99
|
d as KanbanColumn,
|
|
100
100
|
i as KanbanColumnContent,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
p as KanbanColumnFooter,
|
|
102
|
+
l as KanbanColumnHeader,
|
|
103
|
+
m as KanbanColumnTitle
|
|
104
104
|
};
|
package/package.json
CHANGED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";const Se=require("react");var X={exports:{}},k={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Te;function lr(){if(Te)return k;Te=1;var V=Se,C=Symbol.for("react.element"),M=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,F=V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,A={key:!0,ref:!0,__self:!0,__source:!0};function w(_,f,T){var p,E={},b=null,I=null;T!==void 0&&(b=""+T),f.key!==void 0&&(b=""+f.key),f.ref!==void 0&&(I=f.ref);for(p in f)m.call(f,p)&&!A.hasOwnProperty(p)&&(E[p]=f[p]);if(_&&_.defaultProps)for(p in f=_.defaultProps,f)E[p]===void 0&&(E[p]=f[p]);return{$$typeof:C,type:_,key:b,ref:I,props:E,_owner:F.current}}return k.Fragment=M,k.jsx=w,k.jsxs=w,k}var D={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.development.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Oe;function fr(){return Oe||(Oe=1,process.env.NODE_ENV!=="production"&&function(){var V=Se,C=Symbol.for("react.element"),M=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),_=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),H=Symbol.iterator,Pe="@@iterator";function Ce(e){if(e===null||typeof e!="object")return null;var r=H&&e[H]||e[Pe];return typeof r=="function"?r:null}var O=V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function c(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];we("error",e,t)}}function we(e,r,t){{var n=O.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var je=!1,xe=!1,ke=!1,De=!1,Fe=!1,Z;Z=Symbol.for("react.module.reference");function Ae(e){return!!(typeof e=="string"||typeof e=="function"||e===m||e===A||Fe||e===F||e===T||e===p||De||e===I||je||xe||ke||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===E||e.$$typeof===w||e.$$typeof===_||e.$$typeof===f||e.$$typeof===Z||e.getModuleId!==void 0))}function Ie(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function Q(e){return e.displayName||"Context"}function y(e){if(e==null)return null;if(typeof e.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case m:return"Fragment";case M:return"Portal";case A:return"Profiler";case F:return"StrictMode";case T:return"Suspense";case p:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var r=e;return Q(r)+".Consumer";case w:var t=e;return Q(t._context)+".Provider";case f:return Ie(e,e.render,"ForwardRef");case E:var n=e.displayName||null;return n!==null?n:y(e.type)||"Memo";case b:{var o=e,u=o._payload,i=o._init;try{return y(i(u))}catch{return null}}}return null}var R=Object.assign,j=0,ee,re,te,ne,ae,ie,oe;function ue(){}ue.__reactDisabledLog=!0;function $e(){{if(j===0){ee=console.log,re=console.info,te=console.warn,ne=console.error,ae=console.group,ie=console.groupCollapsed,oe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ue,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}j++}}function We(){{if(j--,j===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},e,{value:ee}),info:R({},e,{value:re}),warn:R({},e,{value:te}),error:R({},e,{value:ne}),group:R({},e,{value:ae}),groupCollapsed:R({},e,{value:ie}),groupEnd:R({},e,{value:oe})})}j<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var U=O.ReactCurrentDispatcher,N;function $(e,r,t){{if(N===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);N=n&&n[1]||""}return`
|
|
18
|
-
`+N+e}}var B=!1,W;{var Ye=typeof WeakMap=="function"?WeakMap:Map;W=new Ye}function se(e,r){if(!e||B)return"";{var t=W.get(e);if(t!==void 0)return t}var n;B=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=U.current,U.current=null,$e();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(d){n=d}Reflect.construct(e,[],i)}else{try{i.call()}catch(d){n=d}e.call(i.prototype)}}else{try{throw Error()}catch(d){n=d}e()}}catch(d){if(d&&n&&typeof d.stack=="string"){for(var a=d.stack.split(`
|
|
19
|
-
`),v=n.stack.split(`
|
|
20
|
-
`),s=a.length-1,l=v.length-1;s>=1&&l>=0&&a[s]!==v[l];)l--;for(;s>=1&&l>=0;s--,l--)if(a[s]!==v[l]){if(s!==1||l!==1)do if(s--,l--,l<0||a[s]!==v[l]){var g=`
|
|
21
|
-
`+a[s].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),typeof e=="function"&&W.set(e,g),g}while(s>=1&&l>=0);break}}}finally{B=!1,U.current=u,We(),Error.prepareStackTrace=o}var P=e?e.displayName||e.name:"",h=P?$(P):"";return typeof e=="function"&&W.set(e,h),h}function Le(e,r,t){return se(e,!1)}function Ve(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function Y(e,r,t){if(e==null)return"";if(typeof e=="function")return se(e,Ve(e));if(typeof e=="string")return $(e);switch(e){case T:return $("Suspense");case p:return $("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return Le(e.render);case E:return Y(e.type,r,t);case b:{var n=e,o=n._payload,u=n._init;try{return Y(u(o),r,t)}catch{}}}return""}var x=Object.prototype.hasOwnProperty,le={},fe=O.ReactDebugCurrentFrame;function L(e){if(e){var r=e._owner,t=Y(e.type,e._source,r?r.type:null);fe.setExtraStackFrame(t)}else fe.setExtraStackFrame(null)}function Me(e,r,t,n,o){{var u=Function.call.bind(x);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var v=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(L(o),c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),L(null)),a instanceof Error&&!(a.message in le)&&(le[a.message]=!0,L(o),c("Failed %s type: %s",t,a.message),L(null))}}}var Ue=Array.isArray;function J(e){return Ue(e)}function Ne(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Be(e){try{return ce(e),!1}catch{return!0}}function ce(e){return""+e}function ve(e){if(Be(e))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ne(e)),ce(e)}var de=O.ReactCurrentOwner,Je={key:!0,ref:!0,__self:!0,__source:!0},pe,ge;function qe(e){if(x.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ke(e){if(x.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Ge(e,r){typeof e.ref=="string"&&de.current}function ze(e,r){{var t=function(){pe||(pe=!0,c("%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://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function Xe(e,r){{var t=function(){ge||(ge=!0,c("%s: `ref` 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://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var He=function(e,r,t,n,o,u,i){var a={$$typeof:C,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function Ze(e,r,t,n,o){{var u,i={},a=null,v=null;t!==void 0&&(ve(t),a=""+t),Ke(r)&&(ve(r.key),a=""+r.key),qe(r)&&(v=r.ref,Ge(r,o));for(u in r)x.call(r,u)&&!Je.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)i[u]===void 0&&(i[u]=s[u])}if(a||v){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&ze(i,l),v&&Xe(i,l)}return He(e,a,v,o,n,de.current,i)}}var q=O.ReactCurrentOwner,Ee=O.ReactDebugCurrentFrame;function S(e){if(e){var r=e._owner,t=Y(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}var K;K=!1;function G(e){return typeof e=="object"&&e!==null&&e.$$typeof===C}function ye(){{if(q.current){var e=y(q.current.type);if(e)return`
|
|
22
|
-
|
|
23
|
-
Check the render method of \``+e+"`."}return""}}function Qe(e){return""}var _e={};function er(e){{var r=ye();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
24
|
-
|
|
25
|
-
Check the top-level render call using <`+t+">.")}return r}}function be(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=er(r);if(_e[t])return;_e[t]=!0;var n="";e&&e._owner&&e._owner!==q.current&&(n=" It was passed a child from "+y(e._owner.type)+"."),S(e),c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),S(null)}}function Re(e,r){{if(typeof e!="object")return;if(J(e))for(var t=0;t<e.length;t++){var n=e[t];G(n)&&be(n,r)}else if(G(e))e._store&&(e._store.validated=!0);else if(e){var o=Ce(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)G(i.value)&&be(i.value,r)}}}function rr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===f||r.$$typeof===E))t=r.propTypes;else return;if(t){var n=y(r);Me(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!K){K=!0;var o=y(r);c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function tr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){S(e),c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),S(null);break}}e.ref!==null&&(S(e),c("Invalid attribute `ref` supplied to `React.Fragment`."),S(null))}}var he={};function me(e,r,t,n,o,u){{var i=Ae(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var v=Qe();v?a+=v:a+=ye();var s;e===null?s="null":J(e)?s="array":e!==void 0&&e.$$typeof===C?(s="<"+(y(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var l=Ze(e,r,t,o,u);if(l==null)return l;if(i){var g=r.children;if(g!==void 0)if(n)if(J(g)){for(var P=0;P<g.length;P++)Re(g[P],e);Object.freeze&&Object.freeze(g)}else c("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 Re(g,e)}if(x.call(r,"key")){var h=y(e),d=Object.keys(r).filter(function(sr){return sr!=="key"}),z=d.length>0?"{key: someKey, "+d.join(": ..., ")+": ...}":"{key: someKey}";if(!he[h+z]){var ur=d.length>0?"{"+d.join(": ..., ")+": ...}":"{}";c(`A props object containing a "key" prop is being spread into JSX:
|
|
26
|
-
let props = %s;
|
|
27
|
-
<%s {...props} />
|
|
28
|
-
React keys must be passed directly to JSX without using spread:
|
|
29
|
-
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,z,h,ur,h),he[h+z]=!0}}return e===m?tr(l):rr(l),l}}function nr(e,r,t){return me(e,r,t,!0)}function ar(e,r,t){return me(e,r,t,!1)}var ir=ar,or=nr;D.Fragment=m,D.jsx=ir,D.jsxs=or}()),D}process.env.NODE_ENV==="production"?X.exports=lr():X.exports=fr();var cr=X.exports;exports.jsxRuntimeExports=cr;
|
|
@@ -1,630 +0,0 @@
|
|
|
1
|
-
import Se from "react";
|
|
2
|
-
var X = { exports: {} }, k = {};
|
|
3
|
-
/**
|
|
4
|
-
* @license React
|
|
5
|
-
* react-jsx-runtime.production.min.js
|
|
6
|
-
*
|
|
7
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
8
|
-
*
|
|
9
|
-
* This source code is licensed under the MIT license found in the
|
|
10
|
-
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/
|
|
12
|
-
var Te;
|
|
13
|
-
function lr() {
|
|
14
|
-
if (Te) return k;
|
|
15
|
-
Te = 1;
|
|
16
|
-
var V = Se, C = Symbol.for("react.element"), M = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, F = V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, A = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
-
function w(y, f, T) {
|
|
18
|
-
var p, _ = {}, b = null, I = null;
|
|
19
|
-
T !== void 0 && (b = "" + T), f.key !== void 0 && (b = "" + f.key), f.ref !== void 0 && (I = f.ref);
|
|
20
|
-
for (p in f) m.call(f, p) && !A.hasOwnProperty(p) && (_[p] = f[p]);
|
|
21
|
-
if (y && y.defaultProps) for (p in f = y.defaultProps, f) _[p] === void 0 && (_[p] = f[p]);
|
|
22
|
-
return { $$typeof: C, type: y, key: b, ref: I, props: _, _owner: F.current };
|
|
23
|
-
}
|
|
24
|
-
return k.Fragment = M, k.jsx = w, k.jsxs = w, k;
|
|
25
|
-
}
|
|
26
|
-
var D = {};
|
|
27
|
-
/**
|
|
28
|
-
* @license React
|
|
29
|
-
* react-jsx-runtime.development.js
|
|
30
|
-
*
|
|
31
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
32
|
-
*
|
|
33
|
-
* This source code is licensed under the MIT license found in the
|
|
34
|
-
* LICENSE file in the root directory of this source tree.
|
|
35
|
-
*/
|
|
36
|
-
var Oe;
|
|
37
|
-
function fr() {
|
|
38
|
-
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
-
var V = Se, C = Symbol.for("react.element"), M = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), F = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), w = Symbol.for("react.provider"), y = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), I = Symbol.for("react.offscreen"), H = Symbol.iterator, Pe = "@@iterator";
|
|
40
|
-
function Ce(e) {
|
|
41
|
-
if (e === null || typeof e != "object")
|
|
42
|
-
return null;
|
|
43
|
-
var r = H && e[H] || e[Pe];
|
|
44
|
-
return typeof r == "function" ? r : null;
|
|
45
|
-
}
|
|
46
|
-
var O = V.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
-
function c(e) {
|
|
48
|
-
{
|
|
49
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
50
|
-
t[n - 1] = arguments[n];
|
|
51
|
-
we("error", e, t);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
function we(e, r, t) {
|
|
55
|
-
{
|
|
56
|
-
var n = O.ReactDebugCurrentFrame, o = n.getStackAddendum();
|
|
57
|
-
o !== "" && (r += "%s", t = t.concat([o]));
|
|
58
|
-
var u = t.map(function(i) {
|
|
59
|
-
return String(i);
|
|
60
|
-
});
|
|
61
|
-
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
var je = !1, xe = !1, ke = !1, De = !1, Fe = !1, Z;
|
|
65
|
-
Z = Symbol.for("react.module.reference");
|
|
66
|
-
function Ae(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e === m || e === A || Fe || e === F || e === T || e === p || De || e === I || je || xe || ke || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === _ || e.$$typeof === w || e.$$typeof === y || e.$$typeof === f || // This needs to include all possible module reference object
|
|
68
|
-
// types supported by any Flight configuration anywhere since
|
|
69
|
-
// we don't know which Flight build this will end up being used
|
|
70
|
-
// with.
|
|
71
|
-
e.$$typeof === Z || e.getModuleId !== void 0));
|
|
72
|
-
}
|
|
73
|
-
function Ie(e, r, t) {
|
|
74
|
-
var n = e.displayName;
|
|
75
|
-
if (n)
|
|
76
|
-
return n;
|
|
77
|
-
var o = r.displayName || r.name || "";
|
|
78
|
-
return o !== "" ? t + "(" + o + ")" : t;
|
|
79
|
-
}
|
|
80
|
-
function Q(e) {
|
|
81
|
-
return e.displayName || "Context";
|
|
82
|
-
}
|
|
83
|
-
function E(e) {
|
|
84
|
-
if (e == null)
|
|
85
|
-
return null;
|
|
86
|
-
if (typeof e.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
87
|
-
return e.displayName || e.name || null;
|
|
88
|
-
if (typeof e == "string")
|
|
89
|
-
return e;
|
|
90
|
-
switch (e) {
|
|
91
|
-
case m:
|
|
92
|
-
return "Fragment";
|
|
93
|
-
case M:
|
|
94
|
-
return "Portal";
|
|
95
|
-
case A:
|
|
96
|
-
return "Profiler";
|
|
97
|
-
case F:
|
|
98
|
-
return "StrictMode";
|
|
99
|
-
case T:
|
|
100
|
-
return "Suspense";
|
|
101
|
-
case p:
|
|
102
|
-
return "SuspenseList";
|
|
103
|
-
}
|
|
104
|
-
if (typeof e == "object")
|
|
105
|
-
switch (e.$$typeof) {
|
|
106
|
-
case y:
|
|
107
|
-
var r = e;
|
|
108
|
-
return Q(r) + ".Consumer";
|
|
109
|
-
case w:
|
|
110
|
-
var t = e;
|
|
111
|
-
return Q(t._context) + ".Provider";
|
|
112
|
-
case f:
|
|
113
|
-
return Ie(e, e.render, "ForwardRef");
|
|
114
|
-
case _:
|
|
115
|
-
var n = e.displayName || null;
|
|
116
|
-
return n !== null ? n : E(e.type) || "Memo";
|
|
117
|
-
case b: {
|
|
118
|
-
var o = e, u = o._payload, i = o._init;
|
|
119
|
-
try {
|
|
120
|
-
return E(i(u));
|
|
121
|
-
} catch {
|
|
122
|
-
return null;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
return null;
|
|
127
|
-
}
|
|
128
|
-
var h = Object.assign, j = 0, ee, re, te, ne, ae, ie, oe;
|
|
129
|
-
function ue() {
|
|
130
|
-
}
|
|
131
|
-
ue.__reactDisabledLog = !0;
|
|
132
|
-
function We() {
|
|
133
|
-
{
|
|
134
|
-
if (j === 0) {
|
|
135
|
-
ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, ie = console.groupCollapsed, oe = console.groupEnd;
|
|
136
|
-
var e = {
|
|
137
|
-
configurable: !0,
|
|
138
|
-
enumerable: !0,
|
|
139
|
-
value: ue,
|
|
140
|
-
writable: !0
|
|
141
|
-
};
|
|
142
|
-
Object.defineProperties(console, {
|
|
143
|
-
info: e,
|
|
144
|
-
log: e,
|
|
145
|
-
warn: e,
|
|
146
|
-
error: e,
|
|
147
|
-
group: e,
|
|
148
|
-
groupCollapsed: e,
|
|
149
|
-
groupEnd: e
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
j++;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
function Ye() {
|
|
156
|
-
{
|
|
157
|
-
if (j--, j === 0) {
|
|
158
|
-
var e = {
|
|
159
|
-
configurable: !0,
|
|
160
|
-
enumerable: !0,
|
|
161
|
-
writable: !0
|
|
162
|
-
};
|
|
163
|
-
Object.defineProperties(console, {
|
|
164
|
-
log: h({}, e, {
|
|
165
|
-
value: ee
|
|
166
|
-
}),
|
|
167
|
-
info: h({}, e, {
|
|
168
|
-
value: re
|
|
169
|
-
}),
|
|
170
|
-
warn: h({}, e, {
|
|
171
|
-
value: te
|
|
172
|
-
}),
|
|
173
|
-
error: h({}, e, {
|
|
174
|
-
value: ne
|
|
175
|
-
}),
|
|
176
|
-
group: h({}, e, {
|
|
177
|
-
value: ae
|
|
178
|
-
}),
|
|
179
|
-
groupCollapsed: h({}, e, {
|
|
180
|
-
value: ie
|
|
181
|
-
}),
|
|
182
|
-
groupEnd: h({}, e, {
|
|
183
|
-
value: oe
|
|
184
|
-
})
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
j < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
var U = O.ReactCurrentDispatcher, N;
|
|
191
|
-
function W(e, r, t) {
|
|
192
|
-
{
|
|
193
|
-
if (N === void 0)
|
|
194
|
-
try {
|
|
195
|
-
throw Error();
|
|
196
|
-
} catch (o) {
|
|
197
|
-
var n = o.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
-
N = n && n[1] || "";
|
|
199
|
-
}
|
|
200
|
-
return `
|
|
201
|
-
` + N + e;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
var B = !1, Y;
|
|
205
|
-
{
|
|
206
|
-
var $e = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
-
Y = new $e();
|
|
208
|
-
}
|
|
209
|
-
function se(e, r) {
|
|
210
|
-
if (!e || B)
|
|
211
|
-
return "";
|
|
212
|
-
{
|
|
213
|
-
var t = Y.get(e);
|
|
214
|
-
if (t !== void 0)
|
|
215
|
-
return t;
|
|
216
|
-
}
|
|
217
|
-
var n;
|
|
218
|
-
B = !0;
|
|
219
|
-
var o = Error.prepareStackTrace;
|
|
220
|
-
Error.prepareStackTrace = void 0;
|
|
221
|
-
var u;
|
|
222
|
-
u = U.current, U.current = null, We();
|
|
223
|
-
try {
|
|
224
|
-
if (r) {
|
|
225
|
-
var i = function() {
|
|
226
|
-
throw Error();
|
|
227
|
-
};
|
|
228
|
-
if (Object.defineProperty(i.prototype, "props", {
|
|
229
|
-
set: function() {
|
|
230
|
-
throw Error();
|
|
231
|
-
}
|
|
232
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
|
-
try {
|
|
234
|
-
Reflect.construct(i, []);
|
|
235
|
-
} catch (d) {
|
|
236
|
-
n = d;
|
|
237
|
-
}
|
|
238
|
-
Reflect.construct(e, [], i);
|
|
239
|
-
} else {
|
|
240
|
-
try {
|
|
241
|
-
i.call();
|
|
242
|
-
} catch (d) {
|
|
243
|
-
n = d;
|
|
244
|
-
}
|
|
245
|
-
e.call(i.prototype);
|
|
246
|
-
}
|
|
247
|
-
} else {
|
|
248
|
-
try {
|
|
249
|
-
throw Error();
|
|
250
|
-
} catch (d) {
|
|
251
|
-
n = d;
|
|
252
|
-
}
|
|
253
|
-
e();
|
|
254
|
-
}
|
|
255
|
-
} catch (d) {
|
|
256
|
-
if (d && n && typeof d.stack == "string") {
|
|
257
|
-
for (var a = d.stack.split(`
|
|
258
|
-
`), v = n.stack.split(`
|
|
259
|
-
`), s = a.length - 1, l = v.length - 1; s >= 1 && l >= 0 && a[s] !== v[l]; )
|
|
260
|
-
l--;
|
|
261
|
-
for (; s >= 1 && l >= 0; s--, l--)
|
|
262
|
-
if (a[s] !== v[l]) {
|
|
263
|
-
if (s !== 1 || l !== 1)
|
|
264
|
-
do
|
|
265
|
-
if (s--, l--, l < 0 || a[s] !== v[l]) {
|
|
266
|
-
var g = `
|
|
267
|
-
` + a[s].replace(" at new ", " at ");
|
|
268
|
-
return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, g), g;
|
|
269
|
-
}
|
|
270
|
-
while (s >= 1 && l >= 0);
|
|
271
|
-
break;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
} finally {
|
|
275
|
-
B = !1, U.current = u, Ye(), Error.prepareStackTrace = o;
|
|
276
|
-
}
|
|
277
|
-
var P = e ? e.displayName || e.name : "", R = P ? W(P) : "";
|
|
278
|
-
return typeof e == "function" && Y.set(e, R), R;
|
|
279
|
-
}
|
|
280
|
-
function Le(e, r, t) {
|
|
281
|
-
return se(e, !1);
|
|
282
|
-
}
|
|
283
|
-
function Ve(e) {
|
|
284
|
-
var r = e.prototype;
|
|
285
|
-
return !!(r && r.isReactComponent);
|
|
286
|
-
}
|
|
287
|
-
function $(e, r, t) {
|
|
288
|
-
if (e == null)
|
|
289
|
-
return "";
|
|
290
|
-
if (typeof e == "function")
|
|
291
|
-
return se(e, Ve(e));
|
|
292
|
-
if (typeof e == "string")
|
|
293
|
-
return W(e);
|
|
294
|
-
switch (e) {
|
|
295
|
-
case T:
|
|
296
|
-
return W("Suspense");
|
|
297
|
-
case p:
|
|
298
|
-
return W("SuspenseList");
|
|
299
|
-
}
|
|
300
|
-
if (typeof e == "object")
|
|
301
|
-
switch (e.$$typeof) {
|
|
302
|
-
case f:
|
|
303
|
-
return Le(e.render);
|
|
304
|
-
case _:
|
|
305
|
-
return $(e.type, r, t);
|
|
306
|
-
case b: {
|
|
307
|
-
var n = e, o = n._payload, u = n._init;
|
|
308
|
-
try {
|
|
309
|
-
return $(u(o), r, t);
|
|
310
|
-
} catch {
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
return "";
|
|
315
|
-
}
|
|
316
|
-
var x = Object.prototype.hasOwnProperty, le = {}, fe = O.ReactDebugCurrentFrame;
|
|
317
|
-
function L(e) {
|
|
318
|
-
if (e) {
|
|
319
|
-
var r = e._owner, t = $(e.type, e._source, r ? r.type : null);
|
|
320
|
-
fe.setExtraStackFrame(t);
|
|
321
|
-
} else
|
|
322
|
-
fe.setExtraStackFrame(null);
|
|
323
|
-
}
|
|
324
|
-
function Me(e, r, t, n, o) {
|
|
325
|
-
{
|
|
326
|
-
var u = Function.call.bind(x);
|
|
327
|
-
for (var i in e)
|
|
328
|
-
if (u(e, i)) {
|
|
329
|
-
var a = void 0;
|
|
330
|
-
try {
|
|
331
|
-
if (typeof e[i] != "function") {
|
|
332
|
-
var v = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
|
-
throw v.name = "Invariant Violation", v;
|
|
334
|
-
}
|
|
335
|
-
a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
-
} catch (s) {
|
|
337
|
-
a = s;
|
|
338
|
-
}
|
|
339
|
-
a && !(a instanceof Error) && (L(o), c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), L(null)), a instanceof Error && !(a.message in le) && (le[a.message] = !0, L(o), c("Failed %s type: %s", t, a.message), L(null));
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
var Ue = Array.isArray;
|
|
344
|
-
function J(e) {
|
|
345
|
-
return Ue(e);
|
|
346
|
-
}
|
|
347
|
-
function Ne(e) {
|
|
348
|
-
{
|
|
349
|
-
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
350
|
-
return t;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
function Be(e) {
|
|
354
|
-
try {
|
|
355
|
-
return ce(e), !1;
|
|
356
|
-
} catch {
|
|
357
|
-
return !0;
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
function ce(e) {
|
|
361
|
-
return "" + e;
|
|
362
|
-
}
|
|
363
|
-
function ve(e) {
|
|
364
|
-
if (Be(e))
|
|
365
|
-
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ne(e)), ce(e);
|
|
366
|
-
}
|
|
367
|
-
var de = O.ReactCurrentOwner, Je = {
|
|
368
|
-
key: !0,
|
|
369
|
-
ref: !0,
|
|
370
|
-
__self: !0,
|
|
371
|
-
__source: !0
|
|
372
|
-
}, pe, ge;
|
|
373
|
-
function Ke(e) {
|
|
374
|
-
if (x.call(e, "ref")) {
|
|
375
|
-
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
376
|
-
if (r && r.isReactWarning)
|
|
377
|
-
return !1;
|
|
378
|
-
}
|
|
379
|
-
return e.ref !== void 0;
|
|
380
|
-
}
|
|
381
|
-
function qe(e) {
|
|
382
|
-
if (x.call(e, "key")) {
|
|
383
|
-
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
384
|
-
if (r && r.isReactWarning)
|
|
385
|
-
return !1;
|
|
386
|
-
}
|
|
387
|
-
return e.key !== void 0;
|
|
388
|
-
}
|
|
389
|
-
function Ge(e, r) {
|
|
390
|
-
typeof e.ref == "string" && de.current;
|
|
391
|
-
}
|
|
392
|
-
function ze(e, r) {
|
|
393
|
-
{
|
|
394
|
-
var t = function() {
|
|
395
|
-
pe || (pe = !0, c("%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://reactjs.org/link/special-props)", r));
|
|
396
|
-
};
|
|
397
|
-
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
398
|
-
get: t,
|
|
399
|
-
configurable: !0
|
|
400
|
-
});
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
function Xe(e, r) {
|
|
404
|
-
{
|
|
405
|
-
var t = function() {
|
|
406
|
-
ge || (ge = !0, c("%s: `ref` 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://reactjs.org/link/special-props)", r));
|
|
407
|
-
};
|
|
408
|
-
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
409
|
-
get: t,
|
|
410
|
-
configurable: !0
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
var He = function(e, r, t, n, o, u, i) {
|
|
415
|
-
var a = {
|
|
416
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
417
|
-
$$typeof: C,
|
|
418
|
-
// Built-in properties that belong on the element
|
|
419
|
-
type: e,
|
|
420
|
-
key: r,
|
|
421
|
-
ref: t,
|
|
422
|
-
props: i,
|
|
423
|
-
// Record the component responsible for creating this element.
|
|
424
|
-
_owner: u
|
|
425
|
-
};
|
|
426
|
-
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
427
|
-
configurable: !1,
|
|
428
|
-
enumerable: !1,
|
|
429
|
-
writable: !0,
|
|
430
|
-
value: !1
|
|
431
|
-
}), Object.defineProperty(a, "_self", {
|
|
432
|
-
configurable: !1,
|
|
433
|
-
enumerable: !1,
|
|
434
|
-
writable: !1,
|
|
435
|
-
value: n
|
|
436
|
-
}), Object.defineProperty(a, "_source", {
|
|
437
|
-
configurable: !1,
|
|
438
|
-
enumerable: !1,
|
|
439
|
-
writable: !1,
|
|
440
|
-
value: o
|
|
441
|
-
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
442
|
-
};
|
|
443
|
-
function Ze(e, r, t, n, o) {
|
|
444
|
-
{
|
|
445
|
-
var u, i = {}, a = null, v = null;
|
|
446
|
-
t !== void 0 && (ve(t), a = "" + t), qe(r) && (ve(r.key), a = "" + r.key), Ke(r) && (v = r.ref, Ge(r, o));
|
|
447
|
-
for (u in r)
|
|
448
|
-
x.call(r, u) && !Je.hasOwnProperty(u) && (i[u] = r[u]);
|
|
449
|
-
if (e && e.defaultProps) {
|
|
450
|
-
var s = e.defaultProps;
|
|
451
|
-
for (u in s)
|
|
452
|
-
i[u] === void 0 && (i[u] = s[u]);
|
|
453
|
-
}
|
|
454
|
-
if (a || v) {
|
|
455
|
-
var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
-
a && ze(i, l), v && Xe(i, l);
|
|
457
|
-
}
|
|
458
|
-
return He(e, a, v, o, n, de.current, i);
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
var K = O.ReactCurrentOwner, _e = O.ReactDebugCurrentFrame;
|
|
462
|
-
function S(e) {
|
|
463
|
-
if (e) {
|
|
464
|
-
var r = e._owner, t = $(e.type, e._source, r ? r.type : null);
|
|
465
|
-
_e.setExtraStackFrame(t);
|
|
466
|
-
} else
|
|
467
|
-
_e.setExtraStackFrame(null);
|
|
468
|
-
}
|
|
469
|
-
var q;
|
|
470
|
-
q = !1;
|
|
471
|
-
function G(e) {
|
|
472
|
-
return typeof e == "object" && e !== null && e.$$typeof === C;
|
|
473
|
-
}
|
|
474
|
-
function Ee() {
|
|
475
|
-
{
|
|
476
|
-
if (K.current) {
|
|
477
|
-
var e = E(K.current.type);
|
|
478
|
-
if (e)
|
|
479
|
-
return `
|
|
480
|
-
|
|
481
|
-
Check the render method of \`` + e + "`.";
|
|
482
|
-
}
|
|
483
|
-
return "";
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
function Qe(e) {
|
|
487
|
-
return "";
|
|
488
|
-
}
|
|
489
|
-
var ye = {};
|
|
490
|
-
function er(e) {
|
|
491
|
-
{
|
|
492
|
-
var r = Ee();
|
|
493
|
-
if (!r) {
|
|
494
|
-
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
495
|
-
t && (r = `
|
|
496
|
-
|
|
497
|
-
Check the top-level render call using <` + t + ">.");
|
|
498
|
-
}
|
|
499
|
-
return r;
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
function be(e, r) {
|
|
503
|
-
{
|
|
504
|
-
if (!e._store || e._store.validated || e.key != null)
|
|
505
|
-
return;
|
|
506
|
-
e._store.validated = !0;
|
|
507
|
-
var t = er(r);
|
|
508
|
-
if (ye[t])
|
|
509
|
-
return;
|
|
510
|
-
ye[t] = !0;
|
|
511
|
-
var n = "";
|
|
512
|
-
e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + E(e._owner.type) + "."), S(e), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), S(null);
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
function he(e, r) {
|
|
516
|
-
{
|
|
517
|
-
if (typeof e != "object")
|
|
518
|
-
return;
|
|
519
|
-
if (J(e))
|
|
520
|
-
for (var t = 0; t < e.length; t++) {
|
|
521
|
-
var n = e[t];
|
|
522
|
-
G(n) && be(n, r);
|
|
523
|
-
}
|
|
524
|
-
else if (G(e))
|
|
525
|
-
e._store && (e._store.validated = !0);
|
|
526
|
-
else if (e) {
|
|
527
|
-
var o = Ce(e);
|
|
528
|
-
if (typeof o == "function" && o !== e.entries)
|
|
529
|
-
for (var u = o.call(e), i; !(i = u.next()).done; )
|
|
530
|
-
G(i.value) && be(i.value, r);
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
function rr(e) {
|
|
535
|
-
{
|
|
536
|
-
var r = e.type;
|
|
537
|
-
if (r == null || typeof r == "string")
|
|
538
|
-
return;
|
|
539
|
-
var t;
|
|
540
|
-
if (typeof r == "function")
|
|
541
|
-
t = r.propTypes;
|
|
542
|
-
else if (typeof r == "object" && (r.$$typeof === f || // Note: Memo only checks outer props here.
|
|
543
|
-
// Inner props are checked in the reconciler.
|
|
544
|
-
r.$$typeof === _))
|
|
545
|
-
t = r.propTypes;
|
|
546
|
-
else
|
|
547
|
-
return;
|
|
548
|
-
if (t) {
|
|
549
|
-
var n = E(r);
|
|
550
|
-
Me(t, e.props, "prop", n, e);
|
|
551
|
-
} else if (r.PropTypes !== void 0 && !q) {
|
|
552
|
-
q = !0;
|
|
553
|
-
var o = E(r);
|
|
554
|
-
c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
|
|
555
|
-
}
|
|
556
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
function tr(e) {
|
|
560
|
-
{
|
|
561
|
-
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
562
|
-
var n = r[t];
|
|
563
|
-
if (n !== "children" && n !== "key") {
|
|
564
|
-
S(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), S(null);
|
|
565
|
-
break;
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
e.ref !== null && (S(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), S(null));
|
|
569
|
-
}
|
|
570
|
-
}
|
|
571
|
-
var Re = {};
|
|
572
|
-
function me(e, r, t, n, o, u) {
|
|
573
|
-
{
|
|
574
|
-
var i = Ae(e);
|
|
575
|
-
if (!i) {
|
|
576
|
-
var a = "";
|
|
577
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
578
|
-
var v = Qe();
|
|
579
|
-
v ? a += v : a += Ee();
|
|
580
|
-
var s;
|
|
581
|
-
e === null ? s = "null" : J(e) ? s = "array" : e !== void 0 && e.$$typeof === C ? (s = "<" + (E(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
|
|
582
|
-
}
|
|
583
|
-
var l = Ze(e, r, t, o, u);
|
|
584
|
-
if (l == null)
|
|
585
|
-
return l;
|
|
586
|
-
if (i) {
|
|
587
|
-
var g = r.children;
|
|
588
|
-
if (g !== void 0)
|
|
589
|
-
if (n)
|
|
590
|
-
if (J(g)) {
|
|
591
|
-
for (var P = 0; P < g.length; P++)
|
|
592
|
-
he(g[P], e);
|
|
593
|
-
Object.freeze && Object.freeze(g);
|
|
594
|
-
} else
|
|
595
|
-
c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
596
|
-
else
|
|
597
|
-
he(g, e);
|
|
598
|
-
}
|
|
599
|
-
if (x.call(r, "key")) {
|
|
600
|
-
var R = E(e), d = Object.keys(r).filter(function(sr) {
|
|
601
|
-
return sr !== "key";
|
|
602
|
-
}), z = d.length > 0 ? "{key: someKey, " + d.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
-
if (!Re[R + z]) {
|
|
604
|
-
var ur = d.length > 0 ? "{" + d.join(": ..., ") + ": ...}" : "{}";
|
|
605
|
-
c(`A props object containing a "key" prop is being spread into JSX:
|
|
606
|
-
let props = %s;
|
|
607
|
-
<%s {...props} />
|
|
608
|
-
React keys must be passed directly to JSX without using spread:
|
|
609
|
-
let props = %s;
|
|
610
|
-
<%s key={someKey} {...props} />`, z, R, ur, R), Re[R + z] = !0;
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
return e === m ? tr(l) : rr(l), l;
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
function nr(e, r, t) {
|
|
617
|
-
return me(e, r, t, !0);
|
|
618
|
-
}
|
|
619
|
-
function ar(e, r, t) {
|
|
620
|
-
return me(e, r, t, !1);
|
|
621
|
-
}
|
|
622
|
-
var ir = ar, or = nr;
|
|
623
|
-
D.Fragment = m, D.jsx = ir, D.jsxs = or;
|
|
624
|
-
}()), D;
|
|
625
|
-
}
|
|
626
|
-
process.env.NODE_ENV === "production" ? X.exports = lr() : X.exports = fr();
|
|
627
|
-
var vr = X.exports;
|
|
628
|
-
export {
|
|
629
|
-
vr as j
|
|
630
|
-
};
|