@teamnovu/kit-shopware-composables 0.0.7 → 0.0.9

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