@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.
Files changed (72) hide show
  1. package/dist/components/CartUpsellScreen.d.ts.map +1 -1
  2. package/dist/index146.mjs +1 -1
  3. package/dist/index148.mjs +1 -1
  4. package/dist/index149.mjs +2 -2
  5. package/dist/index153.mjs +2 -2
  6. package/dist/index16.mjs +38 -36
  7. package/dist/index162.mjs +1 -1
  8. package/dist/index163.mjs +1 -1
  9. package/dist/index165.mjs +1 -1
  10. package/dist/index166.mjs +1 -1
  11. package/dist/index168.mjs +1 -1
  12. package/dist/index169.mjs +1 -1
  13. package/dist/index171.mjs +2 -2
  14. package/dist/index172.mjs +1 -1
  15. package/dist/index177.mjs +2 -2
  16. package/dist/index179.mjs +1 -1
  17. package/dist/index181.mjs +2 -2
  18. package/dist/index182.mjs +5 -5
  19. package/dist/index185.mjs +1 -1
  20. package/dist/index188.mjs +1 -1
  21. package/dist/index191.mjs +1 -1
  22. package/dist/index192.mjs +1 -1
  23. package/dist/index196.mjs +1 -1
  24. package/dist/index202.mjs +1 -1
  25. package/dist/index213.mjs +2 -2
  26. package/dist/index215.mjs +1 -1
  27. package/dist/index216.mjs +1 -1
  28. package/dist/index217.mjs +30 -12
  29. package/dist/index218.mjs +11 -7
  30. package/dist/index219.mjs +3 -30
  31. package/dist/index220.mjs +3 -10
  32. package/dist/index221.mjs +13 -4
  33. package/dist/index222.mjs +7 -4
  34. package/dist/index229.mjs +2 -2
  35. package/dist/index230.mjs +2 -2
  36. package/dist/index233.mjs +2 -37
  37. package/dist/index234.mjs +2 -2
  38. package/dist/index235.mjs +2 -2
  39. package/dist/index236.mjs +2 -244
  40. package/dist/index237.mjs +108 -2
  41. package/dist/index238.mjs +2 -33
  42. package/dist/index239.mjs +2 -65
  43. package/dist/index240.mjs +31 -19
  44. package/dist/index241.mjs +2 -2
  45. package/dist/index242.mjs +2 -2
  46. package/dist/index243.mjs +244 -2
  47. package/dist/index245.mjs +33 -2
  48. package/dist/index246.mjs +65 -2
  49. package/dist/index247.mjs +25 -2
  50. package/dist/index248.mjs +2 -2
  51. package/dist/index249.mjs +2 -2
  52. package/dist/index250.mjs +2 -2
  53. package/dist/index251.mjs +2 -108
  54. package/dist/index252.mjs +2 -2
  55. package/dist/index255.mjs +2 -2
  56. package/dist/index256.mjs +2 -4
  57. package/dist/index257.mjs +4 -2
  58. package/dist/index258.mjs +2 -2
  59. package/dist/index259.mjs +2 -2
  60. package/dist/index260.mjs +2 -2
  61. package/dist/index261.mjs +2 -18
  62. package/dist/index262.mjs +13 -42
  63. package/dist/index263.mjs +47 -2
  64. package/dist/index264.mjs +2 -2
  65. package/dist/index265.mjs +2 -2
  66. package/dist/index266.mjs +2 -2
  67. package/dist/index267.mjs +2 -91
  68. package/dist/index268.mjs +91 -2
  69. package/dist/index270.mjs +1 -1
  70. package/dist/styles.css +1 -1
  71. package/package.json +1 -1
  72. 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,2CAkKvB"}
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
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import f from "./index89.mjs";
3
- import d from "./index219.mjs";
3
+ import d from "./index217.mjs";
4
4
  function l(e) {
5
5
  return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
6
6
  }
package/dist/index148.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import r from "./index220.mjs";
2
+ import r from "./index218.mjs";
3
3
  import p from "./index97.mjs";
4
4
  import l from "./index93.mjs";
5
5
  import m from "./index95.mjs";
package/dist/index149.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import r from "./index221.mjs";
3
- import f from "./index222.mjs";
2
+ import r from "./index219.mjs";
3
+ import f from "./index220.mjs";
4
4
  function u(l, i, t) {
5
5
  let o = !r(i);
6
6
  return l && (o || t == !1) ? f(l, i) : i;
package/dist/index153.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import o from "./index217.mjs";
3
- import * as t from "./index218.mjs";
2
+ import o from "./index221.mjs";
3
+ import * as t from "./index222.mjs";
4
4
  const m = {
5
5
  ...t,
6
6
  ...o
package/dist/index16.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import { jsx as i, jsxs as s, Fragment as o } from "react/jsx-runtime";
3
- import { useState as l } from "react";
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 Q({
13
- onSkip: y,
14
- limit: w = 100,
12
+ function K({
13
+ onSkip: w,
14
+ limit: y = 100,
15
15
  className: p,
16
16
  checkoutButtonClassName: k
17
17
  }) {
18
- const { cart: r, addItem: C } = U(), { data: h, isLoading: A } = M(r == null ? void 0 : r.id, w), [P, f] = l([]), [I, V] = l([]), [g, d] = l(null), [j, u] = l(!1), x = h ? [...h].reverse() : [], v = async (e, a) => {
19
- f((t) => [...t, e.id]);
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((t) => [...t, e.id]);
21
+ await C(e.slug, e.name, a.price, a.sku, 1), V((i) => [...i, e.id]);
22
22
  } finally {
23
- f((t) => t.filter((n) => n !== e.id));
23
+ f((i) => i.filter((n) => n !== e.id));
24
24
  }
25
25
  }, F = (e) => {
26
26
  if (e.variants.length > 1) {
27
- d(e);
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 t = x.find((c) => c.id === e.id), n = t == null ? void 0 : t.variants.find((c) => c.id === a.id);
36
- t && n && await v(t, n), d(null);
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__ */ i("div", { className: "flex flex-1 items-center justify-center", children: /* @__PURE__ */ i(N, { className: "h-8 w-8 animate-spin text-accent-500" }) }) : /* @__PURE__ */ s(o, { children: [
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__ */ i("h3", { className: "text-lg font-semibold text-gray-900", children: "Would you like to add something else?" }),
46
- /* @__PURE__ */ i("p", { className: "text-sm text-gray-500 mt-1", children: "These go great with your order" })
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__ */ i("div", { className: "grid grid-cols-3 gap-3", children: x.map((e) => {
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 t = P.includes(e.id), n = I.includes(e.id);
51
+ const i = P.includes(e.id), n = I.includes(e.id);
52
52
  return /* @__PURE__ */ s(
53
- "div",
53
+ "a",
54
54
  {
55
- className: "flex flex-col bg-white border border-gray-200 rounded-lg overflow-hidden",
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__ */ i("div", { className: "relative aspect-square bg-gray-100 overflow-hidden", children: e.thumbnailUrl ? /* @__PURE__ */ i(
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__ */ i("div", { className: "absolute inset-0 w-full h-full flex items-center justify-center", children: /* @__PURE__ */ i(R, { className: "h-8 w-8 text-gray-300" }) }) }),
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__ */ i("h4", { className: "text-sm font-medium text-gray-900 line-clamp-2 leading-tight min-h-[2.5em]", children: e.name }),
67
- /* @__PURE__ */ i("p", { className: "text-sm font-bold text-accent-600 mt-1", children: z(a.price) }),
68
- /* @__PURE__ */ i(
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: () => F(e),
73
- disabled: t || n,
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: t ? /* @__PURE__ */ s(o, { children: [
79
- /* @__PURE__ */ i(N, { className: "h-3 w-3 animate-spin" }),
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(o, { children: [
82
- /* @__PURE__ */ i(S, { className: "h-3 w-3" }),
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__ */ i("div", { className: "border-t border-gray-300 bg-white px-4 py-3", children: /* @__PURE__ */ i(
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: y,
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__ */ i(
107
+ /* @__PURE__ */ t(
106
108
  T,
107
109
  {
108
110
  isOpen: !!g,
109
- onClose: () => d(null),
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
- Q as CartUpsellScreen
120
+ K as CartUpsellScreen
119
121
  };
package/dist/index162.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as r } from "./index241.mjs";
2
+ import { __exports as r } from "./index229.mjs";
3
3
  var u;
4
4
  function a() {
5
5
  return u ? r : (u = 1, function(n) {
package/dist/index163.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __module as r } from "./index242.mjs";
2
+ import { __module as r } from "./index230.mjs";
3
3
  var i;
4
4
  function c() {
5
5
  return i ? r.exports : (i = 1, function(f, e) {
package/dist/index165.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as e } from "./index243.mjs";
2
+ import { __exports as e } from "./index232.mjs";
3
3
  var t;
4
4
  function o() {
5
5
  return t ? e : (t = 1, function(r) {
package/dist/index166.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as e } from "./index244.mjs";
2
+ import { __exports as e } from "./index233.mjs";
3
3
  var n;
4
4
  function a() {
5
5
  return n ? e : (n = 1, function(r) {
package/dist/index168.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as e } from "./index229.mjs";
2
+ import { __exports as e } from "./index234.mjs";
3
3
  import "./index81.mjs";
4
4
  import n from "react";
5
5
  import { __exports as o } from "./index86.mjs";
package/dist/index169.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __module as n } from "./index230.mjs";
2
+ import { __module as n } from "./index235.mjs";
3
3
  var a;
4
4
  function m() {
5
5
  return a ? n.exports : (a = 1, function(f, e) {
package/dist/index171.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import { __exports as e } from "./index250.mjs";
3
- import { __require as f } from "./index251.mjs";
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
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as e } from "./index259.mjs";
2
+ import { __exports as e } from "./index238.mjs";
3
3
  var t;
4
4
  function u() {
5
5
  return t ? e : (t = 1, function(r) {
package/dist/index177.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import { __exports as u } from "./index232.mjs";
3
- import { __require as d } from "./index233.mjs";
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
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as i } from "./index234.mjs";
2
+ import { __exports as i } from "./index241.mjs";
3
3
  var a;
4
4
  function d() {
5
5
  return a ? i : (a = 1, function(f) {
package/dist/index181.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import { __exports as n } from "./index235.mjs";
3
- import { __require as d } from "./index236.mjs";
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 "./index237.mjs";
3
- import { __require as T } from "./index236.mjs";
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 "./index238.mjs";
5
+ import { __require as N } from "./index245.mjs";
6
6
  import { __require as U } from "./index177.mjs";
7
- import { __require as j } from "./index239.mjs";
8
- import { __require as v } from "./index240.mjs";
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
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as r } from "./index245.mjs";
2
+ import { __exports as r } from "./index248.mjs";
3
3
  var n;
4
4
  function i() {
5
5
  return n ? r : (n = 1, function(t) {
package/dist/index188.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as r } from "./index246.mjs";
2
+ import { __exports as r } from "./index249.mjs";
3
3
  var u;
4
4
  function D() {
5
5
  return u ? r : (u = 1, function(t) {
package/dist/index191.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __module as t } from "./index248.mjs";
2
+ import { __module as t } from "./index250.mjs";
3
3
  import { __require as _ } from "./index109.mjs";
4
4
  import { __require as d } from "./index123.mjs";
5
5
  var u;
package/dist/index192.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as t } from "./index249.mjs";
2
+ import { __exports as t } from "./index251.mjs";
3
3
  import { __require as _ } from "./index196.mjs";
4
4
  import { __require as c } from "./index198.mjs";
5
5
  var u;
package/dist/index196.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as r } from "./index247.mjs";
2
+ import { __exports as r } from "./index252.mjs";
3
3
  import { __require as o } from "./index123.mjs";
4
4
  var i;
5
5
  function _() {
package/dist/index202.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as t } from "./index252.mjs";
2
+ import { __exports as t } from "./index255.mjs";
3
3
  import { __require as a } from "./index198.mjs";
4
4
  var n;
5
5
  function h() {
package/dist/index213.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import { __module as b } from "./index255.mjs";
3
- import S from "./index256.mjs";
2
+ import { __module as b } from "./index256.mjs";
3
+ import S from "./index257.mjs";
4
4
  var _;
5
5
  function $() {
6
6
  return _ ? b.exports : (_ = 1, (() => {
package/dist/index215.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as e } from "./index257.mjs";
2
+ import { __exports as e } from "./index258.mjs";
3
3
  /**
4
4
  * @license React
5
5
  * react-is.production.js
package/dist/index216.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as e } from "./index258.mjs";
2
+ import { __exports as e } from "./index259.mjs";
3
3
  /**
4
4
  * @license React
5
5
  * react-is.development.js
package/dist/index217.mjs CHANGED
@@ -1,16 +1,34 @@
1
1
  'use client';
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"]
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
- l as default
33
+ a as default
16
34
  };
package/dist/index218.mjs CHANGED
@@ -1,10 +1,14 @@
1
1
  'use client';
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";
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
- e as hasBrowserEnv,
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
- 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
- });
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
- a as default
6
+ e as default
34
7
  };
package/dist/index220.mjs CHANGED
@@ -1,14 +1,7 @@
1
1
  'use client';
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;
2
+ function n(e, c) {
3
+ return c ? e.replace(/\/?\/$/, "") + "/" + c.replace(/^\/+/, "") : e;
11
4
  }
12
5
  export {
13
- h as default
6
+ n as default
14
7
  };
package/dist/index221.mjs CHANGED
@@ -1,7 +1,16 @@
1
1
  'use client';
2
- function e(t) {
3
- return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
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
- e as default
15
+ l as default
7
16
  };
package/dist/index222.mjs CHANGED
@@ -1,7 +1,10 @@
1
1
  'use client';
2
- function n(e, c) {
3
- return c ? e.replace(/\/?\/$/, "") + "/" + c.replace(/^\/+/, "") : e;
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
- n as default
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
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- var e = {};
2
+ var t = {};
3
3
  export {
4
- e as __exports
4
+ t as __exports
5
5
  };
package/dist/index230.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- var r = { exports: {} };
2
+ var e = { exports: {} };
3
3
  export {
4
- r as __module
4
+ e as __module
5
5
  };
package/dist/index233.mjs CHANGED
@@ -1,40 +1,5 @@
1
1
  'use client';
2
- import { __exports as n } from "./index260.mjs";
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
- R as __require
4
+ e as __exports
40
5
  };
package/dist/index234.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- var r = {};
2
+ var e = {};
3
3
  export {
4
- r as __exports
4
+ e as __exports
5
5
  };
package/dist/index235.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- var a = {};
2
+ var r = { exports: {} };
3
3
  export {
4
- a as __exports
4
+ r as __module
5
5
  };