frappe-react-sdk 1.0.9 → 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 +281 -281
- package/dist/frappe-react-sdk.umd.js +1 -1
- package/package.json +1 -1
|
@@ -139,10 +139,10 @@ var Qr = function(n, e, i) {
|
|
|
139
139
|
}
|
|
140
140
|
return n;
|
|
141
141
|
}, na = X;
|
|
142
|
-
function
|
|
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;
|
|
@@ -218,9 +218,9 @@ function ua() {
|
|
|
218
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;
|
|
@@ -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;
|
|
@@ -309,8 +309,8 @@ function pa() {
|
|
|
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,7 +348,7 @@ function Cr() {
|
|
|
348
348
|
if (Sr)
|
|
349
349
|
return Dt;
|
|
350
350
|
Sr = 1;
|
|
351
|
-
var t = X, n = sa(), e = ua(), i = Qr, a = fa(), r = da(), s = pa(),
|
|
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;
|
|
@@ -383,12 +383,12 @@ function Cr() {
|
|
|
383
383
|
if ("onloadend" in y ? y.onloadend = ne : y.onreadystatechange = function() {
|
|
384
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
390
|
var G = f.timeout ? "timeout of " + f.timeout + "ms exceeded" : "timeout exceeded", z = f.transitional || d;
|
|
391
|
-
f.timeoutErrorMessage && (G = f.timeoutErrorMessage), O(
|
|
391
|
+
f.timeoutErrorMessage && (G = f.timeoutErrorMessage), O(l(
|
|
392
392
|
G,
|
|
393
393
|
f,
|
|
394
394
|
z.clarifyTimeoutError ? "ETIMEDOUT" : "ECONNABORTED",
|
|
@@ -514,59 +514,59 @@ var Ca = function(n) {
|
|
|
514
514
|
}, Z = X, nn = function(n, e) {
|
|
515
515
|
e = e || {};
|
|
516
516
|
var i = {};
|
|
517
|
-
function a(
|
|
518
|
-
return Z.isPlainObject(
|
|
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 (Z.isUndefined(e[
|
|
522
|
-
if (!Z.isUndefined(n[
|
|
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 (!Z.isUndefined(e[
|
|
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 (Z.isUndefined(e[
|
|
533
|
-
if (!Z.isUndefined(n[
|
|
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
572
|
return Z.forEach(Object.keys(n).concat(Object.keys(e)), function(f) {
|
|
@@ -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;
|
|
@@ -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
|
});
|
|
@@ -769,19 +769,19 @@ function un(t) {
|
|
|
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
|
}
|
|
@@ -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,16 +1786,16 @@ 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,
|
|
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
1791
|
return fn(this, function(Y) {
|
|
1792
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
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(
|
|
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
1801
|
} catch (ne) {
|
|
@@ -1813,17 +1813,17 @@ var ue = function() {
|
|
|
1813
1813
|
throw w;
|
|
1814
1814
|
return [2, R];
|
|
1815
1815
|
} else
|
|
1816
|
-
w && re && o && (
|
|
1816
|
+
w && re && o && (l = !0, R = y, e.set(v, y));
|
|
1817
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, H, d, !!
|
|
1821
|
+
Je(e, v, R, w, H, d, !!l)
|
|
1822
1822
|
];
|
|
1823
1823
|
case 3:
|
|
1824
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
|
});
|
|
@@ -1834,18 +1834,18 @@ var ue = function() {
|
|
|
1834
1834
|
if (!Ee.has(t)) {
|
|
1835
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(H, Br.bind(H, i, hn))),
|
|
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
|
-
!W(r) && s > r || setTimeout(i,
|
|
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;
|
|
@@ -1885,12 +1885,12 @@ var ue = function() {
|
|
|
1885
1885
|
isValidating: !1
|
|
1886
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,23 +1918,23 @@ 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,
|
|
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
1922
|
return ne.current;
|
|
1923
1923
|
}, U = function() {
|
|
1924
1924
|
return F().isVisible() && F().isOnline();
|
|
1925
1925
|
}, G = function(B) {
|
|
1926
1926
|
return i.set(re, ye(i.get(re), B));
|
|
1927
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(
|
|
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
|
-
}, J),
|
|
1935
|
+
}, J), ce = Ce[0], Te = Ce[1], xe = Ce[2], fe = P(
|
|
1936
1936
|
function(B) {
|
|
1937
|
-
return
|
|
1937
|
+
return cn(void 0, void 0, void 0, function() {
|
|
1938
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) {
|
|
@@ -1952,13 +1952,13 @@ var ue = function() {
|
|
|
1952
1952
|
isValidating: !0
|
|
1953
1953
|
}), xe({ isValidating: !0 }), Re.label = 1;
|
|
1954
1954
|
case 1:
|
|
1955
|
-
return Re.trys.push([1, 3, , 4]), ae && (Je(i, 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
1956
|
_e && N() && F().onLoadingSlow(w, e);
|
|
1957
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
1959
|
return I = Re.sent(), ae && setTimeout(Q, e.dedupingInterval), !D[w] || D[w][1] !== $ ? (ae && N() && F().onDiscarded(w), [2, !1]) : (G({
|
|
1960
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(
|
|
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
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,
|
|
@@ -1987,7 +1987,7 @@ var ue = function() {
|
|
|
1987
1987
|
error: Q,
|
|
1988
1988
|
isValidating: M
|
|
1989
1989
|
},
|
|
1990
|
-
a(
|
|
1990
|
+
a(ce.current.data, N) ? H : {
|
|
1991
1991
|
data: N
|
|
1992
1992
|
}
|
|
1993
1993
|
));
|
|
@@ -2015,12 +2015,12 @@ var ue = function() {
|
|
|
2015
2015
|
$ && B !== -1 && (B = setTimeout(I, $));
|
|
2016
2016
|
}
|
|
2017
2017
|
function I() {
|
|
2018
|
-
!
|
|
2018
|
+
!ce.current.error && (o || F().isVisible()) && (c || F().isOnline()) ? fe(Mt).then(L) : L();
|
|
2019
2019
|
}
|
|
2020
2020
|
return L(), function() {
|
|
2021
2021
|
B && (clearTimeout(B), B = -1);
|
|
2022
2022
|
};
|
|
2023
|
-
}, [d, o,
|
|
2023
|
+
}, [d, o, c, fe]), In(A), s && W(A) && w)
|
|
2024
2024
|
throw Y.current = n, ne.current = e, J.current = !1, W(he) ? fe(Mt) : he;
|
|
2025
2025
|
return {
|
|
2026
2026
|
mutate: Ie,
|
|
@@ -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;
|
|
@@ -2103,7 +2103,7 @@ function yi() {
|
|
|
2103
2103
|
var y = !1, J = !1, oe = !1, Y = !1, ne = !1, F;
|
|
2104
2104
|
F = Symbol.for("react.module.reference");
|
|
2105
2105
|
function U(u) {
|
|
2106
|
-
return !!(typeof u == "string" || typeof u == "function" || u === i || u === r || ne || u === a || u === o || 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
2108
|
function G(u, p, h) {
|
|
2109
2109
|
var b = u.displayName;
|
|
@@ -2133,12 +2133,12 @@ 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
2143
|
return z(p) + ".Consumer";
|
|
2144
2144
|
case s:
|
|
@@ -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,7 +2215,7 @@ function yi() {
|
|
|
2215
2215
|
value: Ce
|
|
2216
2216
|
}),
|
|
2217
2217
|
groupEnd: A({}, u, {
|
|
2218
|
-
value:
|
|
2218
|
+
value: ce
|
|
2219
2219
|
})
|
|
2220
2220
|
});
|
|
2221
2221
|
}
|
|
@@ -2329,7 +2329,7 @@ function yi() {
|
|
|
2329
2329
|
switch (u) {
|
|
2330
2330
|
case o:
|
|
2331
2331
|
return L("Suspense");
|
|
2332
|
-
case
|
|
2332
|
+
case c:
|
|
2333
2333
|
return L("SuspenseList");
|
|
2334
2334
|
}
|
|
2335
2335
|
if (typeof u == "object")
|
|
@@ -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,15 +2543,15 @@ 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
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
|
}
|
|
@@ -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
|
}
|
|
@@ -2681,9 +2681,9 @@ const bi = bn.exports.jsx, te = Hr(null), Si = ({
|
|
|
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
2689
|
}), []), d = P(async () => e.logout().then(() => s(null)), []);
|
|
@@ -2691,7 +2691,7 @@ const bi = bn.exports.jsx, te = Hr(null), Si = ({
|
|
|
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
|
};
|
|
@@ -2720,46 +2720,46 @@ const bi = bn.exports.jsx, te = Hr(null), Si = ({
|
|
|
2720
2720
|
}, Oi = () => {
|
|
2721
2721
|
const {
|
|
2722
2722
|
db: t
|
|
2723
|
-
} = ee(te), [n, e] = T(!1), [i, a] = T(null), [r, s] = T(!1),
|
|
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: P(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
|
-
} = ee(te), [n, e] = T(!1), [i, a] = T(null), [r, s] = T(!1),
|
|
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: P(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
|
-
} = ee(te), [n, e] = T(!1), [i, a] = T(null), [r, s] = T(!1),
|
|
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: P(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
|
};
|
|
@@ -2794,66 +2794,66 @@ const Ai = (t, n, e = !1, i = !1, a) => {
|
|
|
2794
2794
|
}, ki = (t) => {
|
|
2795
2795
|
const {
|
|
2796
2796
|
call: n
|
|
2797
|
-
} = ee(te), [e, i] = T(null), [a, r] = T(!1), [s,
|
|
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: P(async (v) => (l(), n.post(t, v).then((m) => (i(m), r(!1), o(!0), m)).catch((m) => {
|
|
2802
|
-
throw r(!1), o(!1),
|
|
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
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
|
-
} = ee(te), [e, i] = T(null), [a, r] = T(!1), [s,
|
|
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: P(async (v) => (l(), n.put(t, v).then((m) => (i(m), r(!1), o(!0), m)).catch((m) => {
|
|
2818
|
-
throw r(!1), o(!1),
|
|
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
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
|
-
} = ee(te), [e, i] = T(null), [a, r] = T(!1), [s,
|
|
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: P(async (v) => (l(), n.delete(t, v).then((m) => (i(m), r(!1), o(!0), m)).catch((m) => {
|
|
2834
|
-
throw r(!1), o(!1),
|
|
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
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
|
-
} = ee(te), [n, e] = T(0), [i, a] = T(!1), [r, s] = T(null), [
|
|
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);
|