@teamnovu/kit-shopware-composables 0.0.5 → 0.0.6

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 (98) hide show
  1. package/dist/global.d.ts +8 -0
  2. package/dist/helpers/checkout/useAddresses.d.ts +9 -51
  3. package/dist/helpers/checkout/useOrderDetails.d.ts +3 -8
  4. package/dist/helpers/checkout/usePaymentMethods.d.ts +11 -49
  5. package/dist/helpers/checkout/useShippingMethods.d.ts +11 -55
  6. package/dist/helpers/general/usePagination.d.ts +3 -1
  7. package/dist/helpers/user/useIsLoggedIn.d.ts +3 -2
  8. package/dist/helpers/user/useUser.d.ts +4 -106
  9. package/dist/index.mjs +810 -640
  10. package/dist/keys.d.ts +42 -1
  11. package/dist/query/address/index.d.ts +1 -0
  12. package/dist/query/address/useCreateCustomerAddressMutation.d.ts +7 -6
  13. package/dist/query/address/useDeleteCustomerAddressMutation.d.ts +2 -1
  14. package/dist/query/address/useListAddressQuery.d.ts +5 -36
  15. package/dist/query/address/useUpdateCustomerAddressMutation.d.ts +167 -0
  16. package/dist/query/cart/useAddLineItemMutation.d.ts +7 -6
  17. package/dist/query/cart/useReadCartQuery.d.ts +5 -100
  18. package/dist/query/cart/useRemoveLineItemMutation.d.ts +7 -6
  19. package/dist/query/cart/useUpdateLineItemMutation.d.ts +7 -6
  20. package/dist/query/checkout/useCreateOrderMutation.d.ts +7 -6
  21. package/dist/query/context/useReadContextQuery.d.ts +8 -148
  22. package/dist/query/context/useUpdateContextMutation.d.ts +7 -6
  23. package/dist/query/country/index.d.ts +1 -0
  24. package/dist/query/country/useReadCountryQuery.d.ts +17 -0
  25. package/dist/query/customer/useChangeEmailMutation.d.ts +7 -6
  26. package/dist/query/customer/useChangeProfileMutation.d.ts +7 -6
  27. package/dist/query/customer/useLoginCustomerMutation.d.ts +7 -6
  28. package/dist/query/customer/useLogoutCustomerMutation.d.ts +7 -6
  29. package/dist/query/customer/useReadCustomerQuery.d.ts +10 -213
  30. package/dist/query/customer/useRegisterCustomerMutation.d.ts +7 -6
  31. package/dist/query/index.d.ts +4 -0
  32. package/dist/query/navigation/index.d.ts +1 -0
  33. package/dist/query/navigation/useReadNavigationQuery.d.ts +22 -0
  34. package/dist/query/order/useReadOrderQuery.d.ts +5 -32
  35. package/dist/query/payment/useHandlePaymentMutation.d.ts +7 -6
  36. package/dist/query/payment/useOrderSetPaymentMutation.d.ts +7 -6
  37. package/dist/query/payment/useReadPaymentMethodQuery.d.ts +5 -20
  38. package/dist/query/products/useReadCategoryListQuery.d.ts +5 -36
  39. package/dist/query/products/useReadCompactProductListingQuery.d.ts +5 -20
  40. package/dist/query/products/useReadCustomProductDetailQuery.d.ts +5 -52
  41. package/dist/query/salutation/index.d.ts +1 -0
  42. package/dist/query/salutation/useReadSalutationQuery.d.ts +17 -0
  43. package/dist/query/seoUrl/index.d.ts +1 -0
  44. package/dist/query/seoUrl/useReadSeoUrlQuery.d.ts +17 -0
  45. package/dist/query/shipping/useReadShippingMethodQuery.d.ts +5 -44
  46. package/dist/query/types/index.d.ts +1 -0
  47. package/dist/query/types/operations.d.ts +3 -3
  48. package/dist/query/types/query.d.ts +2 -3
  49. package/dist/query/types/util.d.ts +6 -0
  50. package/dist/util/unrefOptions.d.ts +2 -2
  51. package/package.json +6 -4
  52. package/src/global.d.ts +8 -0
  53. package/src/helpers/checkout/useAddresses.ts +1 -1
  54. package/src/helpers/checkout/useOrderDetails.ts +1 -1
  55. package/src/helpers/checkout/useOrderPayment.ts +1 -1
  56. package/src/helpers/checkout/usePaymentMethods.ts +5 -2
  57. package/src/helpers/checkout/useShippingMethods.ts +5 -2
  58. package/src/helpers/general/usePagination.ts +10 -5
  59. package/src/helpers/user/useIsLoggedIn.ts +6 -8
  60. package/src/helpers/user/useUser.ts +1 -1
  61. package/src/inject.ts +1 -1
  62. package/src/keys.ts +66 -1
  63. package/src/query/address/index.ts +1 -0
  64. package/src/query/address/useCreateCustomerAddressMutation.ts +7 -6
  65. package/src/query/address/useDeleteCustomerAddressMutation.ts +7 -6
  66. package/src/query/address/useUpdateCustomerAddressMutation.ts +42 -0
  67. package/src/query/cart/useAddLineItemMutation.ts +7 -6
  68. package/src/query/cart/useRemoveLineItemMutation.ts +6 -5
  69. package/src/query/cart/useUpdateLineItemMutation.ts +5 -4
  70. package/src/query/checkout/useCreateOrderMutation.ts +11 -8
  71. package/src/query/context/useReadContextQuery.ts +14 -5
  72. package/src/query/context/useUpdateContextMutation.ts +6 -5
  73. package/src/query/country/index.ts +1 -0
  74. package/src/query/country/useReadCountryQuery.ts +31 -0
  75. package/src/query/customer/useChangeEmailMutation.ts +7 -7
  76. package/src/query/customer/useChangeProfileMutation.ts +7 -7
  77. package/src/query/customer/useLoginCustomerMutation.ts +12 -9
  78. package/src/query/customer/useLogoutCustomerMutation.ts +11 -7
  79. package/src/query/customer/useReadCustomerQuery.ts +2 -1
  80. package/src/query/customer/useRegisterCustomerMutation.ts +7 -7
  81. package/src/query/index.ts +4 -0
  82. package/src/query/navigation/index.ts +1 -0
  83. package/src/query/navigation/useReadNavigationQuery.ts +43 -0
  84. package/src/query/order/useReadOrderQuery.ts +0 -2
  85. package/src/query/payment/useHandlePaymentMutation.ts +5 -4
  86. package/src/query/payment/useOrderSetPaymentMutation.ts +6 -5
  87. package/src/query/salutation/index.ts +1 -0
  88. package/src/query/salutation/useReadSalutationQuery.ts +31 -0
  89. package/src/query/seoUrl/index.ts +1 -0
  90. package/src/query/seoUrl/useReadSeoUrlQuery.ts +31 -0
  91. package/src/query/types/index.ts +1 -0
  92. package/src/query/types/operations.ts +5 -5
  93. package/src/query/types/query.ts +4 -6
  94. package/src/query/types/util.ts +19 -0
  95. package/src/util/unrefOptions.ts +4 -4
  96. package/src/util/useOptimistic.ts +2 -1
  97. package/tsconfig.json +4 -2
  98. package/vite.config.js +6 -1
package/dist/index.mjs CHANGED
@@ -1,61 +1,116 @@
1
- import { inject as H, unref as l, computed as i, reactive as W, watch as $, toRef as z } from "vue";
2
- import { until as w } from "@vueuse/core";
3
- import { queryOptions as A, useQuery as O, useQueryClient as P, useMutation as S } from "@tanstack/vue-query";
4
- const J = Symbol("shopwareClient");
5
- function g() {
6
- const e = H(J);
1
+ import { inject as Y, unref as c, computed as o, reactive as Z, watch as H, toRef as W } from "vue";
2
+ import { until as J } from "@vueuse/core";
3
+ import { queryOptions as M, useQuery as O, useQueryClient as P, useMutation as Q } from "@tanstack/vue-query";
4
+ import "@teamnovu/kit-shopware-api-client";
5
+ const _ = Symbol("shopwareClient");
6
+ function v() {
7
+ const e = Y(_);
7
8
  if (!e)
8
9
  throw new Error("Shopware client not provided!");
9
10
  return e;
10
11
  }
11
- const U = {
12
+ const b = {
12
13
  all: () => ["context"]
13
- }, B = {
14
+ }, k = {
14
15
  all: () => ["category"],
15
- lists: () => [...B.all(), "list"],
16
+ lists: () => [...k.all(), "list"],
16
17
  list: (e) => [
17
- ...B.all(),
18
+ ...k.all(),
18
19
  "list",
19
20
  {
20
21
  body: e
21
22
  }
22
23
  ]
23
- }, L = {
24
+ }, U = {
25
+ all: () => ["navigation"],
26
+ lists: () => [...U.all(), "list"],
27
+ list: (e) => [
28
+ ...U.all(),
29
+ "list",
30
+ {
31
+ body: e
32
+ }
33
+ ],
34
+ details: () => [...U.all(), "detail"],
35
+ detail: (e, n, t) => [
36
+ ...U.all(),
37
+ "detail",
38
+ {
39
+ activeId: e,
40
+ rootId: n,
41
+ body: t
42
+ }
43
+ ]
44
+ }, w = {
24
45
  all: () => ["product"],
25
- lists: () => [...L.all(), "list"],
26
- list: (e, s) => [
27
- ...L.all(),
46
+ lists: () => [...w.all(), "list"],
47
+ list: (e, n) => [
48
+ ...w.all(),
28
49
  "list",
29
50
  {
30
51
  url: e,
31
- body: s
52
+ body: n
32
53
  }
33
54
  ],
34
- details: () => [...L.all(), "detail"],
35
- detail: (e, s) => [
36
- ...L.all(),
55
+ details: () => [...w.all(), "detail"],
56
+ detail: (e, n) => [
57
+ ...w.all(),
37
58
  "detail",
38
59
  {
39
60
  url: e,
40
- body: s
61
+ body: n
41
62
  }
42
63
  ]
43
- }, R = {
44
- get: () => ["cart"]
45
64
  }, I = {
46
- get: () => ["customer"]
47
- }, b = {
65
+ get: () => ["cart"]
66
+ }, x = {
67
+ all: () => ["customer"],
68
+ detail: (e) => ["customer", { body: e }]
69
+ }, R = {
48
70
  all: () => ["address"],
49
- lists: () => [...b.all(), "list"],
71
+ lists: () => [...R.all(), "list"],
72
+ list: (e) => [
73
+ ...R.all(),
74
+ "list",
75
+ {
76
+ body: e
77
+ }
78
+ ],
79
+ details: () => [...R.all(), "detail"],
80
+ detail: (e, n) => [...R.details(), e, ...n ? [{ body: n }] : []]
81
+ }, N = {
82
+ all: () => ["shippingMethod"],
83
+ lists: () => [...N.all(), "list"],
84
+ list: (e) => [
85
+ ...N.all(),
86
+ "list",
87
+ {
88
+ body: e
89
+ }
90
+ ]
91
+ }, B = {
92
+ all: () => ["paymentMethod"],
93
+ lists: () => [...B.all(), "list"],
50
94
  list: (e) => [
51
- ...b.all(),
95
+ ...B.all(),
52
96
  "list",
53
97
  {
54
98
  body: e
55
99
  }
56
100
  ]
101
+ }, L = {
102
+ all: () => ["order"],
103
+ lists: () => [...L.all(), "list"],
104
+ details: () => [...L.all(), "detail"],
105
+ detail: (e) => [
106
+ ...L.all(),
107
+ "detail",
108
+ {
109
+ body: e
110
+ }
111
+ ]
57
112
  }, E = {
58
- all: () => ["shippingMethod"],
113
+ all: () => ["seoUrl"],
59
114
  lists: () => [...E.all(), "list"],
60
115
  list: (e) => [
61
116
  ...E.all(),
@@ -65,7 +120,7 @@ const U = {
65
120
  }
66
121
  ]
67
122
  }, D = {
68
- all: () => ["paymentMethod"],
123
+ all: () => ["salutation"],
69
124
  lists: () => [...D.all(), "list"],
70
125
  list: (e) => [
71
126
  ...D.all(),
@@ -74,859 +129,974 @@ const U = {
74
129
  body: e
75
130
  }
76
131
  ]
77
- }, x = {
78
- all: () => ["order"],
79
- lists: () => [...x.all(), "list"],
80
- details: () => [...x.all(), "detail"],
81
- detail: (e) => [
82
- ...x.all(),
83
- "detail",
132
+ }, T = {
133
+ all: () => ["country"],
134
+ lists: () => [...T.all(), "list"],
135
+ list: (e) => [
136
+ ...T.all(),
137
+ "list",
84
138
  {
85
139
  body: e
86
140
  }
87
141
  ]
88
142
  };
89
- function h(e) {
90
- const s = l(e);
143
+ function g(e) {
144
+ const n = c(e);
91
145
  return Object.fromEntries(
92
- Object.entries(s ?? {}).map(
93
- ([n, t]) => [n, l(t)]
146
+ Object.entries(n ?? {}).map(
147
+ ([t, s]) => [t, c(s)]
94
148
  )
95
149
  );
96
150
  }
97
- const X = "listAddress post /account/list-address";
98
- function Y(e) {
99
- const s = g(), n = b.list(i(() => {
100
- var t;
101
- return (t = h(e)) == null ? void 0 : t.body;
151
+ const ee = "listAddress post /account/list-address";
152
+ function te(e) {
153
+ const n = v(), t = R.list(o(() => {
154
+ var s;
155
+ return (s = g(e)) == null ? void 0 : s.body;
102
156
  }));
103
- return A({
104
- queryKey: n,
105
- queryFn: ({ signal: t }) => s.query(X, {
106
- ...h(e),
107
- signal: t
157
+ return M({
158
+ queryKey: t,
159
+ queryFn: ({ signal: s }) => n.query(ee, {
160
+ ...g(e),
161
+ signal: s
108
162
  })
109
163
  });
110
164
  }
111
- function Z(e) {
112
- return O(Y(e));
165
+ function ne(e) {
166
+ return O(te(e));
167
+ }
168
+ const j = (e) => {
169
+ const n = e.replace(/\/?$/, "");
170
+ return n.startsWith("/") ? n.slice(1) : n;
171
+ }, et = (e) => `/${j(e)}`;
172
+ function tt(e, n, t) {
173
+ const s = P();
174
+ return {
175
+ onMutate: async (a) => {
176
+ await s.cancelQueries({ queryKey: e });
177
+ const r = s.getQueryData(e);
178
+ if (s.setQueryData(e, (i) => n(a, i)), t) {
179
+ const i = c(t), u = c(i.onMutate);
180
+ u == null || u(a);
181
+ }
182
+ return { previousValue: r };
183
+ },
184
+ onError: (a, r, i) => {
185
+ if (i && s.setQueryData(e, i.previousValue), t) {
186
+ const u = c(t), m = c(u.onError);
187
+ m == null || m(a, r, i);
188
+ }
189
+ },
190
+ onSettled: (...a) => {
191
+ if (s.invalidateQueries({ queryKey: e }), t) {
192
+ const r = c(t), i = c(r.onSettled);
193
+ i == null || i(...a);
194
+ }
195
+ }
196
+ };
113
197
  }
114
- const _ = "readContext get /context";
115
- function ee() {
116
- const e = g();
117
- return A({
118
- queryKey: U.all(),
119
- queryFn: ({ signal: s }) => e.query(_, { signal: s })
198
+ const se = "readContext get /context";
199
+ function re(e) {
200
+ const n = v();
201
+ return M({
202
+ queryKey: b.all(),
203
+ queryFn: ({ signal: t }) => n.query(se, {
204
+ ...g(e),
205
+ signal: t
206
+ })
120
207
  });
121
208
  }
122
- function k() {
123
- return O(ee());
209
+ function V(e) {
210
+ return O(re(e));
124
211
  }
125
- const te = "updateContext patch /context";
126
- function N(e) {
127
- const s = g(), n = P();
128
- return S({
212
+ const ae = "updateContext patch /context";
213
+ function $(e) {
214
+ const n = v(), t = P();
215
+ return Q({
129
216
  ...e,
130
- mutationFn: async (t) => (n.cancelQueries({ queryKey: U.all() }), s.query(te, {
131
- body: t
217
+ mutationFn: async (s) => (t.cancelQueries({ queryKey: b.all() }), n.query(ae, {
218
+ body: s
132
219
  })),
133
- onSuccess: (t, r, u) => {
134
- var o, a;
135
- n.invalidateQueries({ queryKey: U.all() }), (a = l((o = l(e)) == null ? void 0 : o.onSuccess)) == null || a(t, r, u);
220
+ onSuccess: async (s, a, r) => {
221
+ var i, u;
222
+ await t.invalidateQueries({ queryKey: b.all() }), await ((u = c((i = c(e)) == null ? void 0 : i.onSuccess)) == null ? void 0 : u(s, a, r));
136
223
  }
137
224
  });
138
225
  }
139
- function Te() {
140
- const e = N(), s = k(), n = Z(), t = i(() => s.isFetching.value || e.isPending.value), r = async (d) => {
226
+ function nt() {
227
+ const e = $(), n = V(), t = ne(), s = o(() => n.isFetching.value || e.isPending.value), a = async (d) => {
141
228
  await e.mutateAsync({
142
229
  billingAddressId: d.id
143
- }), await w(t).toBe(!1);
144
- }, u = async (d) => {
230
+ }), await J(s).toBe(!1);
231
+ }, r = async (d) => {
145
232
  await e.mutateAsync({
146
233
  shippingAddressId: d.id
147
- }), await w(t).toBe(!1);
148
- }, o = i(() => {
149
- var d, v;
150
- return (v = (d = s.data.value) == null ? void 0 : d.customer) == null ? void 0 : v.activeBillingAddress;
151
- }), a = i(() => {
152
- var d, v;
153
- return (v = (d = s.data.value) == null ? void 0 : d.customer) == null ? void 0 : v.activeShippingAddress;
154
- }), p = i(() => {
234
+ }), await J(s).toBe(!1);
235
+ }, i = o(() => {
236
+ var d, C;
237
+ return (C = (d = n.data.value) == null ? void 0 : d.customer) == null ? void 0 : C.activeBillingAddress;
238
+ }), u = o(() => {
239
+ var d, C;
240
+ return (C = (d = n.data.value) == null ? void 0 : d.customer) == null ? void 0 : C.activeShippingAddress;
241
+ }), m = o(() => {
155
242
  var d;
156
- return ((d = n.data.value) == null ? void 0 : d.elements.filter(
157
- (v) => {
158
- var f;
159
- return v.id !== ((f = o.value) == null ? void 0 : f.id);
243
+ return ((d = t.data.value) == null ? void 0 : d.elements.filter(
244
+ (C) => {
245
+ var S;
246
+ return C.id !== ((S = i.value) == null ? void 0 : S.id);
160
247
  }
161
248
  )) ?? [];
162
- }), F = i(() => {
249
+ }), q = o(() => {
163
250
  var d;
164
- return ((d = n.data.value) == null ? void 0 : d.elements.filter(
165
- (v) => {
166
- var f;
167
- return v.id !== ((f = o.value) == null ? void 0 : f.id);
251
+ return ((d = t.data.value) == null ? void 0 : d.elements.filter(
252
+ (C) => {
253
+ var S;
254
+ return C.id !== ((S = i.value) == null ? void 0 : S.id);
168
255
  }
169
256
  )) ?? [];
170
257
  });
171
258
  return {
172
259
  contextUpdateMutation: e,
173
- contextQuery: s,
174
- addressListQuery: n,
175
- setBillingAddress: r,
176
- setShippingAddress: u,
177
- isSaving: t,
178
- activeBillingAddress: o,
179
- activeShippingAddress: a,
180
- inactiveBillingAddresses: p,
181
- inactiveShippingAddresses: F
260
+ contextQuery: n,
261
+ addressListQuery: t,
262
+ setBillingAddress: a,
263
+ setShippingAddress: r,
264
+ isSaving: s,
265
+ activeBillingAddress: i,
266
+ activeShippingAddress: u,
267
+ inactiveBillingAddresses: m,
268
+ inactiveShippingAddresses: q
182
269
  };
183
270
  }
184
- const ne = "readOrder post /order";
185
- function se(e) {
186
- const s = g(), n = x.detail(e);
187
- return A({
188
- queryKey: n,
189
- queryFn: async ({ signal: t }) => {
190
- const r = h(e);
191
- return s.query(ne, {
192
- ...r,
193
- signal: t
271
+ const ie = "readOrder post /order";
272
+ function ue(e) {
273
+ const n = v(), t = L.detail(e);
274
+ return M({
275
+ queryKey: t,
276
+ queryFn: async ({ signal: s }) => {
277
+ const a = g(e);
278
+ return n.query(ie, {
279
+ ...a,
280
+ signal: s
194
281
  });
195
- },
196
- enabled: !!e
282
+ }
197
283
  });
198
284
  }
199
- function re(e) {
200
- return O(se(e));
285
+ function oe(e) {
286
+ return O(ue(e));
201
287
  }
202
- function je(e, s) {
203
- const n = i(() => {
204
- const c = l(e);
205
- if (c)
288
+ function st(e, n) {
289
+ const t = o(() => {
290
+ const l = c(e);
291
+ if (l)
206
292
  return {
207
293
  body: {
208
294
  filter: [
209
295
  {
210
296
  type: "equals",
211
297
  field: "id",
212
- value: c
298
+ value: l
213
299
  }
214
300
  ],
215
- ...s,
301
+ ...n,
216
302
  checkPromotion: !0
217
303
  }
218
304
  };
219
- }), t = re(n.value), r = i(() => {
220
- var c, y, q, K;
221
- return (K = (q = (y = (c = t.data) == null ? void 0 : c.value) == null ? void 0 : y.orders) == null ? void 0 : q.elements) == null ? void 0 : K[0];
222
- }), u = i(() => {
223
- var c, y;
224
- return ((y = (c = t.data) == null ? void 0 : c.value) == null ? void 0 : y.paymentChangeable) || {};
225
- }), o = i(() => {
226
- var c, y, q;
227
- return (q = (y = (c = r.value) == null ? void 0 : c.stateMachineState) == null ? void 0 : y.translated) == null ? void 0 : q.name;
228
- }), a = i(() => {
229
- var c, y;
230
- return (y = (c = r.value) == null ? void 0 : c.stateMachineState) == null ? void 0 : y.technicalName;
231
- }), p = i(() => {
232
- var c, y;
233
- return (y = (c = r.value) == null ? void 0 : c.price) == null ? void 0 : y.totalPrice;
234
- }), F = i(() => {
235
- var c, y;
236
- return (y = (c = r.value) == null ? void 0 : c.price) == null ? void 0 : y.positionPrice;
237
- }), d = i(() => {
238
- var c;
239
- return (c = r.value) == null ? void 0 : c.shippingTotal;
240
- }), v = i(() => {
241
- var c, y, q, K, j, V;
305
+ }), s = oe(t.value), a = o(() => {
306
+ var l, p, f, F;
307
+ return (F = (f = (p = (l = s.data) == null ? void 0 : l.value) == null ? void 0 : p.orders) == null ? void 0 : f.elements) == null ? void 0 : F[0];
308
+ }), r = o(() => {
309
+ var l, p;
310
+ return ((p = (l = s.data) == null ? void 0 : l.value) == null ? void 0 : p.paymentChangeable) || {};
311
+ }), i = o(() => {
312
+ var l, p, f;
313
+ return (f = (p = (l = a.value) == null ? void 0 : l.stateMachineState) == null ? void 0 : p.translated) == null ? void 0 : f.name;
314
+ }), u = o(() => {
315
+ var l, p;
316
+ return (p = (l = a.value) == null ? void 0 : l.stateMachineState) == null ? void 0 : p.technicalName;
317
+ }), m = o(() => {
318
+ var l, p;
319
+ return (p = (l = a.value) == null ? void 0 : l.price) == null ? void 0 : p.totalPrice;
320
+ }), q = o(() => {
321
+ var l, p;
322
+ return (p = (l = a.value) == null ? void 0 : l.price) == null ? void 0 : p.positionPrice;
323
+ }), d = o(() => {
324
+ var l;
325
+ return (l = a.value) == null ? void 0 : l.shippingTotal;
326
+ }), C = o(() => {
327
+ var l, p, f, F, z, G;
242
328
  return {
243
- email: (y = (c = r.value) == null ? void 0 : c.orderCustomer) == null ? void 0 : y.email,
244
- firstName: (K = (q = r.value) == null ? void 0 : q.orderCustomer) == null ? void 0 : K.firstName,
245
- lastName: (V = (j = r.value) == null ? void 0 : j.orderCustomer) == null ? void 0 : V.lastName
329
+ email: (p = (l = a.value) == null ? void 0 : l.orderCustomer) == null ? void 0 : p.email,
330
+ firstName: (F = (f = a.value) == null ? void 0 : f.orderCustomer) == null ? void 0 : F.firstName,
331
+ lastName: (G = (z = a.value) == null ? void 0 : z.orderCustomer) == null ? void 0 : G.lastName
246
332
  };
247
- }), f = i(() => {
248
- var c, y;
249
- return (y = (c = r.value) == null ? void 0 : c.addresses) == null ? void 0 : y.find(
250
- ({ id: q }) => {
251
- var K;
252
- return q === ((K = r.value) == null ? void 0 : K.billingAddressId);
333
+ }), S = o(() => {
334
+ var l, p;
335
+ return (p = (l = a.value) == null ? void 0 : l.addresses) == null ? void 0 : p.find(
336
+ ({ id: f }) => {
337
+ var F;
338
+ return f === ((F = a.value) == null ? void 0 : F.billingAddressId);
253
339
  }
254
340
  );
255
- }), m = i(
341
+ }), y = o(
256
342
  () => {
257
- var c, y, q;
258
- return (q = (y = (c = r.value) == null ? void 0 : c.deliveries) == null ? void 0 : y[0]) == null ? void 0 : q.shippingOrderAddress;
259
- }
260
- ), C = i(() => {
261
- var y, q;
262
- const c = (y = r.value) == null ? void 0 : y.transactions;
263
- if (c != null && c.length)
264
- return (q = c.at(-1)) == null ? void 0 : q.paymentMethod;
265
- }), M = i(() => {
266
- var y, q;
267
- const c = (y = r.value) == null ? void 0 : y.deliveries;
268
- if (c != null && c.length)
269
- return (q = c.at(-1)) == null ? void 0 : q.shippingMethod;
270
- }), Q = i(() => {
271
- var y;
272
- const c = l(e);
273
- return ((y = u.value) == null ? void 0 : y[c]) ?? !1;
343
+ var l, p, f;
344
+ return (f = (p = (l = a.value) == null ? void 0 : l.deliveries) == null ? void 0 : p[0]) == null ? void 0 : f.shippingOrderAddress;
345
+ }
346
+ ), h = o(() => {
347
+ var p, f;
348
+ const l = (p = a.value) == null ? void 0 : p.transactions;
349
+ if (l != null && l.length)
350
+ return (f = l.at(-1)) == null ? void 0 : f.paymentMethod;
351
+ }), A = o(() => {
352
+ var p, f;
353
+ const l = (p = a.value) == null ? void 0 : p.deliveries;
354
+ if (l != null && l.length)
355
+ return (f = l.at(-1)) == null ? void 0 : f.shippingMethod;
356
+ }), K = o(() => {
357
+ var p;
358
+ const l = c(e);
359
+ return ((p = r.value) == null ? void 0 : p[l]) ?? !1;
274
360
  });
275
361
  return {
276
- order: r,
277
- status: o,
278
- statusTechnicalName: a,
279
- total: p,
280
- subtotal: F,
362
+ order: a,
363
+ status: i,
364
+ statusTechnicalName: u,
365
+ total: m,
366
+ subtotal: q,
281
367
  shippingCosts: d,
282
- shippingAddress: m,
283
- billingAddress: f,
284
- personalDetails: v,
285
- shippingMethod: M,
286
- paymentMethod: C,
287
- paymentChangeable: Q,
288
- orderQuery: t
368
+ shippingAddress: y,
369
+ billingAddress: S,
370
+ personalDetails: C,
371
+ shippingMethod: A,
372
+ paymentMethod: h,
373
+ paymentChangeable: K,
374
+ orderQuery: s
289
375
  };
290
376
  }
291
- function Ve(e) {
292
- const s = i(() => {
293
- var u, o;
294
- return (o = (u = l(e)) == null ? void 0 : u.transactions) == null ? void 0 : o.find((a) => {
295
- var p;
296
- return ((p = a.paymentMethod) == null ? void 0 : p.active) === !0;
377
+ function rt(e) {
378
+ const n = o(() => {
379
+ var r, i;
380
+ return (i = (r = c(e)) == null ? void 0 : r.transactions) == null ? void 0 : i.find((u) => {
381
+ var m;
382
+ return ((m = u.paymentMethod) == null ? void 0 : m.active) === !0;
297
383
  });
298
- }), n = i(() => {
299
- var u;
300
- return (u = s.value) == null ? void 0 : u.paymentMethod;
301
- }), t = i(() => {
302
- var u;
303
- return (u = s.value) == null ? void 0 : u.stateMachineState;
384
+ }), t = o(() => {
385
+ var r;
386
+ return (r = n.value) == null ? void 0 : r.paymentMethod;
387
+ }), s = o(() => {
388
+ var r;
389
+ return (r = n.value) == null ? void 0 : r.stateMachineState;
304
390
  });
305
391
  return {
306
- isAsynchronous: i(
392
+ isAsynchronous: o(
307
393
  () => {
308
- var u, o, a, p;
394
+ var r, i, u, m;
309
395
  return (
310
396
  // @ts-expect-error - This property does not seem to be declared in the typescript types
311
- ((o = (u = s.value) == null ? void 0 : u.paymentMethod) == null ? void 0 : o.asynchronous) && ((p = (a = s.value) == null ? void 0 : a.paymentMethod) == null ? void 0 : p.afterOrderEnabled)
397
+ ((i = (r = n.value) == null ? void 0 : r.paymentMethod) == null ? void 0 : i.asynchronous) && ((m = (u = n.value) == null ? void 0 : u.paymentMethod) == null ? void 0 : m.afterOrderEnabled)
312
398
  );
313
399
  }
314
400
  ),
315
- activeTransaction: s,
316
- state: t,
317
- paymentMethod: n
401
+ activeTransaction: n,
402
+ state: s,
403
+ paymentMethod: t
318
404
  };
319
405
  }
320
- const ue = "createCustomerAddress post /account/address";
321
- function $e(e) {
322
- const s = g(), n = P();
323
- return S({
406
+ const ce = "createCustomerAddress post /account/address";
407
+ function at(e) {
408
+ const n = v(), t = P();
409
+ return Q({
324
410
  ...e,
325
- mutationFn: async (t) => s.query(ue, h(t)),
326
- onSuccess: (t, r, u) => {
327
- var o, a;
328
- n.invalidateQueries({ queryKey: b.lists() }), (a = l((o = l(e)) == null ? void 0 : o.onSuccess)) == null || a(t, r, u);
411
+ mutationFn: async (s) => n.query(ce, g(s)),
412
+ onSuccess: async (s, a, r) => {
413
+ var i, u;
414
+ await t.invalidateQueries({ queryKey: R.lists() }), await ((u = c((i = c(e)) == null ? void 0 : i.onSuccess)) == null ? void 0 : u(s, a, r));
329
415
  }
330
416
  });
331
417
  }
332
- const oe = "deleteCustomerAddress delete /account/address/{addressId}";
333
- function ze(e) {
334
- const s = g(), n = P();
335
- return S({
418
+ const le = "deleteCustomerAddress delete /account/address/{addressId}";
419
+ function it(e) {
420
+ const n = v(), t = P();
421
+ return Q({
336
422
  ...e,
337
- mutationFn: async (t) => s.query(oe, h(t)),
338
- onSuccess: (t, r, u) => {
339
- var o, a;
340
- n.invalidateQueries({ queryKey: b.lists() }), (a = l((o = l(e)) == null ? void 0 : o.onSuccess)) == null || a(t, r, u);
423
+ mutationFn: async (s) => n.query(le, g(s)),
424
+ onSuccess: async (s, a, r) => {
425
+ var i, u;
426
+ await t.invalidateQueries({ queryKey: R.lists() }), await ((u = c((i = c(e)) == null ? void 0 : i.onSuccess)) == null ? void 0 : u(s, a, r));
341
427
  }
342
428
  });
343
429
  }
344
- const ae = "addLineItem post /checkout/cart/line-item";
345
- function we(e) {
346
- const s = g(), n = P();
347
- return S({
430
+ const de = "updateCustomerAddress patch /account/address/{addressId}";
431
+ function ut(e) {
432
+ const n = v(), t = P();
433
+ return Q({
348
434
  ...e,
349
- mutationFn: async (t) => s.query(ae, {
350
- body: t
351
- }),
352
- onSuccess: (t, r, u) => {
353
- var o;
354
- n.setQueryData(R.get(), t), (o = l(l(e).onSuccess)) == null || o(t, r, u);
435
+ mutationFn: async (s) => n.query(de, g(s)),
436
+ onSuccess: async (s, a, r) => {
437
+ var u, m;
438
+ const { addressId: i } = g(a).params;
439
+ t.setQueryData(R.detail(i), s), await Promise.all([
440
+ t.invalidateQueries({ queryKey: R.lists() }),
441
+ t.invalidateQueries({
442
+ queryKey: R.detail(g(a).params.addressId),
443
+ predicate: (q) => q.queryKey.at(-1) !== i
444
+ })
445
+ ]), await ((m = c((u = c(e)) == null ? void 0 : u.onSuccess)) == null ? void 0 : m(s, a, r));
355
446
  }
356
447
  });
357
448
  }
358
- const T = (e) => {
359
- const s = e.replace(/\/?$/, "");
360
- return s.startsWith("/") ? s.slice(1) : s;
361
- }, Ge = (e) => `/${T(e)}`;
362
- function He(e, s, n) {
363
- const t = P();
364
- return {
365
- onMutate: async (r) => {
366
- await t.cancelQueries({ queryKey: e });
367
- const u = t.getQueryData(e);
368
- if (t.setQueryData(e, (o) => s(r, o)), n) {
369
- const o = l(n), a = l(o.onMutate);
370
- a == null || a(r);
371
- }
372
- return { previousValue: u };
373
- },
374
- onError: (r, u, o) => {
375
- if (o && t.setQueryData(e, o.previousValue), n) {
376
- const a = l(n), p = l(a.onError);
377
- p == null || p(r, u, o);
378
- }
379
- },
380
- onSettled: (...r) => {
381
- if (t.invalidateQueries({ queryKey: e }), n) {
382
- const u = l(n), o = l(u.onSettled);
383
- o == null || o(...r);
384
- }
449
+ const ye = "addLineItem post /checkout/cart/line-item";
450
+ function ot(e) {
451
+ const n = v(), t = P();
452
+ return Q({
453
+ ...e,
454
+ mutationFn: async (s) => n.query(ye, {
455
+ body: s
456
+ }),
457
+ onSuccess: async (s, a, r) => {
458
+ var i, u;
459
+ t.setQueryData(I.get(), s), await ((u = c((i = c(e)) == null ? void 0 : i.onSuccess)) == null ? void 0 : u(s, a, r));
385
460
  }
386
- };
461
+ });
387
462
  }
388
- const ie = "readCart get /checkout/cart";
389
- function ce(e) {
390
- const s = g(), n = R.get();
391
- return A({
392
- queryKey: n,
393
- queryFn: async ({ signal: t }) => s.query(ie, {
394
- ...h(e),
395
- signal: t
463
+ const pe = "readCart get /checkout/cart";
464
+ function me(e) {
465
+ const n = v(), t = I.get();
466
+ return M({
467
+ queryKey: t,
468
+ queryFn: async ({ signal: s }) => n.query(pe, {
469
+ ...g(e),
470
+ signal: s
396
471
  })
397
472
  });
398
473
  }
399
- function We() {
400
- return O(ce());
474
+ function ct() {
475
+ return O(me());
401
476
  }
402
- const le = "removeLineItem post /checkout/cart/line-item/delete";
403
- function Je(e) {
404
- const s = g(), n = P();
405
- return S({
477
+ const ge = "removeLineItem post /checkout/cart/line-item/delete";
478
+ function lt(e) {
479
+ const n = v(), t = P();
480
+ return Q({
406
481
  ...e,
407
- mutationFn: async (t) => s.query(le, {
408
- body: t
482
+ mutationFn: async (s) => n.query(ge, {
483
+ body: s
409
484
  }),
410
- onSuccess: (t, r, u) => {
411
- var o, a;
412
- n.setQueryData(R.get(), t), (a = l((o = l(e)) == null ? void 0 : o.onSuccess)) == null || a(t, r, u);
485
+ onSuccess: async (s, a, r) => {
486
+ var i, u;
487
+ t.setQueryData(I.get(), s), await ((u = c((i = c(e)) == null ? void 0 : i.onSuccess)) == null ? void 0 : u(s, a, r));
413
488
  }
414
489
  });
415
490
  }
416
- const de = "updateLineItem patch /checkout/cart/line-item";
417
- function Xe(e) {
418
- const s = g(), n = P();
419
- return S({
491
+ const ve = "updateLineItem patch /checkout/cart/line-item";
492
+ function dt(e) {
493
+ const n = v(), t = P();
494
+ return Q({
420
495
  ...e,
421
- mutationFn: async (t) => s.query(de, {
422
- body: t
496
+ mutationFn: async (s) => n.query(ve, {
497
+ body: s
423
498
  }),
424
- onSuccess: (t, r, u) => {
425
- var o, a;
426
- n.setQueryData(R.get(), t), (a = l((o = l(e)) == null ? void 0 : o.onSuccess)) == null || a(t, r, u);
499
+ onSuccess: async (s, a, r) => {
500
+ var i, u;
501
+ t.setQueryData(I.get(), s), await ((u = c((i = c(e)) == null ? void 0 : i.onSuccess)) == null ? void 0 : u(s, a, r));
427
502
  }
428
503
  });
429
504
  }
430
- const Ye = () => {
431
- }, ye = "createOrder post /checkout/order";
432
- function Ze(e) {
433
- const s = g(), n = P();
434
- return S({
505
+ const yt = () => {
506
+ }, he = "createOrder post /checkout/order";
507
+ function pt(e) {
508
+ const n = v(), t = P();
509
+ return Q({
435
510
  ...e,
436
- mutationFn: async (t) => s.query(ye, h(t)),
437
- onSuccess: (t, r, u) => {
438
- var o, a;
439
- n.invalidateQueries({ queryKey: R.get() }), n.invalidateQueries({ queryKey: x.lists() }), (a = l((o = l(e)) == null ? void 0 : o.onSuccess)) == null || a(t, r, u);
511
+ mutationFn: async (s) => n.query(he, g(s)),
512
+ onSuccess: async (s, a, r) => {
513
+ var i, u;
514
+ await Promise.all([
515
+ // Clear cart after successful order creation
516
+ t.invalidateQueries({ queryKey: I.get() }),
517
+ // Invalidate order list to refetch data
518
+ t.invalidateQueries({ queryKey: L.lists() })
519
+ ]), await ((u = c((i = c(e)) == null ? void 0 : i.onSuccess)) == null ? void 0 : u(s, a, r));
520
+ }
521
+ });
522
+ }
523
+ const fe = "readCountry post /country", qe = function(n) {
524
+ const t = v(), s = T.list(n);
525
+ return M({
526
+ queryKey: s,
527
+ queryFn: async ({ signal: a }) => {
528
+ const r = g(n);
529
+ return t.query(fe, {
530
+ ...r,
531
+ signal: a
532
+ });
440
533
  }
441
534
  });
535
+ };
536
+ function mt(e) {
537
+ return O(qe(e));
442
538
  }
443
- const pe = "changeEmail post /account/change-email";
444
- function _e(e) {
445
- const s = g(), n = P();
446
- return S({
539
+ const Ce = "changeEmail post /account/change-email";
540
+ function gt(e) {
541
+ const n = v(), t = P();
542
+ return Q({
447
543
  ...e,
448
- mutationFn: async (t) => s.query(pe, h(t)),
449
- onSuccess: (t, r, u) => {
450
- var o, a;
451
- n.invalidateQueries({ queryKey: I.get() }), (a = l((o = l(e)) == null ? void 0 : o.onSuccess)) == null || a(t, r, u);
544
+ mutationFn: async (s) => n.query(Ce, g(s)),
545
+ onSuccess: async (s, a, r) => {
546
+ var i, u;
547
+ await t.invalidateQueries({ queryKey: x.all() }), await ((u = c((i = c(e)) == null ? void 0 : i.onSuccess)) == null ? void 0 : u(s, a, r));
452
548
  }
453
549
  });
454
550
  }
455
- const me = "changeProfile post /account/change-profile";
456
- function et(e) {
457
- const s = g(), n = P();
458
- return S({
551
+ const Se = "changeProfile post /account/change-profile";
552
+ function vt(e) {
553
+ const n = v(), t = P();
554
+ return Q({
459
555
  ...e,
460
- mutationFn: async (t) => s.query(me, h(t)),
461
- onSuccess: (t, r, u) => {
462
- var o, a;
463
- n.invalidateQueries({ queryKey: I.get() }), (a = l((o = l(e)) == null ? void 0 : o.onSuccess)) == null || a(t, r, u);
556
+ mutationFn: async (s) => n.query(Se, g(s)),
557
+ onSuccess: async (s, a, r) => {
558
+ var i, u;
559
+ await t.invalidateQueries({ queryKey: x.all() }), await ((u = c((i = c(e)) == null ? void 0 : i.onSuccess)) == null ? void 0 : u(s, a, r));
464
560
  }
465
561
  });
466
562
  }
467
- const ge = "loginCustomer post /account/login";
468
- function tt(e) {
469
- const s = g(), n = P();
470
- return S({
563
+ const Pe = "loginCustomer post /account/login";
564
+ function ht(e) {
565
+ const n = v(), t = P();
566
+ return Q({
471
567
  ...e,
472
- mutationFn: async (t) => {
473
- const r = await s.queryRaw(ge, {
474
- body: t
475
- }), u = r.headers.get("sw-context-token");
476
- return u && s.setContextToken(u), r.json();
568
+ mutationFn: async (s) => {
569
+ const a = await n.queryRaw(Pe, {
570
+ body: s
571
+ }), r = a.headers.get("sw-context-token");
572
+ return r && n.setContextToken(r), a.json();
477
573
  },
478
- onSuccess: (t, r, u) => {
479
- var o, a;
480
- n.invalidateQueries({ queryKey: U.all() }), n.invalidateQueries({ queryKey: R.get() }), n.invalidateQueries({ queryKey: I.get() }), (a = l((o = l(e)) == null ? void 0 : o.onSuccess)) == null || a(t, r, u);
574
+ onSuccess: async (s, a, r) => {
575
+ var i, u;
576
+ await Promise.all([
577
+ t.removeQueries({ queryKey: b.all() }),
578
+ t.invalidateQueries({ queryKey: I.get() }),
579
+ t.invalidateQueries({ queryKey: x.all() })
580
+ ]), await ((u = c((i = c(e)) == null ? void 0 : i.onSuccess)) == null ? void 0 : u(s, a, r));
481
581
  }
482
582
  });
483
583
  }
484
- const he = "logoutCustomer post /account/logout";
485
- function nt(e) {
486
- const s = g(), n = P();
487
- return S({
584
+ const Qe = "logoutCustomer post /account/logout";
585
+ function ft(e) {
586
+ const n = v(), t = P();
587
+ return Q({
488
588
  ...e,
489
- mutationFn: async (t) => s.query(he, h(t)),
490
- onSuccess: (t, r, u) => {
491
- var o, a;
492
- n.removeQueries({ queryKey: I.get() }), (a = l((o = l(e)) == null ? void 0 : o.onSuccess)) == null || a(t, r, u);
589
+ mutationFn: async (s) => n.query(Qe, g(s)),
590
+ onSuccess: async (s, a, r) => {
591
+ var i, u;
592
+ await Promise.all([
593
+ t.removeQueries({ queryKey: b.all() }),
594
+ t.invalidateQueries({ queryKey: I.get() }),
595
+ t.invalidateQueries({ queryKey: x.all() })
596
+ ]), await ((u = c((i = c(e)) == null ? void 0 : i.onSuccess)) == null ? void 0 : u(s, a, r));
493
597
  }
494
598
  });
495
599
  }
496
- const ve = "readCustomer post /account/customer";
497
- function fe(e) {
498
- const s = g(), n = I.get();
499
- return A({
500
- queryKey: n,
501
- queryFn: async () => s.query(ve, h(e))
600
+ const Me = "readCustomer post /account/customer";
601
+ function Oe(e) {
602
+ const n = v(), t = x.detail(o(() => g(e).body ?? {}));
603
+ return M({
604
+ queryKey: t,
605
+ queryFn: async () => n.query(Me, g(e))
502
606
  });
503
607
  }
504
- function Ce(e) {
505
- return O(fe(e));
608
+ function Ae(e) {
609
+ return O(Oe(e));
506
610
  }
507
- const qe = "register post /account/register";
508
- function st(e) {
509
- const s = g(), n = P();
510
- return S({
611
+ const Ke = "register post /account/register";
612
+ function qt(e) {
613
+ const n = v(), t = P();
614
+ return Q({
511
615
  ...e,
512
- mutationFn: async (t) => s.query(qe, h(t)),
513
- onSuccess: (t, r, u) => {
514
- var o, a;
515
- n.invalidateQueries({ queryKey: I.get() }), (a = l((o = l(e)) == null ? void 0 : o.onSuccess)) == null || a(t, r, u);
616
+ mutationFn: async (s) => n.query(Ke, g(s)),
617
+ onSuccess: async (s, a, r) => {
618
+ var i, u;
619
+ await t.invalidateQueries({ queryKey: x.all() }), await ((u = c((i = c(e)) == null ? void 0 : i.onSuccess)) == null ? void 0 : u(s, a, r));
516
620
  }
517
621
  });
518
622
  }
519
- const Pe = "readPaymentMethod post /payment-method";
520
- function Se(e) {
521
- const s = g(), n = D.list(i(() => {
522
- var t;
523
- return (t = h(e)) == null ? void 0 : t.body;
623
+ const Re = "readNavigation post /navigation/{activeId}/{rootId}", Fe = function(n, t, s) {
624
+ const a = v(), r = U.detail(n, t, s);
625
+ return M({
626
+ queryKey: r,
627
+ queryFn: async ({ signal: i }) => {
628
+ const u = c(n), m = c(t), q = g(s);
629
+ return a.query(Re, {
630
+ ...q,
631
+ params: {
632
+ activeId: u,
633
+ rootId: m
634
+ },
635
+ signal: i
636
+ });
637
+ }
638
+ });
639
+ };
640
+ function Ct(e, n, t) {
641
+ return O(Fe(e, n, t));
642
+ }
643
+ const Ie = "readPaymentMethod post /payment-method";
644
+ function we(e) {
645
+ const n = v(), t = B.list(o(() => {
646
+ var s;
647
+ return (s = g(e)) == null ? void 0 : s.body;
524
648
  }));
525
- return A({
526
- queryKey: n,
527
- queryFn: ({ signal: t }) => s.query(Pe, {
528
- ...h(e),
529
- signal: t
649
+ return M({
650
+ queryKey: t,
651
+ queryFn: ({ signal: s }) => n.query(Ie, {
652
+ ...g(e),
653
+ signal: s
530
654
  })
531
655
  });
532
656
  }
533
- function Me(e) {
534
- return O(Se(e));
657
+ function Le(e) {
658
+ return O(we(e));
535
659
  }
536
- const Qe = "handlePaymentMethod post /handle-payment";
537
- function rt(e) {
538
- const s = g();
539
- return S({
660
+ const xe = "handlePaymentMethod post /handle-payment";
661
+ function St(e) {
662
+ const n = v();
663
+ return Q({
540
664
  ...e,
541
- mutationFn: async (n) => s.query(Qe, h(n)),
542
- onSuccess: (n, t, r) => {
543
- var u, o;
544
- (o = l((u = l(e)) == null ? void 0 : u.onSuccess)) == null || o(n, t, r);
665
+ mutationFn: async (t) => n.query(xe, g(t)),
666
+ onSuccess: async (t, s, a) => {
667
+ var r, i;
668
+ await ((i = c((r = c(e)) == null ? void 0 : r.onSuccess)) == null ? void 0 : i(t, s, a));
545
669
  }
546
670
  });
547
671
  }
548
- const Ae = "orderSetPayment post /order/payment";
549
- function ut(e) {
550
- const s = g(), n = P();
551
- return S({
672
+ const Ue = "orderSetPayment post /order/payment";
673
+ function Pt(e) {
674
+ const n = v(), t = P();
675
+ return Q({
552
676
  ...e,
553
- mutationFn: async (t) => s.query(Ae, h(t)),
554
- onSuccess: (t, r, u) => {
555
- var o, a;
556
- n.invalidateQueries({ queryKey: x.all() }), (a = l((o = l(e)) == null ? void 0 : o.onSuccess)) == null || a(t, r, u);
677
+ mutationFn: async (s) => n.query(Ue, g(s)),
678
+ onSuccess: async (s, a, r) => {
679
+ var i, u;
680
+ await t.invalidateQueries({ queryKey: L.all() }), await ((u = c((i = c(e)) == null ? void 0 : i.onSuccess)) == null ? void 0 : u(s, a, r));
557
681
  }
558
682
  });
559
683
  }
560
- const Oe = "readCategoryList post /category", Fe = function(s) {
561
- const n = g(), t = B.list(s);
562
- return A({
563
- queryKey: t,
564
- queryFn: async ({ signal: r }) => n.query(Oe, {
565
- ...h(s),
566
- signal: r
684
+ const be = "readCategoryList post /category", ke = function(n) {
685
+ const t = v(), s = k.list(n);
686
+ return M({
687
+ queryKey: s,
688
+ queryFn: async ({ signal: a }) => t.query(be, {
689
+ ...g(n),
690
+ signal: a
567
691
  })
568
692
  });
569
693
  };
570
- function ot(e) {
571
- return O(Fe(e));
694
+ function Qt(e) {
695
+ return O(ke(e));
572
696
  }
573
- const Ke = "readCompactProductListing post /novu/headless/product-listing/{seoUrl}";
574
- function Le(e, s) {
575
- const n = g(), t = L.list(e, s);
576
- return A({
577
- queryKey: t,
578
- queryFn: async ({ signal: r }) => {
579
- const u = h(s);
580
- return n.query(Ke, {
581
- ...u,
697
+ const Ne = "readCompactProductListing post /novu/headless/product-listing/{seoUrl}";
698
+ function Be(e, n) {
699
+ const t = v(), s = w.list(e, n);
700
+ return M({
701
+ queryKey: s,
702
+ queryFn: async ({ signal: a }) => {
703
+ const r = g(n);
704
+ return t.query(Ne, {
705
+ ...r,
582
706
  params: {
583
- ...u.params,
584
- seoUrl: T(l(e))
707
+ ...r.params,
708
+ seoUrl: j(c(e))
585
709
  },
586
- signal: r
710
+ signal: a
587
711
  });
588
712
  }
589
713
  });
590
714
  }
591
- function at(e, s) {
592
- return O(Le(e, s));
715
+ function Mt(e, n) {
716
+ return O(Be(e, n));
593
717
  }
594
- const xe = "readCustomProductDetail post /novu/headless/product/{seoUrl}";
595
- function Re(e, s) {
596
- const n = g(), t = L.detail(e, s);
597
- return A({
598
- queryKey: t,
599
- queryFn: async ({ signal: r }) => {
600
- const u = h(s);
601
- return n.query(xe, {
602
- ...u,
718
+ const Ee = "readCustomProductDetail post /novu/headless/product/{seoUrl}";
719
+ function De(e, n) {
720
+ const t = v(), s = w.detail(e, n);
721
+ return M({
722
+ queryKey: s,
723
+ queryFn: async ({ signal: a }) => {
724
+ const r = g(n);
725
+ return t.query(Ee, {
726
+ ...r,
603
727
  params: {
604
- ...u.params,
605
- seoUrl: T(l(e))
728
+ ...r.params,
729
+ seoUrl: j(c(e))
606
730
  },
607
- signal: r
731
+ signal: a
732
+ });
733
+ }
734
+ });
735
+ }
736
+ function Ot(e, n) {
737
+ return O(De(e, n));
738
+ }
739
+ const Te = "readSalutation post /salutation", je = function(n) {
740
+ const t = v(), s = D.list(n);
741
+ return M({
742
+ queryKey: s,
743
+ queryFn: async ({ signal: a }) => {
744
+ const r = g(n);
745
+ return t.query(Te, {
746
+ ...r,
747
+ signal: a
608
748
  });
609
749
  }
610
750
  });
751
+ };
752
+ function At(e) {
753
+ return O(je(e));
611
754
  }
612
- function it(e, s) {
613
- return O(Re(e, s));
755
+ const Ve = "readSeoUrl post /seo-url", $e = function(n) {
756
+ const t = v(), s = E.list(n);
757
+ return M({
758
+ queryKey: s,
759
+ queryFn: async ({ signal: a }) => {
760
+ const r = g(n);
761
+ return t.query(Ve, {
762
+ ...r,
763
+ signal: a
764
+ });
765
+ }
766
+ });
767
+ };
768
+ function Kt(e) {
769
+ return O($e(e));
614
770
  }
615
- const Ie = "readShippingMethod post /shipping-method";
616
- function be(e) {
617
- const s = g(), n = E.list(i(() => {
618
- var t;
619
- return (t = h(e)) == null ? void 0 : t.body;
771
+ const ze = "readShippingMethod post /shipping-method";
772
+ function Ge(e) {
773
+ const n = v(), t = N.list(o(() => {
774
+ var s;
775
+ return (s = g(e)) == null ? void 0 : s.body;
620
776
  }));
621
- return A({
622
- queryKey: n,
623
- queryFn: ({ signal: t }) => s.query(Ie, {
624
- ...h(e),
625
- signal: t
777
+ return M({
778
+ queryKey: t,
779
+ queryFn: ({ signal: s }) => n.query(ze, {
780
+ ...g(e),
781
+ signal: s
626
782
  })
627
783
  });
628
784
  }
629
- function Ue(e) {
630
- return O(be(e));
785
+ function He(e) {
786
+ return O(Ge(e));
631
787
  }
632
- function ct() {
633
- const e = k(), s = N(), n = Me({
788
+ function Rt() {
789
+ const e = V(), n = $(), t = Le({
634
790
  query: {
635
- onlyActive: !0
791
+ onlyAvailable: !0
636
792
  }
637
- }), t = i(() => s.isPending.value), r = async (a) => s.mutateAsync({
638
- paymentMethodId: a
639
- }), u = i(() => {
640
- var a, p;
641
- return (p = (a = e.data) == null ? void 0 : a.value) == null ? void 0 : p.paymentMethod;
642
- }), o = i(() => {
643
- var a, p;
644
- return (p = (a = n.data) == null ? void 0 : a.value) == null ? void 0 : p.elements;
793
+ }), s = o(() => n.isPending.value), a = async (u) => n.mutateAsync({
794
+ paymentMethodId: u
795
+ }), r = o(() => {
796
+ var u, m;
797
+ return (m = (u = e.data) == null ? void 0 : u.value) == null ? void 0 : m.paymentMethod;
798
+ }), i = o(() => {
799
+ var u, m, q;
800
+ return ((q = (m = (u = t.data) == null ? void 0 : u.value) == null ? void 0 : m.elements) == null ? void 0 : q.sort((d, C) => (d.position ?? 0) - (C.position ?? 0))) ?? [];
645
801
  });
646
802
  return {
647
- contextUpdateMutation: s,
803
+ contextUpdateMutation: n,
648
804
  contextQuery: e,
649
- paymentMethodsQuery: n,
650
- activePaymentMethod: u,
651
- setPaymentMethod: r,
652
- isSaving: t,
653
- paymentMethods: o
805
+ paymentMethodsQuery: t,
806
+ activePaymentMethod: r,
807
+ setPaymentMethod: a,
808
+ isSaving: s,
809
+ paymentMethods: i
654
810
  };
655
811
  }
656
- function lt() {
657
- const e = k(), s = N(), n = Ue({
812
+ function Ft() {
813
+ const e = V(), n = $(), t = He({
658
814
  query: {
659
- onlyActive: !0
815
+ onlyAvailable: !0
660
816
  }
661
- }), t = i(() => s.isPending.value), r = async (a) => s.mutateAsync({
662
- shippingMethodId: a
663
- }), u = i(() => {
664
- var a, p;
665
- return (p = (a = e.data) == null ? void 0 : a.value) == null ? void 0 : p.shippingMethod;
666
- }), o = i(() => {
667
- var a, p;
668
- return (p = (a = n.data) == null ? void 0 : a.value) == null ? void 0 : p.elements;
817
+ }), s = o(() => n.isPending.value), a = async (u) => n.mutateAsync({
818
+ shippingMethodId: u
819
+ }), r = o(() => {
820
+ var u, m;
821
+ return (m = (u = e.data) == null ? void 0 : u.value) == null ? void 0 : m.shippingMethod;
822
+ }), i = o(() => {
823
+ var u, m;
824
+ return ((m = (u = t.data) == null ? void 0 : u.value) == null ? void 0 : m.elements.sort((q, d) => (q.position ?? 0) - (d.position ?? 0))) ?? [];
669
825
  });
670
826
  return {
671
- contextUpdateMutation: s,
827
+ contextUpdateMutation: n,
672
828
  contextQuery: e,
673
- shippingMethodsQuery: n,
674
- activeShippingMethod: u,
675
- setShippingMethod: r,
676
- isSaving: t,
677
- shippingMethods: o
829
+ shippingMethodsQuery: t,
830
+ activeShippingMethod: r,
831
+ setShippingMethod: a,
832
+ isSaving: s,
833
+ shippingMethods: i
678
834
  };
679
835
  }
680
- const ke = (e, s) => {
681
- var t;
682
- const n = (t = e.extensions) == null ? void 0 : t.novuSeoUrls;
683
- return (n == null ? void 0 : n[s]) ?? "";
684
- }, dt = (e, s) => i(() => ke(l(e), l(s)));
685
- function yt(e) {
686
- const { total: s, limit: n, page: t } = e ?? {}, r = W({
687
- page: t ?? 1,
688
- total: s ?? 0,
689
- limit: n
690
- }), u = i(() => r.limit === void 0 ? 1 : Math.max(1, Math.ceil(r.total / r.limit))), o = i({
836
+ const We = (e, n) => {
837
+ var s;
838
+ const t = (s = e.extensions) == null ? void 0 : s.novuSeoUrls;
839
+ return (t == null ? void 0 : t[n]) ?? "";
840
+ }, It = (e, n) => o(() => We(c(e), c(n)));
841
+ function wt(e) {
842
+ const { total: n, limit: t, page: s, totalCountMode: a } = e ?? {}, r = Z({
843
+ page: s ?? 1,
844
+ total: n ?? 0,
845
+ limit: t,
846
+ totalCountMode: a
847
+ }), i = o(() => r.limit === void 0 ? 1 : Math.max(1, Math.ceil(r.total / r.limit))), u = o({
691
848
  get() {
692
849
  return r.page;
693
850
  },
694
- set(v) {
695
- r.page = Math.max(1, Math.min(l(u), v));
851
+ set(S) {
852
+ r.page = Math.max(1, Math.min(c(i), S));
696
853
  }
697
854
  });
698
- $(
699
- [() => l(u), () => r],
700
- ([v, f]) => {
701
- r.page = Math.min(v, r.page), r.total = f.total ?? 0, r.limit = f.limit;
855
+ H(
856
+ [() => c(i), () => r],
857
+ ([S, y]) => {
858
+ r.page = Math.min(S, r.page), r.total = y.total ?? 0, r.limit = y.limit;
702
859
  }
703
860
  );
704
- const a = i(() => r.page === l(u)), p = i(() => r.page === 1), F = i(() => ({
861
+ const m = o(() => r.page === c(i)), q = o(() => r.page === 1), d = o(() => ({
705
862
  p: r.page,
706
- limit: r.limit
707
- })), d = (v) => {
708
- $(() => l(v), (f) => {
709
- r.total = (f == null ? void 0 : f.total) ?? 0, r.limit = (f == null ? void 0 : f.limit) ?? 0;
863
+ limit: r.limit,
864
+ "total-count-mode": r.totalCountMode ?? "none"
865
+ })), C = (S) => {
866
+ H(() => c(S), (y) => {
867
+ y && (r.total = (y == null ? void 0 : y.total) ?? 0, r.limit = (y == null ? void 0 : y.limit) ?? 0);
710
868
  });
711
869
  };
712
870
  return {
713
- page: l(o),
714
- total: z(r, "total"),
715
- limit: z(r, "limit"),
716
- pageCount: u,
717
- isLastPage: a,
718
- isFirstPage: p,
719
- usePaginationSync: d,
871
+ page: c(u),
872
+ total: W(r, "total"),
873
+ limit: W(r, "limit"),
874
+ pageCount: i,
875
+ isLastPage: m,
876
+ isFirstPage: q,
877
+ usePaginationSync: C,
720
878
  // This can be used to pass the pagination options directly to the query options
721
- queryOptions: F
879
+ queryOptions: d
722
880
  };
723
881
  }
724
- function G(e) {
725
- var n;
726
- if (!e || !((n = e.calculatedPrices) != null && n.length))
882
+ function X(e) {
883
+ var t;
884
+ if (!e || !((t = e.calculatedPrices) != null && t.length))
727
885
  return [];
728
- const s = e.calculatedPrices.length;
729
- return e.calculatedPrices.map(({ unitPrice: t, quantity: r }, u) => ({
730
- label: u === s - 1 ? `from ${r}` : `to ${r}`,
731
- quantity: r,
732
- unitPrice: t
886
+ const n = e.calculatedPrices.length;
887
+ return e.calculatedPrices.map(({ unitPrice: s, quantity: a }, r) => ({
888
+ label: r === n - 1 ? `from ${a}` : `to ${a}`,
889
+ quantity: a,
890
+ unitPrice: s
733
891
  }));
734
892
  }
735
- function pt(e) {
736
- const s = i(() => {
737
- var m;
738
- return (m = e.value) == null ? void 0 : m.calculatedCheapestPrice;
739
- }), n = i(
893
+ function Lt(e) {
894
+ const n = o(() => {
895
+ var y;
896
+ return (y = e.value) == null ? void 0 : y.calculatedCheapestPrice;
897
+ }), t = o(
740
898
  () => {
741
- var m, C, M, Q, c;
742
- return (((C = (m = e.value) == null ? void 0 : m.calculatedPrices) == null ? void 0 : C.length) ?? 0) > 0 ? (Q = (M = e.value) == null ? void 0 : M.calculatedPrices) == null ? void 0 : Q[0] : (c = e.value) == null ? void 0 : c.calculatedPrice;
743
- }
744
- ), t = i(() => {
745
- var m;
746
- return (m = n == null ? void 0 : n.value) == null ? void 0 : m.referencePrice;
747
- }), r = i(() => {
748
- var m, C;
749
- return (((C = (m = e.value) == null ? void 0 : m.calculatedPrices) == null ? void 0 : C.length) ?? 0) > 1;
750
- }), u = i(
899
+ var y, h, A, K, l;
900
+ return (((h = (y = e.value) == null ? void 0 : y.calculatedPrices) == null ? void 0 : h.length) ?? 0) > 0 ? (K = (A = e.value) == null ? void 0 : A.calculatedPrices) == null ? void 0 : K[0] : (l = e.value) == null ? void 0 : l.calculatedPrice;
901
+ }
902
+ ), s = o(() => {
903
+ var y;
904
+ return (y = t == null ? void 0 : t.value) == null ? void 0 : y.referencePrice;
905
+ }), a = o(() => {
906
+ var y, h;
907
+ return (((h = (y = e.value) == null ? void 0 : y.calculatedPrices) == null ? void 0 : h.length) ?? 0) > 1;
908
+ }), r = o(
751
909
  () => {
752
- var m, C, M, Q, c, y;
753
- return !!((m = e.value) != null && m.parentId) && ((M = (C = e.value) == null ? void 0 : C.calculatedCheapestPrice) == null ? void 0 : M.hasRange) && ((Q = n == null ? void 0 : n.value) == null ? void 0 : Q.unitPrice) !== ((c = s == null ? void 0 : s.value) == null ? void 0 : c.unitPrice) && ((y = s == null ? void 0 : s.value) == null ? void 0 : y.unitPrice);
910
+ var y, h, A, K, l, p;
911
+ return !!((y = e.value) != null && y.parentId) && ((A = (h = e.value) == null ? void 0 : h.calculatedCheapestPrice) == null ? void 0 : A.hasRange) && ((K = t == null ? void 0 : t.value) == null ? void 0 : K.unitPrice) !== ((l = n == null ? void 0 : n.value) == null ? void 0 : l.unitPrice) && ((p = n == null ? void 0 : n.value) == null ? void 0 : p.unitPrice);
754
912
  }
755
- ), o = i(
913
+ ), i = o(
756
914
  () => {
757
- var m, C;
758
- return r.value && G(e.value).length > 1 ? (C = (m = e.value) == null ? void 0 : m.calculatedPrices) == null ? void 0 : C.reduce((M, Q) => Q.unitPrice < M.unitPrice ? Q : M) : n.value;
915
+ var y, h;
916
+ return a.value && X(e.value).length > 1 ? (h = (y = e.value) == null ? void 0 : y.calculatedPrices) == null ? void 0 : h.reduce((A, K) => K.unitPrice < A.unitPrice ? K : A) : t.value;
759
917
  }
760
- ), a = i(
918
+ ), u = o(
761
919
  () => {
762
- var m;
763
- return (m = o.value) == null ? void 0 : m.unitPrice;
920
+ var y;
921
+ return (y = i.value) == null ? void 0 : y.unitPrice;
764
922
  }
765
- ), p = i(
923
+ ), m = o(
766
924
  () => {
767
- var m;
768
- return (m = o.value) == null ? void 0 : m.totalPrice;
769
- }
770
- ), F = i(
771
- () => o.value
772
- ), d = i(() => {
773
- var m, C;
774
- return !!((C = (m = o.value) == null ? void 0 : m.listPrice) != null && C.percentage);
775
- }), v = i(
925
+ var y;
926
+ return (y = i.value) == null ? void 0 : y.totalPrice;
927
+ }
928
+ ), q = o(
929
+ () => i.value
930
+ ), d = o(() => {
931
+ var y, h;
932
+ return !!((h = (y = i.value) == null ? void 0 : y.listPrice) != null && h.percentage);
933
+ }), C = o(
776
934
  () => {
777
- var m, C, M;
778
- return (M = (C = (m = e.value) == null ? void 0 : m.calculatedPrice) == null ? void 0 : C.regulationPrice) == null ? void 0 : M.price;
935
+ var y, h, A;
936
+ return (A = (h = (y = e.value) == null ? void 0 : y.calculatedPrice) == null ? void 0 : h.regulationPrice) == null ? void 0 : A.price;
779
937
  }
780
- ), f = i(() => G(e.value));
938
+ ), S = o(() => X(e.value));
781
939
  return {
782
- price: F,
783
- totalPrice: p,
784
- unitPrice: a,
785
- displayFromVariants: u,
786
- displayFrom: r,
787
- tierPrices: f,
788
- referencePrice: t,
940
+ price: q,
941
+ totalPrice: m,
942
+ unitPrice: u,
943
+ displayFromVariants: r,
944
+ displayFrom: a,
945
+ tierPrices: S,
946
+ referencePrice: s,
789
947
  isListPrice: d,
790
- regulationPrice: v
948
+ regulationPrice: C
791
949
  };
792
950
  }
793
- function Be(e, s) {
794
- var t;
795
- const n = (t = e.extensions) == null ? void 0 : t.variants;
796
- return s.length === 0 ? (n == null ? void 0 : n.find((r) => {
797
- var u;
798
- return ((u = r.optionIds) == null ? void 0 : u.length) === 0;
799
- })) ?? (n == null ? void 0 : n[0]) : n == null ? void 0 : n.find((r) => {
800
- var u;
801
- return (u = r.optionIds) == null ? void 0 : u.every((o) => s.includes(o));
951
+ function Je(e, n) {
952
+ var s;
953
+ const t = (s = e.extensions) == null ? void 0 : s.variants;
954
+ return n.length === 0 ? (t == null ? void 0 : t.find((a) => {
955
+ var r;
956
+ return ((r = a.optionIds) == null ? void 0 : r.length) === 0;
957
+ })) ?? (t == null ? void 0 : t[0]) : t == null ? void 0 : t.find((a) => {
958
+ var r;
959
+ return (r = a.optionIds) == null ? void 0 : r.every((i) => n.includes(i));
802
960
  });
803
961
  }
804
- function mt(e, s) {
805
- return i(() => Be(l(e), l(s)));
962
+ function xt(e, n) {
963
+ return o(() => Je(c(e), c(n)));
806
964
  }
807
- function gt() {
808
- const { data: e } = k();
809
- return i(() => {
810
- var s, n, t, r, u, o;
811
- return !!((n = (s = e.value) == null ? void 0 : s.customer) != null && n.id) && !!((r = (t = e.value) == null ? void 0 : t.customer) != null && r.active) && !((o = (u = e.value) == null ? void 0 : u.customer) != null && o.guest);
965
+ function Ut(e) {
966
+ return o(() => {
967
+ var n, t, s, a, r, i;
968
+ return !!((t = (n = c(e)) == null ? void 0 : n.customer) != null && t.id) && !!((a = (s = c(e)) == null ? void 0 : s.customer) != null && a.active) && !((i = (r = c(e)) == null ? void 0 : r.customer) != null && i.guest);
812
969
  });
813
970
  }
814
- function ht(e) {
815
- const s = Ce(e ? { body: e } : void 0), n = i(() => {
971
+ function bt(e) {
972
+ const n = Ae(e ? { body: e } : void 0), t = o(() => {
816
973
  var d;
817
- return (d = s.data) == null ? void 0 : d.value;
818
- }), t = i(
974
+ return (d = n.data) == null ? void 0 : d.value;
975
+ }), s = o(
819
976
  () => {
820
977
  var d;
821
- return !!((d = n.value) != null && d.id) && !!n.value.active && !n.value.guest;
978
+ return !!((d = t.value) != null && d.id) && !!t.value.active && !t.value.guest;
822
979
  }
823
- ), r = i(
980
+ ), a = o(
824
981
  () => {
825
982
  var d;
826
- return !!((d = n.value) != null && d.id) && !n.value.guest;
983
+ return !!((d = t.value) != null && d.id) && !t.value.guest;
827
984
  }
828
- ), u = i(() => {
985
+ ), r = o(() => {
829
986
  var d;
830
- return !!((d = n.value) != null && d.guest);
831
- }), o = i(
987
+ return !!((d = t.value) != null && d.guest);
988
+ }), i = o(
832
989
  () => {
833
990
  var d;
834
- return ((d = n.value) == null ? void 0 : d.defaultBillingAddressId) || null;
991
+ return ((d = t.value) == null ? void 0 : d.defaultBillingAddressId) || null;
835
992
  }
836
- ), a = i(
993
+ ), u = o(
837
994
  () => {
838
995
  var d;
839
- return ((d = n.value) == null ? void 0 : d.defaultShippingAddressId) || null;
996
+ return ((d = t.value) == null ? void 0 : d.defaultShippingAddressId) || null;
840
997
  }
841
- ), p = i(
998
+ ), m = o(
842
999
  () => {
843
1000
  var d;
844
- return ((d = n.value) == null ? void 0 : d.defaultBillingAddress) || null;
1001
+ return ((d = t.value) == null ? void 0 : d.defaultBillingAddress) || null;
845
1002
  }
846
- ), F = i(
1003
+ ), q = o(
847
1004
  () => {
848
1005
  var d;
849
- return ((d = n.value) == null ? void 0 : d.defaultShippingAddress) || null;
1006
+ return ((d = t.value) == null ? void 0 : d.defaultShippingAddress) || null;
850
1007
  }
851
1008
  );
852
1009
  return {
853
1010
  // Computed properties
854
- user: n,
855
- isLoggedIn: t,
856
- isCustomerSession: r,
857
- isGuestSession: u,
858
- defaultBillingAddressId: o,
859
- defaultShippingAddressId: a,
860
- userDefaultBillingAddress: p,
861
- userDefaultShippingAddress: F,
1011
+ user: t,
1012
+ isLoggedIn: s,
1013
+ isCustomerSession: a,
1014
+ isGuestSession: r,
1015
+ defaultBillingAddressId: i,
1016
+ defaultShippingAddressId: u,
1017
+ userDefaultBillingAddress: m,
1018
+ userDefaultShippingAddress: q,
862
1019
  // Expose queries and mutations directly
863
- customerQuery: s
1020
+ customerQuery: n
864
1021
  };
865
1022
  }
866
1023
  export {
867
- Ge as absolutizeSeoUrl,
868
- b as addressKeys,
869
- R as cartKeys,
870
- B as categoryKeys,
871
- U as contextKeys,
872
- I as customerKeys,
873
- Be as getProductVariantForOptions,
874
- ke as getSeoUrl,
875
- x as orderKeys,
876
- D as paymentKeys,
877
- L as productKeys,
878
- Pe as readPaymentMethodOperation,
879
- Ie as readShippingMethodOperation,
880
- T as relativizeSeoUrl,
881
- E as shippingKeys,
882
- J as shopwareClientKey,
883
- h as unrefOptions,
884
- we as useAddLineItemMutation,
885
- _e as useChangeEmailMutation,
886
- et as useChangeProfileMutation,
887
- Ye as useCheckout,
888
- Te as useCheckoutAddresses,
889
- $e as useCreateCustomerAddressMutation,
890
- Ze as useCreateOrderMutation,
891
- ze as useDeleteCustomerAddressMutation,
892
- rt as useHandlePaymentMutation,
893
- gt as useIsLoggedIn,
894
- Z as useListAddressQuery,
895
- Y as useListAddressQueryOptions,
896
- tt as useLoginCustomerMutation,
897
- nt as useLogoutCustomerMutation,
898
- He as useOptimistic,
899
- je as useOrderDetails,
900
- Ve as useOrderPayment,
901
- ut as useOrderSetPaymentMutation,
902
- yt as usePagination,
903
- ct as usePaymentMethods,
904
- pt as useProductPrice,
905
- mt as useProductVariantForOptions,
906
- We as useReadCartQuery,
907
- ce as useReadCartQueryOptions,
908
- ot as useReadCategoryListQuery,
909
- Fe as useReadCategoryListQueryOptions,
910
- at as useReadCompactProductListingQuery,
911
- Le as useReadCompactProductListingQueryOptions,
912
- ee as useReadContext,
913
- k as useReadContextQuery,
914
- Re as useReadCustomProductDetailOptions,
915
- it as useReadCustomProductDetailQuery,
916
- Ce as useReadCustomerQuery,
917
- fe as useReadCustomerQueryOptions,
918
- re as useReadOrderQuery,
919
- se as useReadOrderQueryOptions,
920
- Me as useReadPaymentMethodQuery,
921
- Se as useReadPaymentMethodQueryOptions,
922
- Ue as useReadShippingMethodQuery,
923
- be as useReadShippingMethodQueryOptions,
924
- st as useRegisterCustomerMutation,
925
- Je as useRemoveLineItemMutation,
926
- dt as useSeoUrl,
927
- lt as useShippingMethods,
928
- g as useShopwareQueryClient,
929
- N as useUpdateContextMutation,
930
- Xe as useUpdateLineItemMutation,
931
- ht as useUser
1024
+ et as absolutizeSeoUrl,
1025
+ R as addressKeys,
1026
+ I as cartKeys,
1027
+ k as categoryKeys,
1028
+ b as contextKeys,
1029
+ T as countryKeys,
1030
+ x as customerKeys,
1031
+ Je as getProductVariantForOptions,
1032
+ We as getSeoUrl,
1033
+ U as navigationKeys,
1034
+ L as orderKeys,
1035
+ B as paymentKeys,
1036
+ w as productKeys,
1037
+ Ie as readPaymentMethodOperation,
1038
+ ze as readShippingMethodOperation,
1039
+ j as relativizeSeoUrl,
1040
+ D as salutationKeys,
1041
+ E as seoUrlKeys,
1042
+ N as shippingKeys,
1043
+ _ as shopwareClientKey,
1044
+ g as unrefOptions,
1045
+ ot as useAddLineItemMutation,
1046
+ gt as useChangeEmailMutation,
1047
+ vt as useChangeProfileMutation,
1048
+ yt as useCheckout,
1049
+ nt as useCheckoutAddresses,
1050
+ at as useCreateCustomerAddressMutation,
1051
+ pt as useCreateOrderMutation,
1052
+ it as useDeleteCustomerAddressMutation,
1053
+ St as useHandlePaymentMutation,
1054
+ Ut as useIsLoggedIn,
1055
+ ne as useListAddressQuery,
1056
+ te as useListAddressQueryOptions,
1057
+ ht as useLoginCustomerMutation,
1058
+ ft as useLogoutCustomerMutation,
1059
+ tt as useOptimistic,
1060
+ st as useOrderDetails,
1061
+ rt as useOrderPayment,
1062
+ Pt as useOrderSetPaymentMutation,
1063
+ wt as usePagination,
1064
+ Rt as usePaymentMethods,
1065
+ Lt as useProductPrice,
1066
+ xt as useProductVariantForOptions,
1067
+ ct as useReadCartQuery,
1068
+ me as useReadCartQueryOptions,
1069
+ Qt as useReadCategoryListQuery,
1070
+ ke as useReadCategoryListQueryOptions,
1071
+ Mt as useReadCompactProductListingQuery,
1072
+ Be as useReadCompactProductListingQueryOptions,
1073
+ V as useReadContextQuery,
1074
+ re as useReadContextQueryOptions,
1075
+ mt as useReadCountryQuery,
1076
+ qe as useReadCountryQueryOptions,
1077
+ De as useReadCustomProductDetailOptions,
1078
+ Ot as useReadCustomProductDetailQuery,
1079
+ Ae as useReadCustomerQuery,
1080
+ Oe as useReadCustomerQueryOptions,
1081
+ Ct as useReadNavigationQuery,
1082
+ Fe as useReadNavigationQueryOptions,
1083
+ oe as useReadOrderQuery,
1084
+ ue as useReadOrderQueryOptions,
1085
+ Le as useReadPaymentMethodQuery,
1086
+ we as useReadPaymentMethodQueryOptions,
1087
+ At as useReadSalutationQuery,
1088
+ je as useReadSalutationQueryOptions,
1089
+ Kt as useReadSeoUrlQuery,
1090
+ $e as useReadSeoUrlQueryOptions,
1091
+ He as useReadShippingMethodQuery,
1092
+ Ge as useReadShippingMethodQueryOptions,
1093
+ qt as useRegisterCustomerMutation,
1094
+ lt as useRemoveLineItemMutation,
1095
+ It as useSeoUrl,
1096
+ Ft as useShippingMethods,
1097
+ v as useShopwareQueryClient,
1098
+ $ as useUpdateContextMutation,
1099
+ ut as useUpdateCustomerAddressMutation,
1100
+ dt as useUpdateLineItemMutation,
1101
+ bt as useUser
932
1102
  };