frappe-react-sdk 1.2.7 → 1.2.8
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/frappe-react-sdk.es.js +236 -232
- package/dist/frappe-react-sdk.umd.js +1 -1
- package/dist/lib/index.d.ts +5 -2
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Ms = Object.defineProperty;
|
|
2
2
|
var Ws = (n, e, t) => e in n ? Ms(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
-
var
|
|
4
|
-
import qe, { createContext as Ur, useContext as ee, useEffect as Xe, useLayoutEffect as Hs, useRef as
|
|
5
|
-
var
|
|
3
|
+
var Fe = (n, e, t) => (Ws(n, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import qe, { createContext as Ur, useContext as ee, useEffect as Xe, useLayoutEffect as Hs, useRef as Be, useMemo as qr, useCallback as M, useDebugValue as Ys, useState as P } from "react";
|
|
5
|
+
var F = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Yt = {}, rt = {}, ft = {}, le = F && F.__assign || function() {
|
|
6
6
|
return le = Object.assign || function(n) {
|
|
7
7
|
for (var e, t = 1, r = arguments.length; t < r; t++) {
|
|
8
8
|
e = arguments[t];
|
|
@@ -11,7 +11,7 @@ var B = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
|
11
11
|
}
|
|
12
12
|
return n;
|
|
13
13
|
}, le.apply(this, arguments);
|
|
14
|
-
}, wt =
|
|
14
|
+
}, wt = F && F.__awaiter || function(n, e, t, r) {
|
|
15
15
|
function s(i) {
|
|
16
16
|
return i instanceof t ? i : new t(function(o) {
|
|
17
17
|
o(i);
|
|
@@ -37,7 +37,7 @@ var B = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
|
|
|
37
37
|
}
|
|
38
38
|
a((r = r.apply(n, e || [])).next());
|
|
39
39
|
});
|
|
40
|
-
}, Et =
|
|
40
|
+
}, Et = F && F.__generator || function(n, e) {
|
|
41
41
|
var t = { label: 0, sent: function() {
|
|
42
42
|
if (i[0] & 1)
|
|
43
43
|
throw i[1];
|
|
@@ -155,7 +155,7 @@ var Js = function() {
|
|
|
155
155
|
}, n;
|
|
156
156
|
}();
|
|
157
157
|
ft.FrappeCall = Js;
|
|
158
|
-
var ht = {}, z =
|
|
158
|
+
var ht = {}, z = F && F.__assign || function() {
|
|
159
159
|
return z = Object.assign || function(n) {
|
|
160
160
|
for (var e, t = 1, r = arguments.length; t < r; t++) {
|
|
161
161
|
e = arguments[t];
|
|
@@ -164,7 +164,7 @@ var ht = {}, z = B && B.__assign || function() {
|
|
|
164
164
|
}
|
|
165
165
|
return n;
|
|
166
166
|
}, z.apply(this, arguments);
|
|
167
|
-
}, Ie =
|
|
167
|
+
}, Ie = F && F.__awaiter || function(n, e, t, r) {
|
|
168
168
|
function s(i) {
|
|
169
169
|
return i instanceof t ? i : new t(function(o) {
|
|
170
170
|
o(i);
|
|
@@ -190,7 +190,7 @@ var ht = {}, z = B && B.__assign || function() {
|
|
|
190
190
|
}
|
|
191
191
|
a((r = r.apply(n, e || [])).next());
|
|
192
192
|
});
|
|
193
|
-
}, Ue =
|
|
193
|
+
}, Ue = F && F.__generator || function(n, e) {
|
|
194
194
|
var t = { label: 0, sent: function() {
|
|
195
195
|
if (i[0] & 1)
|
|
196
196
|
throw i[1];
|
|
@@ -362,7 +362,7 @@ var zs = function() {
|
|
|
362
362
|
}, n;
|
|
363
363
|
}();
|
|
364
364
|
ht.FrappeDB = zs;
|
|
365
|
-
var dt = {}, Pt =
|
|
365
|
+
var dt = {}, Pt = F && F.__assign || function() {
|
|
366
366
|
return Pt = Object.assign || function(n) {
|
|
367
367
|
for (var e, t = 1, r = arguments.length; t < r; t++) {
|
|
368
368
|
e = arguments[t];
|
|
@@ -371,7 +371,7 @@ var dt = {}, Pt = B && B.__assign || function() {
|
|
|
371
371
|
}
|
|
372
372
|
return n;
|
|
373
373
|
}, Pt.apply(this, arguments);
|
|
374
|
-
}, Ks =
|
|
374
|
+
}, Ks = F && F.__awaiter || function(n, e, t, r) {
|
|
375
375
|
function s(i) {
|
|
376
376
|
return i instanceof t ? i : new t(function(o) {
|
|
377
377
|
o(i);
|
|
@@ -397,7 +397,7 @@ var dt = {}, Pt = B && B.__assign || function() {
|
|
|
397
397
|
}
|
|
398
398
|
a((r = r.apply(n, e || [])).next());
|
|
399
399
|
});
|
|
400
|
-
}, Gs =
|
|
400
|
+
}, Gs = F && F.__generator || function(n, e) {
|
|
401
401
|
var t = { label: 0, sent: function() {
|
|
402
402
|
if (i[0] & 1)
|
|
403
403
|
throw i[1];
|
|
@@ -485,14 +485,14 @@ var Xs = function() {
|
|
|
485
485
|
}, n;
|
|
486
486
|
}();
|
|
487
487
|
dt.FrappeFileUpload = Xs;
|
|
488
|
-
var Ge = {}, Vr = { exports: {} },
|
|
488
|
+
var Ge = {}, Vr = { exports: {} }, Dn = { exports: {} }, jr = function(e, t) {
|
|
489
489
|
return function() {
|
|
490
490
|
for (var s = new Array(arguments.length), i = 0; i < s.length; i++)
|
|
491
491
|
s[i] = arguments[i];
|
|
492
492
|
return e.apply(t, s);
|
|
493
493
|
};
|
|
494
|
-
}, Qs = jr,
|
|
495
|
-
function
|
|
494
|
+
}, Qs = jr, ke = Object.prototype.toString;
|
|
495
|
+
function kn(n) {
|
|
496
496
|
return Array.isArray(n);
|
|
497
497
|
}
|
|
498
498
|
function gn(n) {
|
|
@@ -502,10 +502,10 @@ function Zs(n) {
|
|
|
502
502
|
return n !== null && !gn(n) && n.constructor !== null && !gn(n.constructor) && typeof n.constructor.isBuffer == "function" && n.constructor.isBuffer(n);
|
|
503
503
|
}
|
|
504
504
|
function $r(n) {
|
|
505
|
-
return
|
|
505
|
+
return ke.call(n) === "[object ArrayBuffer]";
|
|
506
506
|
}
|
|
507
507
|
function ei(n) {
|
|
508
|
-
return
|
|
508
|
+
return ke.call(n) === "[object FormData]";
|
|
509
509
|
}
|
|
510
510
|
function ti(n) {
|
|
511
511
|
var e;
|
|
@@ -521,28 +521,28 @@ function Mr(n) {
|
|
|
521
521
|
return n !== null && typeof n == "object";
|
|
522
522
|
}
|
|
523
523
|
function At(n) {
|
|
524
|
-
if (
|
|
524
|
+
if (ke.call(n) !== "[object Object]")
|
|
525
525
|
return !1;
|
|
526
526
|
var e = Object.getPrototypeOf(n);
|
|
527
527
|
return e === null || e === Object.prototype;
|
|
528
528
|
}
|
|
529
529
|
function si(n) {
|
|
530
|
-
return
|
|
530
|
+
return ke.call(n) === "[object Date]";
|
|
531
531
|
}
|
|
532
532
|
function ii(n) {
|
|
533
|
-
return
|
|
533
|
+
return ke.call(n) === "[object File]";
|
|
534
534
|
}
|
|
535
535
|
function oi(n) {
|
|
536
|
-
return
|
|
536
|
+
return ke.call(n) === "[object Blob]";
|
|
537
537
|
}
|
|
538
538
|
function Wr(n) {
|
|
539
|
-
return
|
|
539
|
+
return ke.call(n) === "[object Function]";
|
|
540
540
|
}
|
|
541
541
|
function ai(n) {
|
|
542
542
|
return Mr(n) && Wr(n.pipe);
|
|
543
543
|
}
|
|
544
544
|
function ui(n) {
|
|
545
|
-
return
|
|
545
|
+
return ke.call(n) === "[object URLSearchParams]";
|
|
546
546
|
}
|
|
547
547
|
function ci(n) {
|
|
548
548
|
return n.trim ? n.trim() : n.replace(/^\s+|\s+$/g, "");
|
|
@@ -552,7 +552,7 @@ function li() {
|
|
|
552
552
|
}
|
|
553
553
|
function Nn(n, e) {
|
|
554
554
|
if (!(n === null || typeof n > "u"))
|
|
555
|
-
if (typeof n != "object" && (n = [n]),
|
|
555
|
+
if (typeof n != "object" && (n = [n]), kn(n))
|
|
556
556
|
for (var t = 0, r = n.length; t < r; t++)
|
|
557
557
|
e.call(null, n[t], t, n);
|
|
558
558
|
else
|
|
@@ -562,7 +562,7 @@ function Nn(n, e) {
|
|
|
562
562
|
function _n() {
|
|
563
563
|
var n = {};
|
|
564
564
|
function e(s, i) {
|
|
565
|
-
At(n[i]) && At(s) ? n[i] = _n(n[i], s) : At(s) ? n[i] = _n({}, s) :
|
|
565
|
+
At(n[i]) && At(s) ? n[i] = _n(n[i], s) : At(s) ? n[i] = _n({}, s) : kn(s) ? n[i] = s.slice() : n[i] = s;
|
|
566
566
|
}
|
|
567
567
|
for (var t = 0, r = arguments.length; t < r; t++)
|
|
568
568
|
Nn(arguments[t], e);
|
|
@@ -577,7 +577,7 @@ function hi(n) {
|
|
|
577
577
|
return n.charCodeAt(0) === 65279 && (n = n.slice(1)), n;
|
|
578
578
|
}
|
|
579
579
|
var oe = {
|
|
580
|
-
isArray:
|
|
580
|
+
isArray: kn,
|
|
581
581
|
isArrayBuffer: $r,
|
|
582
582
|
isBuffer: Zs,
|
|
583
583
|
isFormData: ei,
|
|
@@ -625,10 +625,10 @@ var Hr = function(e, t, r) {
|
|
|
625
625
|
}
|
|
626
626
|
return e;
|
|
627
627
|
}, di = oe;
|
|
628
|
-
function
|
|
628
|
+
function Ft() {
|
|
629
629
|
this.handlers = [];
|
|
630
630
|
}
|
|
631
|
-
|
|
631
|
+
Ft.prototype.use = function(e, t, r) {
|
|
632
632
|
return this.handlers.push({
|
|
633
633
|
fulfilled: e,
|
|
634
634
|
rejected: t,
|
|
@@ -636,15 +636,15 @@ Bt.prototype.use = function(e, t, r) {
|
|
|
636
636
|
runWhen: r ? r.runWhen : null
|
|
637
637
|
}), this.handlers.length - 1;
|
|
638
638
|
};
|
|
639
|
-
|
|
639
|
+
Ft.prototype.eject = function(e) {
|
|
640
640
|
this.handlers[e] && (this.handlers[e] = null);
|
|
641
641
|
};
|
|
642
|
-
|
|
642
|
+
Ft.prototype.forEach = function(e) {
|
|
643
643
|
di.forEach(this.handlers, function(r) {
|
|
644
644
|
r !== null && e(r);
|
|
645
645
|
});
|
|
646
646
|
};
|
|
647
|
-
var pi =
|
|
647
|
+
var pi = Ft, vi = oe, yi = function(e, t) {
|
|
648
648
|
vi.forEach(e, function(s, i) {
|
|
649
649
|
i !== t && i.toUpperCase() === t.toUpperCase() && (e[t] = s, delete e[i]);
|
|
650
650
|
});
|
|
@@ -818,7 +818,7 @@ function Ri() {
|
|
|
818
818
|
}(), en;
|
|
819
819
|
}
|
|
820
820
|
var tn, sr;
|
|
821
|
-
function
|
|
821
|
+
function Bt() {
|
|
822
822
|
if (sr)
|
|
823
823
|
return tn;
|
|
824
824
|
sr = 1;
|
|
@@ -834,11 +834,11 @@ function or() {
|
|
|
834
834
|
if (ir)
|
|
835
835
|
return nn;
|
|
836
836
|
ir = 1;
|
|
837
|
-
var n = oe, e = mi(), t = gi(), r = Hr, s = wi(), i = Ei(), o = Ri(), c = zr(), f = Jr, a =
|
|
837
|
+
var n = oe, e = mi(), t = gi(), r = Hr, s = wi(), i = Ei(), o = Ri(), c = zr(), f = Jr, a = Bt();
|
|
838
838
|
return nn = function(l) {
|
|
839
839
|
return new Promise(function(v, b) {
|
|
840
840
|
var w = l.data, x = l.headers, g = l.responseType, T;
|
|
841
|
-
function
|
|
841
|
+
function D() {
|
|
842
842
|
l.cancelToken && l.cancelToken.unsubscribe(T), l.signal && l.signal.removeEventListener("abort", T);
|
|
843
843
|
}
|
|
844
844
|
n.isFormData(w) && delete x["Content-Type"];
|
|
@@ -847,22 +847,22 @@ function or() {
|
|
|
847
847
|
var V = l.auth.username || "", U = l.auth.password ? unescape(encodeURIComponent(l.auth.password)) : "";
|
|
848
848
|
x.Authorization = "Basic " + btoa(V + ":" + U);
|
|
849
849
|
}
|
|
850
|
-
var
|
|
851
|
-
m.open(l.method.toUpperCase(), r(
|
|
850
|
+
var L = s(l.baseURL, l.url);
|
|
851
|
+
m.open(l.method.toUpperCase(), r(L, l.params, l.paramsSerializer), !0), m.timeout = l.timeout;
|
|
852
852
|
function E() {
|
|
853
853
|
if (!!m) {
|
|
854
|
-
var
|
|
854
|
+
var k = "getAllResponseHeaders" in m ? i(m.getAllResponseHeaders()) : null, X = !g || g === "text" || g === "json" ? m.responseText : m.response, ne = {
|
|
855
855
|
data: X,
|
|
856
856
|
status: m.status,
|
|
857
857
|
statusText: m.statusText,
|
|
858
|
-
headers:
|
|
858
|
+
headers: k,
|
|
859
859
|
config: l,
|
|
860
860
|
request: m
|
|
861
861
|
};
|
|
862
862
|
e(function($) {
|
|
863
|
-
v($),
|
|
863
|
+
v($), D();
|
|
864
864
|
}, function($) {
|
|
865
|
-
b($),
|
|
865
|
+
b($), D();
|
|
866
866
|
}, ne), m = null;
|
|
867
867
|
}
|
|
868
868
|
}
|
|
@@ -881,13 +881,13 @@ function or() {
|
|
|
881
881
|
m
|
|
882
882
|
)), m = null;
|
|
883
883
|
}, n.isStandardBrowserEnv()) {
|
|
884
|
-
var j = (l.withCredentials || o(
|
|
884
|
+
var j = (l.withCredentials || o(L)) && l.xsrfCookieName ? t.read(l.xsrfCookieName) : void 0;
|
|
885
885
|
j && (x[l.xsrfHeaderName] = j);
|
|
886
886
|
}
|
|
887
887
|
"setRequestHeader" in m && n.forEach(x, function(X, ne) {
|
|
888
888
|
typeof w > "u" && ne.toLowerCase() === "content-type" ? delete x[ne] : m.setRequestHeader(ne, X);
|
|
889
|
-
}), n.isUndefined(l.withCredentials) || (m.withCredentials = !!l.withCredentials), g && g !== "json" && (m.responseType = l.responseType), typeof l.onDownloadProgress == "function" && m.addEventListener("progress", l.onDownloadProgress), typeof l.onUploadProgress == "function" && m.upload && m.upload.addEventListener("progress", l.onUploadProgress), (l.cancelToken || l.signal) && (T = function(
|
|
890
|
-
!m || (b(!
|
|
889
|
+
}), n.isUndefined(l.withCredentials) || (m.withCredentials = !!l.withCredentials), g && g !== "json" && (m.responseType = l.responseType), typeof l.onDownloadProgress == "function" && m.addEventListener("progress", l.onDownloadProgress), typeof l.onUploadProgress == "function" && m.upload && m.upload.addEventListener("progress", l.onUploadProgress), (l.cancelToken || l.signal) && (T = function(k) {
|
|
890
|
+
!m || (b(!k || k && k.type ? new a("canceled") : k), m.abort(), m = null);
|
|
891
891
|
}, l.cancelToken && l.cancelToken.subscribe(T), l.signal && (l.signal.aborted ? T() : l.signal.addEventListener("abort", T))), w || (w = null), m.send(w);
|
|
892
892
|
});
|
|
893
893
|
}, nn;
|
|
@@ -949,8 +949,8 @@ Q.forEach(["delete", "get", "head"], function(e) {
|
|
|
949
949
|
Q.forEach(["post", "put", "patch"], function(e) {
|
|
950
950
|
It.headers[e] = Q.merge(Oi);
|
|
951
951
|
});
|
|
952
|
-
var Pn = It, Ai = oe,
|
|
953
|
-
var s = this ||
|
|
952
|
+
var Pn = It, Ai = oe, Li = Pn, Di = function(e, t, r) {
|
|
953
|
+
var s = this || Li;
|
|
954
954
|
return Ai.forEach(r, function(o) {
|
|
955
955
|
e = o.call(s, e, t);
|
|
956
956
|
}), e;
|
|
@@ -960,12 +960,12 @@ function Kr() {
|
|
|
960
960
|
return !!(e && e.__CANCEL__);
|
|
961
961
|
}), rn;
|
|
962
962
|
}
|
|
963
|
-
var lr = oe, sn =
|
|
963
|
+
var lr = oe, sn = Di, ki = Kr(), Ni = Pn, Pi = Bt();
|
|
964
964
|
function on(n) {
|
|
965
965
|
if (n.cancelToken && n.cancelToken.throwIfRequested(), n.signal && n.signal.aborted)
|
|
966
966
|
throw new Pi("canceled");
|
|
967
967
|
}
|
|
968
|
-
var
|
|
968
|
+
var Fi = function(e) {
|
|
969
969
|
on(e), e.headers = e.headers || {}, e.data = sn.call(
|
|
970
970
|
e,
|
|
971
971
|
e.data,
|
|
@@ -990,7 +990,7 @@ var Bi = function(e) {
|
|
|
990
990
|
e.transformResponse
|
|
991
991
|
), s;
|
|
992
992
|
}, function(s) {
|
|
993
|
-
return
|
|
993
|
+
return ki(s) || (on(e), s && s.response && (s.response.data = sn.call(
|
|
994
994
|
e,
|
|
995
995
|
s.response.data,
|
|
996
996
|
s.response.headers,
|
|
@@ -1065,16 +1065,16 @@ function Xr() {
|
|
|
1065
1065
|
version: "0.26.1"
|
|
1066
1066
|
}), an;
|
|
1067
1067
|
}
|
|
1068
|
-
var
|
|
1068
|
+
var Bi = Xr().version, Fn = {};
|
|
1069
1069
|
["object", "boolean", "number", "function", "string", "symbol"].forEach(function(n, e) {
|
|
1070
|
-
|
|
1070
|
+
Fn[n] = function(r) {
|
|
1071
1071
|
return typeof r === n || "a" + (e < 1 ? "n " : " ") + n;
|
|
1072
1072
|
};
|
|
1073
1073
|
});
|
|
1074
1074
|
var hr = {};
|
|
1075
|
-
|
|
1075
|
+
Fn.transitional = function(e, t, r) {
|
|
1076
1076
|
function s(i, o) {
|
|
1077
|
-
return "[Axios v" +
|
|
1077
|
+
return "[Axios v" + Bi + "] Transitional option '" + i + "'" + o + (r ? ". " + r : "");
|
|
1078
1078
|
}
|
|
1079
1079
|
return function(i, o, c) {
|
|
1080
1080
|
if (e === !1)
|
|
@@ -1104,8 +1104,8 @@ function Ii(n, e, t) {
|
|
|
1104
1104
|
}
|
|
1105
1105
|
var Ui = {
|
|
1106
1106
|
assertOptions: Ii,
|
|
1107
|
-
validators:
|
|
1108
|
-
}, Qr = oe, qi = Hr, dr = pi, pr =
|
|
1107
|
+
validators: Fn
|
|
1108
|
+
}, Qr = oe, qi = Hr, dr = pi, pr = Fi, Ut = Gr, Zr = Ui, Ke = Zr.validators;
|
|
1109
1109
|
function pt(n) {
|
|
1110
1110
|
this.defaults = n, this.interceptors = {
|
|
1111
1111
|
request: new dr(),
|
|
@@ -1179,7 +1179,7 @@ function ji() {
|
|
|
1179
1179
|
if (vr)
|
|
1180
1180
|
return un;
|
|
1181
1181
|
vr = 1;
|
|
1182
|
-
var n =
|
|
1182
|
+
var n = Bt();
|
|
1183
1183
|
function e(t) {
|
|
1184
1184
|
if (typeof t != "function")
|
|
1185
1185
|
throw new TypeError("executor must be a function.");
|
|
@@ -1248,16 +1248,16 @@ function Mi() {
|
|
|
1248
1248
|
return n.isObject(t) && t.isAxiosError === !0;
|
|
1249
1249
|
}, ln;
|
|
1250
1250
|
}
|
|
1251
|
-
var gr = oe, Wi = jr,
|
|
1251
|
+
var gr = oe, Wi = jr, Lt = Vi, Hi = Gr, Yi = Pn;
|
|
1252
1252
|
function es(n) {
|
|
1253
|
-
var e = new
|
|
1254
|
-
return gr.extend(t,
|
|
1253
|
+
var e = new Lt(n), t = Wi(Lt.prototype.request, e);
|
|
1254
|
+
return gr.extend(t, Lt.prototype, e), gr.extend(t, e), t.create = function(s) {
|
|
1255
1255
|
return es(Hi(n, s));
|
|
1256
1256
|
}, t;
|
|
1257
1257
|
}
|
|
1258
1258
|
var ge = es(Yi);
|
|
1259
|
-
ge.Axios =
|
|
1260
|
-
ge.Cancel =
|
|
1259
|
+
ge.Axios = Lt;
|
|
1260
|
+
ge.Cancel = Bt();
|
|
1261
1261
|
ge.CancelToken = ji();
|
|
1262
1262
|
ge.isCancel = Kr();
|
|
1263
1263
|
ge.VERSION = Xr().version;
|
|
@@ -1266,10 +1266,10 @@ ge.all = function(e) {
|
|
|
1266
1266
|
};
|
|
1267
1267
|
ge.spread = $i();
|
|
1268
1268
|
ge.isAxiosError = Mi();
|
|
1269
|
-
|
|
1270
|
-
|
|
1269
|
+
Dn.exports = ge;
|
|
1270
|
+
Dn.exports.default = ge;
|
|
1271
1271
|
(function(n) {
|
|
1272
|
-
n.exports =
|
|
1272
|
+
n.exports = Dn.exports;
|
|
1273
1273
|
})(Vr);
|
|
1274
1274
|
Object.defineProperty(Ge, "__esModule", { value: !0 });
|
|
1275
1275
|
Ge.getRequestHeaders = Ge.getAxiosClient = void 0;
|
|
@@ -1313,7 +1313,7 @@ function Ki() {
|
|
|
1313
1313
|
}();
|
|
1314
1314
|
return rt.FrappeApp = i, rt;
|
|
1315
1315
|
}
|
|
1316
|
-
var qt = {}, ve =
|
|
1316
|
+
var qt = {}, ve = F && F.__assign || function() {
|
|
1317
1317
|
return ve = Object.assign || function(n) {
|
|
1318
1318
|
for (var e, t = 1, r = arguments.length; t < r; t++) {
|
|
1319
1319
|
e = arguments[t];
|
|
@@ -1322,7 +1322,7 @@ var qt = {}, ve = B && B.__assign || function() {
|
|
|
1322
1322
|
}
|
|
1323
1323
|
return n;
|
|
1324
1324
|
}, ve.apply(this, arguments);
|
|
1325
|
-
}, Rt =
|
|
1325
|
+
}, Rt = F && F.__awaiter || function(n, e, t, r) {
|
|
1326
1326
|
function s(i) {
|
|
1327
1327
|
return i instanceof t ? i : new t(function(o) {
|
|
1328
1328
|
o(i);
|
|
@@ -1348,7 +1348,7 @@ var qt = {}, ve = B && B.__assign || function() {
|
|
|
1348
1348
|
}
|
|
1349
1349
|
a((r = r.apply(n, e || [])).next());
|
|
1350
1350
|
});
|
|
1351
|
-
}, St =
|
|
1351
|
+
}, St = F && F.__generator || function(n, e) {
|
|
1352
1352
|
var t = { label: 0, sent: function() {
|
|
1353
1353
|
if (i[0] & 1)
|
|
1354
1354
|
throw i[1];
|
|
@@ -1475,7 +1475,7 @@ qt.FrappeAuth = Gi;
|
|
|
1475
1475
|
var br;
|
|
1476
1476
|
function ns() {
|
|
1477
1477
|
return br || (br = 1, function(n) {
|
|
1478
|
-
var e =
|
|
1478
|
+
var e = F && F.__createBinding || (Object.create ? function(r, s, i, o) {
|
|
1479
1479
|
o === void 0 && (o = i);
|
|
1480
1480
|
var c = Object.getOwnPropertyDescriptor(s, i);
|
|
1481
1481
|
(!c || ("get" in c ? !s.__esModule : c.writable || c.configurable)) && (c = { enumerable: !0, get: function() {
|
|
@@ -1483,7 +1483,7 @@ function ns() {
|
|
|
1483
1483
|
} }), Object.defineProperty(r, o, c);
|
|
1484
1484
|
} : function(r, s, i, o) {
|
|
1485
1485
|
o === void 0 && (o = i), r[o] = s[i];
|
|
1486
|
-
}), t =
|
|
1486
|
+
}), t = F && F.__exportStar || function(r, s) {
|
|
1487
1487
|
for (var i in r)
|
|
1488
1488
|
i !== "default" && !Object.prototype.hasOwnProperty.call(s, i) && e(s, r, i);
|
|
1489
1489
|
};
|
|
@@ -1551,58 +1551,58 @@ function Zi() {
|
|
|
1551
1551
|
return Er || (Er = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1552
1552
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
1553
1553
|
var n = qe, e = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
1554
|
-
function t(
|
|
1554
|
+
function t(D) {
|
|
1555
1555
|
{
|
|
1556
1556
|
for (var m = arguments.length, V = new Array(m > 1 ? m - 1 : 0), U = 1; U < m; U++)
|
|
1557
1557
|
V[U - 1] = arguments[U];
|
|
1558
|
-
r("error",
|
|
1558
|
+
r("error", D, V);
|
|
1559
1559
|
}
|
|
1560
1560
|
}
|
|
1561
|
-
function r(
|
|
1561
|
+
function r(D, m, V) {
|
|
1562
1562
|
{
|
|
1563
|
-
var U = e.ReactDebugCurrentFrame,
|
|
1564
|
-
|
|
1563
|
+
var U = e.ReactDebugCurrentFrame, L = U.getStackAddendum();
|
|
1564
|
+
L !== "" && (m += "%s", V = V.concat([L]));
|
|
1565
1565
|
var E = V.map(function(j) {
|
|
1566
1566
|
return String(j);
|
|
1567
1567
|
});
|
|
1568
|
-
E.unshift("Warning: " + m), Function.prototype.apply.call(console[
|
|
1568
|
+
E.unshift("Warning: " + m), Function.prototype.apply.call(console[D], console, E);
|
|
1569
1569
|
}
|
|
1570
1570
|
}
|
|
1571
|
-
function s(
|
|
1572
|
-
return
|
|
1571
|
+
function s(D, m) {
|
|
1572
|
+
return D === m && (D !== 0 || 1 / D === 1 / m) || D !== D && m !== m;
|
|
1573
1573
|
}
|
|
1574
1574
|
var i = typeof Object.is == "function" ? Object.is : s, o = n.useState, c = n.useEffect, f = n.useLayoutEffect, a = n.useDebugValue, h = !1, l = !1;
|
|
1575
|
-
function p(
|
|
1575
|
+
function p(D, m, V) {
|
|
1576
1576
|
h || n.startTransition !== void 0 && (h = !0, t("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
1577
1577
|
var U = m();
|
|
1578
1578
|
if (!l) {
|
|
1579
|
-
var
|
|
1580
|
-
i(U,
|
|
1579
|
+
var L = m();
|
|
1580
|
+
i(U, L) || (t("The result of getSnapshot should be cached to avoid an infinite loop"), l = !0);
|
|
1581
1581
|
}
|
|
1582
1582
|
var E = o({
|
|
1583
1583
|
inst: {
|
|
1584
1584
|
value: U,
|
|
1585
1585
|
getSnapshot: m
|
|
1586
1586
|
}
|
|
1587
|
-
}), j = E[0].inst,
|
|
1587
|
+
}), j = E[0].inst, k = E[1];
|
|
1588
1588
|
return f(function() {
|
|
1589
|
-
j.value = U, j.getSnapshot = m, v(j) &&
|
|
1589
|
+
j.value = U, j.getSnapshot = m, v(j) && k({
|
|
1590
1590
|
inst: j
|
|
1591
1591
|
});
|
|
1592
|
-
}, [
|
|
1593
|
-
v(j) &&
|
|
1592
|
+
}, [D, U, m]), c(function() {
|
|
1593
|
+
v(j) && k({
|
|
1594
1594
|
inst: j
|
|
1595
1595
|
});
|
|
1596
1596
|
var X = function() {
|
|
1597
|
-
v(j) &&
|
|
1597
|
+
v(j) && k({
|
|
1598
1598
|
inst: j
|
|
1599
1599
|
});
|
|
1600
1600
|
};
|
|
1601
|
-
return
|
|
1602
|
-
}, [
|
|
1601
|
+
return D(X);
|
|
1602
|
+
}, [D]), a(U), U;
|
|
1603
1603
|
}
|
|
1604
|
-
function v(
|
|
1605
|
-
var m =
|
|
1604
|
+
function v(D) {
|
|
1605
|
+
var m = D.getSnapshot, V = D.value;
|
|
1606
1606
|
try {
|
|
1607
1607
|
var U = m();
|
|
1608
1608
|
return !i(V, U);
|
|
@@ -1610,7 +1610,7 @@ function Zi() {
|
|
|
1610
1610
|
return !0;
|
|
1611
1611
|
}
|
|
1612
1612
|
}
|
|
1613
|
-
function b(
|
|
1613
|
+
function b(D, m, V) {
|
|
1614
1614
|
return m();
|
|
1615
1615
|
}
|
|
1616
1616
|
var w = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", x = !w, g = x ? b : p, T = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : g;
|
|
@@ -1621,7 +1621,7 @@ function Zi() {
|
|
|
1621
1621
|
process.env.NODE_ENV === "production" ? n.exports = Qi() : n.exports = Zi();
|
|
1622
1622
|
})(rs);
|
|
1623
1623
|
const Ae = () => {
|
|
1624
|
-
}, fe = Ae(), dn = Object, C = (n) => n === fe, xe = (n) => typeof n == "function",
|
|
1624
|
+
}, fe = Ae(), dn = Object, C = (n) => n === fe, xe = (n) => typeof n == "function", De = (n, e) => ({
|
|
1625
1625
|
...n,
|
|
1626
1626
|
...e
|
|
1627
1627
|
}), eo = (n) => xe(n.then), Tt = /* @__PURE__ */ new WeakMap();
|
|
@@ -1647,14 +1647,14 @@ const ct = (n) => {
|
|
|
1647
1647
|
} else
|
|
1648
1648
|
s = r ? n.toJSON() : e == "symbol" ? n.toString() : e == "string" ? JSON.stringify(n) : "" + n;
|
|
1649
1649
|
return s;
|
|
1650
|
-
}, Oe = /* @__PURE__ */ new WeakMap(), pn = {}, Ot = {},
|
|
1650
|
+
}, Oe = /* @__PURE__ */ new WeakMap(), pn = {}, Ot = {}, Bn = "undefined", Vt = typeof window != Bn, bn = typeof document != Bn, no = () => Vt && typeof window.requestAnimationFrame != Bn, ss = (n, e) => {
|
|
1651
1651
|
const t = Oe.get(n);
|
|
1652
1652
|
return [
|
|
1653
1653
|
() => !C(e) && n.get(e) || pn,
|
|
1654
1654
|
(r) => {
|
|
1655
1655
|
if (!C(e)) {
|
|
1656
1656
|
const s = n.get(e);
|
|
1657
|
-
e in Ot || (Ot[e] = s), t[5](e,
|
|
1657
|
+
e in Ot || (Ot[e] = s), t[5](e, De(s, r), s || pn);
|
|
1658
1658
|
}
|
|
1659
1659
|
},
|
|
1660
1660
|
t[6],
|
|
@@ -1714,7 +1714,7 @@ var st = {
|
|
|
1714
1714
|
RECONNECT_EVENT: os
|
|
1715
1715
|
};
|
|
1716
1716
|
async function us(...n) {
|
|
1717
|
-
const [e, t, r, s] = n, i =
|
|
1717
|
+
const [e, t, r, s] = n, i = De({
|
|
1718
1718
|
populateCache: !0,
|
|
1719
1719
|
throwOnError: !0
|
|
1720
1720
|
}, typeof s == "boolean" ? {
|
|
@@ -1735,39 +1735,39 @@ async function us(...n) {
|
|
|
1735
1735
|
const [b] = In(v);
|
|
1736
1736
|
if (!b)
|
|
1737
1737
|
return;
|
|
1738
|
-
const [w, x] = ss(e, b), [g, T,
|
|
1738
|
+
const [w, x] = ss(e, b), [g, T, D, m] = Oe.get(e), V = g[b], U = () => a && (delete D[b], delete m[b], V && V[0]) ? V[0](as).then(() => w().data) : w().data;
|
|
1739
1739
|
if (n.length < 3)
|
|
1740
1740
|
return U();
|
|
1741
|
-
let
|
|
1741
|
+
let L = r, E;
|
|
1742
1742
|
const j = Sn();
|
|
1743
1743
|
T[b] = [
|
|
1744
1744
|
j,
|
|
1745
1745
|
0
|
|
1746
1746
|
];
|
|
1747
|
-
const
|
|
1748
|
-
if (
|
|
1747
|
+
const k = !C(f), X = w(), ne = X.data, Z = X._c, $ = C(Z) ? ne : Z;
|
|
1748
|
+
if (k && (f = xe(f) ? f($, ne) : f, x({
|
|
1749
1749
|
data: f,
|
|
1750
1750
|
_c: $
|
|
1751
|
-
})), xe(
|
|
1751
|
+
})), xe(L))
|
|
1752
1752
|
try {
|
|
1753
|
-
|
|
1753
|
+
L = L($);
|
|
1754
1754
|
} catch (be) {
|
|
1755
1755
|
E = be;
|
|
1756
1756
|
}
|
|
1757
|
-
if (
|
|
1758
|
-
if (
|
|
1757
|
+
if (L && eo(L))
|
|
1758
|
+
if (L = await L.catch((be) => {
|
|
1759
1759
|
E = be;
|
|
1760
1760
|
}), j !== T[b][0]) {
|
|
1761
1761
|
if (E)
|
|
1762
1762
|
throw E;
|
|
1763
|
-
return
|
|
1763
|
+
return L;
|
|
1764
1764
|
} else
|
|
1765
|
-
E &&
|
|
1766
|
-
data:
|
|
1765
|
+
E && k && h(E) && (o = !0, L = $, x({
|
|
1766
|
+
data: L,
|
|
1767
1767
|
_c: fe
|
|
1768
1768
|
}));
|
|
1769
|
-
o && (E || (xe(o) && (
|
|
1770
|
-
data:
|
|
1769
|
+
o && (E || (xe(o) && (L = o(L, $)), x({
|
|
1770
|
+
data: L,
|
|
1771
1771
|
error: fe,
|
|
1772
1772
|
_c: fe
|
|
1773
1773
|
}))), T[b][1] = Sn();
|
|
@@ -1779,7 +1779,7 @@ async function us(...n) {
|
|
|
1779
1779
|
throw E;
|
|
1780
1780
|
return;
|
|
1781
1781
|
}
|
|
1782
|
-
return o ? _e :
|
|
1782
|
+
return o ? _e : L;
|
|
1783
1783
|
}
|
|
1784
1784
|
}
|
|
1785
1785
|
const Tr = (n, e) => {
|
|
@@ -1787,7 +1787,7 @@ const Tr = (n, e) => {
|
|
|
1787
1787
|
n[t][0] && n[t][0](e);
|
|
1788
1788
|
}, ho = (n, e) => {
|
|
1789
1789
|
if (!Oe.has(n)) {
|
|
1790
|
-
const t =
|
|
1790
|
+
const t = De(uo, e), r = {}, s = us.bind(fe, n);
|
|
1791
1791
|
let i = Ae;
|
|
1792
1792
|
const o = {}, c = (h, l) => {
|
|
1793
1793
|
const p = o[h] || [];
|
|
@@ -1828,7 +1828,7 @@ const Tr = (n, e) => {
|
|
|
1828
1828
|
}, po = (n, e, t, r, s) => {
|
|
1829
1829
|
const i = t.errorRetryCount, o = s.retryCount, c = ~~((Math.random() + 0.5) * (1 << (o < 8 ? o : 8))) * t.errorRetryInterval;
|
|
1830
1830
|
!C(i) && o > i || setTimeout(r, c, s);
|
|
1831
|
-
}, vo = (n, e) => ct(n) == ct(e), [cs, yo] = ho(/* @__PURE__ */ new Map()), mo =
|
|
1831
|
+
}, vo = (n, e) => ct(n) == ct(e), [cs, yo] = ho(/* @__PURE__ */ new Map()), mo = De(
|
|
1832
1832
|
{
|
|
1833
1833
|
onLoadingSlow: Ae,
|
|
1834
1834
|
onSuccess: Ae,
|
|
@@ -1851,10 +1851,10 @@ const Tr = (n, e) => {
|
|
|
1851
1851
|
},
|
|
1852
1852
|
ao
|
|
1853
1853
|
), go = (n, e) => {
|
|
1854
|
-
const t =
|
|
1854
|
+
const t = De(n, e);
|
|
1855
1855
|
if (e) {
|
|
1856
1856
|
const { use: r, fallback: s } = n, { use: i, fallback: o } = e;
|
|
1857
|
-
r && i && (t.use = r.concat(i)), s && o && (t.fallback =
|
|
1857
|
+
r && i && (t.use = r.concat(i)), s && o && (t.fallback = De(s, o));
|
|
1858
1858
|
}
|
|
1859
1859
|
return t;
|
|
1860
1860
|
}, _o = Ur({}), ls = Vt && window.__SWR_DEVTOOLS_USE__, bo = ls ? window.__SWR_DEVTOOLS_USE__ : [], wo = () => {
|
|
@@ -1867,7 +1867,7 @@ const Tr = (n, e) => {
|
|
|
1867
1867
|
n[0],
|
|
1868
1868
|
null,
|
|
1869
1869
|
(n[1] === null ? n[2] : n[1]) || {}
|
|
1870
|
-
], Ro = () =>
|
|
1870
|
+
], Ro = () => De(mo, ee(_o)), So = (n) => (e, t, r) => n(e, t && ((...i) => {
|
|
1871
1871
|
const [o] = In(e), [, , , c] = Oe.get(cs), f = c[o];
|
|
1872
1872
|
return C(f) ? t(...i) : (delete c[o], f);
|
|
1873
1873
|
}), r), To = bo.concat(So), Oo = (n) => function(...t) {
|
|
@@ -1898,29 +1898,29 @@ const Or = qe.use || ((n) => {
|
|
|
1898
1898
|
}), mn = {
|
|
1899
1899
|
dedupe: !0
|
|
1900
1900
|
}, Co = (n, e, t) => {
|
|
1901
|
-
const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: c, revalidateIfStale: f, refreshInterval: a, refreshWhenHidden: h, refreshWhenOffline: l, keepPreviousData: p } = t, [v, b, w, x] = Oe.get(r), [g, T] = In(n),
|
|
1901
|
+
const { cache: r, compare: s, suspense: i, fallbackData: o, revalidateOnMount: c, revalidateIfStale: f, refreshInterval: a, refreshWhenHidden: h, refreshWhenOffline: l, keepPreviousData: p } = t, [v, b, w, x] = Oe.get(r), [g, T] = In(n), D = Be(!1), m = Be(!1), V = Be(g), U = Be(e), L = Be(t), E = () => L.current, j = () => E().isVisible() && E().isOnline(), [k, X, ne, Z] = ss(r, g), $ = Be({}).current, _e = C(o) ? t.fallback[g] : o, be = (N, B) => {
|
|
1902
1902
|
for (const G in $) {
|
|
1903
1903
|
const q = G;
|
|
1904
1904
|
if (q === "data") {
|
|
1905
|
-
if (!s(N[q],
|
|
1905
|
+
if (!s(N[q], B[q]) && (!C(N[q]) || !s(Ve, B[q])))
|
|
1906
1906
|
return !1;
|
|
1907
|
-
} else if (
|
|
1907
|
+
} else if (B[q] !== N[q])
|
|
1908
1908
|
return !1;
|
|
1909
1909
|
}
|
|
1910
1910
|
return !0;
|
|
1911
1911
|
}, Ze = qr(() => {
|
|
1912
|
-
const N = (() => !g || !e ? !1 : C(c) ? E().isPaused() || i ? !1 : C(f) ? !0 : f : c)(),
|
|
1913
|
-
const he =
|
|
1912
|
+
const N = (() => !g || !e ? !1 : C(c) ? E().isPaused() || i ? !1 : C(f) ? !0 : f : c)(), B = (Y) => {
|
|
1913
|
+
const he = De(Y);
|
|
1914
1914
|
return delete he._k, N ? {
|
|
1915
1915
|
isValidating: !0,
|
|
1916
1916
|
isLoading: !0,
|
|
1917
1917
|
...he
|
|
1918
1918
|
} : he;
|
|
1919
|
-
}, G =
|
|
1919
|
+
}, G = k(), q = Z(), re = B(G), Se = G === q ? re : B(q);
|
|
1920
1920
|
let H = re;
|
|
1921
1921
|
return [
|
|
1922
1922
|
() => {
|
|
1923
|
-
const Y =
|
|
1923
|
+
const Y = B(k());
|
|
1924
1924
|
return be(Y, H) ? (H.data = Y.data, H.isLoading = Y.isLoading, H.isValidating = Y.isValidating, H.error = Y.error, H) : (H = Y, Y);
|
|
1925
1925
|
},
|
|
1926
1926
|
() => Se
|
|
@@ -1929,20 +1929,20 @@ const Or = qe.use || ((n) => {
|
|
|
1929
1929
|
r,
|
|
1930
1930
|
g
|
|
1931
1931
|
]), we = rs.exports.useSyncExternalStore(M(
|
|
1932
|
-
(N) => ne(g, (
|
|
1933
|
-
be(G,
|
|
1932
|
+
(N) => ne(g, (B, G) => {
|
|
1933
|
+
be(G, B) || N();
|
|
1934
1934
|
}),
|
|
1935
1935
|
[
|
|
1936
1936
|
r,
|
|
1937
1937
|
g
|
|
1938
1938
|
]
|
|
1939
|
-
), Ze[0], Ze[1]), et = !
|
|
1939
|
+
), Ze[0], Ze[1]), et = !D.current, yt = v[g] && v[g].length > 0, Ee = we.data, Re = C(Ee) ? _e : Ee, Ne = we.error, mt = Be(Re), Ve = p ? C(Ee) ? mt.current : Ee : Re, je = (() => yt && !C(Ne) ? !1 : et && !C(c) ? c : E().isPaused() ? !1 : i ? C(Re) ? !1 : f : C(Re) || f)(), $e = !!(g && e && et && je), Me = C(we.isValidating) ? $e : we.isValidating, tt = C(we.isLoading) ? $e : we.isLoading, pe = M(
|
|
1940
1940
|
async (N) => {
|
|
1941
|
-
const
|
|
1942
|
-
if (!g || !
|
|
1941
|
+
const B = U.current;
|
|
1942
|
+
if (!g || !B || m.current || E().isPaused())
|
|
1943
1943
|
return !1;
|
|
1944
1944
|
let G, q, re = !0;
|
|
1945
|
-
const Se = N || {}, H = !w[g] || !Se.dedupe, Y = () => Rr ? !m.current && g === V.current &&
|
|
1945
|
+
const Se = N || {}, H = !w[g] || !Se.dedupe, Y = () => Rr ? !m.current && g === V.current && D.current : g === V.current, he = {
|
|
1946
1946
|
isValidating: !1,
|
|
1947
1947
|
isLoading: !1
|
|
1948
1948
|
}, _t = () => {
|
|
@@ -1953,12 +1953,12 @@ const Or = qe.use || ((n) => {
|
|
|
1953
1953
|
}, bt = {
|
|
1954
1954
|
isValidating: !0
|
|
1955
1955
|
};
|
|
1956
|
-
C(
|
|
1956
|
+
C(k().data) && (bt.isLoading = !0);
|
|
1957
1957
|
try {
|
|
1958
|
-
if (H && (X(bt), t.loadingTimeout && C(
|
|
1958
|
+
if (H && (X(bt), t.loadingTimeout && C(k().data) && setTimeout(() => {
|
|
1959
1959
|
re && Y() && E().onLoadingSlow(g, t);
|
|
1960
1960
|
}, t.loadingTimeout), w[g] = [
|
|
1961
|
-
|
|
1961
|
+
B(T),
|
|
1962
1962
|
Sn()
|
|
1963
1963
|
]), [G, q] = w[g], G = await G, H && setTimeout(We, t.dedupingInterval), !w[g] || w[g][1] !== q)
|
|
1964
1964
|
return H && Y() && E().onDiscarded(g), !1;
|
|
@@ -1966,7 +1966,7 @@ const Or = qe.use || ((n) => {
|
|
|
1966
1966
|
const ie = b[g];
|
|
1967
1967
|
if (!C(ie) && (q <= ie[0] || q <= ie[1] || ie[1] === 0))
|
|
1968
1968
|
return _t(), H && Y() && E().onDiscarded(g), !1;
|
|
1969
|
-
const ue =
|
|
1969
|
+
const ue = k().data;
|
|
1970
1970
|
he.data = s(ue, G) ? ue : G, H && Y() && E().onSuccess(G, g, t);
|
|
1971
1971
|
} catch (ie) {
|
|
1972
1972
|
We();
|
|
@@ -1990,16 +1990,16 @@ const Or = qe.use || ((n) => {
|
|
|
1990
1990
|
[]
|
|
1991
1991
|
);
|
|
1992
1992
|
if (vn(() => {
|
|
1993
|
-
U.current = e,
|
|
1993
|
+
U.current = e, L.current = t, C(Ee) || (mt.current = Ee);
|
|
1994
1994
|
}), vn(() => {
|
|
1995
1995
|
if (!g)
|
|
1996
1996
|
return;
|
|
1997
1997
|
const N = pe.bind(fe, mn);
|
|
1998
|
-
let
|
|
1998
|
+
let B = 0;
|
|
1999
1999
|
const q = xo(g, v, (re, Se = {}) => {
|
|
2000
2000
|
if (re == st.FOCUS_EVENT) {
|
|
2001
2001
|
const H = Date.now();
|
|
2002
|
-
E().revalidateOnFocus && H >
|
|
2002
|
+
E().revalidateOnFocus && H > B && j() && (B = H + E().focusThrottleInterval, N());
|
|
2003
2003
|
} else if (re == st.RECONNECT_EVENT)
|
|
2004
2004
|
E().revalidateOnReconnect && j() && N();
|
|
2005
2005
|
else {
|
|
@@ -2009,7 +2009,7 @@ const Or = qe.use || ((n) => {
|
|
|
2009
2009
|
return pe(Se);
|
|
2010
2010
|
}
|
|
2011
2011
|
});
|
|
2012
|
-
return m.current = !1, V.current = g,
|
|
2012
|
+
return m.current = !1, V.current = g, D.current = !0, X({
|
|
2013
2013
|
_k: T
|
|
2014
2014
|
}), je && (C(Re) || lt ? N() : co(N)), () => {
|
|
2015
2015
|
m.current = !0, q();
|
|
@@ -2018,14 +2018,14 @@ const Or = qe.use || ((n) => {
|
|
|
2018
2018
|
g
|
|
2019
2019
|
]), vn(() => {
|
|
2020
2020
|
let N;
|
|
2021
|
-
function
|
|
2022
|
-
const q = xe(a) ? a(
|
|
2021
|
+
function B() {
|
|
2022
|
+
const q = xe(a) ? a(k().data) : a;
|
|
2023
2023
|
q && N !== -1 && (N = setTimeout(G, q));
|
|
2024
2024
|
}
|
|
2025
2025
|
function G() {
|
|
2026
|
-
!
|
|
2026
|
+
!k().error && (h || E().isVisible()) && (l || E().isOnline()) ? pe(mn).then(B) : B();
|
|
2027
2027
|
}
|
|
2028
|
-
return
|
|
2028
|
+
return B(), () => {
|
|
2029
2029
|
N && (clearTimeout(N), N = -1);
|
|
2030
2030
|
};
|
|
2031
2031
|
}, [
|
|
@@ -2036,15 +2036,15 @@ const Or = qe.use || ((n) => {
|
|
|
2036
2036
|
]), Ys(Ve), i && C(Re) && g) {
|
|
2037
2037
|
if (!Rr && lt)
|
|
2038
2038
|
throw new Error("Fallback data is required when using suspense in SSR.");
|
|
2039
|
-
U.current = e,
|
|
2039
|
+
U.current = e, L.current = t, m.current = !1;
|
|
2040
2040
|
const N = x[g];
|
|
2041
2041
|
if (!C(N)) {
|
|
2042
|
-
const
|
|
2043
|
-
Or(
|
|
2042
|
+
const B = gt(N);
|
|
2043
|
+
Or(B);
|
|
2044
2044
|
}
|
|
2045
2045
|
if (C(Ne)) {
|
|
2046
|
-
const
|
|
2047
|
-
C(Ve) || (
|
|
2046
|
+
const B = pe(mn);
|
|
2047
|
+
C(Ve) || (B.status = "fulfilled", B.value = !0), Or(B);
|
|
2048
2048
|
} else
|
|
2049
2049
|
throw Ne;
|
|
2050
2050
|
}
|
|
@@ -2071,11 +2071,11 @@ me.pong = "3";
|
|
|
2071
2071
|
me.message = "4";
|
|
2072
2072
|
me.upgrade = "5";
|
|
2073
2073
|
me.noop = "6";
|
|
2074
|
-
const
|
|
2074
|
+
const Dt = /* @__PURE__ */ Object.create(null);
|
|
2075
2075
|
Object.keys(me).forEach((n) => {
|
|
2076
|
-
|
|
2076
|
+
Dt[me[n]] = n;
|
|
2077
2077
|
});
|
|
2078
|
-
const Ao = { type: "error", data: "parser error" },
|
|
2078
|
+
const Ao = { type: "error", data: "parser error" }, Lo = typeof Blob == "function" || typeof Blob < "u" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", Do = typeof ArrayBuffer == "function", ko = (n) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(n) : n && n.buffer instanceof ArrayBuffer, fs = ({ type: n, data: e }, t, r) => Lo && e instanceof Blob ? t ? r(e) : xr(e, r) : Do && (e instanceof ArrayBuffer || ko(e)) ? t ? r(e) : xr(new Blob([e]), r) : r(me[n] + (e || "")), xr = (n, e) => {
|
|
2079
2079
|
const t = new FileReader();
|
|
2080
2080
|
return t.onload = function() {
|
|
2081
2081
|
const r = t.result.split(",")[1];
|
|
@@ -2100,14 +2100,14 @@ const No = (n) => {
|
|
|
2100
2100
|
const t = n.charAt(0);
|
|
2101
2101
|
return t === "b" ? {
|
|
2102
2102
|
type: "message",
|
|
2103
|
-
data:
|
|
2104
|
-
} :
|
|
2105
|
-
type:
|
|
2103
|
+
data: Fo(n.substring(1), e)
|
|
2104
|
+
} : Dt[t] ? n.length > 1 ? {
|
|
2105
|
+
type: Dt[t],
|
|
2106
2106
|
data: n.substring(1)
|
|
2107
2107
|
} : {
|
|
2108
|
-
type:
|
|
2108
|
+
type: Dt[t]
|
|
2109
2109
|
} : Ao;
|
|
2110
|
-
},
|
|
2110
|
+
}, Fo = (n, e) => {
|
|
2111
2111
|
if (Po) {
|
|
2112
2112
|
const t = No(n);
|
|
2113
2113
|
return ds(t, e);
|
|
@@ -2121,7 +2121,7 @@ const No = (n) => {
|
|
|
2121
2121
|
default:
|
|
2122
2122
|
return n;
|
|
2123
2123
|
}
|
|
2124
|
-
}, ps = String.fromCharCode(30),
|
|
2124
|
+
}, ps = String.fromCharCode(30), Bo = (n, e) => {
|
|
2125
2125
|
const t = n.length, r = new Array(t);
|
|
2126
2126
|
let s = 0;
|
|
2127
2127
|
n.forEach((i, o) => {
|
|
@@ -2189,13 +2189,13 @@ K.prototype.listeners = function(n) {
|
|
|
2189
2189
|
K.prototype.hasListeners = function(n) {
|
|
2190
2190
|
return !!this.listeners(n).length;
|
|
2191
2191
|
};
|
|
2192
|
-
const
|
|
2192
|
+
const Le = (() => typeof self < "u" ? self : typeof window < "u" ? window : Function("return this")())();
|
|
2193
2193
|
function ys(n, ...e) {
|
|
2194
2194
|
return e.reduce((t, r) => (n.hasOwnProperty(r) && (t[r] = n[r]), t), {});
|
|
2195
2195
|
}
|
|
2196
2196
|
const qo = setTimeout, Vo = clearTimeout;
|
|
2197
2197
|
function jt(n, e) {
|
|
2198
|
-
e.useNativeTimers ? (n.setTimeoutFn = qo.bind(
|
|
2198
|
+
e.useNativeTimers ? (n.setTimeoutFn = qo.bind(Le), n.clearTimeoutFn = Vo.bind(Le)) : (n.setTimeoutFn = setTimeout.bind(Le), n.clearTimeoutFn = clearTimeout.bind(Le));
|
|
2199
2199
|
}
|
|
2200
2200
|
const jo = 1.33;
|
|
2201
2201
|
function $o(n) {
|
|
@@ -2243,8 +2243,8 @@ class ms extends K {
|
|
|
2243
2243
|
}
|
|
2244
2244
|
}
|
|
2245
2245
|
const gs = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""), Tn = 64, Ho = {};
|
|
2246
|
-
let Ar = 0, xt = 0,
|
|
2247
|
-
function
|
|
2246
|
+
let Ar = 0, xt = 0, Lr;
|
|
2247
|
+
function Dr(n) {
|
|
2248
2248
|
let e = "";
|
|
2249
2249
|
do
|
|
2250
2250
|
e = gs[n % Tn] + e, n = Math.floor(n / Tn);
|
|
@@ -2252,8 +2252,8 @@ function Lr(n) {
|
|
|
2252
2252
|
return e;
|
|
2253
2253
|
}
|
|
2254
2254
|
function _s() {
|
|
2255
|
-
const n =
|
|
2256
|
-
return n !==
|
|
2255
|
+
const n = Dr(+new Date());
|
|
2256
|
+
return n !== Lr ? (Ar = 0, Lr = n) : n + "." + Dr(Ar++);
|
|
2257
2257
|
}
|
|
2258
2258
|
for (; xt < Tn; xt++)
|
|
2259
2259
|
Ho[gs[xt]] = xt;
|
|
@@ -2286,7 +2286,7 @@ function Es(n) {
|
|
|
2286
2286
|
}
|
|
2287
2287
|
if (!e)
|
|
2288
2288
|
try {
|
|
2289
|
-
return new
|
|
2289
|
+
return new Le[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP");
|
|
2290
2290
|
} catch {
|
|
2291
2291
|
}
|
|
2292
2292
|
}
|
|
@@ -2346,7 +2346,7 @@ class Go extends ms {
|
|
|
2346
2346
|
this.readyState === "open" ? e() : this.once("open", e);
|
|
2347
2347
|
}
|
|
2348
2348
|
write(e) {
|
|
2349
|
-
this.writable = !1,
|
|
2349
|
+
this.writable = !1, Bo(e, (t) => {
|
|
2350
2350
|
this.doWrite(t, () => {
|
|
2351
2351
|
this.writable = !0, this.emitReserved("drain");
|
|
2352
2352
|
});
|
|
@@ -2444,17 +2444,17 @@ ye.requestsCount = 0;
|
|
|
2444
2444
|
ye.requests = {};
|
|
2445
2445
|
if (typeof document < "u") {
|
|
2446
2446
|
if (typeof attachEvent == "function")
|
|
2447
|
-
attachEvent("onunload",
|
|
2447
|
+
attachEvent("onunload", kr);
|
|
2448
2448
|
else if (typeof addEventListener == "function") {
|
|
2449
|
-
const n = "onpagehide" in
|
|
2450
|
-
addEventListener(n,
|
|
2449
|
+
const n = "onpagehide" in Le ? "pagehide" : "unload";
|
|
2450
|
+
addEventListener(n, kr, !1);
|
|
2451
2451
|
}
|
|
2452
2452
|
}
|
|
2453
|
-
function
|
|
2453
|
+
function kr() {
|
|
2454
2454
|
for (let n in ye.requests)
|
|
2455
2455
|
ye.requests.hasOwnProperty(n) && ye.requests[n].abort();
|
|
2456
2456
|
}
|
|
2457
|
-
const Xo = (() => typeof Promise == "function" && typeof Promise.resolve == "function" ? (e) => Promise.resolve().then(e) : (e, t) => t(e, 0))(), Ct =
|
|
2457
|
+
const Xo = (() => typeof Promise == "function" && typeof Promise.resolve == "function" ? (e) => Promise.resolve().then(e) : (e, t) => t(e, 0))(), Ct = Le.WebSocket || Le.MozWebSocket, Nr = !0, Qo = "arraybuffer", Pr = typeof navigator < "u" && typeof navigator.product == "string" && navigator.product.toLowerCase() === "reactnative";
|
|
2458
2458
|
class Zo extends ms {
|
|
2459
2459
|
constructor(e) {
|
|
2460
2460
|
super(e), this.supportsBinary = !e.forceBase64;
|
|
@@ -2757,21 +2757,21 @@ const oa = typeof ArrayBuffer == "function", aa = (n) => typeof ArrayBuffer.isVi
|
|
|
2757
2757
|
function Un(n) {
|
|
2758
2758
|
return oa && (n instanceof ArrayBuffer || aa(n)) || ua && n instanceof Blob || ca && n instanceof File;
|
|
2759
2759
|
}
|
|
2760
|
-
function
|
|
2760
|
+
function kt(n, e) {
|
|
2761
2761
|
if (!n || typeof n != "object")
|
|
2762
2762
|
return !1;
|
|
2763
2763
|
if (Array.isArray(n)) {
|
|
2764
2764
|
for (let t = 0, r = n.length; t < r; t++)
|
|
2765
|
-
if (
|
|
2765
|
+
if (kt(n[t]))
|
|
2766
2766
|
return !0;
|
|
2767
2767
|
return !1;
|
|
2768
2768
|
}
|
|
2769
2769
|
if (Un(n))
|
|
2770
2770
|
return !0;
|
|
2771
2771
|
if (n.toJSON && typeof n.toJSON == "function" && arguments.length === 1)
|
|
2772
|
-
return
|
|
2772
|
+
return kt(n.toJSON(), !0);
|
|
2773
2773
|
for (const t in n)
|
|
2774
|
-
if (Object.prototype.hasOwnProperty.call(n, t) &&
|
|
2774
|
+
if (Object.prototype.hasOwnProperty.call(n, t) && kt(n[t]))
|
|
2775
2775
|
return !0;
|
|
2776
2776
|
return !1;
|
|
2777
2777
|
}
|
|
@@ -2833,7 +2833,7 @@ class pa {
|
|
|
2833
2833
|
this.replacer = e;
|
|
2834
2834
|
}
|
|
2835
2835
|
encode(e) {
|
|
2836
|
-
return (e.type === S.EVENT || e.type === S.ACK) &&
|
|
2836
|
+
return (e.type === S.EVENT || e.type === S.ACK) && kt(e) ? this.encodeAsBinary({
|
|
2837
2837
|
type: e.type === S.EVENT ? S.BINARY_EVENT : S.BINARY_ACK,
|
|
2838
2838
|
nsp: e.nsp,
|
|
2839
2839
|
data: e.data,
|
|
@@ -2849,7 +2849,7 @@ class pa {
|
|
|
2849
2849
|
return s.unshift(r), s;
|
|
2850
2850
|
}
|
|
2851
2851
|
}
|
|
2852
|
-
function
|
|
2852
|
+
function Fr(n) {
|
|
2853
2853
|
return Object.prototype.toString.call(n) === "[object Object]";
|
|
2854
2854
|
}
|
|
2855
2855
|
class qn extends K {
|
|
@@ -2928,11 +2928,11 @@ class qn extends K {
|
|
|
2928
2928
|
static isPayloadValid(e, t) {
|
|
2929
2929
|
switch (e) {
|
|
2930
2930
|
case S.CONNECT:
|
|
2931
|
-
return
|
|
2931
|
+
return Fr(t);
|
|
2932
2932
|
case S.DISCONNECT:
|
|
2933
2933
|
return t === void 0;
|
|
2934
2934
|
case S.CONNECT_ERROR:
|
|
2935
|
-
return typeof t == "string" ||
|
|
2935
|
+
return typeof t == "string" || Fr(t);
|
|
2936
2936
|
case S.EVENT:
|
|
2937
2937
|
case S.BINARY_EVENT:
|
|
2938
2938
|
return Array.isArray(t) && (typeof t[0] == "number" || typeof t[0] == "string" && ha.indexOf(t[0]) === -1);
|
|
@@ -3359,12 +3359,12 @@ Object.assign(Nt, {
|
|
|
3359
3359
|
});
|
|
3360
3360
|
class ga {
|
|
3361
3361
|
constructor(e, t, r) {
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3362
|
+
Fe(this, "socket_port");
|
|
3363
|
+
Fe(this, "host");
|
|
3364
|
+
Fe(this, "port");
|
|
3365
|
+
Fe(this, "protocol");
|
|
3366
|
+
Fe(this, "url");
|
|
3367
|
+
Fe(this, "socket");
|
|
3368
3368
|
var s, i;
|
|
3369
3369
|
this.socket_port = t != null ? t : "9000", this.host = (s = window.location) == null ? void 0 : s.hostname, this.port = (i = window.location) != null && i.port ? `:${this.socket_port}` : "", this.protocol = this.port ? "http" : "https", this.url = e || `${this.protocol}://${this.host}${this.port}`, this.socket = Nt(this.url, {
|
|
3370
3370
|
withCredentials: !0,
|
|
@@ -3384,11 +3384,11 @@ var Ts = { exports: {} }, ot = {};
|
|
|
3384
3384
|
* This source code is licensed under the MIT license found in the
|
|
3385
3385
|
* LICENSE file in the root directory of this source tree.
|
|
3386
3386
|
*/
|
|
3387
|
-
var
|
|
3387
|
+
var Br;
|
|
3388
3388
|
function _a() {
|
|
3389
|
-
if (
|
|
3389
|
+
if (Br)
|
|
3390
3390
|
return ot;
|
|
3391
|
-
|
|
3391
|
+
Br = 1;
|
|
3392
3392
|
var n = qe, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
3393
3393
|
function o(c, f, a) {
|
|
3394
3394
|
var h, l = {}, p = null, v = null;
|
|
@@ -3427,10 +3427,10 @@ function ba() {
|
|
|
3427
3427
|
{
|
|
3428
3428
|
for (var d = arguments.length, y = new Array(d > 1 ? d - 1 : 0), _ = 1; _ < d; _++)
|
|
3429
3429
|
y[_ - 1] = arguments[_];
|
|
3430
|
-
|
|
3430
|
+
D("error", u, y);
|
|
3431
3431
|
}
|
|
3432
3432
|
}
|
|
3433
|
-
function
|
|
3433
|
+
function D(u, d, y) {
|
|
3434
3434
|
{
|
|
3435
3435
|
var _ = g.ReactDebugCurrentFrame, A = _.getStackAddendum();
|
|
3436
3436
|
A !== "" && (d += "%s", y = y.concat([A]));
|
|
@@ -3440,10 +3440,10 @@ function ba() {
|
|
|
3440
3440
|
I.unshift("Warning: " + d), Function.prototype.apply.call(console[u], console, I);
|
|
3441
3441
|
}
|
|
3442
3442
|
}
|
|
3443
|
-
var m = !1, V = !1, U = !1,
|
|
3443
|
+
var m = !1, V = !1, U = !1, L = !1, E = !1, j;
|
|
3444
3444
|
j = Symbol.for("react.module.reference");
|
|
3445
|
-
function
|
|
3446
|
-
return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || E || u === s || u === a || u === h ||
|
|
3445
|
+
function k(u) {
|
|
3446
|
+
return !!(typeof u == "string" || typeof u == "function" || u === r || u === i || E || u === s || u === a || u === h || L || u === v || m || V || U || typeof u == "object" && u !== null && (u.$$typeof === p || u.$$typeof === l || u.$$typeof === o || u.$$typeof === c || u.$$typeof === f || u.$$typeof === j || u.getModuleId !== void 0));
|
|
3447
3447
|
}
|
|
3448
3448
|
function X(u, d, y) {
|
|
3449
3449
|
var _ = u.displayName;
|
|
@@ -3652,7 +3652,7 @@ function ba() {
|
|
|
3652
3652
|
var Je = u ? u.displayName || u.name : "", zn = Je ? Me(Je) : "";
|
|
3653
3653
|
return typeof u == "function" && pe.set(u, zn), zn;
|
|
3654
3654
|
}
|
|
3655
|
-
function
|
|
3655
|
+
function B(u, d, y) {
|
|
3656
3656
|
return N(u, !1);
|
|
3657
3657
|
}
|
|
3658
3658
|
function G(u) {
|
|
@@ -3675,7 +3675,7 @@ function ba() {
|
|
|
3675
3675
|
if (typeof u == "object")
|
|
3676
3676
|
switch (u.$$typeof) {
|
|
3677
3677
|
case f:
|
|
3678
|
-
return
|
|
3678
|
+
return B(u.render);
|
|
3679
3679
|
case l:
|
|
3680
3680
|
return q(u.type, d, y);
|
|
3681
3681
|
case p: {
|
|
@@ -3762,13 +3762,13 @@ function ba() {
|
|
|
3762
3762
|
}
|
|
3763
3763
|
return u.key !== void 0;
|
|
3764
3764
|
}
|
|
3765
|
-
function
|
|
3765
|
+
function Ls(u, d) {
|
|
3766
3766
|
if (typeof u.ref == "string" && Pe.current && d && Pe.current.stateNode !== d) {
|
|
3767
3767
|
var y = Z(Pe.current.type);
|
|
3768
3768
|
$t[y] || (T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Z(Pe.current.type), u.ref), $t[y] = !0);
|
|
3769
3769
|
}
|
|
3770
3770
|
}
|
|
3771
|
-
function
|
|
3771
|
+
function Ds(u, d) {
|
|
3772
3772
|
{
|
|
3773
3773
|
var y = function() {
|
|
3774
3774
|
Vn || (Vn = !0, T("%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)", d));
|
|
@@ -3779,7 +3779,7 @@ function ba() {
|
|
|
3779
3779
|
});
|
|
3780
3780
|
}
|
|
3781
3781
|
}
|
|
3782
|
-
function
|
|
3782
|
+
function ks(u, d) {
|
|
3783
3783
|
{
|
|
3784
3784
|
var y = function() {
|
|
3785
3785
|
jn || (jn = !0, T("%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)", d));
|
|
@@ -3819,7 +3819,7 @@ function ba() {
|
|
|
3819
3819
|
function Ps(u, d, y, _, A) {
|
|
3820
3820
|
{
|
|
3821
3821
|
var I, O = {}, R = null, se = null;
|
|
3822
|
-
y !== void 0 && (He(y), R = "" + y), As(d) && (He(d.key), R = "" + d.key), Cs(d) && (se = d.ref,
|
|
3822
|
+
y !== void 0 && (He(y), R = "" + y), As(d) && (He(d.key), R = "" + d.key), Cs(d) && (se = d.ref, Ls(d, A));
|
|
3823
3823
|
for (I in d)
|
|
3824
3824
|
re.call(d, I) && !nt.hasOwnProperty(I) && (O[I] = d[I]);
|
|
3825
3825
|
if (u && u.defaultProps) {
|
|
@@ -3829,7 +3829,7 @@ function ba() {
|
|
|
3829
3829
|
}
|
|
3830
3830
|
if (R || se) {
|
|
3831
3831
|
var J = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
|
|
3832
|
-
R &&
|
|
3832
|
+
R && Ds(O, J), se && ks(O, J);
|
|
3833
3833
|
}
|
|
3834
3834
|
return Ns(u, R, se, A, _, Pe.current, O);
|
|
3835
3835
|
}
|
|
@@ -3859,7 +3859,7 @@ Check the render method of \`` + u + "`.";
|
|
|
3859
3859
|
return "";
|
|
3860
3860
|
}
|
|
3861
3861
|
}
|
|
3862
|
-
function
|
|
3862
|
+
function Fs(u) {
|
|
3863
3863
|
{
|
|
3864
3864
|
if (u !== void 0) {
|
|
3865
3865
|
var d = u.fileName.replace(/^.*[\\\/]/, ""), y = u.lineNumber;
|
|
@@ -3871,7 +3871,7 @@ Check your code at ` + d + ":" + y + ".";
|
|
|
3871
3871
|
}
|
|
3872
3872
|
}
|
|
3873
3873
|
var Wn = {};
|
|
3874
|
-
function
|
|
3874
|
+
function Bs(u) {
|
|
3875
3875
|
{
|
|
3876
3876
|
var d = Mn();
|
|
3877
3877
|
if (!d) {
|
|
@@ -3888,7 +3888,7 @@ Check the top-level render call using <` + y + ">.");
|
|
|
3888
3888
|
if (!u._store || u._store.validated || u.key != null)
|
|
3889
3889
|
return;
|
|
3890
3890
|
u._store.validated = !0;
|
|
3891
|
-
var y =
|
|
3891
|
+
var y = Bs(d);
|
|
3892
3892
|
if (Wn[y])
|
|
3893
3893
|
return;
|
|
3894
3894
|
Wn[y] = !0;
|
|
@@ -3952,11 +3952,11 @@ Check the top-level render call using <` + y + ">.");
|
|
|
3952
3952
|
}
|
|
3953
3953
|
function Jn(u, d, y, _, A, I) {
|
|
3954
3954
|
{
|
|
3955
|
-
var O =
|
|
3955
|
+
var O = k(u);
|
|
3956
3956
|
if (!O) {
|
|
3957
3957
|
var R = "";
|
|
3958
3958
|
(u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (R += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
3959
|
-
var se =
|
|
3959
|
+
var se = Fs(A);
|
|
3960
3960
|
se ? R += se : R += Mn();
|
|
3961
3961
|
var W;
|
|
3962
3962
|
u === null ? W = "null" : We(u) ? W = "array" : u !== void 0 && u.$$typeof === e ? (W = "<" + (Z(u.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : W = typeof u, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", W, R);
|
|
@@ -3997,24 +3997,27 @@ const wa = Ts.exports.jsx, te = Ur(null), xa = ({
|
|
|
3997
3997
|
url: n = "",
|
|
3998
3998
|
tokenParams: e,
|
|
3999
3999
|
socketPort: t,
|
|
4000
|
-
|
|
4000
|
+
enableSocket: r = !0,
|
|
4001
|
+
children: s
|
|
4001
4002
|
}) => {
|
|
4002
|
-
const
|
|
4003
|
-
const
|
|
4003
|
+
const i = qr(() => {
|
|
4004
|
+
const o = new Xi.FrappeApp(n, e);
|
|
4004
4005
|
return {
|
|
4005
4006
|
url: n,
|
|
4006
4007
|
tokenParams: e,
|
|
4007
|
-
app:
|
|
4008
|
-
auth:
|
|
4009
|
-
db:
|
|
4010
|
-
call:
|
|
4011
|
-
file:
|
|
4012
|
-
socket: new ga(n, t, e).socket
|
|
4008
|
+
app: o,
|
|
4009
|
+
auth: o.auth(),
|
|
4010
|
+
db: o.db(),
|
|
4011
|
+
call: o.call(),
|
|
4012
|
+
file: o.file(),
|
|
4013
|
+
socket: r ? new ga(n, t, e).socket : void 0,
|
|
4014
|
+
enableSocket: r,
|
|
4015
|
+
socketPort: t
|
|
4013
4016
|
};
|
|
4014
|
-
}, [n, e, t]);
|
|
4017
|
+
}, [n, e, t, r]);
|
|
4015
4018
|
return /* @__PURE__ */ wa(te.Provider, {
|
|
4016
|
-
value:
|
|
4017
|
-
children:
|
|
4019
|
+
value: i,
|
|
4020
|
+
children: s
|
|
4018
4021
|
});
|
|
4019
4022
|
}, Ca = (n) => {
|
|
4020
4023
|
const {
|
|
@@ -4080,7 +4083,7 @@ const wa = Ts.exports.jsx, te = Ur(null), xa = ({
|
|
|
4080
4083
|
e += "order_by=" + i + "&";
|
|
4081
4084
|
}
|
|
4082
4085
|
return n != null && n.asDict && (e += "as_dict=" + n.asDict), e;
|
|
4083
|
-
},
|
|
4086
|
+
}, La = (n, e, t, r) => {
|
|
4084
4087
|
const {
|
|
4085
4088
|
url: s,
|
|
4086
4089
|
db: i
|
|
@@ -4088,7 +4091,7 @@ const wa = Ts.exports.jsx, te = Ur(null), xa = ({
|
|
|
4088
4091
|
return {
|
|
4089
4092
|
...vt(t === void 0 ? `${Os(n, s)}?${Ea(e)}` : t, () => i.getDocList(n, e), r)
|
|
4090
4093
|
};
|
|
4091
|
-
},
|
|
4094
|
+
}, Da = () => {
|
|
4092
4095
|
const {
|
|
4093
4096
|
db: n
|
|
4094
4097
|
} = ee(te), [e, t] = P(!1), [r, s] = P(null), [i, o] = P(!1), c = M(() => {
|
|
@@ -4103,7 +4106,7 @@ const wa = Ts.exports.jsx, te = Ur(null), xa = ({
|
|
|
4103
4106
|
isCompleted: i,
|
|
4104
4107
|
reset: c
|
|
4105
4108
|
};
|
|
4106
|
-
},
|
|
4109
|
+
}, ka = () => {
|
|
4107
4110
|
const {
|
|
4108
4111
|
db: n
|
|
4109
4112
|
} = ee(te), [e, t] = P(!1), [r, s] = P(null), [i, o] = P(!1), c = M(() => {
|
|
@@ -4167,7 +4170,7 @@ const Pa = (n, e, t = !1, r = !1, s, i) => {
|
|
|
4167
4170
|
return {
|
|
4168
4171
|
...vt(t === void 0 ? o : t, () => s.get(n, e), r)
|
|
4169
4172
|
};
|
|
4170
|
-
},
|
|
4173
|
+
}, Fa = (n) => {
|
|
4171
4174
|
const {
|
|
4172
4175
|
call: e
|
|
4173
4176
|
} = ee(te), [t, r] = P(null), [s, i] = P(!1), [o, c] = P(null), [f, a] = P(!1), h = M(() => {
|
|
@@ -4183,7 +4186,7 @@ const Pa = (n, e, t = !1, r = !1, s, i) => {
|
|
|
4183
4186
|
reset: h,
|
|
4184
4187
|
isCompleted: f
|
|
4185
4188
|
};
|
|
4186
|
-
},
|
|
4189
|
+
}, Ba = (n) => {
|
|
4187
4190
|
const {
|
|
4188
4191
|
call: e
|
|
4189
4192
|
} = ee(te), [t, r] = P(null), [s, i] = P(!1), [o, c] = P(null), [f, a] = P(!1), h = M(() => {
|
|
@@ -4249,31 +4252,32 @@ const Pa = (n, e, t = !1, r = !1, s, i) => {
|
|
|
4249
4252
|
clearTimeout(s);
|
|
4250
4253
|
};
|
|
4251
4254
|
}, [n, e]), t;
|
|
4252
|
-
},
|
|
4255
|
+
}, Ln = (n, e) => {
|
|
4253
4256
|
const {
|
|
4254
4257
|
socket: t
|
|
4255
4258
|
} = ee(te);
|
|
4256
4259
|
Xe(() => {
|
|
4257
|
-
|
|
4260
|
+
t === void 0 && console.warn("Socket is not enabled. Please enable socket in FrappeProvider.");
|
|
4261
|
+
let r = t == null ? void 0 : t.on(n, e);
|
|
4258
4262
|
return () => {
|
|
4259
|
-
r.off(n);
|
|
4263
|
+
r == null || r.off(n);
|
|
4260
4264
|
};
|
|
4261
4265
|
}, [n, e]);
|
|
4262
4266
|
}, Va = (n, e, t, r = !0) => {
|
|
4263
4267
|
const {
|
|
4264
4268
|
socket: s
|
|
4265
4269
|
} = ee(te), [i, o] = P([]);
|
|
4266
|
-
Xe(() => (s.emit("doc_subscribe", n, e), r && s.emit("doc_open", n, e), () => {
|
|
4267
|
-
s.emit("doc_unsubscribe", n, e), r && s.emit("doc_close", n, e);
|
|
4268
|
-
}), [n, e, r]),
|
|
4270
|
+
Xe(() => (s === void 0 && console.warn("Socket is not enabled. Please enable socket in FrappeProvider."), s == null || s.emit("doc_subscribe", n, e), r && (s == null || s.emit("doc_open", n, e)), () => {
|
|
4271
|
+
s == null || s.emit("doc_unsubscribe", n, e), r && (s == null || s.emit("doc_close", n, e));
|
|
4272
|
+
}), [n, e, r]), Ln("doc_update", t);
|
|
4269
4273
|
const c = M(() => {
|
|
4270
|
-
s.emit("doc_open", n, e);
|
|
4274
|
+
s == null || s.emit("doc_open", n, e);
|
|
4271
4275
|
}, [n, e]), f = M(() => {
|
|
4272
|
-
s.emit("doc_close", n, e);
|
|
4276
|
+
s == null || s.emit("doc_close", n, e);
|
|
4273
4277
|
}, [n, e]), a = M((h) => {
|
|
4274
4278
|
h.doctype === n && h.docname === e && o(h.users);
|
|
4275
4279
|
}, [n, e]);
|
|
4276
|
-
return
|
|
4280
|
+
return Ln("doc_viewers", a), {
|
|
4277
4281
|
viewers: i,
|
|
4278
4282
|
emitDocOpen: c,
|
|
4279
4283
|
emitDocClose: f
|
|
@@ -4282,9 +4286,9 @@ const Pa = (n, e, t = !1, r = !1, s, i) => {
|
|
|
4282
4286
|
const {
|
|
4283
4287
|
socket: t
|
|
4284
4288
|
} = ee(te);
|
|
4285
|
-
Xe(() => (t.emit("doctype_subscribe", n), () => {
|
|
4286
|
-
t.emit("doctype_unsubscribe", n);
|
|
4287
|
-
}), [n]),
|
|
4289
|
+
Xe(() => (t === void 0 && console.warn("Socket is not enabled. Please enable socket in FrappeProvider."), t == null || t.emit("doctype_subscribe", n), () => {
|
|
4290
|
+
t == null || t.emit("doctype_unsubscribe", n);
|
|
4291
|
+
}), [n]), Ln("list_update", e);
|
|
4288
4292
|
};
|
|
4289
4293
|
export {
|
|
4290
4294
|
te as FrappeContext,
|
|
@@ -4292,19 +4296,19 @@ export {
|
|
|
4292
4296
|
Ea as getDocListQueryString,
|
|
4293
4297
|
Os as getRequestURL,
|
|
4294
4298
|
Ca as useFrappeAuth,
|
|
4295
|
-
|
|
4299
|
+
Da as useFrappeCreateDoc,
|
|
4296
4300
|
Ia as useFrappeDeleteCall,
|
|
4297
4301
|
Na as useFrappeDeleteDoc,
|
|
4298
4302
|
ja as useFrappeDocTypeEventListener,
|
|
4299
4303
|
Va as useFrappeDocumentEventListener,
|
|
4300
|
-
|
|
4304
|
+
Ln as useFrappeEventListener,
|
|
4301
4305
|
Ua as useFrappeFileUpload,
|
|
4302
4306
|
Ra as useFrappeGetCall,
|
|
4303
4307
|
Aa as useFrappeGetDoc,
|
|
4304
4308
|
Pa as useFrappeGetDocCount,
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
+
La as useFrappeGetDocList,
|
|
4310
|
+
Fa as useFrappePostCall,
|
|
4311
|
+
Ba as useFrappePutCall,
|
|
4312
|
+
ka as useFrappeUpdateDoc,
|
|
4309
4313
|
qa as useSearch
|
|
4310
4314
|
};
|