kaafil-react-uikit 0.11.5 → 0.11.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkUSKVWPJD_cjs = require('./chunk-USKVWPJD.cjs');
3
+ var chunkARXY3ZA7_cjs = require('./chunk-ARXY3ZA7.cjs');
4
4
  var chunkVHBGE4BY_cjs = require('./chunk-VHBGE4BY.cjs');
5
5
  var chunk5ORJRFXZ_cjs = require('./chunk-5ORJRFXZ.cjs');
6
6
  var react = require('react');
@@ -402,12 +402,12 @@ function useAgencyTrips() {
402
402
  );
403
403
  return { makeTripsFetch, segmentCounts };
404
404
  }
405
- var useBookingsInternal = chunkUSKVWPJD_cjs.createDomainHook("bookings", (tripRef) => {
405
+ var useBookingsInternal = chunkARXY3ZA7_cjs.createDomainHook("bookings", (tripRef) => {
406
406
  const {
407
407
  rows: bookings,
408
408
  syncedAt,
409
409
  refreshLive
410
- } = chunkUSKVWPJD_cjs.useSnapshotList(tripRef, "bookings", {
410
+ } = chunkARXY3ZA7_cjs.useSnapshotList(tripRef, "bookings", {
411
411
  live: async (liveClient, ref) => {
412
412
  const response = await liveClient.bookings.list({ tripRef: ref });
413
413
  return { rows: [...response], syncedAt: response.meta.serverTime };
@@ -519,7 +519,7 @@ function useDirectories(agencyRef) {
519
519
  isLead: input.isLead
520
520
  });
521
521
  } catch (error) {
522
- throw new DirectoriesWriteError(chunkUSKVWPJD_cjs.classifyError(error));
522
+ throw new DirectoriesWriteError(chunkARXY3ZA7_cjs.classifyError(error));
523
523
  }
524
524
  },
525
525
  [client]
@@ -534,7 +534,7 @@ function useDirectories(agencyRef) {
534
534
  ...input.isLead === void 0 ? {} : { isLead: input.isLead }
535
535
  });
536
536
  } catch (error) {
537
- throw new DirectoriesWriteError(chunkUSKVWPJD_cjs.classifyError(error));
537
+ throw new DirectoriesWriteError(chunkARXY3ZA7_cjs.classifyError(error));
538
538
  }
539
539
  },
540
540
  [client]
@@ -547,7 +547,7 @@ function useDirectories(agencyRef) {
547
547
  managerRef: input.managerRef
548
548
  });
549
549
  } catch (error) {
550
- throw new DirectoriesWriteError(chunkUSKVWPJD_cjs.classifyError(error));
550
+ throw new DirectoriesWriteError(chunkARXY3ZA7_cjs.classifyError(error));
551
551
  }
552
552
  },
553
553
  [client]
@@ -582,7 +582,7 @@ function useDirectories(agencyRef) {
582
582
  if (error instanceof DirectoriesWriteError) {
583
583
  throw error;
584
584
  }
585
- throw new DirectoriesWriteError(chunkUSKVWPJD_cjs.classifyError(error));
585
+ throw new DirectoriesWriteError(chunkARXY3ZA7_cjs.classifyError(error));
586
586
  }
587
587
  },
588
588
  [client]
@@ -598,7 +598,7 @@ function useDirectories(agencyRef) {
598
598
  externalTravellerId: input.externalTravellerId
599
599
  });
600
600
  } catch (error) {
601
- throw new DirectoriesWriteError(chunkUSKVWPJD_cjs.classifyError(error));
601
+ throw new DirectoriesWriteError(chunkARXY3ZA7_cjs.classifyError(error));
602
602
  }
603
603
  },
604
604
  [client]
@@ -611,7 +611,7 @@ function useDirectories(agencyRef) {
611
611
  travellerRef: input.travellerRef
612
612
  });
613
613
  } catch (error) {
614
- throw new DirectoriesWriteError(chunkUSKVWPJD_cjs.classifyError(error));
614
+ throw new DirectoriesWriteError(chunkARXY3ZA7_cjs.classifyError(error));
615
615
  }
616
616
  },
617
617
  [client]
@@ -626,7 +626,7 @@ function useDirectories(agencyRef) {
626
626
  travellerRefs: [...input.travellerRefs]
627
627
  });
628
628
  } catch (error) {
629
- throw new DirectoriesWriteError(chunkUSKVWPJD_cjs.classifyError(error));
629
+ throw new DirectoriesWriteError(chunkARXY3ZA7_cjs.classifyError(error));
630
630
  }
631
631
  },
632
632
  [client]
@@ -643,7 +643,7 @@ function useDirectories(agencyRef) {
643
643
  ...input.travellerRefs !== void 0 ? { travellerRefs: [...input.travellerRefs] } : {}
644
644
  });
645
645
  } catch (error) {
646
- throw new DirectoriesWriteError(chunkUSKVWPJD_cjs.classifyError(error));
646
+ throw new DirectoriesWriteError(chunkARXY3ZA7_cjs.classifyError(error));
647
647
  }
648
648
  },
649
649
  [client]
@@ -653,7 +653,7 @@ function useDirectories(agencyRef) {
653
653
  try {
654
654
  await client.trips.parties.remove({ tripRef: input.tripRef, partyId: input.partyId });
655
655
  } catch (error) {
656
- throw new DirectoriesWriteError(chunkUSKVWPJD_cjs.classifyError(error));
656
+ throw new DirectoriesWriteError(chunkARXY3ZA7_cjs.classifyError(error));
657
657
  }
658
658
  },
659
659
  [client]
@@ -667,7 +667,7 @@ function useDirectories(agencyRef) {
667
667
  body: input.body
668
668
  });
669
669
  } catch (error) {
670
- throw new DirectoriesWriteError(chunkUSKVWPJD_cjs.classifyError(error));
670
+ throw new DirectoriesWriteError(chunkARXY3ZA7_cjs.classifyError(error));
671
671
  }
672
672
  },
673
673
  [client]
@@ -714,7 +714,7 @@ function usePaginatedList(fetch, options) {
714
714
  setPageIndex(index);
715
715
  setError(void 0);
716
716
  } catch (caught) {
717
- setError(chunkUSKVWPJD_cjs.classifyError(caught));
717
+ setError(chunkARXY3ZA7_cjs.classifyError(caught));
718
718
  setHasNext(false);
719
719
  } finally {
720
720
  setSettled(true);
@@ -804,7 +804,7 @@ function useShareLinks(tripRef, travellerRef) {
804
804
  await refresh();
805
805
  return minted;
806
806
  } catch (error) {
807
- throw new ShareLinkWriteError(chunkUSKVWPJD_cjs.classifyError(error));
807
+ throw new ShareLinkWriteError(chunkARXY3ZA7_cjs.classifyError(error));
808
808
  }
809
809
  },
810
810
  [client, tripRef, refresh]
@@ -815,7 +815,7 @@ function useShareLinks(tripRef, travellerRef) {
815
815
  await client.shareTokens.revoke({ id });
816
816
  await refresh();
817
817
  } catch (error) {
818
- throw new ShareLinkWriteError(chunkUSKVWPJD_cjs.classifyError(error));
818
+ throw new ShareLinkWriteError(chunkARXY3ZA7_cjs.classifyError(error));
819
819
  }
820
820
  },
821
821
  [client, refresh]
@@ -831,7 +831,7 @@ function useShareLinks(tripRef, travellerRef) {
831
831
  });
832
832
  await refresh();
833
833
  } catch (error) {
834
- throw new ShareLinkWriteError(chunkUSKVWPJD_cjs.classifyError(error));
834
+ throw new ShareLinkWriteError(chunkARXY3ZA7_cjs.classifyError(error));
835
835
  }
836
836
  },
837
837
  [client, refresh]
@@ -843,7 +843,7 @@ function useShareLinks(tripRef, travellerRef) {
843
843
  await refresh();
844
844
  return minted;
845
845
  } catch (error) {
846
- throw new ShareLinkWriteError(chunkUSKVWPJD_cjs.classifyError(error));
846
+ throw new ShareLinkWriteError(chunkARXY3ZA7_cjs.classifyError(error));
847
847
  }
848
848
  },
849
849
  [client, refresh]
@@ -854,7 +854,7 @@ function useShareLinks(tripRef, travellerRef) {
854
854
  const response = await client.shareTokens.reveal({ id });
855
855
  return response.token;
856
856
  } catch (error) {
857
- throw new ShareLinkWriteError(chunkUSKVWPJD_cjs.classifyError(error));
857
+ throw new ShareLinkWriteError(chunkARXY3ZA7_cjs.classifyError(error));
858
858
  }
859
859
  },
860
860
  [client]
@@ -1026,7 +1026,7 @@ function ConfigShell({ seedConfig = {}, children }) {
1026
1026
  return /* @__PURE__ */ jsxRuntime.jsx(chunk5ORJRFXZ_cjs.ConfigContext.Provider, { value, children });
1027
1027
  }
1028
1028
  function classifyForFallback(error) {
1029
- const classification = chunkUSKVWPJD_cjs.classifyError(error);
1029
+ const classification = chunkARXY3ZA7_cjs.classifyError(error);
1030
1030
  if (classification.code === "RESOURCE_NOT_FOUND") {
1031
1031
  return { classification: "isolation", code: classification.code };
1032
1032
  }
@@ -1497,5 +1497,5 @@ exports.useDirectories = useDirectories;
1497
1497
  exports.usePaginatedList = usePaginatedList;
1498
1498
  exports.useShareLinks = useShareLinks;
1499
1499
  exports.useTravellerFormResponses = useTravellerFormResponses;
1500
- //# sourceMappingURL=chunk-ODH3SYYW.cjs.map
1501
- //# sourceMappingURL=chunk-ODH3SYYW.cjs.map
1500
+ //# sourceMappingURL=chunk-KJSQLVBR.cjs.map
1501
+ //# sourceMappingURL=chunk-KJSQLVBR.cjs.map