@teamnovu/kit-shopware-composables 0.0.6 → 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 (59) hide show
  1. package/dist/helpers/checkout/index.d.ts +1 -1
  2. package/dist/helpers/checkout/{useAddresses.d.ts → useCheckoutAddresses.d.ts} +6 -16
  3. package/dist/helpers/checkout/useOrderDetails.d.ts +7 -163
  4. package/dist/helpers/checkout/useOrderPayment.d.ts +4 -37
  5. package/dist/helpers/checkout/usePaymentMethods.d.ts +7 -19
  6. package/dist/helpers/checkout/useShippingMethods.d.ts +7 -19
  7. package/dist/helpers/types/schema.d.ts +5 -0
  8. package/dist/index.mjs +681 -574
  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/index.d.ts +0 -1
  15. package/dist/query/checkout/useCreateOrderMutation.d.ts +2 -278
  16. package/dist/query/context/useUpdateContextMutation.d.ts +5 -15
  17. package/dist/query/customer/index.d.ts +7 -0
  18. package/dist/query/customer/useChangeEmailMutation.d.ts +1 -11
  19. package/dist/query/customer/useChangePasswordMutation.d.ts +6 -0
  20. package/dist/query/customer/useChangeProfileMutation.d.ts +1 -11
  21. package/dist/query/customer/useDefaultBillingAddressMutation.d.ts +6 -0
  22. package/dist/query/customer/useDefaultShippingAddressMutation.d.ts +6 -0
  23. package/dist/query/customer/useDeleteCustomerMutation.d.ts +6 -0
  24. package/dist/query/customer/useLoginCustomerMutation.d.ts +5 -15
  25. package/dist/query/customer/useLogoutCustomerMutation.d.ts +1 -11
  26. package/dist/query/customer/useRecoveryPasswordMutation.d.ts +6 -0
  27. package/dist/query/customer/useRegisterConfirmMutation.d.ts +21 -0
  28. package/dist/query/customer/useRegisterCustomerMutation.d.ts +1 -262
  29. package/dist/query/customer/useSendRecoveryMailMutation.d.ts +6 -0
  30. package/dist/query/payment/useHandlePaymentMutation.d.ts +1 -11
  31. package/dist/query/payment/useOrderSetPaymentMutation.d.ts +1 -11
  32. package/dist/query/types/query.d.ts +2 -2
  33. package/dist/util/index.d.ts +1 -0
  34. package/dist/util/isAsynchronous.d.ts +3 -0
  35. package/docs/index.md +3 -3
  36. package/package.json +2 -2
  37. package/src/helpers/checkout/index.ts +1 -1
  38. package/src/helpers/checkout/{useAddresses.ts → useCheckoutAddresses.ts} +1 -1
  39. package/src/helpers/checkout/useOrderDetails.ts +8 -8
  40. package/src/helpers/checkout/useOrderPayment.ts +6 -10
  41. package/src/helpers/types/schema.ts +11 -0
  42. package/src/query/checkout/index.ts +0 -1
  43. package/src/query/checkout/useCreateOrderMutation.ts +2 -2
  44. package/src/query/customer/index.ts +7 -0
  45. package/src/query/customer/useChangeEmailMutation.ts +2 -1
  46. package/src/query/customer/useChangePasswordMutation.ts +28 -0
  47. package/src/query/customer/useChangeProfileMutation.ts +5 -2
  48. package/src/query/customer/useDefaultBillingAddressMutation.ts +35 -0
  49. package/src/query/customer/useDefaultShippingAddressMutation.ts +35 -0
  50. package/src/query/customer/useDeleteCustomerMutation.ts +36 -0
  51. package/src/query/customer/useRecoveryPasswordMutation.ts +28 -0
  52. package/src/query/customer/useRegisterConfirmMutation.ts +37 -0
  53. package/src/query/customer/useSendRecoveryMailMutation.ts +28 -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
  58. package/dist/query/checkout/useCheckout.d.ts +0 -1
  59. package/src/query/checkout/useCheckout.ts +0 -2
package/dist/index.mjs CHANGED
@@ -1,15 +1,15 @@
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
14
  }, k = {
15
15
  all: () => ["category"],
@@ -21,273 +21,280 @@ const b = {
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
- }, N = {
79
+ details: () => [...w.all(), "detail"],
80
+ detail: (e, s) => [...w.details(), e, ...s ? [{ body: s }] : []]
81
+ }, B = {
82
82
  all: () => ["shippingMethod"],
83
- lists: () => [...N.all(), "list"],
83
+ lists: () => [...B.all(), "list"],
84
84
  list: (e) => [
85
- ...N.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 = i.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,583 +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
- const yt = () => {
506
- }, he = "createOrder post /checkout/order";
507
- function pt(e) {
508
- const n = v(), t = P();
509
- return Q({
504
+ const he = "createOrder post /checkout/order";
505
+ function Ct(e) {
506
+ const s = g(), t = S();
507
+ return v({
510
508
  ...e,
511
- mutationFn: async (s) => n.query(he, g(s)),
512
- onSuccess: async (s, a, r) => {
513
- var i, u;
509
+ mutationFn: async (n) => s.query(he, m(n)),
510
+ onSuccess: async (n, a, r) => {
511
+ var o, u;
514
512
  await Promise.all([
515
513
  // Clear cart after successful order creation
516
- t.invalidateQueries({ queryKey: I.get() }),
514
+ t.invalidateQueries({ queryKey: L.get() }),
517
515
  // Invalidate order list to refetch data
518
- t.invalidateQueries({ queryKey: L.lists() })
519
- ]), await ((u = c((i = c(e)) == null ? void 0 : i.onSuccess)) == null ? void 0 : u(s, a, r));
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));
520
518
  }
521
519
  });
522
520
  }
523
- const fe = "readCountry post /country", qe = function(n) {
524
- const t = v(), s = T.list(n);
521
+ const qe = "readCountry post /country", Ce = function(s) {
522
+ const t = g(), n = j.list(s);
525
523
  return M({
526
- queryKey: s,
524
+ queryKey: n,
527
525
  queryFn: async ({ signal: a }) => {
528
- const r = g(n);
529
- return t.query(fe, {
526
+ const r = m(s);
527
+ return t.query(qe, {
530
528
  ...r,
531
529
  signal: a
532
530
  });
533
531
  }
534
532
  });
535
533
  };
536
- function mt(e) {
537
- return O(qe(e));
534
+ function St(e) {
535
+ return O(Ce(e));
538
536
  }
539
- const Ce = "changeEmail post /account/change-email";
540
- function gt(e) {
541
- const n = v(), t = P();
542
- return Q({
537
+ const Se = "changeEmail post /account/change-email";
538
+ function Pt(e) {
539
+ const s = g(), t = S();
540
+ return v({
543
541
  ...e,
544
- mutationFn: async (s) => n.query(Ce, g(s)),
545
- onSuccess: async (s, a, r) => {
546
- var i, u;
547
- await t.invalidateQueries({ queryKey: x.all() }), await ((u = c((i = c(e)) == null ? void 0 : i.onSuccess)) == null ? void 0 : u(s, a, r));
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));
548
546
  }
549
547
  });
550
548
  }
551
- const Se = "changeProfile post /account/change-profile";
552
- function vt(e) {
553
- const n = v(), t = P();
554
- return Q({
549
+ const Pe = "changeProfile post /account/change-profile";
550
+ function Qt(e) {
551
+ const s = g(), t = S();
552
+ return v({
555
553
  ...e,
556
- mutationFn: async (s) => n.query(Se, g(s)),
557
- onSuccess: async (s, a, r) => {
558
- var i, u;
559
- await t.invalidateQueries({ queryKey: x.all() }), await ((u = c((i = c(e)) == null ? void 0 : i.onSuccess)) == null ? void 0 : u(s, a, r));
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));
560
561
  }
561
562
  });
562
563
  }
563
- const Pe = "loginCustomer post /account/login";
564
- function ht(e) {
565
- const n = v(), t = P();
566
- return Q({
564
+ const Qe = "loginCustomer post /account/login";
565
+ function Mt(e) {
566
+ const s = g(), t = S();
567
+ return v({
567
568
  ...e,
568
- mutationFn: async (s) => {
569
- const a = await n.queryRaw(Pe, {
570
- body: s
569
+ mutationFn: async (n) => {
570
+ const a = await s.queryRaw(Qe, {
571
+ body: n
571
572
  }), r = a.headers.get("sw-context-token");
572
- return r && n.setContextToken(r), a.json();
573
+ return r && s.setContextToken(r), a.json();
573
574
  },
574
- onSuccess: async (s, a, r) => {
575
- var i, u;
575
+ onSuccess: async (n, a, r) => {
576
+ var o, u;
576
577
  await Promise.all([
577
- t.removeQueries({ queryKey: b.all() }),
578
- t.invalidateQueries({ queryKey: I.get() }),
579
- t.invalidateQueries({ queryKey: x.all() })
580
- ]), await ((u = c((i = c(e)) == null ? void 0 : i.onSuccess)) == null ? void 0 : u(s, a, r));
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));
581
582
  }
582
583
  });
583
584
  }
584
- const Qe = "logoutCustomer post /account/logout";
585
- function ft(e) {
586
- const n = v(), t = P();
587
- return Q({
585
+ const Me = "logoutCustomer post /account/logout";
586
+ function Ot(e) {
587
+ const s = g(), t = S();
588
+ return v({
588
589
  ...e,
589
- mutationFn: async (s) => n.query(Qe, g(s)),
590
- onSuccess: async (s, a, r) => {
591
- var i, u;
590
+ mutationFn: async (n) => s.query(Me, m(n)),
591
+ onSuccess: async (n, a, r) => {
592
+ var o, u;
592
593
  await Promise.all([
593
- t.removeQueries({ queryKey: b.all() }),
594
- t.invalidateQueries({ queryKey: I.get() }),
595
- t.invalidateQueries({ queryKey: x.all() })
596
- ]), await ((u = c((i = c(e)) == null ? void 0 : i.onSuccess)) == null ? void 0 : u(s, a, r));
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));
597
598
  }
598
599
  });
599
600
  }
600
- const Me = "readCustomer post /account/customer";
601
- function Oe(e) {
602
- 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 ?? {}));
603
604
  return M({
604
605
  queryKey: t,
605
- queryFn: async () => n.query(Me, g(e))
606
+ queryFn: async () => s.query(Oe, m(e))
606
607
  });
607
608
  }
608
- function Ae(e) {
609
- return O(Oe(e));
609
+ function Ke(e) {
610
+ return O(Ae(e));
610
611
  }
611
- const Ke = "register post /account/register";
612
- function qt(e) {
613
- const n = v(), t = P();
614
- 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({
643
+ ...e,
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));
651
+ }
652
+ });
653
+ }
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({
615
703
  ...e,
616
- mutationFn: async (s) => n.query(Ke, g(s)),
617
- onSuccess: async (s, a, r) => {
618
- var i, u;
619
- await t.invalidateQueries({ queryKey: x.all() }), await ((u = c((i = c(e)) == null ? void 0 : i.onSuccess)) == null ? void 0 : u(s, a, r));
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));
620
708
  }
621
709
  });
622
710
  }
623
- const Re = "readNavigation post /navigation/{activeId}/{rootId}", Fe = function(n, t, s) {
624
- const a = v(), r = U.detail(n, t, s);
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);
625
725
  return M({
626
726
  queryKey: r,
627
- queryFn: async ({ signal: i }) => {
628
- const u = c(n), m = c(t), q = g(s);
629
- return a.query(Re, {
630
- ...q,
727
+ queryFn: async ({ signal: o }) => {
728
+ const u = i(s), f = i(t), C = m(n);
729
+ return a.query(ke, {
730
+ ...C,
631
731
  params: {
632
732
  activeId: u,
633
- rootId: m
733
+ rootId: f
634
734
  },
635
- signal: i
735
+ signal: o
636
736
  });
637
737
  }
638
738
  });
639
739
  };
640
- function Ct(e, n, t) {
641
- return O(Fe(e, n, t));
740
+ function Ut(e, s, t) {
741
+ return O(Be(e, s, t));
642
742
  }
643
- const Ie = "readPaymentMethod post /payment-method";
644
- function we(e) {
645
- const n = v(), t = B.list(o(() => {
646
- var s;
647
- return (s = g(e)) == null ? void 0 : s.body;
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;
648
748
  }));
649
749
  return M({
650
750
  queryKey: t,
651
- queryFn: ({ signal: s }) => n.query(Ie, {
652
- ...g(e),
653
- signal: s
751
+ queryFn: ({ signal: n }) => s.query(Ne, {
752
+ ...m(e),
753
+ signal: n
654
754
  })
655
755
  });
656
756
  }
657
- function Le(e) {
658
- return O(we(e));
757
+ function Ee(e) {
758
+ return O(De(e));
659
759
  }
660
- const xe = "handlePaymentMethod post /handle-payment";
661
- function St(e) {
662
- const n = v();
663
- return Q({
760
+ const je = "handlePaymentMethod post /handle-payment";
761
+ function bt(e) {
762
+ const s = g();
763
+ return v({
664
764
  ...e,
665
- mutationFn: async (t) => n.query(xe, g(t)),
666
- onSuccess: async (t, s, a) => {
667
- var r, i;
668
- await ((i = c((r = c(e)) == null ? void 0 : r.onSuccess)) == null ? void 0 : i(t, s, a));
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));
669
769
  }
670
770
  });
671
771
  }
672
- const Ue = "orderSetPayment post /order/payment";
673
- function Pt(e) {
674
- const n = v(), t = P();
675
- return Q({
772
+ const Te = "orderSetPayment post /order/payment";
773
+ function kt(e) {
774
+ const s = g(), t = S();
775
+ return v({
676
776
  ...e,
677
- mutationFn: async (s) => n.query(Ue, g(s)),
678
- onSuccess: async (s, a, r) => {
679
- var i, u;
680
- await t.invalidateQueries({ queryKey: L.all() }), await ((u = c((i = c(e)) == null ? void 0 : i.onSuccess)) == null ? void 0 : u(s, a, r));
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));
681
781
  }
682
782
  });
683
783
  }
684
- const be = "readCategoryList post /category", ke = function(n) {
685
- const t = v(), s = k.list(n);
784
+ const Ve = "readCategoryList post /category", $e = function(s) {
785
+ const t = g(), n = k.list(s);
686
786
  return M({
687
- queryKey: s,
688
- queryFn: async ({ signal: a }) => t.query(be, {
689
- ...g(n),
787
+ queryKey: n,
788
+ queryFn: async ({ signal: a }) => t.query(Ve, {
789
+ ...m(s),
690
790
  signal: a
691
791
  })
692
792
  });
693
793
  };
694
- function Qt(e) {
695
- return O(ke(e));
794
+ function Bt(e) {
795
+ return O($e(e));
696
796
  }
697
- const Ne = "readCompactProductListing post /novu/headless/product-listing/{seoUrl}";
698
- function Be(e, n) {
699
- 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);
700
800
  return M({
701
- queryKey: s,
801
+ queryKey: n,
702
802
  queryFn: async ({ signal: a }) => {
703
- const r = g(n);
704
- return t.query(Ne, {
803
+ const r = m(s);
804
+ return t.query(ze, {
705
805
  ...r,
706
806
  params: {
707
807
  ...r.params,
708
- seoUrl: j(c(e))
808
+ seoUrl: T(i(e))
709
809
  },
710
810
  signal: a
711
811
  });
712
812
  }
713
813
  });
714
814
  }
715
- function Mt(e, n) {
716
- return O(Be(e, n));
815
+ function Nt(e, s) {
816
+ return O(Ge(e, s));
717
817
  }
718
- const Ee = "readCustomProductDetail post /novu/headless/product/{seoUrl}";
719
- function De(e, n) {
720
- 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);
721
821
  return M({
722
- queryKey: s,
822
+ queryKey: n,
723
823
  queryFn: async ({ signal: a }) => {
724
- const r = g(n);
725
- return t.query(Ee, {
824
+ const r = m(s);
825
+ return t.query(He, {
726
826
  ...r,
727
827
  params: {
728
828
  ...r.params,
729
- seoUrl: j(c(e))
829
+ seoUrl: T(i(e))
730
830
  },
731
831
  signal: a
732
832
  });
733
833
  }
734
834
  });
735
835
  }
736
- function Ot(e, n) {
737
- return O(De(e, n));
836
+ function Dt(e, s) {
837
+ return O(We(e, s));
738
838
  }
739
- const Te = "readSalutation post /salutation", je = function(n) {
740
- const t = v(), s = D.list(n);
839
+ const Je = "readSalutation post /salutation", Xe = function(s) {
840
+ const t = g(), n = E.list(s);
741
841
  return M({
742
- queryKey: s,
842
+ queryKey: n,
743
843
  queryFn: async ({ signal: a }) => {
744
- const r = g(n);
745
- return t.query(Te, {
844
+ const r = m(s);
845
+ return t.query(Je, {
746
846
  ...r,
747
847
  signal: a
748
848
  });
749
849
  }
750
850
  });
751
851
  };
752
- function At(e) {
753
- return O(je(e));
852
+ function Et(e) {
853
+ return O(Xe(e));
754
854
  }
755
- const Ve = "readSeoUrl post /seo-url", $e = function(n) {
756
- 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);
757
857
  return M({
758
- queryKey: s,
858
+ queryKey: n,
759
859
  queryFn: async ({ signal: a }) => {
760
- const r = g(n);
761
- return t.query(Ve, {
860
+ const r = m(s);
861
+ return t.query(Ye, {
762
862
  ...r,
763
863
  signal: a
764
864
  });
765
865
  }
766
866
  });
767
867
  };
768
- function Kt(e) {
769
- return O($e(e));
868
+ function jt(e) {
869
+ return O(Ze(e));
770
870
  }
771
- const ze = "readShippingMethod post /shipping-method";
772
- function Ge(e) {
773
- const n = v(), t = N.list(o(() => {
774
- var s;
775
- return (s = g(e)) == null ? void 0 : s.body;
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;
776
876
  }));
777
877
  return M({
778
878
  queryKey: t,
779
- queryFn: ({ signal: s }) => n.query(ze, {
780
- ...g(e),
781
- signal: s
879
+ queryFn: ({ signal: n }) => s.query(_e, {
880
+ ...m(e),
881
+ signal: n
782
882
  })
783
883
  });
784
884
  }
785
- function He(e) {
786
- return O(Ge(e));
885
+ function tt(e) {
886
+ return O(et(e));
787
887
  }
788
- function Rt() {
789
- const e = V(), n = $(), t = Le({
888
+ function Tt() {
889
+ const e = V(), s = $(), t = Ee({
790
890
  query: {
791
891
  onlyAvailable: !0
792
892
  }
793
- }), s = o(() => n.isPending.value), a = async (u) => n.mutateAsync({
893
+ }), n = c(() => s.isPending.value), a = async (u) => s.mutateAsync({
794
894
  paymentMethodId: u
795
- }), r = o(() => {
796
- var u, m;
797
- return (m = (u = e.data) == null ? void 0 : u.value) == null ? void 0 : m.paymentMethod;
798
- }), i = o(() => {
799
- var u, m, q;
800
- return ((q = (m = (u = t.data) == null ? void 0 : u.value) == null ? void 0 : m.elements) == null ? void 0 : q.sort((d, C) => (d.position ?? 0) - (C.position ?? 0))) ?? [];
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))) ?? [];
801
901
  });
802
902
  return {
803
- contextUpdateMutation: n,
903
+ contextUpdateMutation: s,
804
904
  contextQuery: e,
805
905
  paymentMethodsQuery: t,
806
906
  activePaymentMethod: r,
807
907
  setPaymentMethod: a,
808
- isSaving: s,
809
- paymentMethods: i
908
+ isSaving: n,
909
+ paymentMethods: o
810
910
  };
811
911
  }
812
- function Ft() {
813
- const e = V(), n = $(), t = He({
912
+ function Vt() {
913
+ const e = V(), s = $(), t = tt({
814
914
  query: {
815
915
  onlyAvailable: !0
816
916
  }
817
- }), s = o(() => n.isPending.value), a = async (u) => n.mutateAsync({
917
+ }), n = c(() => s.isPending.value), a = async (u) => s.mutateAsync({
818
918
  shippingMethodId: u
819
- }), r = o(() => {
820
- var u, m;
821
- return (m = (u = e.data) == null ? void 0 : u.value) == null ? void 0 : m.shippingMethod;
822
- }), i = o(() => {
823
- var u, m;
824
- return ((m = (u = t.data) == null ? void 0 : u.value) == null ? void 0 : m.elements.sort((q, d) => (q.position ?? 0) - (d.position ?? 0))) ?? [];
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))) ?? [];
825
925
  });
826
926
  return {
827
- contextUpdateMutation: n,
927
+ contextUpdateMutation: s,
828
928
  contextQuery: e,
829
929
  shippingMethodsQuery: t,
830
930
  activeShippingMethod: r,
831
931
  setShippingMethod: a,
832
- isSaving: s,
833
- shippingMethods: i
932
+ isSaving: n,
933
+ shippingMethods: o
834
934
  };
835
935
  }
836
- const We = (e, n) => {
837
- var s;
838
- const t = (s = e.extensions) == null ? void 0 : s.novuSeoUrls;
839
- return (t == null ? void 0 : t[n]) ?? "";
840
- }, It = (e, n) => o(() => We(c(e), c(n)));
841
- function wt(e) {
842
- const { total: n, limit: t, page: s, totalCountMode: a } = e ?? {}, r = Z({
843
- page: s ?? 1,
844
- total: n ?? 0,
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,
845
945
  limit: t,
846
946
  totalCountMode: a
847
- }), 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({
848
948
  get() {
849
949
  return r.page;
850
950
  },
851
- set(S) {
852
- r.page = Math.max(1, Math.min(c(i), S));
951
+ set(Q) {
952
+ r.page = Math.max(1, Math.min(i(o), Q));
853
953
  }
854
954
  });
855
955
  H(
856
- [() => c(i), () => r],
857
- ([S, y]) => {
858
- r.page = Math.min(S, r.page), r.total = y.total ?? 0, r.limit = y.limit;
956
+ [() => i(o), () => r],
957
+ ([Q, y]) => {
958
+ r.page = Math.min(Q, r.page), r.total = y.total ?? 0, r.limit = y.limit;
859
959
  }
860
960
  );
861
- 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(() => ({
862
962
  p: r.page,
863
963
  limit: r.limit,
864
964
  "total-count-mode": r.totalCountMode ?? "none"
865
- })), C = (S) => {
866
- H(() => c(S), (y) => {
965
+ })), P = (Q) => {
966
+ H(() => i(Q), (y) => {
867
967
  y && (r.total = (y == null ? void 0 : y.total) ?? 0, r.limit = (y == null ? void 0 : y.limit) ?? 0);
868
968
  });
869
969
  };
870
970
  return {
871
- page: c(u),
971
+ page: i(u),
872
972
  total: W(r, "total"),
873
973
  limit: W(r, "limit"),
874
- pageCount: i,
875
- isLastPage: m,
876
- isFirstPage: q,
877
- usePaginationSync: C,
974
+ pageCount: o,
975
+ isLastPage: f,
976
+ isFirstPage: C,
977
+ usePaginationSync: P,
878
978
  // This can be used to pass the pagination options directly to the query options
879
979
  queryOptions: d
880
980
  };
@@ -883,124 +983,124 @@ function X(e) {
883
983
  var t;
884
984
  if (!e || !((t = e.calculatedPrices) != null && t.length))
885
985
  return [];
886
- const n = e.calculatedPrices.length;
887
- return e.calculatedPrices.map(({ unitPrice: s, quantity: a }, r) => ({
888
- label: r === n - 1 ? `from ${a}` : `to ${a}`,
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}`,
889
989
  quantity: a,
890
- unitPrice: s
990
+ unitPrice: n
891
991
  }));
892
992
  }
893
- function Lt(e) {
894
- const n = o(() => {
993
+ function Gt(e) {
994
+ const s = c(() => {
895
995
  var y;
896
996
  return (y = e.value) == null ? void 0 : y.calculatedCheapestPrice;
897
- }), t = o(
997
+ }), t = c(
898
998
  () => {
899
999
  var y, h, A, K, l;
900
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;
901
1001
  }
902
- ), s = o(() => {
1002
+ ), n = c(() => {
903
1003
  var y;
904
1004
  return (y = t == null ? void 0 : t.value) == null ? void 0 : y.referencePrice;
905
- }), a = o(() => {
1005
+ }), a = c(() => {
906
1006
  var y, h;
907
1007
  return (((h = (y = e.value) == null ? void 0 : y.calculatedPrices) == null ? void 0 : h.length) ?? 0) > 1;
908
- }), r = o(
1008
+ }), r = c(
909
1009
  () => {
910
1010
  var y, h, A, K, l, p;
911
- return !!((y = e.value) != null && y.parentId) && ((A = (h = e.value) == null ? void 0 : h.calculatedCheapestPrice) == null ? void 0 : A.hasRange) && ((K = t == null ? void 0 : t.value) == null ? void 0 : K.unitPrice) !== ((l = n == null ? void 0 : n.value) == null ? void 0 : l.unitPrice) && ((p = n == null ? void 0 : n.value) == null ? void 0 : p.unitPrice);
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);
912
1012
  }
913
- ), i = o(
1013
+ ), o = c(
914
1014
  () => {
915
1015
  var y, h;
916
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;
917
1017
  }
918
- ), u = o(
1018
+ ), u = c(
919
1019
  () => {
920
1020
  var y;
921
- return (y = i.value) == null ? void 0 : y.unitPrice;
1021
+ return (y = o.value) == null ? void 0 : y.unitPrice;
922
1022
  }
923
- ), m = o(
1023
+ ), f = c(
924
1024
  () => {
925
1025
  var y;
926
- return (y = i.value) == null ? void 0 : y.totalPrice;
1026
+ return (y = o.value) == null ? void 0 : y.totalPrice;
927
1027
  }
928
- ), q = o(
929
- () => i.value
930
- ), d = o(() => {
1028
+ ), C = c(
1029
+ () => o.value
1030
+ ), d = c(() => {
931
1031
  var y, h;
932
- return !!((h = (y = i.value) == null ? void 0 : y.listPrice) != null && h.percentage);
933
- }), C = o(
1032
+ return !!((h = (y = o.value) == null ? void 0 : y.listPrice) != null && h.percentage);
1033
+ }), P = c(
934
1034
  () => {
935
1035
  var y, h, A;
936
1036
  return (A = (h = (y = e.value) == null ? void 0 : y.calculatedPrice) == null ? void 0 : h.regulationPrice) == null ? void 0 : A.price;
937
1037
  }
938
- ), S = o(() => X(e.value));
1038
+ ), Q = c(() => X(e.value));
939
1039
  return {
940
- price: q,
941
- totalPrice: m,
1040
+ price: C,
1041
+ totalPrice: f,
942
1042
  unitPrice: u,
943
1043
  displayFromVariants: r,
944
1044
  displayFrom: a,
945
- tierPrices: S,
946
- referencePrice: s,
1045
+ tierPrices: Q,
1046
+ referencePrice: n,
947
1047
  isListPrice: d,
948
- regulationPrice: C
1048
+ regulationPrice: P
949
1049
  };
950
1050
  }
951
- function Je(e, n) {
952
- var s;
953
- const t = (s = e.extensions) == null ? void 0 : s.variants;
954
- return n.length === 0 ? (t == null ? void 0 : t.find((a) => {
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) => {
955
1055
  var r;
956
1056
  return ((r = a.optionIds) == null ? void 0 : r.length) === 0;
957
1057
  })) ?? (t == null ? void 0 : t[0]) : t == null ? void 0 : t.find((a) => {
958
1058
  var r;
959
- 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));
960
1060
  });
961
1061
  }
962
- function xt(e, n) {
963
- return o(() => Je(c(e), c(n)));
1062
+ function Ht(e, s) {
1063
+ return c(() => st(i(e), i(s)));
964
1064
  }
965
- function Ut(e) {
966
- return o(() => {
967
- var n, t, s, a, r, i;
968
- return !!((t = (n = c(e)) == null ? void 0 : n.customer) != null && t.id) && !!((a = (s = c(e)) == null ? void 0 : s.customer) != null && a.active) && !((i = (r = c(e)) == null ? void 0 : r.customer) != null && i.guest);
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);
969
1069
  });
970
1070
  }
971
- function bt(e) {
972
- 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(() => {
973
1073
  var d;
974
- return (d = n.data) == null ? void 0 : d.value;
975
- }), s = o(
1074
+ return (d = s.data) == null ? void 0 : d.value;
1075
+ }), n = c(
976
1076
  () => {
977
1077
  var d;
978
1078
  return !!((d = t.value) != null && d.id) && !!t.value.active && !t.value.guest;
979
1079
  }
980
- ), a = o(
1080
+ ), a = c(
981
1081
  () => {
982
1082
  var d;
983
1083
  return !!((d = t.value) != null && d.id) && !t.value.guest;
984
1084
  }
985
- ), r = o(() => {
1085
+ ), r = c(() => {
986
1086
  var d;
987
1087
  return !!((d = t.value) != null && d.guest);
988
- }), i = o(
1088
+ }), o = c(
989
1089
  () => {
990
1090
  var d;
991
1091
  return ((d = t.value) == null ? void 0 : d.defaultBillingAddressId) || null;
992
1092
  }
993
- ), u = o(
1093
+ ), u = c(
994
1094
  () => {
995
1095
  var d;
996
1096
  return ((d = t.value) == null ? void 0 : d.defaultShippingAddressId) || null;
997
1097
  }
998
- ), m = o(
1098
+ ), f = c(
999
1099
  () => {
1000
1100
  var d;
1001
1101
  return ((d = t.value) == null ? void 0 : d.defaultBillingAddress) || null;
1002
1102
  }
1003
- ), q = o(
1103
+ ), C = c(
1004
1104
  () => {
1005
1105
  var d;
1006
1106
  return ((d = t.value) == null ? void 0 : d.defaultShippingAddress) || null;
@@ -1009,94 +1109,101 @@ function bt(e) {
1009
1109
  return {
1010
1110
  // Computed properties
1011
1111
  user: t,
1012
- isLoggedIn: s,
1112
+ isLoggedIn: n,
1013
1113
  isCustomerSession: a,
1014
1114
  isGuestSession: r,
1015
- defaultBillingAddressId: i,
1115
+ defaultBillingAddressId: o,
1016
1116
  defaultShippingAddressId: u,
1017
- userDefaultBillingAddress: m,
1018
- userDefaultShippingAddress: q,
1117
+ userDefaultBillingAddress: f,
1118
+ userDefaultShippingAddress: C,
1019
1119
  // Expose queries and mutations directly
1020
- customerQuery: n
1120
+ customerQuery: s
1021
1121
  };
1022
1122
  }
1023
1123
  export {
1024
- et as absolutizeSeoUrl,
1025
- R as addressKeys,
1026
- I as cartKeys,
1124
+ it as absolutizeSeoUrl,
1125
+ w as addressKeys,
1126
+ L as cartKeys,
1027
1127
  k as categoryKeys,
1028
- b as contextKeys,
1029
- T as countryKeys,
1030
- x as customerKeys,
1031
- Je as getProductVariantForOptions,
1032
- We as getSeoUrl,
1033
- U as navigationKeys,
1034
- L as orderKeys,
1035
- B as paymentKeys,
1036
- w as productKeys,
1037
- Ie as readPaymentMethodOperation,
1038
- ze as readShippingMethodOperation,
1039
- j as relativizeSeoUrl,
1040
- D as salutationKeys,
1041
- E as seoUrlKeys,
1042
- N as shippingKeys,
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,
1043
1144
  _ as shopwareClientKey,
1044
- g as unrefOptions,
1045
- ot as useAddLineItemMutation,
1046
- gt as useChangeEmailMutation,
1047
- vt as useChangeProfileMutation,
1048
- yt as useCheckout,
1049
- nt as useCheckoutAddresses,
1050
- at as useCreateCustomerAddressMutation,
1051
- pt as useCreateOrderMutation,
1052
- it as useDeleteCustomerAddressMutation,
1053
- St as useHandlePaymentMutation,
1054
- Ut as useIsLoggedIn,
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,
1055
1159
  ne as useListAddressQuery,
1056
1160
  te as useListAddressQueryOptions,
1057
- ht as useLoginCustomerMutation,
1058
- ft as useLogoutCustomerMutation,
1059
- tt as useOptimistic,
1060
- st as useOrderDetails,
1061
- rt as useOrderPayment,
1062
- Pt as useOrderSetPaymentMutation,
1063
- wt as usePagination,
1064
- Rt as usePaymentMethods,
1065
- Lt as useProductPrice,
1066
- xt as useProductVariantForOptions,
1067
- ct as useReadCartQuery,
1068
- me as useReadCartQueryOptions,
1069
- Qt as useReadCategoryListQuery,
1070
- ke as useReadCategoryListQueryOptions,
1071
- Mt as useReadCompactProductListingQuery,
1072
- Be as useReadCompactProductListingQueryOptions,
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,
1073
1177
  V as useReadContextQuery,
1074
- re as useReadContextQueryOptions,
1075
- mt as useReadCountryQuery,
1076
- qe as useReadCountryQueryOptions,
1077
- De as useReadCustomProductDetailOptions,
1078
- Ot as useReadCustomProductDetailQuery,
1079
- Ae as useReadCustomerQuery,
1080
- Oe as useReadCustomerQueryOptions,
1081
- Ct as useReadNavigationQuery,
1082
- Fe as useReadNavigationQueryOptions,
1083
- oe as useReadOrderQuery,
1084
- ue as useReadOrderQueryOptions,
1085
- Le as useReadPaymentMethodQuery,
1086
- we as useReadPaymentMethodQueryOptions,
1087
- At as useReadSalutationQuery,
1088
- je as useReadSalutationQueryOptions,
1089
- Kt as useReadSeoUrlQuery,
1090
- $e as useReadSeoUrlQueryOptions,
1091
- He as useReadShippingMethodQuery,
1092
- Ge as useReadShippingMethodQueryOptions,
1093
- qt as useRegisterCustomerMutation,
1094
- lt as useRemoveLineItemMutation,
1095
- It as useSeoUrl,
1096
- Ft as useShippingMethods,
1097
- v as useShopwareQueryClient,
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,
1098
1205
  $ as useUpdateContextMutation,
1099
- ut as useUpdateCustomerAddressMutation,
1100
- dt as useUpdateLineItemMutation,
1101
- bt as useUser
1206
+ gt as useUpdateCustomerAddressMutation,
1207
+ qt as useUpdateLineItemMutation,
1208
+ Jt as useUser
1102
1209
  };