@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.
Files changed (60) hide show
  1. package/dist/components/AddOnsDiscountScreen.d.ts.map +1 -1
  2. package/dist/index150.mjs +1 -1
  3. package/dist/index152.mjs +1 -1
  4. package/dist/index153.mjs +2 -2
  5. package/dist/index157.mjs +2 -2
  6. package/dist/index165.mjs +1 -1
  7. package/dist/index166.mjs +1 -1
  8. package/dist/index168.mjs +1 -1
  9. package/dist/index169.mjs +1 -1
  10. package/dist/index171.mjs +1 -1
  11. package/dist/index172.mjs +1 -1
  12. package/dist/index18.mjs +81 -93
  13. package/dist/index180.mjs +2 -2
  14. package/dist/index182.mjs +1 -1
  15. package/dist/index194.mjs +1 -1
  16. package/dist/index195.mjs +1 -1
  17. package/dist/index201.mjs +1 -1
  18. package/dist/index205.mjs +1 -1
  19. package/dist/index207.mjs +1 -1
  20. package/dist/index221.mjs +12 -30
  21. package/dist/index222.mjs +7 -11
  22. package/dist/index223.mjs +30 -3
  23. package/dist/index224.mjs +10 -3
  24. package/dist/index225.mjs +4 -13
  25. package/dist/index226.mjs +4 -7
  26. package/dist/index229.mjs +2 -2
  27. package/dist/index230.mjs +2 -2
  28. package/dist/index233.mjs +2 -2
  29. package/dist/index234.mjs +2 -2
  30. package/dist/index236.mjs +2 -2
  31. package/dist/index237.mjs +2 -2
  32. package/dist/index239.mjs +2 -2
  33. package/dist/index243.mjs +2 -2
  34. package/dist/index244.mjs +2 -37
  35. package/dist/index245.mjs +37 -2
  36. package/dist/index254.mjs +2 -2
  37. package/dist/index255.mjs +2 -2
  38. package/dist/index257.mjs +2 -2
  39. package/dist/index259.mjs +2 -2
  40. package/dist/index261.mjs +2 -2
  41. package/dist/index273.mjs +2 -1
  42. package/dist/index274.mjs +2 -3
  43. package/dist/index275.mjs +2 -2
  44. package/dist/index276.mjs +17 -2
  45. package/dist/index277.mjs +11 -15
  46. package/dist/index278.mjs +6 -13
  47. package/dist/index279.mjs +30 -6
  48. package/dist/index280.mjs +2 -30
  49. package/dist/index45.mjs +2 -2
  50. package/dist/index47.mjs +2 -2
  51. package/dist/index55.mjs +1 -1
  52. package/dist/index77.mjs +20 -21
  53. package/dist/index78.mjs +21 -150
  54. package/dist/index79.mjs +153 -2
  55. package/dist/index80.mjs +2 -23
  56. package/dist/index83.mjs +1 -1
  57. package/dist/index91.mjs +1 -1
  58. package/dist/styles.css +1 -1
  59. package/package.json +1 -1
  60. 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,2CA+N3B"}
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
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import f from "./index93.mjs";
3
- import d from "./index221.mjs";
3
+ import d from "./index223.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/index152.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import r from "./index222.mjs";
2
+ import r from "./index224.mjs";
3
3
  import p from "./index101.mjs";
4
4
  import l from "./index97.mjs";
5
5
  import m from "./index99.mjs";
package/dist/index153.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import r from "./index223.mjs";
3
- import f from "./index224.mjs";
2
+ import r from "./index225.mjs";
3
+ import f from "./index226.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/index157.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import o from "./index225.mjs";
3
- import * as t from "./index226.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/index165.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as r } from "./index236.mjs";
2
+ import { __exports as r } from "./index233.mjs";
3
3
  var u;
4
4
  function a() {
5
5
  return u ? r : (u = 1, function(n) {
package/dist/index166.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __module as r } from "./index237.mjs";
2
+ import { __module as r } from "./index234.mjs";
3
3
  var i;
4
4
  function c() {
5
5
  return i ? r.exports : (i = 1, function(f, e) {
package/dist/index168.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as e } from "./index238.mjs";
2
+ import { __exports as e } from "./index236.mjs";
3
3
  var t;
4
4
  function o() {
5
5
  return t ? e : (t = 1, function(r) {
package/dist/index169.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as e } from "./index239.mjs";
2
+ import { __exports as e } from "./index237.mjs";
3
3
  var n;
4
4
  function a() {
5
5
  return n ? e : (n = 1, function(r) {
package/dist/index171.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as e } from "./index233.mjs";
2
+ import { __exports as e } from "./index238.mjs";
3
3
  import "./index87.mjs";
4
4
  import n from "react";
5
5
  import { __exports as o } from "./index92.mjs";
package/dist/index172.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __module as n } from "./index234.mjs";
2
+ import { __module as n } from "./index239.mjs";
3
3
  var a;
4
4
  function m() {
5
5
  return a ? n.exports : (a = 1, function(f, e) {
package/dist/index18.mjs CHANGED
@@ -1,131 +1,119 @@
1
1
  'use client';
2
- import { jsx as i, jsxs as l, Fragment as x } from "react/jsx-runtime";
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 G } from "./index40.mjs";
5
+ import { useGetCartUpsellAddons as z } from "./index40.mjs";
6
6
  import "@tanstack/react-query";
7
- import { useCart as L } from "./index3.mjs";
8
- import { cn as p, formatCurrency as v } from "./index27.mjs";
9
- import { FreeShippingProgress as O } from "./index49.mjs";
10
- import { Button as y } from "./index21.mjs";
11
- import { Loader2 as w, Package as S, Check as z } from "lucide-react";
12
- import { VariantPickerModal as q } from "./index13.mjs";
13
- function Z({
14
- onSkip: A,
15
- className: k,
16
- checkoutButtonClassName: C
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: P } = L(), { data: m, isLoading: I } = G(o == null ? void 0 : o.id), [j, g] = c([]), [h, F] = c([]), [r, u] = c(null), [U, b] = c(!1), N = async (e, t, s) => {
19
- g((n) => [...n, e.id]);
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 n = Math.round(t.price * (1 - s / 100));
22
- await P(e.slug, e.name, n, t.sku, 1, !0, s), F((a) => [...a, e.id]);
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
- g((n) => n.filter((a) => a !== e.id));
26
+ N((i) => i.filter((a) => a !== t.id));
25
27
  }
26
- }, V = (e, t) => {
27
- if (e.variants.length > 1) {
28
- u({ product: e, discountPercent: t });
28
+ }, L = (t, e) => {
29
+ if (t.variants.length > 1) {
30
+ g({ product: t, discountPercent: e });
29
31
  return;
30
32
  }
31
- const s = e.variants[0];
32
- s && N(e, s, t);
33
- }, M = async (e, t) => {
33
+ const n = t.variants[0];
34
+ n && v(t, n, e);
35
+ }, O = async (t, e) => {
34
36
  if (r) {
35
- b(!0);
37
+ y(!0);
36
38
  try {
37
- let s = null, n = null;
38
- for (const a of m || []) {
39
- const d = a.addons.find((f) => f.id === e.id);
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
- s = d, n = d.variants.find((f) => f.id === t.id);
43
+ n = d, i = d.variants.find((p) => p.id === e.id);
42
44
  break;
43
45
  }
44
46
  }
45
- s && n && await N(s, n, r.discountPercent), u(null);
47
+ n && i && await v(n, i, r.discountPercent), g(null);
46
48
  } finally {
47
- b(!1);
49
+ y(!1);
48
50
  }
49
51
  }
50
52
  };
51
- if (I)
52
- return /* @__PURE__ */ i("div", { className: "flex flex-1 items-center justify-center", children: /* @__PURE__ */ i(w, { className: "h-8 w-8 animate-spin text-accent-500" }) });
53
- const T = [];
54
- for (const e of m || [])
55
- for (const t of e.addons)
56
- h.includes(t.id) || T.push({
57
- product: e,
58
- addon: t,
59
- parentName: e.productName,
60
- parentThumbnail: e.productThumbnailUrl
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: p("flex flex-1 min-h-0 flex-col", k), children: [
64
- /* @__PURE__ */ i(O, {}),
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__ */ i("h3", { className: "text-lg font-semibold text-gray-900", children: "Exclusive deals for you" }),
68
- /* @__PURE__ */ i("p", { className: "text-sm text-gray-500 mt-1", children: "Get these items at a special discount before checkout" })
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__ */ i("div", { className: "space-y-6", children: (m || []).map((e) => /* @__PURE__ */ l("div", { children: [
71
- /* @__PURE__ */ l("div", { className: "flex items-center gap-2 mb-3", children: [
72
- e.productThumbnailUrl && /* @__PURE__ */ i(
73
- "img",
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-shrink-0 w-36 flex flex-col bg-white border border-gray-200 rounded-lg overflow-hidden",
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
- t.thumbnailUrl ? /* @__PURE__ */ i(
83
+ e.thumbnailUrl ? /* @__PURE__ */ s(
96
84
  "img",
97
85
  {
98
- src: t.thumbnailUrl,
99
- alt: t.name,
86
+ src: e.thumbnailUrl,
87
+ alt: e.name,
100
88
  className: "absolute inset-0 w-full h-full object-cover"
101
89
  }
102
- ) : /* @__PURE__ */ i("div", { className: "absolute inset-0 w-full h-full flex items-center justify-center", children: /* @__PURE__ */ i(S, { className: "h-8 w-8 text-gray-300" }) }),
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
- t.discountPercent,
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__ */ i("h4", { className: "text-xs font-medium text-gray-900 line-clamp-2 leading-tight min-h-[2.5em]", children: t.name }),
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__ */ i("span", { className: "text-xs text-gray-400 line-through mr-1", children: v(s.price) }),
112
- /* @__PURE__ */ i("span", { className: "text-sm font-bold text-red-600", children: v(d) })
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__ */ i(
115
- y,
102
+ /* @__PURE__ */ s(
103
+ A,
116
104
  {
117
105
  size: "sm",
118
- onClick: () => V(t, t.discountPercent),
119
- disabled: n || a,
120
- className: p(
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: n ? /* @__PURE__ */ l(x, { children: [
125
- /* @__PURE__ */ i(w, { className: "h-3 w-3 animate-spin" }),
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__ */ i(z, { className: "h-3 w-3" }),
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
- t.id
124
+ e.id
137
125
  );
138
- }) })
139
- ] }, e.productId)) })
126
+ })
127
+ ) })
140
128
  ] }),
141
- /* @__PURE__ */ i("div", { className: "border-t border-gray-300 bg-white px-4 py-3", children: /* @__PURE__ */ i(
142
- y,
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: A,
145
- className: p("w-full bg-accent-500 text-white hover:bg-accent-600", C),
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__ */ i(
152
- q,
139
+ /* @__PURE__ */ s(
140
+ D,
153
141
  {
154
142
  isOpen: !!r,
155
- onClose: () => u(null),
143
+ onClose: () => g(null),
156
144
  product: (r == null ? void 0 : r.product) || null,
157
- onConfirm: M,
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
- Z as AddOnsDiscountScreen
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 "./index243.mjs";
3
- import { __require as d } from "./index244.mjs";
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
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as i } from "./index245.mjs";
2
+ import { __exports as i } from "./index243.mjs";
3
3
  var a;
4
4
  function d() {
5
5
  return a ? i : (a = 1, function(f) {
package/dist/index194.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __module as t } from "./index255.mjs";
2
+ import { __module as t } from "./index254.mjs";
3
3
  import { __require as _ } from "./index113.mjs";
4
4
  import { __require as d } from "./index127.mjs";
5
5
  var u;
package/dist/index195.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as t } from "./index257.mjs";
2
+ import { __exports as t } from "./index255.mjs";
3
3
  import { __require as _ } from "./index199.mjs";
4
4
  import { __require as c } from "./index201.mjs";
5
5
  var u;
package/dist/index201.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as e } from "./index254.mjs";
2
+ import { __exports as e } from "./index258.mjs";
3
3
  import { __require as f } from "./index127.mjs";
4
4
  var n;
5
5
  function p() {
package/dist/index205.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as t } from "./index259.mjs";
2
+ import { __exports as t } from "./index257.mjs";
3
3
  import { __require as a } from "./index201.mjs";
4
4
  var n;
5
5
  function h() {
package/dist/index207.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- import { __exports as r } from "./index258.mjs";
2
+ import { __exports as r } from "./index259.mjs";
3
3
  import { __require as s } from "./index127.mjs";
4
4
  var a;
5
5
  function _() {
package/dist/index221.mjs CHANGED
@@ -1,34 +1,16 @@
1
1
  'use client';
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
- });
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
- a as default
15
+ l as default
34
16
  };
package/dist/index222.mjs CHANGED
@@ -1,14 +1,10 @@
1
1
  'use client';
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;
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
- h as default
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
- function e(t) {
3
- return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
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
- e as default
33
+ a as default
7
34
  };
package/dist/index224.mjs CHANGED
@@ -1,7 +1,14 @@
1
1
  'use client';
2
- function n(e, c) {
3
- return c ? e.replace(/\/?\/$/, "") + "/" + c.replace(/^\/+/, "") : e;
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
- n as default
13
+ h as default
7
14
  };
package/dist/index225.mjs CHANGED
@@ -1,16 +1,7 @@
1
1
  'use client';
2
- import o from "./index274.mjs";
3
- import r from "./index275.mjs";
4
- import t from "./index276.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
- };
2
+ function e(t) {
3
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
4
+ }
14
5
  export {
15
- l as default
6
+ e as default
16
7
  };
package/dist/index226.mjs CHANGED
@@ -1,10 +1,7 @@
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
+ function n(e, c) {
3
+ return c ? e.replace(/\/?\/$/, "") + "/" + c.replace(/^\/+/, "") : e;
4
+ }
4
5
  export {
5
- e as hasBrowserEnv,
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
@@ -1,6 +1,6 @@
1
1
  'use client';
2
- import i from "./index277.mjs";
3
- import m from "./index278.mjs";
2
+ import i from "./index276.mjs";
3
+ import m from "./index277.mjs";
4
4
  import f from "./index93.mjs";
5
5
  const h = (t, o, a = 3) => {
6
6
  let r = 0;
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 "./index279.mjs";
5
- import h from "./index280.mjs";
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
@@ -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/index234.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/index236.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- var t = {};
2
+ var e = {};
3
3
  export {
4
- t as __exports
4
+ e as __exports
5
5
  };
package/dist/index237.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- var e = { exports: {} };
2
+ var e = {};
3
3
  export {
4
- e as __module
4
+ e as __exports
5
5
  };
package/dist/index239.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  'use client';
2
- var e = {};
2
+ var r = { exports: {} };
3
3
  export {
4
- e as __exports
4
+ r as __module
5
5
  };