@simpleapps-com/augur-hooks 2.0.2 → 2.0.4

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.cjs CHANGED
@@ -43,7 +43,7 @@
43
43
 
44
44
 
45
45
 
46
- var _chunkCQ3BRHK2cjs = require('./chunk-CQ3BRHK2.cjs');
46
+ var _chunk7ZQV4BFDcjs = require('./chunk-7ZQV4BFD.cjs');
47
47
 
48
48
 
49
49
  var _chunkAXCNTEABcjs = require('./chunk-AXCNTEAB.cjs');
@@ -239,7 +239,7 @@ function useItemPrice(itemId, customerId, quantity = 1, options = {}) {
239
239
  const cache = useAugurCache();
240
240
  const site = useAugurSite();
241
241
  const effectiveCustomerId = _nullishCoalesce(_nullishCoalesce(customerId, () => ( _optionalChain([auth, 'optionalAccess', _8 => _8.customerId]))), () => ( _optionalChain([site, 'optionalAccess', _9 => _9.defaults, 'optionalAccess', _10 => _10.customerId])));
242
- const defaultOptions = _chunkCQ3BRHK2cjs.getItemPriceOptions.call(void 0, api, itemId, effectiveCustomerId, quantity, cache);
242
+ const defaultOptions = _chunk7ZQV4BFDcjs.getItemPriceOptions.call(void 0, api, itemId, effectiveCustomerId, quantity, cache);
243
243
  const resolvedQueryFn = _nullishCoalesce(options.queryFn, () => ( (_optionalChain([callbacks, 'optionalAccess', _11 => _11.getItemPrice]) ? () => callbacks.getItemPrice(itemId, effectiveCustomerId, quantity) : void 0)));
244
244
  const query = _reactquery.useQuery.call(void 0, {
245
245
  ...defaultOptions,
@@ -260,7 +260,7 @@ function useInvMastDoc(invMastUid, itemId, options = {}) {
260
260
  const api = useAugurApiOptional();
261
261
  const callbacks = useAugurCallbacks();
262
262
  const cache = useAugurCache();
263
- const queryOpts = _chunkCQ3BRHK2cjs.getInvMastDocOptions.call(void 0,
263
+ const queryOpts = _chunk7ZQV4BFDcjs.getInvMastDocOptions.call(void 0,
264
264
  api,
265
265
  invMastUid,
266
266
  itemId,
@@ -282,7 +282,7 @@ function useItemCategory(itemCategoryUid, options = {}) {
282
282
  const api = useAugurApiOptional();
283
283
  const callbacks = useAugurCallbacks();
284
284
  const cache = useAugurCache();
285
- const queryOpts = _chunkCQ3BRHK2cjs.getItemCategoryOptions.call(void 0,
285
+ const queryOpts = _chunk7ZQV4BFDcjs.getItemCategoryOptions.call(void 0,
286
286
  api,
287
287
  itemCategoryUid,
288
288
  options.apiOptions,
@@ -302,7 +302,7 @@ function useInvMast(invMastUid, itemId, options = {}) {
302
302
  const api = useAugurApiOptional();
303
303
  const callbacks = useAugurCallbacks();
304
304
  const cache = useAugurCache();
305
- const queryOpts = _chunkCQ3BRHK2cjs.getInvMastOptions.call(void 0, api, invMastUid, itemId, cache);
305
+ const queryOpts = _chunk7ZQV4BFDcjs.getInvMastOptions.call(void 0, api, invMastUid, itemId, cache);
306
306
  const { data, isLoading, error } = _reactquery.useQuery.call(void 0, {
307
307
  ...queryOpts,
308
308
  ..._nullishCoalesce(options.queryFn, () => ( _optionalChain([callbacks, 'optionalAccess', _14 => _14.getInvMast]))) ? { queryFn: _nullishCoalesce(options.queryFn, () => ( (() => callbacks.getInvMast(invMastUid, itemId)))) } : {},
@@ -317,7 +317,7 @@ function useInvMastStock(invMastUid, options = {}) {
317
317
  const api = useAugurApiOptional();
318
318
  const callbacks = useAugurCallbacks();
319
319
  const cache = useAugurCache();
320
- const queryOpts = _chunkCQ3BRHK2cjs.getInvMastStockOptions.call(void 0, api, invMastUid, cache);
320
+ const queryOpts = _chunk7ZQV4BFDcjs.getInvMastStockOptions.call(void 0, api, invMastUid, cache);
321
321
  const { data, isLoading, error } = _reactquery.useQuery.call(void 0, {
322
322
  ...queryOpts,
323
323
  ..._nullishCoalesce(options.queryFn, () => ( _optionalChain([callbacks, 'optionalAccess', _15 => _15.getInvMastStock]))) ? { queryFn: _nullishCoalesce(options.queryFn, () => ( (() => callbacks.getInvMastStock(invMastUid)))) } : {},
@@ -342,7 +342,7 @@ function useStock(invMastUid, options = {}) {
342
342
  const api = useAugurApiOptional();
343
343
  const callbacks = useAugurCallbacks();
344
344
  const cache = useAugurCache();
345
- const queryOpts = _chunkCQ3BRHK2cjs.getStockOptions.call(void 0, api, invMastUid, cache);
345
+ const queryOpts = _chunk7ZQV4BFDcjs.getStockOptions.call(void 0, api, invMastUid, cache);
346
346
  const resolvedQueryFn = _nullishCoalesce(options.queryFn, () => ( (_optionalChain([callbacks, 'optionalAccess', _16 => _16.getStock]) ? () => callbacks.getStock(invMastUid) : void 0)));
347
347
  const query = _reactquery.useQuery.call(void 0, {
348
348
  ...queryOpts,
@@ -379,7 +379,7 @@ function useBatchInvMastDoc(params, options = {}) {
379
379
  const cache = useAugurCache();
380
380
  const queryClient = _reactquery.useQueryClient.call(void 0, );
381
381
  const includePricing = _nullishCoalesce(options.includePricing, () => ( "N"));
382
- const batchOpts = _chunkCQ3BRHK2cjs.getBatchInvMastDocOptions.call(void 0, api, params, includePricing, cache);
382
+ const batchOpts = _chunk7ZQV4BFDcjs.getBatchInvMastDocOptions.call(void 0, api, params, includePricing, cache);
383
383
  const resolveFetchItems = (uncached) => {
384
384
  if (options.queryFn) {
385
385
  return options.queryFn(uncached, includePricing);
@@ -387,18 +387,18 @@ function useBatchInvMastDoc(params, options = {}) {
387
387
  if (_optionalChain([callbacks, 'optionalAccess', _17 => _17.batchGetInvMastDocs])) {
388
388
  return callbacks.batchGetInvMastDocs(uncached, includePricing);
389
389
  }
390
- const fallbackOpts = _chunkCQ3BRHK2cjs.getBatchInvMastDocOptions.call(void 0, api, uncached, includePricing, cache);
390
+ const fallbackOpts = _chunk7ZQV4BFDcjs.getBatchInvMastDocOptions.call(void 0, api, uncached, includePricing, cache);
391
391
  return fallbackOpts.queryFn();
392
392
  };
393
393
  const { data, isLoading, error } = _reactquery.useQuery.call(void 0, {
394
394
  queryKey: batchOpts.queryKey,
395
- queryFn: () => _chunkCQ3BRHK2cjs.executeBatchQuery.call(void 0, {
395
+ queryFn: () => _chunk7ZQV4BFDcjs.executeBatchQuery.call(void 0, {
396
396
  params,
397
397
  queryClient,
398
- getItemKey: (p) => _chunkCQ3BRHK2cjs.getInvMastDocKey.call(void 0, p.invMastUid, p.itemId, includePricing),
398
+ getItemKey: (p) => _chunk7ZQV4BFDcjs.getInvMastDocKey.call(void 0, p.invMastUid, p.itemId, includePricing),
399
399
  getResultKey: (p) => p.itemId.toUpperCase(),
400
400
  fetchItems: resolveFetchItems,
401
- getSeedKey: (_key, doc) => _chunkCQ3BRHK2cjs.getInvMastDocKey.call(void 0, doc.invMastUid, doc.itemId, includePricing)
401
+ getSeedKey: (_key, doc) => _chunk7ZQV4BFDcjs.getInvMastDocKey.call(void 0, doc.invMastUid, doc.itemId, includePricing)
402
402
  }),
403
403
  staleTime: batchOpts.staleTime,
404
404
  gcTime: batchOpts.gcTime,
@@ -421,8 +421,8 @@ function useProductCategory(itemCategoryUid, options = {}) {
421
421
  const api = useAugurApiOptional();
422
422
  const callbacks = useAugurCallbacks();
423
423
  const cache = useAugurCache();
424
- const baseOptions = itemCategoryUid ? _chunkCQ3BRHK2cjs.getProductCategoryOptions.call(void 0, api, itemCategoryUid, cache) : {
425
- queryKey: _chunkCQ3BRHK2cjs.getProductCategoryKey.call(void 0, null),
424
+ const baseOptions = itemCategoryUid ? _chunk7ZQV4BFDcjs.getProductCategoryOptions.call(void 0, api, itemCategoryUid, cache) : {
425
+ queryKey: _chunk7ZQV4BFDcjs.getProductCategoryKey.call(void 0, null),
426
426
  /* v8 ignore next */
427
427
  queryFn: () => Promise.reject()
428
428
  };
@@ -450,8 +450,8 @@ function useItemDetails(itemId, options = {}) {
450
450
  const callbacks = useAugurCallbacks();
451
451
  const cache = useAugurCache();
452
452
  const { data, isLoading, error } = _reactquery.useQuery.call(void 0, {
453
- ...itemId ? _chunkCQ3BRHK2cjs.getItemDetailsOptions.call(void 0, api, itemId, cache) : {
454
- queryKey: _chunkCQ3BRHK2cjs.getItemDetailsKey.call(void 0, ""),
453
+ ...itemId ? _chunk7ZQV4BFDcjs.getItemDetailsOptions.call(void 0, api, itemId, cache) : {
454
+ queryKey: _chunk7ZQV4BFDcjs.getItemDetailsKey.call(void 0, ""),
455
455
  /* v8 ignore next */
456
456
  queryFn: () => Promise.reject()
457
457
  },
@@ -478,8 +478,8 @@ function useItemAttributes(itemCategoryUid, options = {}) {
478
478
  const callbacks = useAugurCallbacks();
479
479
  const cache = useAugurCache();
480
480
  const { data, isLoading, error } = _reactquery.useQuery.call(void 0, {
481
- ...itemCategoryUid ? _chunkCQ3BRHK2cjs.getItemAttributesOptions.call(void 0, api, itemCategoryUid, cache) : {
482
- queryKey: _chunkCQ3BRHK2cjs.getItemAttributesKey.call(void 0, null),
481
+ ...itemCategoryUid ? _chunk7ZQV4BFDcjs.getItemAttributesOptions.call(void 0, api, itemCategoryUid, cache) : {
482
+ queryKey: _chunk7ZQV4BFDcjs.getItemAttributesKey.call(void 0, null),
483
483
  /* v8 ignore next */
484
484
  queryFn: () => Promise.reject()
485
485
  },
@@ -503,7 +503,7 @@ function useProductSearch(pageData, options = {}) {
503
503
  const api = useAugurApiOptional();
504
504
  const callbacks = useAugurCallbacks();
505
505
  const cache = useAugurCache();
506
- const defaultOptions = _chunkCQ3BRHK2cjs.getProductSearchOptions.call(void 0, api, pageData, cache);
506
+ const defaultOptions = _chunk7ZQV4BFDcjs.getProductSearchOptions.call(void 0, api, pageData, cache);
507
507
  const { data, isLoading, error } = _reactquery.useQuery.call(void 0, {
508
508
  ...defaultOptions,
509
509
  ..._nullishCoalesce(options.queryFn, () => ( _optionalChain([callbacks, 'optionalAccess', _27 => _27.getProductSearch]))) ? { queryFn: _nullishCoalesce(options.queryFn, () => ( (() => callbacks.getProductSearch(pageData)))) } : {},
@@ -515,6 +515,7 @@ function useProductSearch(pageData, options = {}) {
515
515
  return {
516
516
  productItems: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _28 => _28.items]), () => ( null)),
517
517
  total: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _29 => _29.totalResults]), () => ( 0)),
518
+ result: data,
518
519
  loading: isLoading,
519
520
  error
520
521
  };
@@ -529,7 +530,7 @@ function useSearchSuggestions(query, options = {}) {
529
530
  const limit = _nullishCoalesce(options.limit, () => ( 10));
530
531
  const offset = _nullishCoalesce(options.offset, () => ( 0));
531
532
  const enabled = (_nullishCoalesce(options.enabled, () => ( true))) && query.trim().length > 0;
532
- const defaultOptions = _chunkCQ3BRHK2cjs.getSearchSuggestionsOptions.call(void 0, api, query, limit, offset, cache);
533
+ const defaultOptions = _chunk7ZQV4BFDcjs.getSearchSuggestionsOptions.call(void 0, api, query, limit, offset, cache);
533
534
  const { data, isLoading, error } = _reactquery.useQuery.call(void 0, {
534
535
  ...defaultOptions,
535
536
  ..._nullishCoalesce(options.queryFn, () => ( _optionalChain([callbacks, 'optionalAccess', _30 => _30.getSearchSuggestions]))) ? { queryFn: _nullishCoalesce(options.queryFn, () => ( (() => callbacks.getSearchSuggestions(query, limit, offset)))) } : {},
@@ -538,6 +539,11 @@ function useSearchSuggestions(query, options = {}) {
538
539
  return {
539
540
  suggestions: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _31 => _31.data]), () => ( [])),
540
541
  total: _nullishCoalesce(_optionalChain([data, 'optionalAccess', _32 => _32.total]), () => ( 0)),
542
+ count: _optionalChain([data, 'optionalAccess', _33 => _33.count]),
543
+ totalResults: _optionalChain([data, 'optionalAccess', _34 => _34.totalResults]),
544
+ message: _optionalChain([data, 'optionalAccess', _35 => _35.message]),
545
+ status: _optionalChain([data, 'optionalAccess', _36 => _36.status]),
546
+ result: data,
541
547
  isLoading,
542
548
  error
543
549
  };
@@ -604,17 +610,17 @@ function useCartActions(callbacks) {
604
610
  ]);
605
611
  if (!success) throw new Error("Failed to add item to cart");
606
612
  invalidateCartCache();
607
- if (showToast && _optionalChain([notify, 'optionalAccess', _33 => _33.info])) {
613
+ if (showToast && _optionalChain([notify, 'optionalAccess', _37 => _37.info])) {
608
614
  notify.info(`${item.quantity} x ${itemId || "Item"} added to cart`);
609
615
  }
610
- _optionalChain([onSuccess, 'optionalCall', _34 => _34()]);
616
+ _optionalChain([onSuccess, 'optionalCall', _38 => _38()]);
611
617
  return true;
612
618
  } catch (error) {
613
619
  setCartLines(previousCartLines);
614
- if (showToast && _optionalChain([notify, 'optionalAccess', _35 => _35.error])) {
620
+ if (showToast && _optionalChain([notify, 'optionalAccess', _39 => _39.error])) {
615
621
  notify.error("Failed to add item to cart. Please try again.");
616
622
  }
617
- _optionalChain([onError, 'optionalCall', _36 => _36(error)]);
623
+ _optionalChain([onError, 'optionalCall', _40 => _40(error)]);
618
624
  return false;
619
625
  }
620
626
  },
@@ -633,14 +639,14 @@ function useCartActions(callbacks) {
633
639
  const success = await callbacks.updateCartLines(uid, updatedLines);
634
640
  if (!success) throw new Error("Failed to update quantity");
635
641
  invalidateCartCache();
636
- _optionalChain([onSuccess, 'optionalCall', _37 => _37()]);
642
+ _optionalChain([onSuccess, 'optionalCall', _41 => _41()]);
637
643
  return true;
638
644
  } catch (error) {
639
645
  setCartLines(previousCartLines);
640
- if (showToast && _optionalChain([notify, 'optionalAccess', _38 => _38.error])) {
646
+ if (showToast && _optionalChain([notify, 'optionalAccess', _42 => _42.error])) {
641
647
  notify.error("Failed to update quantity. Please try again.");
642
648
  }
643
- _optionalChain([onError, 'optionalCall', _39 => _39(error)]);
649
+ _optionalChain([onError, 'optionalCall', _43 => _43(error)]);
644
650
  return false;
645
651
  }
646
652
  },
@@ -659,17 +665,17 @@ function useCartActions(callbacks) {
659
665
  const success = await callbacks.updateCartLines(uid, zeroedLines);
660
666
  if (!success) throw new Error("Failed to remove item");
661
667
  invalidateCartCache();
662
- if (showToast && _optionalChain([notify, 'optionalAccess', _40 => _40.info])) {
668
+ if (showToast && _optionalChain([notify, 'optionalAccess', _44 => _44.info])) {
663
669
  notify.info(`${itemId || "Item"} removed from cart`);
664
670
  }
665
- _optionalChain([onSuccess, 'optionalCall', _41 => _41()]);
671
+ _optionalChain([onSuccess, 'optionalCall', _45 => _45()]);
666
672
  return true;
667
673
  } catch (error) {
668
674
  setCartLines(previousCartLines);
669
- if (showToast && _optionalChain([notify, 'optionalAccess', _42 => _42.error])) {
675
+ if (showToast && _optionalChain([notify, 'optionalAccess', _46 => _46.error])) {
670
676
  notify.error("Failed to remove item. Please try again.");
671
677
  }
672
- _optionalChain([onError, 'optionalCall', _43 => _43(error)]);
678
+ _optionalChain([onError, 'optionalCall', _47 => _47(error)]);
673
679
  return false;
674
680
  }
675
681
  },
@@ -685,17 +691,17 @@ function useCartActions(callbacks) {
685
691
  const success = await callbacks.deleteItemsFromCart(uid);
686
692
  if (!success) throw new Error("Failed to clear cart");
687
693
  invalidateCartCache();
688
- if (showToast && _optionalChain([notify, 'optionalAccess', _44 => _44.info])) {
694
+ if (showToast && _optionalChain([notify, 'optionalAccess', _48 => _48.info])) {
689
695
  notify.info("Cart cleared");
690
696
  }
691
- _optionalChain([onSuccess, 'optionalCall', _45 => _45()]);
697
+ _optionalChain([onSuccess, 'optionalCall', _49 => _49()]);
692
698
  return true;
693
699
  } catch (error) {
694
700
  setCartLines(previousCartLines);
695
- if (showToast && _optionalChain([notify, 'optionalAccess', _46 => _46.error])) {
701
+ if (showToast && _optionalChain([notify, 'optionalAccess', _50 => _50.error])) {
696
702
  notify.error("Failed to clear cart. Please try again.");
697
703
  }
698
- _optionalChain([onError, 'optionalCall', _47 => _47(error)]);
704
+ _optionalChain([onError, 'optionalCall', _51 => _51(error)]);
699
705
  return false;
700
706
  }
701
707
  },
@@ -709,7 +715,7 @@ function useCartActions(callbacks) {
709
715
  );
710
716
  const getItemQuantity = _react.useCallback.call(void 0,
711
717
  (invMastUid) => {
712
- return _nullishCoalesce(_optionalChain([cartLines, 'access', _48 => _48.find, 'call', _49 => _49((line) => line.invMastUid === invMastUid), 'optionalAccess', _50 => _50.quantity]), () => ( 0));
718
+ return _nullishCoalesce(_optionalChain([cartLines, 'access', _52 => _52.find, 'call', _53 => _53((line) => line.invMastUid === invMastUid), 'optionalAccess', _54 => _54.quantity]), () => ( 0));
713
719
  },
714
720
  [cartLines]
715
721
  );
@@ -739,8 +745,8 @@ function useCartInitialization(session, callbacks) {
739
745
  const clearCart = useClearCart();
740
746
  const queryClient = _reactquery.useQueryClient.call(void 0, );
741
747
  const effectiveStatus = session.status;
742
- const effectiveUserId = _nullishCoalesce(session.userId, () => ( _optionalChain([auth, 'optionalAccess', _51 => _51.userId])));
743
- const effectiveCartHdrUid = _nullishCoalesce(session.cartHdrUid, () => ( _optionalChain([auth, 'optionalAccess', _52 => _52.cartHdrUid])));
748
+ const effectiveUserId = _nullishCoalesce(session.userId, () => ( _optionalChain([auth, 'optionalAccess', _55 => _55.userId])));
749
+ const effectiveCartHdrUid = _nullishCoalesce(session.cartHdrUid, () => ( _optionalChain([auth, 'optionalAccess', _56 => _56.cartHdrUid])));
744
750
  const effectiveSession = _react.useMemo.call(void 0,
745
751
  () => ({ status: effectiveStatus, userId: effectiveUserId, cartHdrUid: effectiveCartHdrUid }),
746
752
  [effectiveStatus, effectiveUserId, effectiveCartHdrUid]
@@ -837,17 +843,17 @@ function useCartPricing(options = {}) {
837
843
  const cache = useAugurCache();
838
844
  const site = useAugurSite();
839
845
  const cartLines = useCartLines();
840
- const customerId = _nullishCoalesce(_nullishCoalesce(options.customerId, () => ( _optionalChain([auth, 'optionalAccess', _53 => _53.customerId]))), () => ( _optionalChain([site, 'optionalAccess', _54 => _54.defaults, 'optionalAccess', _55 => _55.customerId])));
841
- const priceFn = _nullishCoalesce(options.queryFn, () => ( _optionalChain([callbacks, 'optionalAccess', _56 => _56.getItemPrice])));
846
+ const customerId = _nullishCoalesce(_nullishCoalesce(options.customerId, () => ( _optionalChain([auth, 'optionalAccess', _57 => _57.customerId]))), () => ( _optionalChain([site, 'optionalAccess', _58 => _58.defaults, 'optionalAccess', _59 => _59.customerId])));
847
+ const priceFn = _nullishCoalesce(options.queryFn, () => ( _optionalChain([callbacks, 'optionalAccess', _60 => _60.getItemPrice])));
842
848
  const priceQueries = _reactquery.useQueries.call(void 0, {
843
849
  queries: cartLines.map((line) => {
844
850
  const base = priceFn ? {
845
- queryKey: _chunkCQ3BRHK2cjs.getItemPriceKey.call(void 0, line.itemId, customerId, line.quantity),
851
+ queryKey: _chunk7ZQV4BFDcjs.getItemPriceKey.call(void 0, line.itemId, customerId, line.quantity),
846
852
  queryFn: () => priceFn(line.itemId, customerId, line.quantity),
847
853
  refetchOnReconnect: true,
848
854
  refetchOnWindowFocus: false,
849
855
  meta: { persist: true }
850
- } : _chunkCQ3BRHK2cjs.getItemPriceOptions.call(void 0, api, line.itemId, customerId, line.quantity, cache);
856
+ } : _chunk7ZQV4BFDcjs.getItemPriceOptions.call(void 0, api, line.itemId, customerId, line.quantity, cache);
851
857
  return {
852
858
  ...base,
853
859
  enabled: !!customerId && !!line.itemId
@@ -858,7 +864,7 @@ function useCartPricing(options = {}) {
858
864
  const map = {};
859
865
  cartLines.forEach((line, index) => {
860
866
  const queryResult = priceQueries[index];
861
- if (_optionalChain([queryResult, 'optionalAccess', _57 => _57.data])) {
867
+ if (_optionalChain([queryResult, 'optionalAccess', _61 => _61.data])) {
862
868
  const derived = _augurutils.derivePrice.call(void 0, { priceData: queryResult.data, quantity: line.quantity });
863
869
  map[line.itemId.toUpperCase()] = {
864
870
  unitPrice: derived.unitPrice,
@@ -870,7 +876,7 @@ function useCartPricing(options = {}) {
870
876
  }, [cartLines, priceQueries]);
871
877
  const getUnitPrice = _react.useMemo.call(void 0, () => {
872
878
  return (itemId) => {
873
- return _nullishCoalesce(_optionalChain([prices, 'access', _58 => _58[_optionalChain([itemId, 'optionalAccess', _59 => _59.toUpperCase, 'call', _60 => _60()])], 'optionalAccess', _61 => _61.unitPrice]), () => ( 0));
879
+ return _nullishCoalesce(_optionalChain([prices, 'access', _62 => _62[_optionalChain([itemId, 'optionalAccess', _63 => _63.toUpperCase, 'call', _64 => _64()])], 'optionalAccess', _65 => _65.unitPrice]), () => ( 0));
874
880
  };
875
881
  }, [prices]);
876
882
  const getItemTotal = _react.useMemo.call(void 0, () => {
@@ -880,7 +886,7 @@ function useCartPricing(options = {}) {
880
886
  }, [getUnitPrice]);
881
887
  const subtotal = _react.useMemo.call(void 0, () => {
882
888
  return cartLines.reduce((sum, line) => {
883
- const unitPrice = _nullishCoalesce(_optionalChain([prices, 'access', _62 => _62[line.itemId.toUpperCase()], 'optionalAccess', _63 => _63.unitPrice]), () => ( 0));
889
+ const unitPrice = _nullishCoalesce(_optionalChain([prices, 'access', _66 => _66[line.itemId.toUpperCase()], 'optionalAccess', _67 => _67.unitPrice]), () => ( 0));
884
890
  return sum + unitPrice * line.quantity;
885
891
  }, 0);
886
892
  }, [cartLines, prices]);
@@ -948,13 +954,13 @@ function useCategoryItemsInfinite(itemCategoryUid, itemsFilters, options = {}) {
948
954
  const callbacks = useAugurCallbacks();
949
955
  const cache = useAugurCache();
950
956
  const { enabled = true } = options;
951
- const defaultOptions = _chunkCQ3BRHK2cjs.getCategoryItemsInfiniteOptions.call(void 0,
957
+ const defaultOptions = _chunk7ZQV4BFDcjs.getCategoryItemsInfiniteOptions.call(void 0,
952
958
  api,
953
959
  itemCategoryUid,
954
960
  itemsFilters,
955
961
  cache
956
962
  );
957
- const cb = _optionalChain([callbacks, 'optionalAccess', _64 => _64.getCategoryItemsInfinite]);
963
+ const cb = _optionalChain([callbacks, 'optionalAccess', _68 => _68.getCategoryItemsInfinite]);
958
964
  const resolvedQueryFn = _nullishCoalesce(options.queryFn, () => ( (cb ? ({ pageParam }) => cb({
959
965
  itemCategoryUid,
960
966
  itemsFilters,
@@ -975,13 +981,13 @@ function useItemSearchInfinite(itemsFilters, itemCategoryUid, options = {}) {
975
981
  const callbacks = useAugurCallbacks();
976
982
  const cache = useAugurCache();
977
983
  const { enabled = true } = options;
978
- const defaultOptions = _chunkCQ3BRHK2cjs.getItemSearchInfiniteOptions.call(void 0,
984
+ const defaultOptions = _chunk7ZQV4BFDcjs.getItemSearchInfiniteOptions.call(void 0,
979
985
  api,
980
986
  itemsFilters,
981
987
  itemCategoryUid,
982
988
  cache
983
989
  );
984
- const cb = _optionalChain([callbacks, 'optionalAccess', _65 => _65.getItemSearchInfinite]);
990
+ const cb = _optionalChain([callbacks, 'optionalAccess', _69 => _69.getItemSearchInfinite]);
985
991
  const resolvedQueryFn = _nullishCoalesce(options.queryFn, () => ( (cb ? ({ pageParam }) => cb({
986
992
  itemsFilters,
987
993
  itemCategoryUid,
@@ -1002,12 +1008,12 @@ function useJoomlaContent(articleId, options = {}) {
1002
1008
  const callbacks = useAugurCallbacks();
1003
1009
  const cache = useAugurCache();
1004
1010
  const { data, isLoading, error } = _reactquery.useQuery.call(void 0, {
1005
- ...articleId ? _chunkCQ3BRHK2cjs.getJoomlaContentOptions.call(void 0, api, articleId, cache) : {
1006
- queryKey: _chunkCQ3BRHK2cjs.getJoomlaContentKey.call(void 0, ""),
1011
+ ...articleId ? _chunk7ZQV4BFDcjs.getJoomlaContentOptions.call(void 0, api, articleId, cache) : {
1012
+ queryKey: _chunk7ZQV4BFDcjs.getJoomlaContentKey.call(void 0, ""),
1007
1013
  /* v8 ignore next */
1008
1014
  queryFn: () => Promise.reject()
1009
1015
  },
1010
- ..._nullishCoalesce(options.queryFn, () => ( _optionalChain([callbacks, 'optionalAccess', _66 => _66.getJoomlaContent]))) ? { queryFn: _nullishCoalesce(options.queryFn, () => ( (() => callbacks.getJoomlaContent(articleId)))) } : {},
1016
+ ..._nullishCoalesce(options.queryFn, () => ( _optionalChain([callbacks, 'optionalAccess', _70 => _70.getJoomlaContent]))) ? { queryFn: _nullishCoalesce(options.queryFn, () => ( (() => callbacks.getJoomlaContent(articleId)))) } : {},
1011
1017
  enabled: (_nullishCoalesce(options.enabled, () => ( true))) && !!articleId
1012
1018
  });
1013
1019
  return {
@@ -1019,23 +1025,32 @@ function useJoomlaContent(articleId, options = {}) {
1019
1025
 
1020
1026
  // src/hooks/use-joomla-content-list.ts
1021
1027
 
1028
+ var EMPTY_LIST = { data: [], total: 0 };
1022
1029
  function useJoomlaContentList(categoryId, options = {}) {
1023
1030
  const api = useAugurApiOptional();
1024
1031
  const callbacks = useAugurCallbacks();
1025
1032
  const cache = useAugurCache();
1026
1033
  const { data, isLoading, error } = _reactquery.useQuery.call(void 0, {
1027
- ...categoryId ? _chunkCQ3BRHK2cjs.getJoomlaContentListOptions.call(void 0, api, categoryId, options.filters, cache) : {
1028
- queryKey: _chunkCQ3BRHK2cjs.getJoomlaContentListKey.call(void 0, ""),
1034
+ ...categoryId ? _chunk7ZQV4BFDcjs.getJoomlaContentListOptions.call(void 0, api, categoryId, options.filters, cache) : {
1035
+ queryKey: _chunk7ZQV4BFDcjs.getJoomlaContentListKey.call(void 0, ""),
1029
1036
  /* v8 ignore next */
1030
1037
  queryFn: () => Promise.reject()
1031
1038
  },
1032
- ..._nullishCoalesce(options.queryFn, () => ( _optionalChain([callbacks, 'optionalAccess', _67 => _67.getJoomlaContentList]))) ? {
1039
+ ..._nullishCoalesce(options.queryFn, () => ( _optionalChain([callbacks, 'optionalAccess', _71 => _71.getJoomlaContentList]))) ? {
1033
1040
  queryFn: _nullishCoalesce(options.queryFn, () => ( (() => callbacks.getJoomlaContentList(categoryId, options.filters))))
1034
1041
  } : {},
1035
1042
  enabled: (_nullishCoalesce(options.enabled, () => ( true))) && !!categoryId
1043
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1036
1044
  });
1045
+ const result = data || EMPTY_LIST;
1037
1046
  return {
1038
- articles: _nullishCoalesce(data, () => ( [])),
1047
+ articles: result.data,
1048
+ total: result.total,
1049
+ count: result.count,
1050
+ totalResults: result.totalResults,
1051
+ message: result.message,
1052
+ status: result.status,
1053
+ result,
1039
1054
  isLoading,
1040
1055
  error
1041
1056
  };
@@ -1043,19 +1058,28 @@ function useJoomlaContentList(categoryId, options = {}) {
1043
1058
 
1044
1059
  // src/hooks/use-joomla-menu.ts
1045
1060
 
1061
+ var EMPTY_LIST2 = { data: [], total: 0 };
1046
1062
  function useJoomlaMenu(options = {}) {
1047
1063
  const api = useAugurApiOptional();
1048
1064
  const callbacks = useAugurCallbacks();
1049
1065
  const cache = useAugurCache();
1050
1066
  const { data, isLoading, error } = _reactquery.useQuery.call(void 0, {
1051
- ..._chunkCQ3BRHK2cjs.getJoomlaMenuOptions.call(void 0, api, options.filters, cache),
1052
- ..._nullishCoalesce(options.queryFn, () => ( _optionalChain([callbacks, 'optionalAccess', _68 => _68.getJoomlaMenu]))) ? {
1067
+ ..._chunk7ZQV4BFDcjs.getJoomlaMenuOptions.call(void 0, api, options.filters, cache),
1068
+ ..._nullishCoalesce(options.queryFn, () => ( _optionalChain([callbacks, 'optionalAccess', _72 => _72.getJoomlaMenu]))) ? {
1053
1069
  queryFn: _nullishCoalesce(options.queryFn, () => ( (() => callbacks.getJoomlaMenu(options.filters))))
1054
1070
  } : {},
1055
1071
  enabled: _nullishCoalesce(options.enabled, () => ( true))
1072
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1056
1073
  });
1074
+ const result = data || EMPTY_LIST2;
1057
1075
  return {
1058
- menuItems: _nullishCoalesce(data, () => ( [])),
1076
+ menuItems: result.data,
1077
+ total: result.total,
1078
+ count: result.count,
1079
+ totalResults: result.totalResults,
1080
+ message: result.message,
1081
+ status: result.status,
1082
+ result,
1059
1083
  isLoading,
1060
1084
  error
1061
1085
  };
@@ -1068,12 +1092,12 @@ function useJoomlaMenuDoc(menuId, options = {}) {
1068
1092
  const callbacks = useAugurCallbacks();
1069
1093
  const cache = useAugurCache();
1070
1094
  const { data, isLoading, error } = _reactquery.useQuery.call(void 0, {
1071
- ...menuId ? _chunkCQ3BRHK2cjs.getJoomlaMenuDocOptions.call(void 0, api, menuId, cache) : {
1072
- queryKey: _chunkCQ3BRHK2cjs.getJoomlaMenuDocKey.call(void 0, ""),
1095
+ ...menuId ? _chunk7ZQV4BFDcjs.getJoomlaMenuDocOptions.call(void 0, api, menuId, cache) : {
1096
+ queryKey: _chunk7ZQV4BFDcjs.getJoomlaMenuDocKey.call(void 0, ""),
1073
1097
  /* v8 ignore next */
1074
1098
  queryFn: () => Promise.reject()
1075
1099
  },
1076
- ..._nullishCoalesce(options.queryFn, () => ( _optionalChain([callbacks, 'optionalAccess', _69 => _69.getJoomlaMenuDoc]))) ? { queryFn: _nullishCoalesce(options.queryFn, () => ( (() => callbacks.getJoomlaMenuDoc(menuId)))) } : {},
1100
+ ..._nullishCoalesce(options.queryFn, () => ( _optionalChain([callbacks, 'optionalAccess', _73 => _73.getJoomlaMenuDoc]))) ? { queryFn: _nullishCoalesce(options.queryFn, () => ( (() => callbacks.getJoomlaMenuDoc(menuId)))) } : {},
1077
1101
  enabled: (_nullishCoalesce(options.enabled, () => ( true))) && !!menuId
1078
1102
  });
1079
1103
  return {
@@ -1085,23 +1109,28 @@ function useJoomlaMenuDoc(menuId, options = {}) {
1085
1109
 
1086
1110
  // src/hooks/use-customer-orders.ts
1087
1111
 
1088
- var EMPTY_LIST = { data: [], total: 0 };
1112
+ var EMPTY_LIST3 = { data: [], total: 0 };
1089
1113
  function useCustomerOrders(customerId, params, options = {}) {
1090
1114
  const callbacks = useAugurCallbacks();
1091
1115
  const auth = useAugurAuth();
1092
1116
  const site = useAugurSite();
1093
- const effectiveCustomerId = _nullishCoalesce(_nullishCoalesce(customerId, () => ( _optionalChain([auth, 'optionalAccess', _70 => _70.customerId]))), () => ( _optionalChain([site, 'optionalAccess', _71 => _71.defaults, 'optionalAccess', _72 => _72.customerId])));
1094
- const resolvedQueryFn = _nullishCoalesce(options.queryFn, () => ( (_optionalChain([callbacks, 'optionalAccess', _73 => _73.getCustomerOrders]) ? () => callbacks.getCustomerOrders(effectiveCustomerId, params) : void 0)));
1117
+ const effectiveCustomerId = _nullishCoalesce(_nullishCoalesce(customerId, () => ( _optionalChain([auth, 'optionalAccess', _74 => _74.customerId]))), () => ( _optionalChain([site, 'optionalAccess', _75 => _75.defaults, 'optionalAccess', _76 => _76.customerId])));
1118
+ const resolvedQueryFn = _nullishCoalesce(options.queryFn, () => ( (_optionalChain([callbacks, 'optionalAccess', _77 => _77.getCustomerOrders]) ? () => callbacks.getCustomerOrders(effectiveCustomerId, params) : void 0)));
1095
1119
  const enabled = (_nullishCoalesce(options.enabled, () => ( true))) && !!effectiveCustomerId && !!resolvedQueryFn;
1096
1120
  const { data, isLoading, error } = _reactquery.useQuery.call(void 0, {
1097
- queryKey: _chunkCQ3BRHK2cjs.getCustomerOrdersKey.call(void 0, effectiveCustomerId, params),
1121
+ queryKey: _chunk7ZQV4BFDcjs.getCustomerOrdersKey.call(void 0, effectiveCustomerId, params),
1098
1122
  queryFn: resolvedQueryFn,
1099
1123
  enabled
1100
1124
  });
1101
- const result = data || EMPTY_LIST;
1125
+ const result = data || EMPTY_LIST3;
1102
1126
  return {
1103
1127
  orders: result.data,
1104
1128
  total: result.total,
1129
+ count: result.count,
1130
+ totalResults: result.totalResults,
1131
+ message: result.message,
1132
+ status: result.status,
1133
+ result,
1105
1134
  isLoading,
1106
1135
  error
1107
1136
  };
@@ -1110,11 +1139,11 @@ function useOrderDetail(customerId, orderId, options = {}) {
1110
1139
  const callbacks = useAugurCallbacks();
1111
1140
  const auth = useAugurAuth();
1112
1141
  const site = useAugurSite();
1113
- const effectiveCustomerId = _nullishCoalesce(_nullishCoalesce(customerId, () => ( _optionalChain([auth, 'optionalAccess', _74 => _74.customerId]))), () => ( _optionalChain([site, 'optionalAccess', _75 => _75.defaults, 'optionalAccess', _76 => _76.customerId])));
1114
- const resolvedQueryFn = _nullishCoalesce(options.queryFn, () => ( (_optionalChain([callbacks, 'optionalAccess', _77 => _77.getCustomerOrderDetail]) ? () => callbacks.getCustomerOrderDetail(effectiveCustomerId, orderId) : void 0)));
1142
+ const effectiveCustomerId = _nullishCoalesce(_nullishCoalesce(customerId, () => ( _optionalChain([auth, 'optionalAccess', _78 => _78.customerId]))), () => ( _optionalChain([site, 'optionalAccess', _79 => _79.defaults, 'optionalAccess', _80 => _80.customerId])));
1143
+ const resolvedQueryFn = _nullishCoalesce(options.queryFn, () => ( (_optionalChain([callbacks, 'optionalAccess', _81 => _81.getCustomerOrderDetail]) ? () => callbacks.getCustomerOrderDetail(effectiveCustomerId, orderId) : void 0)));
1115
1144
  const enabled = (_nullishCoalesce(options.enabled, () => ( true))) && !!effectiveCustomerId && !!orderId && !!resolvedQueryFn;
1116
1145
  const { data, isLoading, error } = _reactquery.useQuery.call(void 0, {
1117
- queryKey: _chunkCQ3BRHK2cjs.getCustomerOrderDetailKey.call(void 0, effectiveCustomerId, orderId),
1146
+ queryKey: _chunk7ZQV4BFDcjs.getCustomerOrderDetailKey.call(void 0, effectiveCustomerId, orderId),
1118
1147
  queryFn: resolvedQueryFn,
1119
1148
  enabled
1120
1149
  });
@@ -1127,23 +1156,28 @@ function useOrderDetail(customerId, orderId, options = {}) {
1127
1156
 
1128
1157
  // src/hooks/use-customer-invoices.ts
1129
1158
 
1130
- var EMPTY_LIST2 = { data: [], total: 0 };
1159
+ var EMPTY_LIST4 = { data: [], total: 0 };
1131
1160
  function useCustomerInvoices(customerId, params, options = {}) {
1132
1161
  const callbacks = useAugurCallbacks();
1133
1162
  const auth = useAugurAuth();
1134
1163
  const site = useAugurSite();
1135
- const effectiveCustomerId = _nullishCoalesce(_nullishCoalesce(customerId, () => ( _optionalChain([auth, 'optionalAccess', _78 => _78.customerId]))), () => ( _optionalChain([site, 'optionalAccess', _79 => _79.defaults, 'optionalAccess', _80 => _80.customerId])));
1136
- const resolvedQueryFn = _nullishCoalesce(options.queryFn, () => ( (_optionalChain([callbacks, 'optionalAccess', _81 => _81.getCustomerInvoices]) ? () => callbacks.getCustomerInvoices(effectiveCustomerId, params) : void 0)));
1164
+ const effectiveCustomerId = _nullishCoalesce(_nullishCoalesce(customerId, () => ( _optionalChain([auth, 'optionalAccess', _82 => _82.customerId]))), () => ( _optionalChain([site, 'optionalAccess', _83 => _83.defaults, 'optionalAccess', _84 => _84.customerId])));
1165
+ const resolvedQueryFn = _nullishCoalesce(options.queryFn, () => ( (_optionalChain([callbacks, 'optionalAccess', _85 => _85.getCustomerInvoices]) ? () => callbacks.getCustomerInvoices(effectiveCustomerId, params) : void 0)));
1137
1166
  const enabled = (_nullishCoalesce(options.enabled, () => ( true))) && !!effectiveCustomerId && !!resolvedQueryFn;
1138
1167
  const { data, isLoading, error } = _reactquery.useQuery.call(void 0, {
1139
- queryKey: _chunkCQ3BRHK2cjs.getCustomerInvoicesKey.call(void 0, effectiveCustomerId, params),
1168
+ queryKey: _chunk7ZQV4BFDcjs.getCustomerInvoicesKey.call(void 0, effectiveCustomerId, params),
1140
1169
  queryFn: resolvedQueryFn,
1141
1170
  enabled
1142
1171
  });
1143
- const result = data || EMPTY_LIST2;
1172
+ const result = data || EMPTY_LIST4;
1144
1173
  return {
1145
1174
  invoices: result.data,
1146
1175
  total: result.total,
1176
+ count: result.count,
1177
+ totalResults: result.totalResults,
1178
+ message: result.message,
1179
+ status: result.status,
1180
+ result,
1147
1181
  isLoading,
1148
1182
  error
1149
1183
  };
@@ -1152,11 +1186,11 @@ function useInvoiceDetail(customerId, invoiceNo, options = {}) {
1152
1186
  const callbacks = useAugurCallbacks();
1153
1187
  const auth = useAugurAuth();
1154
1188
  const site = useAugurSite();
1155
- const effectiveCustomerId = _nullishCoalesce(_nullishCoalesce(customerId, () => ( _optionalChain([auth, 'optionalAccess', _82 => _82.customerId]))), () => ( _optionalChain([site, 'optionalAccess', _83 => _83.defaults, 'optionalAccess', _84 => _84.customerId])));
1156
- const resolvedQueryFn = _nullishCoalesce(options.queryFn, () => ( (_optionalChain([callbacks, 'optionalAccess', _85 => _85.getCustomerInvoiceDetail]) ? () => callbacks.getCustomerInvoiceDetail(effectiveCustomerId, invoiceNo) : void 0)));
1189
+ const effectiveCustomerId = _nullishCoalesce(_nullishCoalesce(customerId, () => ( _optionalChain([auth, 'optionalAccess', _86 => _86.customerId]))), () => ( _optionalChain([site, 'optionalAccess', _87 => _87.defaults, 'optionalAccess', _88 => _88.customerId])));
1190
+ const resolvedQueryFn = _nullishCoalesce(options.queryFn, () => ( (_optionalChain([callbacks, 'optionalAccess', _89 => _89.getCustomerInvoiceDetail]) ? () => callbacks.getCustomerInvoiceDetail(effectiveCustomerId, invoiceNo) : void 0)));
1157
1191
  const enabled = (_nullishCoalesce(options.enabled, () => ( true))) && !!effectiveCustomerId && !!invoiceNo && !!resolvedQueryFn;
1158
1192
  const { data, isLoading, error } = _reactquery.useQuery.call(void 0, {
1159
- queryKey: _chunkCQ3BRHK2cjs.getCustomerInvoiceDetailKey.call(void 0, effectiveCustomerId, invoiceNo),
1193
+ queryKey: _chunk7ZQV4BFDcjs.getCustomerInvoiceDetailKey.call(void 0, effectiveCustomerId, invoiceNo),
1160
1194
  queryFn: resolvedQueryFn,
1161
1195
  enabled
1162
1196
  });
@@ -1169,23 +1203,28 @@ function useInvoiceDetail(customerId, invoiceNo, options = {}) {
1169
1203
 
1170
1204
  // src/hooks/use-customer-quotes.ts
1171
1205
 
1172
- var EMPTY_LIST3 = { data: [], total: 0 };
1206
+ var EMPTY_LIST5 = { data: [], total: 0 };
1173
1207
  function useCustomerQuotes(customerId, params, options = {}) {
1174
1208
  const callbacks = useAugurCallbacks();
1175
1209
  const auth = useAugurAuth();
1176
1210
  const site = useAugurSite();
1177
- const effectiveCustomerId = _nullishCoalesce(_nullishCoalesce(customerId, () => ( _optionalChain([auth, 'optionalAccess', _86 => _86.customerId]))), () => ( _optionalChain([site, 'optionalAccess', _87 => _87.defaults, 'optionalAccess', _88 => _88.customerId])));
1178
- const resolvedQueryFn = _nullishCoalesce(options.queryFn, () => ( (_optionalChain([callbacks, 'optionalAccess', _89 => _89.getCustomerQuotes]) ? () => callbacks.getCustomerQuotes(effectiveCustomerId, params) : void 0)));
1211
+ const effectiveCustomerId = _nullishCoalesce(_nullishCoalesce(customerId, () => ( _optionalChain([auth, 'optionalAccess', _90 => _90.customerId]))), () => ( _optionalChain([site, 'optionalAccess', _91 => _91.defaults, 'optionalAccess', _92 => _92.customerId])));
1212
+ const resolvedQueryFn = _nullishCoalesce(options.queryFn, () => ( (_optionalChain([callbacks, 'optionalAccess', _93 => _93.getCustomerQuotes]) ? () => callbacks.getCustomerQuotes(effectiveCustomerId, params) : void 0)));
1179
1213
  const enabled = (_nullishCoalesce(options.enabled, () => ( true))) && !!effectiveCustomerId && !!resolvedQueryFn;
1180
1214
  const { data, isLoading, error } = _reactquery.useQuery.call(void 0, {
1181
- queryKey: _chunkCQ3BRHK2cjs.getCustomerQuotesKey.call(void 0, effectiveCustomerId, params),
1215
+ queryKey: _chunk7ZQV4BFDcjs.getCustomerQuotesKey.call(void 0, effectiveCustomerId, params),
1182
1216
  queryFn: resolvedQueryFn,
1183
1217
  enabled
1184
1218
  });
1185
- const result = data || EMPTY_LIST3;
1219
+ const result = data || EMPTY_LIST5;
1186
1220
  return {
1187
1221
  quotes: result.data,
1188
1222
  total: result.total,
1223
+ count: result.count,
1224
+ totalResults: result.totalResults,
1225
+ message: result.message,
1226
+ status: result.status,
1227
+ result,
1189
1228
  isLoading,
1190
1229
  error
1191
1230
  };
@@ -1194,11 +1233,11 @@ function useQuoteDetail(customerId, quoteNo, options = {}) {
1194
1233
  const callbacks = useAugurCallbacks();
1195
1234
  const auth = useAugurAuth();
1196
1235
  const site = useAugurSite();
1197
- const effectiveCustomerId = _nullishCoalesce(_nullishCoalesce(customerId, () => ( _optionalChain([auth, 'optionalAccess', _90 => _90.customerId]))), () => ( _optionalChain([site, 'optionalAccess', _91 => _91.defaults, 'optionalAccess', _92 => _92.customerId])));
1198
- const resolvedQueryFn = _nullishCoalesce(options.queryFn, () => ( (_optionalChain([callbacks, 'optionalAccess', _93 => _93.getCustomerQuoteDetail]) ? () => callbacks.getCustomerQuoteDetail(effectiveCustomerId, quoteNo) : void 0)));
1236
+ const effectiveCustomerId = _nullishCoalesce(_nullishCoalesce(customerId, () => ( _optionalChain([auth, 'optionalAccess', _94 => _94.customerId]))), () => ( _optionalChain([site, 'optionalAccess', _95 => _95.defaults, 'optionalAccess', _96 => _96.customerId])));
1237
+ const resolvedQueryFn = _nullishCoalesce(options.queryFn, () => ( (_optionalChain([callbacks, 'optionalAccess', _97 => _97.getCustomerQuoteDetail]) ? () => callbacks.getCustomerQuoteDetail(effectiveCustomerId, quoteNo) : void 0)));
1199
1238
  const enabled = (_nullishCoalesce(options.enabled, () => ( true))) && !!effectiveCustomerId && !!quoteNo && !!resolvedQueryFn;
1200
1239
  const { data, isLoading, error } = _reactquery.useQuery.call(void 0, {
1201
- queryKey: _chunkCQ3BRHK2cjs.getCustomerQuoteDetailKey.call(void 0, effectiveCustomerId, quoteNo),
1240
+ queryKey: _chunk7ZQV4BFDcjs.getCustomerQuoteDetailKey.call(void 0, effectiveCustomerId, quoteNo),
1202
1241
  queryFn: resolvedQueryFn,
1203
1242
  enabled
1204
1243
  });
@@ -1215,10 +1254,10 @@ function createSiteHooks(config = {}) {
1215
1254
  const { callbacks, defaultCustomerId, cache, imageConfig } = config;
1216
1255
  function Provider({ api, auth, children }) {
1217
1256
  const mergedAuth = {
1218
- status: _nullishCoalesce(_optionalChain([auth, 'optionalAccess', _94 => _94.status]), () => ( "unauthenticated")),
1219
- customerId: _optionalChain([auth, 'optionalAccess', _95 => _95.customerId]),
1220
- userId: _optionalChain([auth, 'optionalAccess', _96 => _96.userId]),
1221
- cartHdrUid: _optionalChain([auth, 'optionalAccess', _97 => _97.cartHdrUid])
1257
+ status: _nullishCoalesce(_optionalChain([auth, 'optionalAccess', _98 => _98.status]), () => ( "unauthenticated")),
1258
+ customerId: _optionalChain([auth, 'optionalAccess', _99 => _99.customerId]),
1259
+ userId: _optionalChain([auth, 'optionalAccess', _100 => _100.userId]),
1260
+ cartHdrUid: _optionalChain([auth, 'optionalAccess', _101 => _101.cartHdrUid])
1222
1261
  };
1223
1262
  return _react.createElement.call(void 0, AugurHooksProvider, {
1224
1263
  api,
@@ -1298,7 +1337,7 @@ function deserialize(data) {
1298
1337
 
1299
1338
  // src/persistence/apply-limits.ts
1300
1339
  function applyLimits(data, limits) {
1301
- const queries = _optionalChain([data, 'access', _98 => _98.clientState, 'optionalAccess', _99 => _99.queries]);
1340
+ const queries = _optionalChain([data, 'access', _102 => _102.clientState, 'optionalAccess', _103 => _103.queries]);
1302
1341
  if (!queries || Object.keys(limits).length === 0) return data;
1303
1342
  const entries = queries;
1304
1343
  const unlimited = [];
@@ -1399,7 +1438,7 @@ function useStorageMonitor(config) {
1399
1438
  const raw = storage.getItem(key);
1400
1439
  if (!raw) return;
1401
1440
  const parsed = JSON.parse(raw);
1402
- if (!_optionalChain([parsed, 'access', _100 => _100.clientState, 'optionalAccess', _101 => _101.queries])) return;
1441
+ if (!_optionalChain([parsed, 'access', _104 => _104.clientState, 'optionalAccess', _105 => _105.queries])) return;
1403
1442
  parsed.clientState.queries = parsed.clientState.queries.filter(
1404
1443
  (q) => {
1405
1444
  if (!Array.isArray(q.queryKey)) return true;
@@ -1426,7 +1465,7 @@ function useAugurPersistence(config) {
1426
1465
  setIsMounted(true);
1427
1466
  }, []);
1428
1467
  useStorageMonitor(config);
1429
- const isDev = typeof process !== "undefined" && _optionalChain([process, 'access', _102 => _102.env, 'optionalAccess', _103 => _103.NODE_ENV]) === "development";
1468
+ const isDev = typeof process !== "undefined" && _optionalChain([process, 'access', _106 => _106.env, 'optionalAccess', _107 => _107.NODE_ENV]) === "development";
1430
1469
  const { persistableKeys } = config;
1431
1470
  const dehydrateOptions = _react.useMemo.call(void 0, () => ({
1432
1471
  shouldDehydrateQuery: (query) => {
@@ -1536,5 +1575,5 @@ function useAugurPersistence(config) {
1536
1575
 
1537
1576
 
1538
1577
 
1539
- exports.AugurHooksProvider = AugurHooksProvider; exports.createSiteHooks = createSiteHooks; exports.executeBatchQuery = _chunkCQ3BRHK2cjs.executeBatchQuery; exports.getBatchInvMastDocKey = _chunkCQ3BRHK2cjs.getBatchInvMastDocKey; exports.getBatchInvMastDocOptions = _chunkCQ3BRHK2cjs.getBatchInvMastDocOptions; exports.getCartPricingQueryOptions = _chunkCQ3BRHK2cjs.getCartPricingQueryOptions; exports.getCategoryItemsInfiniteKey = _chunkCQ3BRHK2cjs.getCategoryItemsInfiniteKey; exports.getCategoryItemsInfiniteOptions = _chunkCQ3BRHK2cjs.getCategoryItemsInfiniteOptions; exports.getCustomerInvoiceDetailKey = _chunkCQ3BRHK2cjs.getCustomerInvoiceDetailKey; exports.getCustomerInvoicesKey = _chunkCQ3BRHK2cjs.getCustomerInvoicesKey; exports.getCustomerOrderDetailKey = _chunkCQ3BRHK2cjs.getCustomerOrderDetailKey; exports.getCustomerOrdersKey = _chunkCQ3BRHK2cjs.getCustomerOrdersKey; exports.getCustomerQuoteDetailKey = _chunkCQ3BRHK2cjs.getCustomerQuoteDetailKey; exports.getCustomerQuotesKey = _chunkCQ3BRHK2cjs.getCustomerQuotesKey; exports.getInvMastDocKey = _chunkCQ3BRHK2cjs.getInvMastDocKey; exports.getInvMastDocOptions = _chunkCQ3BRHK2cjs.getInvMastDocOptions; exports.getInvMastKey = _chunkCQ3BRHK2cjs.getInvMastKey; exports.getInvMastOptions = _chunkCQ3BRHK2cjs.getInvMastOptions; exports.getInvMastStockKey = _chunkCQ3BRHK2cjs.getInvMastStockKey; exports.getInvMastStockOptions = _chunkCQ3BRHK2cjs.getInvMastStockOptions; exports.getItemAttributesKey = _chunkCQ3BRHK2cjs.getItemAttributesKey; exports.getItemAttributesOptions = _chunkCQ3BRHK2cjs.getItemAttributesOptions; exports.getItemCategoryKey = _chunkCQ3BRHK2cjs.getItemCategoryKey; exports.getItemCategoryOptions = _chunkCQ3BRHK2cjs.getItemCategoryOptions; exports.getItemDetailsKey = _chunkCQ3BRHK2cjs.getItemDetailsKey; exports.getItemDetailsOptions = _chunkCQ3BRHK2cjs.getItemDetailsOptions; exports.getItemPriceKey = _chunkCQ3BRHK2cjs.getItemPriceKey; exports.getItemPriceOptions = _chunkCQ3BRHK2cjs.getItemPriceOptions; exports.getItemSearchInfiniteKey = _chunkCQ3BRHK2cjs.getItemSearchInfiniteKey; exports.getItemSearchInfiniteOptions = _chunkCQ3BRHK2cjs.getItemSearchInfiniteOptions; exports.getJoomlaContentKey = _chunkCQ3BRHK2cjs.getJoomlaContentKey; exports.getJoomlaContentListKey = _chunkCQ3BRHK2cjs.getJoomlaContentListKey; exports.getJoomlaContentListOptions = _chunkCQ3BRHK2cjs.getJoomlaContentListOptions; exports.getJoomlaContentOptions = _chunkCQ3BRHK2cjs.getJoomlaContentOptions; exports.getJoomlaMenuDocKey = _chunkCQ3BRHK2cjs.getJoomlaMenuDocKey; exports.getJoomlaMenuDocOptions = _chunkCQ3BRHK2cjs.getJoomlaMenuDocOptions; exports.getJoomlaMenuKey = _chunkCQ3BRHK2cjs.getJoomlaMenuKey; exports.getJoomlaMenuOptions = _chunkCQ3BRHK2cjs.getJoomlaMenuOptions; exports.getProductCategoryKey = _chunkCQ3BRHK2cjs.getProductCategoryKey; exports.getProductCategoryOptions = _chunkCQ3BRHK2cjs.getProductCategoryOptions; exports.getProductSearchKey = _chunkCQ3BRHK2cjs.getProductSearchKey; exports.getProductSearchOptions = _chunkCQ3BRHK2cjs.getProductSearchOptions; exports.getSearchSuggestionsKey = _chunkCQ3BRHK2cjs.getSearchSuggestionsKey; exports.getSearchSuggestionsOptions = _chunkCQ3BRHK2cjs.getSearchSuggestionsOptions; exports.getStockKey = _chunkCQ3BRHK2cjs.getStockKey; exports.getStockOptions = _chunkCQ3BRHK2cjs.getStockOptions; exports.useAugurApi = useAugurApi; exports.useAugurApiOptional = useAugurApiOptional; exports.useAugurAuth = useAugurAuth; exports.useAugurCache = useAugurCache; exports.useAugurOptions = useAugurOptions; exports.useAugurPersistence = useAugurPersistence; exports.useAugurSite = useAugurSite; exports.useBatchInvMastDoc = useBatchInvMastDoc; exports.useCartActions = useCartActions; exports.useCartHdrUid = useCartHdrUid; exports.useCartInitialization = useCartInitialization; exports.useCartLineCount = useCartLineCount; exports.useCartLines = useCartLines; exports.useCartPricing = useCartPricing; exports.useCartQuantityTotal = useCartQuantityTotal; exports.useCartStore = useCartStore; exports.useCategoryItemsInfinite = useCategoryItemsInfinite; exports.useClearCart = useClearCart; exports.useCustomerInvoices = useCustomerInvoices; exports.useCustomerOrders = useCustomerOrders; exports.useCustomerQuotes = useCustomerQuotes; exports.useDebounce = useDebounce; exports.useFormatPrice = useFormatPrice; exports.useInvMast = useInvMast; exports.useInvMastDoc = useInvMastDoc; exports.useInvMastStock = useInvMastStock; exports.useInvoiceDetail = useInvoiceDetail; exports.useItemAttributes = useItemAttributes; exports.useItemCategory = useItemCategory; exports.useItemDetails = useItemDetails; exports.useItemFiltersStore = useItemFiltersStore; exports.useItemPrice = useItemPrice; exports.useItemSearchInfinite = useItemSearchInfinite; exports.useJoomlaContent = useJoomlaContent; exports.useJoomlaContentList = useJoomlaContentList; exports.useJoomlaMenu = useJoomlaMenu; exports.useJoomlaMenuDoc = useJoomlaMenuDoc; exports.useOrderDetail = useOrderDetail; exports.usePaginationPrefetch = usePaginationPrefetch; exports.useProductCategory = useProductCategory; exports.useProductSearch = useProductSearch; exports.useQuoteDetail = useQuoteDetail; exports.useSearchSuggestions = useSearchSuggestions; exports.useSetCartHdrUid = useSetCartHdrUid; exports.useSetCartLines = useSetCartLines; exports.useStock = useStock;
1578
+ exports.AugurHooksProvider = AugurHooksProvider; exports.createSiteHooks = createSiteHooks; exports.executeBatchQuery = _chunk7ZQV4BFDcjs.executeBatchQuery; exports.getBatchInvMastDocKey = _chunk7ZQV4BFDcjs.getBatchInvMastDocKey; exports.getBatchInvMastDocOptions = _chunk7ZQV4BFDcjs.getBatchInvMastDocOptions; exports.getCartPricingQueryOptions = _chunk7ZQV4BFDcjs.getCartPricingQueryOptions; exports.getCategoryItemsInfiniteKey = _chunk7ZQV4BFDcjs.getCategoryItemsInfiniteKey; exports.getCategoryItemsInfiniteOptions = _chunk7ZQV4BFDcjs.getCategoryItemsInfiniteOptions; exports.getCustomerInvoiceDetailKey = _chunk7ZQV4BFDcjs.getCustomerInvoiceDetailKey; exports.getCustomerInvoicesKey = _chunk7ZQV4BFDcjs.getCustomerInvoicesKey; exports.getCustomerOrderDetailKey = _chunk7ZQV4BFDcjs.getCustomerOrderDetailKey; exports.getCustomerOrdersKey = _chunk7ZQV4BFDcjs.getCustomerOrdersKey; exports.getCustomerQuoteDetailKey = _chunk7ZQV4BFDcjs.getCustomerQuoteDetailKey; exports.getCustomerQuotesKey = _chunk7ZQV4BFDcjs.getCustomerQuotesKey; exports.getInvMastDocKey = _chunk7ZQV4BFDcjs.getInvMastDocKey; exports.getInvMastDocOptions = _chunk7ZQV4BFDcjs.getInvMastDocOptions; exports.getInvMastKey = _chunk7ZQV4BFDcjs.getInvMastKey; exports.getInvMastOptions = _chunk7ZQV4BFDcjs.getInvMastOptions; exports.getInvMastStockKey = _chunk7ZQV4BFDcjs.getInvMastStockKey; exports.getInvMastStockOptions = _chunk7ZQV4BFDcjs.getInvMastStockOptions; exports.getItemAttributesKey = _chunk7ZQV4BFDcjs.getItemAttributesKey; exports.getItemAttributesOptions = _chunk7ZQV4BFDcjs.getItemAttributesOptions; exports.getItemCategoryKey = _chunk7ZQV4BFDcjs.getItemCategoryKey; exports.getItemCategoryOptions = _chunk7ZQV4BFDcjs.getItemCategoryOptions; exports.getItemDetailsKey = _chunk7ZQV4BFDcjs.getItemDetailsKey; exports.getItemDetailsOptions = _chunk7ZQV4BFDcjs.getItemDetailsOptions; exports.getItemPriceKey = _chunk7ZQV4BFDcjs.getItemPriceKey; exports.getItemPriceOptions = _chunk7ZQV4BFDcjs.getItemPriceOptions; exports.getItemSearchInfiniteKey = _chunk7ZQV4BFDcjs.getItemSearchInfiniteKey; exports.getItemSearchInfiniteOptions = _chunk7ZQV4BFDcjs.getItemSearchInfiniteOptions; exports.getJoomlaContentKey = _chunk7ZQV4BFDcjs.getJoomlaContentKey; exports.getJoomlaContentListKey = _chunk7ZQV4BFDcjs.getJoomlaContentListKey; exports.getJoomlaContentListOptions = _chunk7ZQV4BFDcjs.getJoomlaContentListOptions; exports.getJoomlaContentOptions = _chunk7ZQV4BFDcjs.getJoomlaContentOptions; exports.getJoomlaMenuDocKey = _chunk7ZQV4BFDcjs.getJoomlaMenuDocKey; exports.getJoomlaMenuDocOptions = _chunk7ZQV4BFDcjs.getJoomlaMenuDocOptions; exports.getJoomlaMenuKey = _chunk7ZQV4BFDcjs.getJoomlaMenuKey; exports.getJoomlaMenuOptions = _chunk7ZQV4BFDcjs.getJoomlaMenuOptions; exports.getProductCategoryKey = _chunk7ZQV4BFDcjs.getProductCategoryKey; exports.getProductCategoryOptions = _chunk7ZQV4BFDcjs.getProductCategoryOptions; exports.getProductSearchKey = _chunk7ZQV4BFDcjs.getProductSearchKey; exports.getProductSearchOptions = _chunk7ZQV4BFDcjs.getProductSearchOptions; exports.getSearchSuggestionsKey = _chunk7ZQV4BFDcjs.getSearchSuggestionsKey; exports.getSearchSuggestionsOptions = _chunk7ZQV4BFDcjs.getSearchSuggestionsOptions; exports.getStockKey = _chunk7ZQV4BFDcjs.getStockKey; exports.getStockOptions = _chunk7ZQV4BFDcjs.getStockOptions; exports.useAugurApi = useAugurApi; exports.useAugurApiOptional = useAugurApiOptional; exports.useAugurAuth = useAugurAuth; exports.useAugurCache = useAugurCache; exports.useAugurOptions = useAugurOptions; exports.useAugurPersistence = useAugurPersistence; exports.useAugurSite = useAugurSite; exports.useBatchInvMastDoc = useBatchInvMastDoc; exports.useCartActions = useCartActions; exports.useCartHdrUid = useCartHdrUid; exports.useCartInitialization = useCartInitialization; exports.useCartLineCount = useCartLineCount; exports.useCartLines = useCartLines; exports.useCartPricing = useCartPricing; exports.useCartQuantityTotal = useCartQuantityTotal; exports.useCartStore = useCartStore; exports.useCategoryItemsInfinite = useCategoryItemsInfinite; exports.useClearCart = useClearCart; exports.useCustomerInvoices = useCustomerInvoices; exports.useCustomerOrders = useCustomerOrders; exports.useCustomerQuotes = useCustomerQuotes; exports.useDebounce = useDebounce; exports.useFormatPrice = useFormatPrice; exports.useInvMast = useInvMast; exports.useInvMastDoc = useInvMastDoc; exports.useInvMastStock = useInvMastStock; exports.useInvoiceDetail = useInvoiceDetail; exports.useItemAttributes = useItemAttributes; exports.useItemCategory = useItemCategory; exports.useItemDetails = useItemDetails; exports.useItemFiltersStore = useItemFiltersStore; exports.useItemPrice = useItemPrice; exports.useItemSearchInfinite = useItemSearchInfinite; exports.useJoomlaContent = useJoomlaContent; exports.useJoomlaContentList = useJoomlaContentList; exports.useJoomlaMenu = useJoomlaMenu; exports.useJoomlaMenuDoc = useJoomlaMenuDoc; exports.useOrderDetail = useOrderDetail; exports.usePaginationPrefetch = usePaginationPrefetch; exports.useProductCategory = useProductCategory; exports.useProductSearch = useProductSearch; exports.useQuoteDetail = useQuoteDetail; exports.useSearchSuggestions = useSearchSuggestions; exports.useSetCartHdrUid = useSetCartHdrUid; exports.useSetCartLines = useSetCartLines; exports.useStock = useStock;
1540
1579
  //# sourceMappingURL=index.cjs.map