@teamnovu/kit-shopware-composables 0.0.23 → 0.0.25
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.
- package/dist/index.mjs +313 -286
- package/dist/keys.d.ts +4 -1
- package/dist/query/products/index.d.ts +1 -0
- package/dist/query/products/useReadProductDetailQuery.d.ts +2 -2
- package/dist/query/products/useSearchSuggestQuery.d.ts +17 -0
- package/package.json +1 -1
- package/src/keys.ts +10 -1
- package/src/query/products/index.ts +1 -0
- package/src/query/products/useReadProductDetailQuery.ts +1 -1
- package/src/query/products/useSearchSuggestQuery.ts +31 -0
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
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
|
|
3
|
+
import { queryOptions as v, useQuery as q, useQueryClient as P, useMutation as h } from "@tanstack/vue-query";
|
|
4
4
|
import "@teamnovu/kit-shopware-api-client";
|
|
5
5
|
const _ = Symbol("shopwareClient");
|
|
6
6
|
function g() {
|
|
@@ -43,20 +43,20 @@ const F = {
|
|
|
43
43
|
body: t
|
|
44
44
|
}
|
|
45
45
|
]
|
|
46
|
-
},
|
|
46
|
+
}, K = {
|
|
47
47
|
all: () => ["product"],
|
|
48
|
-
lists: () => [...
|
|
48
|
+
lists: () => [...K.all(), "list"],
|
|
49
49
|
list: (e, s) => [
|
|
50
|
-
...
|
|
50
|
+
...K.all(),
|
|
51
51
|
"list",
|
|
52
52
|
{
|
|
53
53
|
url: e,
|
|
54
54
|
body: s
|
|
55
55
|
}
|
|
56
56
|
],
|
|
57
|
-
details: () => [...
|
|
57
|
+
details: () => [...K.all(), "detail"],
|
|
58
58
|
customDetail: (e, s) => [
|
|
59
|
-
...
|
|
59
|
+
...K.details(),
|
|
60
60
|
"custom",
|
|
61
61
|
{
|
|
62
62
|
url: e,
|
|
@@ -64,23 +64,31 @@ const F = {
|
|
|
64
64
|
}
|
|
65
65
|
],
|
|
66
66
|
headlessDetail: (e) => [
|
|
67
|
-
...
|
|
67
|
+
...K.details(),
|
|
68
68
|
{
|
|
69
69
|
body: e
|
|
70
70
|
}
|
|
71
71
|
],
|
|
72
|
-
detail: (e) => [
|
|
73
|
-
...
|
|
72
|
+
detail: (e, s) => [
|
|
73
|
+
...K.details(),
|
|
74
|
+
e,
|
|
74
75
|
{
|
|
75
|
-
body:
|
|
76
|
+
body: s
|
|
76
77
|
}
|
|
77
78
|
],
|
|
78
79
|
search: (e) => [
|
|
79
|
-
...
|
|
80
|
+
...K.all(),
|
|
80
81
|
"search",
|
|
81
82
|
{
|
|
82
83
|
body: e
|
|
83
84
|
}
|
|
85
|
+
],
|
|
86
|
+
searchSuggest: (e) => [
|
|
87
|
+
...K.all(),
|
|
88
|
+
"searchSuggest",
|
|
89
|
+
{
|
|
90
|
+
body: e
|
|
91
|
+
}
|
|
84
92
|
]
|
|
85
93
|
}, L = {
|
|
86
94
|
get: () => ["cart"]
|
|
@@ -162,7 +170,7 @@ const F = {
|
|
|
162
170
|
}
|
|
163
171
|
]
|
|
164
172
|
};
|
|
165
|
-
function
|
|
173
|
+
function y(e) {
|
|
166
174
|
const s = i(e);
|
|
167
175
|
return Object.fromEntries(
|
|
168
176
|
Object.entries(s ?? {}).map(
|
|
@@ -174,25 +182,25 @@ const te = "listAddress post /account/list-address";
|
|
|
174
182
|
function ne(e) {
|
|
175
183
|
const s = g(), t = R.list(c(() => {
|
|
176
184
|
var n;
|
|
177
|
-
return (n =
|
|
185
|
+
return (n = y(e)) == null ? void 0 : n.body;
|
|
178
186
|
}));
|
|
179
|
-
return
|
|
187
|
+
return v({
|
|
180
188
|
queryKey: t,
|
|
181
189
|
queryFn: ({ signal: n }) => s.query(te, {
|
|
182
|
-
...
|
|
190
|
+
...y(e),
|
|
183
191
|
signal: n
|
|
184
192
|
})
|
|
185
193
|
});
|
|
186
194
|
}
|
|
187
195
|
function se(e) {
|
|
188
|
-
return
|
|
196
|
+
return q(ne(e));
|
|
189
197
|
}
|
|
190
198
|
const V = (e) => {
|
|
191
199
|
const s = e.replace(/\/?$/, "");
|
|
192
200
|
return s.startsWith("/") ? s.slice(1) : s;
|
|
193
|
-
},
|
|
194
|
-
function
|
|
195
|
-
const n =
|
|
201
|
+
}, St = (e) => `/${V(e)}`;
|
|
202
|
+
function Ct(e, s, t) {
|
|
203
|
+
const n = P();
|
|
196
204
|
return {
|
|
197
205
|
onMutate: async (r) => {
|
|
198
206
|
await n.cancelQueries({ queryKey: e });
|
|
@@ -220,20 +228,20 @@ function qt(e, s, t) {
|
|
|
220
228
|
const re = "readContext get /context";
|
|
221
229
|
function ae(e) {
|
|
222
230
|
const s = g();
|
|
223
|
-
return
|
|
231
|
+
return v({
|
|
224
232
|
queryKey: F.all(),
|
|
225
233
|
queryFn: ({ signal: t }) => s.query(re, {
|
|
226
|
-
...
|
|
234
|
+
...y(e),
|
|
227
235
|
signal: t
|
|
228
236
|
})
|
|
229
237
|
});
|
|
230
238
|
}
|
|
231
239
|
function b(e) {
|
|
232
|
-
return
|
|
240
|
+
return q(ae(e));
|
|
233
241
|
}
|
|
234
242
|
const ue = "updateContext patch /context";
|
|
235
243
|
function $(e) {
|
|
236
|
-
const s = g(), t =
|
|
244
|
+
const s = g(), t = P();
|
|
237
245
|
return h({
|
|
238
246
|
...e,
|
|
239
247
|
mutationFn: async (n) => (t.cancelQueries({ queryKey: F.all() }), s.query(ue, {
|
|
@@ -248,7 +256,7 @@ function $(e) {
|
|
|
248
256
|
}
|
|
249
257
|
});
|
|
250
258
|
}
|
|
251
|
-
function
|
|
259
|
+
function Pt() {
|
|
252
260
|
const e = $(), s = b(), t = se(), n = c(() => s.isFetching.value || e.isPending.value), r = async (d) => {
|
|
253
261
|
await e.mutateAsync({
|
|
254
262
|
billingAddressId: d.id
|
|
@@ -296,10 +304,10 @@ function Ct() {
|
|
|
296
304
|
const oe = "readOrder post /order";
|
|
297
305
|
function ie(e) {
|
|
298
306
|
const s = g(), t = U.detail(e);
|
|
299
|
-
return
|
|
307
|
+
return v({
|
|
300
308
|
queryKey: t,
|
|
301
309
|
queryFn: async ({ signal: n }) => {
|
|
302
|
-
const r =
|
|
310
|
+
const r = y(e);
|
|
303
311
|
return s.query(oe, {
|
|
304
312
|
...r,
|
|
305
313
|
signal: n
|
|
@@ -308,9 +316,9 @@ function ie(e) {
|
|
|
308
316
|
});
|
|
309
317
|
}
|
|
310
318
|
function ce(e) {
|
|
311
|
-
return
|
|
319
|
+
return q(ie(e));
|
|
312
320
|
}
|
|
313
|
-
function
|
|
321
|
+
function Qt(e, s) {
|
|
314
322
|
const t = c(() => {
|
|
315
323
|
const l = i(e);
|
|
316
324
|
if (l)
|
|
@@ -328,14 +336,14 @@ function Pt(e, s) {
|
|
|
328
336
|
}
|
|
329
337
|
};
|
|
330
338
|
}), n = ce(t.value), r = c(() => {
|
|
331
|
-
var l, m,
|
|
332
|
-
return (x = (
|
|
339
|
+
var l, m, C, x;
|
|
340
|
+
return (x = (C = (m = (l = n.data) == null ? void 0 : l.value) == null ? void 0 : m.orders) == null ? void 0 : C.elements) == null ? void 0 : x[0];
|
|
333
341
|
}), a = c(() => {
|
|
334
342
|
var l, m;
|
|
335
343
|
return ((m = (l = n.data) == null ? void 0 : l.value) == null ? void 0 : m.paymentChangeable) || {};
|
|
336
344
|
}), u = c(() => {
|
|
337
|
-
var l, m,
|
|
338
|
-
return (
|
|
345
|
+
var l, m, C;
|
|
346
|
+
return (C = (m = (l = r.value) == null ? void 0 : l.stateMachineState) == null ? void 0 : m.translated) == null ? void 0 : C.name;
|
|
339
347
|
}), o = c(() => {
|
|
340
348
|
var l, m;
|
|
341
349
|
return (m = (l = r.value) == null ? void 0 : l.stateMachineState) == null ? void 0 : m.technicalName;
|
|
@@ -349,35 +357,35 @@ function Pt(e, s) {
|
|
|
349
357
|
var l;
|
|
350
358
|
return (l = r.value) == null ? void 0 : l.shippingTotal;
|
|
351
359
|
}), M = c(() => {
|
|
352
|
-
var l, m,
|
|
360
|
+
var l, m, C, x, z, G;
|
|
353
361
|
return {
|
|
354
362
|
email: (m = (l = r.value) == null ? void 0 : l.orderCustomer) == null ? void 0 : m.email,
|
|
355
|
-
firstName: (x = (
|
|
363
|
+
firstName: (x = (C = r.value) == null ? void 0 : C.orderCustomer) == null ? void 0 : x.firstName,
|
|
356
364
|
lastName: (G = (z = r.value) == null ? void 0 : z.orderCustomer) == null ? void 0 : G.lastName
|
|
357
365
|
};
|
|
358
366
|
}), O = c(() => {
|
|
359
367
|
var l, m;
|
|
360
368
|
return (m = (l = r.value) == null ? void 0 : l.addresses) == null ? void 0 : m.find(
|
|
361
|
-
({ id:
|
|
369
|
+
({ id: C }) => {
|
|
362
370
|
var x;
|
|
363
|
-
return
|
|
371
|
+
return C === ((x = r.value) == null ? void 0 : x.billingAddressId);
|
|
364
372
|
}
|
|
365
373
|
);
|
|
366
|
-
}),
|
|
374
|
+
}), p = c(
|
|
367
375
|
() => {
|
|
368
|
-
var l, m,
|
|
369
|
-
return (
|
|
376
|
+
var l, m, C;
|
|
377
|
+
return (C = (m = (l = r.value) == null ? void 0 : l.deliveries) == null ? void 0 : m[0]) == null ? void 0 : C.shippingOrderAddress;
|
|
370
378
|
}
|
|
371
|
-
),
|
|
372
|
-
var m,
|
|
379
|
+
), S = c(() => {
|
|
380
|
+
var m, C;
|
|
373
381
|
const l = (m = r.value) == null ? void 0 : m.transactions;
|
|
374
382
|
if (l != null && l.length)
|
|
375
|
-
return (
|
|
376
|
-
}),
|
|
377
|
-
var m,
|
|
383
|
+
return (C = l.at(-1)) == null ? void 0 : C.paymentMethod;
|
|
384
|
+
}), A = c(() => {
|
|
385
|
+
var m, C;
|
|
378
386
|
const l = (m = r.value) == null ? void 0 : m.deliveries;
|
|
379
387
|
if (l != null && l.length)
|
|
380
|
-
return (
|
|
388
|
+
return (C = l.at(-1)) == null ? void 0 : C.shippingMethod;
|
|
381
389
|
}), w = c(() => {
|
|
382
390
|
var m;
|
|
383
391
|
const l = i(e);
|
|
@@ -390,16 +398,16 @@ function Pt(e, s) {
|
|
|
390
398
|
total: f,
|
|
391
399
|
subtotal: Q,
|
|
392
400
|
shippingCosts: d,
|
|
393
|
-
shippingAddress:
|
|
401
|
+
shippingAddress: p,
|
|
394
402
|
billingAddress: O,
|
|
395
403
|
personalDetails: M,
|
|
396
|
-
shippingMethod:
|
|
397
|
-
paymentMethod:
|
|
404
|
+
shippingMethod: A,
|
|
405
|
+
paymentMethod: S,
|
|
398
406
|
paymentChangeable: w,
|
|
399
407
|
orderQuery: n
|
|
400
408
|
};
|
|
401
409
|
}
|
|
402
|
-
function
|
|
410
|
+
function Mt(e) {
|
|
403
411
|
const s = c(() => {
|
|
404
412
|
var r, a;
|
|
405
413
|
return (a = (r = i(e)) == null ? void 0 : r.transactions) == null ? void 0 : a.find((u) => {
|
|
@@ -420,11 +428,11 @@ function St(e) {
|
|
|
420
428
|
};
|
|
421
429
|
}
|
|
422
430
|
const le = "createCustomerAddress post /account/address";
|
|
423
|
-
function
|
|
424
|
-
const s = g(), t =
|
|
431
|
+
function Ot(e) {
|
|
432
|
+
const s = g(), t = P();
|
|
425
433
|
return h({
|
|
426
434
|
...e,
|
|
427
|
-
mutationFn: async (n) => s.query(le,
|
|
435
|
+
mutationFn: async (n) => s.query(le, y(n)),
|
|
428
436
|
onSuccess: async (n, r, a) => {
|
|
429
437
|
var u, o;
|
|
430
438
|
await t.invalidateQueries({ queryKey: R.lists() }), await ((o = i((u = i(e)) == null ? void 0 : u.onSuccess)) == null ? void 0 : o(n, r, a));
|
|
@@ -432,11 +440,11 @@ function Qt(e) {
|
|
|
432
440
|
});
|
|
433
441
|
}
|
|
434
442
|
const de = "deleteCustomerAddress delete /account/address/{addressId}";
|
|
435
|
-
function
|
|
436
|
-
const s = g(), t =
|
|
443
|
+
function Kt(e) {
|
|
444
|
+
const s = g(), t = P();
|
|
437
445
|
return h({
|
|
438
446
|
...e,
|
|
439
|
-
mutationFn: async (n) => s.query(de,
|
|
447
|
+
mutationFn: async (n) => s.query(de, y(n)),
|
|
440
448
|
onSuccess: async (n, r, a) => {
|
|
441
449
|
var u, o;
|
|
442
450
|
await t.invalidateQueries({ queryKey: R.lists() }), await ((o = i((u = i(e)) == null ? void 0 : u.onSuccess)) == null ? void 0 : o(n, r, a));
|
|
@@ -444,18 +452,18 @@ function Mt(e) {
|
|
|
444
452
|
});
|
|
445
453
|
}
|
|
446
454
|
const ye = "updateCustomerAddress patch /account/address/{addressId}";
|
|
447
|
-
function
|
|
448
|
-
const s = g(), t =
|
|
455
|
+
function At(e) {
|
|
456
|
+
const s = g(), t = P();
|
|
449
457
|
return h({
|
|
450
458
|
...e,
|
|
451
|
-
mutationFn: async (n) => s.query(ye,
|
|
459
|
+
mutationFn: async (n) => s.query(ye, y(n)),
|
|
452
460
|
onSuccess: async (n, r, a) => {
|
|
453
461
|
var o, f;
|
|
454
|
-
const { addressId: u } =
|
|
462
|
+
const { addressId: u } = y(r).params;
|
|
455
463
|
t.setQueryData(R.detail(u), n), await Promise.all([
|
|
456
464
|
t.invalidateQueries({ queryKey: R.lists() }),
|
|
457
465
|
t.invalidateQueries({
|
|
458
|
-
queryKey: R.detail(
|
|
466
|
+
queryKey: R.detail(y(r).params.addressId),
|
|
459
467
|
predicate: (Q) => Q.queryKey.at(-1) !== u
|
|
460
468
|
})
|
|
461
469
|
]), await ((f = i((o = i(e)) == null ? void 0 : o.onSuccess)) == null ? void 0 : f(n, r, a));
|
|
@@ -463,8 +471,8 @@ function Ot(e) {
|
|
|
463
471
|
});
|
|
464
472
|
}
|
|
465
473
|
const pe = "addLineItem post /checkout/cart/line-item";
|
|
466
|
-
function
|
|
467
|
-
const s = g(), t =
|
|
474
|
+
function wt(e) {
|
|
475
|
+
const s = g(), t = P();
|
|
468
476
|
return h({
|
|
469
477
|
...e,
|
|
470
478
|
mutationFn: async (n) => s.query(pe, {
|
|
@@ -479,20 +487,20 @@ function Kt(e) {
|
|
|
479
487
|
const ge = "readCart get /checkout/cart";
|
|
480
488
|
function me(e) {
|
|
481
489
|
const s = g(), t = L.get();
|
|
482
|
-
return
|
|
490
|
+
return v({
|
|
483
491
|
queryKey: t,
|
|
484
492
|
queryFn: async ({ signal: n }) => s.query(ge, {
|
|
485
|
-
...
|
|
493
|
+
...y(e),
|
|
486
494
|
signal: n
|
|
487
495
|
})
|
|
488
496
|
});
|
|
489
497
|
}
|
|
490
|
-
function
|
|
491
|
-
return
|
|
498
|
+
function Rt() {
|
|
499
|
+
return q(me());
|
|
492
500
|
}
|
|
493
501
|
const fe = "removeLineItem post /checkout/cart/line-item/delete";
|
|
494
|
-
function
|
|
495
|
-
const s = g(), t =
|
|
502
|
+
function Ft(e) {
|
|
503
|
+
const s = g(), t = P();
|
|
496
504
|
return h({
|
|
497
505
|
...e,
|
|
498
506
|
mutationFn: async (n) => s.query(fe, {
|
|
@@ -505,8 +513,8 @@ function wt(e) {
|
|
|
505
513
|
});
|
|
506
514
|
}
|
|
507
515
|
const he = "updateLineItem patch /checkout/cart/line-item";
|
|
508
|
-
function
|
|
509
|
-
const s = g(), t =
|
|
516
|
+
function Lt(e) {
|
|
517
|
+
const s = g(), t = P();
|
|
510
518
|
return h({
|
|
511
519
|
...e,
|
|
512
520
|
mutationFn: async (n) => s.query(he, {
|
|
@@ -519,11 +527,11 @@ function Rt(e) {
|
|
|
519
527
|
});
|
|
520
528
|
}
|
|
521
529
|
const ve = "createOrder post /checkout/order";
|
|
522
|
-
function
|
|
523
|
-
const s = g(), t =
|
|
530
|
+
function It(e) {
|
|
531
|
+
const s = g(), t = P();
|
|
524
532
|
return h({
|
|
525
533
|
...e,
|
|
526
|
-
mutationFn: async (n) => s.query(ve,
|
|
534
|
+
mutationFn: async (n) => s.query(ve, y(n)),
|
|
527
535
|
onSuccess: async (n, r, a) => {
|
|
528
536
|
var u, o;
|
|
529
537
|
await Promise.all([
|
|
@@ -536,41 +544,41 @@ function Ft(e) {
|
|
|
536
544
|
});
|
|
537
545
|
}
|
|
538
546
|
const qe = "readLanguages post /language";
|
|
539
|
-
function
|
|
547
|
+
function Se(e) {
|
|
540
548
|
const s = g();
|
|
541
|
-
return
|
|
549
|
+
return v({
|
|
542
550
|
queryKey: ee.all(),
|
|
543
551
|
queryFn: ({ signal: t }) => s.query(qe, {
|
|
544
|
-
...
|
|
552
|
+
...y(e),
|
|
545
553
|
signal: t
|
|
546
554
|
})
|
|
547
555
|
});
|
|
548
556
|
}
|
|
549
|
-
function
|
|
550
|
-
return
|
|
557
|
+
function xt(e) {
|
|
558
|
+
return q(Se(e));
|
|
551
559
|
}
|
|
552
|
-
const
|
|
560
|
+
const Ce = "readCountry post /country", Pe = function(s) {
|
|
553
561
|
const t = g(), n = j.list(s);
|
|
554
|
-
return
|
|
562
|
+
return v({
|
|
555
563
|
queryKey: n,
|
|
556
564
|
queryFn: async ({ signal: r }) => {
|
|
557
|
-
const a =
|
|
558
|
-
return t.query(
|
|
565
|
+
const a = y(s);
|
|
566
|
+
return t.query(Ce, {
|
|
559
567
|
...a,
|
|
560
568
|
signal: r
|
|
561
569
|
});
|
|
562
570
|
}
|
|
563
571
|
});
|
|
564
572
|
};
|
|
565
|
-
function
|
|
566
|
-
return
|
|
573
|
+
function Ut(e) {
|
|
574
|
+
return q(Pe(e));
|
|
567
575
|
}
|
|
568
576
|
const Qe = "changeEmail post /account/change-email";
|
|
569
|
-
function
|
|
570
|
-
const s = g(), t =
|
|
577
|
+
function Dt(e) {
|
|
578
|
+
const s = g(), t = P();
|
|
571
579
|
return h({
|
|
572
580
|
...e,
|
|
573
|
-
mutationFn: async (n) => s.query(Qe,
|
|
581
|
+
mutationFn: async (n) => s.query(Qe, y(n)),
|
|
574
582
|
onSuccess: async (n, r, a) => {
|
|
575
583
|
var u, o;
|
|
576
584
|
await t.invalidateQueries({ queryKey: I.all() }), await t.invalidateQueries({ queryKey: F.all() }), await ((o = i((u = i(e)) == null ? void 0 : u.onSuccess)) == null ? void 0 : o(n, r, a));
|
|
@@ -578,11 +586,11 @@ function xt(e) {
|
|
|
578
586
|
});
|
|
579
587
|
}
|
|
580
588
|
const Me = "changeProfile post /account/change-profile";
|
|
581
|
-
function
|
|
582
|
-
const s = g(), t =
|
|
589
|
+
function bt(e) {
|
|
590
|
+
const s = g(), t = P();
|
|
583
591
|
return h({
|
|
584
592
|
...e,
|
|
585
|
-
mutationFn: async (n) => s.query(Me,
|
|
593
|
+
mutationFn: async (n) => s.query(Me, y(n)),
|
|
586
594
|
onSuccess: async (n, r, a) => {
|
|
587
595
|
var u, o;
|
|
588
596
|
await Promise.all([
|
|
@@ -593,8 +601,8 @@ function Ut(e) {
|
|
|
593
601
|
});
|
|
594
602
|
}
|
|
595
603
|
const Oe = "loginCustomer post /account/login";
|
|
596
|
-
function
|
|
597
|
-
const s = g(), t =
|
|
604
|
+
function kt(e) {
|
|
605
|
+
const s = g(), t = P();
|
|
598
606
|
return h({
|
|
599
607
|
...e,
|
|
600
608
|
mutationFn: async (n) => {
|
|
@@ -614,11 +622,11 @@ function Dt(e) {
|
|
|
614
622
|
});
|
|
615
623
|
}
|
|
616
624
|
const Ke = "logoutCustomer post /account/logout";
|
|
617
|
-
function
|
|
618
|
-
const s = g(), t =
|
|
625
|
+
function Bt(e) {
|
|
626
|
+
const s = g(), t = P();
|
|
619
627
|
return h({
|
|
620
628
|
...e,
|
|
621
|
-
mutationFn: async (n) => s.query(Ke,
|
|
629
|
+
mutationFn: async (n) => s.query(Ke, y(n)),
|
|
622
630
|
onSuccess: async (n, r, a) => {
|
|
623
631
|
var u, o;
|
|
624
632
|
await Promise.all([
|
|
@@ -631,21 +639,21 @@ function bt(e) {
|
|
|
631
639
|
}
|
|
632
640
|
const Ae = "readCustomer post /account/customer";
|
|
633
641
|
function we(e) {
|
|
634
|
-
const s = g(), t = I.detail(c(() =>
|
|
635
|
-
return
|
|
642
|
+
const s = g(), t = I.detail(c(() => y(e).body ?? {}));
|
|
643
|
+
return v({
|
|
636
644
|
queryKey: t,
|
|
637
|
-
queryFn: async () => s.query(Ae,
|
|
645
|
+
queryFn: async () => s.query(Ae, y(e))
|
|
638
646
|
});
|
|
639
647
|
}
|
|
640
648
|
function Re(e) {
|
|
641
|
-
return
|
|
649
|
+
return q(we(e));
|
|
642
650
|
}
|
|
643
651
|
const Fe = "register post /account/register";
|
|
644
|
-
function
|
|
645
|
-
const s = g(), t =
|
|
652
|
+
function Nt(e) {
|
|
653
|
+
const s = g(), t = P();
|
|
646
654
|
return h({
|
|
647
655
|
...e,
|
|
648
|
-
mutationFn: async (n) => s.query(Fe,
|
|
656
|
+
mutationFn: async (n) => s.query(Fe, y(n)),
|
|
649
657
|
onSuccess: async (n, r, a) => {
|
|
650
658
|
var u, o;
|
|
651
659
|
await t.invalidateQueries({ queryKey: I.all() }), await ((o = i((u = i(e)) == null ? void 0 : u.onSuccess)) == null ? void 0 : o(n, r, a));
|
|
@@ -653,11 +661,11 @@ function kt(e) {
|
|
|
653
661
|
});
|
|
654
662
|
}
|
|
655
663
|
const Le = "defaultBillingAddress patch /account/address/default-billing/{addressId}";
|
|
656
|
-
function
|
|
657
|
-
const s = g(), t =
|
|
664
|
+
function Tt(e) {
|
|
665
|
+
const s = g(), t = P();
|
|
658
666
|
return h({
|
|
659
667
|
...e,
|
|
660
|
-
mutationFn: async (n) => s.query(Le,
|
|
668
|
+
mutationFn: async (n) => s.query(Le, y(n)),
|
|
661
669
|
onSuccess: async (n, r, a) => {
|
|
662
670
|
var u, o;
|
|
663
671
|
await Promise.all([
|
|
@@ -668,11 +676,11 @@ function Bt(e) {
|
|
|
668
676
|
});
|
|
669
677
|
}
|
|
670
678
|
const Ie = "defaultShippingAddress patch /account/address/default-shipping/{addressId}";
|
|
671
|
-
function
|
|
672
|
-
const s = g(), t =
|
|
679
|
+
function Et(e) {
|
|
680
|
+
const s = g(), t = P();
|
|
673
681
|
return h({
|
|
674
682
|
...e,
|
|
675
|
-
mutationFn: async (n) => s.query(Ie,
|
|
683
|
+
mutationFn: async (n) => s.query(Ie, y(n)),
|
|
676
684
|
onSuccess: async (n, r, a) => {
|
|
677
685
|
var u, o;
|
|
678
686
|
await Promise.all([
|
|
@@ -683,11 +691,11 @@ function Nt(e) {
|
|
|
683
691
|
});
|
|
684
692
|
}
|
|
685
693
|
const xe = "deleteCustomer delete /account/customer";
|
|
686
|
-
function
|
|
687
|
-
const s = g(), t =
|
|
694
|
+
function jt(e) {
|
|
695
|
+
const s = g(), t = P();
|
|
688
696
|
return h({
|
|
689
697
|
...e,
|
|
690
|
-
mutationFn: async (n) => s.query(xe,
|
|
698
|
+
mutationFn: async (n) => s.query(xe, y(n)),
|
|
691
699
|
onSuccess: async (n, r, a) => {
|
|
692
700
|
var u, o;
|
|
693
701
|
await Promise.all([
|
|
@@ -699,7 +707,7 @@ function Tt(e) {
|
|
|
699
707
|
});
|
|
700
708
|
}
|
|
701
709
|
const Ue = "registerConfirm post /account/register-confirm";
|
|
702
|
-
function
|
|
710
|
+
function Vt(e) {
|
|
703
711
|
const s = g();
|
|
704
712
|
return h({
|
|
705
713
|
...e,
|
|
@@ -716,11 +724,11 @@ function Et(e) {
|
|
|
716
724
|
});
|
|
717
725
|
}
|
|
718
726
|
const De = "sendRecoveryMail post /account/recovery-password";
|
|
719
|
-
function
|
|
727
|
+
function $t(e) {
|
|
720
728
|
const s = g();
|
|
721
729
|
return h({
|
|
722
730
|
...e,
|
|
723
|
-
mutationFn: async (t) => s.query(De,
|
|
731
|
+
mutationFn: async (t) => s.query(De, y(t)),
|
|
724
732
|
onSuccess: async (t, n, r) => {
|
|
725
733
|
var a, u;
|
|
726
734
|
await ((u = i((a = i(e)) == null ? void 0 : a.onSuccess)) == null ? void 0 : u(t, n, r));
|
|
@@ -728,11 +736,11 @@ function jt(e) {
|
|
|
728
736
|
});
|
|
729
737
|
}
|
|
730
738
|
const be = "changePassword post /account/change-password";
|
|
731
|
-
function
|
|
739
|
+
function zt(e) {
|
|
732
740
|
const s = g();
|
|
733
741
|
return h({
|
|
734
742
|
...e,
|
|
735
|
-
mutationFn: async (t) => s.query(be,
|
|
743
|
+
mutationFn: async (t) => s.query(be, y(t)),
|
|
736
744
|
onSuccess: async (t, n, r) => {
|
|
737
745
|
var a, u;
|
|
738
746
|
await ((u = i((a = i(e)) == null ? void 0 : a.onSuccess)) == null ? void 0 : u(t, n, r));
|
|
@@ -741,21 +749,21 @@ function Vt(e) {
|
|
|
741
749
|
}
|
|
742
750
|
const ke = "imitateCustomerLogin post /account/login/imitate-customer";
|
|
743
751
|
function Be(e) {
|
|
744
|
-
const s = g(), t = I.imitateLogin(c(() =>
|
|
745
|
-
return
|
|
752
|
+
const s = g(), t = I.imitateLogin(c(() => y(e).body ?? {}));
|
|
753
|
+
return v({
|
|
746
754
|
queryKey: t,
|
|
747
|
-
queryFn: async () => s.query(ke,
|
|
755
|
+
queryFn: async () => s.query(ke, y(e))
|
|
748
756
|
});
|
|
749
757
|
}
|
|
750
|
-
function
|
|
751
|
-
return
|
|
758
|
+
function Gt(e) {
|
|
759
|
+
return q(Be(e));
|
|
752
760
|
}
|
|
753
761
|
const Ne = "recoveryPassword post /account/recovery-password-confirm";
|
|
754
|
-
function
|
|
762
|
+
function Ht(e) {
|
|
755
763
|
const s = g();
|
|
756
764
|
return h({
|
|
757
765
|
...e,
|
|
758
|
-
mutationFn: async (t) => s.query(Ne,
|
|
766
|
+
mutationFn: async (t) => s.query(Ne, y(t)),
|
|
759
767
|
onSuccess: async (t, n, r) => {
|
|
760
768
|
var a, u;
|
|
761
769
|
await ((u = i((a = i(e)) == null ? void 0 : a.onSuccess)) == null ? void 0 : u(t, n, r));
|
|
@@ -764,10 +772,10 @@ function zt(e) {
|
|
|
764
772
|
}
|
|
765
773
|
const Te = "readNavigation post /navigation/{activeId}/{rootId}", Ee = function(s, t, n) {
|
|
766
774
|
const r = g(), a = D.detail(s, t, n);
|
|
767
|
-
return
|
|
775
|
+
return v({
|
|
768
776
|
queryKey: a,
|
|
769
777
|
queryFn: async ({ signal: u }) => {
|
|
770
|
-
const o = i(s), f = i(t), Q =
|
|
778
|
+
const o = i(s), f = i(t), Q = y(n);
|
|
771
779
|
return r.query(Te, {
|
|
772
780
|
...Q,
|
|
773
781
|
params: {
|
|
@@ -779,32 +787,32 @@ const Te = "readNavigation post /navigation/{activeId}/{rootId}", Ee = function(
|
|
|
779
787
|
}
|
|
780
788
|
});
|
|
781
789
|
};
|
|
782
|
-
function
|
|
783
|
-
return
|
|
790
|
+
function Wt(e, s, t) {
|
|
791
|
+
return q(Ee(e, s, t));
|
|
784
792
|
}
|
|
785
793
|
const je = "readPaymentMethod post /payment-method";
|
|
786
794
|
function Ve(e) {
|
|
787
795
|
const s = g(), t = N.list(c(() => {
|
|
788
796
|
var n;
|
|
789
|
-
return (n =
|
|
797
|
+
return (n = y(e)) == null ? void 0 : n.body;
|
|
790
798
|
}));
|
|
791
|
-
return
|
|
799
|
+
return v({
|
|
792
800
|
queryKey: t,
|
|
793
801
|
queryFn: ({ signal: n }) => s.query(je, {
|
|
794
|
-
...
|
|
802
|
+
...y(e),
|
|
795
803
|
signal: n
|
|
796
804
|
})
|
|
797
805
|
});
|
|
798
806
|
}
|
|
799
807
|
function $e(e) {
|
|
800
|
-
return
|
|
808
|
+
return q(Ve(e));
|
|
801
809
|
}
|
|
802
810
|
const ze = "handlePaymentMethod post /handle-payment";
|
|
803
|
-
function
|
|
804
|
-
const s = g(), t =
|
|
811
|
+
function Jt(e) {
|
|
812
|
+
const s = g(), t = P();
|
|
805
813
|
return h({
|
|
806
814
|
...e,
|
|
807
|
-
mutationFn: async (n) => s.query(ze,
|
|
815
|
+
mutationFn: async (n) => s.query(ze, y(n)),
|
|
808
816
|
onSuccess: async (n, r, a) => {
|
|
809
817
|
var u, o;
|
|
810
818
|
await t.invalidateQueries({ queryKey: L.get() }), await ((o = i((u = i(e)) == null ? void 0 : u.onSuccess)) == null ? void 0 : o(n, r, a));
|
|
@@ -812,11 +820,11 @@ function Ht(e) {
|
|
|
812
820
|
});
|
|
813
821
|
}
|
|
814
822
|
const Ge = "orderSetPayment post /order/payment";
|
|
815
|
-
function
|
|
816
|
-
const s = g(), t =
|
|
823
|
+
function Xt(e) {
|
|
824
|
+
const s = g(), t = P();
|
|
817
825
|
return h({
|
|
818
826
|
...e,
|
|
819
|
-
mutationFn: async (n) => s.query(Ge,
|
|
827
|
+
mutationFn: async (n) => s.query(Ge, y(n)),
|
|
820
828
|
onSuccess: async (n, r, a) => {
|
|
821
829
|
var u, o;
|
|
822
830
|
await t.invalidateQueries({ queryKey: U.all() }), await ((o = i((u = i(e)) == null ? void 0 : u.onSuccess)) == null ? void 0 : o(n, r, a));
|
|
@@ -825,24 +833,24 @@ function Wt(e) {
|
|
|
825
833
|
}
|
|
826
834
|
const He = "readCategoryList post /category", We = function(s) {
|
|
827
835
|
const t = g(), n = k.list(s);
|
|
828
|
-
return
|
|
836
|
+
return v({
|
|
829
837
|
queryKey: n,
|
|
830
838
|
queryFn: async ({ signal: r }) => t.query(He, {
|
|
831
|
-
...
|
|
839
|
+
...y(s),
|
|
832
840
|
signal: r
|
|
833
841
|
})
|
|
834
842
|
});
|
|
835
843
|
};
|
|
836
|
-
function
|
|
837
|
-
return
|
|
844
|
+
function Yt(e) {
|
|
845
|
+
return q(We(e));
|
|
838
846
|
}
|
|
839
847
|
const Je = "readCompactProductListing post /novu/headless/product-listing/{seoUrl}";
|
|
840
848
|
function Xe(e, s) {
|
|
841
|
-
const t = g(), n =
|
|
842
|
-
return
|
|
849
|
+
const t = g(), n = K.list(e, s);
|
|
850
|
+
return v({
|
|
843
851
|
queryKey: n,
|
|
844
852
|
queryFn: async ({ signal: r }) => {
|
|
845
|
-
const a =
|
|
853
|
+
const a = y(s);
|
|
846
854
|
return t.query(Je, {
|
|
847
855
|
...a,
|
|
848
856
|
params: {
|
|
@@ -854,16 +862,16 @@ function Xe(e, s) {
|
|
|
854
862
|
}
|
|
855
863
|
});
|
|
856
864
|
}
|
|
857
|
-
function
|
|
858
|
-
return
|
|
865
|
+
function Zt(e, s) {
|
|
866
|
+
return q(Xe(e, s));
|
|
859
867
|
}
|
|
860
868
|
const Ye = "readCustomProductDetail post /novu/headless/product/{seoUrl}";
|
|
861
869
|
function Ze(e, s) {
|
|
862
|
-
const t = g(), n =
|
|
863
|
-
return
|
|
870
|
+
const t = g(), n = K.customDetail(e, s);
|
|
871
|
+
return v({
|
|
864
872
|
queryKey: n,
|
|
865
873
|
queryFn: async ({ signal: r }) => {
|
|
866
|
-
const a =
|
|
874
|
+
const a = y(s);
|
|
867
875
|
return t.query(Ye, {
|
|
868
876
|
...a,
|
|
869
877
|
params: {
|
|
@@ -875,16 +883,16 @@ function Ze(e, s) {
|
|
|
875
883
|
}
|
|
876
884
|
});
|
|
877
885
|
}
|
|
878
|
-
function
|
|
879
|
-
return
|
|
886
|
+
function _t(e, s) {
|
|
887
|
+
return q(Ze(e, s));
|
|
880
888
|
}
|
|
881
889
|
const _e = "searchPage post /search";
|
|
882
890
|
function et(e) {
|
|
883
|
-
const s = g(), t =
|
|
884
|
-
return
|
|
891
|
+
const s = g(), t = K.search(e);
|
|
892
|
+
return v({
|
|
885
893
|
queryKey: t,
|
|
886
894
|
queryFn: async ({ signal: n }) => {
|
|
887
|
-
const r =
|
|
895
|
+
const r = y(e);
|
|
888
896
|
return s.query(_e, {
|
|
889
897
|
...r,
|
|
890
898
|
signal: n
|
|
@@ -892,16 +900,16 @@ function et(e) {
|
|
|
892
900
|
}
|
|
893
901
|
});
|
|
894
902
|
}
|
|
895
|
-
function
|
|
896
|
-
return
|
|
903
|
+
function en(e) {
|
|
904
|
+
return q(et(e));
|
|
897
905
|
}
|
|
898
|
-
const tt = "
|
|
906
|
+
const tt = "searchSuggest post /search-suggest";
|
|
899
907
|
function nt(e) {
|
|
900
|
-
const s = g(), t =
|
|
901
|
-
return
|
|
908
|
+
const s = g(), t = K.searchSuggest(e);
|
|
909
|
+
return v({
|
|
902
910
|
queryKey: t,
|
|
903
911
|
queryFn: async ({ signal: n }) => {
|
|
904
|
-
const r =
|
|
912
|
+
const r = y(e);
|
|
905
913
|
return s.query(tt, {
|
|
906
914
|
...r,
|
|
907
915
|
signal: n
|
|
@@ -909,17 +917,34 @@ function nt(e) {
|
|
|
909
917
|
}
|
|
910
918
|
});
|
|
911
919
|
}
|
|
912
|
-
function
|
|
913
|
-
return
|
|
920
|
+
function tn(e) {
|
|
921
|
+
return q(nt(e));
|
|
922
|
+
}
|
|
923
|
+
const st = "readProduct post /product";
|
|
924
|
+
function rt(e) {
|
|
925
|
+
const s = g(), t = K.headlessDetail(e);
|
|
926
|
+
return v({
|
|
927
|
+
queryKey: t,
|
|
928
|
+
queryFn: async ({ signal: n }) => {
|
|
929
|
+
const r = y(e);
|
|
930
|
+
return s.query(st, {
|
|
931
|
+
...r,
|
|
932
|
+
signal: n
|
|
933
|
+
});
|
|
934
|
+
}
|
|
935
|
+
});
|
|
936
|
+
}
|
|
937
|
+
function nn(e) {
|
|
938
|
+
return q(rt(e));
|
|
914
939
|
}
|
|
915
|
-
const
|
|
916
|
-
function
|
|
917
|
-
const t = g(), n =
|
|
918
|
-
return
|
|
940
|
+
const at = "readProductDetail post /product/{productId}";
|
|
941
|
+
function ut(e, s) {
|
|
942
|
+
const t = g(), n = K.detail(e, s);
|
|
943
|
+
return v({
|
|
919
944
|
queryKey: n,
|
|
920
945
|
queryFn: async ({ signal: r }) => {
|
|
921
|
-
const a =
|
|
922
|
-
return t.query(
|
|
946
|
+
const a = y(s);
|
|
947
|
+
return t.query(at, {
|
|
923
948
|
...a,
|
|
924
949
|
params: {
|
|
925
950
|
...a.params,
|
|
@@ -930,59 +955,59 @@ function rt(e, s) {
|
|
|
930
955
|
}
|
|
931
956
|
});
|
|
932
957
|
}
|
|
933
|
-
function
|
|
934
|
-
return
|
|
958
|
+
function sn(e, s) {
|
|
959
|
+
return q(ut(e, s));
|
|
935
960
|
}
|
|
936
|
-
const
|
|
961
|
+
const ot = "readSalutation post /salutation", it = function(s) {
|
|
937
962
|
const t = g(), n = E.list(s);
|
|
938
|
-
return
|
|
963
|
+
return v({
|
|
939
964
|
queryKey: n,
|
|
940
965
|
queryFn: async ({ signal: r }) => {
|
|
941
|
-
const a =
|
|
942
|
-
return t.query(
|
|
966
|
+
const a = y(s);
|
|
967
|
+
return t.query(ot, {
|
|
943
968
|
...a,
|
|
944
969
|
signal: r
|
|
945
970
|
});
|
|
946
971
|
}
|
|
947
972
|
});
|
|
948
973
|
};
|
|
949
|
-
function
|
|
950
|
-
return
|
|
974
|
+
function rn(e) {
|
|
975
|
+
return q(it(e));
|
|
951
976
|
}
|
|
952
|
-
const
|
|
977
|
+
const ct = "readSeoUrl post /seo-url", lt = function(s) {
|
|
953
978
|
const t = g(), n = T.list(s);
|
|
954
|
-
return
|
|
979
|
+
return v({
|
|
955
980
|
queryKey: n,
|
|
956
981
|
queryFn: async ({ signal: r }) => {
|
|
957
|
-
const a =
|
|
958
|
-
return t.query(
|
|
982
|
+
const a = y(s);
|
|
983
|
+
return t.query(ct, {
|
|
959
984
|
...a,
|
|
960
985
|
signal: r
|
|
961
986
|
});
|
|
962
987
|
}
|
|
963
988
|
});
|
|
964
989
|
};
|
|
965
|
-
function
|
|
966
|
-
return
|
|
990
|
+
function an(e) {
|
|
991
|
+
return q(lt(e));
|
|
967
992
|
}
|
|
968
|
-
const
|
|
969
|
-
function
|
|
993
|
+
const dt = "readShippingMethod post /shipping-method";
|
|
994
|
+
function yt(e) {
|
|
970
995
|
const s = g(), t = B.list(c(() => {
|
|
971
996
|
var n;
|
|
972
|
-
return (n =
|
|
997
|
+
return (n = y(e)) == null ? void 0 : n.body;
|
|
973
998
|
}));
|
|
974
|
-
return
|
|
999
|
+
return v({
|
|
975
1000
|
queryKey: t,
|
|
976
|
-
queryFn: ({ signal: n }) => s.query(
|
|
977
|
-
...
|
|
1001
|
+
queryFn: ({ signal: n }) => s.query(dt, {
|
|
1002
|
+
...y(e),
|
|
978
1003
|
signal: n
|
|
979
1004
|
})
|
|
980
1005
|
});
|
|
981
1006
|
}
|
|
982
|
-
function
|
|
983
|
-
return
|
|
1007
|
+
function pt(e) {
|
|
1008
|
+
return q(yt(e));
|
|
984
1009
|
}
|
|
985
|
-
function
|
|
1010
|
+
function un() {
|
|
986
1011
|
const e = b(), s = $(), t = $e({
|
|
987
1012
|
query: {
|
|
988
1013
|
onlyAvailable: !0
|
|
@@ -1006,8 +1031,8 @@ function sn() {
|
|
|
1006
1031
|
paymentMethods: u
|
|
1007
1032
|
};
|
|
1008
1033
|
}
|
|
1009
|
-
function
|
|
1010
|
-
const e = b(), s = $(), t =
|
|
1034
|
+
function on() {
|
|
1035
|
+
const e = b(), s = $(), t = pt({
|
|
1011
1036
|
query: {
|
|
1012
1037
|
onlyAvailable: !0
|
|
1013
1038
|
}
|
|
@@ -1030,7 +1055,7 @@ function rn() {
|
|
|
1030
1055
|
shippingMethods: u
|
|
1031
1056
|
};
|
|
1032
1057
|
}
|
|
1033
|
-
const
|
|
1058
|
+
const gt = (e, s) => {
|
|
1034
1059
|
var n;
|
|
1035
1060
|
const t = (n = e == null ? void 0 : e.extensions) == null ? void 0 : n.novuSeoUrls;
|
|
1036
1061
|
if (Array.isArray(s)) {
|
|
@@ -1038,17 +1063,17 @@ const yt = (e, s) => {
|
|
|
1038
1063
|
return r ? (t == null ? void 0 : t[r]) ?? "" : "";
|
|
1039
1064
|
}
|
|
1040
1065
|
return (t == null ? void 0 : t[s]) ?? "";
|
|
1041
|
-
},
|
|
1066
|
+
}, cn = () => {
|
|
1042
1067
|
const e = b(), s = c(() => {
|
|
1043
1068
|
var t, n, r;
|
|
1044
1069
|
return ((r = (n = (t = e.data) == null ? void 0 : t.value) == null ? void 0 : n.context) == null ? void 0 : r.languageIdChain) ?? [];
|
|
1045
1070
|
});
|
|
1046
1071
|
return (t, n) => {
|
|
1047
1072
|
const r = [n, ...s.value];
|
|
1048
|
-
return
|
|
1073
|
+
return gt(i(t), i(r));
|
|
1049
1074
|
};
|
|
1050
1075
|
};
|
|
1051
|
-
function
|
|
1076
|
+
function ln(e) {
|
|
1052
1077
|
const { total: s, limit: t, page: n, totalCountMode: r } = e ?? {}, a = Z({
|
|
1053
1078
|
page: n ?? 1,
|
|
1054
1079
|
total: s ?? 0,
|
|
@@ -1064,8 +1089,8 @@ function un(e) {
|
|
|
1064
1089
|
});
|
|
1065
1090
|
H(
|
|
1066
1091
|
[() => i(u), () => a],
|
|
1067
|
-
([O,
|
|
1068
|
-
a.page = Math.min(O, a.page), a.total =
|
|
1092
|
+
([O, p]) => {
|
|
1093
|
+
a.page = Math.min(O, a.page), a.total = p.total ?? 0, a.limit = p.limit;
|
|
1069
1094
|
}
|
|
1070
1095
|
);
|
|
1071
1096
|
const f = c(() => a.page === i(u)), Q = c(() => a.page === 1), d = c(() => ({
|
|
@@ -1073,8 +1098,8 @@ function un(e) {
|
|
|
1073
1098
|
limit: a.limit,
|
|
1074
1099
|
"total-count-mode": a.totalCountMode ?? "none"
|
|
1075
1100
|
})), M = (O) => {
|
|
1076
|
-
H(() => i(O), (
|
|
1077
|
-
|
|
1101
|
+
H(() => i(O), (p) => {
|
|
1102
|
+
p && (a.total = (p == null ? void 0 : p.total) ?? 0, a.limit = (p == null ? void 0 : p.limit) ?? 0);
|
|
1078
1103
|
});
|
|
1079
1104
|
};
|
|
1080
1105
|
return {
|
|
@@ -1100,50 +1125,50 @@ function X(e) {
|
|
|
1100
1125
|
unitPrice: n
|
|
1101
1126
|
}));
|
|
1102
1127
|
}
|
|
1103
|
-
function
|
|
1128
|
+
function dn(e) {
|
|
1104
1129
|
const s = c(() => {
|
|
1105
|
-
var
|
|
1106
|
-
return (
|
|
1130
|
+
var p;
|
|
1131
|
+
return (p = e.value) == null ? void 0 : p.calculatedCheapestPrice;
|
|
1107
1132
|
}), t = c(
|
|
1108
1133
|
() => {
|
|
1109
|
-
var
|
|
1110
|
-
return (((
|
|
1134
|
+
var p, S, A, w, l;
|
|
1135
|
+
return (((S = (p = e.value) == null ? void 0 : p.calculatedPrices) == null ? void 0 : S.length) ?? 0) > 0 ? (w = (A = e.value) == null ? void 0 : A.calculatedPrices) == null ? void 0 : w[0] : (l = e.value) == null ? void 0 : l.calculatedPrice;
|
|
1111
1136
|
}
|
|
1112
1137
|
), n = c(() => {
|
|
1113
|
-
var
|
|
1114
|
-
return (
|
|
1138
|
+
var p;
|
|
1139
|
+
return (p = t == null ? void 0 : t.value) == null ? void 0 : p.referencePrice;
|
|
1115
1140
|
}), r = c(() => {
|
|
1116
|
-
var
|
|
1117
|
-
return (((
|
|
1141
|
+
var p, S;
|
|
1142
|
+
return (((S = (p = e.value) == null ? void 0 : p.calculatedPrices) == null ? void 0 : S.length) ?? 0) > 1;
|
|
1118
1143
|
}), a = c(
|
|
1119
1144
|
() => {
|
|
1120
|
-
var
|
|
1121
|
-
return !!((
|
|
1145
|
+
var p, S, A, w, l, m;
|
|
1146
|
+
return !!((p = e.value) != null && p.parentId) && ((A = (S = e.value) == null ? void 0 : S.calculatedCheapestPrice) == null ? void 0 : A.hasRange) && ((w = t == null ? void 0 : t.value) == null ? void 0 : w.unitPrice) !== ((l = s == null ? void 0 : s.value) == null ? void 0 : l.unitPrice) && ((m = s == null ? void 0 : s.value) == null ? void 0 : m.unitPrice);
|
|
1122
1147
|
}
|
|
1123
1148
|
), u = c(
|
|
1124
1149
|
() => {
|
|
1125
|
-
var
|
|
1126
|
-
return r.value && X(e.value).length > 1 ? (
|
|
1150
|
+
var p, S;
|
|
1151
|
+
return r.value && X(e.value).length > 1 ? (S = (p = e.value) == null ? void 0 : p.calculatedPrices) == null ? void 0 : S.reduce((A, w) => w.unitPrice < A.unitPrice ? w : A) : t.value;
|
|
1127
1152
|
}
|
|
1128
1153
|
), o = c(
|
|
1129
1154
|
() => {
|
|
1130
|
-
var
|
|
1131
|
-
return (
|
|
1155
|
+
var p;
|
|
1156
|
+
return (p = u.value) == null ? void 0 : p.unitPrice;
|
|
1132
1157
|
}
|
|
1133
1158
|
), f = c(
|
|
1134
1159
|
() => {
|
|
1135
|
-
var
|
|
1136
|
-
return (
|
|
1160
|
+
var p;
|
|
1161
|
+
return (p = u.value) == null ? void 0 : p.totalPrice;
|
|
1137
1162
|
}
|
|
1138
1163
|
), Q = c(
|
|
1139
1164
|
() => u.value
|
|
1140
1165
|
), d = c(() => {
|
|
1141
|
-
var
|
|
1142
|
-
return !!((
|
|
1166
|
+
var p, S;
|
|
1167
|
+
return !!((S = (p = u.value) == null ? void 0 : p.listPrice) != null && S.percentage);
|
|
1143
1168
|
}), M = c(
|
|
1144
1169
|
() => {
|
|
1145
|
-
var
|
|
1146
|
-
return (
|
|
1170
|
+
var p, S, A;
|
|
1171
|
+
return (A = (S = (p = e.value) == null ? void 0 : p.calculatedPrice) == null ? void 0 : S.regulationPrice) == null ? void 0 : A.price;
|
|
1147
1172
|
}
|
|
1148
1173
|
), O = c(() => X(e.value));
|
|
1149
1174
|
return {
|
|
@@ -1158,7 +1183,7 @@ function on(e) {
|
|
|
1158
1183
|
regulationPrice: M
|
|
1159
1184
|
};
|
|
1160
1185
|
}
|
|
1161
|
-
function
|
|
1186
|
+
function mt(e, s) {
|
|
1162
1187
|
var n;
|
|
1163
1188
|
const t = (n = e.extensions) == null ? void 0 : n.variants;
|
|
1164
1189
|
return s.length === 0 ? (t == null ? void 0 : t.find((r) => {
|
|
@@ -1169,16 +1194,16 @@ function pt(e, s) {
|
|
|
1169
1194
|
return (a = r.optionIds) == null ? void 0 : a.every((u) => s.includes(u));
|
|
1170
1195
|
});
|
|
1171
1196
|
}
|
|
1172
|
-
function
|
|
1173
|
-
return c(() =>
|
|
1197
|
+
function yn(e, s) {
|
|
1198
|
+
return c(() => mt(i(e), i(s)));
|
|
1174
1199
|
}
|
|
1175
|
-
function
|
|
1200
|
+
function pn(e) {
|
|
1176
1201
|
return c(() => {
|
|
1177
1202
|
var s, t, n, r, a, u;
|
|
1178
1203
|
return !!((t = (s = i(e)) == null ? void 0 : s.customer) != null && t.id) && !!((r = (n = i(e)) == null ? void 0 : n.customer) != null && r.active) && !((u = (a = i(e)) == null ? void 0 : a.customer) != null && u.guest);
|
|
1179
1204
|
});
|
|
1180
1205
|
}
|
|
1181
|
-
function
|
|
1206
|
+
function gn(e) {
|
|
1182
1207
|
const s = Re(e ? { body: e } : void 0), t = c(() => {
|
|
1183
1208
|
var d;
|
|
1184
1209
|
return (d = s.data) == null ? void 0 : d.value;
|
|
@@ -1231,98 +1256,100 @@ function dn(e) {
|
|
|
1231
1256
|
};
|
|
1232
1257
|
}
|
|
1233
1258
|
export {
|
|
1234
|
-
|
|
1259
|
+
St as absolutizeSeoUrl,
|
|
1235
1260
|
R as addressKeys,
|
|
1236
1261
|
L as cartKeys,
|
|
1237
1262
|
k as categoryKeys,
|
|
1238
1263
|
F as contextKeys,
|
|
1239
1264
|
j as countryKeys,
|
|
1240
1265
|
I as customerKeys,
|
|
1241
|
-
|
|
1266
|
+
mt as getProductVariantForOptions,
|
|
1242
1267
|
ee as languageKey,
|
|
1243
1268
|
D as navigationKeys,
|
|
1244
1269
|
U as orderKeys,
|
|
1245
1270
|
N as paymentKeys,
|
|
1246
|
-
|
|
1271
|
+
K as productKeys,
|
|
1247
1272
|
je as readPaymentMethodOperation,
|
|
1248
|
-
|
|
1273
|
+
dt as readShippingMethodOperation,
|
|
1249
1274
|
V as relativizeSeoUrl,
|
|
1250
1275
|
E as salutationKeys,
|
|
1251
1276
|
T as seoUrlKeys,
|
|
1252
1277
|
B as shippingKeys,
|
|
1253
1278
|
_ as shopwareClientKey,
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1279
|
+
y as unrefOptions,
|
|
1280
|
+
wt as useAddLineItemMutation,
|
|
1281
|
+
Dt as useChangeEmailMutation,
|
|
1282
|
+
zt as useChangePasswordMutation,
|
|
1283
|
+
bt as useChangeProfileMutation,
|
|
1284
|
+
Pt as useCheckoutAddresses,
|
|
1285
|
+
Ot as useCreateCustomerAddressMutation,
|
|
1286
|
+
It as useCreateOrderMutation,
|
|
1287
|
+
Tt as useDefaultBillingAddressMutation,
|
|
1288
|
+
Et as useDefaultShippingAddressMutation,
|
|
1289
|
+
Kt as useDeleteCustomerAddressMutation,
|
|
1290
|
+
jt as useDeleteCustomerMutation,
|
|
1291
|
+
Jt as useHandlePaymentMutation,
|
|
1292
|
+
Gt as useImitateCustomerLoginQuery,
|
|
1268
1293
|
Be as useImitateCustomerLoginQueryOptions,
|
|
1269
|
-
|
|
1294
|
+
pn as useIsLoggedIn,
|
|
1270
1295
|
se as useListAddressQuery,
|
|
1271
1296
|
ne as useListAddressQueryOptions,
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1297
|
+
kt as useLoginCustomerMutation,
|
|
1298
|
+
Bt as useLogoutCustomerMutation,
|
|
1299
|
+
Ct as useOptimistic,
|
|
1300
|
+
Qt as useOrderDetails,
|
|
1301
|
+
Mt as useOrderPayment,
|
|
1302
|
+
Xt as useOrderSetPaymentMutation,
|
|
1303
|
+
ln as usePagination,
|
|
1304
|
+
un as usePaymentMethods,
|
|
1305
|
+
dn as useProductPrice,
|
|
1306
|
+
yn as useProductVariantForOptions,
|
|
1307
|
+
Rt as useReadCartQuery,
|
|
1283
1308
|
me as useReadCartQueryOptions,
|
|
1284
|
-
|
|
1309
|
+
Yt as useReadCategoryListQuery,
|
|
1285
1310
|
We as useReadCategoryListQueryOptions,
|
|
1286
|
-
|
|
1311
|
+
Zt as useReadCompactProductListingQuery,
|
|
1287
1312
|
Xe as useReadCompactProductListingQueryOptions,
|
|
1288
1313
|
b as useReadContextQuery,
|
|
1289
1314
|
ae as useReadContextQueryOptions,
|
|
1290
|
-
|
|
1291
|
-
|
|
1315
|
+
Ut as useReadCountryQuery,
|
|
1316
|
+
Pe as useReadCountryQueryOptions,
|
|
1292
1317
|
Ze as useReadCustomProductDetailOptions,
|
|
1293
|
-
|
|
1318
|
+
_t as useReadCustomProductDetailQuery,
|
|
1294
1319
|
Re as useReadCustomerQuery,
|
|
1295
1320
|
we as useReadCustomerQueryOptions,
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1321
|
+
xt as useReadLanguageQuery,
|
|
1322
|
+
Se as useReadLanguageQueryOptions,
|
|
1323
|
+
Wt as useReadNavigationQuery,
|
|
1299
1324
|
Ee as useReadNavigationQueryOptions,
|
|
1300
1325
|
ce as useReadOrderQuery,
|
|
1301
1326
|
ie as useReadOrderQueryOptions,
|
|
1302
1327
|
$e as useReadPaymentMethodQuery,
|
|
1303
1328
|
Ve as useReadPaymentMethodQueryOptions,
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1329
|
+
sn as useReadProductDetailQuery,
|
|
1330
|
+
ut as useReadProductDetailQueryOptions,
|
|
1331
|
+
nn as useReadProductQuery,
|
|
1332
|
+
rt as useReadProductQueryOptions,
|
|
1333
|
+
rn as useReadSalutationQuery,
|
|
1334
|
+
it as useReadSalutationQueryOptions,
|
|
1335
|
+
an as useReadSeoUrlQuery,
|
|
1336
|
+
lt as useReadSeoUrlQueryOptions,
|
|
1337
|
+
pt as useReadShippingMethodQuery,
|
|
1338
|
+
yt as useReadShippingMethodQueryOptions,
|
|
1339
|
+
Ht as useRecoveryPasswordMutation,
|
|
1340
|
+
Vt as useRegisterConfirmMutation,
|
|
1341
|
+
Nt as useRegisterCustomerMutation,
|
|
1342
|
+
Ft as useRemoveLineItemMutation,
|
|
1343
|
+
en as useSearchPageQuery,
|
|
1319
1344
|
et as useSearchPageQueryOptions,
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1345
|
+
tn as useSearchSuggestQuery,
|
|
1346
|
+
nt as useSearchSuggestQueryOptions,
|
|
1347
|
+
$t as useSendRecoveryMailMutation,
|
|
1348
|
+
cn as useSeoUrl,
|
|
1349
|
+
on as useShippingMethods,
|
|
1323
1350
|
g as useShopwareQueryClient,
|
|
1324
1351
|
$ as useUpdateContextMutation,
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1352
|
+
At as useUpdateCustomerAddressMutation,
|
|
1353
|
+
Lt as useUpdateLineItemMutation,
|
|
1354
|
+
gn as useUser
|
|
1328
1355
|
};
|