@instockng/storefront-ui 1.0.93 → 1.0.95
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/components/AddOnsDiscountScreen.d.ts.map +1 -1
- package/dist/components/VariantPickerModal.d.ts +5 -0
- package/dist/components/VariantPickerModal.d.ts.map +1 -1
- package/dist/index100.mjs +74 -8
- package/dist/index101.mjs +3 -74
- package/dist/index102.mjs +2 -4
- package/dist/index103.mjs +83 -2
- package/dist/index104.mjs +52 -81
- package/dist/index105.mjs +5 -53
- package/dist/index106.mjs +4 -5
- package/dist/index107.mjs +178 -4
- package/dist/index108.mjs +48 -174
- package/dist/index109.mjs +67 -51
- package/dist/index110.mjs +2 -69
- package/dist/index111.mjs +28 -2
- package/dist/index112.mjs +16 -26
- package/dist/index113.mjs +210 -13
- package/dist/index114.mjs +158 -193
- package/dist/index115.mjs +17 -175
- package/dist/index116.mjs +15 -14
- package/dist/index117.mjs +25 -15
- package/dist/index118.mjs +150 -27
- package/dist/index119.mjs +15 -151
- package/dist/index120.mjs +24 -13
- package/dist/index121.mjs +75 -22
- package/dist/index122.mjs +30 -76
- package/dist/index123.mjs +139 -32
- package/dist/index124.mjs +45 -135
- package/dist/index125.mjs +19 -51
- package/dist/index126.mjs +19 -15
- package/dist/index127.mjs +17 -21
- package/dist/index128.mjs +18 -16
- package/dist/index129.mjs +13 -17
- package/dist/index13.mjs +52 -51
- package/dist/index130.mjs +14 -13
- package/dist/index131.mjs +12 -13
- package/dist/index132.mjs +58 -14
- package/dist/index133.mjs +10 -57
- package/dist/index134.mjs +32 -11
- package/dist/index135.mjs +17 -32
- package/dist/index136.mjs +27 -17
- package/dist/index137.mjs +19 -26
- package/dist/index138.mjs +12 -20
- package/dist/index139.mjs +14 -12
- package/dist/index140.mjs +40 -14
- package/dist/index141.mjs +16 -40
- package/dist/index142.mjs +261 -16
- package/dist/index143.mjs +64 -262
- package/dist/index144.mjs +7 -69
- package/dist/index145.mjs +2 -8
- package/dist/index146.mjs +2 -2
- package/dist/index147.mjs +33 -2
- package/dist/index148.mjs +2 -33
- package/dist/index149.mjs +2 -2
- package/dist/index154.mjs +1 -1
- package/dist/index155.mjs +1 -1
- package/dist/index156.mjs +1 -1
- package/dist/index157.mjs +1 -1
- package/dist/index158.mjs +1 -1
- package/dist/index160.mjs +1 -1
- package/dist/index161.mjs +1 -1
- package/dist/index163.mjs +3 -3
- package/dist/index164.mjs +1 -1
- package/dist/index169.mjs +2 -2
- package/dist/index171.mjs +1 -1
- package/dist/index173.mjs +2 -2
- package/dist/index174.mjs +5 -5
- package/dist/index177.mjs +1 -1
- package/dist/index18.mjs +84 -82
- package/dist/index180.mjs +1 -1
- package/dist/index183.mjs +3 -3
- package/dist/index184.mjs +1 -1
- package/dist/index188.mjs +2 -2
- package/dist/index190.mjs +2 -2
- package/dist/index194.mjs +1 -1
- package/dist/index196.mjs +2 -2
- package/dist/index205.mjs +2 -2
- package/dist/index209.mjs +1 -1
- package/dist/index210.mjs +1 -1
- package/dist/index211.mjs +5 -5
- package/dist/index213.mjs +2 -2
- package/dist/index215.mjs +2 -2
- package/dist/index217.mjs +1 -1
- package/dist/index219.mjs +4 -4
- package/dist/index220.mjs +3 -3
- package/dist/index221.mjs +2 -2
- package/dist/index222.mjs +2 -108
- package/dist/index223.mjs +2 -2
- package/dist/index224.mjs +2 -2
- package/dist/index225.mjs +108 -2
- package/dist/index226.mjs +2 -2
- package/dist/index228.mjs +37 -2
- package/dist/index229.mjs +2 -2
- package/dist/index230.mjs +2 -37
- package/dist/index231.mjs +2 -2
- package/dist/index232.mjs +2 -244
- package/dist/index233.mjs +2 -2
- package/dist/index234.mjs +2 -33
- package/dist/index235.mjs +240 -61
- package/dist/index236.mjs +2 -25
- package/dist/index237.mjs +33 -2
- package/dist/index238.mjs +65 -2
- package/dist/index239.mjs +25 -2
- package/dist/index240.mjs +2 -2
- package/dist/index241.mjs +2 -2
- package/dist/index242.mjs +2 -2
- package/dist/index244.mjs +2 -2
- package/dist/index245.mjs +2 -2
- package/dist/index246.mjs +2 -2
- package/dist/index247.mjs +4 -2
- package/dist/index250.mjs +2 -2
- package/dist/index251.mjs +2 -4
- package/dist/index254.mjs +1 -1
- package/dist/index255.mjs +3 -3
- package/dist/index258.mjs +1 -1
- package/dist/index260.mjs +1 -1
- package/dist/index261.mjs +3 -3
- package/dist/index262.mjs +3 -3
- package/dist/index280.mjs +1 -1
- package/dist/index40.mjs +1 -1
- package/dist/index41.mjs +1 -1
- package/dist/index42.mjs +1 -1
- package/dist/index43.mjs +1 -1
- package/dist/index44.mjs +1 -1
- package/dist/index51.mjs +3 -3
- package/dist/index55.mjs +1 -1
- package/dist/index60.mjs +17 -17
- package/dist/index62.mjs +1 -1
- package/dist/index63.mjs +1 -1
- package/dist/index64.mjs +1 -1
- package/dist/index65.mjs +1 -1
- package/dist/index66.mjs +1 -1
- package/dist/index67.mjs +1 -1
- package/dist/index68.mjs +1 -1
- package/dist/index69.mjs +1 -1
- package/dist/index70.mjs +1 -1
- package/dist/index71.mjs +1 -1
- package/dist/index72.mjs +1 -1
- package/dist/index73.mjs +1 -1
- package/dist/index74.mjs +1 -1
- package/dist/index75.mjs +1 -1
- package/dist/index79.mjs +4 -22
- package/dist/index80.mjs +21 -73
- package/dist/index81.mjs +74 -14
- package/dist/index82.mjs +14 -62
- package/dist/index83.mjs +62 -4
- package/dist/index86.mjs +35 -35
- package/dist/index87.mjs +1 -1
- package/dist/index88.mjs +2 -2
- package/dist/index89.mjs +1 -1
- package/dist/index93.mjs +235 -2
- package/dist/index94.mjs +4 -233
- package/dist/index95.mjs +133 -5
- package/dist/index96.mjs +63 -129
- package/dist/index97.mjs +86 -67
- package/dist/index98.mjs +27 -85
- package/dist/index99.mjs +8 -28
- package/package.json +1 -1
- package/src/components/AddOnsDiscountScreen.tsx +13 -6
- package/src/components/VariantPickerModal.tsx +20 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddOnsDiscountScreen.d.ts","sourceRoot":"","sources":["../../src/components/AddOnsDiscountScreen.tsx"],"names":[],"mappings":"AAkBA,MAAM,WAAW,yBAAyB;IACxC,uDAAuD;IACvD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,SAAS,EACT,uBAAuB,GACxB,EAAE,yBAAyB,
|
|
1
|
+
{"version":3,"file":"AddOnsDiscountScreen.d.ts","sourceRoot":"","sources":["../../src/components/AddOnsDiscountScreen.tsx"],"names":[],"mappings":"AAkBA,MAAM,WAAW,yBAAyB;IACxC,uDAAuD;IACvD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,SAAS,EACT,uBAAuB,GACxB,EAAE,yBAAyB,2CAsO3B"}
|
|
@@ -4,6 +4,11 @@ export interface Variant {
|
|
|
4
4
|
price: number;
|
|
5
5
|
sku: string;
|
|
6
6
|
thumbnailUrl?: string | null;
|
|
7
|
+
availability?: {
|
|
8
|
+
available: boolean;
|
|
9
|
+
trackInventory: boolean;
|
|
10
|
+
totalInventory: number | null;
|
|
11
|
+
};
|
|
7
12
|
}
|
|
8
13
|
export interface VariantPickerProduct {
|
|
9
14
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VariantPickerModal.d.ts","sourceRoot":"","sources":["../../src/components/VariantPickerModal.tsx"],"names":[],"mappings":"AAeA,MAAM,WAAW,OAAO;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"VariantPickerModal.d.ts","sourceRoot":"","sources":["../../src/components/VariantPickerModal.tsx"],"names":[],"mappings":"AAeA,MAAM,WAAW,OAAO;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,YAAY,CAAC,EAAE;QACX,SAAS,EAAE,OAAO,CAAC;QACnB,cAAc,EAAE,OAAO,CAAC;QACxB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;KACjC,CAAC;CACL;AAED,MAAM,WAAW,oBAAoB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,EAAE,OAAO,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,uBAAuB;IACpC,gCAAgC;IAChC,MAAM,EAAE,OAAO,CAAC;IAChB,uCAAuC;IACvC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,oCAAoC;IACpC,OAAO,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACrC,sDAAsD;IACtD,SAAS,EAAE,CAAC,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACrE,2CAA2C;IAC3C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6DAA6D;IAC7D,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC;AAED,wBAAgB,kBAAkB,CAAC,EAC/B,MAAM,EACN,OAAO,EACP,OAAO,EACP,SAAS,EACT,SAAiB,EACjB,eAAe,GAClB,EAAE,uBAAuB,kDA0HzB"}
|
package/dist/index100.mjs
CHANGED
|
@@ -1,12 +1,78 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import u from "./index99.mjs";
|
|
3
|
+
class c {
|
|
4
|
+
constructor(e) {
|
|
5
|
+
if (typeof e != "function")
|
|
6
|
+
throw new TypeError("executor must be a function.");
|
|
7
|
+
let t;
|
|
8
|
+
this.promise = new Promise(function(r) {
|
|
9
|
+
t = r;
|
|
10
|
+
});
|
|
11
|
+
const s = this;
|
|
12
|
+
this.promise.then((n) => {
|
|
13
|
+
if (!s._listeners) return;
|
|
14
|
+
let r = s._listeners.length;
|
|
15
|
+
for (; r-- > 0; )
|
|
16
|
+
s._listeners[r](n);
|
|
17
|
+
s._listeners = null;
|
|
18
|
+
}), this.promise.then = (n) => {
|
|
19
|
+
let r;
|
|
20
|
+
const o = new Promise((i) => {
|
|
21
|
+
s.subscribe(i), r = i;
|
|
22
|
+
}).then(n);
|
|
23
|
+
return o.cancel = function() {
|
|
24
|
+
s.unsubscribe(r);
|
|
25
|
+
}, o;
|
|
26
|
+
}, e(function(r, o, i) {
|
|
27
|
+
s.reason || (s.reason = new u(r, o, i), t(s.reason));
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Throws a `CanceledError` if cancellation has been requested.
|
|
32
|
+
*/
|
|
33
|
+
throwIfRequested() {
|
|
34
|
+
if (this.reason)
|
|
35
|
+
throw this.reason;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Subscribe to the cancel signal
|
|
39
|
+
*/
|
|
40
|
+
subscribe(e) {
|
|
41
|
+
if (this.reason) {
|
|
42
|
+
e(this.reason);
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
this._listeners ? this._listeners.push(e) : this._listeners = [e];
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Unsubscribe from the cancel signal
|
|
49
|
+
*/
|
|
50
|
+
unsubscribe(e) {
|
|
51
|
+
if (!this._listeners)
|
|
52
|
+
return;
|
|
53
|
+
const t = this._listeners.indexOf(e);
|
|
54
|
+
t !== -1 && this._listeners.splice(t, 1);
|
|
55
|
+
}
|
|
56
|
+
toAbortSignal() {
|
|
57
|
+
const e = new AbortController(), t = (s) => {
|
|
58
|
+
e.abort(s);
|
|
59
|
+
};
|
|
60
|
+
return this.subscribe(t), e.signal.unsubscribe = () => this.unsubscribe(t), e.signal;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
64
|
+
* cancels the `CancelToken`.
|
|
65
|
+
*/
|
|
66
|
+
static source() {
|
|
67
|
+
let e;
|
|
68
|
+
return {
|
|
69
|
+
token: new c(function(n) {
|
|
70
|
+
e = n;
|
|
71
|
+
}),
|
|
72
|
+
cancel: e
|
|
73
|
+
};
|
|
74
|
+
}
|
|
6
75
|
}
|
|
7
|
-
i.inherits(l, r, {
|
|
8
|
-
__CANCEL__: !0
|
|
9
|
-
});
|
|
10
76
|
export {
|
|
11
|
-
|
|
77
|
+
c as default
|
|
12
78
|
};
|
package/dist/index101.mjs
CHANGED
|
@@ -1,78 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
constructor(e) {
|
|
5
|
-
if (typeof e != "function")
|
|
6
|
-
throw new TypeError("executor must be a function.");
|
|
7
|
-
let t;
|
|
8
|
-
this.promise = new Promise(function(r) {
|
|
9
|
-
t = r;
|
|
10
|
-
});
|
|
11
|
-
const s = this;
|
|
12
|
-
this.promise.then((n) => {
|
|
13
|
-
if (!s._listeners) return;
|
|
14
|
-
let r = s._listeners.length;
|
|
15
|
-
for (; r-- > 0; )
|
|
16
|
-
s._listeners[r](n);
|
|
17
|
-
s._listeners = null;
|
|
18
|
-
}), this.promise.then = (n) => {
|
|
19
|
-
let r;
|
|
20
|
-
const o = new Promise((i) => {
|
|
21
|
-
s.subscribe(i), r = i;
|
|
22
|
-
}).then(n);
|
|
23
|
-
return o.cancel = function() {
|
|
24
|
-
s.unsubscribe(r);
|
|
25
|
-
}, o;
|
|
26
|
-
}, e(function(r, o, i) {
|
|
27
|
-
s.reason || (s.reason = new u(r, o, i), t(s.reason));
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Throws a `CanceledError` if cancellation has been requested.
|
|
32
|
-
*/
|
|
33
|
-
throwIfRequested() {
|
|
34
|
-
if (this.reason)
|
|
35
|
-
throw this.reason;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Subscribe to the cancel signal
|
|
39
|
-
*/
|
|
40
|
-
subscribe(e) {
|
|
41
|
-
if (this.reason) {
|
|
42
|
-
e(this.reason);
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
this._listeners ? this._listeners.push(e) : this._listeners = [e];
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Unsubscribe from the cancel signal
|
|
49
|
-
*/
|
|
50
|
-
unsubscribe(e) {
|
|
51
|
-
if (!this._listeners)
|
|
52
|
-
return;
|
|
53
|
-
const t = this._listeners.indexOf(e);
|
|
54
|
-
t !== -1 && this._listeners.splice(t, 1);
|
|
55
|
-
}
|
|
56
|
-
toAbortSignal() {
|
|
57
|
-
const e = new AbortController(), t = (s) => {
|
|
58
|
-
e.abort(s);
|
|
59
|
-
};
|
|
60
|
-
return this.subscribe(t), e.signal.unsubscribe = () => this.unsubscribe(t), e.signal;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
64
|
-
* cancels the `CancelToken`.
|
|
65
|
-
*/
|
|
66
|
-
static source() {
|
|
67
|
-
let e;
|
|
68
|
-
return {
|
|
69
|
-
token: new c(function(n) {
|
|
70
|
-
e = n;
|
|
71
|
-
}),
|
|
72
|
-
cancel: e
|
|
73
|
-
};
|
|
74
|
-
}
|
|
2
|
+
function t(n) {
|
|
3
|
+
return !!(n && n.__CANCEL__);
|
|
75
4
|
}
|
|
76
5
|
export {
|
|
77
|
-
|
|
6
|
+
t as default
|
|
78
7
|
};
|
package/dist/index102.mjs
CHANGED
package/dist/index103.mjs
CHANGED
|
@@ -1,5 +1,86 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
2
|
+
import t from "./index93.mjs";
|
|
3
|
+
import E from "./index104.mjs";
|
|
4
|
+
function B(i) {
|
|
5
|
+
return t.isPlainObject(i) || t.isArray(i);
|
|
6
|
+
}
|
|
7
|
+
function h(i) {
|
|
8
|
+
return t.endsWith(i, "[]") ? i.slice(0, -2) : i;
|
|
9
|
+
}
|
|
10
|
+
function O(i, e, s) {
|
|
11
|
+
return i ? i.concat(e).map(function(o, d) {
|
|
12
|
+
return o = h(o), !s && d ? "[" + o + "]" : o;
|
|
13
|
+
}).join(s ? "." : "") : e;
|
|
14
|
+
}
|
|
15
|
+
function T(i) {
|
|
16
|
+
return t.isArray(i) && !i.some(B);
|
|
17
|
+
}
|
|
18
|
+
const S = t.toFlatObject(t, {}, null, function(e) {
|
|
19
|
+
return /^is[A-Z]/.test(e);
|
|
20
|
+
});
|
|
21
|
+
function W(i, e, s) {
|
|
22
|
+
if (!t.isObject(i))
|
|
23
|
+
throw new TypeError("target must be an object");
|
|
24
|
+
e = e || new FormData(), s = t.toFlatObject(s, {
|
|
25
|
+
metaTokens: !0,
|
|
26
|
+
dots: !1,
|
|
27
|
+
indexes: !1
|
|
28
|
+
}, !1, function(n, u) {
|
|
29
|
+
return !t.isUndefined(u[n]);
|
|
30
|
+
});
|
|
31
|
+
const p = s.metaTokens, o = s.visitor || j, d = s.dots, m = s.indexes, w = (s.Blob || typeof Blob < "u" && Blob) && t.isSpecCompliantForm(e);
|
|
32
|
+
if (!t.isFunction(o))
|
|
33
|
+
throw new TypeError("visitor must be a function");
|
|
34
|
+
function l(r) {
|
|
35
|
+
if (r === null) return "";
|
|
36
|
+
if (t.isDate(r))
|
|
37
|
+
return r.toISOString();
|
|
38
|
+
if (t.isBoolean(r))
|
|
39
|
+
return r.toString();
|
|
40
|
+
if (!w && t.isBlob(r))
|
|
41
|
+
throw new E("Blob is not supported. Use a Buffer instead.");
|
|
42
|
+
return t.isArrayBuffer(r) || t.isTypedArray(r) ? w && typeof Blob == "function" ? new Blob([r]) : Buffer.from(r) : r;
|
|
43
|
+
}
|
|
44
|
+
function j(r, n, u) {
|
|
45
|
+
let f = r;
|
|
46
|
+
if (r && !u && typeof r == "object") {
|
|
47
|
+
if (t.endsWith(n, "{}"))
|
|
48
|
+
n = p ? n : n.slice(0, -2), r = JSON.stringify(r);
|
|
49
|
+
else if (t.isArray(r) && T(r) || (t.isFileList(r) || t.endsWith(n, "[]")) && (f = t.toArray(r)))
|
|
50
|
+
return n = h(n), f.forEach(function(b, x) {
|
|
51
|
+
!(t.isUndefined(b) || b === null) && e.append(
|
|
52
|
+
// eslint-disable-next-line no-nested-ternary
|
|
53
|
+
m === !0 ? O([n], x, d) : m === null ? n : n + "[]",
|
|
54
|
+
l(b)
|
|
55
|
+
);
|
|
56
|
+
}), !1;
|
|
57
|
+
}
|
|
58
|
+
return B(r) ? !0 : (e.append(O(u, n, d), l(r)), !1);
|
|
59
|
+
}
|
|
60
|
+
const a = [], F = Object.assign(S, {
|
|
61
|
+
defaultVisitor: j,
|
|
62
|
+
convertValue: l,
|
|
63
|
+
isVisitable: B
|
|
64
|
+
});
|
|
65
|
+
function A(r, n) {
|
|
66
|
+
if (!t.isUndefined(r)) {
|
|
67
|
+
if (a.indexOf(r) !== -1)
|
|
68
|
+
throw Error("Circular reference detected in " + n.join("."));
|
|
69
|
+
a.push(r), t.forEach(r, function(f, c) {
|
|
70
|
+
(!(t.isUndefined(f) || f === null) && o.call(
|
|
71
|
+
e,
|
|
72
|
+
f,
|
|
73
|
+
t.isString(c) ? c.trim() : c,
|
|
74
|
+
n,
|
|
75
|
+
F
|
|
76
|
+
)) === !0 && A(f, n ? n.concat(c) : [c]);
|
|
77
|
+
}), a.pop();
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
if (!t.isObject(i))
|
|
81
|
+
throw new TypeError("data must be an object");
|
|
82
|
+
return A(i), e;
|
|
83
|
+
}
|
|
3
84
|
export {
|
|
4
|
-
|
|
85
|
+
W as default
|
|
5
86
|
};
|
package/dist/index104.mjs
CHANGED
|
@@ -1,86 +1,57 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
return t.isPlainObject(i) || t.isArray(i);
|
|
2
|
+
import c from "./index93.mjs";
|
|
3
|
+
function r(t, i, o, a, e) {
|
|
4
|
+
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", i && (this.code = i), o && (this.config = o), a && (this.request = a), e && (this.response = e, this.status = e.status ? e.status : null);
|
|
6
5
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
dots: !1,
|
|
27
|
-
indexes: !1
|
|
28
|
-
}, !1, function(n, u) {
|
|
29
|
-
return !t.isUndefined(u[n]);
|
|
30
|
-
});
|
|
31
|
-
const p = s.metaTokens, o = s.visitor || j, d = s.dots, m = s.indexes, w = (s.Blob || typeof Blob < "u" && Blob) && t.isSpecCompliantForm(e);
|
|
32
|
-
if (!t.isFunction(o))
|
|
33
|
-
throw new TypeError("visitor must be a function");
|
|
34
|
-
function l(r) {
|
|
35
|
-
if (r === null) return "";
|
|
36
|
-
if (t.isDate(r))
|
|
37
|
-
return r.toISOString();
|
|
38
|
-
if (t.isBoolean(r))
|
|
39
|
-
return r.toString();
|
|
40
|
-
if (!w && t.isBlob(r))
|
|
41
|
-
throw new E("Blob is not supported. Use a Buffer instead.");
|
|
42
|
-
return t.isArrayBuffer(r) || t.isTypedArray(r) ? w && typeof Blob == "function" ? new Blob([r]) : Buffer.from(r) : r;
|
|
43
|
-
}
|
|
44
|
-
function j(r, n, u) {
|
|
45
|
-
let f = r;
|
|
46
|
-
if (r && !u && typeof r == "object") {
|
|
47
|
-
if (t.endsWith(n, "{}"))
|
|
48
|
-
n = p ? n : n.slice(0, -2), r = JSON.stringify(r);
|
|
49
|
-
else if (t.isArray(r) && T(r) || (t.isFileList(r) || t.endsWith(n, "[]")) && (f = t.toArray(r)))
|
|
50
|
-
return n = h(n), f.forEach(function(b, x) {
|
|
51
|
-
!(t.isUndefined(b) || b === null) && e.append(
|
|
52
|
-
// eslint-disable-next-line no-nested-ternary
|
|
53
|
-
m === !0 ? O([n], x, d) : m === null ? n : n + "[]",
|
|
54
|
-
l(b)
|
|
55
|
-
);
|
|
56
|
-
}), !1;
|
|
57
|
-
}
|
|
58
|
-
return B(r) ? !0 : (e.append(O(u, n, d), l(r)), !1);
|
|
6
|
+
c.inherits(r, Error, {
|
|
7
|
+
toJSON: function() {
|
|
8
|
+
return {
|
|
9
|
+
// Standard
|
|
10
|
+
message: this.message,
|
|
11
|
+
name: this.name,
|
|
12
|
+
// Microsoft
|
|
13
|
+
description: this.description,
|
|
14
|
+
number: this.number,
|
|
15
|
+
// Mozilla
|
|
16
|
+
fileName: this.fileName,
|
|
17
|
+
lineNumber: this.lineNumber,
|
|
18
|
+
columnNumber: this.columnNumber,
|
|
19
|
+
stack: this.stack,
|
|
20
|
+
// Axios
|
|
21
|
+
config: c.toJSONObject(this.config),
|
|
22
|
+
code: this.code,
|
|
23
|
+
status: this.status
|
|
24
|
+
};
|
|
59
25
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
26
|
+
});
|
|
27
|
+
const u = r.prototype, R = {};
|
|
28
|
+
[
|
|
29
|
+
"ERR_BAD_OPTION_VALUE",
|
|
30
|
+
"ERR_BAD_OPTION",
|
|
31
|
+
"ECONNABORTED",
|
|
32
|
+
"ETIMEDOUT",
|
|
33
|
+
"ERR_NETWORK",
|
|
34
|
+
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
35
|
+
"ERR_DEPRECATED",
|
|
36
|
+
"ERR_BAD_RESPONSE",
|
|
37
|
+
"ERR_BAD_REQUEST",
|
|
38
|
+
"ERR_CANCELED",
|
|
39
|
+
"ERR_NOT_SUPPORT",
|
|
40
|
+
"ERR_INVALID_URL"
|
|
41
|
+
// eslint-disable-next-line func-names
|
|
42
|
+
].forEach((t) => {
|
|
43
|
+
R[t] = { value: t };
|
|
44
|
+
});
|
|
45
|
+
Object.defineProperties(r, R);
|
|
46
|
+
Object.defineProperty(u, "isAxiosError", { value: !0 });
|
|
47
|
+
r.from = (t, i, o, a, e, E) => {
|
|
48
|
+
const s = Object.create(u);
|
|
49
|
+
c.toFlatObject(t, s, function(m) {
|
|
50
|
+
return m !== Error.prototype;
|
|
51
|
+
}, (n) => n !== "isAxiosError");
|
|
52
|
+
const l = t && t.message ? t.message : "Error", h = i == null && t ? t.code : i;
|
|
53
|
+
return r.call(s, l, h, o, a, e), t && s.cause == null && Object.defineProperty(s, "cause", { value: t, configurable: !0 }), s.name = t && t.name || "Error", E && Object.assign(s, E), s;
|
|
54
|
+
};
|
|
84
55
|
export {
|
|
85
|
-
|
|
56
|
+
r as default
|
|
86
57
|
};
|
package/dist/index105.mjs
CHANGED
|
@@ -1,57 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
function
|
|
4
|
-
|
|
2
|
+
function u(n) {
|
|
3
|
+
return function(r) {
|
|
4
|
+
return n.apply(null, r);
|
|
5
|
+
};
|
|
5
6
|
}
|
|
6
|
-
c.inherits(r, Error, {
|
|
7
|
-
toJSON: function() {
|
|
8
|
-
return {
|
|
9
|
-
// Standard
|
|
10
|
-
message: this.message,
|
|
11
|
-
name: this.name,
|
|
12
|
-
// Microsoft
|
|
13
|
-
description: this.description,
|
|
14
|
-
number: this.number,
|
|
15
|
-
// Mozilla
|
|
16
|
-
fileName: this.fileName,
|
|
17
|
-
lineNumber: this.lineNumber,
|
|
18
|
-
columnNumber: this.columnNumber,
|
|
19
|
-
stack: this.stack,
|
|
20
|
-
// Axios
|
|
21
|
-
config: c.toJSONObject(this.config),
|
|
22
|
-
code: this.code,
|
|
23
|
-
status: this.status
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
const u = r.prototype, R = {};
|
|
28
|
-
[
|
|
29
|
-
"ERR_BAD_OPTION_VALUE",
|
|
30
|
-
"ERR_BAD_OPTION",
|
|
31
|
-
"ECONNABORTED",
|
|
32
|
-
"ETIMEDOUT",
|
|
33
|
-
"ERR_NETWORK",
|
|
34
|
-
"ERR_FR_TOO_MANY_REDIRECTS",
|
|
35
|
-
"ERR_DEPRECATED",
|
|
36
|
-
"ERR_BAD_RESPONSE",
|
|
37
|
-
"ERR_BAD_REQUEST",
|
|
38
|
-
"ERR_CANCELED",
|
|
39
|
-
"ERR_NOT_SUPPORT",
|
|
40
|
-
"ERR_INVALID_URL"
|
|
41
|
-
// eslint-disable-next-line func-names
|
|
42
|
-
].forEach((t) => {
|
|
43
|
-
R[t] = { value: t };
|
|
44
|
-
});
|
|
45
|
-
Object.defineProperties(r, R);
|
|
46
|
-
Object.defineProperty(u, "isAxiosError", { value: !0 });
|
|
47
|
-
r.from = (t, i, o, a, e, E) => {
|
|
48
|
-
const s = Object.create(u);
|
|
49
|
-
c.toFlatObject(t, s, function(m) {
|
|
50
|
-
return m !== Error.prototype;
|
|
51
|
-
}, (n) => n !== "isAxiosError");
|
|
52
|
-
const l = t && t.message ? t.message : "Error", h = i == null && t ? t.code : i;
|
|
53
|
-
return r.call(s, l, h, o, a, e), t && s.cause == null && Object.defineProperty(s, "cause", { value: t, configurable: !0 }), s.name = t && t.name || "Error", E && Object.assign(s, E), s;
|
|
54
|
-
};
|
|
55
7
|
export {
|
|
56
|
-
|
|
8
|
+
u as default
|
|
57
9
|
};
|
package/dist/index106.mjs
CHANGED