@instockng/storefront-ui 1.0.110 → 1.0.112
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/AssistantDrawer.d.ts.map +1 -1
- package/dist/components/Checkout.d.ts.map +1 -1
- package/dist/components/DeliveryConfirmation.d.ts.map +1 -1
- package/dist/components/OrderConfirmation.d.ts.map +1 -1
- package/dist/index100.mjs +28 -4
- package/dist/index101.mjs +7 -177
- package/dist/index102.mjs +72 -50
- package/dist/index103.mjs +4 -69
- package/dist/index104.mjs +2 -2
- package/dist/index105.mjs +82 -5
- package/dist/index106.mjs +53 -1133
- package/dist/index107.mjs +5 -19
- package/dist/index108.mjs +4 -54
- package/dist/index109.mjs +174 -28
- package/dist/index110.mjs +53 -2
- package/dist/index111.mjs +69 -37
- package/dist/index112.mjs +34 -40
- package/dist/index113.mjs +43 -2
- package/dist/index117.mjs +2 -2
- package/dist/index118.mjs +2 -2
- package/dist/index153.mjs +2 -2
- package/dist/index154.mjs +1 -1
- package/dist/index155.mjs +6 -6
- package/dist/index156.mjs +2 -2
- package/dist/index157.mjs +2 -2
- package/dist/index159.mjs +2 -2
- package/dist/index160.mjs +2 -2
- package/dist/index161.mjs +1 -1
- package/dist/index163.mjs +8 -8
- package/dist/index164.mjs +8 -8
- package/dist/index169.mjs +1 -1
- package/dist/index170.mjs +1 -1
- package/dist/index171.mjs +1 -1
- package/dist/index172.mjs +1 -1
- package/dist/index173.mjs +1 -1
- package/dist/index175.mjs +3 -3
- package/dist/index176.mjs +1 -1
- package/dist/index178.mjs +2 -2
- package/dist/index179.mjs +1 -1
- package/dist/index184.mjs +2 -2
- package/dist/index186.mjs +1 -1
- package/dist/index188.mjs +2 -2
- package/dist/index189.mjs +5 -5
- package/dist/index192.mjs +1 -1
- package/dist/index195.mjs +1 -1
- package/dist/index198.mjs +1 -1
- package/dist/index199.mjs +1 -1
- package/dist/index203.mjs +1 -1
- package/dist/index205.mjs +1 -1
- package/dist/index209.mjs +1 -1
- package/dist/index21.mjs +66 -66
- package/dist/index211.mjs +1 -1
- package/dist/index22.mjs +117 -99
- package/dist/index220.mjs +2 -2
- package/dist/index222.mjs +1 -1
- package/dist/index223.mjs +1 -1
- package/dist/index224.mjs +2 -31
- package/dist/index225.mjs +2 -11
- package/dist/index226.mjs +2 -4
- package/dist/index227.mjs +2 -4
- package/dist/index228.mjs +2 -13
- package/dist/index229.mjs +2 -7
- package/dist/index230.mjs +107 -11
- package/dist/index231.mjs +2 -5
- package/dist/index232.mjs +2 -33
- package/dist/index233.mjs +2 -31
- package/dist/index234.mjs +2 -28
- package/dist/index235.mjs +34 -58
- package/dist/index236.mjs +2 -2
- package/dist/index237.mjs +233 -97
- package/dist/index238.mjs +2 -2
- package/dist/index239.mjs +33 -2
- package/dist/index240.mjs +65 -2
- package/dist/index241.mjs +25 -2
- package/dist/index242.mjs +2 -2
- package/dist/index245.mjs +2 -2
- package/dist/index246.mjs +2 -2
- package/dist/index247.mjs +2 -37
- package/dist/index248.mjs +2 -2
- package/dist/index249.mjs +2 -2
- package/dist/index251.mjs +2 -2
- package/dist/index252.mjs +2 -2
- package/dist/index253.mjs +31 -2
- package/dist/index254.mjs +11 -2
- package/dist/index255.mjs +4 -2
- package/dist/index256.mjs +4 -2
- package/dist/index257.mjs +2 -244
- package/dist/index258.mjs +4 -2
- package/dist/index259.mjs +13 -33
- package/dist/index260.mjs +7 -65
- package/dist/index261.mjs +11 -24
- package/dist/index262.mjs +5 -2
- package/dist/index263.mjs +33 -2
- package/dist/index264.mjs +31 -4
- package/dist/index265.mjs +28 -2
- package/dist/index266.mjs +61 -2
- package/dist/index267.mjs +2 -3
- package/dist/index268.mjs +2 -2
- package/dist/index269.mjs +18 -2
- package/dist/index270.mjs +46 -16
- package/dist/index271.mjs +2 -13
- package/dist/index272.mjs +2 -6
- package/dist/index273.mjs +2 -30
- package/dist/index275.mjs +91 -2
- package/dist/index276.mjs +2 -18
- package/dist/index277.mjs +3 -47
- package/dist/index278.mjs +2 -2
- package/dist/index279.mjs +2 -2
- package/dist/index280.mjs +17 -2
- package/dist/index281.mjs +13 -2
- package/dist/index282.mjs +6 -2
- package/dist/index283.mjs +30 -91
- package/dist/index30.mjs +31 -27
- package/dist/index43.mjs +1 -1
- package/dist/index44.mjs +1 -1
- package/dist/index45.mjs +1 -1
- package/dist/index46.mjs +1 -1
- package/dist/index47.mjs +1 -1
- package/dist/index48.mjs +2 -2
- package/dist/index50.mjs +2 -2
- package/dist/index54.mjs +3 -3
- package/dist/index58.mjs +1 -1
- package/dist/index63.mjs +17 -17
- package/dist/index64.mjs +2 -2
- 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/index76.mjs +1 -1
- package/dist/index77.mjs +1 -1
- package/dist/index78.mjs +1 -1
- package/dist/index79.mjs +23 -4
- package/dist/index8.mjs +81 -82
- package/dist/index80.mjs +2 -23
- package/dist/index81.mjs +150 -21
- package/dist/index82.mjs +19 -149
- package/dist/index83.mjs +75 -2
- package/dist/index84.mjs +14 -74
- package/dist/index85.mjs +62 -14
- package/dist/index86.mjs +4 -62
- package/dist/index87.mjs +2 -235
- package/dist/index88.mjs +5 -5
- package/dist/index89.mjs +1125 -125
- package/dist/index9.mjs +43 -44
- package/dist/index90.mjs +19 -67
- package/dist/index91.mjs +50 -82
- package/dist/index92.mjs +32 -28
- package/dist/index93.mjs +2 -9
- package/dist/index94.mjs +2 -75
- package/dist/index95.mjs +234 -3
- package/dist/index96.mjs +6 -2
- package/dist/index97.mjs +128 -77
- package/dist/index98.mjs +67 -53
- package/dist/index99.mjs +86 -5
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/AssistantDrawer.tsx +19 -3
- package/src/components/Checkout.tsx +1 -5
- package/src/components/DeliveryConfirmation.tsx +1 -6
- package/src/components/OrderConfirmation.tsx +1 -7
- package/src/lib/utils.ts +6 -0
package/dist/index9.mjs
CHANGED
|
@@ -3,59 +3,58 @@ import { jsx as e, jsxs as t, Fragment as g } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState as m } from "react";
|
|
4
4
|
import "./index31.mjs";
|
|
5
5
|
import "@tanstack/react-query";
|
|
6
|
-
import { useGetOrder as q, useConfirmDelivery as z, useUpdateDeliveryAddress as
|
|
6
|
+
import { useGetOrder as q, useConfirmDelivery as z, useUpdateDeliveryAddress as R } from "./index46.mjs";
|
|
7
7
|
import { Card as l, CardHeader as C, CardTitle as w, CardContent as c } from "./index25.mjs";
|
|
8
8
|
import { Button as x } from "./index24.mjs";
|
|
9
|
-
import { Badge as
|
|
10
|
-
import { Loader2 as P, XCircle as
|
|
11
|
-
import { cn as i, formatCurrency as d } from "./index30.mjs";
|
|
12
|
-
|
|
13
|
-
function de({
|
|
9
|
+
import { Badge as Z } from "./index26.mjs";
|
|
10
|
+
import { Loader2 as P, XCircle as G, Package as K, CheckCircle as Q, Pencil as X } from "lucide-react";
|
|
11
|
+
import { cn as i, formatCurrency as d, WHATSAPP_HELP_NUMBER_FORMATTED as $, WHATSAPP_HELP_LINK as I } from "./index30.mjs";
|
|
12
|
+
function le({
|
|
14
13
|
orderId: N,
|
|
15
14
|
token: v,
|
|
16
15
|
className: b,
|
|
17
16
|
headerClassName: L,
|
|
18
|
-
buttonClassName:
|
|
19
|
-
cardClassName:
|
|
20
|
-
whatsappHelpLink:
|
|
21
|
-
whatsappHelpNumber: F =
|
|
17
|
+
buttonClassName: A,
|
|
18
|
+
cardClassName: s,
|
|
19
|
+
whatsappHelpLink: _ = I,
|
|
20
|
+
whatsappHelpNumber: F = $
|
|
22
21
|
}) {
|
|
23
|
-
var
|
|
24
|
-
const [h,
|
|
22
|
+
var M;
|
|
23
|
+
const [h, j] = m(!1), [u, y] = m(!1), [E, D] = m(""), [S, U] = m(""), [k, T] = m(""), { data: a, isLoading: H, error: W } = q(N, v, {
|
|
25
24
|
retry: !1
|
|
26
25
|
}), p = z({
|
|
27
26
|
onSuccess: () => {
|
|
28
|
-
|
|
27
|
+
j(!0);
|
|
29
28
|
}
|
|
30
|
-
}), o =
|
|
29
|
+
}), o = R({
|
|
31
30
|
onSuccess: () => {
|
|
32
|
-
|
|
31
|
+
j(!0), y(!1);
|
|
33
32
|
}
|
|
34
33
|
}), O = () => {
|
|
35
|
-
|
|
36
|
-
},
|
|
34
|
+
a && !("error" in a) && (D(a.address), U(a.city), T(a.phone), y(!0));
|
|
35
|
+
}, B = () => {
|
|
37
36
|
o.mutate({
|
|
38
37
|
orderId: N,
|
|
39
38
|
token: v,
|
|
40
|
-
address:
|
|
41
|
-
city:
|
|
39
|
+
address: E,
|
|
40
|
+
city: S,
|
|
42
41
|
phone: k
|
|
43
42
|
});
|
|
44
43
|
};
|
|
45
|
-
if (
|
|
44
|
+
if (H)
|
|
46
45
|
return /* @__PURE__ */ e("div", { className: i("min-h-screen flex items-center justify-center", b), children: /* @__PURE__ */ t("div", { className: "text-center", children: [
|
|
47
46
|
/* @__PURE__ */ e(P, { className: "h-12 w-12 animate-spin text-blue-500 mx-auto mb-4" }),
|
|
48
47
|
/* @__PURE__ */ e("p", { className: "text-muted-foreground", children: "Loading order details..." })
|
|
49
48
|
] }) });
|
|
50
|
-
if (
|
|
51
|
-
return /* @__PURE__ */ e("div", { className: i("min-h-screen flex items-center justify-center p-4", b), children: /* @__PURE__ */ t(l, { className: i("max-w-md w-full",
|
|
49
|
+
if (W || !a || "error" in a)
|
|
50
|
+
return /* @__PURE__ */ e("div", { className: i("min-h-screen flex items-center justify-center p-4", b), children: /* @__PURE__ */ t(l, { className: i("max-w-md w-full", s), children: [
|
|
52
51
|
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ t("div", { className: "flex items-center space-x-2", children: [
|
|
53
|
-
/* @__PURE__ */ e(
|
|
52
|
+
/* @__PURE__ */ e(G, { className: "h-6 w-6 text-red-500" }),
|
|
54
53
|
/* @__PURE__ */ e(w, { children: "Order Not Found" })
|
|
55
54
|
] }) }),
|
|
56
55
|
/* @__PURE__ */ e(c, { children: /* @__PURE__ */ e("p", { className: "text-muted-foreground", children: "We couldn't find this order. The link may be invalid or expired. Please contact support if you need assistance." }) })
|
|
57
56
|
] }) });
|
|
58
|
-
const r =
|
|
57
|
+
const r = a, f = !!r.deliveryConfirmedAt;
|
|
59
58
|
return /* @__PURE__ */ e("div", { className: i("min-h-screen py-8 px-4", b), children: /* @__PURE__ */ t("div", { className: "max-w-3xl mx-auto space-y-6", children: [
|
|
60
59
|
/* @__PURE__ */ t("div", { className: i("text-center", L), children: [
|
|
61
60
|
r.brand.logoUrl ? /* @__PURE__ */ e("div", { className: "inline-flex items-center justify-center w-24 h-16 mb-4", children: /* @__PURE__ */ e(
|
|
@@ -65,26 +64,26 @@ function de({
|
|
|
65
64
|
alt: `${r.brand.name} logo`,
|
|
66
65
|
className: "max-w-full max-h-full object-contain"
|
|
67
66
|
}
|
|
68
|
-
) }) : /* @__PURE__ */ e("div", { className: "inline-flex items-center justify-center w-16 h-16 bg-blue-100 rounded-full mb-4", children: /* @__PURE__ */ e(
|
|
67
|
+
) }) : /* @__PURE__ */ e("div", { className: "inline-flex items-center justify-center w-16 h-16 bg-blue-100 rounded-full mb-4", children: /* @__PURE__ */ e(K, { className: "h-8 w-8 text-blue-600" }) }),
|
|
69
68
|
/* @__PURE__ */ t("h1", { className: "text-3xl font-bold", children: [
|
|
70
69
|
"Order #",
|
|
71
70
|
r.orderNumber
|
|
72
71
|
] }),
|
|
73
72
|
/* @__PURE__ */ e("p", { className: "text-muted-foreground mt-2", children: r.brand.name })
|
|
74
73
|
] }),
|
|
75
|
-
(h || f) && /* @__PURE__ */ e(l, { className: i("border-green-200 bg-green-50",
|
|
76
|
-
/* @__PURE__ */ e(
|
|
74
|
+
(h || f) && /* @__PURE__ */ e(l, { className: i("border-green-200 bg-green-50", s), children: /* @__PURE__ */ e(c, { className: "pt-6", children: /* @__PURE__ */ t("div", { className: "flex items-start space-x-3", children: [
|
|
75
|
+
/* @__PURE__ */ e(Q, { className: "h-6 w-6 text-green-600 mt-0.5" }),
|
|
77
76
|
/* @__PURE__ */ t("div", { children: [
|
|
78
77
|
/* @__PURE__ */ e("h3", { className: "font-semibold text-green-900", children: "Delivery Confirmed!" }),
|
|
79
78
|
/* @__PURE__ */ e("p", { className: "text-green-700 mt-1", children: "Thank you for confirming your delivery details. We'll ship your order shortly." })
|
|
80
79
|
] })
|
|
81
80
|
] }) }) }),
|
|
82
|
-
!h && !f && r.canConfirmDelivery && !u && /* @__PURE__ */ e(l, { className: i(
|
|
83
|
-
/* @__PURE__ */ t(l, { className:
|
|
81
|
+
!h && !f && r.canConfirmDelivery && !u && /* @__PURE__ */ e(l, { className: i(s), children: /* @__PURE__ */ e(c, { className: "pt-6", children: /* @__PURE__ */ e("p", { children: r.confirmationMessage }) }) }),
|
|
82
|
+
/* @__PURE__ */ t(l, { className: s, children: [
|
|
84
83
|
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ t("div", { className: "flex items-center justify-between", children: [
|
|
85
84
|
/* @__PURE__ */ e(w, { children: "Delivery Address" }),
|
|
86
85
|
r.canUpdateAddress && !h && !f && !u && /* @__PURE__ */ t(x, { size: "sm", className: "bg-blue-600 hover:bg-blue-700 text-white", onClick: O, children: [
|
|
87
|
-
/* @__PURE__ */ e(
|
|
86
|
+
/* @__PURE__ */ e(X, { className: "h-4 w-4 mr-1" }),
|
|
88
87
|
"Edit"
|
|
89
88
|
] })
|
|
90
89
|
] }) }),
|
|
@@ -95,7 +94,7 @@ function de({
|
|
|
95
94
|
"input",
|
|
96
95
|
{
|
|
97
96
|
type: "text",
|
|
98
|
-
value:
|
|
97
|
+
value: E,
|
|
99
98
|
onChange: (n) => D(n.target.value),
|
|
100
99
|
className: "mt-1 w-full rounded-md border border-input px-3 py-2 text-sm focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500"
|
|
101
100
|
}
|
|
@@ -107,8 +106,8 @@ function de({
|
|
|
107
106
|
"input",
|
|
108
107
|
{
|
|
109
108
|
type: "text",
|
|
110
|
-
value:
|
|
111
|
-
onChange: (n) =>
|
|
109
|
+
value: S,
|
|
110
|
+
onChange: (n) => U(n.target.value),
|
|
112
111
|
className: "mt-1 w-full rounded-md border border-input px-3 py-2 text-sm focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500"
|
|
113
112
|
}
|
|
114
113
|
)
|
|
@@ -120,7 +119,7 @@ function de({
|
|
|
120
119
|
{
|
|
121
120
|
type: "text",
|
|
122
121
|
value: k,
|
|
123
|
-
onChange: (n) =>
|
|
122
|
+
onChange: (n) => T(n.target.value),
|
|
124
123
|
className: "mt-1 w-full rounded-md border border-input px-3 py-2 text-sm focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500"
|
|
125
124
|
}
|
|
126
125
|
)
|
|
@@ -129,9 +128,9 @@ function de({
|
|
|
129
128
|
/* @__PURE__ */ e(
|
|
130
129
|
x,
|
|
131
130
|
{
|
|
132
|
-
onClick:
|
|
131
|
+
onClick: B,
|
|
133
132
|
disabled: o.isPending,
|
|
134
|
-
className: i("flex-1 bg-green-600 hover:bg-green-700 text-white",
|
|
133
|
+
className: i("flex-1 bg-green-600 hover:bg-green-700 text-white", A),
|
|
135
134
|
children: o.isPending ? /* @__PURE__ */ t(g, { children: [
|
|
136
135
|
/* @__PURE__ */ e(P, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
137
136
|
"Saving..."
|
|
@@ -171,13 +170,13 @@ function de({
|
|
|
171
170
|
] })
|
|
172
171
|
] }) })
|
|
173
172
|
] }),
|
|
174
|
-
r.canConfirmDelivery && !h && !f && !u && /* @__PURE__ */ e(l, { className:
|
|
173
|
+
r.canConfirmDelivery && !h && !f && !u && /* @__PURE__ */ e(l, { className: s, children: /* @__PURE__ */ t(c, { className: "pt-6", children: [
|
|
175
174
|
/* @__PURE__ */ e(
|
|
176
175
|
x,
|
|
177
176
|
{
|
|
178
177
|
onClick: () => p.mutate({ orderId: N, token: v }),
|
|
179
178
|
disabled: p.isPending,
|
|
180
|
-
className: i("w-full bg-green-600 hover:bg-green-700 text-white",
|
|
179
|
+
className: i("w-full bg-green-600 hover:bg-green-700 text-white", A),
|
|
181
180
|
size: "lg",
|
|
182
181
|
children: p.isPending ? /* @__PURE__ */ t(g, { children: [
|
|
183
182
|
/* @__PURE__ */ e(P, { className: "mr-2 h-5 w-5 animate-spin" }),
|
|
@@ -187,10 +186,10 @@ function de({
|
|
|
187
186
|
),
|
|
188
187
|
p.isError && /* @__PURE__ */ e("p", { className: "text-red-600 text-sm mt-2 text-center", children: "Failed to confirm delivery. Please try again or contact support." })
|
|
189
188
|
] }) }),
|
|
190
|
-
/* @__PURE__ */ t(l, { className:
|
|
189
|
+
/* @__PURE__ */ t(l, { className: s, children: [
|
|
191
190
|
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(w, { children: "Items" }) }),
|
|
192
191
|
/* @__PURE__ */ t(c, { children: [
|
|
193
|
-
/* @__PURE__ */ e("div", { className: "space-y-4", children: (
|
|
192
|
+
/* @__PURE__ */ e("div", { className: "space-y-4", children: (M = r.items) == null ? void 0 : M.map((n) => /* @__PURE__ */ t("div", { className: "flex items-start justify-between border-b pb-4 last:border-0", children: [
|
|
194
193
|
/* @__PURE__ */ t("div", { className: "flex items-start space-x-4 flex-1", children: [
|
|
195
194
|
(n.variant.thumbnailUrl || n.variant.product.thumbnailUrl) && /* @__PURE__ */ e(
|
|
196
195
|
"img",
|
|
@@ -202,7 +201,7 @@ function de({
|
|
|
202
201
|
),
|
|
203
202
|
/* @__PURE__ */ t("div", { className: "flex-1", children: [
|
|
204
203
|
/* @__PURE__ */ e("p", { className: "font-medium", children: n.variant.product.name }),
|
|
205
|
-
n.variant.name && /* @__PURE__ */ e(
|
|
204
|
+
n.variant.name && /* @__PURE__ */ e(Z, { variant: "outline", className: "mt-1", children: n.variant.name }),
|
|
206
205
|
/* @__PURE__ */ t("p", { className: "text-sm opacity-70 mt-1", children: [
|
|
207
206
|
"Quantity: ",
|
|
208
207
|
n.quantity
|
|
@@ -240,15 +239,15 @@ function de({
|
|
|
240
239
|
] })
|
|
241
240
|
] })
|
|
242
241
|
] }),
|
|
243
|
-
/* @__PURE__ */ e(l, { className:
|
|
242
|
+
/* @__PURE__ */ e(l, { className: s, children: /* @__PURE__ */ e(c, { className: "pt-6", children: /* @__PURE__ */ t("p", { className: "text-sm opacity-70 text-center", children: [
|
|
244
243
|
"Need help with your order? Call us on ",
|
|
245
244
|
F,
|
|
246
245
|
" or contact us on",
|
|
247
246
|
" ",
|
|
248
|
-
/* @__PURE__ */ e("a", { href:
|
|
247
|
+
/* @__PURE__ */ e("a", { href: _, target: "_blank", rel: "noopener noreferrer", className: "text-blue-600 hover:underline", children: "WhatsApp" })
|
|
249
248
|
] }) }) })
|
|
250
249
|
] }) });
|
|
251
250
|
}
|
|
252
251
|
export {
|
|
253
|
-
|
|
252
|
+
le as DeliveryConfirmation
|
|
254
253
|
};
|
package/dist/index90.mjs
CHANGED
|
@@ -1,71 +1,23 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
function n(t, e) {
|
|
22
|
-
if (i.isUndefined(e)) {
|
|
23
|
-
if (!i.isUndefined(t))
|
|
24
|
-
return d(void 0, t);
|
|
25
|
-
} else return d(void 0, e);
|
|
26
|
-
}
|
|
27
|
-
function m(t, e, r) {
|
|
28
|
-
if (r in f)
|
|
29
|
-
return d(t, e);
|
|
30
|
-
if (r in s)
|
|
31
|
-
return d(void 0, t);
|
|
32
|
-
}
|
|
33
|
-
const g = {
|
|
34
|
-
url: a,
|
|
35
|
-
method: a,
|
|
36
|
-
data: a,
|
|
37
|
-
baseURL: n,
|
|
38
|
-
transformRequest: n,
|
|
39
|
-
transformResponse: n,
|
|
40
|
-
paramsSerializer: n,
|
|
41
|
-
timeout: n,
|
|
42
|
-
timeoutMessage: n,
|
|
43
|
-
withCredentials: n,
|
|
44
|
-
withXSRFToken: n,
|
|
45
|
-
adapter: n,
|
|
46
|
-
responseType: n,
|
|
47
|
-
xsrfCookieName: n,
|
|
48
|
-
xsrfHeaderName: n,
|
|
49
|
-
onUploadProgress: n,
|
|
50
|
-
onDownloadProgress: n,
|
|
51
|
-
decompress: n,
|
|
52
|
-
maxContentLength: n,
|
|
53
|
-
maxBodyLength: n,
|
|
54
|
-
beforeRedirect: n,
|
|
55
|
-
transport: n,
|
|
56
|
-
httpAgent: n,
|
|
57
|
-
httpsAgent: n,
|
|
58
|
-
cancelToken: n,
|
|
59
|
-
socketPath: n,
|
|
60
|
-
responseEncoding: n,
|
|
61
|
-
validateStatus: m,
|
|
62
|
-
headers: (t, e, r) => l(c(t), c(e), r, !0)
|
|
63
|
-
};
|
|
64
|
-
return i.forEach(Object.keys({ ...s, ...f }), function(e) {
|
|
65
|
-
const r = g[e] || l, o = r(s[e], f[e], e);
|
|
66
|
-
i.isUndefined(o) && r !== m || (u[e] = o);
|
|
67
|
-
}), u;
|
|
2
|
+
import { __exports as e } from "./index149.mjs";
|
|
3
|
+
import "./index88.mjs";
|
|
4
|
+
import u from "react";
|
|
5
|
+
import { __exports as n } from "./index93.mjs";
|
|
6
|
+
var o;
|
|
7
|
+
function d() {
|
|
8
|
+
return o ? e : (o = 1, function(t) {
|
|
9
|
+
Object.defineProperty(t, "__esModule", {
|
|
10
|
+
value: !0
|
|
11
|
+
}), Object.defineProperty(t, "RouterContext", {
|
|
12
|
+
enumerable: !0,
|
|
13
|
+
get: function() {
|
|
14
|
+
return r;
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
const r = (/* @__PURE__ */ n._(u)).default.createContext(null);
|
|
18
|
+
process.env.NODE_ENV !== "production" && (r.displayName = "RouterContext");
|
|
19
|
+
}(e), e);
|
|
68
20
|
}
|
|
69
21
|
export {
|
|
70
|
-
|
|
22
|
+
d as __require
|
|
71
23
|
};
|
package/dist/index91.mjs
CHANGED
|
@@ -1,90 +1,58 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
throw n;
|
|
2
|
+
import { __exports as o } from "./index150.mjs";
|
|
3
|
+
import { __require as p } from "./index151.mjs";
|
|
4
|
+
var u;
|
|
5
|
+
function m() {
|
|
6
|
+
return u ? o : (u = 1, function(i) {
|
|
7
|
+
Object.defineProperty(i, "__esModule", {
|
|
8
|
+
value: !0
|
|
9
|
+
});
|
|
10
|
+
function f(e, r) {
|
|
11
|
+
for (var t in r) Object.defineProperty(e, t, {
|
|
12
|
+
enumerable: !0,
|
|
13
|
+
get: r[t]
|
|
14
|
+
});
|
|
16
15
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return r;
|
|
28
|
-
if (t.isArrayBufferView(r))
|
|
29
|
-
return r.buffer;
|
|
30
|
-
if (t.isURLSearchParams(r))
|
|
31
|
-
return e.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), r.toString();
|
|
32
|
-
let o;
|
|
33
|
-
if (f) {
|
|
34
|
-
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
35
|
-
return h(r, this.formSerializer).toString();
|
|
36
|
-
if ((o = t.isFileList(r)) || n.indexOf("multipart/form-data") > -1) {
|
|
37
|
-
const p = this.env && this.env.FormData;
|
|
38
|
-
return S(
|
|
39
|
-
o ? { "files[]": r } : r,
|
|
40
|
-
p && new p(),
|
|
41
|
-
this.formSerializer
|
|
42
|
-
);
|
|
16
|
+
f(i, {
|
|
17
|
+
/**
|
|
18
|
+
* Checks whether the given value is a NextError.
|
|
19
|
+
* This can be used to print a more detailed error message with properties like `code` & `digest`.
|
|
20
|
+
*/
|
|
21
|
+
default: function() {
|
|
22
|
+
return s;
|
|
23
|
+
},
|
|
24
|
+
getProperError: function() {
|
|
25
|
+
return a;
|
|
43
26
|
}
|
|
27
|
+
});
|
|
28
|
+
const c = p();
|
|
29
|
+
function s(e) {
|
|
30
|
+
return typeof e == "object" && e !== null && "name" in e && "message" in e;
|
|
44
31
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
} catch (o) {
|
|
56
|
-
if (m)
|
|
57
|
-
throw o.name === "SyntaxError" ? c.from(o, c.ERR_BAD_RESPONSE, this, null, this.response) : o;
|
|
58
|
-
}
|
|
32
|
+
function d(e) {
|
|
33
|
+
const r = /* @__PURE__ */ new WeakSet();
|
|
34
|
+
return JSON.stringify(e, (t, n) => {
|
|
35
|
+
if (typeof n == "object" && n !== null) {
|
|
36
|
+
if (r.has(n))
|
|
37
|
+
return "[Circular]";
|
|
38
|
+
r.add(n);
|
|
39
|
+
}
|
|
40
|
+
return n;
|
|
41
|
+
});
|
|
59
42
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
maxBodyLength: -1,
|
|
71
|
-
env: {
|
|
72
|
-
FormData: a.classes.FormData,
|
|
73
|
-
Blob: a.classes.Blob
|
|
74
|
-
},
|
|
75
|
-
validateStatus: function(r) {
|
|
76
|
-
return r >= 200 && r < 300;
|
|
77
|
-
},
|
|
78
|
-
headers: {
|
|
79
|
-
common: {
|
|
80
|
-
Accept: "application/json, text/plain, */*",
|
|
81
|
-
"Content-Type": void 0
|
|
43
|
+
function a(e) {
|
|
44
|
+
if (s(e))
|
|
45
|
+
return e;
|
|
46
|
+
if (process.env.NODE_ENV === "development") {
|
|
47
|
+
if (typeof e > "u")
|
|
48
|
+
return new Error("An undefined error was thrown, see here for more info: https://nextjs.org/docs/messages/threw-undefined");
|
|
49
|
+
if (e === null)
|
|
50
|
+
return new Error("A null error was thrown, see here for more info: https://nextjs.org/docs/messages/threw-undefined");
|
|
51
|
+
}
|
|
52
|
+
return new Error((0, c.isPlainObject)(e) ? d(e) : e + "");
|
|
82
53
|
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
t.forEach(["delete", "get", "head", "post", "put", "patch"], (i) => {
|
|
86
|
-
l.headers[i] = {};
|
|
87
|
-
});
|
|
54
|
+
}(o), o);
|
|
55
|
+
}
|
|
88
56
|
export {
|
|
89
|
-
|
|
57
|
+
m as __require
|
|
90
58
|
};
|
package/dist/index92.mjs
CHANGED
|
@@ -1,32 +1,36 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import u from "./
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
2
|
+
import { __module as u } from "./index152.mjs";
|
|
3
|
+
import d from "react/jsx-runtime";
|
|
4
|
+
import "react";
|
|
5
|
+
import { __require as c } from "./index81.mjs";
|
|
6
|
+
var n;
|
|
7
|
+
function y() {
|
|
8
|
+
return n ? u.exports : (n = 1, function(a, e) {
|
|
9
|
+
Object.defineProperty(e, "__esModule", {
|
|
10
|
+
value: !0
|
|
11
|
+
}), Object.defineProperty(e, "default", {
|
|
12
|
+
enumerable: !0,
|
|
13
|
+
get: function() {
|
|
14
|
+
return l;
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
const f = d, o = c();
|
|
18
|
+
function l(t) {
|
|
19
|
+
function r(i) {
|
|
20
|
+
return /* @__PURE__ */ (0, f.jsx)(t, {
|
|
21
|
+
router: (0, o.useRouter)(),
|
|
22
|
+
...i
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
if (r.getInitialProps = t.getInitialProps, r.origGetInitialProps = t.origGetInitialProps, process.env.NODE_ENV !== "production") {
|
|
26
|
+
const i = t.displayName || t.name || "Unknown";
|
|
27
|
+
r.displayName = "withRouter(" + i + ")";
|
|
28
|
+
}
|
|
29
|
+
return r;
|
|
30
|
+
}
|
|
31
|
+
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), a.exports = e.default);
|
|
32
|
+
}(u, u.exports), u.exports);
|
|
29
33
|
}
|
|
30
34
|
export {
|
|
31
|
-
|
|
35
|
+
y as __require
|
|
32
36
|
};
|
package/dist/index93.mjs
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
import i from "./index87.mjs";
|
|
4
|
-
function l(o, t, e) {
|
|
5
|
-
r.call(this, o ?? "canceled", r.ERR_CANCELED, t, e), this.name = "CanceledError";
|
|
6
|
-
}
|
|
7
|
-
i.inherits(l, r, {
|
|
8
|
-
__CANCEL__: !0
|
|
9
|
-
});
|
|
2
|
+
var e = {};
|
|
10
3
|
export {
|
|
11
|
-
|
|
4
|
+
e as __exports
|
|
12
5
|
};
|
package/dist/index94.mjs
CHANGED
|
@@ -1,78 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
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
|
-
}
|
|
75
|
-
}
|
|
2
|
+
var o = { exports: {} };
|
|
76
3
|
export {
|
|
77
|
-
|
|
4
|
+
o as __module
|
|
78
5
|
};
|