@ahoo-wang/fetcher-viewer 2.9.0 → 2.9.1

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/index.es.js CHANGED
@@ -1,9 +1,686 @@
1
- class r {
1
+ var mr = Object.defineProperty;
2
+ var a = (l, t) => mr(l, "name", { value: t, configurable: !0 });
3
+ import ne, { useState as Tr } from "react";
4
+ import { c as J } from "react-compiler-runtime";
5
+ import { Alert as br, Select as K, Input as Or, Button as Sr, Space as Cr } from "antd";
6
+ import { Operator as W } from "@ahoo-wang/fetcher-wow";
7
+ var B = { exports: {} }, $ = {};
8
+ /**
9
+ * @license React
10
+ * react-jsx-runtime.production.min.js
11
+ *
12
+ * Copyright (c) Facebook, Inc. and its affiliates.
13
+ *
14
+ * This source code is licensed under the MIT license found in the
15
+ * LICENSE file in the root directory of this source tree.
16
+ */
17
+ var Ie;
18
+ function wr() {
19
+ if (Ie) return $;
20
+ Ie = 1;
21
+ var l = ne, t = Symbol.for("react.element"), f = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, p = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, h = { key: !0, ref: !0, __self: !0, __source: !0 };
22
+ function C(_, R, S) {
23
+ var g, y = {}, b = null, j = null;
24
+ S !== void 0 && (b = "" + S), R.key !== void 0 && (b = "" + R.key), R.ref !== void 0 && (j = R.ref);
25
+ for (g in R) d.call(R, g) && !h.hasOwnProperty(g) && (y[g] = R[g]);
26
+ if (_ && _.defaultProps) for (g in R = _.defaultProps, R) y[g] === void 0 && (y[g] = R[g]);
27
+ return { $$typeof: t, type: _, key: b, ref: j, props: y, _owner: p.current };
28
+ }
29
+ return a(C, "q"), $.Fragment = f, $.jsx = C, $.jsxs = C, $;
30
+ }
31
+ a(wr, "requireReactJsxRuntime_production_min");
32
+ var Y = {};
33
+ /**
34
+ * @license React
35
+ * react-jsx-runtime.development.js
36
+ *
37
+ * Copyright (c) Facebook, Inc. and its affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */
42
+ var Ae;
43
+ function xr() {
44
+ return Ae || (Ae = 1, process.env.NODE_ENV !== "production" && (function() {
45
+ var l = ne, t = Symbol.for("react.element"), f = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), h = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), _ = Symbol.for("react.context"), R = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), j = Symbol.for("react.offscreen"), ie = Symbol.iterator, We = "@@iterator";
46
+ function $e(e) {
47
+ if (e === null || typeof e != "object")
48
+ return null;
49
+ var r = ie && e[ie] || e[We];
50
+ return typeof r == "function" ? r : null;
51
+ }
52
+ a($e, "getIteratorFn");
53
+ var D = l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
54
+ function m(e) {
55
+ {
56
+ for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
57
+ n[i - 1] = arguments[i];
58
+ Ye("error", e, n);
59
+ }
60
+ }
61
+ a(m, "error");
62
+ function Ye(e, r, n) {
63
+ {
64
+ var i = D.ReactDebugCurrentFrame, s = i.getStackAddendum();
65
+ s !== "" && (r += "%s", n = n.concat([s]));
66
+ var c = n.map(function(u) {
67
+ return String(u);
68
+ });
69
+ c.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, c);
70
+ }
71
+ }
72
+ a(Ye, "printWarning");
73
+ var Me = !1, Ue = !1, Ve = !1, Ge = !1, Be = !1, oe;
74
+ oe = Symbol.for("react.module.reference");
75
+ function Ke(e) {
76
+ return !!(typeof e == "string" || typeof e == "function" || e === d || e === h || Be || e === p || e === S || e === g || Ge || e === j || Me || Ue || Ve || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === y || e.$$typeof === C || e.$$typeof === _ || e.$$typeof === R || // This needs to include all possible module reference object
77
+ // types supported by any Flight configuration anywhere since
78
+ // we don't know which Flight build this will end up being used
79
+ // with.
80
+ e.$$typeof === oe || e.getModuleId !== void 0));
81
+ }
82
+ a(Ke, "isValidElementType");
83
+ function Je(e, r, n) {
84
+ var i = e.displayName;
85
+ if (i)
86
+ return i;
87
+ var s = r.displayName || r.name || "";
88
+ return s !== "" ? n + "(" + s + ")" : n;
89
+ }
90
+ a(Je, "getWrappedName");
91
+ function ue(e) {
92
+ return e.displayName || "Context";
93
+ }
94
+ a(ue, "getContextName");
95
+ function P(e) {
96
+ if (e == null)
97
+ return null;
98
+ if (typeof e.tag == "number" && m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
99
+ return e.displayName || e.name || null;
100
+ if (typeof e == "string")
101
+ return e;
102
+ switch (e) {
103
+ case d:
104
+ return "Fragment";
105
+ case f:
106
+ return "Portal";
107
+ case h:
108
+ return "Profiler";
109
+ case p:
110
+ return "StrictMode";
111
+ case S:
112
+ return "Suspense";
113
+ case g:
114
+ return "SuspenseList";
115
+ }
116
+ if (typeof e == "object")
117
+ switch (e.$$typeof) {
118
+ case _:
119
+ var r = e;
120
+ return ue(r) + ".Consumer";
121
+ case C:
122
+ var n = e;
123
+ return ue(n._context) + ".Provider";
124
+ case R:
125
+ return Je(e, e.render, "ForwardRef");
126
+ case y:
127
+ var i = e.displayName || null;
128
+ return i !== null ? i : P(e.type) || "Memo";
129
+ case b: {
130
+ var s = e, c = s._payload, u = s._init;
131
+ try {
132
+ return P(u(c));
133
+ } catch {
134
+ return null;
135
+ }
136
+ }
137
+ }
138
+ return null;
139
+ }
140
+ a(P, "getComponentNameFromType");
141
+ var I = Object.assign, N = 0, le, se, fe, ce, de, ve, pe;
142
+ function Ee() {
143
+ }
144
+ a(Ee, "disabledLog"), Ee.__reactDisabledLog = !0;
145
+ function qe() {
146
+ {
147
+ if (N === 0) {
148
+ le = console.log, se = console.info, fe = console.warn, ce = console.error, de = console.group, ve = console.groupCollapsed, pe = console.groupEnd;
149
+ var e = {
150
+ configurable: !0,
151
+ enumerable: !0,
152
+ value: Ee,
153
+ writable: !0
154
+ };
155
+ Object.defineProperties(console, {
156
+ info: e,
157
+ log: e,
158
+ warn: e,
159
+ error: e,
160
+ group: e,
161
+ groupCollapsed: e,
162
+ groupEnd: e
163
+ });
164
+ }
165
+ N++;
166
+ }
167
+ }
168
+ a(qe, "disableLogs");
169
+ function He() {
170
+ {
171
+ if (N--, N === 0) {
172
+ var e = {
173
+ configurable: !0,
174
+ enumerable: !0,
175
+ writable: !0
176
+ };
177
+ Object.defineProperties(console, {
178
+ log: I({}, e, {
179
+ value: le
180
+ }),
181
+ info: I({}, e, {
182
+ value: se
183
+ }),
184
+ warn: I({}, e, {
185
+ value: fe
186
+ }),
187
+ error: I({}, e, {
188
+ value: ce
189
+ }),
190
+ group: I({}, e, {
191
+ value: de
192
+ }),
193
+ groupCollapsed: I({}, e, {
194
+ value: ve
195
+ }),
196
+ groupEnd: I({}, e, {
197
+ value: pe
198
+ })
199
+ });
200
+ }
201
+ N < 0 && m("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
202
+ }
203
+ }
204
+ a(He, "reenableLogs");
205
+ var q = D.ReactCurrentDispatcher, H;
206
+ function M(e, r, n) {
207
+ {
208
+ if (H === void 0)
209
+ try {
210
+ throw Error();
211
+ } catch (s) {
212
+ var i = s.stack.trim().match(/\n( *(at )?)/);
213
+ H = i && i[1] || "";
214
+ }
215
+ return `
216
+ ` + H + e;
217
+ }
218
+ }
219
+ a(M, "describeBuiltInComponentFrame");
220
+ var X = !1, U;
221
+ {
222
+ var Xe = typeof WeakMap == "function" ? WeakMap : Map;
223
+ U = new Xe();
224
+ }
225
+ function _e(e, r) {
226
+ if (!e || X)
227
+ return "";
228
+ {
229
+ var n = U.get(e);
230
+ if (n !== void 0)
231
+ return n;
232
+ }
233
+ var i;
234
+ X = !0;
235
+ var s = Error.prepareStackTrace;
236
+ Error.prepareStackTrace = void 0;
237
+ var c;
238
+ c = q.current, q.current = null, qe();
239
+ try {
240
+ if (r) {
241
+ var u = /* @__PURE__ */ a(function() {
242
+ throw Error();
243
+ }, "Fake");
244
+ if (Object.defineProperty(u.prototype, "props", {
245
+ set: /* @__PURE__ */ a(function() {
246
+ throw Error();
247
+ }, "set")
248
+ }), typeof Reflect == "object" && Reflect.construct) {
249
+ try {
250
+ Reflect.construct(u, []);
251
+ } catch (O) {
252
+ i = O;
253
+ }
254
+ Reflect.construct(e, [], u);
255
+ } else {
256
+ try {
257
+ u.call();
258
+ } catch (O) {
259
+ i = O;
260
+ }
261
+ e.call(u.prototype);
262
+ }
263
+ } else {
264
+ try {
265
+ throw Error();
266
+ } catch (O) {
267
+ i = O;
268
+ }
269
+ e();
270
+ }
271
+ } catch (O) {
272
+ if (O && i && typeof O.stack == "string") {
273
+ for (var o = O.stack.split(`
274
+ `), T = i.stack.split(`
275
+ `), v = o.length - 1, E = T.length - 1; v >= 1 && E >= 0 && o[v] !== T[E]; )
276
+ E--;
277
+ for (; v >= 1 && E >= 0; v--, E--)
278
+ if (o[v] !== T[E]) {
279
+ if (v !== 1 || E !== 1)
280
+ do
281
+ if (v--, E--, E < 0 || o[v] !== T[E]) {
282
+ var w = `
283
+ ` + o[v].replace(" at new ", " at ");
284
+ return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && U.set(e, w), w;
285
+ }
286
+ while (v >= 1 && E >= 0);
287
+ break;
288
+ }
289
+ }
290
+ } finally {
291
+ X = !1, q.current = c, He(), Error.prepareStackTrace = s;
292
+ }
293
+ var F = e ? e.displayName || e.name : "", A = F ? M(F) : "";
294
+ return typeof e == "function" && U.set(e, A), A;
295
+ }
296
+ a(_e, "describeNativeComponentFrame");
297
+ function ze(e, r, n) {
298
+ return _e(e, !1);
299
+ }
300
+ a(ze, "describeFunctionComponentFrame");
301
+ function Qe(e) {
302
+ var r = e.prototype;
303
+ return !!(r && r.isReactComponent);
304
+ }
305
+ a(Qe, "shouldConstruct");
306
+ function V(e, r, n) {
307
+ if (e == null)
308
+ return "";
309
+ if (typeof e == "function")
310
+ return _e(e, Qe(e));
311
+ if (typeof e == "string")
312
+ return M(e);
313
+ switch (e) {
314
+ case S:
315
+ return M("Suspense");
316
+ case g:
317
+ return M("SuspenseList");
318
+ }
319
+ if (typeof e == "object")
320
+ switch (e.$$typeof) {
321
+ case R:
322
+ return ze(e.render);
323
+ case y:
324
+ return V(e.type, r, n);
325
+ case b: {
326
+ var i = e, s = i._payload, c = i._init;
327
+ try {
328
+ return V(c(s), r, n);
329
+ } catch {
330
+ }
331
+ }
332
+ }
333
+ return "";
334
+ }
335
+ a(V, "describeUnknownElementTypeFrameInDEV");
336
+ var L = Object.prototype.hasOwnProperty, Re = {}, he = D.ReactDebugCurrentFrame;
337
+ function G(e) {
338
+ if (e) {
339
+ var r = e._owner, n = V(e.type, e._source, r ? r.type : null);
340
+ he.setExtraStackFrame(n);
341
+ } else
342
+ he.setExtraStackFrame(null);
343
+ }
344
+ a(G, "setCurrentlyValidatingElement");
345
+ function Ze(e, r, n, i, s) {
346
+ {
347
+ var c = Function.call.bind(L);
348
+ for (var u in e)
349
+ if (c(e, u)) {
350
+ var o = void 0;
351
+ try {
352
+ if (typeof e[u] != "function") {
353
+ var T = Error((i || "React class") + ": " + n + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
354
+ throw T.name = "Invariant Violation", T;
355
+ }
356
+ o = e[u](r, u, i, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
357
+ } catch (v) {
358
+ o = v;
359
+ }
360
+ o && !(o instanceof Error) && (G(s), m("%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).", i || "React class", n, u, typeof o), G(null)), o instanceof Error && !(o.message in Re) && (Re[o.message] = !0, G(s), m("Failed %s type: %s", n, o.message), G(null));
361
+ }
362
+ }
363
+ }
364
+ a(Ze, "checkPropTypes");
365
+ var er = Array.isArray;
366
+ function z(e) {
367
+ return er(e);
368
+ }
369
+ a(z, "isArray");
370
+ function rr(e) {
371
+ {
372
+ var r = typeof Symbol == "function" && Symbol.toStringTag, n = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
373
+ return n;
374
+ }
375
+ }
376
+ a(rr, "typeName");
377
+ function tr(e) {
378
+ try {
379
+ return ge(e), !1;
380
+ } catch {
381
+ return !0;
382
+ }
383
+ }
384
+ a(tr, "willCoercionThrow");
385
+ function ge(e) {
386
+ return "" + e;
387
+ }
388
+ a(ge, "testStringCoercion");
389
+ function ye(e) {
390
+ if (tr(e))
391
+ return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", rr(e)), ge(e);
392
+ }
393
+ a(ye, "checkKeyStringCoercion");
394
+ var me = D.ReactCurrentOwner, nr = {
395
+ key: !0,
396
+ ref: !0,
397
+ __self: !0,
398
+ __source: !0
399
+ }, Te, be;
400
+ function ar(e) {
401
+ if (L.call(e, "ref")) {
402
+ var r = Object.getOwnPropertyDescriptor(e, "ref").get;
403
+ if (r && r.isReactWarning)
404
+ return !1;
405
+ }
406
+ return e.ref !== void 0;
407
+ }
408
+ a(ar, "hasValidRef");
409
+ function ir(e) {
410
+ if (L.call(e, "key")) {
411
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
412
+ if (r && r.isReactWarning)
413
+ return !1;
414
+ }
415
+ return e.key !== void 0;
416
+ }
417
+ a(ir, "hasValidKey");
418
+ function or(e, r) {
419
+ typeof e.ref == "string" && me.current;
420
+ }
421
+ a(or, "warnIfStringRefCannotBeAutoConverted");
422
+ function ur(e, r) {
423
+ {
424
+ var n = /* @__PURE__ */ a(function() {
425
+ Te || (Te = !0, m("%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));
426
+ }, "warnAboutAccessingKey");
427
+ n.isReactWarning = !0, Object.defineProperty(e, "key", {
428
+ get: n,
429
+ configurable: !0
430
+ });
431
+ }
432
+ }
433
+ a(ur, "defineKeyPropWarningGetter");
434
+ function lr(e, r) {
435
+ {
436
+ var n = /* @__PURE__ */ a(function() {
437
+ be || (be = !0, m("%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));
438
+ }, "warnAboutAccessingRef");
439
+ n.isReactWarning = !0, Object.defineProperty(e, "ref", {
440
+ get: n,
441
+ configurable: !0
442
+ });
443
+ }
444
+ }
445
+ a(lr, "defineRefPropWarningGetter");
446
+ var sr = /* @__PURE__ */ a(function(e, r, n, i, s, c, u) {
447
+ var o = {
448
+ // This tag allows us to uniquely identify this as a React Element
449
+ $$typeof: t,
450
+ // Built-in properties that belong on the element
451
+ type: e,
452
+ key: r,
453
+ ref: n,
454
+ props: u,
455
+ // Record the component responsible for creating this element.
456
+ _owner: c
457
+ };
458
+ return o._store = {}, Object.defineProperty(o._store, "validated", {
459
+ configurable: !1,
460
+ enumerable: !1,
461
+ writable: !0,
462
+ value: !1
463
+ }), Object.defineProperty(o, "_self", {
464
+ configurable: !1,
465
+ enumerable: !1,
466
+ writable: !1,
467
+ value: i
468
+ }), Object.defineProperty(o, "_source", {
469
+ configurable: !1,
470
+ enumerable: !1,
471
+ writable: !1,
472
+ value: s
473
+ }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
474
+ }, "ReactElement");
475
+ function fr(e, r, n, i, s) {
476
+ {
477
+ var c, u = {}, o = null, T = null;
478
+ n !== void 0 && (ye(n), o = "" + n), ir(r) && (ye(r.key), o = "" + r.key), ar(r) && (T = r.ref, or(r, s));
479
+ for (c in r)
480
+ L.call(r, c) && !nr.hasOwnProperty(c) && (u[c] = r[c]);
481
+ if (e && e.defaultProps) {
482
+ var v = e.defaultProps;
483
+ for (c in v)
484
+ u[c] === void 0 && (u[c] = v[c]);
485
+ }
486
+ if (o || T) {
487
+ var E = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
488
+ o && ur(u, E), T && lr(u, E);
489
+ }
490
+ return sr(e, o, T, s, i, me.current, u);
491
+ }
492
+ }
493
+ a(fr, "jsxDEV");
494
+ var Q = D.ReactCurrentOwner, Oe = D.ReactDebugCurrentFrame;
495
+ function k(e) {
496
+ if (e) {
497
+ var r = e._owner, n = V(e.type, e._source, r ? r.type : null);
498
+ Oe.setExtraStackFrame(n);
499
+ } else
500
+ Oe.setExtraStackFrame(null);
501
+ }
502
+ a(k, "setCurrentlyValidatingElement$1");
503
+ var Z;
504
+ Z = !1;
505
+ function ee(e) {
506
+ return typeof e == "object" && e !== null && e.$$typeof === t;
507
+ }
508
+ a(ee, "isValidElement");
509
+ function Se() {
510
+ {
511
+ if (Q.current) {
512
+ var e = P(Q.current.type);
513
+ if (e)
514
+ return `
515
+
516
+ Check the render method of \`` + e + "`.";
517
+ }
518
+ return "";
519
+ }
520
+ }
521
+ a(Se, "getDeclarationErrorAddendum");
522
+ function cr(e) {
523
+ return "";
524
+ }
525
+ a(cr, "getSourceInfoErrorAddendum");
526
+ var Ce = {};
527
+ function dr(e) {
528
+ {
529
+ var r = Se();
530
+ if (!r) {
531
+ var n = typeof e == "string" ? e : e.displayName || e.name;
532
+ n && (r = `
533
+
534
+ Check the top-level render call using <` + n + ">.");
535
+ }
536
+ return r;
537
+ }
538
+ }
539
+ a(dr, "getCurrentComponentErrorInfo");
540
+ function we(e, r) {
541
+ {
542
+ if (!e._store || e._store.validated || e.key != null)
543
+ return;
544
+ e._store.validated = !0;
545
+ var n = dr(r);
546
+ if (Ce[n])
547
+ return;
548
+ Ce[n] = !0;
549
+ var i = "";
550
+ e && e._owner && e._owner !== Q.current && (i = " It was passed a child from " + P(e._owner.type) + "."), k(e), m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, i), k(null);
551
+ }
552
+ }
553
+ a(we, "validateExplicitKey");
554
+ function xe(e, r) {
555
+ {
556
+ if (typeof e != "object")
557
+ return;
558
+ if (z(e))
559
+ for (var n = 0; n < e.length; n++) {
560
+ var i = e[n];
561
+ ee(i) && we(i, r);
562
+ }
563
+ else if (ee(e))
564
+ e._store && (e._store.validated = !0);
565
+ else if (e) {
566
+ var s = $e(e);
567
+ if (typeof s == "function" && s !== e.entries)
568
+ for (var c = s.call(e), u; !(u = c.next()).done; )
569
+ ee(u.value) && we(u.value, r);
570
+ }
571
+ }
572
+ }
573
+ a(xe, "validateChildKeys");
574
+ function vr(e) {
575
+ {
576
+ var r = e.type;
577
+ if (r == null || typeof r == "string")
578
+ return;
579
+ var n;
580
+ if (typeof r == "function")
581
+ n = r.propTypes;
582
+ else if (typeof r == "object" && (r.$$typeof === R || // Note: Memo only checks outer props here.
583
+ // Inner props are checked in the reconciler.
584
+ r.$$typeof === y))
585
+ n = r.propTypes;
586
+ else
587
+ return;
588
+ if (n) {
589
+ var i = P(r);
590
+ Ze(n, e.props, "prop", i, e);
591
+ } else if (r.PropTypes !== void 0 && !Z) {
592
+ Z = !0;
593
+ var s = P(r);
594
+ m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
595
+ }
596
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
597
+ }
598
+ }
599
+ a(vr, "validatePropTypes");
600
+ function pr(e) {
601
+ {
602
+ for (var r = Object.keys(e.props), n = 0; n < r.length; n++) {
603
+ var i = r[n];
604
+ if (i !== "children" && i !== "key") {
605
+ k(e), m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", i), k(null);
606
+ break;
607
+ }
608
+ }
609
+ e.ref !== null && (k(e), m("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
610
+ }
611
+ }
612
+ a(pr, "validateFragmentProps");
613
+ var je = {};
614
+ function Pe(e, r, n, i, s, c) {
615
+ {
616
+ var u = Ke(e);
617
+ if (!u) {
618
+ var o = "";
619
+ (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.");
620
+ var T = cr();
621
+ T ? o += T : o += Se();
622
+ var v;
623
+ e === null ? v = "null" : z(e) ? v = "array" : e !== void 0 && e.$$typeof === t ? (v = "<" + (P(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : v = typeof e, m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", v, o);
624
+ }
625
+ var E = fr(e, r, n, s, c);
626
+ if (E == null)
627
+ return E;
628
+ if (u) {
629
+ var w = r.children;
630
+ if (w !== void 0)
631
+ if (i)
632
+ if (z(w)) {
633
+ for (var F = 0; F < w.length; F++)
634
+ xe(w[F], e);
635
+ Object.freeze && Object.freeze(w);
636
+ } else
637
+ m("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
638
+ else
639
+ xe(w, e);
640
+ }
641
+ if (L.call(r, "key")) {
642
+ var A = P(e), O = Object.keys(r).filter(function(yr) {
643
+ return yr !== "key";
644
+ }), re = O.length > 0 ? "{key: someKey, " + O.join(": ..., ") + ": ...}" : "{key: someKey}";
645
+ if (!je[A + re]) {
646
+ var gr = O.length > 0 ? "{" + O.join(": ..., ") + ": ...}" : "{}";
647
+ m(`A props object containing a "key" prop is being spread into JSX:
648
+ let props = %s;
649
+ <%s {...props} />
650
+ React keys must be passed directly to JSX without using spread:
651
+ let props = %s;
652
+ <%s key={someKey} {...props} />`, re, A, gr, A), je[A + re] = !0;
653
+ }
654
+ }
655
+ return e === d ? pr(E) : vr(E), E;
656
+ }
657
+ }
658
+ a(Pe, "jsxWithValidation");
659
+ function Er(e, r, n) {
660
+ return Pe(e, r, n, !0);
661
+ }
662
+ a(Er, "jsxWithValidationStatic");
663
+ function _r(e, r, n) {
664
+ return Pe(e, r, n, !1);
665
+ }
666
+ a(_r, "jsxWithValidationDynamic");
667
+ var Rr = _r, hr = Er;
668
+ Y.Fragment = d, Y.jsx = Rr, Y.jsxs = hr;
669
+ })()), Y;
670
+ }
671
+ a(xr, "requireReactJsxRuntime_development");
672
+ var De;
673
+ function jr() {
674
+ return De || (De = 1, process.env.NODE_ENV === "production" ? B.exports = wr() : B.exports = xr()), B.exports;
675
+ }
676
+ a(jr, "requireJsxRuntime");
677
+ var x = jr();
678
+ const ae = class ae {
2
679
  constructor() {
3
680
  this.filters = /* @__PURE__ */ new Map();
4
681
  }
5
- register(t, i) {
6
- this.filters.set(t, i);
682
+ register(t, f) {
683
+ this.filters.set(t, f);
7
684
  }
8
685
  unregister(t) {
9
686
  return this.filters.delete(t);
@@ -11,17 +688,124 @@ class r {
11
688
  get(t) {
12
689
  return this.filters.get(t);
13
690
  }
691
+ };
692
+ a(ae, "ConditionFilterRegistry");
693
+ let te = ae;
694
+ const ke = new te();
695
+ function Fe(l) {
696
+ const t = J(2), f = `Unsupported filter type:[${l.type}]`;
697
+ let d;
698
+ return t[0] !== f ? (d = /* @__PURE__ */ x.jsx(br, { message: f, type: "warning", showIcon: !0 }), t[0] = f, t[1] = d) : d = t[1], d;
699
+ }
700
+ a(Fe, "FallbackConditionFilter");
701
+ Fe.displayName = "FallbackConditionFilter";
702
+ const Pr = ne.memo((l) => {
703
+ const t = J(7);
704
+ let f;
705
+ t[0] !== l.type ? (f = ke.get(l.type), t[0] = l.type, t[1] = f) : f = t[1];
706
+ const d = f;
707
+ if (!d) {
708
+ let h;
709
+ return t[2] !== l.type ? (h = /* @__PURE__ */ x.jsx(Fe, { type: l.type }), t[2] = l.type, t[3] = h) : h = t[3], h;
710
+ }
711
+ let p;
712
+ return t[4] !== d || t[5] !== l ? (p = /* @__PURE__ */ x.jsx(d, { ...l }), t[4] = d, t[5] = l, t[6] = p) : p = t[6], p;
713
+ });
714
+ Pr.displayName = "ConditionFilter";
715
+ const Ir = [",", ",", ";", ";", " "];
716
+ function Ne(l) {
717
+ const t = J(8);
718
+ let f, d, p;
719
+ t[0] !== l ? ({
720
+ tokenSeparators: d,
721
+ allowClear: p,
722
+ ...f
723
+ } = l, t[0] = l, t[1] = f, t[2] = d, t[3] = p) : (f = t[1], d = t[2], p = t[3]);
724
+ const h = d === void 0 ? Ir : d, C = p === void 0 ? !0 : p;
725
+ let _;
726
+ return t[4] !== C || t[5] !== f || t[6] !== h ? (_ = /* @__PURE__ */ x.jsx(K, { ...f, mode: "tags", open: !1, suffixIcon: null, allowClear: C, tokenSeparators: h }), t[4] = C, t[5] = f, t[6] = h, t[7] = _) : _ = t[7], _;
14
727
  }
15
- const n = new r();
16
- function o(e) {
17
- const t = n.get(e.type);
18
- if (!t)
19
- throw new Error(`ConditionFilter type ${e.type} not found.`);
20
- return t(e);
728
+ a(Ne, "TagInput");
729
+ Ne.displayName = "TagInput";
730
+ const Ar = {
731
+ AND: "与",
732
+ OR: "或",
733
+ NOR: "非或",
734
+ ID: "等于",
735
+ IDS: "包含",
736
+ AGGREGATE_ID: "等于",
737
+ AGGREGATE_IDS: "包含",
738
+ TENANT_ID: "等于",
739
+ OWNER_ID: "等于",
740
+ DELETED: "已删除",
741
+ ALL: "全部",
742
+ EQ: "等于",
743
+ NE: "不等于",
744
+ GT: "大于",
745
+ LT: "小于",
746
+ GTE: "大于等于",
747
+ LTE: "小于等于",
748
+ CONTAINS: "包含",
749
+ IN: "包含",
750
+ NOT_IN: "不包含",
751
+ BETWEEN: "在范围内",
752
+ ALL_IN: "全部包含",
753
+ STARTS_WITH: "以...开头",
754
+ ENDS_WITH: "以...结尾",
755
+ ELEM_MATCH: "元素匹配",
756
+ NULL: "为空",
757
+ NOT_NULL: "不为空",
758
+ TRUE: "为真",
759
+ FALSE: "为假",
760
+ EXISTS: "存在",
761
+ TODAY: "今天",
762
+ BEFORE_TODAY: "今天之前",
763
+ TOMORROW: "明天",
764
+ THIS_WEEK: "本周",
765
+ NEXT_WEEK: "下周",
766
+ LAST_WEEK: "上周",
767
+ THIS_MONTH: "本月",
768
+ LAST_MONTH: "上月",
769
+ RECENT_DAYS: "最近几天",
770
+ EARLIER_DAYS: "几天前",
771
+ RAW: "原始查询"
772
+ }, Dr = "id";
773
+ function Le(l) {
774
+ const t = J(17), [f, d] = Tr(l.operator);
775
+ let p;
776
+ t[0] !== f || t[1] !== l.placeholder ? (p = f === W.ID ? /* @__PURE__ */ x.jsx(Or, { placeholder: l.placeholder, allowClear: !0 }) : /* @__PURE__ */ x.jsx(Ne, { placeholder: l.placeholder }), t[0] = f, t[1] = l.placeholder, t[2] = p) : p = t[2];
777
+ const h = p, C = l.locale ?? Ar;
778
+ let _;
779
+ t[3] !== l.field.label ? (_ = /* @__PURE__ */ x.jsx(Sr, { children: l.field.label }), t[3] = l.field.label, t[4] = _) : _ = t[4];
780
+ const R = C[W.ID];
781
+ let S;
782
+ t[5] !== R ? (S = /* @__PURE__ */ x.jsx(K.Option, { value: W.ID, children: R }), t[5] = R, t[6] = S) : S = t[6];
783
+ const g = C[W.IDS];
784
+ let y;
785
+ t[7] !== g ? (y = /* @__PURE__ */ x.jsx(K.Option, { value: W.IDS, children: g }), t[7] = g, t[8] = y) : y = t[8];
786
+ let b;
787
+ t[9] !== f || t[10] !== S || t[11] !== y ? (b = /* @__PURE__ */ x.jsxs(K, { value: f, onChange: d, children: [
788
+ S,
789
+ y
790
+ ] }), t[9] = f, t[10] = S, t[11] = y, t[12] = b) : b = t[12];
791
+ let j;
792
+ return t[13] !== _ || t[14] !== b || t[15] !== h ? (j = /* @__PURE__ */ x.jsxs(Cr.Compact, { children: [
793
+ _,
794
+ b,
795
+ h
796
+ ] }), t[13] = _, t[14] = b, t[15] = h, t[16] = j) : j = t[16], j;
21
797
  }
798
+ a(Le, "IdConditionFilter");
799
+ Le.displayName = "IdConditionFilter";
800
+ ke.register(Dr, Le);
22
801
  export {
23
- o as ConditionFilter,
24
- r as ConditionFilterRegistry,
25
- n as conditionFilterRegistry
802
+ Pr as ConditionFilter,
803
+ te as ConditionFilterRegistry,
804
+ Fe as FallbackConditionFilter,
805
+ Dr as ID_CONDITION_FILTER,
806
+ Le as IdConditionFilter,
807
+ Ar as OPERATOR_zh_CN,
808
+ Ne as TagInput,
809
+ ke as conditionFilterRegistry
26
810
  };
27
811
  //# sourceMappingURL=index.es.js.map