@haus-storefront-react/vendure-plugin-configs 1.0.4-next.15 → 1.0.4-next.2

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 (59) hide show
  1. package/CHANGELOG.md +0 -153
  2. package/badge.js +21 -1
  3. package/badge.mjs +3058 -449
  4. package/campaign.js +1 -1
  5. package/campaign.mjs +106 -50
  6. package/elastic.js +1 -1
  7. package/elastic.mjs +26 -10
  8. package/index-BCrKAB0K.mjs +311 -0
  9. package/index-BRlTlK6a.mjs +3768 -0
  10. package/index-CgxqXyHf.js +20 -0
  11. package/index-DgRzu7XX.js +10 -0
  12. package/index.js +1 -1
  13. package/index.mjs +4 -2
  14. package/lib/configs/vendure-badge-plugin.d.ts +2 -10
  15. package/lib/configs/vendure-badge-plugin.types.d.ts +1 -0
  16. package/lib/configs/vendure-campaign-plugin.d.ts +1 -1
  17. package/lib/configs/vendure-elastic-search-plugin.d.ts +1 -1
  18. package/lib/configs/vendure-packagesize-plugin.d.ts +1 -1
  19. package/lib/configs/vendure-product-popularity-plugin.d.ts +1 -1
  20. package/lib/plugin-config.d.ts +1 -2
  21. package/lib/types.d.ts +0 -2
  22. package/package.json +4 -31
  23. package/packagesize.js +1 -1
  24. package/packagesize.mjs +59 -15
  25. package/product-popularity.js +1 -1
  26. package/product-popularity.mjs +22 -12
  27. package/lib/configs/vendure-product-variant-specifications-plugin.d.ts +0 -55
  28. package/lib/configs/vendure-product-variant-specifications-plugin.types.d.ts +0 -8
  29. package/lib/configs/vendure-products-by-sku-plugin.d.ts +0 -11
  30. package/lib/configs/vendure-products-by-sku-plugin.types.d.ts +0 -13
  31. package/lib/configs/vendure-purchase-order-payment-plugin.d.ts +0 -14
  32. package/lib/configs/vendure-purchase-order-payment-plugin.types.d.ts +0 -7
  33. package/lib/configs/vendure-related-products-plugin.d.ts +0 -39
  34. package/lib/configs/vendure-related-products-plugin.types.d.ts +0 -16
  35. package/lib/exports/product-variant-specifications.d.ts +0 -2
  36. package/lib/exports/products-by-sku.d.ts +0 -3
  37. package/lib/exports/purchase-order-payment.d.ts +0 -3
  38. package/lib/exports/related-products.d.ts +0 -3
  39. package/lib/hooks/use-add-purchase-order-payment.d.ts +0 -13
  40. package/lib/hooks/use-related-products.d.ts +0 -2
  41. package/lib/strategies/quick-order-variant-sku-validation-strategy.d.ts +0 -6
  42. package/plugin-config-DrQQb9Ry.js +0 -1
  43. package/plugin-config-DywohMgp.mjs +0 -903
  44. package/product-variant-specifications.d.ts +0 -2
  45. package/product-variant-specifications.js +0 -1
  46. package/product-variant-specifications.mjs +0 -9
  47. package/products-by-sku.d.ts +0 -2
  48. package/products-by-sku.js +0 -1
  49. package/products-by-sku.mjs +0 -54
  50. package/purchase-order-payment.d.ts +0 -2
  51. package/purchase-order-payment.js +0 -27
  52. package/purchase-order-payment.mjs +0 -209
  53. package/related-products.d.ts +0 -2
  54. package/related-products.js +0 -1
  55. package/related-products.mjs +0 -36
  56. package/src-BCHcjT-q.mjs +0 -455
  57. package/src-BqcrcEUL.mjs +0 -2718
  58. package/src-Cj3iGasO.js +0 -6
  59. package/src-CvZOxNaX.js +0 -21
package/campaign.js CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./src-Cj3iGasO.js`);var t=new(require(`./plugin-config-DrQQb9Ry.js`)).t({name:`campaign`,enableFeatures:{ordinaryPrice:({variant:t,orderLine:n,searchResult:r,product:i})=>{if(n){let t=n.productVariant;return t?.ordinaryPrice?e.t(t?.ordinaryPrice)*n.quantity:n.discountedLinePriceWithTax}return t?e.t(t.ordinaryPrice||0):r?e.t(r.ordinaryPrice||0):i?e.n(i.variants):0}},queryUpdates:{}});t.setQueryUpdates({search:{fields:[{items:[{ordinaryPrice:[{operation:`PriceRange`,fields:[`min, max`],fragment:!0},{operation:`SinglePrice`,fields:[`value`],fragment:!0}]}]}]},product:{fields:[{ordinaryPrice:[{operation:`PriceRange`,fields:[`min, max`],fragment:!0},{operation:`SinglePrice`,fields:[`value`],fragment:!0}]},{variants:[`ordinaryPrice`]}]},briefProducts:{fields:[{items:[{ordinaryPrice:[{operation:`PriceRange`,fields:[`min, max`],fragment:!0},{operation:`SinglePrice`,fields:[`value`],fragment:!0}]},{variants:[`ordinaryPrice`]}]}]},activeOrder:{fields:[{lines:[{productVariant:[`ordinaryPrice`]}]}]},orderByCode:{fields:[{lines:[{productVariant:[`ordinaryPrice`]}]}]},adjustOrderLine:{fields:[{fields:[{lines:[{productVariant:[`ordinaryPrice`]}]}]}]},addItemToOrder:{fields:[{fields:[{lines:[{productVariant:[`ordinaryPrice`]}]}]}]}});var n=(t,n)=>{let r=e.t(t),i=e.t(n);return e.t(t)===0?!1:i!==r};exports.VendureCampaignPlugin=t,exports.isCampaign=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-CgxqXyHf.js"),e=require("./index-DgRzu7XX.js"),d=new c.VendurePluginConfig({name:"campaign",enableFeatures:{ordinaryPrice:({variant:i,orderLine:r,searchResult:n,product:a})=>{if(r){const t=r.productVariant;return t?.ordinaryPrice?e.getPrice(t?.ordinaryPrice)*r.quantity:r.discountedLinePriceWithTax}return i?e.getPrice(i.ordinaryPrice||0):n?e.getPrice(n.ordinaryPrice||0):a?e.getProductPriceFromVariants(a.variants):0}},queryUpdates:{}});d.setQueryUpdates({search:{fields:[{items:[{ordinaryPrice:[{operation:"PriceRange",fields:["min, max"],fragment:!0},{operation:"SinglePrice",fields:["value"],fragment:!0}]}]}]},product:{fields:[{ordinaryPrice:[{operation:"PriceRange",fields:["min, max"],fragment:!0},{operation:"SinglePrice",fields:["value"],fragment:!0}]},{variants:["ordinaryPrice"]}]},briefProducts:{fields:[{items:[{ordinaryPrice:[{operation:"PriceRange",fields:["min, max"],fragment:!0},{operation:"SinglePrice",fields:["value"],fragment:!0}]},{variants:["ordinaryPrice"]}]}]},activeOrder:{fields:[{lines:[{productVariant:["ordinaryPrice"]}]}]},orderByCode:{fields:[{lines:[{productVariant:["ordinaryPrice"]}]}]},adjustOrderLine:{fields:[{fields:[{lines:[{productVariant:["ordinaryPrice"]}]}]}]},addItemToOrder:{fields:[{fields:[{lines:[{productVariant:["ordinaryPrice"]}]}]}]}});const o=(i,r)=>{const n=e.getPrice(i),a=e.getPrice(r);return e.getPrice(i)===0?!1:a!==n};exports.VendureCampaignPlugin=d;exports.isCampaign=o;
package/campaign.mjs CHANGED
@@ -1,53 +1,109 @@
1
- import { n as e, t } from "./src-BCHcjT-q.mjs";
2
- import { t as n } from "./plugin-config-DywohMgp.mjs";
3
- //#region src/lib/configs/vendure-campaign-plugin.ts
4
- var r = new n({
5
- name: "campaign",
6
- enableFeatures: { ordinaryPrice: ({ variant: n, orderLine: r, searchResult: i, product: a }) => {
7
- if (r) {
8
- let e = r.productVariant;
9
- return e?.ordinaryPrice ? t(e?.ordinaryPrice) * r.quantity : r.discountedLinePriceWithTax;
10
- }
11
- return n ? t(n.ordinaryPrice || 0) : i ? t(i.ordinaryPrice || 0) : a ? e(a.variants) : 0;
12
- } },
13
- queryUpdates: {}
1
+ import { V as d } from "./index-BRlTlK6a.mjs";
2
+ import { g as e, a as o } from "./index-BCrKAB0K.mjs";
3
+ const s = new d({
4
+ name: "campaign",
5
+ enableFeatures: {
6
+ ordinaryPrice: ({
7
+ variant: i,
8
+ orderLine: r,
9
+ searchResult: a,
10
+ product: n
11
+ }) => {
12
+ if (r) {
13
+ const t = r.productVariant;
14
+ return t?.ordinaryPrice ? e(t?.ordinaryPrice) * r.quantity : r.discountedLinePriceWithTax;
15
+ }
16
+ return i ? e(i.ordinaryPrice || 0) : a ? e(a.ordinaryPrice || 0) : n ? o(n.variants) : 0;
17
+ }
18
+ },
19
+ queryUpdates: {}
14
20
  });
15
- r.setQueryUpdates({
16
- search: { fields: [{ items: [{ ordinaryPrice: [{
17
- operation: "PriceRange",
18
- fields: ["min, max"],
19
- fragment: !0
20
- }, {
21
- operation: "SinglePrice",
22
- fields: ["value"],
23
- fragment: !0
24
- }] }] }] },
25
- product: { fields: [{ ordinaryPrice: [{
26
- operation: "PriceRange",
27
- fields: ["min, max"],
28
- fragment: !0
29
- }, {
30
- operation: "SinglePrice",
31
- fields: ["value"],
32
- fragment: !0
33
- }] }, { variants: ["ordinaryPrice"] }] },
34
- briefProducts: { fields: [{ items: [{ ordinaryPrice: [{
35
- operation: "PriceRange",
36
- fields: ["min, max"],
37
- fragment: !0
38
- }, {
39
- operation: "SinglePrice",
40
- fields: ["value"],
41
- fragment: !0
42
- }] }, { variants: ["ordinaryPrice"] }] }] },
43
- activeOrder: { fields: [{ lines: [{ productVariant: ["ordinaryPrice"] }] }] },
44
- orderByCode: { fields: [{ lines: [{ productVariant: ["ordinaryPrice"] }] }] },
45
- adjustOrderLine: { fields: [{ fields: [{ lines: [{ productVariant: ["ordinaryPrice"] }] }] }] },
46
- addItemToOrder: { fields: [{ fields: [{ lines: [{ productVariant: ["ordinaryPrice"] }] }] }] }
21
+ s.setQueryUpdates({
22
+ search: {
23
+ fields: [{
24
+ items: [{
25
+ ordinaryPrice: [{
26
+ operation: "PriceRange",
27
+ fields: ["min, max"],
28
+ fragment: !0
29
+ }, {
30
+ operation: "SinglePrice",
31
+ fields: ["value"],
32
+ fragment: !0
33
+ }]
34
+ }]
35
+ }]
36
+ },
37
+ product: {
38
+ fields: [{
39
+ ordinaryPrice: [{
40
+ operation: "PriceRange",
41
+ fields: ["min, max"],
42
+ fragment: !0
43
+ }, {
44
+ operation: "SinglePrice",
45
+ fields: ["value"],
46
+ fragment: !0
47
+ }]
48
+ }, {
49
+ variants: ["ordinaryPrice"]
50
+ }]
51
+ },
52
+ briefProducts: {
53
+ fields: [{
54
+ items: [{
55
+ ordinaryPrice: [{
56
+ operation: "PriceRange",
57
+ fields: ["min, max"],
58
+ fragment: !0
59
+ }, {
60
+ operation: "SinglePrice",
61
+ fields: ["value"],
62
+ fragment: !0
63
+ }]
64
+ }, {
65
+ variants: ["ordinaryPrice"]
66
+ }]
67
+ }]
68
+ },
69
+ activeOrder: {
70
+ fields: [{
71
+ lines: [{
72
+ productVariant: ["ordinaryPrice"]
73
+ }]
74
+ }]
75
+ },
76
+ orderByCode: {
77
+ fields: [{
78
+ lines: [{
79
+ productVariant: ["ordinaryPrice"]
80
+ }]
81
+ }]
82
+ },
83
+ adjustOrderLine: {
84
+ fields: [{
85
+ fields: [{
86
+ lines: [{
87
+ productVariant: ["ordinaryPrice"]
88
+ }]
89
+ }]
90
+ }]
91
+ },
92
+ addItemToOrder: {
93
+ fields: [{
94
+ fields: [{
95
+ lines: [{
96
+ productVariant: ["ordinaryPrice"]
97
+ }]
98
+ }]
99
+ }]
100
+ }
47
101
  });
48
- var i = (e, n) => {
49
- let r = t(e), i = t(n);
50
- return t(e) === 0 ? !1 : i !== r;
102
+ const f = (i, r) => {
103
+ const a = e(i), n = e(r);
104
+ return e(i) === 0 ? !1 : n !== a;
105
+ };
106
+ export {
107
+ s as VendureCampaignPlugin,
108
+ f as isCampaign
51
109
  };
52
- //#endregion
53
- export { r as VendureCampaignPlugin, i as isCampaign };
package/elastic.js CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=new(require(`./plugin-config-DrQQb9Ry.js`)).t({name:`vendure-elastic-search`,queryUpdates:{search:{fields:[{prices:[{range:[`min`,`max`]},{rangeWithTax:[`min`,`max`]}]}]},searchField:{fields:[{prices:[{range:[`min`,`max`]},{rangeWithTax:[`min`,`max`]}]}]}}});exports.VendureElasticSearchPlugin=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CgxqXyHf.js"),i=new e.VendurePluginConfig({name:"vendure-elastic-search",queryUpdates:{search:{fields:[{prices:[{range:["min","max"]},{rangeWithTax:["min","max"]}]}]},searchField:{fields:[{prices:[{range:["min","max"]},{rangeWithTax:["min","max"]}]}]}}});exports.VendureElasticSearchPlugin=i;
package/elastic.mjs CHANGED
@@ -1,11 +1,27 @@
1
- import { t as e } from "./plugin-config-DywohMgp.mjs";
2
- //#region src/lib/configs/vendure-elastic-search-plugin.ts
3
- var t = new e({
4
- name: "vendure-elastic-search",
5
- queryUpdates: {
6
- search: { fields: [{ prices: [{ range: ["min", "max"] }, { rangeWithTax: ["min", "max"] }] }] },
7
- searchField: { fields: [{ prices: [{ range: ["min", "max"] }, { rangeWithTax: ["min", "max"] }] }] }
8
- }
1
+ import { V as e } from "./index-BRlTlK6a.mjs";
2
+ const i = new e({
3
+ name: "vendure-elastic-search",
4
+ queryUpdates: {
5
+ search: {
6
+ fields: [{
7
+ prices: [{
8
+ range: ["min", "max"]
9
+ }, {
10
+ rangeWithTax: ["min", "max"]
11
+ }]
12
+ }]
13
+ },
14
+ searchField: {
15
+ fields: [{
16
+ prices: [{
17
+ range: ["min", "max"]
18
+ }, {
19
+ rangeWithTax: ["min", "max"]
20
+ }]
21
+ }]
22
+ }
23
+ }
9
24
  });
10
- //#endregion
11
- export { t as VendureElasticSearchPlugin };
25
+ export {
26
+ i as VendureElasticSearchPlugin
27
+ };
@@ -0,0 +1,311 @@
1
+ import "./index-BRlTlK6a.mjs";
2
+ import g from "react";
3
+ var v = { exports: {} }, d = {};
4
+ var F;
5
+ function ue() {
6
+ if (F) return d;
7
+ F = 1;
8
+ var t = /* @__PURE__ */ Symbol.for("react.transitional.element"), u = /* @__PURE__ */ Symbol.for("react.fragment");
9
+ function s(c, i, l) {
10
+ var m = null;
11
+ if (l !== void 0 && (m = "" + l), i.key !== void 0 && (m = "" + i.key), "key" in i) {
12
+ l = {};
13
+ for (var _ in i)
14
+ _ !== "key" && (l[_] = i[_]);
15
+ } else l = i;
16
+ return i = l.ref, {
17
+ $$typeof: t,
18
+ type: c,
19
+ key: m,
20
+ ref: i !== void 0 ? i : null,
21
+ props: l
22
+ };
23
+ }
24
+ return d.Fragment = u, d.jsx = s, d.jsxs = s, d;
25
+ }
26
+ var R = {};
27
+ var L;
28
+ function se() {
29
+ return L || (L = 1, process.env.NODE_ENV !== "production" && (function() {
30
+ function t(e) {
31
+ if (e == null) return null;
32
+ if (typeof e == "function")
33
+ return e.$$typeof === ne ? null : e.displayName || e.name || null;
34
+ if (typeof e == "string") return e;
35
+ switch (e) {
36
+ case T:
37
+ return "Fragment";
38
+ case X:
39
+ return "Profiler";
40
+ case V:
41
+ return "StrictMode";
42
+ case K:
43
+ return "Suspense";
44
+ case ee:
45
+ return "SuspenseList";
46
+ case te:
47
+ return "Activity";
48
+ }
49
+ if (typeof e == "object")
50
+ switch (typeof e.tag == "number" && console.error(
51
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
52
+ ), e.$$typeof) {
53
+ case z:
54
+ return "Portal";
55
+ case Z:
56
+ return e.displayName || "Context";
57
+ case B:
58
+ return (e._context.displayName || "Context") + ".Consumer";
59
+ case Q:
60
+ var r = e.render;
61
+ return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
62
+ case re:
63
+ return r = e.displayName || null, r !== null ? r : t(e.type) || "Memo";
64
+ case h:
65
+ r = e._payload, e = e._init;
66
+ try {
67
+ return t(e(r));
68
+ } catch {
69
+ }
70
+ }
71
+ return null;
72
+ }
73
+ function u(e) {
74
+ return "" + e;
75
+ }
76
+ function s(e) {
77
+ try {
78
+ u(e);
79
+ var r = !1;
80
+ } catch {
81
+ r = !0;
82
+ }
83
+ if (r) {
84
+ r = console;
85
+ var n = r.error, o = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
86
+ return n.call(
87
+ r,
88
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
89
+ o
90
+ ), u(e);
91
+ }
92
+ }
93
+ function c(e) {
94
+ if (e === T) return "<>";
95
+ if (typeof e == "object" && e !== null && e.$$typeof === h)
96
+ return "<...>";
97
+ try {
98
+ var r = t(e);
99
+ return r ? "<" + r + ">" : "<...>";
100
+ } catch {
101
+ return "<...>";
102
+ }
103
+ }
104
+ function i() {
105
+ var e = O.A;
106
+ return e === null ? null : e.getOwner();
107
+ }
108
+ function l() {
109
+ return Error("react-stack-top-frame");
110
+ }
111
+ function m(e) {
112
+ if (j.call(e, "key")) {
113
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
114
+ if (r && r.isReactWarning) return !1;
115
+ }
116
+ return e.key !== void 0;
117
+ }
118
+ function _(e, r) {
119
+ function n() {
120
+ Y || (Y = !0, console.error(
121
+ "%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)",
122
+ r
123
+ ));
124
+ }
125
+ n.isReactWarning = !0, Object.defineProperty(e, "key", {
126
+ get: n,
127
+ configurable: !0
128
+ });
129
+ }
130
+ function H() {
131
+ var e = t(this.type);
132
+ return I[e] || (I[e] = !0, console.error(
133
+ "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."
134
+ )), e = this.props.ref, e !== void 0 ? e : null;
135
+ }
136
+ function J(e, r, n, o, E, S) {
137
+ var a = n.ref;
138
+ return e = {
139
+ $$typeof: C,
140
+ type: e,
141
+ key: r,
142
+ props: n,
143
+ _owner: o
144
+ }, (a !== void 0 ? a : null) !== null ? Object.defineProperty(e, "ref", {
145
+ enumerable: !1,
146
+ get: H
147
+ }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
148
+ configurable: !1,
149
+ enumerable: !1,
150
+ writable: !0,
151
+ value: 0
152
+ }), Object.defineProperty(e, "_debugInfo", {
153
+ configurable: !1,
154
+ enumerable: !1,
155
+ writable: !0,
156
+ value: null
157
+ }), Object.defineProperty(e, "_debugStack", {
158
+ configurable: !1,
159
+ enumerable: !1,
160
+ writable: !0,
161
+ value: E
162
+ }), Object.defineProperty(e, "_debugTask", {
163
+ configurable: !1,
164
+ enumerable: !1,
165
+ writable: !0,
166
+ value: S
167
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
168
+ }
169
+ function P(e, r, n, o, E, S) {
170
+ var a = r.children;
171
+ if (a !== void 0)
172
+ if (o)
173
+ if (oe(a)) {
174
+ for (o = 0; o < a.length; o++)
175
+ y(a[o]);
176
+ Object.freeze && Object.freeze(a);
177
+ } else
178
+ console.error(
179
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
180
+ );
181
+ else y(a);
182
+ if (j.call(r, "key")) {
183
+ a = t(e);
184
+ var f = Object.keys(r).filter(function(ae) {
185
+ return ae !== "key";
186
+ });
187
+ o = 0 < f.length ? "{key: someKey, " + f.join(": ..., ") + ": ...}" : "{key: someKey}", U[a + o] || (f = 0 < f.length ? "{" + f.join(": ..., ") + ": ...}" : "{}", console.error(
188
+ `A props object containing a "key" prop is being spread into JSX:
189
+ let props = %s;
190
+ <%s {...props} />
191
+ React keys must be passed directly to JSX without using spread:
192
+ let props = %s;
193
+ <%s key={someKey} {...props} />`,
194
+ o,
195
+ a,
196
+ f,
197
+ a
198
+ ), U[a + o] = !0);
199
+ }
200
+ if (a = null, n !== void 0 && (s(n), a = "" + n), m(r) && (s(r.key), a = "" + r.key), "key" in r) {
201
+ n = {};
202
+ for (var A in r)
203
+ A !== "key" && (n[A] = r[A]);
204
+ } else n = r;
205
+ return a && _(
206
+ n,
207
+ typeof e == "function" ? e.displayName || e.name || "Unknown" : e
208
+ ), J(
209
+ e,
210
+ a,
211
+ n,
212
+ i(),
213
+ E,
214
+ S
215
+ );
216
+ }
217
+ function y(e) {
218
+ w(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === h && (e._payload.status === "fulfilled" ? w(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
219
+ }
220
+ function w(e) {
221
+ return typeof e == "object" && e !== null && e.$$typeof === C;
222
+ }
223
+ var p = g, C = /* @__PURE__ */ Symbol.for("react.transitional.element"), z = /* @__PURE__ */ Symbol.for("react.portal"), T = /* @__PURE__ */ Symbol.for("react.fragment"), V = /* @__PURE__ */ Symbol.for("react.strict_mode"), X = /* @__PURE__ */ Symbol.for("react.profiler"), B = /* @__PURE__ */ Symbol.for("react.consumer"), Z = /* @__PURE__ */ Symbol.for("react.context"), Q = /* @__PURE__ */ Symbol.for("react.forward_ref"), K = /* @__PURE__ */ Symbol.for("react.suspense"), ee = /* @__PURE__ */ Symbol.for("react.suspense_list"), re = /* @__PURE__ */ Symbol.for("react.memo"), h = /* @__PURE__ */ Symbol.for("react.lazy"), te = /* @__PURE__ */ Symbol.for("react.activity"), ne = /* @__PURE__ */ Symbol.for("react.client.reference"), O = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, oe = Array.isArray, k = console.createTask ? console.createTask : function() {
224
+ return null;
225
+ };
226
+ p = {
227
+ react_stack_bottom_frame: function(e) {
228
+ return e();
229
+ }
230
+ };
231
+ var Y, I = {}, D = p.react_stack_bottom_frame.bind(
232
+ p,
233
+ l
234
+ )(), M = k(c(l)), U = {};
235
+ R.Fragment = T, R.jsx = function(e, r, n) {
236
+ var o = 1e4 > O.recentlyCreatedOwnerStacks++;
237
+ return P(
238
+ e,
239
+ r,
240
+ n,
241
+ !1,
242
+ o ? Error("react-stack-top-frame") : D,
243
+ o ? k(c(e)) : M
244
+ );
245
+ }, R.jsxs = function(e, r, n) {
246
+ var o = 1e4 > O.recentlyCreatedOwnerStacks++;
247
+ return P(
248
+ e,
249
+ r,
250
+ n,
251
+ !0,
252
+ o ? Error("react-stack-top-frame") : D,
253
+ o ? k(c(e)) : M
254
+ );
255
+ };
256
+ })()), R;
257
+ }
258
+ var $;
259
+ function ie() {
260
+ return $ || ($ = 1, process.env.NODE_ENV === "production" ? v.exports = ue() : v.exports = se()), v.exports;
261
+ }
262
+ var Re = ie(), b = { exports: {} }, N = {};
263
+ var q;
264
+ function le() {
265
+ if (q) return N;
266
+ q = 1;
267
+ var t = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
268
+ return N.c = function(u) {
269
+ return t.H.useMemoCache(u);
270
+ }, N;
271
+ }
272
+ var x = {};
273
+ var W;
274
+ function ce() {
275
+ return W || (W = 1, process.env.NODE_ENV !== "production" && (function() {
276
+ var t = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
277
+ x.c = function(u) {
278
+ var s = t.H;
279
+ return s === null && console.error(
280
+ `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:
281
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
282
+ 2. You might be breaking the Rules of Hooks
283
+ 3. You might have more than one copy of React in the same app
284
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
285
+ ), s.useMemoCache(u);
286
+ };
287
+ })()), x;
288
+ }
289
+ var G;
290
+ function fe() {
291
+ return G || (G = 1, process.env.NODE_ENV === "production" ? b.exports = le() : b.exports = ce()), b.exports;
292
+ }
293
+ var pe = fe();
294
+ const me = (t) => t == null ? 0 : typeof t == "number" ? t : "value" in t ? t.value : "min" in t ? t.min : 0, Ee = (t) => {
295
+ const u = t.map((i) => me(i.price)), s = Math.min(...u), c = Math.max(...u);
296
+ return s === void 0 || c === void 0 ? {
297
+ value: 0
298
+ } : s === c ? {
299
+ value: s
300
+ } : {
301
+ min: s,
302
+ max: c
303
+ };
304
+ }, ve = (t, u) => typeof t == "function" ? t(u) : t;
305
+ export {
306
+ Ee as a,
307
+ pe as c,
308
+ me as g,
309
+ Re as j,
310
+ ve as r
311
+ };