frappe-react-sdk 1.0.8 → 1.0.10
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 +478 -478
- package/dist/frappe-react-sdk.umd.js +10 -10
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Jr, { createContext as Hr, useContext as
|
|
1
|
+
import Jr, { createContext as Hr, useContext as ee, useRef as ge, useCallback as P, useDebugValue as In, useEffect as Xr, useLayoutEffect as $n, useState as T, useMemo as Bn } from "react";
|
|
2
2
|
var x = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, _t = {}, Me = {}, Xe = {}, Ye = { exports: {} }, Gt = { exports: {} }, Yr = function(n, e) {
|
|
3
3
|
return function() {
|
|
4
4
|
for (var a = new Array(arguments.length), r = 0; r < a.length; r++)
|
|
@@ -90,7 +90,7 @@ function ta(t, n, e) {
|
|
|
90
90
|
function ra(t) {
|
|
91
91
|
return t.charCodeAt(0) === 65279 && (t = t.slice(1)), t;
|
|
92
92
|
}
|
|
93
|
-
var
|
|
93
|
+
var X = {
|
|
94
94
|
isArray: zt,
|
|
95
95
|
isArrayBuffer: Gr,
|
|
96
96
|
isBuffer: Vn,
|
|
@@ -113,7 +113,7 @@ var H = {
|
|
|
113
113
|
extend: ta,
|
|
114
114
|
trim: Zn,
|
|
115
115
|
stripBOM: ra
|
|
116
|
-
}, ke =
|
|
116
|
+
}, ke = X;
|
|
117
117
|
function hr(t) {
|
|
118
118
|
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
119
119
|
}
|
|
@@ -138,11 +138,11 @@ var Qr = function(n, e, i) {
|
|
|
138
138
|
s !== -1 && (n = n.slice(0, s)), n += (n.indexOf("?") === -1 ? "?" : "&") + a;
|
|
139
139
|
}
|
|
140
140
|
return n;
|
|
141
|
-
}, na =
|
|
142
|
-
function
|
|
141
|
+
}, na = X;
|
|
142
|
+
function ct() {
|
|
143
143
|
this.handlers = [];
|
|
144
144
|
}
|
|
145
|
-
|
|
145
|
+
ct.prototype.use = function(n, e, i) {
|
|
146
146
|
return this.handlers.push({
|
|
147
147
|
fulfilled: n,
|
|
148
148
|
rejected: e,
|
|
@@ -150,15 +150,15 @@ lt.prototype.use = function(n, e, i) {
|
|
|
150
150
|
runWhen: i ? i.runWhen : null
|
|
151
151
|
}), this.handlers.length - 1;
|
|
152
152
|
};
|
|
153
|
-
|
|
153
|
+
ct.prototype.eject = function(n) {
|
|
154
154
|
this.handlers[n] && (this.handlers[n] = null);
|
|
155
155
|
};
|
|
156
|
-
|
|
156
|
+
ct.prototype.forEach = function(n) {
|
|
157
157
|
na.forEach(this.handlers, function(i) {
|
|
158
158
|
i !== null && n(i);
|
|
159
159
|
});
|
|
160
160
|
};
|
|
161
|
-
var aa =
|
|
161
|
+
var aa = ct, ia = X, oa = function(n, e) {
|
|
162
162
|
ia.forEach(n, function(a, r) {
|
|
163
163
|
r !== e && r.toUpperCase() === e.toUpperCase() && (n[e] = a, delete n[r]);
|
|
164
164
|
});
|
|
@@ -189,8 +189,8 @@ function tn() {
|
|
|
189
189
|
vr = 1;
|
|
190
190
|
var t = Zr;
|
|
191
191
|
return Rt = function(e, i, a, r, s) {
|
|
192
|
-
var
|
|
193
|
-
return t(
|
|
192
|
+
var l = new Error(e);
|
|
193
|
+
return t(l, i, a, r, s);
|
|
194
194
|
}, Rt;
|
|
195
195
|
}
|
|
196
196
|
var gt, mr;
|
|
@@ -215,12 +215,12 @@ function ua() {
|
|
|
215
215
|
if (wr)
|
|
216
216
|
return Et;
|
|
217
217
|
wr = 1;
|
|
218
|
-
var t =
|
|
218
|
+
var t = X;
|
|
219
219
|
return Et = t.isStandardBrowserEnv() ? function() {
|
|
220
220
|
return {
|
|
221
|
-
write: function(i, a, r, s,
|
|
221
|
+
write: function(i, a, r, s, l, d) {
|
|
222
222
|
var o = [];
|
|
223
|
-
o.push(i + "=" + encodeURIComponent(a)), t.isNumber(r) && o.push("expires=" + new Date(r).toGMTString()), t.isString(s) && o.push("path=" + s), t.isString(
|
|
223
|
+
o.push(i + "=" + encodeURIComponent(a)), t.isNumber(r) && o.push("expires=" + new Date(r).toGMTString()), t.isString(s) && o.push("path=" + s), t.isString(l) && o.push("domain=" + l), d === !0 && o.push("secure"), document.cookie = o.join("; ");
|
|
224
224
|
},
|
|
225
225
|
read: function(i) {
|
|
226
226
|
var a = document.cookie.match(new RegExp("(^|;\\s*)(" + i + ")=([^;]*)"));
|
|
@@ -243,13 +243,13 @@ function ua() {
|
|
|
243
243
|
}(), Et;
|
|
244
244
|
}
|
|
245
245
|
var St, yr;
|
|
246
|
-
function
|
|
246
|
+
function la() {
|
|
247
247
|
return yr || (yr = 1, St = function(n) {
|
|
248
248
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(n);
|
|
249
249
|
}), St;
|
|
250
250
|
}
|
|
251
251
|
var Ct, br;
|
|
252
|
-
function
|
|
252
|
+
function ca() {
|
|
253
253
|
return br || (br = 1, Ct = function(n, e) {
|
|
254
254
|
return e ? n.replace(/\/+$/, "") + "/" + e.replace(/^\/+/, "") : n;
|
|
255
255
|
}), Ct;
|
|
@@ -259,7 +259,7 @@ function fa() {
|
|
|
259
259
|
if (_r)
|
|
260
260
|
return Tt;
|
|
261
261
|
_r = 1;
|
|
262
|
-
var t =
|
|
262
|
+
var t = la(), n = ca();
|
|
263
263
|
return Tt = function(i, a) {
|
|
264
264
|
return i && !t(a) ? n(i, a) : a;
|
|
265
265
|
}, Tt;
|
|
@@ -269,7 +269,7 @@ function da() {
|
|
|
269
269
|
if (Rr)
|
|
270
270
|
return xt;
|
|
271
271
|
Rr = 1;
|
|
272
|
-
var t =
|
|
272
|
+
var t = X, n = [
|
|
273
273
|
"age",
|
|
274
274
|
"authorization",
|
|
275
275
|
"content-length",
|
|
@@ -289,10 +289,10 @@ function da() {
|
|
|
289
289
|
"user-agent"
|
|
290
290
|
];
|
|
291
291
|
return xt = function(i) {
|
|
292
|
-
var a = {}, r, s,
|
|
292
|
+
var a = {}, r, s, l;
|
|
293
293
|
return i && t.forEach(i.split(`
|
|
294
294
|
`), function(o) {
|
|
295
|
-
if (
|
|
295
|
+
if (l = o.indexOf(":"), r = t.trim(o.substr(0, l)).toLowerCase(), s = t.trim(o.substr(l + 1)), r) {
|
|
296
296
|
if (a[r] && n.indexOf(r) >= 0)
|
|
297
297
|
return;
|
|
298
298
|
r === "set-cookie" ? a[r] = (a[r] ? a[r] : []).concat([s]) : a[r] = a[r] ? a[r] + ", " + s : s;
|
|
@@ -305,12 +305,12 @@ function pa() {
|
|
|
305
305
|
if (gr)
|
|
306
306
|
return Ot;
|
|
307
307
|
gr = 1;
|
|
308
|
-
var t =
|
|
308
|
+
var t = X;
|
|
309
309
|
return Ot = t.isStandardBrowserEnv() ? function() {
|
|
310
310
|
var e = /(msie|trident)/i.test(navigator.userAgent), i = document.createElement("a"), a;
|
|
311
311
|
function r(s) {
|
|
312
|
-
var
|
|
313
|
-
return e && (i.setAttribute("href",
|
|
312
|
+
var l = s;
|
|
313
|
+
return e && (i.setAttribute("href", l), l = i.href), i.setAttribute("href", l), {
|
|
314
314
|
href: i.href,
|
|
315
315
|
protocol: i.protocol ? i.protocol.replace(/:$/, "") : "",
|
|
316
316
|
host: i.host,
|
|
@@ -321,8 +321,8 @@ function pa() {
|
|
|
321
321
|
pathname: i.pathname.charAt(0) === "/" ? i.pathname : "/" + i.pathname
|
|
322
322
|
};
|
|
323
323
|
}
|
|
324
|
-
return a = r(window.location.href), function(
|
|
325
|
-
var d = t.isString(
|
|
324
|
+
return a = r(window.location.href), function(l) {
|
|
325
|
+
var d = t.isString(l) ? r(l) : l;
|
|
326
326
|
return d.protocol === a.protocol && d.host === a.host;
|
|
327
327
|
};
|
|
328
328
|
}() : function() {
|
|
@@ -348,78 +348,78 @@ function Cr() {
|
|
|
348
348
|
if (Sr)
|
|
349
349
|
return Dt;
|
|
350
350
|
Sr = 1;
|
|
351
|
-
var t =
|
|
351
|
+
var t = X, n = sa(), e = ua(), i = Qr, a = fa(), r = da(), s = pa(), l = tn(), d = en, o = ft();
|
|
352
352
|
return Dt = function(f) {
|
|
353
353
|
return new Promise(function(m, O) {
|
|
354
354
|
var D = f.data, R = f.headers, w = f.responseType, E;
|
|
355
|
-
function
|
|
355
|
+
function re() {
|
|
356
356
|
f.cancelToken && f.cancelToken.unsubscribe(E), f.signal && f.signal.removeEventListener("abort", E);
|
|
357
357
|
}
|
|
358
358
|
t.isFormData(D) && delete R["Content-Type"];
|
|
359
359
|
var y = new XMLHttpRequest();
|
|
360
360
|
if (f.auth) {
|
|
361
|
-
var
|
|
362
|
-
R.Authorization = "Basic " + btoa(
|
|
361
|
+
var J = f.auth.username || "", oe = f.auth.password ? unescape(encodeURIComponent(f.auth.password)) : "";
|
|
362
|
+
R.Authorization = "Basic " + btoa(J + ":" + oe);
|
|
363
363
|
}
|
|
364
|
-
var
|
|
365
|
-
y.open(f.method.toUpperCase(), i(
|
|
366
|
-
function
|
|
364
|
+
var Y = a(f.baseURL, f.url);
|
|
365
|
+
y.open(f.method.toUpperCase(), i(Y, f.params, f.paramsSerializer), !0), y.timeout = f.timeout;
|
|
366
|
+
function ne() {
|
|
367
367
|
if (!!y) {
|
|
368
|
-
var
|
|
369
|
-
data:
|
|
368
|
+
var U = "getAllResponseHeaders" in y ? r(y.getAllResponseHeaders()) : null, G = !w || w === "text" || w === "json" ? y.responseText : y.response, z = {
|
|
369
|
+
data: G,
|
|
370
370
|
status: y.status,
|
|
371
371
|
statusText: y.statusText,
|
|
372
|
-
headers:
|
|
372
|
+
headers: U,
|
|
373
373
|
config: f,
|
|
374
374
|
request: y
|
|
375
375
|
};
|
|
376
376
|
n(function(A) {
|
|
377
|
-
m(A),
|
|
377
|
+
m(A), re();
|
|
378
378
|
}, function(A) {
|
|
379
|
-
O(A),
|
|
380
|
-
},
|
|
379
|
+
O(A), re();
|
|
380
|
+
}, z), y = null;
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
|
-
if ("onloadend" in y ? y.onloadend =
|
|
384
|
-
!y || y.readyState !== 4 || y.status === 0 && !(y.responseURL && y.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
383
|
+
if ("onloadend" in y ? y.onloadend = ne : y.onreadystatechange = function() {
|
|
384
|
+
!y || y.readyState !== 4 || y.status === 0 && !(y.responseURL && y.responseURL.indexOf("file:") === 0) || setTimeout(ne);
|
|
385
385
|
}, y.onabort = function() {
|
|
386
|
-
!y || (O(
|
|
386
|
+
!y || (O(l("Request aborted", f, "ECONNABORTED", y)), y = null);
|
|
387
387
|
}, y.onerror = function() {
|
|
388
|
-
O(
|
|
388
|
+
O(l("Network Error", f, null, y)), y = null;
|
|
389
389
|
}, y.ontimeout = function() {
|
|
390
|
-
var
|
|
391
|
-
f.timeoutErrorMessage && (
|
|
392
|
-
|
|
390
|
+
var G = f.timeout ? "timeout of " + f.timeout + "ms exceeded" : "timeout exceeded", z = f.transitional || d;
|
|
391
|
+
f.timeoutErrorMessage && (G = f.timeoutErrorMessage), O(l(
|
|
392
|
+
G,
|
|
393
393
|
f,
|
|
394
|
-
|
|
394
|
+
z.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
|
|
395
395
|
y
|
|
396
396
|
)), y = null;
|
|
397
397
|
}, t.isStandardBrowserEnv()) {
|
|
398
|
-
var F = (f.withCredentials || s(
|
|
398
|
+
var F = (f.withCredentials || s(Y)) && f.xsrfCookieName ? e.read(f.xsrfCookieName) : void 0;
|
|
399
399
|
F && (R[f.xsrfHeaderName] = F);
|
|
400
400
|
}
|
|
401
|
-
"setRequestHeader" in y && t.forEach(R, function(
|
|
402
|
-
typeof D > "u" &&
|
|
403
|
-
}), t.isUndefined(f.withCredentials) || (y.withCredentials = !!f.withCredentials), w && w !== "json" && (y.responseType = f.responseType), typeof f.onDownloadProgress == "function" && y.addEventListener("progress", f.onDownloadProgress), typeof f.onUploadProgress == "function" && y.upload && y.upload.addEventListener("progress", f.onUploadProgress), (f.cancelToken || f.signal) && (E = function(
|
|
404
|
-
!y || (O(!
|
|
401
|
+
"setRequestHeader" in y && t.forEach(R, function(G, z) {
|
|
402
|
+
typeof D > "u" && z.toLowerCase() === "content-type" ? delete R[z] : y.setRequestHeader(z, G);
|
|
403
|
+
}), t.isUndefined(f.withCredentials) || (y.withCredentials = !!f.withCredentials), w && w !== "json" && (y.responseType = f.responseType), typeof f.onDownloadProgress == "function" && y.addEventListener("progress", f.onDownloadProgress), typeof f.onUploadProgress == "function" && y.upload && y.upload.addEventListener("progress", f.onUploadProgress), (f.cancelToken || f.signal) && (E = function(U) {
|
|
404
|
+
!y || (O(!U || U && U.type ? new o("canceled") : U), y.abort(), y = null);
|
|
405
405
|
}, f.cancelToken && f.cancelToken.subscribe(E), f.signal && (f.signal.aborted ? E() : f.signal.addEventListener("abort", E))), D || (D = null), y.send(D);
|
|
406
406
|
});
|
|
407
407
|
}, Dt;
|
|
408
408
|
}
|
|
409
|
-
var
|
|
409
|
+
var q = X, Tr = oa, ha = Zr, va = en, ma = {
|
|
410
410
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
411
411
|
};
|
|
412
412
|
function xr(t, n) {
|
|
413
|
-
!
|
|
413
|
+
!q.isUndefined(t) && q.isUndefined(t["Content-Type"]) && (t["Content-Type"] = n);
|
|
414
414
|
}
|
|
415
415
|
function wa() {
|
|
416
416
|
var t;
|
|
417
417
|
return (typeof XMLHttpRequest < "u" || typeof process < "u" && Object.prototype.toString.call(process) === "[object process]") && (t = Cr()), t;
|
|
418
418
|
}
|
|
419
419
|
function ya(t, n, e) {
|
|
420
|
-
if (
|
|
420
|
+
if (q.isString(t))
|
|
421
421
|
try {
|
|
422
|
-
return (n || JSON.parse)(t),
|
|
422
|
+
return (n || JSON.parse)(t), q.trim(t);
|
|
423
423
|
} catch (i) {
|
|
424
424
|
if (i.name !== "SyntaxError")
|
|
425
425
|
throw i;
|
|
@@ -430,11 +430,11 @@ var dt = {
|
|
|
430
430
|
transitional: va,
|
|
431
431
|
adapter: wa(),
|
|
432
432
|
transformRequest: [function(n, e) {
|
|
433
|
-
return Tr(e, "Accept"), Tr(e, "Content-Type"),
|
|
433
|
+
return Tr(e, "Accept"), Tr(e, "Content-Type"), q.isFormData(n) || q.isArrayBuffer(n) || q.isBuffer(n) || q.isStream(n) || q.isFile(n) || q.isBlob(n) ? n : q.isArrayBufferView(n) ? n.buffer : q.isURLSearchParams(n) ? (xr(e, "application/x-www-form-urlencoded;charset=utf-8"), n.toString()) : q.isObject(n) || e && e["Content-Type"] === "application/json" ? (xr(e, "application/json"), ya(n)) : n;
|
|
434
434
|
}],
|
|
435
435
|
transformResponse: [function(n) {
|
|
436
436
|
var e = this.transitional || dt.transitional, i = e && e.silentJSONParsing, a = e && e.forcedJSONParsing, r = !i && this.responseType === "json";
|
|
437
|
-
if (r || a &&
|
|
437
|
+
if (r || a && q.isString(n) && n.length)
|
|
438
438
|
try {
|
|
439
439
|
return JSON.parse(n);
|
|
440
440
|
} catch (s) {
|
|
@@ -457,13 +457,13 @@ var dt = {
|
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
459
|
};
|
|
460
|
-
|
|
460
|
+
q.forEach(["delete", "get", "head"], function(n) {
|
|
461
461
|
dt.headers[n] = {};
|
|
462
462
|
});
|
|
463
|
-
|
|
464
|
-
dt.headers[n] =
|
|
463
|
+
q.forEach(["post", "put", "patch"], function(n) {
|
|
464
|
+
dt.headers[n] = q.merge(ma);
|
|
465
465
|
});
|
|
466
|
-
var Qt = dt, ba =
|
|
466
|
+
var Qt = dt, ba = X, _a = Qt, Ra = function(n, e, i) {
|
|
467
467
|
var a = this || _a;
|
|
468
468
|
return ba.forEach(i, function(s) {
|
|
469
469
|
n = s.call(a, n, e);
|
|
@@ -474,7 +474,7 @@ function rn() {
|
|
|
474
474
|
return !!(n && n.__CANCEL__);
|
|
475
475
|
}), At;
|
|
476
476
|
}
|
|
477
|
-
var Fr =
|
|
477
|
+
var Fr = X, kt = Ra, ga = rn(), Ea = Qt, Sa = ft();
|
|
478
478
|
function jt(t) {
|
|
479
479
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
480
480
|
throw new Sa("canceled");
|
|
@@ -511,67 +511,67 @@ var Ca = function(n) {
|
|
|
511
511
|
n.transformResponse
|
|
512
512
|
))), Promise.reject(a);
|
|
513
513
|
});
|
|
514
|
-
},
|
|
514
|
+
}, Z = X, nn = function(n, e) {
|
|
515
515
|
e = e || {};
|
|
516
516
|
var i = {};
|
|
517
|
-
function a(
|
|
518
|
-
return
|
|
517
|
+
function a(c, f) {
|
|
518
|
+
return Z.isPlainObject(c) && Z.isPlainObject(f) ? Z.merge(c, f) : Z.isPlainObject(f) ? Z.merge({}, f) : Z.isArray(f) ? f.slice() : f;
|
|
519
519
|
}
|
|
520
|
-
function r(
|
|
521
|
-
if (
|
|
522
|
-
if (!
|
|
523
|
-
return a(void 0, n[
|
|
520
|
+
function r(c) {
|
|
521
|
+
if (Z.isUndefined(e[c])) {
|
|
522
|
+
if (!Z.isUndefined(n[c]))
|
|
523
|
+
return a(void 0, n[c]);
|
|
524
524
|
} else
|
|
525
|
-
return a(n[
|
|
525
|
+
return a(n[c], e[c]);
|
|
526
526
|
}
|
|
527
|
-
function s(
|
|
528
|
-
if (!
|
|
529
|
-
return a(void 0, e[
|
|
527
|
+
function s(c) {
|
|
528
|
+
if (!Z.isUndefined(e[c]))
|
|
529
|
+
return a(void 0, e[c]);
|
|
530
530
|
}
|
|
531
|
-
function c
|
|
532
|
-
if (
|
|
533
|
-
if (!
|
|
534
|
-
return a(void 0, n[
|
|
531
|
+
function l(c) {
|
|
532
|
+
if (Z.isUndefined(e[c])) {
|
|
533
|
+
if (!Z.isUndefined(n[c]))
|
|
534
|
+
return a(void 0, n[c]);
|
|
535
535
|
} else
|
|
536
|
-
return a(void 0, e[
|
|
536
|
+
return a(void 0, e[c]);
|
|
537
537
|
}
|
|
538
|
-
function d(
|
|
539
|
-
if (
|
|
540
|
-
return a(n[
|
|
541
|
-
if (
|
|
542
|
-
return a(void 0, n[
|
|
538
|
+
function d(c) {
|
|
539
|
+
if (c in e)
|
|
540
|
+
return a(n[c], e[c]);
|
|
541
|
+
if (c in n)
|
|
542
|
+
return a(void 0, n[c]);
|
|
543
543
|
}
|
|
544
544
|
var o = {
|
|
545
545
|
url: s,
|
|
546
546
|
method: s,
|
|
547
547
|
data: s,
|
|
548
|
-
baseURL:
|
|
549
|
-
transformRequest:
|
|
550
|
-
transformResponse:
|
|
551
|
-
paramsSerializer:
|
|
552
|
-
timeout:
|
|
553
|
-
timeoutMessage:
|
|
554
|
-
withCredentials:
|
|
555
|
-
adapter:
|
|
556
|
-
responseType:
|
|
557
|
-
xsrfCookieName:
|
|
558
|
-
xsrfHeaderName:
|
|
559
|
-
onUploadProgress:
|
|
560
|
-
onDownloadProgress:
|
|
561
|
-
decompress:
|
|
562
|
-
maxContentLength:
|
|
563
|
-
maxBodyLength:
|
|
564
|
-
transport:
|
|
565
|
-
httpAgent:
|
|
566
|
-
httpsAgent:
|
|
567
|
-
cancelToken:
|
|
568
|
-
socketPath:
|
|
569
|
-
responseEncoding:
|
|
548
|
+
baseURL: l,
|
|
549
|
+
transformRequest: l,
|
|
550
|
+
transformResponse: l,
|
|
551
|
+
paramsSerializer: l,
|
|
552
|
+
timeout: l,
|
|
553
|
+
timeoutMessage: l,
|
|
554
|
+
withCredentials: l,
|
|
555
|
+
adapter: l,
|
|
556
|
+
responseType: l,
|
|
557
|
+
xsrfCookieName: l,
|
|
558
|
+
xsrfHeaderName: l,
|
|
559
|
+
onUploadProgress: l,
|
|
560
|
+
onDownloadProgress: l,
|
|
561
|
+
decompress: l,
|
|
562
|
+
maxContentLength: l,
|
|
563
|
+
maxBodyLength: l,
|
|
564
|
+
transport: l,
|
|
565
|
+
httpAgent: l,
|
|
566
|
+
httpsAgent: l,
|
|
567
|
+
cancelToken: l,
|
|
568
|
+
socketPath: l,
|
|
569
|
+
responseEncoding: l,
|
|
570
570
|
validateStatus: d
|
|
571
571
|
};
|
|
572
|
-
return
|
|
572
|
+
return Z.forEach(Object.keys(n).concat(Object.keys(e)), function(f) {
|
|
573
573
|
var v = o[f] || r, m = v(f);
|
|
574
|
-
|
|
574
|
+
Z.isUndefined(m) && v !== d || (i[f] = m);
|
|
575
575
|
}), i;
|
|
576
576
|
}, Pt, Dr;
|
|
577
577
|
function an() {
|
|
@@ -590,7 +590,7 @@ Zt.transitional = function(n, e, i) {
|
|
|
590
590
|
function a(r, s) {
|
|
591
591
|
return "[Axios v" + Ta + "] Transitional option '" + r + "'" + s + (i ? ". " + i : "");
|
|
592
592
|
}
|
|
593
|
-
return function(r, s,
|
|
593
|
+
return function(r, s, l) {
|
|
594
594
|
if (n === !1)
|
|
595
595
|
throw new Error(a(s, " has been removed" + (e ? " in " + e : "")));
|
|
596
596
|
return e && !Ar[s] && (Ar[s] = !0, console.warn(
|
|
@@ -598,7 +598,7 @@ Zt.transitional = function(n, e, i) {
|
|
|
598
598
|
s,
|
|
599
599
|
" has been deprecated since v" + e + " and will be removed in the near future"
|
|
600
600
|
)
|
|
601
|
-
)), n ? n(r, s,
|
|
601
|
+
)), n ? n(r, s, l) : !0;
|
|
602
602
|
};
|
|
603
603
|
};
|
|
604
604
|
function xa(t, n, e) {
|
|
@@ -607,7 +607,7 @@ function xa(t, n, e) {
|
|
|
607
607
|
for (var i = Object.keys(t), a = i.length; a-- > 0; ) {
|
|
608
608
|
var r = i[a], s = n[r];
|
|
609
609
|
if (s) {
|
|
610
|
-
var
|
|
610
|
+
var l = t[r], d = l === void 0 || s(l, r, t);
|
|
611
611
|
if (d !== !0)
|
|
612
612
|
throw new TypeError("option " + r + " must be " + d);
|
|
613
613
|
continue;
|
|
@@ -619,7 +619,7 @@ function xa(t, n, e) {
|
|
|
619
619
|
var Oa = {
|
|
620
620
|
assertOptions: xa,
|
|
621
621
|
validators: Zt
|
|
622
|
-
}, on =
|
|
622
|
+
}, on = X, Fa = Qr, kr = aa, jr = Ca, pt = nn, sn = Oa, je = sn.validators;
|
|
623
623
|
function Ge(t) {
|
|
624
624
|
this.defaults = t, this.interceptors = {
|
|
625
625
|
request: new kr(),
|
|
@@ -642,30 +642,30 @@ Ge.prototype.request = function(n, e) {
|
|
|
642
642
|
this.interceptors.response.forEach(function(m) {
|
|
643
643
|
s.push(m.fulfilled, m.rejected);
|
|
644
644
|
});
|
|
645
|
-
var
|
|
645
|
+
var l;
|
|
646
646
|
if (!r) {
|
|
647
647
|
var d = [jr, void 0];
|
|
648
|
-
for (Array.prototype.unshift.apply(d, a), d = d.concat(s),
|
|
649
|
-
|
|
650
|
-
return
|
|
648
|
+
for (Array.prototype.unshift.apply(d, a), d = d.concat(s), l = Promise.resolve(e); d.length; )
|
|
649
|
+
l = l.then(d.shift(), d.shift());
|
|
650
|
+
return l;
|
|
651
651
|
}
|
|
652
652
|
for (var o = e; a.length; ) {
|
|
653
|
-
var
|
|
653
|
+
var c = a.shift(), f = a.shift();
|
|
654
654
|
try {
|
|
655
|
-
o =
|
|
655
|
+
o = c(o);
|
|
656
656
|
} catch (v) {
|
|
657
657
|
f(v);
|
|
658
658
|
break;
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
661
|
try {
|
|
662
|
-
|
|
662
|
+
l = jr(o);
|
|
663
663
|
} catch (v) {
|
|
664
664
|
return Promise.reject(v);
|
|
665
665
|
}
|
|
666
666
|
for (; s.length; )
|
|
667
|
-
|
|
668
|
-
return
|
|
667
|
+
l = l.then(s.shift(), s.shift());
|
|
668
|
+
return l;
|
|
669
669
|
};
|
|
670
670
|
Ge.prototype.getUri = function(n) {
|
|
671
671
|
return n = pt(this.defaults, n), Fa(n.url, n.params, n.paramsSerializer).replace(/^\?/, "");
|
|
@@ -704,18 +704,18 @@ function Aa() {
|
|
|
704
704
|
var a = this;
|
|
705
705
|
this.promise.then(function(r) {
|
|
706
706
|
if (!!a._listeners) {
|
|
707
|
-
var s,
|
|
708
|
-
for (s = 0; s <
|
|
707
|
+
var s, l = a._listeners.length;
|
|
708
|
+
for (s = 0; s < l; s++)
|
|
709
709
|
a._listeners[s](r);
|
|
710
710
|
a._listeners = null;
|
|
711
711
|
}
|
|
712
712
|
}), this.promise.then = function(r) {
|
|
713
|
-
var s,
|
|
713
|
+
var s, l = new Promise(function(d) {
|
|
714
714
|
a.subscribe(d), s = d;
|
|
715
715
|
}).then(r);
|
|
716
|
-
return
|
|
716
|
+
return l.cancel = function() {
|
|
717
717
|
a.unsubscribe(s);
|
|
718
|
-
},
|
|
718
|
+
}, l;
|
|
719
719
|
}, e(function(s) {
|
|
720
720
|
a.reason || (a.reason = new t(s), i(a.reason));
|
|
721
721
|
});
|
|
@@ -757,31 +757,31 @@ function ja() {
|
|
|
757
757
|
if (Lr)
|
|
758
758
|
return Nt;
|
|
759
759
|
Lr = 1;
|
|
760
|
-
var t =
|
|
760
|
+
var t = X;
|
|
761
761
|
return Nt = function(e) {
|
|
762
762
|
return t.isObject(e) && e.isAxiosError === !0;
|
|
763
763
|
}, Nt;
|
|
764
764
|
}
|
|
765
|
-
var Nr =
|
|
765
|
+
var Nr = X, Pa = Yr, it = Da, Ua = nn, La = Qt;
|
|
766
766
|
function un(t) {
|
|
767
767
|
var n = new it(t), e = Pa(it.prototype.request, n);
|
|
768
768
|
return Nr.extend(e, it.prototype, n), Nr.extend(e, n), e.create = function(a) {
|
|
769
769
|
return un(Ua(t, a));
|
|
770
770
|
}, e;
|
|
771
771
|
}
|
|
772
|
-
var
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
772
|
+
var le = un(La);
|
|
773
|
+
le.Axios = it;
|
|
774
|
+
le.Cancel = ft();
|
|
775
|
+
le.CancelToken = Aa();
|
|
776
|
+
le.isCancel = rn();
|
|
777
|
+
le.VERSION = an().version;
|
|
778
|
+
le.all = function(n) {
|
|
779
779
|
return Promise.all(n);
|
|
780
780
|
};
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
Gt.exports =
|
|
784
|
-
Gt.exports.default =
|
|
781
|
+
le.spread = ka();
|
|
782
|
+
le.isAxiosError = ja();
|
|
783
|
+
Gt.exports = le;
|
|
784
|
+
Gt.exports.default = le;
|
|
785
785
|
(function(t) {
|
|
786
786
|
t.exports = Gt.exports;
|
|
787
787
|
})(Ye);
|
|
@@ -801,22 +801,22 @@ var ut = x && x.__assign || function() {
|
|
|
801
801
|
});
|
|
802
802
|
}
|
|
803
803
|
return new (e || (e = Promise))(function(r, s) {
|
|
804
|
-
function c
|
|
804
|
+
function l(c) {
|
|
805
805
|
try {
|
|
806
|
-
o(i.next(
|
|
806
|
+
o(i.next(c));
|
|
807
807
|
} catch (f) {
|
|
808
808
|
s(f);
|
|
809
809
|
}
|
|
810
810
|
}
|
|
811
|
-
function d(
|
|
811
|
+
function d(c) {
|
|
812
812
|
try {
|
|
813
|
-
o(i.throw(
|
|
813
|
+
o(i.throw(c));
|
|
814
814
|
} catch (f) {
|
|
815
815
|
s(f);
|
|
816
816
|
}
|
|
817
817
|
}
|
|
818
|
-
function o(
|
|
819
|
-
|
|
818
|
+
function o(c) {
|
|
819
|
+
c.done ? r(c.value) : a(c.value).then(l, d);
|
|
820
820
|
}
|
|
821
821
|
o((i = i.apply(t, n || [])).next());
|
|
822
822
|
});
|
|
@@ -826,12 +826,12 @@ var ut = x && x.__assign || function() {
|
|
|
826
826
|
throw r[1];
|
|
827
827
|
return r[1];
|
|
828
828
|
}, trys: [], ops: [] }, i, a, r, s;
|
|
829
|
-
return s = { next:
|
|
829
|
+
return s = { next: l(0), throw: l(1), return: l(2) }, typeof Symbol == "function" && (s[Symbol.iterator] = function() {
|
|
830
830
|
return this;
|
|
831
831
|
}), s;
|
|
832
|
-
function
|
|
833
|
-
return function(
|
|
834
|
-
return d([o,
|
|
832
|
+
function l(o) {
|
|
833
|
+
return function(c) {
|
|
834
|
+
return d([o, c]);
|
|
835
835
|
};
|
|
836
836
|
}
|
|
837
837
|
function d(o) {
|
|
@@ -875,8 +875,8 @@ var ut = x && x.__assign || function() {
|
|
|
875
875
|
continue;
|
|
876
876
|
}
|
|
877
877
|
o = n.call(t, e);
|
|
878
|
-
} catch (
|
|
879
|
-
o = [6,
|
|
878
|
+
} catch (c) {
|
|
879
|
+
o = [6, c], a = 0;
|
|
880
880
|
} finally {
|
|
881
881
|
i = r = 0;
|
|
882
882
|
}
|
|
@@ -906,12 +906,12 @@ var rt = Ye.exports, Na = function() {
|
|
|
906
906
|
}).then(function(r) {
|
|
907
907
|
return r.data;
|
|
908
908
|
}).catch(function(r) {
|
|
909
|
-
var s,
|
|
909
|
+
var s, l;
|
|
910
910
|
throw {
|
|
911
911
|
httpStatus: r.response.status,
|
|
912
912
|
httpStatusText: r.response.statusText,
|
|
913
913
|
message: (s = r.response.data.message) !== null && s !== void 0 ? s : "There was an error.",
|
|
914
|
-
exception: (
|
|
914
|
+
exception: (l = r.response.data.exception) !== null && l !== void 0 ? l : ""
|
|
915
915
|
};
|
|
916
916
|
})];
|
|
917
917
|
});
|
|
@@ -930,12 +930,12 @@ var rt = Ye.exports, Na = function() {
|
|
|
930
930
|
}).then(function(r) {
|
|
931
931
|
return r.data;
|
|
932
932
|
}).catch(function(r) {
|
|
933
|
-
var s,
|
|
933
|
+
var s, l;
|
|
934
934
|
throw {
|
|
935
935
|
httpStatus: r.response.status,
|
|
936
936
|
httpStatusText: r.response.statusText,
|
|
937
937
|
message: (s = r.response.data.message) !== null && s !== void 0 ? s : "There was an error.",
|
|
938
|
-
exception: (
|
|
938
|
+
exception: (l = r.response.data.exception) !== null && l !== void 0 ? l : ""
|
|
939
939
|
};
|
|
940
940
|
})];
|
|
941
941
|
});
|
|
@@ -954,12 +954,12 @@ var rt = Ye.exports, Na = function() {
|
|
|
954
954
|
}).then(function(r) {
|
|
955
955
|
return r.data;
|
|
956
956
|
}).catch(function(r) {
|
|
957
|
-
var s,
|
|
957
|
+
var s, l;
|
|
958
958
|
throw {
|
|
959
959
|
httpStatus: r.response.status,
|
|
960
960
|
httpStatusText: r.response.statusText,
|
|
961
961
|
message: (s = r.response.data.message) !== null && s !== void 0 ? s : "There was an error.",
|
|
962
|
-
exception: (
|
|
962
|
+
exception: (l = r.response.data.exception) !== null && l !== void 0 ? l : ""
|
|
963
963
|
};
|
|
964
964
|
})];
|
|
965
965
|
});
|
|
@@ -979,12 +979,12 @@ var rt = Ye.exports, Na = function() {
|
|
|
979
979
|
}).then(function(r) {
|
|
980
980
|
return r.data;
|
|
981
981
|
}).catch(function(r) {
|
|
982
|
-
var s,
|
|
982
|
+
var s, l;
|
|
983
983
|
throw {
|
|
984
984
|
httpStatus: r.response.status,
|
|
985
985
|
httpStatusText: r.response.statusText,
|
|
986
986
|
message: (s = r.response.data.message) !== null && s !== void 0 ? s : "There was an error.",
|
|
987
|
-
exception: (
|
|
987
|
+
exception: (l = r.response.data.exception) !== null && l !== void 0 ? l : ""
|
|
988
988
|
};
|
|
989
989
|
})];
|
|
990
990
|
});
|
|
@@ -992,15 +992,15 @@ var rt = Ye.exports, Na = function() {
|
|
|
992
992
|
}, t;
|
|
993
993
|
}();
|
|
994
994
|
Xe.FrappeCall = Na;
|
|
995
|
-
var ze = {},
|
|
996
|
-
return
|
|
995
|
+
var ze = {}, lt = x && x.__assign || function() {
|
|
996
|
+
return lt = Object.assign || function(t) {
|
|
997
997
|
for (var n, e = 1, i = arguments.length; e < i; e++) {
|
|
998
998
|
n = arguments[e];
|
|
999
999
|
for (var a in n)
|
|
1000
1000
|
Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
|
|
1001
1001
|
}
|
|
1002
1002
|
return t;
|
|
1003
|
-
},
|
|
1003
|
+
}, lt.apply(this, arguments);
|
|
1004
1004
|
}, Pe = x && x.__awaiter || function(t, n, e, i) {
|
|
1005
1005
|
function a(r) {
|
|
1006
1006
|
return r instanceof e ? r : new e(function(s) {
|
|
@@ -1008,22 +1008,22 @@ var ze = {}, ct = x && x.__assign || function() {
|
|
|
1008
1008
|
});
|
|
1009
1009
|
}
|
|
1010
1010
|
return new (e || (e = Promise))(function(r, s) {
|
|
1011
|
-
function c
|
|
1011
|
+
function l(c) {
|
|
1012
1012
|
try {
|
|
1013
|
-
o(i.next(
|
|
1013
|
+
o(i.next(c));
|
|
1014
1014
|
} catch (f) {
|
|
1015
1015
|
s(f);
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
|
-
function d(
|
|
1018
|
+
function d(c) {
|
|
1019
1019
|
try {
|
|
1020
|
-
o(i.throw(
|
|
1020
|
+
o(i.throw(c));
|
|
1021
1021
|
} catch (f) {
|
|
1022
1022
|
s(f);
|
|
1023
1023
|
}
|
|
1024
1024
|
}
|
|
1025
|
-
function o(
|
|
1026
|
-
|
|
1025
|
+
function o(c) {
|
|
1026
|
+
c.done ? r(c.value) : a(c.value).then(l, d);
|
|
1027
1027
|
}
|
|
1028
1028
|
o((i = i.apply(t, n || [])).next());
|
|
1029
1029
|
});
|
|
@@ -1033,12 +1033,12 @@ var ze = {}, ct = x && x.__assign || function() {
|
|
|
1033
1033
|
throw r[1];
|
|
1034
1034
|
return r[1];
|
|
1035
1035
|
}, trys: [], ops: [] }, i, a, r, s;
|
|
1036
|
-
return s = { next:
|
|
1036
|
+
return s = { next: l(0), throw: l(1), return: l(2) }, typeof Symbol == "function" && (s[Symbol.iterator] = function() {
|
|
1037
1037
|
return this;
|
|
1038
1038
|
}), s;
|
|
1039
|
-
function
|
|
1040
|
-
return function(
|
|
1041
|
-
return d([o,
|
|
1039
|
+
function l(o) {
|
|
1040
|
+
return function(c) {
|
|
1041
|
+
return d([o, c]);
|
|
1042
1042
|
};
|
|
1043
1043
|
}
|
|
1044
1044
|
function d(o) {
|
|
@@ -1082,8 +1082,8 @@ var ze = {}, ct = x && x.__assign || function() {
|
|
|
1082
1082
|
continue;
|
|
1083
1083
|
}
|
|
1084
1084
|
o = n.call(t, e);
|
|
1085
|
-
} catch (
|
|
1086
|
-
o = [6,
|
|
1085
|
+
} catch (c) {
|
|
1086
|
+
o = [6, c], a = 0;
|
|
1087
1087
|
} finally {
|
|
1088
1088
|
i = r = 0;
|
|
1089
1089
|
}
|
|
@@ -1115,12 +1115,12 @@ var Le = Ye.exports, qa = function() {
|
|
|
1115
1115
|
}).then(function(r) {
|
|
1116
1116
|
return r.data.data;
|
|
1117
1117
|
}).catch(function(r) {
|
|
1118
|
-
var s,
|
|
1118
|
+
var s, l;
|
|
1119
1119
|
throw {
|
|
1120
1120
|
httpStatus: r.response.status,
|
|
1121
1121
|
httpStatusText: r.response.statusText,
|
|
1122
1122
|
message: "There was an error while fetching the document.",
|
|
1123
|
-
exception: (
|
|
1123
|
+
exception: (l = (s = r.response.data.exception) !== null && s !== void 0 ? s : r.response.data.exc_type) !== null && l !== void 0 ? l : ""
|
|
1124
1124
|
};
|
|
1125
1125
|
})];
|
|
1126
1126
|
});
|
|
@@ -1128,15 +1128,15 @@ var Le = Ye.exports, qa = function() {
|
|
|
1128
1128
|
}, t.prototype.getDocList = function(n, e) {
|
|
1129
1129
|
var i;
|
|
1130
1130
|
return Pe(this, void 0, void 0, function() {
|
|
1131
|
-
var a, r, s,
|
|
1131
|
+
var a, r, s, l, d, o, c, f, v, m, O;
|
|
1132
1132
|
return Ue(this, function(D) {
|
|
1133
|
-
return a = {}, e && (r = e.fields, s = e.filters,
|
|
1133
|
+
return a = {}, e && (r = e.fields, s = e.filters, l = e.orFilters, d = e.orderBy, o = e.limit, c = e.limit_start, f = e.asDict, v = f === void 0 ? !0 : f, m = d ? "".concat(d == null ? void 0 : d.field, " ").concat((i = d == null ? void 0 : d.order) !== null && i !== void 0 ? i : "asc") : "", a = {
|
|
1134
1134
|
fields: r ? JSON.stringify(r) : void 0,
|
|
1135
1135
|
filters: s ? JSON.stringify(s) : void 0,
|
|
1136
|
-
or_filters:
|
|
1136
|
+
or_filters: l ? JSON.stringify(l) : void 0,
|
|
1137
1137
|
order_by: m,
|
|
1138
1138
|
limit: o,
|
|
1139
|
-
page_limit_start:
|
|
1139
|
+
page_limit_start: c,
|
|
1140
1140
|
as_dict: v
|
|
1141
1141
|
}), O = {
|
|
1142
1142
|
Accept: "application/json",
|
|
@@ -1167,18 +1167,18 @@ var Le = Ye.exports, qa = function() {
|
|
|
1167
1167
|
Accept: "application/json",
|
|
1168
1168
|
"Content-Type": "application/json; charset=utf-8",
|
|
1169
1169
|
"X-Frappe-Site-Name": window.location.hostname
|
|
1170
|
-
}, window.csrf_token && window.csrf_token !== "{{ csrf_token }}" && (i["X-Frappe-CSRF-Token"] = window.csrf_token), [2, Le.default.post(this.getRequestURL(n),
|
|
1170
|
+
}, window.csrf_token && window.csrf_token !== "{{ csrf_token }}" && (i["X-Frappe-CSRF-Token"] = window.csrf_token), [2, Le.default.post(this.getRequestURL(n), lt({}, e), {
|
|
1171
1171
|
headers: i,
|
|
1172
1172
|
withCredentials: !0
|
|
1173
1173
|
}).then(function(r) {
|
|
1174
1174
|
return r.data.data;
|
|
1175
1175
|
}).catch(function(r) {
|
|
1176
|
-
var s,
|
|
1176
|
+
var s, l, d;
|
|
1177
1177
|
throw {
|
|
1178
1178
|
httpStatus: r.response.status,
|
|
1179
1179
|
httpStatusText: r.response.statusText,
|
|
1180
1180
|
message: (s = r.response.data.message) !== null && s !== void 0 ? s : "There was an error while creating the document.",
|
|
1181
|
-
exception: (d = (
|
|
1181
|
+
exception: (d = (l = r.response.data.exception) !== null && l !== void 0 ? l : r.response.data.exc_type) !== null && d !== void 0 ? d : ""
|
|
1182
1182
|
};
|
|
1183
1183
|
})];
|
|
1184
1184
|
});
|
|
@@ -1191,17 +1191,17 @@ var Le = Ye.exports, qa = function() {
|
|
|
1191
1191
|
Accept: "application/json",
|
|
1192
1192
|
"Content-Type": "application/json; charset=utf-8",
|
|
1193
1193
|
"X-Frappe-Site-Name": window.location.hostname
|
|
1194
|
-
}, window.csrf_token && window.csrf_token !== "{{ csrf_token }}" && (a["X-Frappe-CSRF-Token"] = window.csrf_token), [2, Le.default.put(this.getRequestURL(n, e),
|
|
1194
|
+
}, window.csrf_token && window.csrf_token !== "{{ csrf_token }}" && (a["X-Frappe-CSRF-Token"] = window.csrf_token), [2, Le.default.put(this.getRequestURL(n, e), lt({}, i), {
|
|
1195
1195
|
headers: a,
|
|
1196
1196
|
withCredentials: !0
|
|
1197
1197
|
}).then(function(s) {
|
|
1198
1198
|
return s.data.data;
|
|
1199
1199
|
}).catch(function(s) {
|
|
1200
|
-
var
|
|
1200
|
+
var l, d, o;
|
|
1201
1201
|
throw {
|
|
1202
1202
|
httpStatus: s.response.status,
|
|
1203
1203
|
httpStatusText: s.response.statusText,
|
|
1204
|
-
message: (
|
|
1204
|
+
message: (l = s.response.data.message) !== null && l !== void 0 ? l : "There was an error while updating the document.",
|
|
1205
1205
|
exception: (o = (d = s.response.data.exception) !== null && d !== void 0 ? d : s.response.data.exc_type) !== null && o !== void 0 ? o : ""
|
|
1206
1206
|
};
|
|
1207
1207
|
})];
|
|
@@ -1221,12 +1221,12 @@ var Le = Ye.exports, qa = function() {
|
|
|
1221
1221
|
}).then(function(r) {
|
|
1222
1222
|
return r.data;
|
|
1223
1223
|
}).catch(function(r) {
|
|
1224
|
-
var s,
|
|
1224
|
+
var s, l;
|
|
1225
1225
|
throw {
|
|
1226
1226
|
httpStatus: r.response.status,
|
|
1227
1227
|
httpStatusText: r.response.statusText,
|
|
1228
1228
|
message: "There was an error while deleting the document.",
|
|
1229
|
-
exception: (
|
|
1229
|
+
exception: (l = (s = r.response.data.exception) !== null && s !== void 0 ? s : r.response.data.exc_type) !== null && l !== void 0 ? l : ""
|
|
1230
1230
|
};
|
|
1231
1231
|
})];
|
|
1232
1232
|
});
|
|
@@ -1234,7 +1234,7 @@ var Le = Ye.exports, qa = function() {
|
|
|
1234
1234
|
}, t.prototype.getCount = function(n, e, i, a) {
|
|
1235
1235
|
return i === void 0 && (i = !1), a === void 0 && (a = !1), Pe(this, void 0, void 0, function() {
|
|
1236
1236
|
var r, s;
|
|
1237
|
-
return Ue(this, function(
|
|
1237
|
+
return Ue(this, function(l) {
|
|
1238
1238
|
return r = {
|
|
1239
1239
|
doctype: n,
|
|
1240
1240
|
debug: a,
|
|
@@ -1251,12 +1251,12 @@ var Le = Ye.exports, qa = function() {
|
|
|
1251
1251
|
}).then(function(d) {
|
|
1252
1252
|
return d.data.message;
|
|
1253
1253
|
}).catch(function(d) {
|
|
1254
|
-
var o,
|
|
1254
|
+
var o, c;
|
|
1255
1255
|
throw {
|
|
1256
1256
|
httpStatus: d.response.status,
|
|
1257
1257
|
httpStatusText: d.response.statusText,
|
|
1258
1258
|
message: "There was an error while getting the count.",
|
|
1259
|
-
exception: (
|
|
1259
|
+
exception: (c = (o = d.response.data.exception) !== null && o !== void 0 ? o : d.response.data.exc_type) !== null && c !== void 0 ? c : ""
|
|
1260
1260
|
};
|
|
1261
1261
|
})];
|
|
1262
1262
|
});
|
|
@@ -1271,22 +1271,22 @@ var Ke = {}, Ia = x && x.__awaiter || function(t, n, e, i) {
|
|
|
1271
1271
|
});
|
|
1272
1272
|
}
|
|
1273
1273
|
return new (e || (e = Promise))(function(r, s) {
|
|
1274
|
-
function c
|
|
1274
|
+
function l(c) {
|
|
1275
1275
|
try {
|
|
1276
|
-
o(i.next(
|
|
1276
|
+
o(i.next(c));
|
|
1277
1277
|
} catch (f) {
|
|
1278
1278
|
s(f);
|
|
1279
1279
|
}
|
|
1280
1280
|
}
|
|
1281
|
-
function d(
|
|
1281
|
+
function d(c) {
|
|
1282
1282
|
try {
|
|
1283
|
-
o(i.throw(
|
|
1283
|
+
o(i.throw(c));
|
|
1284
1284
|
} catch (f) {
|
|
1285
1285
|
s(f);
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
|
-
function o(
|
|
1289
|
-
|
|
1288
|
+
function o(c) {
|
|
1289
|
+
c.done ? r(c.value) : a(c.value).then(l, d);
|
|
1290
1290
|
}
|
|
1291
1291
|
o((i = i.apply(t, n || [])).next());
|
|
1292
1292
|
});
|
|
@@ -1296,12 +1296,12 @@ var Ke = {}, Ia = x && x.__awaiter || function(t, n, e, i) {
|
|
|
1296
1296
|
throw r[1];
|
|
1297
1297
|
return r[1];
|
|
1298
1298
|
}, trys: [], ops: [] }, i, a, r, s;
|
|
1299
|
-
return s = { next:
|
|
1299
|
+
return s = { next: l(0), throw: l(1), return: l(2) }, typeof Symbol == "function" && (s[Symbol.iterator] = function() {
|
|
1300
1300
|
return this;
|
|
1301
1301
|
}), s;
|
|
1302
|
-
function
|
|
1303
|
-
return function(
|
|
1304
|
-
return d([o,
|
|
1302
|
+
function l(o) {
|
|
1303
|
+
return function(c) {
|
|
1304
|
+
return d([o, c]);
|
|
1305
1305
|
};
|
|
1306
1306
|
}
|
|
1307
1307
|
function d(o) {
|
|
@@ -1345,8 +1345,8 @@ var Ke = {}, Ia = x && x.__awaiter || function(t, n, e, i) {
|
|
|
1345
1345
|
continue;
|
|
1346
1346
|
}
|
|
1347
1347
|
o = n.call(t, e);
|
|
1348
|
-
} catch (
|
|
1349
|
-
o = [6,
|
|
1348
|
+
} catch (c) {
|
|
1349
|
+
o = [6, c], a = 0;
|
|
1350
1350
|
} finally {
|
|
1351
1351
|
i = r = 0;
|
|
1352
1352
|
}
|
|
@@ -1363,14 +1363,14 @@ var Ba = Ye.exports, Ma = function() {
|
|
|
1363
1363
|
}
|
|
1364
1364
|
return t.prototype.uploadFile = function(n, e, i) {
|
|
1365
1365
|
return Ia(this, void 0, void 0, function() {
|
|
1366
|
-
var a, r, s,
|
|
1366
|
+
var a, r, s, l, d, o, c;
|
|
1367
1367
|
return $a(this, function(f) {
|
|
1368
|
-
return a = new FormData(), n && a.append("file", n, n.name), r = e.isPrivate, s = e.folder,
|
|
1368
|
+
return a = new FormData(), n && a.append("file", n, n.name), r = e.isPrivate, s = e.folder, l = e.file_url, d = e.doctype, o = e.docname, r && a.append("is_private", "1"), s && a.append("folder", s), l && a.append("file_url", l), d && o && (a.append("doctype", d), a.append("docname", o)), c = {
|
|
1369
1369
|
Accept: "application/json",
|
|
1370
1370
|
"Content-Type": "application/json; charset=utf-8",
|
|
1371
1371
|
"X-Frappe-Site-Name": window.location.hostname
|
|
1372
|
-
}, window.csrf_token && window.csrf_token !== "{{ csrf_token }}" && (
|
|
1373
|
-
headers:
|
|
1372
|
+
}, window.csrf_token && window.csrf_token !== "{{ csrf_token }}" && (c["X-Frappe-CSRF-Token"] = window.csrf_token), [2, Ba.default.post("".concat(this.appURL, "/api/method/upload_file"), a, {
|
|
1373
|
+
headers: c,
|
|
1374
1374
|
onUploadProgress: function(v) {
|
|
1375
1375
|
i && i(v.loaded, v.total);
|
|
1376
1376
|
}
|
|
@@ -1393,9 +1393,9 @@ function Va() {
|
|
|
1393
1393
|
if (qr)
|
|
1394
1394
|
return Me;
|
|
1395
1395
|
qr = 1, Object.defineProperty(Me, "__esModule", { value: !0 }), Me.FrappeApp = void 0;
|
|
1396
|
-
var t =
|
|
1397
|
-
function r(s,
|
|
1398
|
-
this.url = s, this.name =
|
|
1396
|
+
var t = ln(), n = Xe, e = ze, i = Ke, a = function() {
|
|
1397
|
+
function r(s, l) {
|
|
1398
|
+
this.url = s, this.name = l != null ? l : "FrappeApp";
|
|
1399
1399
|
}
|
|
1400
1400
|
return r.prototype.auth = function() {
|
|
1401
1401
|
return new t.FrappeAuth(this.url);
|
|
@@ -1416,22 +1416,22 @@ var ht = {}, qt = x && x.__awaiter || function(t, n, e, i) {
|
|
|
1416
1416
|
});
|
|
1417
1417
|
}
|
|
1418
1418
|
return new (e || (e = Promise))(function(r, s) {
|
|
1419
|
-
function c
|
|
1419
|
+
function l(c) {
|
|
1420
1420
|
try {
|
|
1421
|
-
o(i.next(
|
|
1421
|
+
o(i.next(c));
|
|
1422
1422
|
} catch (f) {
|
|
1423
1423
|
s(f);
|
|
1424
1424
|
}
|
|
1425
1425
|
}
|
|
1426
|
-
function d(
|
|
1426
|
+
function d(c) {
|
|
1427
1427
|
try {
|
|
1428
|
-
o(i.throw(
|
|
1428
|
+
o(i.throw(c));
|
|
1429
1429
|
} catch (f) {
|
|
1430
1430
|
s(f);
|
|
1431
1431
|
}
|
|
1432
1432
|
}
|
|
1433
|
-
function o(
|
|
1434
|
-
|
|
1433
|
+
function o(c) {
|
|
1434
|
+
c.done ? r(c.value) : a(c.value).then(l, d);
|
|
1435
1435
|
}
|
|
1436
1436
|
o((i = i.apply(t, n || [])).next());
|
|
1437
1437
|
});
|
|
@@ -1441,12 +1441,12 @@ var ht = {}, qt = x && x.__awaiter || function(t, n, e, i) {
|
|
|
1441
1441
|
throw r[1];
|
|
1442
1442
|
return r[1];
|
|
1443
1443
|
}, trys: [], ops: [] }, i, a, r, s;
|
|
1444
|
-
return s = { next:
|
|
1444
|
+
return s = { next: l(0), throw: l(1), return: l(2) }, typeof Symbol == "function" && (s[Symbol.iterator] = function() {
|
|
1445
1445
|
return this;
|
|
1446
1446
|
}), s;
|
|
1447
|
-
function
|
|
1448
|
-
return function(
|
|
1449
|
-
return d([o,
|
|
1447
|
+
function l(o) {
|
|
1448
|
+
return function(c) {
|
|
1449
|
+
return d([o, c]);
|
|
1450
1450
|
};
|
|
1451
1451
|
}
|
|
1452
1452
|
function d(o) {
|
|
@@ -1490,8 +1490,8 @@ var ht = {}, qt = x && x.__awaiter || function(t, n, e, i) {
|
|
|
1490
1490
|
continue;
|
|
1491
1491
|
}
|
|
1492
1492
|
o = n.call(t, e);
|
|
1493
|
-
} catch (
|
|
1494
|
-
o = [6,
|
|
1493
|
+
} catch (c) {
|
|
1494
|
+
o = [6, c], a = 0;
|
|
1495
1495
|
} finally {
|
|
1496
1496
|
i = r = 0;
|
|
1497
1497
|
}
|
|
@@ -1522,12 +1522,12 @@ var $t = Ye.exports, Wa = function() {
|
|
|
1522
1522
|
}).then(function(r) {
|
|
1523
1523
|
return r.data;
|
|
1524
1524
|
}).catch(function(r) {
|
|
1525
|
-
var s,
|
|
1525
|
+
var s, l;
|
|
1526
1526
|
throw {
|
|
1527
1527
|
httpStatus: r.response.status,
|
|
1528
1528
|
httpStatusText: r.response.statusText,
|
|
1529
1529
|
message: (s = r.response.data.message) !== null && s !== void 0 ? s : "There was an error while logging in",
|
|
1530
|
-
exception: (
|
|
1530
|
+
exception: (l = r.response.data.exception) !== null && l !== void 0 ? l : ""
|
|
1531
1531
|
};
|
|
1532
1532
|
})];
|
|
1533
1533
|
});
|
|
@@ -1579,14 +1579,14 @@ var $t = Ye.exports, Wa = function() {
|
|
|
1579
1579
|
}();
|
|
1580
1580
|
ht.FrappeAuth = Wa;
|
|
1581
1581
|
var Ir;
|
|
1582
|
-
function
|
|
1582
|
+
function ln() {
|
|
1583
1583
|
return Ir || (Ir = 1, function(t) {
|
|
1584
1584
|
var n = x && x.__createBinding || (Object.create ? function(i, a, r, s) {
|
|
1585
1585
|
s === void 0 && (s = r);
|
|
1586
|
-
var
|
|
1587
|
-
(!
|
|
1586
|
+
var l = Object.getOwnPropertyDescriptor(a, r);
|
|
1587
|
+
(!l || ("get" in l ? !a.__esModule : l.writable || l.configurable)) && (l = { enumerable: !0, get: function() {
|
|
1588
1588
|
return a[r];
|
|
1589
|
-
} }), Object.defineProperty(i, s,
|
|
1589
|
+
} }), Object.defineProperty(i, s, l);
|
|
1590
1590
|
} : function(i, a, r, s) {
|
|
1591
1591
|
s === void 0 && (s = r), i[s] = a[r];
|
|
1592
1592
|
}), e = x && x.__exportStar || function(i, a) {
|
|
@@ -1596,7 +1596,7 @@ function cn() {
|
|
|
1596
1596
|
Object.defineProperty(t, "__esModule", { value: !0 }), e(Va(), t), e(ht, t), e(ze, t), e(Ke, t), e(Xe, t);
|
|
1597
1597
|
}(_t)), _t;
|
|
1598
1598
|
}
|
|
1599
|
-
var Ja =
|
|
1599
|
+
var Ja = ln();
|
|
1600
1600
|
/*! *****************************************************************************
|
|
1601
1601
|
Copyright (c) Microsoft Corporation.
|
|
1602
1602
|
|
|
@@ -1611,29 +1611,29 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
1611
1611
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1612
1612
|
PERFORMANCE OF THIS SOFTWARE.
|
|
1613
1613
|
***************************************************************************** */
|
|
1614
|
-
function
|
|
1614
|
+
function cn(t, n, e, i) {
|
|
1615
1615
|
function a(r) {
|
|
1616
1616
|
return r instanceof e ? r : new e(function(s) {
|
|
1617
1617
|
s(r);
|
|
1618
1618
|
});
|
|
1619
1619
|
}
|
|
1620
1620
|
return new (e || (e = Promise))(function(r, s) {
|
|
1621
|
-
function c
|
|
1621
|
+
function l(c) {
|
|
1622
1622
|
try {
|
|
1623
|
-
o(i.next(
|
|
1623
|
+
o(i.next(c));
|
|
1624
1624
|
} catch (f) {
|
|
1625
1625
|
s(f);
|
|
1626
1626
|
}
|
|
1627
1627
|
}
|
|
1628
|
-
function d(
|
|
1628
|
+
function d(c) {
|
|
1629
1629
|
try {
|
|
1630
|
-
o(i.throw(
|
|
1630
|
+
o(i.throw(c));
|
|
1631
1631
|
} catch (f) {
|
|
1632
1632
|
s(f);
|
|
1633
1633
|
}
|
|
1634
1634
|
}
|
|
1635
|
-
function o(
|
|
1636
|
-
|
|
1635
|
+
function o(c) {
|
|
1636
|
+
c.done ? r(c.value) : a(c.value).then(l, d);
|
|
1637
1637
|
}
|
|
1638
1638
|
o((i = i.apply(t, n || [])).next());
|
|
1639
1639
|
});
|
|
@@ -1644,12 +1644,12 @@ function fn(t, n) {
|
|
|
1644
1644
|
throw r[1];
|
|
1645
1645
|
return r[1];
|
|
1646
1646
|
}, trys: [], ops: [] }, i, a, r, s;
|
|
1647
|
-
return s = { next:
|
|
1647
|
+
return s = { next: l(0), throw: l(1), return: l(2) }, typeof Symbol == "function" && (s[Symbol.iterator] = function() {
|
|
1648
1648
|
return this;
|
|
1649
1649
|
}), s;
|
|
1650
|
-
function
|
|
1651
|
-
return function(
|
|
1652
|
-
return d([o,
|
|
1650
|
+
function l(o) {
|
|
1651
|
+
return function(c) {
|
|
1652
|
+
return d([o, c]);
|
|
1653
1653
|
};
|
|
1654
1654
|
}
|
|
1655
1655
|
function d(o) {
|
|
@@ -1693,8 +1693,8 @@ function fn(t, n) {
|
|
|
1693
1693
|
continue;
|
|
1694
1694
|
}
|
|
1695
1695
|
o = n.call(t, e);
|
|
1696
|
-
} catch (
|
|
1697
|
-
o = [6,
|
|
1696
|
+
} catch (c) {
|
|
1697
|
+
o = [6, c], a = 0;
|
|
1698
1698
|
} finally {
|
|
1699
1699
|
i = r = 0;
|
|
1700
1700
|
}
|
|
@@ -1704,8 +1704,8 @@ function fn(t, n) {
|
|
|
1704
1704
|
}
|
|
1705
1705
|
}
|
|
1706
1706
|
var ue = function() {
|
|
1707
|
-
},
|
|
1708
|
-
return t ===
|
|
1707
|
+
}, H = ue(), ot = Object, W = function(t) {
|
|
1708
|
+
return t === H;
|
|
1709
1709
|
}, we = function(t) {
|
|
1710
1710
|
return typeof t == "function";
|
|
1711
1711
|
}, ye = function(t, n) {
|
|
@@ -1728,8 +1728,8 @@ var ue = function() {
|
|
|
1728
1728
|
}
|
|
1729
1729
|
if (e == ot) {
|
|
1730
1730
|
a = "#";
|
|
1731
|
-
for (var s = ot.keys(t).sort(); !
|
|
1732
|
-
|
|
1731
|
+
for (var s = ot.keys(t).sort(); !W(r = s.pop()); )
|
|
1732
|
+
W(t[r]) || (a += r + ":" + He(t[r]) + ",");
|
|
1733
1733
|
nt.set(t, a);
|
|
1734
1734
|
}
|
|
1735
1735
|
} else
|
|
@@ -1739,7 +1739,7 @@ var ue = function() {
|
|
|
1739
1739
|
return Jt;
|
|
1740
1740
|
}, dn = tr(), rr = Ha(), Ht = dn && window.addEventListener ? window.addEventListener.bind(window) : ue, za = rr ? document.addEventListener.bind(document) : ue, Xt = dn && window.removeEventListener ? window.removeEventListener.bind(window) : ue, Ka = rr ? document.removeEventListener.bind(document) : ue, Qa = function() {
|
|
1741
1741
|
var t = rr && document.visibilityState;
|
|
1742
|
-
return
|
|
1742
|
+
return W(t) || t !== "hidden";
|
|
1743
1743
|
}, Za = function(t) {
|
|
1744
1744
|
return za("visibilitychange", t), Ht("focus", t), function() {
|
|
1745
1745
|
Ka("visibilitychange", t), Xt("focus", t);
|
|
@@ -1774,11 +1774,11 @@ var ue = function() {
|
|
|
1774
1774
|
return [t, n, e];
|
|
1775
1775
|
}, Ee = /* @__PURE__ */ new WeakMap(), hn = 0, vn = 1, mn = 2, Je = function(t, n, e, i, a, r, s) {
|
|
1776
1776
|
s === void 0 && (s = !0);
|
|
1777
|
-
var
|
|
1777
|
+
var l = Ee.get(t), d = l[0], o = l[1], c = l[3], f = d[n], v = o[n];
|
|
1778
1778
|
if (s && v)
|
|
1779
1779
|
for (var m = 0; m < v.length; ++m)
|
|
1780
1780
|
v[m](e, i, a);
|
|
1781
|
-
return r && (delete
|
|
1781
|
+
return r && (delete c[n], f && f[0]) ? f[0](mn).then(function() {
|
|
1782
1782
|
return t.get(n);
|
|
1783
1783
|
}) : t.get(n);
|
|
1784
1784
|
}, ai = 0, Yt = function() {
|
|
@@ -1786,44 +1786,44 @@ var ue = function() {
|
|
|
1786
1786
|
}, wn = function() {
|
|
1787
1787
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
1788
1788
|
t[n] = arguments[n];
|
|
1789
|
-
return
|
|
1790
|
-
var e, i, a, r, s,
|
|
1791
|
-
return fn(this, function(
|
|
1792
|
-
switch (
|
|
1789
|
+
return cn(void 0, void 0, void 0, function() {
|
|
1790
|
+
var e, i, a, r, s, l, d, o, c, f, v, m, O, D, R, w, E, re, y, J, oe;
|
|
1791
|
+
return fn(this, function(Y) {
|
|
1792
|
+
switch (Y.label) {
|
|
1793
1793
|
case 0:
|
|
1794
|
-
if (e = t[0], i = t[1], a = t[2], r = t[3], s = typeof r == "boolean" ? { revalidate: r } : r || {},
|
|
1794
|
+
if (e = t[0], i = t[1], a = t[2], r = t[3], s = typeof r == "boolean" ? { revalidate: r } : r || {}, l = W(s.populateCache) ? !0 : s.populateCache, d = s.revalidate !== !1, o = s.rollbackOnError !== !1, c = s.optimisticData, f = pn(i), v = f[0], m = f[2], !v)
|
|
1795
1795
|
return [2];
|
|
1796
1796
|
if (O = Ee.get(e), D = O[2], t.length < 3)
|
|
1797
|
-
return [2, Je(e, v, e.get(v),
|
|
1798
|
-
if (R = a, E = Yt(), D[v] = [E, 0],
|
|
1797
|
+
return [2, Je(e, v, e.get(v), H, H, d, !0)];
|
|
1798
|
+
if (R = a, E = Yt(), D[v] = [E, 0], re = !W(c), y = e.get(v), re && (J = we(c) ? c(y) : c, e.set(v, J), Je(e, v, J)), we(R))
|
|
1799
1799
|
try {
|
|
1800
1800
|
R = R(e.get(v));
|
|
1801
|
-
} catch (
|
|
1802
|
-
w =
|
|
1801
|
+
} catch (ne) {
|
|
1802
|
+
w = ne;
|
|
1803
1803
|
}
|
|
1804
1804
|
return R && we(R.then) ? [
|
|
1805
1805
|
4,
|
|
1806
|
-
R.catch(function(
|
|
1807
|
-
w =
|
|
1806
|
+
R.catch(function(ne) {
|
|
1807
|
+
w = ne;
|
|
1808
1808
|
})
|
|
1809
1809
|
] : [3, 2];
|
|
1810
1810
|
case 1:
|
|
1811
|
-
if (R =
|
|
1811
|
+
if (R = Y.sent(), E !== D[v][0]) {
|
|
1812
1812
|
if (w)
|
|
1813
1813
|
throw w;
|
|
1814
1814
|
return [2, R];
|
|
1815
1815
|
} else
|
|
1816
|
-
w &&
|
|
1817
|
-
|
|
1816
|
+
w && re && o && (l = !0, R = y, e.set(v, y));
|
|
1817
|
+
Y.label = 2;
|
|
1818
1818
|
case 2:
|
|
1819
|
-
return
|
|
1819
|
+
return l && (w || (we(l) && (R = l(R, y)), e.set(v, R)), e.set(m, ye(e.get(m), { error: w }))), D[v][1] = Yt(), [
|
|
1820
1820
|
4,
|
|
1821
|
-
Je(e, v, R, w,
|
|
1821
|
+
Je(e, v, R, w, H, d, !!l)
|
|
1822
1822
|
];
|
|
1823
1823
|
case 3:
|
|
1824
|
-
if (oe =
|
|
1824
|
+
if (oe = Y.sent(), w)
|
|
1825
1825
|
throw w;
|
|
1826
|
-
return [2,
|
|
1826
|
+
return [2, l ? oe : R];
|
|
1827
1827
|
}
|
|
1828
1828
|
});
|
|
1829
1829
|
});
|
|
@@ -1832,20 +1832,20 @@ var ue = function() {
|
|
|
1832
1832
|
t[e][0] && t[e][0](n);
|
|
1833
1833
|
}, ii = function(t, n) {
|
|
1834
1834
|
if (!Ee.has(t)) {
|
|
1835
|
-
var e = ye(ri, n), i = {}, a = wn.bind(
|
|
1835
|
+
var e = ye(ri, n), i = {}, a = wn.bind(H, t), r = ue;
|
|
1836
1836
|
if (Ee.set(t, [i, {}, {}, {}, a]), !vt) {
|
|
1837
|
-
var s = e.initFocus(setTimeout.bind(
|
|
1837
|
+
var s = e.initFocus(setTimeout.bind(H, Br.bind(H, i, hn))), l = e.initReconnect(setTimeout.bind(H, Br.bind(H, i, vn)));
|
|
1838
1838
|
r = function() {
|
|
1839
|
-
s && s(),
|
|
1839
|
+
s && s(), l && l(), Ee.delete(t);
|
|
1840
1840
|
};
|
|
1841
1841
|
}
|
|
1842
1842
|
return [t, a, r];
|
|
1843
1843
|
}
|
|
1844
1844
|
return [t, Ee.get(t)[4]];
|
|
1845
1845
|
}, oi = function(t, n, e, i, a) {
|
|
1846
|
-
var r = e.errorRetryCount, s = a.retryCount,
|
|
1847
|
-
!
|
|
1848
|
-
}, yn = ii(/* @__PURE__ */ new Map()), si = yn[0], ui = yn[1],
|
|
1846
|
+
var r = e.errorRetryCount, s = a.retryCount, l = ~~((Math.random() + 0.5) * (1 << (s < 8 ? s : 8))) * e.errorRetryInterval;
|
|
1847
|
+
!W(r) && s > r || setTimeout(i, l, a);
|
|
1848
|
+
}, yn = ii(/* @__PURE__ */ new Map()), si = yn[0], ui = yn[1], li = ye(
|
|
1849
1849
|
{
|
|
1850
1850
|
onLoadingSlow: ue,
|
|
1851
1851
|
onSuccess: ue,
|
|
@@ -1871,7 +1871,7 @@ var ue = function() {
|
|
|
1871
1871
|
fallback: {}
|
|
1872
1872
|
},
|
|
1873
1873
|
ti
|
|
1874
|
-
),
|
|
1874
|
+
), ci = function(t, n) {
|
|
1875
1875
|
var e = ye(t, n);
|
|
1876
1876
|
if (n) {
|
|
1877
1877
|
var i = t.use, a = t.fallback, r = n.use, s = n.fallback;
|
|
@@ -1883,14 +1883,14 @@ var ue = function() {
|
|
|
1883
1883
|
data: !1,
|
|
1884
1884
|
error: !1,
|
|
1885
1885
|
isValidating: !1
|
|
1886
|
-
}), r =
|
|
1886
|
+
}), r = P(
|
|
1887
1887
|
function(s) {
|
|
1888
|
-
var
|
|
1888
|
+
var l = !1, d = i.current;
|
|
1889
1889
|
for (var o in s) {
|
|
1890
|
-
var
|
|
1891
|
-
d[
|
|
1890
|
+
var c = o;
|
|
1891
|
+
d[c] !== s[c] && (d[c] = s[c], a.current[c] && (l = !0));
|
|
1892
1892
|
}
|
|
1893
|
-
|
|
1893
|
+
l && !n.current && e({});
|
|
1894
1894
|
},
|
|
1895
1895
|
[]
|
|
1896
1896
|
);
|
|
@@ -1900,16 +1900,16 @@ var ue = function() {
|
|
|
1900
1900
|
}, pi = function(t) {
|
|
1901
1901
|
return we(t[1]) ? [t[0], t[1], t[2] || {}] : [t[0], null, (t[1] === null ? t[2] : t[1]) || {}];
|
|
1902
1902
|
}, hi = function() {
|
|
1903
|
-
return ye(
|
|
1903
|
+
return ye(li, ee(fi));
|
|
1904
1904
|
}, vi = function(t) {
|
|
1905
1905
|
return function() {
|
|
1906
1906
|
for (var e = [], i = 0; i < arguments.length; i++)
|
|
1907
1907
|
e[i] = arguments[i];
|
|
1908
|
-
var a = hi(), r = pi(e), s = r[0],
|
|
1908
|
+
var a = hi(), r = pi(e), s = r[0], l = r[1], d = r[2], o = ci(a, d), c = t, f = o.use;
|
|
1909
1909
|
if (f)
|
|
1910
1910
|
for (var v = f.length; v-- > 0; )
|
|
1911
|
-
|
|
1912
|
-
return
|
|
1911
|
+
c = f[v](c);
|
|
1912
|
+
return c(s, l || o.fetcher, o);
|
|
1913
1913
|
};
|
|
1914
1914
|
}, Mr = function(t, n, e) {
|
|
1915
1915
|
var i = n[t] || (n[t] = []);
|
|
@@ -1918,110 +1918,110 @@ var ue = function() {
|
|
|
1918
1918
|
a >= 0 && (i[a] = i[i.length - 1], i.pop());
|
|
1919
1919
|
};
|
|
1920
1920
|
}, Mt = { dedupe: !0 }, mi = function(t, n, e) {
|
|
1921
|
-
var i = e.cache, a = e.compare, r = e.fallbackData, s = e.suspense,
|
|
1922
|
-
return
|
|
1923
|
-
},
|
|
1921
|
+
var i = e.cache, a = e.compare, r = e.fallbackData, s = e.suspense, l = e.revalidateOnMount, d = e.refreshInterval, o = e.refreshWhenHidden, c = e.refreshWhenOffline, f = Ee.get(i), v = f[0], m = f[1], O = f[2], D = f[3], R = pn(t), w = R[0], E = R[1], re = R[2], y = ge(!1), J = ge(!1), oe = ge(w), Y = ge(n), ne = ge(e), F = function() {
|
|
1922
|
+
return ne.current;
|
|
1923
|
+
}, U = function() {
|
|
1924
1924
|
return F().isVisible() && F().isOnline();
|
|
1925
|
-
},
|
|
1926
|
-
return i.set(
|
|
1927
|
-
},
|
|
1928
|
-
return Ne && !
|
|
1925
|
+
}, G = function(B) {
|
|
1926
|
+
return i.set(re, ye(i.get(re), B));
|
|
1927
|
+
}, z = i.get(w), K = W(r) ? e.fallback[w] : r, A = W(z) ? K : z, pe = i.get(re) || {}, he = pe.error, Ne = !y.current, qe = function() {
|
|
1928
|
+
return Ne && !W(l) ? l : F().isPaused() ? !1 : s ? W(A) ? !1 : e.revalidateIfStale : W(A) || e.revalidateIfStale;
|
|
1929
1929
|
}, Ze = function() {
|
|
1930
1930
|
return !w || !n ? !1 : pe.isValidating ? !0 : Ne && qe();
|
|
1931
1931
|
}, Se = Ze(), Ce = di({
|
|
1932
1932
|
data: A,
|
|
1933
1933
|
error: he,
|
|
1934
1934
|
isValidating: Se
|
|
1935
|
-
},
|
|
1936
|
-
function(
|
|
1937
|
-
return
|
|
1938
|
-
var
|
|
1935
|
+
}, J), ce = Ce[0], Te = Ce[1], xe = Ce[2], fe = P(
|
|
1936
|
+
function(B) {
|
|
1937
|
+
return cn(void 0, void 0, void 0, function() {
|
|
1938
|
+
var L, I, $, _e, ve, ae, N, Q, M, Oe, me, se, $e;
|
|
1939
1939
|
return fn(this, function(Re) {
|
|
1940
1940
|
switch (Re.label) {
|
|
1941
1941
|
case 0:
|
|
1942
|
-
if (
|
|
1942
|
+
if (L = Y.current, !w || !L || J.current || F().isPaused())
|
|
1943
1943
|
return [2, !1];
|
|
1944
|
-
_e = !0, ve =
|
|
1945
|
-
return !
|
|
1946
|
-
},
|
|
1944
|
+
_e = !0, ve = B || {}, ae = !D[w] || !ve.dedupe, N = function() {
|
|
1945
|
+
return !J.current && w === oe.current && y.current;
|
|
1946
|
+
}, Q = function() {
|
|
1947
1947
|
var Fe = D[w];
|
|
1948
|
-
Fe && Fe[1] ===
|
|
1949
|
-
},
|
|
1950
|
-
|
|
1951
|
-
},
|
|
1948
|
+
Fe && Fe[1] === $ && delete D[w];
|
|
1949
|
+
}, M = { isValidating: !1 }, Oe = function() {
|
|
1950
|
+
G({ isValidating: !1 }), N() && xe(M);
|
|
1951
|
+
}, G({
|
|
1952
1952
|
isValidating: !0
|
|
1953
1953
|
}), xe({ isValidating: !0 }), Re.label = 1;
|
|
1954
1954
|
case 1:
|
|
1955
|
-
return Re.trys.push([1, 3, , 4]),
|
|
1956
|
-
_e &&
|
|
1957
|
-
}, e.loadingTimeout), D[w] = [
|
|
1955
|
+
return Re.trys.push([1, 3, , 4]), ae && (Je(i, w, ce.current.data, ce.current.error, !0), e.loadingTimeout && !i.get(w) && setTimeout(function() {
|
|
1956
|
+
_e && N() && F().onLoadingSlow(w, e);
|
|
1957
|
+
}, e.loadingTimeout), D[w] = [L.apply(void 0, E), Yt()]), $e = D[w], I = $e[0], $ = $e[1], [4, I];
|
|
1958
1958
|
case 2:
|
|
1959
|
-
return
|
|
1960
|
-
error:
|
|
1961
|
-
}),
|
|
1959
|
+
return I = Re.sent(), ae && setTimeout(Q, e.dedupingInterval), !D[w] || D[w][1] !== $ ? (ae && N() && F().onDiscarded(w), [2, !1]) : (G({
|
|
1960
|
+
error: H
|
|
1961
|
+
}), M.error = H, me = O[w], !W(me) && ($ <= me[0] || $ <= me[1] || me[1] === 0) ? (Oe(), ae && N() && F().onDiscarded(w), [2, !1]) : (a(ce.current.data, I) ? M.data = ce.current.data : M.data = I, a(i.get(w), I) || i.set(w, I), ae && N() && F().onSuccess(I, w, e), [3, 4]));
|
|
1962
1962
|
case 3:
|
|
1963
|
-
return se = Re.sent(),
|
|
1963
|
+
return se = Re.sent(), Q(), F().isPaused() || (G({ error: se }), M.error = se, ae && N() && (F().onError(se, w, e), (typeof e.shouldRetryOnError == "boolean" && e.shouldRetryOnError || we(e.shouldRetryOnError) && e.shouldRetryOnError(se)) && U() && F().onErrorRetry(se, w, e, fe, {
|
|
1964
1964
|
retryCount: (ve.retryCount || 0) + 1,
|
|
1965
1965
|
dedupe: !0
|
|
1966
1966
|
}))), [3, 4];
|
|
1967
1967
|
case 4:
|
|
1968
|
-
return _e = !1, Oe(),
|
|
1968
|
+
return _e = !1, Oe(), N() && ae && Je(i, w, M.data, M.error, !1), [2, !0];
|
|
1969
1969
|
}
|
|
1970
1970
|
});
|
|
1971
1971
|
});
|
|
1972
1972
|
},
|
|
1973
1973
|
[w]
|
|
1974
|
-
), Ie =
|
|
1975
|
-
wn.bind(
|
|
1974
|
+
), Ie = P(
|
|
1975
|
+
wn.bind(H, i, function() {
|
|
1976
1976
|
return oe.current;
|
|
1977
1977
|
}),
|
|
1978
1978
|
[]
|
|
1979
1979
|
);
|
|
1980
1980
|
if (st(function() {
|
|
1981
|
-
|
|
1981
|
+
Y.current = n, ne.current = e;
|
|
1982
1982
|
}), st(function() {
|
|
1983
1983
|
if (!!w) {
|
|
1984
|
-
var
|
|
1984
|
+
var B = w !== oe.current, L = fe.bind(H, Mt), I = function(N, Q, M) {
|
|
1985
1985
|
xe(ye(
|
|
1986
1986
|
{
|
|
1987
|
-
error:
|
|
1988
|
-
isValidating:
|
|
1987
|
+
error: Q,
|
|
1988
|
+
isValidating: M
|
|
1989
1989
|
},
|
|
1990
|
-
a(
|
|
1991
|
-
data:
|
|
1990
|
+
a(ce.current.data, N) ? H : {
|
|
1991
|
+
data: N
|
|
1992
1992
|
}
|
|
1993
1993
|
));
|
|
1994
|
-
},
|
|
1995
|
-
if (
|
|
1996
|
-
var
|
|
1997
|
-
F().revalidateOnFocus &&
|
|
1998
|
-
} else if (
|
|
1999
|
-
F().revalidateOnReconnect &&
|
|
2000
|
-
else if (
|
|
1994
|
+
}, $ = 0, _e = function(N) {
|
|
1995
|
+
if (N == hn) {
|
|
1996
|
+
var Q = Date.now();
|
|
1997
|
+
F().revalidateOnFocus && Q > $ && U() && ($ = Q + F().focusThrottleInterval, L());
|
|
1998
|
+
} else if (N == vn)
|
|
1999
|
+
F().revalidateOnReconnect && U() && L();
|
|
2000
|
+
else if (N == mn)
|
|
2001
2001
|
return fe();
|
|
2002
|
-
}, ve = Mr(w, m,
|
|
2003
|
-
return
|
|
2002
|
+
}, ve = Mr(w, m, I), ae = Mr(w, v, _e);
|
|
2003
|
+
return J.current = !1, oe.current = w, y.current = !0, B && xe({
|
|
2004
2004
|
data: A,
|
|
2005
2005
|
error: he,
|
|
2006
2006
|
isValidating: Se
|
|
2007
|
-
}), qe() && (
|
|
2008
|
-
|
|
2007
|
+
}), qe() && (W(A) || vt ? L() : ni(L)), function() {
|
|
2008
|
+
J.current = !0, ve(), ae();
|
|
2009
2009
|
};
|
|
2010
2010
|
}
|
|
2011
2011
|
}, [w, fe]), st(function() {
|
|
2012
|
-
var
|
|
2013
|
-
function
|
|
2014
|
-
var
|
|
2015
|
-
|
|
2012
|
+
var B;
|
|
2013
|
+
function L() {
|
|
2014
|
+
var $ = we(d) ? d(A) : d;
|
|
2015
|
+
$ && B !== -1 && (B = setTimeout(I, $));
|
|
2016
2016
|
}
|
|
2017
|
-
function
|
|
2018
|
-
!
|
|
2017
|
+
function I() {
|
|
2018
|
+
!ce.current.error && (o || F().isVisible()) && (c || F().isOnline()) ? fe(Mt).then(L) : L();
|
|
2019
2019
|
}
|
|
2020
|
-
return
|
|
2021
|
-
|
|
2020
|
+
return L(), function() {
|
|
2021
|
+
B && (clearTimeout(B), B = -1);
|
|
2022
2022
|
};
|
|
2023
|
-
}, [d, o,
|
|
2024
|
-
throw
|
|
2023
|
+
}, [d, o, c, fe]), In(A), s && W(A) && w)
|
|
2024
|
+
throw Y.current = n, ne.current = e, J.current = !1, W(he) ? fe(Mt) : he;
|
|
2025
2025
|
return {
|
|
2026
2026
|
mutate: Ie,
|
|
2027
2027
|
get data() {
|
|
@@ -2050,15 +2050,15 @@ function wi() {
|
|
|
2050
2050
|
return Ve;
|
|
2051
2051
|
Vr = 1;
|
|
2052
2052
|
var t = Jr, n = Symbol.for("react.element"), e = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, r = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
2053
|
-
function s(
|
|
2054
|
-
var
|
|
2053
|
+
function s(l, d, o) {
|
|
2054
|
+
var c, f = {}, v = null, m = null;
|
|
2055
2055
|
o !== void 0 && (v = "" + o), d.key !== void 0 && (v = "" + d.key), d.ref !== void 0 && (m = d.ref);
|
|
2056
|
-
for (
|
|
2057
|
-
i.call(d,
|
|
2058
|
-
if (
|
|
2059
|
-
for (
|
|
2060
|
-
f[
|
|
2061
|
-
return { $$typeof: n, type:
|
|
2056
|
+
for (c in d)
|
|
2057
|
+
i.call(d, c) && !r.hasOwnProperty(c) && (f[c] = d[c]);
|
|
2058
|
+
if (l && l.defaultProps)
|
|
2059
|
+
for (c in d = l.defaultProps, d)
|
|
2060
|
+
f[c] === void 0 && (f[c] = d[c]);
|
|
2061
|
+
return { $$typeof: n, type: l, key: v, ref: m, props: f, _owner: a.current };
|
|
2062
2062
|
}
|
|
2063
2063
|
return Ve.Fragment = e, Ve.jsx = s, Ve.jsxs = s, Ve;
|
|
2064
2064
|
}
|
|
@@ -2075,7 +2075,7 @@ var We = {};
|
|
|
2075
2075
|
var Wr;
|
|
2076
2076
|
function yi() {
|
|
2077
2077
|
return Wr || (Wr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2078
|
-
var t = Jr, n = Symbol.for("react.element"), e = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), s = Symbol.for("react.provider"),
|
|
2078
|
+
var t = Jr, n = Symbol.for("react.element"), e = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), o = Symbol.for("react.suspense"), c = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), O = Symbol.iterator, D = "@@iterator";
|
|
2079
2079
|
function R(u) {
|
|
2080
2080
|
if (u === null || typeof u != "object")
|
|
2081
2081
|
return null;
|
|
@@ -2087,10 +2087,10 @@ function yi() {
|
|
|
2087
2087
|
{
|
|
2088
2088
|
for (var p = arguments.length, h = new Array(p > 1 ? p - 1 : 0), b = 1; b < p; b++)
|
|
2089
2089
|
h[b - 1] = arguments[b];
|
|
2090
|
-
|
|
2090
|
+
re("error", u, h);
|
|
2091
2091
|
}
|
|
2092
2092
|
}
|
|
2093
|
-
function
|
|
2093
|
+
function re(u, p, h) {
|
|
2094
2094
|
{
|
|
2095
2095
|
var b = w.ReactDebugCurrentFrame, S = b.getStackAddendum();
|
|
2096
2096
|
S !== "" && (p += "%s", h = h.concat([S]));
|
|
@@ -2100,22 +2100,22 @@ function yi() {
|
|
|
2100
2100
|
C.unshift("Warning: " + p), Function.prototype.apply.call(console[u], console, C);
|
|
2101
2101
|
}
|
|
2102
2102
|
}
|
|
2103
|
-
var y = !1,
|
|
2103
|
+
var y = !1, J = !1, oe = !1, Y = !1, ne = !1, F;
|
|
2104
2104
|
F = Symbol.for("react.module.reference");
|
|
2105
|
-
function
|
|
2106
|
-
return !!(typeof u == "string" || typeof u == "function" || u === i || u === r ||
|
|
2105
|
+
function U(u) {
|
|
2106
|
+
return !!(typeof u == "string" || typeof u == "function" || u === i || u === r || ne || u === a || u === o || u === c || Y || u === m || y || J || oe || typeof u == "object" && u !== null && (u.$$typeof === v || u.$$typeof === f || u.$$typeof === s || u.$$typeof === l || u.$$typeof === d || u.$$typeof === F || u.getModuleId !== void 0));
|
|
2107
2107
|
}
|
|
2108
|
-
function
|
|
2108
|
+
function G(u, p, h) {
|
|
2109
2109
|
var b = u.displayName;
|
|
2110
2110
|
if (b)
|
|
2111
2111
|
return b;
|
|
2112
2112
|
var S = p.displayName || p.name || "";
|
|
2113
2113
|
return S !== "" ? h + "(" + S + ")" : h;
|
|
2114
2114
|
}
|
|
2115
|
-
function
|
|
2115
|
+
function z(u) {
|
|
2116
2116
|
return u.displayName || "Context";
|
|
2117
2117
|
}
|
|
2118
|
-
function
|
|
2118
|
+
function K(u) {
|
|
2119
2119
|
if (u == null)
|
|
2120
2120
|
return null;
|
|
2121
2121
|
if (typeof u.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof u == "function")
|
|
@@ -2133,26 +2133,26 @@ function yi() {
|
|
|
2133
2133
|
return "StrictMode";
|
|
2134
2134
|
case o:
|
|
2135
2135
|
return "Suspense";
|
|
2136
|
-
case
|
|
2136
|
+
case c:
|
|
2137
2137
|
return "SuspenseList";
|
|
2138
2138
|
}
|
|
2139
2139
|
if (typeof u == "object")
|
|
2140
2140
|
switch (u.$$typeof) {
|
|
2141
|
-
case
|
|
2141
|
+
case l:
|
|
2142
2142
|
var p = u;
|
|
2143
|
-
return
|
|
2143
|
+
return z(p) + ".Consumer";
|
|
2144
2144
|
case s:
|
|
2145
2145
|
var h = u;
|
|
2146
|
-
return
|
|
2146
|
+
return z(h._context) + ".Provider";
|
|
2147
2147
|
case d:
|
|
2148
|
-
return
|
|
2148
|
+
return G(u, u.render, "ForwardRef");
|
|
2149
2149
|
case f:
|
|
2150
2150
|
var b = u.displayName || null;
|
|
2151
|
-
return b !== null ? b :
|
|
2151
|
+
return b !== null ? b : K(u.type) || "Memo";
|
|
2152
2152
|
case v: {
|
|
2153
2153
|
var S = u, C = S._payload, g = S._init;
|
|
2154
2154
|
try {
|
|
2155
|
-
return
|
|
2155
|
+
return K(g(C));
|
|
2156
2156
|
} catch {
|
|
2157
2157
|
return null;
|
|
2158
2158
|
}
|
|
@@ -2160,14 +2160,14 @@ function yi() {
|
|
|
2160
2160
|
}
|
|
2161
2161
|
return null;
|
|
2162
2162
|
}
|
|
2163
|
-
var A = Object.assign, pe = 0, he, Ne, qe, Ze, Se, Ce,
|
|
2163
|
+
var A = Object.assign, pe = 0, he, Ne, qe, Ze, Se, Ce, ce;
|
|
2164
2164
|
function Te() {
|
|
2165
2165
|
}
|
|
2166
2166
|
Te.__reactDisabledLog = !0;
|
|
2167
2167
|
function xe() {
|
|
2168
2168
|
{
|
|
2169
2169
|
if (pe === 0) {
|
|
2170
|
-
he = console.log, Ne = console.info, qe = console.warn, Ze = console.error, Se = console.group, Ce = console.groupCollapsed,
|
|
2170
|
+
he = console.log, Ne = console.info, qe = console.warn, Ze = console.error, Se = console.group, Ce = console.groupCollapsed, ce = console.groupEnd;
|
|
2171
2171
|
var u = {
|
|
2172
2172
|
configurable: !0,
|
|
2173
2173
|
enumerable: !0,
|
|
@@ -2215,42 +2215,42 @@ function yi() {
|
|
|
2215
2215
|
value: Ce
|
|
2216
2216
|
}),
|
|
2217
2217
|
groupEnd: A({}, u, {
|
|
2218
|
-
value:
|
|
2218
|
+
value: ce
|
|
2219
2219
|
})
|
|
2220
2220
|
});
|
|
2221
2221
|
}
|
|
2222
2222
|
pe < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
2223
2223
|
}
|
|
2224
2224
|
}
|
|
2225
|
-
var Ie = w.ReactCurrentDispatcher,
|
|
2226
|
-
function
|
|
2225
|
+
var Ie = w.ReactCurrentDispatcher, B;
|
|
2226
|
+
function L(u, p, h) {
|
|
2227
2227
|
{
|
|
2228
|
-
if (
|
|
2228
|
+
if (B === void 0)
|
|
2229
2229
|
try {
|
|
2230
2230
|
throw Error();
|
|
2231
2231
|
} catch (S) {
|
|
2232
2232
|
var b = S.stack.trim().match(/\n( *(at )?)/);
|
|
2233
|
-
|
|
2233
|
+
B = b && b[1] || "";
|
|
2234
2234
|
}
|
|
2235
2235
|
return `
|
|
2236
|
-
` +
|
|
2236
|
+
` + B + u;
|
|
2237
2237
|
}
|
|
2238
2238
|
}
|
|
2239
|
-
var
|
|
2239
|
+
var I = !1, $;
|
|
2240
2240
|
{
|
|
2241
2241
|
var _e = typeof WeakMap == "function" ? WeakMap : Map;
|
|
2242
|
-
|
|
2242
|
+
$ = new _e();
|
|
2243
2243
|
}
|
|
2244
2244
|
function ve(u, p) {
|
|
2245
|
-
if (!u ||
|
|
2245
|
+
if (!u || I)
|
|
2246
2246
|
return "";
|
|
2247
2247
|
{
|
|
2248
|
-
var h =
|
|
2248
|
+
var h = $.get(u);
|
|
2249
2249
|
if (h !== void 0)
|
|
2250
2250
|
return h;
|
|
2251
2251
|
}
|
|
2252
2252
|
var b;
|
|
2253
|
-
|
|
2253
|
+
I = !0;
|
|
2254
2254
|
var S = Error.prepareStackTrace;
|
|
2255
2255
|
Error.prepareStackTrace = void 0;
|
|
2256
2256
|
var C;
|
|
@@ -2290,82 +2290,82 @@ function yi() {
|
|
|
2290
2290
|
} catch (de) {
|
|
2291
2291
|
if (de && b && typeof de.stack == "string") {
|
|
2292
2292
|
for (var _ = de.stack.split(`
|
|
2293
|
-
`),
|
|
2294
|
-
`), k = _.length - 1, j =
|
|
2293
|
+
`), V = b.stack.split(`
|
|
2294
|
+
`), k = _.length - 1, j = V.length - 1; k >= 1 && j >= 0 && _[k] !== V[j]; )
|
|
2295
2295
|
j--;
|
|
2296
2296
|
for (; k >= 1 && j >= 0; k--, j--)
|
|
2297
|
-
if (_[k] !==
|
|
2297
|
+
if (_[k] !== V[j]) {
|
|
2298
2298
|
if (k !== 1 || j !== 1)
|
|
2299
2299
|
do
|
|
2300
|
-
if (k--, j--, j < 0 || _[k] !==
|
|
2301
|
-
var
|
|
2300
|
+
if (k--, j--, j < 0 || _[k] !== V[j]) {
|
|
2301
|
+
var ie = `
|
|
2302
2302
|
` + _[k].replace(" at new ", " at ");
|
|
2303
|
-
return u.displayName &&
|
|
2303
|
+
return u.displayName && ie.includes("<anonymous>") && (ie = ie.replace("<anonymous>", u.displayName)), typeof u == "function" && $.set(u, ie), ie;
|
|
2304
2304
|
}
|
|
2305
2305
|
while (k >= 1 && j >= 0);
|
|
2306
2306
|
break;
|
|
2307
2307
|
}
|
|
2308
2308
|
}
|
|
2309
2309
|
} finally {
|
|
2310
|
-
|
|
2310
|
+
I = !1, Ie.current = C, fe(), Error.prepareStackTrace = S;
|
|
2311
2311
|
}
|
|
2312
|
-
var Ae = u ? u.displayName || u.name : "", pr = Ae ?
|
|
2313
|
-
return typeof u == "function" &&
|
|
2312
|
+
var Ae = u ? u.displayName || u.name : "", pr = Ae ? L(Ae) : "";
|
|
2313
|
+
return typeof u == "function" && $.set(u, pr), pr;
|
|
2314
2314
|
}
|
|
2315
|
-
function
|
|
2315
|
+
function ae(u, p, h) {
|
|
2316
2316
|
return ve(u, !1);
|
|
2317
2317
|
}
|
|
2318
|
-
function
|
|
2318
|
+
function N(u) {
|
|
2319
2319
|
var p = u.prototype;
|
|
2320
2320
|
return !!(p && p.isReactComponent);
|
|
2321
2321
|
}
|
|
2322
|
-
function
|
|
2322
|
+
function Q(u, p, h) {
|
|
2323
2323
|
if (u == null)
|
|
2324
2324
|
return "";
|
|
2325
2325
|
if (typeof u == "function")
|
|
2326
|
-
return ve(u,
|
|
2326
|
+
return ve(u, N(u));
|
|
2327
2327
|
if (typeof u == "string")
|
|
2328
|
-
return
|
|
2328
|
+
return L(u);
|
|
2329
2329
|
switch (u) {
|
|
2330
2330
|
case o:
|
|
2331
|
-
return
|
|
2332
|
-
case
|
|
2333
|
-
return
|
|
2331
|
+
return L("Suspense");
|
|
2332
|
+
case c:
|
|
2333
|
+
return L("SuspenseList");
|
|
2334
2334
|
}
|
|
2335
2335
|
if (typeof u == "object")
|
|
2336
2336
|
switch (u.$$typeof) {
|
|
2337
2337
|
case d:
|
|
2338
|
-
return
|
|
2338
|
+
return ae(u.render);
|
|
2339
2339
|
case f:
|
|
2340
|
-
return
|
|
2340
|
+
return Q(u.type, p, h);
|
|
2341
2341
|
case v: {
|
|
2342
2342
|
var b = u, S = b._payload, C = b._init;
|
|
2343
2343
|
try {
|
|
2344
|
-
return
|
|
2344
|
+
return Q(C(S), p, h);
|
|
2345
2345
|
} catch {
|
|
2346
2346
|
}
|
|
2347
2347
|
}
|
|
2348
2348
|
}
|
|
2349
2349
|
return "";
|
|
2350
2350
|
}
|
|
2351
|
-
var
|
|
2351
|
+
var M = Object.prototype.hasOwnProperty, Oe = {}, me = w.ReactDebugCurrentFrame;
|
|
2352
2352
|
function se(u) {
|
|
2353
2353
|
if (u) {
|
|
2354
|
-
var p = u._owner, h =
|
|
2354
|
+
var p = u._owner, h = Q(u.type, u._source, p ? p.type : null);
|
|
2355
2355
|
me.setExtraStackFrame(h);
|
|
2356
2356
|
} else
|
|
2357
2357
|
me.setExtraStackFrame(null);
|
|
2358
2358
|
}
|
|
2359
2359
|
function $e(u, p, h, b, S) {
|
|
2360
2360
|
{
|
|
2361
|
-
var C = Function.call.bind(
|
|
2361
|
+
var C = Function.call.bind(M);
|
|
2362
2362
|
for (var g in u)
|
|
2363
2363
|
if (C(u, g)) {
|
|
2364
2364
|
var _ = void 0;
|
|
2365
2365
|
try {
|
|
2366
2366
|
if (typeof u[g] != "function") {
|
|
2367
|
-
var
|
|
2368
|
-
throw
|
|
2367
|
+
var V = Error((b || "React class") + ": " + h + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof u[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
2368
|
+
throw V.name = "Invariant Violation", V;
|
|
2369
2369
|
}
|
|
2370
2370
|
_ = u[g](p, g, b, h, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
2371
2371
|
} catch (k) {
|
|
@@ -2407,7 +2407,7 @@ function yi() {
|
|
|
2407
2407
|
}, ir, or, mt;
|
|
2408
2408
|
mt = {};
|
|
2409
2409
|
function Sn(u) {
|
|
2410
|
-
if (
|
|
2410
|
+
if (M.call(u, "ref")) {
|
|
2411
2411
|
var p = Object.getOwnPropertyDescriptor(u, "ref").get;
|
|
2412
2412
|
if (p && p.isReactWarning)
|
|
2413
2413
|
return !1;
|
|
@@ -2415,7 +2415,7 @@ function yi() {
|
|
|
2415
2415
|
return u.ref !== void 0;
|
|
2416
2416
|
}
|
|
2417
2417
|
function Cn(u) {
|
|
2418
|
-
if (
|
|
2418
|
+
if (M.call(u, "key")) {
|
|
2419
2419
|
var p = Object.getOwnPropertyDescriptor(u, "key").get;
|
|
2420
2420
|
if (p && p.isReactWarning)
|
|
2421
2421
|
return !1;
|
|
@@ -2424,8 +2424,8 @@ function yi() {
|
|
|
2424
2424
|
}
|
|
2425
2425
|
function Tn(u, p) {
|
|
2426
2426
|
if (typeof u.ref == "string" && Be.current && p && Be.current.stateNode !== p) {
|
|
2427
|
-
var h =
|
|
2428
|
-
mt[h] || (E('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',
|
|
2427
|
+
var h = K(Be.current.type);
|
|
2428
|
+
mt[h] || (E('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', K(Be.current.type), u.ref), mt[h] = !0);
|
|
2429
2429
|
}
|
|
2430
2430
|
}
|
|
2431
2431
|
function xn(u, p) {
|
|
@@ -2478,26 +2478,26 @@ function yi() {
|
|
|
2478
2478
|
};
|
|
2479
2479
|
function Dn(u, p, h, b, S) {
|
|
2480
2480
|
{
|
|
2481
|
-
var C, g = {}, _ = null,
|
|
2482
|
-
h !== void 0 && (ar(h), _ = "" + h), Cn(p) && (ar(p.key), _ = "" + p.key), Sn(p) && (
|
|
2481
|
+
var C, g = {}, _ = null, V = null;
|
|
2482
|
+
h !== void 0 && (ar(h), _ = "" + h), Cn(p) && (ar(p.key), _ = "" + p.key), Sn(p) && (V = p.ref, Tn(p, S));
|
|
2483
2483
|
for (C in p)
|
|
2484
|
-
|
|
2484
|
+
M.call(p, C) && !En.hasOwnProperty(C) && (g[C] = p[C]);
|
|
2485
2485
|
if (u && u.defaultProps) {
|
|
2486
2486
|
var k = u.defaultProps;
|
|
2487
2487
|
for (C in k)
|
|
2488
2488
|
g[C] === void 0 && (g[C] = k[C]);
|
|
2489
2489
|
}
|
|
2490
|
-
if (_ ||
|
|
2490
|
+
if (_ || V) {
|
|
2491
2491
|
var j = typeof u == "function" ? u.displayName || u.name || "Unknown" : u;
|
|
2492
|
-
_ && xn(g, j),
|
|
2492
|
+
_ && xn(g, j), V && On(g, j);
|
|
2493
2493
|
}
|
|
2494
|
-
return Fn(u, _,
|
|
2494
|
+
return Fn(u, _, V, S, b, Be.current, g);
|
|
2495
2495
|
}
|
|
2496
2496
|
}
|
|
2497
2497
|
var wt = w.ReactCurrentOwner, sr = w.ReactDebugCurrentFrame;
|
|
2498
2498
|
function De(u) {
|
|
2499
2499
|
if (u) {
|
|
2500
|
-
var p = u._owner, h =
|
|
2500
|
+
var p = u._owner, h = Q(u.type, u._source, p ? p.type : null);
|
|
2501
2501
|
sr.setExtraStackFrame(h);
|
|
2502
2502
|
} else
|
|
2503
2503
|
sr.setExtraStackFrame(null);
|
|
@@ -2510,7 +2510,7 @@ function yi() {
|
|
|
2510
2510
|
function ur() {
|
|
2511
2511
|
{
|
|
2512
2512
|
if (wt.current) {
|
|
2513
|
-
var u =
|
|
2513
|
+
var u = K(wt.current.type);
|
|
2514
2514
|
if (u)
|
|
2515
2515
|
return `
|
|
2516
2516
|
|
|
@@ -2530,7 +2530,7 @@ Check your code at ` + p + ":" + h + ".";
|
|
|
2530
2530
|
return "";
|
|
2531
2531
|
}
|
|
2532
2532
|
}
|
|
2533
|
-
var
|
|
2533
|
+
var lr = {};
|
|
2534
2534
|
function kn(u) {
|
|
2535
2535
|
{
|
|
2536
2536
|
var p = ur();
|
|
@@ -2543,17 +2543,17 @@ Check the top-level render call using <` + h + ">.");
|
|
|
2543
2543
|
return p;
|
|
2544
2544
|
}
|
|
2545
2545
|
}
|
|
2546
|
-
function
|
|
2546
|
+
function cr(u, p) {
|
|
2547
2547
|
{
|
|
2548
2548
|
if (!u._store || u._store.validated || u.key != null)
|
|
2549
2549
|
return;
|
|
2550
2550
|
u._store.validated = !0;
|
|
2551
2551
|
var h = kn(p);
|
|
2552
|
-
if (
|
|
2552
|
+
if (lr[h])
|
|
2553
2553
|
return;
|
|
2554
|
-
|
|
2554
|
+
lr[h] = !0;
|
|
2555
2555
|
var b = "";
|
|
2556
|
-
u && u._owner && u._owner !== wt.current && (b = " It was passed a child from " +
|
|
2556
|
+
u && u._owner && u._owner !== wt.current && (b = " It was passed a child from " + K(u._owner.type) + "."), De(u), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', h, b), De(null);
|
|
2557
2557
|
}
|
|
2558
2558
|
}
|
|
2559
2559
|
function fr(u, p) {
|
|
@@ -2563,7 +2563,7 @@ Check the top-level render call using <` + h + ">.");
|
|
|
2563
2563
|
if (Fe(u))
|
|
2564
2564
|
for (var h = 0; h < u.length; h++) {
|
|
2565
2565
|
var b = u[h];
|
|
2566
|
-
bt(b) &&
|
|
2566
|
+
bt(b) && cr(b, p);
|
|
2567
2567
|
}
|
|
2568
2568
|
else if (bt(u))
|
|
2569
2569
|
u._store && (u._store.validated = !0);
|
|
@@ -2571,7 +2571,7 @@ Check the top-level render call using <` + h + ">.");
|
|
|
2571
2571
|
var S = R(u);
|
|
2572
2572
|
if (typeof S == "function" && S !== u.entries)
|
|
2573
2573
|
for (var C = S.call(u), g; !(g = C.next()).done; )
|
|
2574
|
-
bt(g.value) &&
|
|
2574
|
+
bt(g.value) && cr(g.value, p);
|
|
2575
2575
|
}
|
|
2576
2576
|
}
|
|
2577
2577
|
}
|
|
@@ -2588,11 +2588,11 @@ Check the top-level render call using <` + h + ">.");
|
|
|
2588
2588
|
else
|
|
2589
2589
|
return;
|
|
2590
2590
|
if (h) {
|
|
2591
|
-
var b =
|
|
2591
|
+
var b = K(p);
|
|
2592
2592
|
$e(h, u.props, "prop", b, u);
|
|
2593
2593
|
} else if (p.PropTypes !== void 0 && !yt) {
|
|
2594
2594
|
yt = !0;
|
|
2595
|
-
var S =
|
|
2595
|
+
var S = K(p);
|
|
2596
2596
|
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
|
|
2597
2597
|
}
|
|
2598
2598
|
typeof p.getDefaultProps == "function" && !p.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -2612,30 +2612,30 @@ Check the top-level render call using <` + h + ">.");
|
|
|
2612
2612
|
}
|
|
2613
2613
|
function dr(u, p, h, b, S, C) {
|
|
2614
2614
|
{
|
|
2615
|
-
var g =
|
|
2615
|
+
var g = U(u);
|
|
2616
2616
|
if (!g) {
|
|
2617
2617
|
var _ = "";
|
|
2618
2618
|
(u === void 0 || typeof u == "object" && u !== null && Object.keys(u).length === 0) && (_ += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
2619
|
-
var
|
|
2620
|
-
|
|
2619
|
+
var V = An(S);
|
|
2620
|
+
V ? _ += V : _ += ur();
|
|
2621
2621
|
var k;
|
|
2622
|
-
u === null ? k = "null" : Fe(u) ? k = "array" : u !== void 0 && u.$$typeof === n ? (k = "<" + (
|
|
2622
|
+
u === null ? k = "null" : Fe(u) ? k = "array" : u !== void 0 && u.$$typeof === n ? (k = "<" + (K(u.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : k = typeof u, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", k, _);
|
|
2623
2623
|
}
|
|
2624
2624
|
var j = Dn(u, p, h, S, C);
|
|
2625
2625
|
if (j == null)
|
|
2626
2626
|
return j;
|
|
2627
2627
|
if (g) {
|
|
2628
|
-
var
|
|
2629
|
-
if (
|
|
2628
|
+
var ie = p.children;
|
|
2629
|
+
if (ie !== void 0)
|
|
2630
2630
|
if (b)
|
|
2631
|
-
if (Fe(
|
|
2632
|
-
for (var Ae = 0; Ae <
|
|
2633
|
-
fr(
|
|
2634
|
-
Object.freeze && Object.freeze(
|
|
2631
|
+
if (Fe(ie)) {
|
|
2632
|
+
for (var Ae = 0; Ae < ie.length; Ae++)
|
|
2633
|
+
fr(ie[Ae], u);
|
|
2634
|
+
Object.freeze && Object.freeze(ie);
|
|
2635
2635
|
} else
|
|
2636
2636
|
E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
2637
2637
|
else
|
|
2638
|
-
fr(
|
|
2638
|
+
fr(ie, u);
|
|
2639
2639
|
}
|
|
2640
2640
|
return u === i ? Pn(j) : jn(j), j;
|
|
2641
2641
|
}
|
|
@@ -2653,7 +2653,7 @@ Check the top-level render call using <` + h + ">.");
|
|
|
2653
2653
|
(function(t) {
|
|
2654
2654
|
process.env.NODE_ENV === "production" ? t.exports = wi() : t.exports = yi();
|
|
2655
2655
|
})(bn);
|
|
2656
|
-
const bi = bn.exports.jsx,
|
|
2656
|
+
const bi = bn.exports.jsx, te = Hr(null), Si = ({
|
|
2657
2657
|
url: t = "",
|
|
2658
2658
|
children: n
|
|
2659
2659
|
}) => {
|
|
@@ -2668,7 +2668,7 @@ const bi = bn.exports.jsx, ee = Hr(null), Si = ({
|
|
|
2668
2668
|
file: i.file()
|
|
2669
2669
|
};
|
|
2670
2670
|
}, [t]);
|
|
2671
|
-
return /* @__PURE__ */ bi(
|
|
2671
|
+
return /* @__PURE__ */ bi(te.Provider, {
|
|
2672
2672
|
value: e,
|
|
2673
2673
|
children: n
|
|
2674
2674
|
});
|
|
@@ -2676,29 +2676,29 @@ const bi = bn.exports.jsx, ee = Hr(null), Si = ({
|
|
|
2676
2676
|
const {
|
|
2677
2677
|
url: n,
|
|
2678
2678
|
auth: e
|
|
2679
|
-
} =
|
|
2679
|
+
} = ee(te), {
|
|
2680
2680
|
data: i,
|
|
2681
2681
|
error: a,
|
|
2682
2682
|
isValidating: r,
|
|
2683
2683
|
mutate: s
|
|
2684
|
-
} = Qe(`${n}/api/method/frappe.auth.get_logged_user`, () => e.getLoggedInUser(), t),
|
|
2684
|
+
} = Qe(`${n}/api/method/frappe.auth.get_logged_user`, () => e.getLoggedInUser(), t), l = P(async (o, c) => e.loginWithUsernamePassword({
|
|
2685
2685
|
username: o,
|
|
2686
|
-
password:
|
|
2686
|
+
password: c
|
|
2687
2687
|
}).then((f) => {
|
|
2688
2688
|
console.log(f), s();
|
|
2689
|
-
}), []), d =
|
|
2689
|
+
}), []), d = P(async () => e.logout().then(() => s(null)), []);
|
|
2690
2690
|
return {
|
|
2691
2691
|
currentUser: i,
|
|
2692
2692
|
isValidating: r,
|
|
2693
2693
|
error: a,
|
|
2694
|
-
login:
|
|
2694
|
+
login: l,
|
|
2695
2695
|
logout: d,
|
|
2696
2696
|
updateCurrentUser: s
|
|
2697
2697
|
};
|
|
2698
2698
|
}, Ti = (t, n, e) => {
|
|
2699
2699
|
const {
|
|
2700
2700
|
db: i
|
|
2701
|
-
} =
|
|
2701
|
+
} = ee(te);
|
|
2702
2702
|
return {
|
|
2703
2703
|
...Qe(i.getRequestURL(t, n), () => i.getDoc(t, n), e)
|
|
2704
2704
|
};
|
|
@@ -2713,53 +2713,53 @@ const bi = bn.exports.jsx, ee = Hr(null), Si = ({
|
|
|
2713
2713
|
}, xi = (t, n, e) => {
|
|
2714
2714
|
const {
|
|
2715
2715
|
db: i
|
|
2716
|
-
} =
|
|
2716
|
+
} = ee(te);
|
|
2717
2717
|
return {
|
|
2718
2718
|
...Qe(`${i.getRequestURL(t)}?${_i(n)}`, () => i.getDocList(t, n), e)
|
|
2719
2719
|
};
|
|
2720
2720
|
}, Oi = () => {
|
|
2721
2721
|
const {
|
|
2722
2722
|
db: t
|
|
2723
|
-
} =
|
|
2723
|
+
} = ee(te), [n, e] = T(!1), [i, a] = T(null), [r, s] = T(!1), l = P(() => {
|
|
2724
2724
|
e(!1), a(null), s(!1);
|
|
2725
2725
|
}, []);
|
|
2726
2726
|
return {
|
|
2727
|
-
createDoc: async (o,
|
|
2727
|
+
createDoc: P(async (o, c) => (a(null), s(!1), e(!0), t.createDoc(o, c).then((f) => (e(!1), s(!0), f)).catch((f) => {
|
|
2728
2728
|
throw e(!1), s(!1), a(f), f;
|
|
2729
|
-
})),
|
|
2729
|
+
})), []),
|
|
2730
2730
|
loading: n,
|
|
2731
2731
|
error: i,
|
|
2732
2732
|
isCompleted: r,
|
|
2733
|
-
reset:
|
|
2733
|
+
reset: l
|
|
2734
2734
|
};
|
|
2735
2735
|
}, Fi = () => {
|
|
2736
2736
|
const {
|
|
2737
2737
|
db: t
|
|
2738
|
-
} =
|
|
2738
|
+
} = ee(te), [n, e] = T(!1), [i, a] = T(null), [r, s] = T(!1), l = P(() => {
|
|
2739
2739
|
e(!1), a(null), s(!1);
|
|
2740
2740
|
}, []);
|
|
2741
2741
|
return {
|
|
2742
|
-
updateDoc: async (o,
|
|
2742
|
+
updateDoc: P(async (o, c, f) => (a(null), s(!1), e(!0), t.updateDoc(o, c, f).then((v) => (e(!1), s(!0), v)).catch((v) => {
|
|
2743
2743
|
throw e(!1), s(!1), a(v), v;
|
|
2744
|
-
})),
|
|
2744
|
+
})), []),
|
|
2745
2745
|
loading: n,
|
|
2746
2746
|
error: i,
|
|
2747
|
-
reset:
|
|
2747
|
+
reset: l,
|
|
2748
2748
|
isCompleted: r
|
|
2749
2749
|
};
|
|
2750
2750
|
}, Di = () => {
|
|
2751
2751
|
const {
|
|
2752
2752
|
db: t
|
|
2753
|
-
} =
|
|
2753
|
+
} = ee(te), [n, e] = T(!1), [i, a] = T(null), [r, s] = T(!1), l = P(() => {
|
|
2754
2754
|
e(!1), a(null), s(!1);
|
|
2755
2755
|
}, []);
|
|
2756
2756
|
return {
|
|
2757
|
-
deleteDoc: async (o,
|
|
2757
|
+
deleteDoc: P(async (o, c) => (a(null), s(!1), e(!0), t.deleteDoc(o, c).then((f) => (e(!1), s(!0), f)).catch((f) => {
|
|
2758
2758
|
throw e(!1), s(!1), a(f), f;
|
|
2759
|
-
})),
|
|
2759
|
+
})), []),
|
|
2760
2760
|
loading: n,
|
|
2761
2761
|
error: i,
|
|
2762
|
-
reset:
|
|
2762
|
+
reset: l,
|
|
2763
2763
|
isCompleted: r
|
|
2764
2764
|
};
|
|
2765
2765
|
};
|
|
@@ -2773,7 +2773,7 @@ const Ai = (t, n, e = !1, i = !1, a) => {
|
|
|
2773
2773
|
const {
|
|
2774
2774
|
url: r,
|
|
2775
2775
|
db: s
|
|
2776
|
-
} =
|
|
2776
|
+
} = ee(te);
|
|
2777
2777
|
return {
|
|
2778
2778
|
...Qe((() => {
|
|
2779
2779
|
const o = _n({
|
|
@@ -2787,73 +2787,73 @@ const Ai = (t, n, e = !1, i = !1, a) => {
|
|
|
2787
2787
|
}, Ri = (t, n, e, i) => {
|
|
2788
2788
|
const {
|
|
2789
2789
|
call: a
|
|
2790
|
-
} =
|
|
2790
|
+
} = ee(te), r = _n(n != null ? n : {}), s = `${t}?${r}`;
|
|
2791
2791
|
return console.log(s), {
|
|
2792
2792
|
...Qe(e != null ? e : s, () => a.get(t, n), i)
|
|
2793
2793
|
};
|
|
2794
2794
|
}, ki = (t) => {
|
|
2795
2795
|
const {
|
|
2796
2796
|
call: n
|
|
2797
|
-
} =
|
|
2798
|
-
i(null), r(!1),
|
|
2797
|
+
} = ee(te), [e, i] = T(null), [a, r] = T(!1), [s, l] = T(null), [d, o] = T(!1), c = P(() => {
|
|
2798
|
+
i(null), r(!1), l(null), o(!1);
|
|
2799
2799
|
}, []);
|
|
2800
2800
|
return {
|
|
2801
|
-
call: async (v) => (l(), n.post(t, v).then((m) => (i(m), r(!1), o(!0), m)).catch((m) => {
|
|
2802
|
-
throw r(!1), o(!1),
|
|
2803
|
-
})),
|
|
2801
|
+
call: P(async (v) => (l(null), o(!1), r(!0), i(null), n.post(t, v).then((m) => (i(m), r(!1), o(!0), m)).catch((m) => {
|
|
2802
|
+
throw r(!1), o(!1), l(m), m;
|
|
2803
|
+
})), []),
|
|
2804
2804
|
result: e,
|
|
2805
2805
|
loading: a,
|
|
2806
2806
|
error: s,
|
|
2807
|
-
reset:
|
|
2807
|
+
reset: c,
|
|
2808
2808
|
isCompleted: d
|
|
2809
2809
|
};
|
|
2810
2810
|
}, ji = (t) => {
|
|
2811
2811
|
const {
|
|
2812
2812
|
call: n
|
|
2813
|
-
} =
|
|
2814
|
-
i(null), r(!1),
|
|
2813
|
+
} = ee(te), [e, i] = T(null), [a, r] = T(!1), [s, l] = T(null), [d, o] = T(!1), c = P(() => {
|
|
2814
|
+
i(null), r(!1), l(null), o(!1);
|
|
2815
2815
|
}, []);
|
|
2816
2816
|
return {
|
|
2817
|
-
call: async (v) => (l(), n.put(t, v).then((m) => (i(m), r(!1), o(!0), m)).catch((m) => {
|
|
2818
|
-
throw r(!1), o(!1),
|
|
2819
|
-
})),
|
|
2817
|
+
call: P(async (v) => (l(null), o(!1), r(!0), i(null), n.put(t, v).then((m) => (i(m), r(!1), o(!0), m)).catch((m) => {
|
|
2818
|
+
throw r(!1), o(!1), l(m), m;
|
|
2819
|
+
})), []),
|
|
2820
2820
|
result: e,
|
|
2821
2821
|
loading: a,
|
|
2822
2822
|
error: s,
|
|
2823
|
-
reset:
|
|
2823
|
+
reset: c,
|
|
2824
2824
|
isCompleted: d
|
|
2825
2825
|
};
|
|
2826
2826
|
}, Pi = (t) => {
|
|
2827
2827
|
const {
|
|
2828
2828
|
call: n
|
|
2829
|
-
} =
|
|
2830
|
-
i(null), r(!1),
|
|
2829
|
+
} = ee(te), [e, i] = T(null), [a, r] = T(!1), [s, l] = T(null), [d, o] = T(!1), c = P(() => {
|
|
2830
|
+
i(null), r(!1), l(null), o(!1);
|
|
2831
2831
|
}, []);
|
|
2832
2832
|
return {
|
|
2833
|
-
call: async (v) => (l(), n.delete(t, v).then((m) => (i(m), r(!1), o(!0), m)).catch((m) => {
|
|
2834
|
-
throw r(!1), o(!1),
|
|
2835
|
-
})),
|
|
2833
|
+
call: P(async (v) => (l(null), o(!1), r(!0), i(null), n.delete(t, v).then((m) => (i(m), r(!1), o(!0), m)).catch((m) => {
|
|
2834
|
+
throw r(!1), o(!1), l(m), m;
|
|
2835
|
+
})), []),
|
|
2836
2836
|
result: e,
|
|
2837
2837
|
loading: a,
|
|
2838
2838
|
error: s,
|
|
2839
|
-
reset:
|
|
2839
|
+
reset: c,
|
|
2840
2840
|
isCompleted: d
|
|
2841
2841
|
};
|
|
2842
2842
|
}, Ui = () => {
|
|
2843
2843
|
const {
|
|
2844
2844
|
file: t
|
|
2845
|
-
} =
|
|
2845
|
+
} = ee(te), [n, e] = T(0), [i, a] = T(!1), [r, s] = T(null), [l, d] = T(!1), o = P(async (f, v) => (c(), a(!0), t.uploadFile(f, v, (m, O) => e(Math.round(m / O * 100))).then((m) => (d(!0), e(100), a(!1), m.data.message)).catch((m) => {
|
|
2846
2846
|
throw console.error(m), s(m), a(!1), m;
|
|
2847
|
-
})),
|
|
2847
|
+
})), []), c = P(() => {
|
|
2848
2848
|
e(0), a(!1), s(null), d(!1);
|
|
2849
2849
|
}, []);
|
|
2850
2850
|
return {
|
|
2851
2851
|
upload: o,
|
|
2852
2852
|
progress: n,
|
|
2853
2853
|
loading: i,
|
|
2854
|
-
isCompleted:
|
|
2854
|
+
isCompleted: l,
|
|
2855
2855
|
error: r,
|
|
2856
|
-
reset:
|
|
2856
|
+
reset: c
|
|
2857
2857
|
};
|
|
2858
2858
|
}, Li = (t, n, e = [], i = 20, a = 250) => {
|
|
2859
2859
|
const r = gi(n, a);
|
|
@@ -2875,7 +2875,7 @@ const Ai = (t, n, e = !1, i = !1, a) => {
|
|
|
2875
2875
|
}, [t, n]), e;
|
|
2876
2876
|
};
|
|
2877
2877
|
export {
|
|
2878
|
-
|
|
2878
|
+
te as FrappeContext,
|
|
2879
2879
|
Si as FrappeProvider,
|
|
2880
2880
|
_i as getDocListQueryString,
|
|
2881
2881
|
Ci as useFrappeAuth,
|