@teamnovu/kit-shopware-composables 0.0.5 → 0.0.7

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