kaafil-react-uikit 0.3.1 → 0.4.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 (62) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/dist/admin/index.cjs +565 -387
  3. package/dist/admin/index.cjs.map +1 -1
  4. package/dist/admin/index.d.cts +2 -2
  5. package/dist/admin/index.d.ts +2 -2
  6. package/dist/admin/index.js +231 -53
  7. package/dist/admin/index.js.map +1 -1
  8. package/dist/{chunk-RO2RNHQP.js → chunk-2LMFSKZU.js} +56 -17
  9. package/dist/chunk-2LMFSKZU.js.map +1 -0
  10. package/dist/{chunk-BBC5EX5O.cjs → chunk-2XW5EIMS.cjs} +17 -17
  11. package/dist/{chunk-BBC5EX5O.cjs.map → chunk-2XW5EIMS.cjs.map} +1 -1
  12. package/dist/{chunk-YU2242AR.js → chunk-3BEQYIFU.js} +5 -5
  13. package/dist/{chunk-YU2242AR.js.map → chunk-3BEQYIFU.js.map} +1 -1
  14. package/dist/{chunk-UALMCHNW.cjs → chunk-3N2EQ2KC.cjs} +84 -36
  15. package/dist/chunk-3N2EQ2KC.cjs.map +1 -0
  16. package/dist/{chunk-57SUK3GD.cjs → chunk-4QYI7TOF.cjs} +7 -7
  17. package/dist/{chunk-57SUK3GD.cjs.map → chunk-4QYI7TOF.cjs.map} +1 -1
  18. package/dist/{chunk-ECCQW5LN.cjs → chunk-6BY2NPBZ.cjs} +4 -4
  19. package/dist/{chunk-ECCQW5LN.cjs.map → chunk-6BY2NPBZ.cjs.map} +1 -1
  20. package/dist/{chunk-YNHOPYBK.cjs → chunk-7356B6YS.cjs} +12 -12
  21. package/dist/{chunk-YNHOPYBK.cjs.map → chunk-7356B6YS.cjs.map} +1 -1
  22. package/dist/{chunk-A4Z2YBEF.js → chunk-7G6IENKN.js} +84 -36
  23. package/dist/chunk-7G6IENKN.js.map +1 -0
  24. package/dist/{chunk-6TI6YQPE.cjs → chunk-A7C74SJT.cjs} +168 -123
  25. package/dist/chunk-A7C74SJT.cjs.map +1 -0
  26. package/dist/{chunk-KW5LH6KV.js → chunk-CLHAJBJS.js} +3 -3
  27. package/dist/{chunk-KW5LH6KV.js.map → chunk-CLHAJBJS.js.map} +1 -1
  28. package/dist/{chunk-GJ2J3PYN.js → chunk-E6ER25BG.js} +3 -3
  29. package/dist/{chunk-GJ2J3PYN.js.map → chunk-E6ER25BG.js.map} +1 -1
  30. package/dist/{chunk-HACH2NUM.cjs → chunk-KETEED2T.cjs} +9 -9
  31. package/dist/{chunk-HACH2NUM.cjs.map → chunk-KETEED2T.cjs.map} +1 -1
  32. package/dist/{chunk-RWLO6IFX.js → chunk-KTEXDGAA.js} +3 -3
  33. package/dist/{chunk-RWLO6IFX.js.map → chunk-KTEXDGAA.js.map} +1 -1
  34. package/dist/{chunk-VLP323AD.js → chunk-RBIEMGHT.js} +3 -3
  35. package/dist/{chunk-VLP323AD.js.map → chunk-RBIEMGHT.js.map} +1 -1
  36. package/dist/{chunk-JHMN6Q5R.js → chunk-WPQB7JWS.js} +92 -47
  37. package/dist/chunk-WPQB7JWS.js.map +1 -0
  38. package/dist/{chunk-IU2UM5JP.cjs → chunk-XBLAVNP3.cjs} +88 -48
  39. package/dist/chunk-XBLAVNP3.cjs.map +1 -0
  40. package/dist/core/index.cjs +124 -121
  41. package/dist/core/index.cjs.map +1 -1
  42. package/dist/core/index.d.cts +10 -1
  43. package/dist/core/index.d.ts +10 -1
  44. package/dist/core/index.js +20 -19
  45. package/dist/core/index.js.map +1 -1
  46. package/dist/index.css +1 -1
  47. package/dist/manager/index.cjs +239 -239
  48. package/dist/manager/index.js +6 -6
  49. package/dist/tokens.json +5013 -0
  50. package/dist/traveller/index.cjs +46 -40
  51. package/dist/traveller/index.cjs.map +1 -1
  52. package/dist/traveller/index.js +16 -10
  53. package/dist/traveller/index.js.map +1 -1
  54. package/dist/{useAgencyTrip-BUYSIaC2.d.cts → useAgencyTrip-C1YmfuQq.d.cts} +35 -1
  55. package/dist/{useAgencyTrip-BzyJB1D9.d.ts → useAgencyTrip-gZB0NILH.d.ts} +35 -1
  56. package/package.json +4 -3
  57. package/dist/chunk-6TI6YQPE.cjs.map +0 -1
  58. package/dist/chunk-A4Z2YBEF.js.map +0 -1
  59. package/dist/chunk-IU2UM5JP.cjs.map +0 -1
  60. package/dist/chunk-JHMN6Q5R.js.map +0 -1
  61. package/dist/chunk-RO2RNHQP.js.map +0 -1
  62. package/dist/chunk-UALMCHNW.cjs.map +0 -1
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkHACH2NUM_cjs = require('../chunk-HACH2NUM.cjs');
4
- var chunkIU2UM5JP_cjs = require('../chunk-IU2UM5JP.cjs');
5
- var chunk6TI6YQPE_cjs = require('../chunk-6TI6YQPE.cjs');
6
- var chunkBBC5EX5O_cjs = require('../chunk-BBC5EX5O.cjs');
7
- var chunk57SUK3GD_cjs = require('../chunk-57SUK3GD.cjs');
8
- var chunkECCQW5LN_cjs = require('../chunk-ECCQW5LN.cjs');
9
- var chunkUALMCHNW_cjs = require('../chunk-UALMCHNW.cjs');
3
+ var chunkKETEED2T_cjs = require('../chunk-KETEED2T.cjs');
4
+ var chunkXBLAVNP3_cjs = require('../chunk-XBLAVNP3.cjs');
5
+ var chunkA7C74SJT_cjs = require('../chunk-A7C74SJT.cjs');
6
+ var chunk2XW5EIMS_cjs = require('../chunk-2XW5EIMS.cjs');
7
+ var chunk4QYI7TOF_cjs = require('../chunk-4QYI7TOF.cjs');
8
+ var chunk6BY2NPBZ_cjs = require('../chunk-6BY2NPBZ.cjs');
9
+ var chunk3N2EQ2KC_cjs = require('../chunk-3N2EQ2KC.cjs');
10
10
  var client = require('kaafil-js/client');
11
11
  var react = require('react');
12
12
  var reactDom = require('react-dom');
@@ -26,10 +26,10 @@ var NotImplementedError = class _NotImplementedError extends Error {
26
26
  }
27
27
  };
28
28
  function useBlobStatus(blobId) {
29
- const engine = react.useContext(chunkUALMCHNW_cjs.OfflineEngineContext);
29
+ const engine = react.useContext(chunk3N2EQ2KC_cjs.OfflineEngineContext);
30
30
  const [, forceRefresh] = react.useState(0);
31
- chunkUALMCHNW_cjs.useOfflineEvent("sync.drained", () => forceRefresh((tick) => tick + 1));
32
- chunkUALMCHNW_cjs.useOfflineEvent("sync.error", () => forceRefresh((tick) => tick + 1));
31
+ chunk3N2EQ2KC_cjs.useOfflineEvent("sync.drained", () => forceRefresh((tick) => tick + 1));
32
+ chunk3N2EQ2KC_cjs.useOfflineEvent("sync.error", () => forceRefresh((tick) => tick + 1));
33
33
  const record = engine?.blobs?.all().find((candidate) => candidate.id === blobId);
34
34
  if (record === void 0) {
35
35
  return { status: "pending", progress: void 0 };
@@ -38,7 +38,7 @@ function useBlobStatus(blobId) {
38
38
  return { status, progress: void 0 };
39
39
  }
40
40
  function useFeedbackNps(scope) {
41
- const client$1 = chunkUALMCHNW_cjs.useKaafilClient();
41
+ const client$1 = chunk3N2EQ2KC_cjs.useKaafilClient();
42
42
  const [summary, setSummary] = react.useState(void 0);
43
43
  const [definitions, setDefinitions] = react.useState([]);
44
44
  const [loaded, setLoaded] = react.useState(false);
@@ -68,7 +68,7 @@ function useFeedbackNps(scope) {
68
68
  react.useEffect(() => {
69
69
  void refresh();
70
70
  }, [refresh]);
71
- const dispatchMutation = chunkUALMCHNW_cjs.useOfflineMutation({
71
+ const dispatchMutation = chunk3N2EQ2KC_cjs.useOfflineMutation({
72
72
  tripRef: scope.kind === "trip" ? scope.tripRef : "",
73
73
  enqueue: (engine, input) => {
74
74
  const formId = formIdRef.current;
@@ -112,14 +112,14 @@ function useFeedbackNps(scope) {
112
112
  };
113
113
  }
114
114
  function useJourney(tripRef) {
115
- const client = chunkUALMCHNW_cjs.useKaafilClient();
116
- const persona = chunkUALMCHNW_cjs.usePersona();
117
- const { rows } = chunkUALMCHNW_cjs.useCapabilityRows(tripRef);
115
+ const client = chunk3N2EQ2KC_cjs.useKaafilClient();
116
+ const persona = chunk3N2EQ2KC_cjs.usePersona();
117
+ const { rows } = chunk3N2EQ2KC_cjs.useCapabilityRows(tripRef);
118
118
  const [read, setRead] = react.useState(void 0);
119
119
  const [liveRows, setLiveRows] = react.useState(void 0);
120
120
  react.useEffect(() => {
121
121
  if (persona === "share") {
122
- if (chunkUALMCHNW_cjs.isDevelopment()) {
122
+ if (chunk3N2EQ2KC_cjs.isDevelopment()) {
123
123
  throw new Error(
124
124
  "useJourney() was called from a share session \u2014 it is manager/agencyAdmin only (08-core-hooks.md \xA73.2)."
125
125
  );
@@ -143,7 +143,7 @@ function useJourney(tripRef) {
143
143
  const effectiveRows = liveRows ?? rows;
144
144
  const capabilities = /* @__PURE__ */ new Map();
145
145
  for (const row of effectiveRows) {
146
- capabilities.set(row.capability, chunkUALMCHNW_cjs.deriveCapabilityTriple(row));
146
+ capabilities.set(row.capability, chunk3N2EQ2KC_cjs.deriveCapabilityTriple(row));
147
147
  }
148
148
  return {
149
149
  read,
@@ -155,15 +155,9 @@ function useJourney(tripRef) {
155
155
  }
156
156
  };
157
157
  }
158
-
159
- // src/core/hooks/useResolvedSetting.ts
160
- function useResolvedSetting(key) {
161
- const config = chunkUALMCHNW_cjs.useRequiredContext(chunkUALMCHNW_cjs.ConfigContext, "useResolvedSetting", "ConfigShell");
162
- return config.resolveSetting(key);
163
- }
164
158
  function useSnapshotEntity(tripRef, listName, id) {
165
- const engine = react.useContext(chunkUALMCHNW_cjs.OfflineEngineContext);
166
- const { rows } = chunk6TI6YQPE_cjs.useSnapshotList(tripRef, listName);
159
+ const engine = react.useContext(chunk3N2EQ2KC_cjs.OfflineEngineContext);
160
+ const { rows } = chunkA7C74SJT_cjs.useSnapshotList(tripRef, listName);
167
161
  const row = rows.find((candidate) => candidate.id === id);
168
162
  const syncedAt = engine === null ? void 0 : engine.snapshot.syncedAt(tripRef, listName, id);
169
163
  return { row, syncedAt };
@@ -171,9 +165,9 @@ function useSnapshotEntity(tripRef, listName, id) {
171
165
 
172
166
  // src/core/hooks/useStaleness.ts
173
167
  function useStaleness(tripRef, listName) {
174
- const { syncedAt } = chunk6TI6YQPE_cjs.useSnapshotList(tripRef, listName);
175
- const { now } = chunkECCQW5LN_cjs.useServerTime();
176
- const thresholdSeconds = useResolvedSetting("stale.thresholdSeconds.default");
168
+ const { syncedAt } = chunkA7C74SJT_cjs.useSnapshotList(tripRef, listName);
169
+ const { now } = chunk6BY2NPBZ_cjs.useServerTime();
170
+ const thresholdSeconds = chunkXBLAVNP3_cjs.useResolvedSetting("stale.thresholdSeconds.default");
177
171
  if (syncedAt === void 0) {
178
172
  return { syncedAt: void 0, ageSeconds: void 0, isStale: false };
179
173
  }
@@ -187,8 +181,8 @@ function useStaleness(tripRef, listName) {
187
181
  return { syncedAt, ageSeconds, isStale };
188
182
  }
189
183
  var WALK_INS_PAGE_SIZE = 25;
190
- var useTreksInternal = chunk6TI6YQPE_cjs.createDomainHook("treks", (tripRef) => {
191
- const client$1 = chunkUALMCHNW_cjs.useKaafilClient();
184
+ var useTreksInternal = chunkA7C74SJT_cjs.createDomainHook("treks", (tripRef) => {
185
+ const client$1 = chunk3N2EQ2KC_cjs.useKaafilClient();
192
186
  const [boardData, setBoardData] = react.useState(void 0);
193
187
  const [boardLoaded, setBoardLoaded] = react.useState(false);
194
188
  const [boardFetchFailed, setBoardFetchFailed] = react.useState(false);
@@ -266,7 +260,7 @@ var useTreksInternal = chunk6TI6YQPE_cjs.createDomainHook("treks", (tripRef) =>
266
260
  react.useEffect(() => {
267
261
  void refreshMeta();
268
262
  }, [refreshMeta]);
269
- const createWalkInMutation = chunkUALMCHNW_cjs.useOfflineMutation({
263
+ const createWalkInMutation = chunk3N2EQ2KC_cjs.useOfflineMutation({
270
264
  tripRef,
271
265
  enqueue: (engine, input) => engine.enqueue({
272
266
  tripRef,
@@ -279,7 +273,7 @@ var useTreksInternal = chunk6TI6YQPE_cjs.createDomainHook("treks", (tripRef) =>
279
273
  body: input
280
274
  })
281
275
  });
282
- const postponeMutation = chunkUALMCHNW_cjs.useOfflineMutation({
276
+ const postponeMutation = chunk3N2EQ2KC_cjs.useOfflineMutation({
283
277
  tripRef,
284
278
  enqueue: (engine, input) => engine.enqueue({
285
279
  tripRef,
@@ -289,7 +283,7 @@ var useTreksInternal = chunk6TI6YQPE_cjs.createDomainHook("treks", (tripRef) =>
289
283
  body: input
290
284
  })
291
285
  });
292
- const reconcileMutation = chunkUALMCHNW_cjs.useOfflineMutation({
286
+ const reconcileMutation = chunk3N2EQ2KC_cjs.useOfflineMutation({
293
287
  tripRef,
294
288
  enqueue: (engine, { walkInId, input }) => engine.enqueue({
295
289
  tripRef,
@@ -389,7 +383,7 @@ function ShadowIsolationBoundary({
389
383
  }
390
384
  function useDeskMinimumWidthWarning(rootRef, frame) {
391
385
  react.useEffect(() => {
392
- if (frame !== "desk" || !chunkUALMCHNW_cjs.isDevelopment() || typeof ResizeObserver === "undefined") {
386
+ if (frame !== "desk" || !chunk3N2EQ2KC_cjs.isDevelopment() || typeof ResizeObserver === "undefined") {
393
387
  return;
394
388
  }
395
389
  const node = rootRef.current;
@@ -415,7 +409,7 @@ function useDeskMinimumWidthWarning(rootRef, frame) {
415
409
  }
416
410
  function useUnfilledConnectivitySlotWarning(frame, connectivitySlot) {
417
411
  react.useEffect(() => {
418
- if (frame === "field" && connectivitySlot === void 0 && chunkUALMCHNW_cjs.isDevelopment()) {
412
+ if (frame === "field" && connectivitySlot === void 0 && chunk3N2EQ2KC_cjs.isDevelopment()) {
419
413
  console.warn(
420
414
  `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).`
421
415
  );
@@ -464,7 +458,7 @@ function AppShell({
464
458
  className: "kf-root",
465
459
  "data-kf-isolation": "shadow",
466
460
  ...dataAttributes,
467
- style: chunkUALMCHNW_cjs.tokenStyle(style),
461
+ style: chunk3N2EQ2KC_cjs.tokenStyle(style),
468
462
  children: /* @__PURE__ */ jsxRuntime.jsx(ShadowIsolationBoundary, { className: "kf-app-shell__shadow-host", children: content })
469
463
  }
470
464
  );
@@ -476,7 +470,7 @@ function AppShell({
476
470
  className: "kf-root",
477
471
  "data-kf-isolation": "scoped",
478
472
  ...dataAttributes,
479
- style: chunkUALMCHNW_cjs.tokenStyle(style),
473
+ style: chunk3N2EQ2KC_cjs.tokenStyle(style),
480
474
  children: content
481
475
  }
482
476
  );
@@ -495,10 +489,10 @@ function ConfigShell({ seedConfig = {}, children }) {
495
489
  }),
496
490
  [seedConfig.agency, seedConfig.tenant]
497
491
  );
498
- return /* @__PURE__ */ jsxRuntime.jsx(chunkUALMCHNW_cjs.ConfigContext.Provider, { value, children });
492
+ return /* @__PURE__ */ jsxRuntime.jsx(chunk3N2EQ2KC_cjs.ConfigContext.Provider, { value, children });
499
493
  }
500
494
  function classifyForFallback(error) {
501
- const classification = chunk6TI6YQPE_cjs.classifyError(error);
495
+ const classification = chunkA7C74SJT_cjs.classifyError(error);
502
496
  if (classification.code === "RESOURCE_NOT_FOUND") {
503
497
  return { classification: "isolation", code: classification.code };
504
498
  }
@@ -555,9 +549,9 @@ function OfflineShell({
555
549
  scope,
556
550
  children
557
551
  }) {
558
- const client = react.useContext(chunkUALMCHNW_cjs.KaafilClientContext);
559
- const persona = chunkUALMCHNW_cjs.usePersona();
560
- const session = chunkUALMCHNW_cjs.useSession();
552
+ const client = react.useContext(chunk3N2EQ2KC_cjs.KaafilClientContext);
553
+ const persona = chunk3N2EQ2KC_cjs.usePersona();
554
+ const session = chunk3N2EQ2KC_cjs.useSession();
561
555
  const reportExpired = react.useContext(SessionExpiryBridgeContext);
562
556
  const [engine, setEngine] = react.useState(null);
563
557
  const engineRef = react.useRef(null);
@@ -582,11 +576,16 @@ function OfflineShell({
582
576
  });
583
577
  engineRef.current = newEngine;
584
578
  let opened = false;
579
+ let disposed = false;
585
580
  void newEngine.open().then(() => {
586
581
  opened = true;
582
+ if (disposed) {
583
+ newEngine.close();
584
+ return;
585
+ }
587
586
  if (engineRef.current === newEngine) setEngine(newEngine);
588
587
  }).catch(() => {
589
- if (engineRef.current === newEngine) setEngine(null);
588
+ if (!disposed && engineRef.current === newEngine) setEngine(null);
590
589
  });
591
590
  const unsubscribeSessionExpired = persona !== "share" ? newEngine.events.on("session.expired", () => reportExpired?.("session")) : void 0;
592
591
  const unsubscribeShareExpired = persona === "share" ? newEngine.events.on("share.expired", () => reportExpired?.("share")) : void 0;
@@ -595,13 +594,14 @@ function OfflineShell({
595
594
  unsubscribeSessionExpired?.();
596
595
  unsubscribeShareExpired?.();
597
596
  unsubscribeShareRevoked?.();
597
+ disposed = true;
598
598
  if (opened) newEngine.close();
599
599
  if (engineRef.current === newEngine) {
600
600
  engineRef.current = null;
601
601
  }
602
602
  };
603
603
  }, [client, derivedScope, session.status, persona, reportExpired]);
604
- return /* @__PURE__ */ jsxRuntime.jsx(chunkUALMCHNW_cjs.OfflineEngineContext.Provider, { value: engine, children });
604
+ return /* @__PURE__ */ jsxRuntime.jsx(chunk3N2EQ2KC_cjs.OfflineEngineContext.Provider, { value: engine, children });
605
605
  }
606
606
 
607
607
  // src/core/shells/internal/jwtKind.ts
@@ -721,14 +721,14 @@ function SessionShell(props) {
721
721
  }, [environment, accessTokenDep, refreshTokenDep, agencyRefDep, shareTokenDep]);
722
722
  if (state === null) {
723
723
  return /* @__PURE__ */ jsxRuntime.jsx(SessionExpiryBridgeContext.Provider, { value: reportExpired, children: /* @__PURE__ */ jsxRuntime.jsx(
724
- chunkUALMCHNW_cjs.SessionContext.Provider,
724
+ chunk3N2EQ2KC_cjs.SessionContext.Provider,
725
725
  {
726
726
  value: { status: "opening", persona: "manager", agencyRef: void 0, environment },
727
727
  children
728
728
  }
729
729
  ) });
730
730
  }
731
- return /* @__PURE__ */ jsxRuntime.jsx(SessionExpiryBridgeContext.Provider, { value: reportExpired, children: /* @__PURE__ */ jsxRuntime.jsx(chunkUALMCHNW_cjs.KaafilClientContext.Provider, { value: state.client, children: /* @__PURE__ */ jsxRuntime.jsx(chunkUALMCHNW_cjs.SessionContext.Provider, { value: state.session, children }) }) });
731
+ return /* @__PURE__ */ jsxRuntime.jsx(SessionExpiryBridgeContext.Provider, { value: reportExpired, children: /* @__PURE__ */ jsxRuntime.jsx(chunk3N2EQ2KC_cjs.KaafilClientContext.Provider, { value: state.client, children: /* @__PURE__ */ jsxRuntime.jsx(chunk3N2EQ2KC_cjs.SessionContext.Provider, { value: state.session, children }) }) });
732
732
  }
733
733
  function emit(onEvent, event) {
734
734
  if (onEvent === void 0) {
@@ -740,8 +740,8 @@ function emit(onEvent, event) {
740
740
  }
741
741
  }
742
742
  function TelemetryShell({ onEvent, children }) {
743
- const session = chunkUALMCHNW_cjs.useSession();
744
- const serverTime = chunkECCQW5LN_cjs.useServerTime();
743
+ const session = chunk3N2EQ2KC_cjs.useSession();
744
+ const serverTime = chunk6BY2NPBZ_cjs.useServerTime();
745
745
  const previousStatusRef = react.useRef(void 0);
746
746
  react.useEffect(() => {
747
747
  const previousStatus = previousStatusRef.current;
@@ -815,7 +815,7 @@ function KaafilUIKitProvider(props) {
815
815
  ...credential
816
816
  } = props;
817
817
  const inner = /* @__PURE__ */ jsxRuntime.jsx(DefaultCapabilityViewsContext.Provider, { value: defaultCapabilityViews ?? {}, children: /* @__PURE__ */ jsxRuntime.jsx(ConfigShell, { seedConfig, children: /* @__PURE__ */ jsxRuntime.jsx(
818
- chunk57SUK3GD_cjs.BrandShell,
818
+ chunk4QYI7TOF_cjs.BrandShell,
819
819
  {
820
820
  appName: brand?.appName,
821
821
  logo: brand?.logo,
@@ -825,7 +825,7 @@ function KaafilUIKitProvider(props) {
825
825
  children: /* @__PURE__ */ jsxRuntime.jsx(TelemetryShell, { onEvent, children })
826
826
  }
827
827
  ) }) });
828
- return /* @__PURE__ */ jsxRuntime.jsx(ErrorShell, { children: /* @__PURE__ */ jsxRuntime.jsx(ThemeShell, { theme, density, children: /* @__PURE__ */ jsxRuntime.jsx(chunkUALMCHNW_cjs.I18nShell, { locale, children: /* @__PURE__ */ jsxRuntime.jsx(AppShell, { isolation, children: /* @__PURE__ */ jsxRuntime.jsx(
828
+ return /* @__PURE__ */ jsxRuntime.jsx(ErrorShell, { children: /* @__PURE__ */ jsxRuntime.jsx(ThemeShell, { theme, density, children: /* @__PURE__ */ jsxRuntime.jsx(chunk3N2EQ2KC_cjs.I18nShell, { locale, children: /* @__PURE__ */ jsxRuntime.jsx(AppShell, { isolation, children: /* @__PURE__ */ jsxRuntime.jsx(
829
829
  SessionShell,
830
830
  {
831
831
  ...credential,
@@ -894,20 +894,20 @@ function detectHazards() {
894
894
  function HostCssCompatibilityProbe({
895
895
  style
896
896
  } = {}) {
897
- const chrome = chunkUALMCHNW_cjs.useKaafilChrome();
897
+ const chrome = chunk3N2EQ2KC_cjs.useKaafilChrome();
898
898
  const [hazards, setHazards] = react.useState(null);
899
899
  react.useEffect(() => {
900
- if (chunkUALMCHNW_cjs.isDevelopment()) {
900
+ if (chunk3N2EQ2KC_cjs.isDevelopment()) {
901
901
  setHazards(detectHazards());
902
902
  }
903
903
  }, []);
904
- if (!chunkUALMCHNW_cjs.isDevelopment() || hazards === null) {
904
+ if (!chunk3N2EQ2KC_cjs.isDevelopment() || hazards === null) {
905
905
  return null;
906
906
  }
907
907
  return /* @__PURE__ */ jsxRuntime.jsxs(
908
908
  "div",
909
909
  {
910
- style: chunkUALMCHNW_cjs.tokenStyle(style, {
910
+ style: chunk3N2EQ2KC_cjs.tokenStyle(style, {
911
911
  border: "1px solid #999",
912
912
  padding: "0.75rem",
913
913
  borderRadius: "4px"
@@ -928,14 +928,14 @@ function KaafilSessionProbe({
928
928
  expectedEnvironment,
929
929
  style
930
930
  }) {
931
- const session = chunkUALMCHNW_cjs.useSession();
932
- const chrome = chunkUALMCHNW_cjs.useKaafilChrome();
931
+ const session = chunk3N2EQ2KC_cjs.useSession();
932
+ const chrome = chunk3N2EQ2KC_cjs.useKaafilChrome();
933
933
  if (session.status === "expired") {
934
934
  return /* @__PURE__ */ jsxRuntime.jsx(
935
935
  "div",
936
936
  {
937
937
  role: "status",
938
- style: chunkUALMCHNW_cjs.tokenStyle(style, {
938
+ style: chunk3N2EQ2KC_cjs.tokenStyle(style, {
939
939
  border: "1px solid #c00",
940
940
  padding: "0.75rem",
941
941
  borderRadius: "4px"
@@ -949,7 +949,7 @@ function KaafilSessionProbe({
949
949
  "div",
950
950
  {
951
951
  role: "status",
952
- style: chunkUALMCHNW_cjs.tokenStyle(style, {
952
+ style: chunk3N2EQ2KC_cjs.tokenStyle(style, {
953
953
  border: "1px solid #c00",
954
954
  padding: "0.75rem",
955
955
  borderRadius: "4px"
@@ -966,12 +966,12 @@ function KaafilSessionProbe({
966
966
  );
967
967
  }
968
968
  if (session.status === "opening") {
969
- return /* @__PURE__ */ jsxRuntime.jsx("div", { role: "status", style: chunkUALMCHNW_cjs.tokenStyle(style), children: chrome.t("chrome.loading") });
969
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { role: "status", style: chunk3N2EQ2KC_cjs.tokenStyle(style), children: chrome.t("chrome.loading") });
970
970
  }
971
971
  return /* @__PURE__ */ jsxRuntime.jsxs(
972
972
  "div",
973
973
  {
974
- style: chunkUALMCHNW_cjs.tokenStyle(style, {
974
+ style: chunk3N2EQ2KC_cjs.tokenStyle(style, {
975
975
  border: "1px solid #0a0",
976
976
  padding: "0.75rem",
977
977
  borderRadius: "4px"
@@ -995,243 +995,247 @@ function KaafilSessionProbe({
995
995
 
996
996
  Object.defineProperty(exports, "useConflicts", {
997
997
  enumerable: true,
998
- get: function () { return chunkHACH2NUM_cjs.useConflicts; }
998
+ get: function () { return chunkKETEED2T_cjs.useConflicts; }
999
999
  });
1000
1000
  Object.defineProperty(exports, "useManagerMe", {
1001
1001
  enumerable: true,
1002
- get: function () { return chunkHACH2NUM_cjs.useManagerMe; }
1002
+ get: function () { return chunkKETEED2T_cjs.useManagerMe; }
1003
1003
  });
1004
1004
  Object.defineProperty(exports, "useNotifications", {
1005
1005
  enumerable: true,
1006
- get: function () { return chunkHACH2NUM_cjs.useNotifications; }
1006
+ get: function () { return chunkKETEED2T_cjs.useNotifications; }
1007
1007
  });
1008
1008
  Object.defineProperty(exports, "CLOSEOUT_ACTION_TAB", {
1009
1009
  enumerable: true,
1010
- get: function () { return chunkIU2UM5JP_cjs.CLOSEOUT_ACTION_TAB; }
1010
+ get: function () { return chunkXBLAVNP3_cjs.CLOSEOUT_ACTION_TAB; }
1011
1011
  });
1012
1012
  Object.defineProperty(exports, "fromSearchParams", {
1013
1013
  enumerable: true,
1014
- get: function () { return chunkIU2UM5JP_cjs.fromSearchParams; }
1014
+ get: function () { return chunkXBLAVNP3_cjs.fromSearchParams; }
1015
1015
  });
1016
1016
  Object.defineProperty(exports, "isTripTabKey", {
1017
1017
  enumerable: true,
1018
- get: function () { return chunkIU2UM5JP_cjs.isTripTabKey; }
1018
+ get: function () { return chunkXBLAVNP3_cjs.isTripTabKey; }
1019
1019
  });
1020
1020
  Object.defineProperty(exports, "resolveBlockerDeepLink", {
1021
1021
  enumerable: true,
1022
- get: function () { return chunkIU2UM5JP_cjs.resolveBlockerDeepLink; }
1022
+ get: function () { return chunkXBLAVNP3_cjs.resolveBlockerDeepLink; }
1023
1023
  });
1024
1024
  Object.defineProperty(exports, "toSearchParams", {
1025
1025
  enumerable: true,
1026
- get: function () { return chunkIU2UM5JP_cjs.toSearchParams; }
1026
+ get: function () { return chunkXBLAVNP3_cjs.toSearchParams; }
1027
1027
  });
1028
1028
  Object.defineProperty(exports, "useAgencyAdminMe", {
1029
1029
  enumerable: true,
1030
- get: function () { return chunkIU2UM5JP_cjs.useAgencyAdminMe; }
1030
+ get: function () { return chunkXBLAVNP3_cjs.useAgencyAdminMe; }
1031
1031
  });
1032
1032
  Object.defineProperty(exports, "useAgencyChecklistTemplates", {
1033
1033
  enumerable: true,
1034
- get: function () { return chunkIU2UM5JP_cjs.useAgencyChecklistTemplates; }
1034
+ get: function () { return chunkXBLAVNP3_cjs.useAgencyChecklistTemplates; }
1035
1035
  });
1036
1036
  Object.defineProperty(exports, "useAgencyForms", {
1037
1037
  enumerable: true,
1038
- get: function () { return chunkIU2UM5JP_cjs.useAgencyForms; }
1038
+ get: function () { return chunkXBLAVNP3_cjs.useAgencyForms; }
1039
1039
  });
1040
1040
  Object.defineProperty(exports, "useAgencyJourneyTriggers", {
1041
1041
  enumerable: true,
1042
- get: function () { return chunkIU2UM5JP_cjs.useAgencyJourneyTriggers; }
1042
+ get: function () { return chunkXBLAVNP3_cjs.useAgencyJourneyTriggers; }
1043
1043
  });
1044
1044
  Object.defineProperty(exports, "useAgencyManagerProfile", {
1045
1045
  enumerable: true,
1046
- get: function () { return chunkIU2UM5JP_cjs.useAgencyManagerProfile; }
1046
+ get: function () { return chunkXBLAVNP3_cjs.useAgencyManagerProfile; }
1047
1047
  });
1048
1048
  Object.defineProperty(exports, "useAgencySettings", {
1049
1049
  enumerable: true,
1050
- get: function () { return chunkIU2UM5JP_cjs.useAgencySettings; }
1050
+ get: function () { return chunkXBLAVNP3_cjs.useAgencySettings; }
1051
1051
  });
1052
1052
  Object.defineProperty(exports, "useAgencyTrip", {
1053
1053
  enumerable: true,
1054
- get: function () { return chunkIU2UM5JP_cjs.useAgencyTrip; }
1054
+ get: function () { return chunkXBLAVNP3_cjs.useAgencyTrip; }
1055
1055
  });
1056
1056
  Object.defineProperty(exports, "useAgencyTripManifest", {
1057
1057
  enumerable: true,
1058
- get: function () { return chunkIU2UM5JP_cjs.useAgencyTripManifest; }
1058
+ get: function () { return chunkXBLAVNP3_cjs.useAgencyTripManifest; }
1059
1059
  });
1060
1060
  Object.defineProperty(exports, "useAgencyTrips", {
1061
1061
  enumerable: true,
1062
- get: function () { return chunkIU2UM5JP_cjs.useAgencyTrips; }
1062
+ get: function () { return chunkXBLAVNP3_cjs.useAgencyTrips; }
1063
1063
  });
1064
1064
  Object.defineProperty(exports, "useBookings", {
1065
1065
  enumerable: true,
1066
- get: function () { return chunkIU2UM5JP_cjs.useBookings; }
1066
+ get: function () { return chunkXBLAVNP3_cjs.useBookings; }
1067
1067
  });
1068
1068
  Object.defineProperty(exports, "useCapabilityStatuses", {
1069
1069
  enumerable: true,
1070
- get: function () { return chunkIU2UM5JP_cjs.useCapabilityStatuses; }
1070
+ get: function () { return chunkXBLAVNP3_cjs.useCapabilityStatuses; }
1071
1071
  });
1072
1072
  Object.defineProperty(exports, "useDirectories", {
1073
1073
  enumerable: true,
1074
- get: function () { return chunkIU2UM5JP_cjs.useDirectories; }
1074
+ get: function () { return chunkXBLAVNP3_cjs.useDirectories; }
1075
1075
  });
1076
1076
  Object.defineProperty(exports, "usePaginatedList", {
1077
1077
  enumerable: true,
1078
- get: function () { return chunkIU2UM5JP_cjs.usePaginatedList; }
1078
+ get: function () { return chunkXBLAVNP3_cjs.usePaginatedList; }
1079
+ });
1080
+ Object.defineProperty(exports, "useResolvedSetting", {
1081
+ enumerable: true,
1082
+ get: function () { return chunkXBLAVNP3_cjs.useResolvedSetting; }
1079
1083
  });
1080
1084
  Object.defineProperty(exports, "useShareLinks", {
1081
1085
  enumerable: true,
1082
- get: function () { return chunkIU2UM5JP_cjs.useShareLinks; }
1086
+ get: function () { return chunkXBLAVNP3_cjs.useShareLinks; }
1083
1087
  });
1084
1088
  Object.defineProperty(exports, "useTravellerFormResponses", {
1085
1089
  enumerable: true,
1086
- get: function () { return chunkIU2UM5JP_cjs.useTravellerFormResponses; }
1090
+ get: function () { return chunkXBLAVNP3_cjs.useTravellerFormResponses; }
1087
1091
  });
1088
1092
  Object.defineProperty(exports, "ERROR_HANDLING_PATH", {
1089
1093
  enumerable: true,
1090
- get: function () { return chunk6TI6YQPE_cjs.ERROR_HANDLING_PATH; }
1094
+ get: function () { return chunkA7C74SJT_cjs.ERROR_HANDLING_PATH; }
1091
1095
  });
1092
1096
  Object.defineProperty(exports, "classifyError", {
1093
1097
  enumerable: true,
1094
- get: function () { return chunk6TI6YQPE_cjs.classifyError; }
1098
+ get: function () { return chunkA7C74SJT_cjs.classifyError; }
1095
1099
  });
1096
1100
  Object.defineProperty(exports, "useChecklists", {
1097
1101
  enumerable: true,
1098
- get: function () { return chunk6TI6YQPE_cjs.useChecklists; }
1102
+ get: function () { return chunkA7C74SJT_cjs.useChecklists; }
1099
1103
  });
1100
1104
  Object.defineProperty(exports, "useCloseout", {
1101
1105
  enumerable: true,
1102
- get: function () { return chunk6TI6YQPE_cjs.useCloseout; }
1106
+ get: function () { return chunkA7C74SJT_cjs.useCloseout; }
1103
1107
  });
1104
1108
  Object.defineProperty(exports, "useCollections", {
1105
1109
  enumerable: true,
1106
- get: function () { return chunk6TI6YQPE_cjs.useCollections; }
1110
+ get: function () { return chunkA7C74SJT_cjs.useCollections; }
1107
1111
  });
1108
1112
  Object.defineProperty(exports, "useExpenses", {
1109
1113
  enumerable: true,
1110
- get: function () { return chunk6TI6YQPE_cjs.useExpenses; }
1114
+ get: function () { return chunkA7C74SJT_cjs.useExpenses; }
1111
1115
  });
1112
1116
  Object.defineProperty(exports, "useFiles", {
1113
1117
  enumerable: true,
1114
- get: function () { return chunk6TI6YQPE_cjs.useFiles; }
1118
+ get: function () { return chunkA7C74SJT_cjs.useFiles; }
1115
1119
  });
1116
1120
  Object.defineProperty(exports, "useFloat", {
1117
1121
  enumerable: true,
1118
- get: function () { return chunk6TI6YQPE_cjs.useFloat; }
1122
+ get: function () { return chunkA7C74SJT_cjs.useFloat; }
1119
1123
  });
1120
1124
  Object.defineProperty(exports, "useForms", {
1121
1125
  enumerable: true,
1122
- get: function () { return chunk6TI6YQPE_cjs.useForms; }
1126
+ get: function () { return chunkA7C74SJT_cjs.useForms; }
1123
1127
  });
1124
1128
  Object.defineProperty(exports, "useItinerary", {
1125
1129
  enumerable: true,
1126
- get: function () { return chunk6TI6YQPE_cjs.useItinerary; }
1130
+ get: function () { return chunkA7C74SJT_cjs.useItinerary; }
1127
1131
  });
1128
1132
  Object.defineProperty(exports, "useManagerToday", {
1129
1133
  enumerable: true,
1130
- get: function () { return chunk6TI6YQPE_cjs.useManagerToday; }
1134
+ get: function () { return chunkA7C74SJT_cjs.useManagerToday; }
1131
1135
  });
1132
1136
  Object.defineProperty(exports, "useManagers", {
1133
1137
  enumerable: true,
1134
- get: function () { return chunk6TI6YQPE_cjs.useManagers; }
1138
+ get: function () { return chunkA7C74SJT_cjs.useManagers; }
1135
1139
  });
1136
1140
  Object.defineProperty(exports, "useParties", {
1137
1141
  enumerable: true,
1138
- get: function () { return chunk6TI6YQPE_cjs.useParties; }
1142
+ get: function () { return chunkA7C74SJT_cjs.useParties; }
1139
1143
  });
1140
1144
  Object.defineProperty(exports, "usePickups", {
1141
1145
  enumerable: true,
1142
- get: function () { return chunk6TI6YQPE_cjs.usePickups; }
1146
+ get: function () { return chunkA7C74SJT_cjs.usePickups; }
1143
1147
  });
1144
1148
  Object.defineProperty(exports, "useRooming", {
1145
1149
  enumerable: true,
1146
- get: function () { return chunk6TI6YQPE_cjs.useRooming; }
1150
+ get: function () { return chunkA7C74SJT_cjs.useRooming; }
1147
1151
  });
1148
1152
  Object.defineProperty(exports, "useSeating", {
1149
1153
  enumerable: true,
1150
- get: function () { return chunk6TI6YQPE_cjs.useSeating; }
1154
+ get: function () { return chunkA7C74SJT_cjs.useSeating; }
1151
1155
  });
1152
1156
  Object.defineProperty(exports, "useSnapshotList", {
1153
1157
  enumerable: true,
1154
- get: function () { return chunk6TI6YQPE_cjs.useSnapshotList; }
1158
+ get: function () { return chunkA7C74SJT_cjs.useSnapshotList; }
1155
1159
  });
1156
1160
  Object.defineProperty(exports, "useTravellerProfile", {
1157
1161
  enumerable: true,
1158
- get: function () { return chunk6TI6YQPE_cjs.useTravellerProfile; }
1162
+ get: function () { return chunkA7C74SJT_cjs.useTravellerProfile; }
1159
1163
  });
1160
1164
  Object.defineProperty(exports, "useVendors", {
1161
1165
  enumerable: true,
1162
- get: function () { return chunk6TI6YQPE_cjs.useVendors; }
1166
+ get: function () { return chunkA7C74SJT_cjs.useVendors; }
1163
1167
  });
1164
1168
  Object.defineProperty(exports, "useShareForms", {
1165
1169
  enumerable: true,
1166
- get: function () { return chunkBBC5EX5O_cjs.useShareForms; }
1170
+ get: function () { return chunk2XW5EIMS_cjs.useShareForms; }
1167
1171
  });
1168
1172
  Object.defineProperty(exports, "useShareSnapshot", {
1169
1173
  enumerable: true,
1170
- get: function () { return chunkBBC5EX5O_cjs.useShareSnapshot; }
1174
+ get: function () { return chunk2XW5EIMS_cjs.useShareSnapshot; }
1171
1175
  });
1172
1176
  Object.defineProperty(exports, "BrandShell", {
1173
1177
  enumerable: true,
1174
- get: function () { return chunk57SUK3GD_cjs.BrandShell; }
1178
+ get: function () { return chunk4QYI7TOF_cjs.BrandShell; }
1175
1179
  });
1176
1180
  Object.defineProperty(exports, "useKaafilBrand", {
1177
1181
  enumerable: true,
1178
- get: function () { return chunk57SUK3GD_cjs.useKaafilBrand; }
1182
+ get: function () { return chunk4QYI7TOF_cjs.useKaafilBrand; }
1179
1183
  });
1180
1184
  Object.defineProperty(exports, "useKaafilShareMeta", {
1181
1185
  enumerable: true,
1182
- get: function () { return chunk57SUK3GD_cjs.useKaafilShareMeta; }
1186
+ get: function () { return chunk4QYI7TOF_cjs.useKaafilShareMeta; }
1183
1187
  });
1184
1188
  Object.defineProperty(exports, "useOfflineEngine", {
1185
1189
  enumerable: true,
1186
- get: function () { return chunk57SUK3GD_cjs.useOfflineEngine; }
1190
+ get: function () { return chunk4QYI7TOF_cjs.useOfflineEngine; }
1187
1191
  });
1188
1192
  Object.defineProperty(exports, "useServerTime", {
1189
1193
  enumerable: true,
1190
- get: function () { return chunkECCQW5LN_cjs.useServerTime; }
1194
+ get: function () { return chunk6BY2NPBZ_cjs.useServerTime; }
1191
1195
  });
1192
1196
  Object.defineProperty(exports, "I18nShell", {
1193
1197
  enumerable: true,
1194
- get: function () { return chunkUALMCHNW_cjs.I18nShell; }
1198
+ get: function () { return chunk3N2EQ2KC_cjs.I18nShell; }
1195
1199
  });
1196
1200
  Object.defineProperty(exports, "createRegistry", {
1197
1201
  enumerable: true,
1198
- get: function () { return chunkUALMCHNW_cjs.createRegistry; }
1202
+ get: function () { return chunk3N2EQ2KC_cjs.createRegistry; }
1199
1203
  });
1200
1204
  Object.defineProperty(exports, "useCapabilities", {
1201
1205
  enumerable: true,
1202
- get: function () { return chunkUALMCHNW_cjs.useCapabilities; }
1206
+ get: function () { return chunk3N2EQ2KC_cjs.useCapabilities; }
1203
1207
  });
1204
1208
  Object.defineProperty(exports, "useCapability", {
1205
1209
  enumerable: true,
1206
- get: function () { return chunkUALMCHNW_cjs.useCapability; }
1210
+ get: function () { return chunk3N2EQ2KC_cjs.useCapability; }
1207
1211
  });
1208
1212
  Object.defineProperty(exports, "useKaafilChrome", {
1209
1213
  enumerable: true,
1210
- get: function () { return chunkUALMCHNW_cjs.useKaafilChrome; }
1214
+ get: function () { return chunk3N2EQ2KC_cjs.useKaafilChrome; }
1211
1215
  });
1212
1216
  Object.defineProperty(exports, "useKaafilClient", {
1213
1217
  enumerable: true,
1214
- get: function () { return chunkUALMCHNW_cjs.useKaafilClient; }
1218
+ get: function () { return chunk3N2EQ2KC_cjs.useKaafilClient; }
1215
1219
  });
1216
1220
  Object.defineProperty(exports, "useOfflineEvent", {
1217
1221
  enumerable: true,
1218
- get: function () { return chunkUALMCHNW_cjs.useOfflineEvent; }
1222
+ get: function () { return chunk3N2EQ2KC_cjs.useOfflineEvent; }
1219
1223
  });
1220
1224
  Object.defineProperty(exports, "useOfflineMutation", {
1221
1225
  enumerable: true,
1222
- get: function () { return chunkUALMCHNW_cjs.useOfflineMutation; }
1226
+ get: function () { return chunk3N2EQ2KC_cjs.useOfflineMutation; }
1223
1227
  });
1224
1228
  Object.defineProperty(exports, "useOutboxStatus", {
1225
1229
  enumerable: true,
1226
- get: function () { return chunkUALMCHNW_cjs.useOutboxStatus; }
1230
+ get: function () { return chunk3N2EQ2KC_cjs.useOutboxStatus; }
1227
1231
  });
1228
1232
  Object.defineProperty(exports, "usePersona", {
1229
1233
  enumerable: true,
1230
- get: function () { return chunkUALMCHNW_cjs.usePersona; }
1234
+ get: function () { return chunk3N2EQ2KC_cjs.usePersona; }
1231
1235
  });
1232
1236
  Object.defineProperty(exports, "useSession", {
1233
1237
  enumerable: true,
1234
- get: function () { return chunkUALMCHNW_cjs.useSession; }
1238
+ get: function () { return chunk3N2EQ2KC_cjs.useSession; }
1235
1239
  });
1236
1240
  Object.defineProperty(exports, "UnsatisfiableSchemeError", {
1237
1241
  enumerable: true,
@@ -1252,7 +1256,6 @@ exports.useBlobStatus = useBlobStatus;
1252
1256
  exports.useDefaultCapabilityViews = useDefaultCapabilityViews;
1253
1257
  exports.useFeedbackNps = useFeedbackNps;
1254
1258
  exports.useJourney = useJourney;
1255
- exports.useResolvedSetting = useResolvedSetting;
1256
1259
  exports.useSnapshotEntity = useSnapshotEntity;
1257
1260
  exports.useStaleness = useStaleness;
1258
1261
  exports.useTreks = useTreks;