kaafil-react-uikit 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/dist/admin/index.cjs +468 -446
  3. package/dist/admin/index.cjs.map +1 -1
  4. package/dist/admin/index.js +128 -106
  5. package/dist/admin/index.js.map +1 -1
  6. package/dist/{chunk-53ITV6GF.cjs → chunk-4R7QBTNL.cjs} +4 -4
  7. package/dist/{chunk-53ITV6GF.cjs.map → chunk-4R7QBTNL.cjs.map} +1 -1
  8. package/dist/{chunk-HNENKHHJ.js → chunk-57DYMIWS.js} +5 -5
  9. package/dist/{chunk-HNENKHHJ.js.map → chunk-57DYMIWS.js.map} +1 -1
  10. package/dist/{chunk-XPF737RG.cjs → chunk-7COMKJTM.cjs} +9 -9
  11. package/dist/{chunk-XPF737RG.cjs.map → chunk-7COMKJTM.cjs.map} +1 -1
  12. package/dist/{chunk-OOHU3ECL.cjs → chunk-7O3TPYK4.cjs} +17 -17
  13. package/dist/{chunk-OOHU3ECL.cjs.map → chunk-7O3TPYK4.cjs.map} +1 -1
  14. package/dist/{chunk-4QMYUKW4.cjs → chunk-ASFUY3IE.cjs} +5368 -5358
  15. package/dist/chunk-ASFUY3IE.cjs.map +1 -0
  16. package/dist/{chunk-CJMUPBZ7.js → chunk-DYOAKTGJ.js} +5 -5
  17. package/dist/{chunk-CJMUPBZ7.js.map → chunk-DYOAKTGJ.js.map} +1 -1
  18. package/dist/{chunk-JHLPO6LZ.js → chunk-E3KOQYY2.js} +3 -3
  19. package/dist/{chunk-JHLPO6LZ.js.map → chunk-E3KOQYY2.js.map} +1 -1
  20. package/dist/{chunk-F6B4CDUL.js → chunk-GKR52SVU.js} +3 -3
  21. package/dist/{chunk-F6B4CDUL.js.map → chunk-GKR52SVU.js.map} +1 -1
  22. package/dist/chunk-LBTAK5JA.cjs +12 -0
  23. package/dist/{chunk-V45VFRBI.cjs.map → chunk-LBTAK5JA.cjs.map} +1 -1
  24. package/dist/{chunk-77RKNRNH.cjs → chunk-MP4IMAPF.cjs} +55 -55
  25. package/dist/{chunk-77RKNRNH.cjs.map → chunk-MP4IMAPF.cjs.map} +1 -1
  26. package/dist/{chunk-AWOKWGTB.cjs → chunk-PQJGV3RE.cjs} +83 -83
  27. package/dist/{chunk-AWOKWGTB.cjs.map → chunk-PQJGV3RE.cjs.map} +1 -1
  28. package/dist/{chunk-F6YBM6EE.js → chunk-Q4B25EZO.js} +3 -3
  29. package/dist/{chunk-F6YBM6EE.js.map → chunk-Q4B25EZO.js.map} +1 -1
  30. package/dist/{chunk-XPCCR7OH.cjs → chunk-TDFM563X.cjs} +12 -12
  31. package/dist/{chunk-XPCCR7OH.cjs.map → chunk-TDFM563X.cjs.map} +1 -1
  32. package/dist/{chunk-PWZNUXKT.js → chunk-VU5BCK2P.js} +3 -3
  33. package/dist/{chunk-PWZNUXKT.js.map → chunk-VU5BCK2P.js.map} +1 -1
  34. package/dist/{chunk-4BPCKBLP.js → chunk-YHGAFRN6.js} +3 -3
  35. package/dist/{chunk-4BPCKBLP.js.map → chunk-YHGAFRN6.js.map} +1 -1
  36. package/dist/{chunk-SEPFCHBJ.js → chunk-ZURCZQQ7.js} +5368 -5358
  37. package/dist/chunk-ZURCZQQ7.js.map +1 -0
  38. package/dist/core/index.cjs +107 -107
  39. package/dist/core/index.js +10 -10
  40. package/dist/index.css +1 -1
  41. package/dist/manager/index.cjs +239 -239
  42. package/dist/manager/index.js +6 -6
  43. package/dist/tokens.json +7 -1
  44. package/dist/traveller/index.cjs +35 -35
  45. package/dist/traveller/index.js +5 -5
  46. package/package.json +1 -1
  47. package/dist/chunk-4QMYUKW4.cjs.map +0 -1
  48. package/dist/chunk-SEPFCHBJ.js.map +0 -1
  49. package/dist/chunk-V45VFRBI.cjs +0 -12
@@ -1,15 +1,15 @@
1
1
  'use strict';
2
2
 
3
- var chunkAWOKWGTB_cjs = require('./chunk-AWOKWGTB.cjs');
4
- var chunk53ITV6GF_cjs = require('./chunk-53ITV6GF.cjs');
5
- var chunk4QMYUKW4_cjs = require('./chunk-4QMYUKW4.cjs');
3
+ var chunkPQJGV3RE_cjs = require('./chunk-PQJGV3RE.cjs');
4
+ var chunk4R7QBTNL_cjs = require('./chunk-4R7QBTNL.cjs');
5
+ var chunkASFUY3IE_cjs = require('./chunk-ASFUY3IE.cjs');
6
6
  var react = require('react');
7
7
  var client = require('kaafil-js/client');
8
8
  var reactDom = require('react-dom');
9
9
  var jsxRuntime = require('react/jsx-runtime');
10
10
 
11
11
  function useAgencyAdminMe() {
12
- const client = chunk4QMYUKW4_cjs.useKaafilClient();
12
+ const client = chunkASFUY3IE_cjs.useKaafilClient();
13
13
  const [result, setResult] = react.useState({ status: "loading" });
14
14
  react.useEffect(() => {
15
15
  let cancelled = false;
@@ -31,7 +31,7 @@ function useAgencyAdminMe() {
31
31
  return result;
32
32
  }
33
33
  function useAgencyChecklistTemplates() {
34
- const client = chunk4QMYUKW4_cjs.useKaafilClient();
34
+ const client = chunkASFUY3IE_cjs.useKaafilClient();
35
35
  const [templates, setTemplates] = react.useState([]);
36
36
  const [loaded, setLoaded] = react.useState(false);
37
37
  const [lastFetchFailed, setLastFetchFailed] = react.useState(false);
@@ -91,7 +91,7 @@ function useAgencyChecklistTemplates() {
91
91
  };
92
92
  }
93
93
  function useAgencyForms() {
94
- const client = chunk4QMYUKW4_cjs.useKaafilClient();
94
+ const client = chunkASFUY3IE_cjs.useKaafilClient();
95
95
  const [forms, setForms] = react.useState([]);
96
96
  const [loaded, setLoaded] = react.useState(false);
97
97
  const [lastFetchFailed, setLastFetchFailed] = react.useState(false);
@@ -247,7 +247,7 @@ function useAgencyForms() {
247
247
  };
248
248
  }
249
249
  function useAgencyJourneyTriggers() {
250
- const client = chunk4QMYUKW4_cjs.useKaafilClient();
250
+ const client = chunkASFUY3IE_cjs.useKaafilClient();
251
251
  const [triggers, setTriggers] = react.useState([]);
252
252
  const [loaded, setLoaded] = react.useState(false);
253
253
  const [lastFetchFailed, setLastFetchFailed] = react.useState(false);
@@ -275,7 +275,7 @@ function useAgencyJourneyTriggers() {
275
275
  return { triggers, loaded, lastFetchFailed, refresh, patchTrigger };
276
276
  }
277
277
  function useAgencyManagerProfile(managerRef) {
278
- const client = chunk4QMYUKW4_cjs.useKaafilClient();
278
+ const client = chunkASFUY3IE_cjs.useKaafilClient();
279
279
  const [read, setRead] = react.useState(void 0);
280
280
  const [readFailed, setReadFailed] = react.useState(false);
281
281
  const refresh = react.useCallback(async () => {
@@ -293,7 +293,7 @@ function useAgencyManagerProfile(managerRef) {
293
293
  return { read, readFailed, refresh };
294
294
  }
295
295
  function useAgencySettings() {
296
- const client = chunk4QMYUKW4_cjs.useKaafilClient();
296
+ const client = chunkASFUY3IE_cjs.useKaafilClient();
297
297
  const [document2, setDocument] = react.useState(void 0);
298
298
  const [loaded, setLoaded] = react.useState(false);
299
299
  const [lastFetchFailed, setLastFetchFailed] = react.useState(false);
@@ -321,7 +321,7 @@ function useAgencySettings() {
321
321
  return { document: document2, loaded, lastFetchFailed, refresh, patchSettings };
322
322
  }
323
323
  function useAgencyTrip(tripRef) {
324
- const client = chunk4QMYUKW4_cjs.useKaafilClient();
324
+ const client = chunkASFUY3IE_cjs.useKaafilClient();
325
325
  const [read, setRead] = react.useState(void 0);
326
326
  const [readFailed, setReadFailed] = react.useState(false);
327
327
  const refresh = react.useCallback(async () => {
@@ -341,7 +341,7 @@ function useAgencyTrip(tripRef) {
341
341
  var DEFAULT_PAGE_LIMIT = 20;
342
342
  var GROUPED_PAGE_LIMIT = 100;
343
343
  function useAgencyTripManifest(tripRef) {
344
- const client = chunk4QMYUKW4_cjs.useKaafilClient();
344
+ const client = chunkASFUY3IE_cjs.useKaafilClient();
345
345
  const [facets, setFacets] = react.useState(void 0);
346
346
  const mountedRef = react.useRef(true);
347
347
  react.useEffect(() => {
@@ -372,7 +372,7 @@ function useAgencyTripManifest(tripRef) {
372
372
  }
373
373
  var DEFAULT_PAGE_LIMIT2 = 20;
374
374
  function useAgencyTrips() {
375
- const client = chunk4QMYUKW4_cjs.useKaafilClient();
375
+ const client = chunkASFUY3IE_cjs.useKaafilClient();
376
376
  const [segmentCounts, setSegmentCounts] = react.useState(
377
377
  void 0
378
378
  );
@@ -402,18 +402,18 @@ function useAgencyTrips() {
402
402
  );
403
403
  return { makeTripsFetch, segmentCounts };
404
404
  }
405
- var useBookingsInternal = chunkAWOKWGTB_cjs.createDomainHook("bookings", (tripRef) => {
405
+ var useBookingsInternal = chunkPQJGV3RE_cjs.createDomainHook("bookings", (tripRef) => {
406
406
  const {
407
407
  rows: bookings,
408
408
  syncedAt,
409
409
  refreshLive
410
- } = chunkAWOKWGTB_cjs.useSnapshotList(tripRef, "bookings", {
410
+ } = chunkPQJGV3RE_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 };
414
414
  }
415
415
  });
416
- const vouchersMutation = chunk4QMYUKW4_cjs.useOfflineMutation({
416
+ const vouchersMutation = chunkASFUY3IE_cjs.useOfflineMutation({
417
417
  tripRef,
418
418
  enqueue: (engine, input) => engine.enqueue({
419
419
  tripRef,
@@ -450,10 +450,10 @@ function useBookings(tripRef) {
450
450
  return useBookingsInternal(tripRef);
451
451
  }
452
452
  function useCapabilityStatuses(tripRef) {
453
- const { rows, loaded } = chunk4QMYUKW4_cjs.useCapabilityRows(tripRef);
453
+ const { rows, loaded } = chunkASFUY3IE_cjs.useCapabilityRows(tripRef);
454
454
  const statuses = react.useMemo(() => {
455
455
  const map = /* @__PURE__ */ new Map();
456
- for (const row of rows) map.set(row.capability, chunk4QMYUKW4_cjs.deriveCapabilityTriple(row).status);
456
+ for (const row of rows) map.set(row.capability, chunkASFUY3IE_cjs.deriveCapabilityTriple(row).status);
457
457
  return map;
458
458
  }, [rows]);
459
459
  return { statuses, loaded };
@@ -471,8 +471,8 @@ var DirectoriesWriteError = class _DirectoriesWriteError extends Error {
471
471
  }
472
472
  };
473
473
  function useDirectories(agencyRef) {
474
- const client = chunk4QMYUKW4_cjs.useKaafilClient();
475
- chunk53ITV6GF_cjs.useServerTime();
474
+ const client = chunkASFUY3IE_cjs.useKaafilClient();
475
+ chunk4R7QBTNL_cjs.useServerTime();
476
476
  const makeManagersFetch = react.useCallback(
477
477
  (filters) => async (cursor) => {
478
478
  const page = await client.agencies.managers.listPage({
@@ -519,7 +519,7 @@ function useDirectories(agencyRef) {
519
519
  isLead: input.isLead
520
520
  });
521
521
  } catch (error) {
522
- throw new DirectoriesWriteError(chunkAWOKWGTB_cjs.classifyError(error));
522
+ throw new DirectoriesWriteError(chunkPQJGV3RE_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(chunkAWOKWGTB_cjs.classifyError(error));
537
+ throw new DirectoriesWriteError(chunkPQJGV3RE_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(chunkAWOKWGTB_cjs.classifyError(error));
550
+ throw new DirectoriesWriteError(chunkPQJGV3RE_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(chunkAWOKWGTB_cjs.classifyError(error));
585
+ throw new DirectoriesWriteError(chunkPQJGV3RE_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(chunkAWOKWGTB_cjs.classifyError(error));
601
+ throw new DirectoriesWriteError(chunkPQJGV3RE_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(chunkAWOKWGTB_cjs.classifyError(error));
614
+ throw new DirectoriesWriteError(chunkPQJGV3RE_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(chunkAWOKWGTB_cjs.classifyError(error));
629
+ throw new DirectoriesWriteError(chunkPQJGV3RE_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(chunkAWOKWGTB_cjs.classifyError(error));
646
+ throw new DirectoriesWriteError(chunkPQJGV3RE_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(chunkAWOKWGTB_cjs.classifyError(error));
656
+ throw new DirectoriesWriteError(chunkPQJGV3RE_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(chunkAWOKWGTB_cjs.classifyError(error));
670
+ throw new DirectoriesWriteError(chunkPQJGV3RE_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(chunkAWOKWGTB_cjs.classifyError(caught));
717
+ setError(chunkPQJGV3RE_cjs.classifyError(caught));
718
718
  setHasNext(false);
719
719
  } finally {
720
720
  setSettled(true);
@@ -773,7 +773,7 @@ var ShareLinkWriteError = class extends Error {
773
773
  }
774
774
  };
775
775
  function useShareLinks(tripRef, travellerRef) {
776
- const client = chunk4QMYUKW4_cjs.useKaafilClient();
776
+ const client = chunkASFUY3IE_cjs.useKaafilClient();
777
777
  const [links, setLinks] = react.useState(void 0);
778
778
  const [readFailed, setReadFailed] = react.useState(false);
779
779
  const refresh = react.useCallback(async () => {
@@ -804,7 +804,7 @@ function useShareLinks(tripRef, travellerRef) {
804
804
  await refresh();
805
805
  return minted;
806
806
  } catch (error) {
807
- throw new ShareLinkWriteError(chunkAWOKWGTB_cjs.classifyError(error));
807
+ throw new ShareLinkWriteError(chunkPQJGV3RE_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(chunkAWOKWGTB_cjs.classifyError(error));
818
+ throw new ShareLinkWriteError(chunkPQJGV3RE_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(chunkAWOKWGTB_cjs.classifyError(error));
834
+ throw new ShareLinkWriteError(chunkPQJGV3RE_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(chunkAWOKWGTB_cjs.classifyError(error));
846
+ throw new ShareLinkWriteError(chunkPQJGV3RE_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(chunkAWOKWGTB_cjs.classifyError(error));
857
+ throw new ShareLinkWriteError(chunkPQJGV3RE_cjs.classifyError(error));
858
858
  }
859
859
  },
860
860
  [client]
@@ -862,7 +862,7 @@ function useShareLinks(tripRef, travellerRef) {
862
862
  return { links, readFailed, refresh, mint, revoke, patch, regenerate, reveal };
863
863
  }
864
864
  function useTravellerFormResponses(tripRef, travellerRef) {
865
- const client = chunk4QMYUKW4_cjs.useKaafilClient();
865
+ const client = chunkASFUY3IE_cjs.useKaafilClient();
866
866
  const [responses, setResponses] = react.useState(
867
867
  void 0
868
868
  );
@@ -917,7 +917,7 @@ function ShadowIsolationBoundary({
917
917
  }
918
918
  function useDeskMinimumWidthWarning(rootRef, frame) {
919
919
  react.useEffect(() => {
920
- if (frame !== "desk" || !chunk4QMYUKW4_cjs.isDevelopment() || typeof ResizeObserver === "undefined") {
920
+ if (frame !== "desk" || !chunkASFUY3IE_cjs.isDevelopment() || typeof ResizeObserver === "undefined") {
921
921
  return;
922
922
  }
923
923
  const node = rootRef.current;
@@ -943,7 +943,7 @@ function useDeskMinimumWidthWarning(rootRef, frame) {
943
943
  }
944
944
  function useUnfilledConnectivitySlotWarning(frame, connectivitySlot) {
945
945
  react.useEffect(() => {
946
- if (frame === "field" && connectivitySlot === void 0 && chunk4QMYUKW4_cjs.isDevelopment()) {
946
+ if (frame === "field" && connectivitySlot === void 0 && chunkASFUY3IE_cjs.isDevelopment()) {
947
947
  console.warn(
948
948
  `kaafil-react-uikit: AppShell's "field" frame has no connectivitySlot filled \u2014 the permanently-visible connectivity/sync region this frame reserves is empty (01-app-shell.md, briefing \xA727.2).`
949
949
  );
@@ -992,7 +992,7 @@ function AppShell({
992
992
  className: "kf-root",
993
993
  "data-kf-isolation": "shadow",
994
994
  ...dataAttributes,
995
- style: chunk4QMYUKW4_cjs.tokenStyle(style),
995
+ style: chunkASFUY3IE_cjs.tokenStyle(style),
996
996
  children: /* @__PURE__ */ jsxRuntime.jsx(ShadowIsolationBoundary, { className: "kf-app-shell__shadow-host", children: content })
997
997
  }
998
998
  );
@@ -1004,7 +1004,7 @@ function AppShell({
1004
1004
  className: "kf-root",
1005
1005
  "data-kf-isolation": "scoped",
1006
1006
  ...dataAttributes,
1007
- style: chunk4QMYUKW4_cjs.tokenStyle(style),
1007
+ style: chunkASFUY3IE_cjs.tokenStyle(style),
1008
1008
  children: content
1009
1009
  }
1010
1010
  );
@@ -1023,10 +1023,10 @@ function ConfigShell({ seedConfig = {}, children }) {
1023
1023
  }),
1024
1024
  [seedConfig.agency, seedConfig.tenant]
1025
1025
  );
1026
- return /* @__PURE__ */ jsxRuntime.jsx(chunk4QMYUKW4_cjs.ConfigContext.Provider, { value, children });
1026
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkASFUY3IE_cjs.ConfigContext.Provider, { value, children });
1027
1027
  }
1028
1028
  function classifyForFallback(error) {
1029
- const classification = chunkAWOKWGTB_cjs.classifyError(error);
1029
+ const classification = chunkPQJGV3RE_cjs.classifyError(error);
1030
1030
  if (classification.code === "RESOURCE_NOT_FOUND") {
1031
1031
  return { classification: "isolation", code: classification.code };
1032
1032
  }
@@ -1083,9 +1083,9 @@ function OfflineShell({
1083
1083
  scope,
1084
1084
  children
1085
1085
  }) {
1086
- const client = react.useContext(chunk4QMYUKW4_cjs.KaafilClientContext);
1087
- const persona = chunk4QMYUKW4_cjs.usePersona();
1088
- const session = chunk4QMYUKW4_cjs.useSession();
1086
+ const client = react.useContext(chunkASFUY3IE_cjs.KaafilClientContext);
1087
+ const persona = chunkASFUY3IE_cjs.usePersona();
1088
+ const session = chunkASFUY3IE_cjs.useSession();
1089
1089
  const reportExpired = react.useContext(SessionExpiryBridgeContext);
1090
1090
  const [engine, setEngine] = react.useState(null);
1091
1091
  const engineRef = react.useRef(null);
@@ -1135,7 +1135,7 @@ function OfflineShell({
1135
1135
  }
1136
1136
  };
1137
1137
  }, [client, derivedScope, session.status, persona, reportExpired]);
1138
- return /* @__PURE__ */ jsxRuntime.jsx(chunk4QMYUKW4_cjs.OfflineEngineContext.Provider, { value: engine, children });
1138
+ return /* @__PURE__ */ jsxRuntime.jsx(chunkASFUY3IE_cjs.OfflineEngineContext.Provider, { value: engine, children });
1139
1139
  }
1140
1140
 
1141
1141
  // src/core/shells/internal/jwtKind.ts
@@ -1255,14 +1255,14 @@ function SessionShell(props) {
1255
1255
  }, [environment, accessTokenDep, refreshTokenDep, agencyRefDep, shareTokenDep]);
1256
1256
  if (state === null) {
1257
1257
  return /* @__PURE__ */ jsxRuntime.jsx(SessionExpiryBridgeContext.Provider, { value: reportExpired, children: /* @__PURE__ */ jsxRuntime.jsx(
1258
- chunk4QMYUKW4_cjs.SessionContext.Provider,
1258
+ chunkASFUY3IE_cjs.SessionContext.Provider,
1259
1259
  {
1260
1260
  value: { status: "opening", persona: "manager", agencyRef: void 0, environment },
1261
1261
  children
1262
1262
  }
1263
1263
  ) });
1264
1264
  }
1265
- return /* @__PURE__ */ jsxRuntime.jsx(SessionExpiryBridgeContext.Provider, { value: reportExpired, children: /* @__PURE__ */ jsxRuntime.jsx(chunk4QMYUKW4_cjs.KaafilClientContext.Provider, { value: state.client, children: /* @__PURE__ */ jsxRuntime.jsx(chunk4QMYUKW4_cjs.SessionContext.Provider, { value: state.session, children }) }) });
1265
+ return /* @__PURE__ */ jsxRuntime.jsx(SessionExpiryBridgeContext.Provider, { value: reportExpired, children: /* @__PURE__ */ jsxRuntime.jsx(chunkASFUY3IE_cjs.KaafilClientContext.Provider, { value: state.client, children: /* @__PURE__ */ jsxRuntime.jsx(chunkASFUY3IE_cjs.SessionContext.Provider, { value: state.session, children }) }) });
1266
1266
  }
1267
1267
  function emit(onEvent, event) {
1268
1268
  if (onEvent === void 0) {
@@ -1274,8 +1274,8 @@ function emit(onEvent, event) {
1274
1274
  }
1275
1275
  }
1276
1276
  function TelemetryShell({ onEvent, children }) {
1277
- const session = chunk4QMYUKW4_cjs.useSession();
1278
- const serverTime = chunk53ITV6GF_cjs.useServerTime();
1277
+ const session = chunkASFUY3IE_cjs.useSession();
1278
+ const serverTime = chunk4R7QBTNL_cjs.useServerTime();
1279
1279
  const previousStatusRef = react.useRef(void 0);
1280
1280
  react.useEffect(() => {
1281
1281
  const previousStatus = previousStatusRef.current;
@@ -1354,7 +1354,7 @@ function KaafilUIKitProvider(props) {
1354
1354
  ...credential
1355
1355
  } = props;
1356
1356
  const inner = /* @__PURE__ */ jsxRuntime.jsx(BuildShareUrlContext.Provider, { value: buildShareUrl ?? null, children: /* @__PURE__ */ jsxRuntime.jsx(DefaultCapabilityViewsContext.Provider, { value: defaultCapabilityViews ?? {}, children: /* @__PURE__ */ jsxRuntime.jsx(ConfigShell, { seedConfig, children: /* @__PURE__ */ jsxRuntime.jsx(
1357
- chunk4QMYUKW4_cjs.BrandShell,
1357
+ chunkASFUY3IE_cjs.BrandShell,
1358
1358
  {
1359
1359
  appName: brand?.appName,
1360
1360
  logo: brand?.logo,
@@ -1364,7 +1364,7 @@ function KaafilUIKitProvider(props) {
1364
1364
  children: /* @__PURE__ */ jsxRuntime.jsx(TelemetryShell, { onEvent, children })
1365
1365
  }
1366
1366
  ) }) }) });
1367
- return /* @__PURE__ */ jsxRuntime.jsx(ErrorShell, { children: /* @__PURE__ */ jsxRuntime.jsx(ThemeShell, { theme, density, children: /* @__PURE__ */ jsxRuntime.jsx(chunk4QMYUKW4_cjs.I18nShell, { locale, children: /* @__PURE__ */ jsxRuntime.jsx(AppShell, { isolation, children: /* @__PURE__ */ jsxRuntime.jsx(
1367
+ return /* @__PURE__ */ jsxRuntime.jsx(ErrorShell, { children: /* @__PURE__ */ jsxRuntime.jsx(ThemeShell, { theme, density, children: /* @__PURE__ */ jsxRuntime.jsx(chunkASFUY3IE_cjs.I18nShell, { locale, children: /* @__PURE__ */ jsxRuntime.jsx(AppShell, { isolation, children: /* @__PURE__ */ jsxRuntime.jsx(
1368
1368
  SessionShell,
1369
1369
  {
1370
1370
  ...credential,
@@ -1496,5 +1496,5 @@ exports.useDirectories = useDirectories;
1496
1496
  exports.usePaginatedList = usePaginatedList;
1497
1497
  exports.useShareLinks = useShareLinks;
1498
1498
  exports.useTravellerFormResponses = useTravellerFormResponses;
1499
- //# sourceMappingURL=chunk-77RKNRNH.cjs.map
1500
- //# sourceMappingURL=chunk-77RKNRNH.cjs.map
1499
+ //# sourceMappingURL=chunk-MP4IMAPF.cjs.map
1500
+ //# sourceMappingURL=chunk-MP4IMAPF.cjs.map