@teamnovu/kit-shopware-composables 0.0.7 → 0.0.8

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