@instockng/storefront-ui 1.0.87 → 1.0.89
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/CartUpsellScreen.d.ts.map +1 -1
- package/dist/index146.mjs +1 -1
- package/dist/index148.mjs +1 -1
- package/dist/index149.mjs +2 -2
- package/dist/index153.mjs +2 -2
- package/dist/index16.mjs +38 -36
- package/dist/index162.mjs +1 -1
- package/dist/index163.mjs +1 -1
- 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 +2 -2
- package/dist/index172.mjs +1 -1
- package/dist/index177.mjs +2 -2
- package/dist/index179.mjs +1 -1
- package/dist/index181.mjs +2 -2
- package/dist/index182.mjs +5 -5
- package/dist/index185.mjs +1 -1
- package/dist/index188.mjs +1 -1
- package/dist/index191.mjs +1 -1
- package/dist/index192.mjs +1 -1
- package/dist/index196.mjs +1 -1
- package/dist/index202.mjs +1 -1
- package/dist/index213.mjs +2 -2
- package/dist/index215.mjs +1 -1
- package/dist/index216.mjs +1 -1
- package/dist/index217.mjs +30 -12
- package/dist/index218.mjs +11 -7
- package/dist/index219.mjs +3 -30
- package/dist/index220.mjs +3 -10
- package/dist/index221.mjs +13 -4
- package/dist/index222.mjs +7 -4
- package/dist/index229.mjs +2 -2
- package/dist/index230.mjs +2 -2
- package/dist/index233.mjs +2 -37
- package/dist/index234.mjs +2 -2
- package/dist/index235.mjs +2 -2
- package/dist/index236.mjs +2 -244
- package/dist/index237.mjs +108 -2
- package/dist/index238.mjs +2 -33
- package/dist/index239.mjs +2 -65
- package/dist/index240.mjs +31 -19
- package/dist/index241.mjs +2 -2
- package/dist/index242.mjs +2 -2
- package/dist/index243.mjs +244 -2
- package/dist/index245.mjs +33 -2
- package/dist/index246.mjs +65 -2
- package/dist/index247.mjs +25 -2
- package/dist/index248.mjs +2 -2
- package/dist/index249.mjs +2 -2
- package/dist/index250.mjs +2 -2
- package/dist/index251.mjs +2 -108
- package/dist/index252.mjs +2 -2
- package/dist/index255.mjs +2 -2
- package/dist/index256.mjs +2 -4
- package/dist/index257.mjs +4 -2
- package/dist/index258.mjs +2 -2
- package/dist/index259.mjs +2 -2
- package/dist/index260.mjs +2 -2
- package/dist/index261.mjs +2 -18
- package/dist/index262.mjs +13 -42
- package/dist/index263.mjs +47 -2
- package/dist/index264.mjs +2 -2
- package/dist/index265.mjs +2 -2
- package/dist/index266.mjs +2 -2
- package/dist/index267.mjs +2 -91
- package/dist/index268.mjs +91 -2
- package/dist/index270.mjs +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/CartUpsellScreen.tsx +9 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CartUpsellScreen.d.ts","sourceRoot":"","sources":["../../src/components/CartUpsellScreen.tsx"],"names":[],"mappings":"AAkBA,MAAM,WAAW,qBAAqB;IACpC,8DAA8D;IAC9D,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,KAAW,EACX,SAAS,EACT,uBAAuB,GACxB,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"CartUpsellScreen.d.ts","sourceRoot":"","sources":["../../src/components/CartUpsellScreen.tsx"],"names":[],"mappings":"AAkBA,MAAM,WAAW,qBAAqB;IACpC,8DAA8D;IAC9D,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,MAAM,EACN,KAAW,EACX,SAAS,EACT,uBAAuB,GACxB,EAAE,qBAAqB,2CAsKvB"}
|
package/dist/index146.mjs
CHANGED
package/dist/index148.mjs
CHANGED
package/dist/index149.mjs
CHANGED
package/dist/index153.mjs
CHANGED
package/dist/index16.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useState as
|
|
2
|
+
import { jsx as t, jsxs as s, Fragment as c } from "react/jsx-runtime";
|
|
3
|
+
import { useState as r } from "react";
|
|
4
4
|
import "./index26.mjs";
|
|
5
5
|
import { useGetCartRecommendations as M } from "./index38.mjs";
|
|
6
6
|
import "@tanstack/react-query";
|
|
@@ -9,22 +9,22 @@ import { cn as m, formatCurrency as z } from "./index25.mjs";
|
|
|
9
9
|
import { Button as b } from "./index19.mjs";
|
|
10
10
|
import { Loader2 as N, Package as R, Check as S } from "lucide-react";
|
|
11
11
|
import { VariantPickerModal as T } from "./index12.mjs";
|
|
12
|
-
function
|
|
13
|
-
onSkip:
|
|
14
|
-
limit:
|
|
12
|
+
function K({
|
|
13
|
+
onSkip: w,
|
|
14
|
+
limit: y = 100,
|
|
15
15
|
className: p,
|
|
16
16
|
checkoutButtonClassName: k
|
|
17
17
|
}) {
|
|
18
|
-
const { cart:
|
|
19
|
-
f((
|
|
18
|
+
const { cart: d, addItem: C } = U(), { data: h, isLoading: A } = M(d == null ? void 0 : d.id, y), [P, f] = r([]), [I, V] = r([]), [g, o] = r(null), [j, u] = r(!1), x = h ? [...h].reverse() : [], v = async (e, a) => {
|
|
19
|
+
f((i) => [...i, e.id]);
|
|
20
20
|
try {
|
|
21
|
-
await C(e.slug, e.name, a.price, a.sku, 1), V((
|
|
21
|
+
await C(e.slug, e.name, a.price, a.sku, 1), V((i) => [...i, e.id]);
|
|
22
22
|
} finally {
|
|
23
|
-
f((
|
|
23
|
+
f((i) => i.filter((n) => n !== e.id));
|
|
24
24
|
}
|
|
25
25
|
}, F = (e) => {
|
|
26
26
|
if (e.variants.length > 1) {
|
|
27
|
-
|
|
27
|
+
o(e);
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
const a = e.variants[0];
|
|
@@ -32,54 +32,57 @@ function Q({
|
|
|
32
32
|
}, L = async (e, a) => {
|
|
33
33
|
u(!0);
|
|
34
34
|
try {
|
|
35
|
-
const
|
|
36
|
-
|
|
35
|
+
const i = x.find((l) => l.id === e.id), n = i == null ? void 0 : i.variants.find((l) => l.id === a.id);
|
|
36
|
+
i && n && await v(i, n), o(null);
|
|
37
37
|
} finally {
|
|
38
38
|
u(!1);
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
-
return A ? /* @__PURE__ */
|
|
41
|
+
return A ? /* @__PURE__ */ t("div", { className: "flex flex-1 items-center justify-center", children: /* @__PURE__ */ t(N, { className: "h-8 w-8 animate-spin text-accent-500" }) }) : /* @__PURE__ */ s(c, { children: [
|
|
42
42
|
/* @__PURE__ */ s("div", { className: m("flex flex-1 min-h-0 flex-col", p), children: [
|
|
43
43
|
/* @__PURE__ */ s("div", { className: "flex-1 min-h-0 overflow-y-auto p-4", children: [
|
|
44
44
|
/* @__PURE__ */ s("div", { className: "text-center mb-4", children: [
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
45
|
+
/* @__PURE__ */ t("h3", { className: "text-lg font-semibold text-gray-900", children: "Would you like to add something else?" }),
|
|
46
|
+
/* @__PURE__ */ t("p", { className: "text-sm text-gray-500 mt-1", children: "These go great with your order" })
|
|
47
47
|
] }),
|
|
48
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ t("div", { className: "grid grid-cols-3 gap-3", children: x.map((e) => {
|
|
49
49
|
const a = e.variants[0];
|
|
50
50
|
if (!a) return null;
|
|
51
|
-
const
|
|
51
|
+
const i = P.includes(e.id), n = I.includes(e.id);
|
|
52
52
|
return /* @__PURE__ */ s(
|
|
53
|
-
"
|
|
53
|
+
"a",
|
|
54
54
|
{
|
|
55
|
-
|
|
55
|
+
href: `/product/${e.slug}`,
|
|
56
|
+
className: "flex flex-col bg-white border border-gray-200 rounded-lg overflow-hidden hover:shadow-md transition-shadow",
|
|
56
57
|
children: [
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ t("div", { className: "relative aspect-square bg-gray-100 overflow-hidden", children: e.thumbnailUrl ? /* @__PURE__ */ t(
|
|
58
59
|
"img",
|
|
59
60
|
{
|
|
60
61
|
src: e.thumbnailUrl,
|
|
61
62
|
alt: e.name,
|
|
62
63
|
className: "absolute inset-0 w-full h-full object-cover"
|
|
63
64
|
}
|
|
64
|
-
) : /* @__PURE__ */
|
|
65
|
+
) : /* @__PURE__ */ t("div", { className: "absolute inset-0 w-full h-full flex items-center justify-center", children: /* @__PURE__ */ t(R, { className: "h-8 w-8 text-gray-300" }) }) }),
|
|
65
66
|
/* @__PURE__ */ s("div", { className: "p-2 flex flex-col flex-1", children: [
|
|
66
|
-
/* @__PURE__ */
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
/* @__PURE__ */
|
|
67
|
+
/* @__PURE__ */ t("h4", { className: "text-sm font-medium text-gray-900 line-clamp-2 leading-tight min-h-[2.5em]", children: e.name }),
|
|
68
|
+
/* @__PURE__ */ t("p", { className: "text-sm font-bold text-accent-600 mt-1", children: z(a.price) }),
|
|
69
|
+
/* @__PURE__ */ t(
|
|
69
70
|
b,
|
|
70
71
|
{
|
|
71
72
|
size: "sm",
|
|
72
|
-
onClick: () =>
|
|
73
|
-
|
|
73
|
+
onClick: (l) => {
|
|
74
|
+
l.preventDefault(), l.stopPropagation(), F(e);
|
|
75
|
+
},
|
|
76
|
+
disabled: i || n,
|
|
74
77
|
className: m(
|
|
75
78
|
"w-full text-xs h-8 mt-2",
|
|
76
79
|
n ? "bg-green-500 hover:bg-green-500 text-white !opacity-100" : "bg-accent-500 hover:bg-accent-600 text-white"
|
|
77
80
|
),
|
|
78
|
-
children:
|
|
79
|
-
/* @__PURE__ */
|
|
81
|
+
children: i ? /* @__PURE__ */ s(c, { children: [
|
|
82
|
+
/* @__PURE__ */ t(N, { className: "h-3 w-3 animate-spin" }),
|
|
80
83
|
"Adding..."
|
|
81
|
-
] }) : n ? /* @__PURE__ */ s(
|
|
82
|
-
/* @__PURE__ */
|
|
84
|
+
] }) : n ? /* @__PURE__ */ s(c, { children: [
|
|
85
|
+
/* @__PURE__ */ t(S, { className: "h-3 w-3" }),
|
|
83
86
|
"Added"
|
|
84
87
|
] }) : "Add"
|
|
85
88
|
}
|
|
@@ -91,22 +94,21 @@ function Q({
|
|
|
91
94
|
);
|
|
92
95
|
}) })
|
|
93
96
|
] }),
|
|
94
|
-
/* @__PURE__ */
|
|
97
|
+
/* @__PURE__ */ t("div", { className: "border-t border-gray-300 bg-white px-4 py-3", children: /* @__PURE__ */ t(
|
|
95
98
|
b,
|
|
96
99
|
{
|
|
97
|
-
onClick:
|
|
98
|
-
variant: "outline",
|
|
100
|
+
onClick: w,
|
|
99
101
|
className: m("w-full bg-accent-500 text-white hover:bg-accent-600", k),
|
|
100
102
|
size: "lg",
|
|
101
103
|
children: "No thanks, continue to checkout"
|
|
102
104
|
}
|
|
103
105
|
) })
|
|
104
106
|
] }),
|
|
105
|
-
/* @__PURE__ */
|
|
107
|
+
/* @__PURE__ */ t(
|
|
106
108
|
T,
|
|
107
109
|
{
|
|
108
110
|
isOpen: !!g,
|
|
109
|
-
onClose: () =>
|
|
111
|
+
onClose: () => o(null),
|
|
110
112
|
product: g,
|
|
111
113
|
onConfirm: L,
|
|
112
114
|
isLoading: j
|
|
@@ -115,5 +117,5 @@ function Q({
|
|
|
115
117
|
] });
|
|
116
118
|
}
|
|
117
119
|
export {
|
|
118
|
-
|
|
120
|
+
K as CartUpsellScreen
|
|
119
121
|
};
|
package/dist/index162.mjs
CHANGED
package/dist/index163.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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { __exports as e } from "./
|
|
3
|
-
import { __require as f } from "./
|
|
2
|
+
import { __exports as e } from "./index236.mjs";
|
|
3
|
+
import { __require as f } from "./index237.mjs";
|
|
4
4
|
import { __require as _ } from "./index116.mjs";
|
|
5
5
|
var i;
|
|
6
6
|
function R() {
|
package/dist/index172.mjs
CHANGED
package/dist/index177.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 "./index239.mjs";
|
|
3
|
+
import { __require as d } from "./index240.mjs";
|
|
4
4
|
var a;
|
|
5
5
|
function h() {
|
|
6
6
|
return a ? u : (a = 1, function(c) {
|
package/dist/index179.mjs
CHANGED
package/dist/index181.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { __exports as n } from "./
|
|
3
|
-
import { __require as d } from "./
|
|
2
|
+
import { __exports as n } from "./index242.mjs";
|
|
3
|
+
import { __require as d } from "./index243.mjs";
|
|
4
4
|
var o;
|
|
5
5
|
function p() {
|
|
6
6
|
return o ? n : (o = 1, function(i) {
|
package/dist/index182.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { __exports as A } from "./
|
|
3
|
-
import { __require as T } from "./
|
|
2
|
+
import { __exports as A } from "./index244.mjs";
|
|
3
|
+
import { __require as T } from "./index243.mjs";
|
|
4
4
|
import { __require as L } from "./index185.mjs";
|
|
5
|
-
import { __require as N } from "./
|
|
5
|
+
import { __require as N } from "./index245.mjs";
|
|
6
6
|
import { __require as U } from "./index177.mjs";
|
|
7
|
-
import { __require as j } from "./
|
|
8
|
-
import { __require as v } from "./
|
|
7
|
+
import { __require as j } from "./index246.mjs";
|
|
8
|
+
import { __require as v } from "./index247.mjs";
|
|
9
9
|
var S;
|
|
10
10
|
function W() {
|
|
11
11
|
return S ? A : (S = 1, function(R) {
|
package/dist/index185.mjs
CHANGED
package/dist/index188.mjs
CHANGED
package/dist/index191.mjs
CHANGED
package/dist/index192.mjs
CHANGED
package/dist/index196.mjs
CHANGED
package/dist/index202.mjs
CHANGED
package/dist/index213.mjs
CHANGED
package/dist/index215.mjs
CHANGED
package/dist/index216.mjs
CHANGED
package/dist/index217.mjs
CHANGED
|
@@ -1,16 +1,34 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
import p from "./index99.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
|
+
});
|
|
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("&");
|
|
13
31
|
};
|
|
14
32
|
export {
|
|
15
|
-
|
|
33
|
+
a as default
|
|
16
34
|
};
|
package/dist/index218.mjs
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import i from "./index89.mjs";
|
|
3
|
+
import m from "./index93.mjs";
|
|
4
|
+
import s from "./index103.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
|
+
}
|
|
4
12
|
export {
|
|
5
|
-
|
|
6
|
-
n as hasStandardBrowserEnv,
|
|
7
|
-
t as hasStandardBrowserWebWorkerEnv,
|
|
8
|
-
o as navigator,
|
|
9
|
-
r as origin
|
|
13
|
+
h as default
|
|
10
14
|
};
|
package/dist/index219.mjs
CHANGED
|
@@ -1,34 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
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
|
-
});
|
|
2
|
+
function e(t) {
|
|
3
|
+
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
16
4
|
}
|
|
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
|
-
};
|
|
32
5
|
export {
|
|
33
|
-
|
|
6
|
+
e as default
|
|
34
7
|
};
|
package/dist/index220.mjs
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import s from "./index103.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;
|
|
2
|
+
function n(e, c) {
|
|
3
|
+
return c ? e.replace(/\/?\/$/, "") + "/" + c.replace(/^\/+/, "") : e;
|
|
11
4
|
}
|
|
12
5
|
export {
|
|
13
|
-
|
|
6
|
+
n as default
|
|
14
7
|
};
|
package/dist/index221.mjs
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import o from "./index270.mjs";
|
|
3
|
+
import r from "./index271.mjs";
|
|
4
|
+
import t from "./index272.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"]
|
|
13
|
+
};
|
|
5
14
|
export {
|
|
6
|
-
|
|
15
|
+
l as default
|
|
7
16
|
};
|
package/dist/index222.mjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
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";
|
|
5
4
|
export {
|
|
6
|
-
|
|
5
|
+
e as hasBrowserEnv,
|
|
6
|
+
n as hasStandardBrowserEnv,
|
|
7
|
+
t as hasStandardBrowserWebWorkerEnv,
|
|
8
|
+
o as navigator,
|
|
9
|
+
r as origin
|
|
7
10
|
};
|
package/dist/index229.mjs
CHANGED
package/dist/index230.mjs
CHANGED
package/dist/index233.mjs
CHANGED
|
@@ -1,40 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
|
|
3
|
-
import { __require as l } from "./index261.mjs";
|
|
4
|
-
import { __require as d } from "./index262.mjs";
|
|
5
|
-
var t;
|
|
6
|
-
function R() {
|
|
7
|
-
return t ? n : (t = 1, function(i) {
|
|
8
|
-
Object.defineProperty(i, "__esModule", {
|
|
9
|
-
value: !0
|
|
10
|
-
});
|
|
11
|
-
function o(u, e) {
|
|
12
|
-
for (var r in e) Object.defineProperty(u, r, {
|
|
13
|
-
enumerable: !0,
|
|
14
|
-
get: e[r]
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
o(i, {
|
|
18
|
-
normalizeAppPath: function() {
|
|
19
|
-
return a;
|
|
20
|
-
},
|
|
21
|
-
normalizeRscURL: function() {
|
|
22
|
-
return p;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
const s = l(), f = d();
|
|
26
|
-
function a(u) {
|
|
27
|
-
return (0, s.ensureLeadingSlash)(u.split("/").reduce((e, r, c, _) => !r || (0, f.isGroupSegment)(r) || r[0] === "@" || (r === "page" || r === "route") && c === _.length - 1 ? e : e + "/" + r, ""));
|
|
28
|
-
}
|
|
29
|
-
function p(u) {
|
|
30
|
-
return u.replace(
|
|
31
|
-
/\.rsc($|\?)/,
|
|
32
|
-
// $1 ensures `?` is preserved
|
|
33
|
-
"$1"
|
|
34
|
-
);
|
|
35
|
-
}
|
|
36
|
-
}(n), n);
|
|
37
|
-
}
|
|
2
|
+
var e = {};
|
|
38
3
|
export {
|
|
39
|
-
|
|
4
|
+
e as __exports
|
|
40
5
|
};
|
package/dist/index234.mjs
CHANGED
package/dist/index235.mjs
CHANGED