@teamnovu/kit-shopware-composables 0.0.24 → 0.0.26

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