@haus-storefront-react/vendure-plugin-configs 0.0.7 → 0.0.8
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/CHANGELOG.md +7 -0
- package/badge.js +47 -1
- package/badge.mjs +3325 -14
- package/browser-ponyfill-ByZyuJ42.js +2 -0
- package/browser-ponyfill-DYgay_ta.mjs +341 -0
- package/campaign.js +1 -42
- package/campaign.mjs +13 -376
- package/index-BKGQQxdW.js +42 -0
- package/index-CATkY-bf.js +27 -0
- package/index-DZ5mwdPZ.mjs +446 -0
- package/{index-RBMJ45wv.mjs → index-Wcc0o6jA.mjs} +439 -433
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/lib/components/product-badges.d.ts +49 -0
- package/lib/exports/badge.d.ts +1 -0
- package/package.json +4 -3
- package/packagesize.js +1 -1
- package/packagesize.mjs +1 -1
- package/product-popularity.js +1 -1
- package/product-popularity.mjs +1 -1
- package/index-CzxpJe9c.js +0 -27
package/campaign.mjs
CHANGED
|
@@ -1,387 +1,24 @@
|
|
|
1
|
-
import { V as
|
|
2
|
-
import g from "
|
|
3
|
-
|
|
4
|
-
var b = { exports: {} }, v = {};
|
|
5
|
-
/**
|
|
6
|
-
* @license React
|
|
7
|
-
* react-jsx-runtime.production.js
|
|
8
|
-
*
|
|
9
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
10
|
-
*
|
|
11
|
-
* This source code is licensed under the MIT license found in the
|
|
12
|
-
* LICENSE file in the root directory of this source tree.
|
|
13
|
-
*/
|
|
14
|
-
var L;
|
|
15
|
-
function le() {
|
|
16
|
-
if (L) return v;
|
|
17
|
-
L = 1;
|
|
18
|
-
var t = Symbol.for("react.transitional.element"), o = Symbol.for("react.fragment");
|
|
19
|
-
function n(i, u, l) {
|
|
20
|
-
var R = null;
|
|
21
|
-
if (l !== void 0 && (R = "" + l), u.key !== void 0 && (R = "" + u.key), "key" in u) {
|
|
22
|
-
l = {};
|
|
23
|
-
for (var p in u)
|
|
24
|
-
p !== "key" && (l[p] = u[p]);
|
|
25
|
-
} else l = u;
|
|
26
|
-
return u = l.ref, {
|
|
27
|
-
$$typeof: t,
|
|
28
|
-
type: i,
|
|
29
|
-
key: R,
|
|
30
|
-
ref: u !== void 0 ? u : null,
|
|
31
|
-
props: l
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
return v.Fragment = o, v.jsx = n, v.jsxs = n, v;
|
|
35
|
-
}
|
|
36
|
-
var _ = {};
|
|
37
|
-
/**
|
|
38
|
-
* @license React
|
|
39
|
-
* react-jsx-runtime.development.js
|
|
40
|
-
*
|
|
41
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
42
|
-
*
|
|
43
|
-
* This source code is licensed under the MIT license found in the
|
|
44
|
-
* LICENSE file in the root directory of this source tree.
|
|
45
|
-
*/
|
|
46
|
-
var $;
|
|
47
|
-
function fe() {
|
|
48
|
-
return $ || ($ = 1, process.env.NODE_ENV !== "production" && function() {
|
|
49
|
-
function t(e) {
|
|
50
|
-
if (e == null) return null;
|
|
51
|
-
if (typeof e == "function")
|
|
52
|
-
return e.$$typeof === ae ? null : e.displayName || e.name || null;
|
|
53
|
-
if (typeof e == "string") return e;
|
|
54
|
-
switch (e) {
|
|
55
|
-
case h:
|
|
56
|
-
return "Fragment";
|
|
57
|
-
case Q:
|
|
58
|
-
return "Profiler";
|
|
59
|
-
case B:
|
|
60
|
-
return "StrictMode";
|
|
61
|
-
case re:
|
|
62
|
-
return "Suspense";
|
|
63
|
-
case te:
|
|
64
|
-
return "SuspenseList";
|
|
65
|
-
case oe:
|
|
66
|
-
return "Activity";
|
|
67
|
-
}
|
|
68
|
-
if (typeof e == "object")
|
|
69
|
-
switch (typeof e.tag == "number" && console.error(
|
|
70
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
71
|
-
), e.$$typeof) {
|
|
72
|
-
case X:
|
|
73
|
-
return "Portal";
|
|
74
|
-
case K:
|
|
75
|
-
return (e.displayName || "Context") + ".Provider";
|
|
76
|
-
case Z:
|
|
77
|
-
return (e._context.displayName || "Context") + ".Consumer";
|
|
78
|
-
case ee:
|
|
79
|
-
var r = e.render;
|
|
80
|
-
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
81
|
-
case ne:
|
|
82
|
-
return r = e.displayName || null, r !== null ? r : t(e.type) || "Memo";
|
|
83
|
-
case I:
|
|
84
|
-
r = e._payload, e = e._init;
|
|
85
|
-
try {
|
|
86
|
-
return t(e(r));
|
|
87
|
-
} catch {
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
return null;
|
|
91
|
-
}
|
|
92
|
-
function o(e) {
|
|
93
|
-
return "" + e;
|
|
94
|
-
}
|
|
95
|
-
function n(e) {
|
|
96
|
-
try {
|
|
97
|
-
o(e);
|
|
98
|
-
var r = !1;
|
|
99
|
-
} catch {
|
|
100
|
-
r = !0;
|
|
101
|
-
}
|
|
102
|
-
if (r) {
|
|
103
|
-
r = console;
|
|
104
|
-
var a = r.error, s = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
105
|
-
return a.call(
|
|
106
|
-
r,
|
|
107
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
108
|
-
s
|
|
109
|
-
), o(e);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
function i(e) {
|
|
113
|
-
if (e === h) return "<>";
|
|
114
|
-
if (typeof e == "object" && e !== null && e.$$typeof === I)
|
|
115
|
-
return "<...>";
|
|
116
|
-
try {
|
|
117
|
-
var r = t(e);
|
|
118
|
-
return r ? "<" + r + ">" : "<...>";
|
|
119
|
-
} catch {
|
|
120
|
-
return "<...>";
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
function u() {
|
|
124
|
-
var e = O.A;
|
|
125
|
-
return e === null ? null : e.getOwner();
|
|
126
|
-
}
|
|
127
|
-
function l() {
|
|
128
|
-
return Error("react-stack-top-frame");
|
|
129
|
-
}
|
|
130
|
-
function R(e) {
|
|
131
|
-
if (Y.call(e, "key")) {
|
|
132
|
-
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
133
|
-
if (r && r.isReactWarning) return !1;
|
|
134
|
-
}
|
|
135
|
-
return e.key !== void 0;
|
|
136
|
-
}
|
|
137
|
-
function p(e, r) {
|
|
138
|
-
function a() {
|
|
139
|
-
D || (D = !0, console.error(
|
|
140
|
-
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
141
|
-
r
|
|
142
|
-
));
|
|
143
|
-
}
|
|
144
|
-
a.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
145
|
-
get: a,
|
|
146
|
-
configurable: !0
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
function J() {
|
|
150
|
-
var e = t(this.type);
|
|
151
|
-
return U[e] || (U[e] = !0, console.error(
|
|
152
|
-
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
153
|
-
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
154
|
-
}
|
|
155
|
-
function z(e, r, a, s, d, f, S, k) {
|
|
156
|
-
return a = f.ref, e = {
|
|
157
|
-
$$typeof: j,
|
|
158
|
-
type: e,
|
|
159
|
-
key: r,
|
|
160
|
-
props: f,
|
|
161
|
-
_owner: d
|
|
162
|
-
}, (a !== void 0 ? a : null) !== null ? Object.defineProperty(e, "ref", {
|
|
163
|
-
enumerable: !1,
|
|
164
|
-
get: J
|
|
165
|
-
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
166
|
-
configurable: !1,
|
|
167
|
-
enumerable: !1,
|
|
168
|
-
writable: !0,
|
|
169
|
-
value: 0
|
|
170
|
-
}), Object.defineProperty(e, "_debugInfo", {
|
|
171
|
-
configurable: !1,
|
|
172
|
-
enumerable: !1,
|
|
173
|
-
writable: !0,
|
|
174
|
-
value: null
|
|
175
|
-
}), Object.defineProperty(e, "_debugStack", {
|
|
176
|
-
configurable: !1,
|
|
177
|
-
enumerable: !1,
|
|
178
|
-
writable: !0,
|
|
179
|
-
value: S
|
|
180
|
-
}), Object.defineProperty(e, "_debugTask", {
|
|
181
|
-
configurable: !1,
|
|
182
|
-
enumerable: !1,
|
|
183
|
-
writable: !0,
|
|
184
|
-
value: k
|
|
185
|
-
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
186
|
-
}
|
|
187
|
-
function w(e, r, a, s, d, f, S, k) {
|
|
188
|
-
var c = r.children;
|
|
189
|
-
if (c !== void 0)
|
|
190
|
-
if (s)
|
|
191
|
-
if (ie(c)) {
|
|
192
|
-
for (s = 0; s < c.length; s++)
|
|
193
|
-
C(c[s]);
|
|
194
|
-
Object.freeze && Object.freeze(c);
|
|
195
|
-
} else
|
|
196
|
-
console.error(
|
|
197
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
198
|
-
);
|
|
199
|
-
else C(c);
|
|
200
|
-
if (Y.call(r, "key")) {
|
|
201
|
-
c = t(e);
|
|
202
|
-
var m = Object.keys(r).filter(function(ue) {
|
|
203
|
-
return ue !== "key";
|
|
204
|
-
});
|
|
205
|
-
s = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", q[c + s] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
206
|
-
`A props object containing a "key" prop is being spread into JSX:
|
|
207
|
-
let props = %s;
|
|
208
|
-
<%s {...props} />
|
|
209
|
-
React keys must be passed directly to JSX without using spread:
|
|
210
|
-
let props = %s;
|
|
211
|
-
<%s key={someKey} {...props} />`,
|
|
212
|
-
s,
|
|
213
|
-
c,
|
|
214
|
-
m,
|
|
215
|
-
c
|
|
216
|
-
), q[c + s] = !0);
|
|
217
|
-
}
|
|
218
|
-
if (c = null, a !== void 0 && (n(a), c = "" + a), R(r) && (n(r.key), c = "" + r.key), "key" in r) {
|
|
219
|
-
a = {};
|
|
220
|
-
for (var x in r)
|
|
221
|
-
x !== "key" && (a[x] = r[x]);
|
|
222
|
-
} else a = r;
|
|
223
|
-
return c && p(
|
|
224
|
-
a,
|
|
225
|
-
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
226
|
-
), z(
|
|
227
|
-
e,
|
|
228
|
-
c,
|
|
229
|
-
f,
|
|
230
|
-
d,
|
|
231
|
-
u(),
|
|
232
|
-
a,
|
|
233
|
-
S,
|
|
234
|
-
k
|
|
235
|
-
);
|
|
236
|
-
}
|
|
237
|
-
function C(e) {
|
|
238
|
-
typeof e == "object" && e !== null && e.$$typeof === j && e._store && (e._store.validated = 1);
|
|
239
|
-
}
|
|
240
|
-
var E = g, j = Symbol.for("react.transitional.element"), X = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), B = Symbol.for("react.strict_mode"), Q = Symbol.for("react.profiler"), Z = Symbol.for("react.consumer"), K = Symbol.for("react.context"), ee = Symbol.for("react.forward_ref"), re = Symbol.for("react.suspense"), te = Symbol.for("react.suspense_list"), ne = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), oe = Symbol.for("react.activity"), ae = Symbol.for("react.client.reference"), O = E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Y = Object.prototype.hasOwnProperty, ie = Array.isArray, y = console.createTask ? console.createTask : function() {
|
|
241
|
-
return null;
|
|
242
|
-
};
|
|
243
|
-
E = {
|
|
244
|
-
"react-stack-bottom-frame": function(e) {
|
|
245
|
-
return e();
|
|
246
|
-
}
|
|
247
|
-
};
|
|
248
|
-
var D, U = {}, F = E["react-stack-bottom-frame"].bind(
|
|
249
|
-
E,
|
|
250
|
-
l
|
|
251
|
-
)(), M = y(i(l)), q = {};
|
|
252
|
-
_.Fragment = h, _.jsx = function(e, r, a, s, d) {
|
|
253
|
-
var f = 1e4 > O.recentlyCreatedOwnerStacks++;
|
|
254
|
-
return w(
|
|
255
|
-
e,
|
|
256
|
-
r,
|
|
257
|
-
a,
|
|
258
|
-
!1,
|
|
259
|
-
s,
|
|
260
|
-
d,
|
|
261
|
-
f ? Error("react-stack-top-frame") : F,
|
|
262
|
-
f ? y(i(e)) : M
|
|
263
|
-
);
|
|
264
|
-
}, _.jsxs = function(e, r, a, s, d) {
|
|
265
|
-
var f = 1e4 > O.recentlyCreatedOwnerStacks++;
|
|
266
|
-
return w(
|
|
267
|
-
e,
|
|
268
|
-
r,
|
|
269
|
-
a,
|
|
270
|
-
!0,
|
|
271
|
-
s,
|
|
272
|
-
d,
|
|
273
|
-
f ? Error("react-stack-top-frame") : F,
|
|
274
|
-
f ? y(i(e)) : M
|
|
275
|
-
);
|
|
276
|
-
};
|
|
277
|
-
}()), _;
|
|
278
|
-
}
|
|
279
|
-
var W;
|
|
280
|
-
function de() {
|
|
281
|
-
return W || (W = 1, process.env.NODE_ENV === "production" ? b.exports = le() : b.exports = fe()), b.exports;
|
|
282
|
-
}
|
|
283
|
-
var me = de(), P = { exports: {} }, N = {};
|
|
284
|
-
/**
|
|
285
|
-
* @license React
|
|
286
|
-
* react-compiler-runtime.production.js
|
|
287
|
-
*
|
|
288
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
289
|
-
*
|
|
290
|
-
* This source code is licensed under the MIT license found in the
|
|
291
|
-
* LICENSE file in the root directory of this source tree.
|
|
292
|
-
*/
|
|
293
|
-
var V;
|
|
294
|
-
function Re() {
|
|
295
|
-
if (V) return N;
|
|
296
|
-
V = 1;
|
|
297
|
-
var t = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
298
|
-
return N.c = function(o) {
|
|
299
|
-
return t.H.useMemoCache(o);
|
|
300
|
-
}, N;
|
|
301
|
-
}
|
|
302
|
-
var A = {};
|
|
303
|
-
/**
|
|
304
|
-
* @license React
|
|
305
|
-
* react-compiler-runtime.development.js
|
|
306
|
-
*
|
|
307
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
308
|
-
*
|
|
309
|
-
* This source code is licensed under the MIT license found in the
|
|
310
|
-
* LICENSE file in the root directory of this source tree.
|
|
311
|
-
*/
|
|
312
|
-
var G;
|
|
313
|
-
function pe() {
|
|
314
|
-
return G || (G = 1, process.env.NODE_ENV !== "production" && function() {
|
|
315
|
-
var t = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
316
|
-
A.c = function(o) {
|
|
317
|
-
var n = t.H;
|
|
318
|
-
return n === null && console.error(
|
|
319
|
-
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
320
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
321
|
-
2. You might be breaking the Rules of Hooks
|
|
322
|
-
3. You might have more than one copy of React in the same app
|
|
323
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
324
|
-
), n.useMemoCache(o);
|
|
325
|
-
};
|
|
326
|
-
}()), A;
|
|
327
|
-
}
|
|
328
|
-
var H;
|
|
329
|
-
function ve() {
|
|
330
|
-
return H || (H = 1, process.env.NODE_ENV === "production" ? P.exports = Re() : P.exports = pe()), P.exports;
|
|
331
|
-
}
|
|
332
|
-
var _e = ve();
|
|
333
|
-
function Ee(t) {
|
|
334
|
-
const {
|
|
335
|
-
src: o,
|
|
336
|
-
alt: n,
|
|
337
|
-
...i
|
|
338
|
-
} = t;
|
|
339
|
-
return o ? {
|
|
340
|
-
...i,
|
|
341
|
-
source: {
|
|
342
|
-
uri: o
|
|
343
|
-
}
|
|
344
|
-
} : i;
|
|
345
|
-
}
|
|
346
|
-
const be = g.forwardRef((t, o) => {
|
|
347
|
-
const n = _e.c(5);
|
|
348
|
-
if (!t.src)
|
|
349
|
-
return null;
|
|
350
|
-
let i;
|
|
351
|
-
n[0] !== t ? (i = Ee(t), n[0] = t, n[1] = i) : i = n[1];
|
|
352
|
-
let u;
|
|
353
|
-
return n[2] !== o || n[3] !== i ? (u = /* @__PURE__ */ me.jsx(ce, { ref: o, ...i }), n[2] = o, n[3] = i, n[4] = u) : u = n[4], u;
|
|
354
|
-
});
|
|
355
|
-
be.displayName = "PlatformPrimitiveImage";
|
|
356
|
-
const T = (t) => t == null ? 0 : typeof t == "number" ? t : "value" in t ? t.value : "min" in t ? t.min : 0, Pe = (t) => {
|
|
357
|
-
const o = t.map((u) => T(u.price)), n = Math.min(...o), i = Math.max(...o);
|
|
358
|
-
return n === void 0 || i === void 0 ? {
|
|
359
|
-
value: 0
|
|
360
|
-
} : n === i ? {
|
|
361
|
-
value: n
|
|
362
|
-
} : {
|
|
363
|
-
min: n,
|
|
364
|
-
max: i
|
|
365
|
-
};
|
|
366
|
-
}, Te = new se({
|
|
1
|
+
import { V as d } from "./index-Wcc0o6jA.mjs";
|
|
2
|
+
import { g as e, a as o } from "./index-DZ5mwdPZ.mjs";
|
|
3
|
+
const s = new d({
|
|
367
4
|
name: "campaign",
|
|
368
5
|
enableFeatures: {
|
|
369
6
|
ordinaryPrice: ({
|
|
370
|
-
variant:
|
|
371
|
-
orderLine:
|
|
372
|
-
searchResult:
|
|
373
|
-
product:
|
|
7
|
+
variant: i,
|
|
8
|
+
orderLine: r,
|
|
9
|
+
searchResult: a,
|
|
10
|
+
product: n
|
|
374
11
|
}) => {
|
|
375
|
-
if (
|
|
376
|
-
const
|
|
377
|
-
return
|
|
12
|
+
if (r) {
|
|
13
|
+
const t = r.productVariant;
|
|
14
|
+
return t?.ordinaryPrice ? e(t?.ordinaryPrice) * r.quantity : r.discountedLinePriceWithTax;
|
|
378
15
|
}
|
|
379
|
-
return
|
|
16
|
+
return i ? e(i.ordinaryPrice || 0) : a ? e(a.ordinaryPrice || 0) : n ? o(n.variants) : 0;
|
|
380
17
|
}
|
|
381
18
|
},
|
|
382
19
|
queryUpdates: {}
|
|
383
20
|
});
|
|
384
|
-
|
|
21
|
+
s.setQueryUpdates({
|
|
385
22
|
search: {
|
|
386
23
|
fields: [{
|
|
387
24
|
items: [{
|
|
@@ -463,5 +100,5 @@ Te.setQueryUpdates({
|
|
|
463
100
|
}
|
|
464
101
|
});
|
|
465
102
|
export {
|
|
466
|
-
|
|
103
|
+
s as VendureCampaignPlugin
|
|
467
104
|
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";require("./index-CATkY-bf.js");const g=require("react"),p=require("react-native");var h={exports:{}},E={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var U;function me(){if(U)return E;U=1;var r=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function n(a,s,l){var R=null;if(l!==void 0&&(R=""+l),s.key!==void 0&&(R=""+s.key),"key"in s){l={};for(var f in s)f!=="key"&&(l[f]=s[f])}else l=s;return s=l.ref,{$$typeof:r,type:a,key:R,ref:s!==void 0?s:null,props:l}}return E.Fragment=o,E.jsx=n,E.jsxs=n,E}var T={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var L;function de(){return L||(L=1,process.env.NODE_ENV!=="production"&&function(){function r(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case re:return"Profiler";case ee:return"StrictMode";case ae:return"Suspense";case ie:return"SuspenseList";case ue:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case K:return"Portal";case ne:return(e.displayName||"Context")+".Provider";case te:return(e._context.displayName||"Context")+".Consumer";case oe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case se:return t=e.displayName||null,t!==null?t:r(e.type)||"Memo";case Y:t=e._payload,e=e._init;try{return r(e(t))}catch{}}return null}function o(e){return""+e}function n(e){try{o(e);var t=!1}catch{t=!0}if(t){t=console;var i=t.error,u=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return i.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",u),o(e)}}function a(e){if(e===w)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===Y)return"<...>";try{var t=r(e);return t?"<"+t+">":"<...>"}catch{return"<...>"}}function s(){var e=P.A;return e===null?null:e.getOwner()}function l(){return Error("react-stack-top-frame")}function R(e){if(V.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function f(e,t){function i(){D||(D=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}i.isReactWarning=!0,Object.defineProperty(e,"key",{get:i,configurable:!0})}function v(){var e=r(this.type);return F[e]||(F[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function Q(e,t,i,u,d,m,O,N){return i=m.ref,e={$$typeof:I,type:e,key:t,props:m,_owner:d},(i!==void 0?i:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:v}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:O}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:N}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function C(e,t,i,u,d,m,O,N){var c=t.children;if(c!==void 0)if(u)if(le(c)){for(u=0;u<c.length;u++)j(c[u]);Object.freeze&&Object.freeze(c)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else j(c);if(V.call(t,"key")){c=r(e);var _=Object.keys(t).filter(function(fe){return fe!=="key"});u=0<_.length?"{key: someKey, "+_.join(": ..., ")+": ...}":"{key: someKey}",q[c+u]||(_=0<_.length?"{"+_.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
|
+
let props = %s;
|
|
19
|
+
<%s {...props} />
|
|
20
|
+
React keys must be passed directly to JSX without using spread:
|
|
21
|
+
let props = %s;
|
|
22
|
+
<%s key={someKey} {...props} />`,u,c,_,c),q[c+u]=!0)}if(c=null,i!==void 0&&(n(i),c=""+i),R(t)&&(n(t.key),c=""+t.key),"key"in t){i={};for(var S in t)S!=="key"&&(i[S]=t[S])}else i=t;return c&&f(i,typeof e=="function"?e.displayName||e.name||"Unknown":e),Q(e,c,m,d,s(),i,O,N)}function j(e){typeof e=="object"&&e!==null&&e.$$typeof===I&&e._store&&(e._store.validated=1)}var b=g,I=Symbol.for("react.transitional.element"),K=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),ee=Symbol.for("react.strict_mode"),re=Symbol.for("react.profiler"),te=Symbol.for("react.consumer"),ne=Symbol.for("react.context"),oe=Symbol.for("react.forward_ref"),ae=Symbol.for("react.suspense"),ie=Symbol.for("react.suspense_list"),se=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),ue=Symbol.for("react.activity"),ce=Symbol.for("react.client.reference"),P=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=Object.prototype.hasOwnProperty,le=Array.isArray,k=console.createTask?console.createTask:function(){return null};b={"react-stack-bottom-frame":function(e){return e()}};var D,F={},M=b["react-stack-bottom-frame"].bind(b,l)(),$=k(a(l)),q={};T.Fragment=w,T.jsx=function(e,t,i,u,d){var m=1e4>P.recentlyCreatedOwnerStacks++;return C(e,t,i,!1,u,d,m?Error("react-stack-top-frame"):M,m?k(a(e)):$)},T.jsxs=function(e,t,i,u,d){var m=1e4>P.recentlyCreatedOwnerStacks++;return C(e,t,i,!0,u,d,m?Error("react-stack-top-frame"):M,m?k(a(e)):$)}}()),T}var W;function pe(){return W||(W=1,process.env.NODE_ENV==="production"?h.exports=me():h.exports=de()),h.exports}var z=pe(),x={exports:{}},A={};/**
|
|
23
|
+
* @license React
|
|
24
|
+
* react-compiler-runtime.production.js
|
|
25
|
+
*
|
|
26
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
27
|
+
*
|
|
28
|
+
* This source code is licensed under the MIT license found in the
|
|
29
|
+
* LICENSE file in the root directory of this source tree.
|
|
30
|
+
*/var G;function Re(){if(G)return A;G=1;var r=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;return A.c=function(o){return r.H.useMemoCache(o)},A}var y={};/**
|
|
31
|
+
* @license React
|
|
32
|
+
* react-compiler-runtime.development.js
|
|
33
|
+
*
|
|
34
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
35
|
+
*
|
|
36
|
+
* This source code is licensed under the MIT license found in the
|
|
37
|
+
* LICENSE file in the root directory of this source tree.
|
|
38
|
+
*/var H;function ve(){return H||(H=1,process.env.NODE_ENV!=="production"&&function(){var r=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;y.c=function(o){var n=r.H;return n===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
39
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
40
|
+
2. You might be breaking the Rules of Hooks
|
|
41
|
+
3. You might have more than one copy of React in the same app
|
|
42
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),n.useMemoCache(o)}}()),y}var J;function _e(){return J||(J=1,process.env.NODE_ENV==="production"?x.exports=Re():x.exports=ve()),x.exports}var X=_e();function Ee(r,o){if(o==="web")return r;const{src:n,alt:a,width:s,height:l,...R}=r,f=[typeof s=="number"?{width:s}:void 0,typeof l=="number"?{height:l}:void 0].filter(Boolean);let v;return f.length===1?v=f[0]:f.length>1&&(v=f),{...R,source:{uri:n},...v?{style:v}:{}}}function Te(r){const{src:o,alt:n,...a}=r;return o?{...a,source:{uri:o}}:a}const be={View:p.View,TextInput:p.TextInput,Pressable:p.Pressable,Text:p.Text,Image:p.Image},he={div:"View",span:"Text",p:"Text",h1:"Text",h2:"Text",h3:"Text",h4:"Text",h5:"Text",h6:"Text",button:"Pressable",input:"TextInput",form:"View",section:"View",article:"View",nav:"View",header:"View",footer:"View",main:"View",aside:"View",ul:"View",ol:"View",li:"View",a:"Pressable",img:"Image",label:"Text",textarea:"TextInput",select:"Pressable",option:"Text"},B=g.forwardRef((r,o)=>{const n=X.c(5);if(!r.src)return null;let a;n[0]!==r?(a=Te(r),n[0]=r,n[1]=a):a=n[1];let s;return n[2]!==o||n[3]!==a?(s=z.jsx(p.Image,{ref:o,...a}),n[2]=o,n[3]=a,n[4]=s):s=n[4],s});B.displayName="PlatformPrimitiveImage";function xe(r,o){if(o==="web")return r;const n=he[r];if(!n)return console.warn(`No native component mapping found for '${r}', falling back to View`),p.View;const a=be[n];return a?n==="Image"?B:a:(console.warn(`Native component '${n}' not found, falling back to View`),p.View)}const Z=r=>r==null?0:typeof r=="number"?r:"value"in r?r.value:"min"in r?r.min:0,ge=r=>{const o=r.map(s=>Z(s.price)),n=Math.min(...o),a=Math.max(...o);return n===void 0||a===void 0?{value:0}:n===a?{value:n}:{min:n,max:a}},we=(r,o)=>typeof r=="function"?r(o):r;exports.compilerRuntimeExports=X;exports.getPlatformPrimitive=xe;exports.getPrice=Z;exports.getProductPriceFromVariants=ge;exports.jsxRuntimeExports=z;exports.renderChildren=we;exports.transformImageProps=Ee;
|