@instockng/storefront-ui 1.0.94 → 1.0.96
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/index150.mjs +1 -1
- package/dist/index152.mjs +1 -1
- package/dist/index153.mjs +2 -2
- package/dist/index157.mjs +2 -2
- package/dist/index165.mjs +1 -1
- package/dist/index166.mjs +1 -1
- package/dist/index168.mjs +1 -1
- package/dist/index169.mjs +1 -1
- package/dist/index171.mjs +1 -1
- package/dist/index172.mjs +1 -1
- package/dist/index18.mjs +81 -93
- package/dist/index180.mjs +2 -2
- package/dist/index182.mjs +1 -1
- package/dist/index194.mjs +1 -1
- package/dist/index195.mjs +1 -1
- package/dist/index201.mjs +1 -1
- package/dist/index205.mjs +1 -1
- package/dist/index207.mjs +1 -1
- package/dist/index221.mjs +12 -30
- package/dist/index222.mjs +7 -11
- package/dist/index223.mjs +30 -3
- package/dist/index224.mjs +10 -3
- package/dist/index225.mjs +4 -13
- package/dist/index226.mjs +4 -7
- package/dist/index229.mjs +2 -2
- package/dist/index230.mjs +2 -2
- package/dist/index233.mjs +2 -2
- package/dist/index234.mjs +2 -2
- package/dist/index236.mjs +2 -2
- package/dist/index237.mjs +2 -2
- package/dist/index239.mjs +2 -2
- package/dist/index243.mjs +2 -2
- package/dist/index244.mjs +2 -37
- package/dist/index245.mjs +37 -2
- package/dist/index254.mjs +2 -2
- package/dist/index255.mjs +2 -2
- package/dist/index257.mjs +2 -2
- package/dist/index259.mjs +2 -2
- package/dist/index261.mjs +2 -2
- package/dist/index273.mjs +2 -1
- package/dist/index274.mjs +2 -3
- package/dist/index275.mjs +2 -2
- package/dist/index276.mjs +17 -2
- package/dist/index277.mjs +11 -15
- package/dist/index278.mjs +6 -13
- package/dist/index279.mjs +30 -6
- package/dist/index280.mjs +2 -30
- package/dist/index45.mjs +2 -2
- package/dist/index47.mjs +2 -2
- package/dist/index55.mjs +1 -1
- package/dist/index77.mjs +20 -21
- package/dist/index78.mjs +21 -150
- package/dist/index79.mjs +153 -2
- package/dist/index80.mjs +2 -23
- package/dist/index83.mjs +1 -1
- package/dist/index91.mjs +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/AddOnsDiscountScreen.tsx +91 -103
|
@@ -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,2CAmN3B"}
|
package/dist/index150.mjs
CHANGED
package/dist/index152.mjs
CHANGED
package/dist/index153.mjs
CHANGED
package/dist/index157.mjs
CHANGED
package/dist/index165.mjs
CHANGED
package/dist/index166.mjs
CHANGED
package/dist/index168.mjs
CHANGED
package/dist/index169.mjs
CHANGED
package/dist/index171.mjs
CHANGED
package/dist/index172.mjs
CHANGED
package/dist/index18.mjs
CHANGED
|
@@ -1,131 +1,119 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useState as c } from "react";
|
|
2
|
+
import { jsx as s, jsxs as l, Fragment as x } from "react/jsx-runtime";
|
|
3
|
+
import { useRef as T, useState as c } from "react";
|
|
4
4
|
import "./index28.mjs";
|
|
5
|
-
import { useGetCartUpsellAddons as
|
|
5
|
+
import { useGetCartUpsellAddons as z } from "./index40.mjs";
|
|
6
6
|
import "@tanstack/react-query";
|
|
7
|
-
import { useCart as
|
|
8
|
-
import { cn as
|
|
9
|
-
import { FreeShippingProgress as
|
|
10
|
-
import { Button as
|
|
11
|
-
import { Loader2 as
|
|
12
|
-
import { VariantPickerModal as
|
|
13
|
-
function
|
|
14
|
-
onSkip:
|
|
15
|
-
className:
|
|
16
|
-
checkoutButtonClassName:
|
|
7
|
+
import { useCart as G } from "./index3.mjs";
|
|
8
|
+
import { cn as b, formatCurrency as w } from "./index27.mjs";
|
|
9
|
+
import { FreeShippingProgress as R } from "./index49.mjs";
|
|
10
|
+
import { Button as A } from "./index21.mjs";
|
|
11
|
+
import { Loader2 as C, Package as q, Check as B } from "lucide-react";
|
|
12
|
+
import { VariantPickerModal as D } from "./index13.mjs";
|
|
13
|
+
function ee({
|
|
14
|
+
onSkip: k,
|
|
15
|
+
className: P,
|
|
16
|
+
checkoutButtonClassName: F
|
|
17
17
|
}) {
|
|
18
|
-
const { cart: o, addItem:
|
|
19
|
-
|
|
18
|
+
const { cart: o, addItem: I } = G(), { data: m, isLoading: M } = z(o == null ? void 0 : o.id), u = T(null);
|
|
19
|
+
m && !u.current && (u.current = m);
|
|
20
|
+
const f = u.current ?? m, [V, N] = c([]), [h, j] = c([]), [r, g] = c(null), [U, y] = c(!1), v = async (t, e, n) => {
|
|
21
|
+
N((i) => [...i, t.id]);
|
|
20
22
|
try {
|
|
21
|
-
const
|
|
22
|
-
await
|
|
23
|
+
const i = Math.round(e.price * (1 - n / 100));
|
|
24
|
+
await I(t.slug, t.name, i, e.sku, 1, !0, n), j((a) => [...a, t.id]);
|
|
23
25
|
} finally {
|
|
24
|
-
|
|
26
|
+
N((i) => i.filter((a) => a !== t.id));
|
|
25
27
|
}
|
|
26
|
-
},
|
|
27
|
-
if (
|
|
28
|
-
|
|
28
|
+
}, L = (t, e) => {
|
|
29
|
+
if (t.variants.length > 1) {
|
|
30
|
+
g({ product: t, discountPercent: e });
|
|
29
31
|
return;
|
|
30
32
|
}
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
},
|
|
33
|
+
const n = t.variants[0];
|
|
34
|
+
n && v(t, n, e);
|
|
35
|
+
}, O = async (t, e) => {
|
|
34
36
|
if (r) {
|
|
35
|
-
|
|
37
|
+
y(!0);
|
|
36
38
|
try {
|
|
37
|
-
let
|
|
38
|
-
for (const a of
|
|
39
|
-
const d = a.addons.find((
|
|
39
|
+
let n = null, i = null;
|
|
40
|
+
for (const a of f || []) {
|
|
41
|
+
const d = a.addons.find((p) => p.id === t.id);
|
|
40
42
|
if (d) {
|
|
41
|
-
|
|
43
|
+
n = d, i = d.variants.find((p) => p.id === e.id);
|
|
42
44
|
break;
|
|
43
45
|
}
|
|
44
46
|
}
|
|
45
|
-
|
|
47
|
+
n && i && await v(n, i, r.discountPercent), g(null);
|
|
46
48
|
} finally {
|
|
47
|
-
|
|
49
|
+
y(!1);
|
|
48
50
|
}
|
|
49
51
|
}
|
|
50
52
|
};
|
|
51
|
-
if (
|
|
52
|
-
return /* @__PURE__ */
|
|
53
|
-
const
|
|
54
|
-
for (const
|
|
55
|
-
for (const
|
|
56
|
-
h.includes(
|
|
57
|
-
product:
|
|
58
|
-
addon:
|
|
59
|
-
parentName:
|
|
60
|
-
parentThumbnail:
|
|
53
|
+
if (M)
|
|
54
|
+
return /* @__PURE__ */ s("div", { className: "flex flex-1 items-center justify-center", children: /* @__PURE__ */ s(C, { className: "h-8 w-8 animate-spin text-accent-500" }) });
|
|
55
|
+
const S = [];
|
|
56
|
+
for (const t of f || [])
|
|
57
|
+
for (const e of t.addons)
|
|
58
|
+
h.includes(e.id) || S.push({
|
|
59
|
+
product: t,
|
|
60
|
+
addon: e,
|
|
61
|
+
parentName: t.productName,
|
|
62
|
+
parentThumbnail: t.productThumbnailUrl
|
|
61
63
|
});
|
|
62
64
|
return /* @__PURE__ */ l(x, { children: [
|
|
63
|
-
/* @__PURE__ */ l("div", { className:
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ l("div", { className: b("flex flex-1 min-h-0 flex-col", P), children: [
|
|
66
|
+
/* @__PURE__ */ s(R, {}),
|
|
65
67
|
/* @__PURE__ */ l("div", { className: "flex-1 min-h-0 overflow-y-auto p-4", children: [
|
|
66
68
|
/* @__PURE__ */ l("div", { className: "text-center mb-4", children: [
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ s("h3", { className: "text-lg font-semibold text-gray-900", children: "Exclusive deals for you" }),
|
|
70
|
+
/* @__PURE__ */ s("p", { className: "text-sm text-gray-500 mt-1", children: "Get these items at a special discount before checkout" })
|
|
69
71
|
] }),
|
|
70
|
-
/* @__PURE__ */
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
src: e.productThumbnailUrl,
|
|
76
|
-
alt: e.productName,
|
|
77
|
-
className: "w-8 h-8 rounded-full object-cover flex-shrink-0"
|
|
78
|
-
}
|
|
79
|
-
),
|
|
80
|
-
/* @__PURE__ */ l("p", { className: "text-sm font-medium text-gray-600", children: [
|
|
81
|
-
"Goes great with ",
|
|
82
|
-
e.productName
|
|
83
|
-
] })
|
|
84
|
-
] }),
|
|
85
|
-
/* @__PURE__ */ i("div", { className: "flex gap-3 overflow-x-auto pb-2 -mx-1 px-1 scrollbar-hide", children: e.addons.map((t) => {
|
|
86
|
-
const s = t.variants[0];
|
|
87
|
-
if (!s) return null;
|
|
88
|
-
const n = j.includes(t.id), a = h.includes(t.id), d = Math.round(s.price * (1 - t.discountPercent / 100));
|
|
72
|
+
/* @__PURE__ */ s("div", { className: "grid grid-cols-2 gap-3", children: (f || []).flatMap(
|
|
73
|
+
(t) => t.addons.map((e) => {
|
|
74
|
+
const n = e.variants[0];
|
|
75
|
+
if (!n) return null;
|
|
76
|
+
const i = V.includes(e.id), a = h.includes(e.id), d = Math.round(n.price * (1 - e.discountPercent / 100));
|
|
89
77
|
return /* @__PURE__ */ l(
|
|
90
78
|
"div",
|
|
91
79
|
{
|
|
92
|
-
className: "flex
|
|
80
|
+
className: "flex flex-col bg-white border border-gray-200 rounded-lg overflow-hidden",
|
|
93
81
|
children: [
|
|
94
82
|
/* @__PURE__ */ l("div", { className: "relative aspect-square bg-gray-100 overflow-hidden", children: [
|
|
95
|
-
|
|
83
|
+
e.thumbnailUrl ? /* @__PURE__ */ s(
|
|
96
84
|
"img",
|
|
97
85
|
{
|
|
98
|
-
src:
|
|
99
|
-
alt:
|
|
86
|
+
src: e.thumbnailUrl,
|
|
87
|
+
alt: e.name,
|
|
100
88
|
className: "absolute inset-0 w-full h-full object-cover"
|
|
101
89
|
}
|
|
102
|
-
) : /* @__PURE__ */
|
|
90
|
+
) : /* @__PURE__ */ s("div", { className: "absolute inset-0 w-full h-full flex items-center justify-center", children: /* @__PURE__ */ s(q, { className: "h-8 w-8 text-gray-300" }) }),
|
|
103
91
|
/* @__PURE__ */ l("div", { className: "absolute top-1 left-1 bg-red-500 text-white text-xs font-bold px-1.5 py-0.5 rounded", children: [
|
|
104
|
-
|
|
92
|
+
e.discountPercent,
|
|
105
93
|
"% OFF"
|
|
106
94
|
] })
|
|
107
95
|
] }),
|
|
108
96
|
/* @__PURE__ */ l("div", { className: "p-2 flex flex-col flex-1", children: [
|
|
109
|
-
/* @__PURE__ */
|
|
97
|
+
/* @__PURE__ */ s("h4", { className: "text-xs font-medium text-gray-900 line-clamp-2 leading-tight min-h-[2.5em]", children: e.name }),
|
|
110
98
|
/* @__PURE__ */ l("div", { className: "mt-1", children: [
|
|
111
|
-
/* @__PURE__ */
|
|
112
|
-
/* @__PURE__ */
|
|
99
|
+
/* @__PURE__ */ s("span", { className: "text-xs text-gray-400 line-through mr-1", children: w(n.price) }),
|
|
100
|
+
/* @__PURE__ */ s("span", { className: "text-sm font-bold text-red-600", children: w(d) })
|
|
113
101
|
] }),
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
|
|
102
|
+
/* @__PURE__ */ s(
|
|
103
|
+
A,
|
|
116
104
|
{
|
|
117
105
|
size: "sm",
|
|
118
|
-
onClick: () =>
|
|
119
|
-
disabled:
|
|
120
|
-
className:
|
|
106
|
+
onClick: () => L(e, e.discountPercent),
|
|
107
|
+
disabled: i || a,
|
|
108
|
+
className: b(
|
|
121
109
|
"w-full text-xs h-7 mt-2",
|
|
122
110
|
a ? "bg-green-500 hover:bg-green-500 text-white !opacity-100" : "bg-red-500 hover:bg-red-600 text-white"
|
|
123
111
|
),
|
|
124
|
-
children:
|
|
125
|
-
/* @__PURE__ */
|
|
112
|
+
children: i ? /* @__PURE__ */ l(x, { children: [
|
|
113
|
+
/* @__PURE__ */ s(C, { className: "h-3 w-3 animate-spin" }),
|
|
126
114
|
"Adding..."
|
|
127
115
|
] }) : a ? /* @__PURE__ */ l(x, { children: [
|
|
128
|
-
/* @__PURE__ */
|
|
116
|
+
/* @__PURE__ */ s(B, { className: "h-3 w-3" }),
|
|
129
117
|
"Added"
|
|
130
118
|
] }) : "Add"
|
|
131
119
|
}
|
|
@@ -133,28 +121,28 @@ function Z({
|
|
|
133
121
|
] })
|
|
134
122
|
]
|
|
135
123
|
},
|
|
136
|
-
|
|
124
|
+
e.id
|
|
137
125
|
);
|
|
138
|
-
})
|
|
139
|
-
|
|
126
|
+
})
|
|
127
|
+
) })
|
|
140
128
|
] }),
|
|
141
|
-
/* @__PURE__ */
|
|
142
|
-
|
|
129
|
+
/* @__PURE__ */ s("div", { className: "border-t border-gray-300 bg-white px-4 py-3", children: /* @__PURE__ */ s(
|
|
130
|
+
A,
|
|
143
131
|
{
|
|
144
|
-
onClick:
|
|
145
|
-
className:
|
|
132
|
+
onClick: k,
|
|
133
|
+
className: b("w-full bg-accent-500 text-white hover:bg-accent-600", F),
|
|
146
134
|
size: "lg",
|
|
147
135
|
children: h.length > 0 ? "Continue to checkout" : "No thanks, continue to checkout"
|
|
148
136
|
}
|
|
149
137
|
) })
|
|
150
138
|
] }),
|
|
151
|
-
/* @__PURE__ */
|
|
152
|
-
|
|
139
|
+
/* @__PURE__ */ s(
|
|
140
|
+
D,
|
|
153
141
|
{
|
|
154
142
|
isOpen: !!r,
|
|
155
|
-
onClose: () =>
|
|
143
|
+
onClose: () => g(null),
|
|
156
144
|
product: (r == null ? void 0 : r.product) || null,
|
|
157
|
-
onConfirm:
|
|
145
|
+
onConfirm: O,
|
|
158
146
|
isLoading: U,
|
|
159
147
|
discountPercent: r == null ? void 0 : r.discountPercent
|
|
160
148
|
}
|
|
@@ -162,5 +150,5 @@ function Z({
|
|
|
162
150
|
] });
|
|
163
151
|
}
|
|
164
152
|
export {
|
|
165
|
-
|
|
153
|
+
ee as AddOnsDiscountScreen
|
|
166
154
|
};
|
package/dist/index180.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { __exports as u } from "./
|
|
3
|
-
import { __require as d } from "./
|
|
2
|
+
import { __exports as u } from "./index244.mjs";
|
|
3
|
+
import { __require as d } from "./index245.mjs";
|
|
4
4
|
var a;
|
|
5
5
|
function h() {
|
|
6
6
|
return a ? u : (a = 1, function(c) {
|
package/dist/index182.mjs
CHANGED
package/dist/index194.mjs
CHANGED
package/dist/index195.mjs
CHANGED
package/dist/index201.mjs
CHANGED
package/dist/index205.mjs
CHANGED
package/dist/index207.mjs
CHANGED
package/dist/index221.mjs
CHANGED
|
@@ -1,34 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g, function(r) {
|
|
14
|
-
return t[r];
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
function a(n, t) {
|
|
18
|
-
this._pairs = [], n && p(n, this, t);
|
|
19
|
-
}
|
|
20
|
-
const c = a.prototype;
|
|
21
|
-
c.append = function(t, o) {
|
|
22
|
-
this._pairs.push([t, o]);
|
|
23
|
-
};
|
|
24
|
-
c.toString = function(t) {
|
|
25
|
-
const o = t ? function(r) {
|
|
26
|
-
return t.call(this, r, i);
|
|
27
|
-
} : i;
|
|
28
|
-
return this._pairs.map(function(e) {
|
|
29
|
-
return o(e[0]) + "=" + o(e[1]);
|
|
30
|
-
}, "").join("&");
|
|
2
|
+
import o from "./index273.mjs";
|
|
3
|
+
import r from "./index274.mjs";
|
|
4
|
+
import t from "./index275.mjs";
|
|
5
|
+
const l = {
|
|
6
|
+
isBrowser: !0,
|
|
7
|
+
classes: {
|
|
8
|
+
URLSearchParams: o,
|
|
9
|
+
FormData: r,
|
|
10
|
+
Blob: t
|
|
11
|
+
},
|
|
12
|
+
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
31
13
|
};
|
|
32
14
|
export {
|
|
33
|
-
|
|
15
|
+
l as default
|
|
34
16
|
};
|
package/dist/index222.mjs
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import s from "./index107.mjs";
|
|
5
|
-
function h(f, t) {
|
|
6
|
-
const o = this || m, r = t || o, n = s.from(r.headers);
|
|
7
|
-
let a = r.data;
|
|
8
|
-
return i.forEach(f, function(e) {
|
|
9
|
-
a = e.call(o, a, n.normalize(), t ? t.status : void 0);
|
|
10
|
-
}), n.normalize(), a;
|
|
11
|
-
}
|
|
2
|
+
const e = typeof window < "u" && typeof document < "u", o = typeof navigator == "object" && navigator || void 0, n = e && (!o || ["ReactNative", "NativeScript", "NS"].indexOf(o.product) < 0), t = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
3
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", r = e && window.location.href || "http://localhost";
|
|
12
4
|
export {
|
|
13
|
-
|
|
5
|
+
e as hasBrowserEnv,
|
|
6
|
+
n as hasStandardBrowserEnv,
|
|
7
|
+
t as hasStandardBrowserWebWorkerEnv,
|
|
8
|
+
o as navigator,
|
|
9
|
+
r as origin
|
|
14
10
|
};
|
package/dist/index223.mjs
CHANGED
|
@@ -1,7 +1,34 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import p from "./index103.mjs";
|
|
3
|
+
function i(n) {
|
|
4
|
+
const t = {
|
|
5
|
+
"!": "%21",
|
|
6
|
+
"'": "%27",
|
|
7
|
+
"(": "%28",
|
|
8
|
+
")": "%29",
|
|
9
|
+
"~": "%7E",
|
|
10
|
+
"%20": "+",
|
|
11
|
+
"%00": "\0"
|
|
12
|
+
};
|
|
13
|
+
return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g, function(r) {
|
|
14
|
+
return t[r];
|
|
15
|
+
});
|
|
4
16
|
}
|
|
17
|
+
function a(n, t) {
|
|
18
|
+
this._pairs = [], n && p(n, this, t);
|
|
19
|
+
}
|
|
20
|
+
const c = a.prototype;
|
|
21
|
+
c.append = function(t, o) {
|
|
22
|
+
this._pairs.push([t, o]);
|
|
23
|
+
};
|
|
24
|
+
c.toString = function(t) {
|
|
25
|
+
const o = t ? function(r) {
|
|
26
|
+
return t.call(this, r, i);
|
|
27
|
+
} : i;
|
|
28
|
+
return this._pairs.map(function(e) {
|
|
29
|
+
return o(e[0]) + "=" + o(e[1]);
|
|
30
|
+
}, "").join("&");
|
|
31
|
+
};
|
|
5
32
|
export {
|
|
6
|
-
|
|
33
|
+
a as default
|
|
7
34
|
};
|
package/dist/index224.mjs
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import i from "./index93.mjs";
|
|
3
|
+
import m from "./index97.mjs";
|
|
4
|
+
import s from "./index107.mjs";
|
|
5
|
+
function h(f, t) {
|
|
6
|
+
const o = this || m, r = t || o, n = s.from(r.headers);
|
|
7
|
+
let a = r.data;
|
|
8
|
+
return i.forEach(f, function(e) {
|
|
9
|
+
a = e.call(o, a, n.normalize(), t ? t.status : void 0);
|
|
10
|
+
}), n.normalize(), a;
|
|
4
11
|
}
|
|
5
12
|
export {
|
|
6
|
-
|
|
13
|
+
h as default
|
|
7
14
|
};
|
package/dist/index225.mjs
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const l = {
|
|
6
|
-
isBrowser: !0,
|
|
7
|
-
classes: {
|
|
8
|
-
URLSearchParams: o,
|
|
9
|
-
FormData: r,
|
|
10
|
-
Blob: t
|
|
11
|
-
},
|
|
12
|
-
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
13
|
-
};
|
|
2
|
+
function e(t) {
|
|
3
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
4
|
+
}
|
|
14
5
|
export {
|
|
15
|
-
|
|
6
|
+
e as default
|
|
16
7
|
};
|
package/dist/index226.mjs
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
function n(e, c) {
|
|
3
|
+
return c ? e.replace(/\/?\/$/, "") + "/" + c.replace(/^\/+/, "") : e;
|
|
4
|
+
}
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
-
n as hasStandardBrowserEnv,
|
|
7
|
-
t as hasStandardBrowserWebWorkerEnv,
|
|
8
|
-
o as navigator,
|
|
9
|
-
r as origin
|
|
6
|
+
n as default
|
|
10
7
|
};
|
package/dist/index229.mjs
CHANGED
package/dist/index230.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import n from "./index157.mjs";
|
|
3
3
|
import m from "./index93.mjs";
|
|
4
|
-
import c from "./
|
|
5
|
-
import h from "./
|
|
4
|
+
import c from "./index278.mjs";
|
|
5
|
+
import h from "./index279.mjs";
|
|
6
6
|
import w from "./index153.mjs";
|
|
7
7
|
import b from "./index96.mjs";
|
|
8
8
|
import C from "./index107.mjs";
|
package/dist/index233.mjs
CHANGED
package/dist/index234.mjs
CHANGED
package/dist/index236.mjs
CHANGED
package/dist/index237.mjs
CHANGED
package/dist/index239.mjs
CHANGED