kaafil-react-uikit 0.1.0-beta.1 → 0.2.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.
- package/README.md +12 -6
- package/dist/admin/index.cjs +343 -343
- package/dist/admin/index.cjs.map +1 -1
- package/dist/admin/index.js +6 -6
- package/dist/admin/index.js.map +1 -1
- package/dist/chunk-57SUK3GD.cjs +110 -0
- package/dist/chunk-57SUK3GD.cjs.map +1 -0
- package/dist/{chunk-LL243STJ.cjs → chunk-6WV5VYT2.cjs} +111 -95
- package/dist/chunk-6WV5VYT2.cjs.map +1 -0
- package/dist/{chunk-YDGR7JSY.js → chunk-7ISKFGLW.js} +28 -12
- package/dist/chunk-7ISKFGLW.js.map +1 -0
- package/dist/{chunk-PTQ2CJKE.cjs → chunk-7UFX3Y2U.cjs} +4 -4
- package/dist/{chunk-PTQ2CJKE.cjs.map → chunk-7UFX3Y2U.cjs.map} +1 -1
- package/dist/{chunk-6FPAGGFL.js → chunk-A4Z2YBEF.js} +29 -8
- package/dist/chunk-A4Z2YBEF.js.map +1 -0
- package/dist/{chunk-IIPQ4JNC.js → chunk-GJ2J3PYN.js} +3 -3
- package/dist/{chunk-IIPQ4JNC.js.map → chunk-GJ2J3PYN.js.map} +1 -1
- package/dist/{chunk-PJRZCOFF.cjs → chunk-HTIY33UH.cjs} +37 -37
- package/dist/{chunk-PJRZCOFF.cjs.map → chunk-HTIY33UH.cjs.map} +1 -1
- package/dist/chunk-KW5LH6KV.js +105 -0
- package/dist/chunk-KW5LH6KV.js.map +1 -0
- package/dist/{chunk-XI7MK4Y7.js → chunk-L3QEMEFM.js} +3 -3
- package/dist/{chunk-XI7MK4Y7.js.map → chunk-L3QEMEFM.js.map} +1 -1
- package/dist/{chunk-WUAFL77X.js → chunk-LJJMNZ7B.js} +7 -101
- package/dist/chunk-LJJMNZ7B.js.map +1 -0
- package/dist/{chunk-QHUDOVKW.cjs → chunk-OZJ74DVQ.cjs} +33 -17
- package/dist/chunk-OZJ74DVQ.cjs.map +1 -0
- package/dist/{chunk-VHTSTUCJ.cjs → chunk-RG4YDSCN.cjs} +17 -114
- package/dist/chunk-RG4YDSCN.cjs.map +1 -0
- package/dist/{chunk-UYJ6LIWP.js → chunk-RSC2ZJUP.js} +35 -19
- package/dist/chunk-RSC2ZJUP.js.map +1 -0
- package/dist/{chunk-UUGMNP27.js → chunk-SIAPCJ7G.js} +5 -5
- package/dist/{chunk-UUGMNP27.js.map → chunk-SIAPCJ7G.js.map} +1 -1
- package/dist/{chunk-EM7JV3D7.cjs → chunk-UALMCHNW.cjs} +29 -8
- package/dist/chunk-UALMCHNW.cjs.map +1 -0
- package/dist/{chunk-ACVU55PZ.cjs → chunk-YNHOPYBK.cjs} +12 -12
- package/dist/{chunk-ACVU55PZ.cjs.map → chunk-YNHOPYBK.cjs.map} +1 -1
- package/dist/core/index.cjs +126 -120
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +19 -13
- package/dist/core/index.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/manager/index.cjs +278 -283
- package/dist/manager/index.cjs.map +1 -1
- package/dist/manager/index.js +48 -52
- package/dist/manager/index.js.map +1 -1
- package/dist/traveller/index.cjs +35 -35
- package/dist/traveller/index.js +5 -5
- package/package.json +4 -3
- package/dist/chunk-6FPAGGFL.js.map +0 -1
- package/dist/chunk-EM7JV3D7.cjs.map +0 -1
- package/dist/chunk-LL243STJ.cjs.map +0 -1
- package/dist/chunk-PZKXLQSU.js +0 -10
- package/dist/chunk-PZKXLQSU.js.map +0 -1
- package/dist/chunk-QHUDOVKW.cjs.map +0 -1
- package/dist/chunk-TOBZFADB.cjs +0 -12
- package/dist/chunk-TOBZFADB.cjs.map +0 -1
- package/dist/chunk-UYJ6LIWP.js.map +0 -1
- package/dist/chunk-VHTSTUCJ.cjs.map +0 -1
- package/dist/chunk-WUAFL77X.js.map +0 -1
- package/dist/chunk-YDGR7JSY.js.map +0 -1
package/dist/core/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
3
|
+
var chunkOZJ74DVQ_cjs = require('../chunk-OZJ74DVQ.cjs');
|
|
4
|
+
var chunkHTIY33UH_cjs = require('../chunk-HTIY33UH.cjs');
|
|
5
|
+
var chunk6WV5VYT2_cjs = require('../chunk-6WV5VYT2.cjs');
|
|
6
|
+
var chunkRG4YDSCN_cjs = require('../chunk-RG4YDSCN.cjs');
|
|
7
|
+
var chunk57SUK3GD_cjs = require('../chunk-57SUK3GD.cjs');
|
|
8
|
+
var chunk7UFX3Y2U_cjs = require('../chunk-7UFX3Y2U.cjs');
|
|
9
|
+
var chunkUALMCHNW_cjs = require('../chunk-UALMCHNW.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(
|
|
29
|
+
const engine = react.useContext(chunkUALMCHNW_cjs.OfflineEngineContext);
|
|
30
30
|
const [, forceRefresh] = react.useState(0);
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
chunkUALMCHNW_cjs.useOfflineEvent("sync.drained", () => forceRefresh((tick) => tick + 1));
|
|
32
|
+
chunkUALMCHNW_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 =
|
|
41
|
+
const client$1 = chunkUALMCHNW_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 =
|
|
71
|
+
const dispatchMutation = chunkUALMCHNW_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 =
|
|
116
|
-
const persona =
|
|
117
|
-
const { rows } =
|
|
115
|
+
const client = chunkUALMCHNW_cjs.useKaafilClient();
|
|
116
|
+
const persona = chunkUALMCHNW_cjs.usePersona();
|
|
117
|
+
const { rows } = chunkUALMCHNW_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 (
|
|
122
|
+
if (chunkUALMCHNW_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,
|
|
146
|
+
capabilities.set(row.capability, chunkUALMCHNW_cjs.deriveCapabilityTriple(row));
|
|
147
147
|
}
|
|
148
148
|
return {
|
|
149
149
|
read,
|
|
@@ -158,12 +158,12 @@ function useJourney(tripRef) {
|
|
|
158
158
|
|
|
159
159
|
// src/core/hooks/useResolvedSetting.ts
|
|
160
160
|
function useResolvedSetting(key) {
|
|
161
|
-
const config =
|
|
161
|
+
const config = chunkUALMCHNW_cjs.useRequiredContext(chunkUALMCHNW_cjs.ConfigContext, "useResolvedSetting", "ConfigShell");
|
|
162
162
|
return config.resolveSetting(key);
|
|
163
163
|
}
|
|
164
164
|
function useSnapshotEntity(tripRef, listName, id) {
|
|
165
|
-
const engine = react.useContext(
|
|
166
|
-
const { rows } =
|
|
165
|
+
const engine = react.useContext(chunkUALMCHNW_cjs.OfflineEngineContext);
|
|
166
|
+
const { rows } = chunk6WV5VYT2_cjs.useSnapshotList(tripRef, listName);
|
|
167
167
|
const row = rows.find((candidate) => candidate.id === id);
|
|
168
168
|
const syncedAt = engine === null ? void 0 : engine.snapshot.syncedAt(tripRef, listName, id);
|
|
169
169
|
return { row, syncedAt };
|
|
@@ -171,8 +171,8 @@ function useSnapshotEntity(tripRef, listName, id) {
|
|
|
171
171
|
|
|
172
172
|
// src/core/hooks/useStaleness.ts
|
|
173
173
|
function useStaleness(tripRef, listName) {
|
|
174
|
-
const { syncedAt } =
|
|
175
|
-
const { now } =
|
|
174
|
+
const { syncedAt } = chunk6WV5VYT2_cjs.useSnapshotList(tripRef, listName);
|
|
175
|
+
const { now } = chunk7UFX3Y2U_cjs.useServerTime();
|
|
176
176
|
const thresholdSeconds = useResolvedSetting("stale.thresholdSeconds.default");
|
|
177
177
|
if (syncedAt === void 0) {
|
|
178
178
|
return { syncedAt: void 0, ageSeconds: void 0, isStale: false };
|
|
@@ -187,8 +187,8 @@ function useStaleness(tripRef, listName) {
|
|
|
187
187
|
return { syncedAt, ageSeconds, isStale };
|
|
188
188
|
}
|
|
189
189
|
var WALK_INS_PAGE_SIZE = 25;
|
|
190
|
-
var useTreksInternal =
|
|
191
|
-
const client$1 =
|
|
190
|
+
var useTreksInternal = chunk6WV5VYT2_cjs.createDomainHook("treks", (tripRef) => {
|
|
191
|
+
const client$1 = chunkUALMCHNW_cjs.useKaafilClient();
|
|
192
192
|
const [boardData, setBoardData] = react.useState(void 0);
|
|
193
193
|
const [boardLoaded, setBoardLoaded] = react.useState(false);
|
|
194
194
|
const [boardFetchFailed, setBoardFetchFailed] = react.useState(false);
|
|
@@ -266,7 +266,7 @@ var useTreksInternal = chunkLL243STJ_cjs.createDomainHook("treks", (tripRef) =>
|
|
|
266
266
|
react.useEffect(() => {
|
|
267
267
|
void refreshMeta();
|
|
268
268
|
}, [refreshMeta]);
|
|
269
|
-
const createWalkInMutation =
|
|
269
|
+
const createWalkInMutation = chunkUALMCHNW_cjs.useOfflineMutation({
|
|
270
270
|
tripRef,
|
|
271
271
|
enqueue: (engine, input) => engine.enqueue({
|
|
272
272
|
tripRef,
|
|
@@ -279,7 +279,7 @@ var useTreksInternal = chunkLL243STJ_cjs.createDomainHook("treks", (tripRef) =>
|
|
|
279
279
|
body: input
|
|
280
280
|
})
|
|
281
281
|
});
|
|
282
|
-
const postponeMutation =
|
|
282
|
+
const postponeMutation = chunkUALMCHNW_cjs.useOfflineMutation({
|
|
283
283
|
tripRef,
|
|
284
284
|
enqueue: (engine, input) => engine.enqueue({
|
|
285
285
|
tripRef,
|
|
@@ -289,7 +289,7 @@ var useTreksInternal = chunkLL243STJ_cjs.createDomainHook("treks", (tripRef) =>
|
|
|
289
289
|
body: input
|
|
290
290
|
})
|
|
291
291
|
});
|
|
292
|
-
const reconcileMutation =
|
|
292
|
+
const reconcileMutation = chunkUALMCHNW_cjs.useOfflineMutation({
|
|
293
293
|
tripRef,
|
|
294
294
|
enqueue: (engine, { walkInId, input }) => engine.enqueue({
|
|
295
295
|
tripRef,
|
|
@@ -389,7 +389,7 @@ function ShadowIsolationBoundary({
|
|
|
389
389
|
}
|
|
390
390
|
function useDeskMinimumWidthWarning(rootRef, frame) {
|
|
391
391
|
react.useEffect(() => {
|
|
392
|
-
if (frame !== "desk" || !
|
|
392
|
+
if (frame !== "desk" || !chunkUALMCHNW_cjs.isDevelopment() || typeof ResizeObserver === "undefined") {
|
|
393
393
|
return;
|
|
394
394
|
}
|
|
395
395
|
const node = rootRef.current;
|
|
@@ -415,7 +415,7 @@ function useDeskMinimumWidthWarning(rootRef, frame) {
|
|
|
415
415
|
}
|
|
416
416
|
function useUnfilledConnectivitySlotWarning(frame, connectivitySlot) {
|
|
417
417
|
react.useEffect(() => {
|
|
418
|
-
if (frame === "field" && connectivitySlot === void 0 &&
|
|
418
|
+
if (frame === "field" && connectivitySlot === void 0 && chunkUALMCHNW_cjs.isDevelopment()) {
|
|
419
419
|
console.warn(
|
|
420
420
|
`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
421
|
);
|
|
@@ -464,7 +464,7 @@ function AppShell({
|
|
|
464
464
|
className: "kf-root",
|
|
465
465
|
"data-kf-isolation": "shadow",
|
|
466
466
|
...dataAttributes,
|
|
467
|
-
style:
|
|
467
|
+
style: chunkUALMCHNW_cjs.tokenStyle(style),
|
|
468
468
|
children: /* @__PURE__ */ jsxRuntime.jsx(ShadowIsolationBoundary, { className: "kf-app-shell__shadow-host", children: content })
|
|
469
469
|
}
|
|
470
470
|
);
|
|
@@ -476,7 +476,7 @@ function AppShell({
|
|
|
476
476
|
className: "kf-root",
|
|
477
477
|
"data-kf-isolation": "scoped",
|
|
478
478
|
...dataAttributes,
|
|
479
|
-
style:
|
|
479
|
+
style: chunkUALMCHNW_cjs.tokenStyle(style),
|
|
480
480
|
children: content
|
|
481
481
|
}
|
|
482
482
|
);
|
|
@@ -495,10 +495,10 @@ function ConfigShell({ seedConfig = {}, children }) {
|
|
|
495
495
|
}),
|
|
496
496
|
[seedConfig.agency, seedConfig.tenant]
|
|
497
497
|
);
|
|
498
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
498
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkUALMCHNW_cjs.ConfigContext.Provider, { value, children });
|
|
499
499
|
}
|
|
500
500
|
function classifyForFallback(error) {
|
|
501
|
-
const classification =
|
|
501
|
+
const classification = chunk6WV5VYT2_cjs.classifyError(error);
|
|
502
502
|
if (classification.code === "RESOURCE_NOT_FOUND") {
|
|
503
503
|
return { classification: "isolation", code: classification.code };
|
|
504
504
|
}
|
|
@@ -555,9 +555,9 @@ function OfflineShell({
|
|
|
555
555
|
scope,
|
|
556
556
|
children
|
|
557
557
|
}) {
|
|
558
|
-
const client = react.useContext(
|
|
559
|
-
const persona =
|
|
560
|
-
const session =
|
|
558
|
+
const client = react.useContext(chunkUALMCHNW_cjs.KaafilClientContext);
|
|
559
|
+
const persona = chunkUALMCHNW_cjs.usePersona();
|
|
560
|
+
const session = chunkUALMCHNW_cjs.useSession();
|
|
561
561
|
const reportExpired = react.useContext(SessionExpiryBridgeContext);
|
|
562
562
|
const [engine, setEngine] = react.useState(null);
|
|
563
563
|
const engineRef = react.useRef(null);
|
|
@@ -581,7 +581,13 @@ function OfflineShell({
|
|
|
581
581
|
// value has a wire source.
|
|
582
582
|
});
|
|
583
583
|
engineRef.current = newEngine;
|
|
584
|
-
|
|
584
|
+
let opened = false;
|
|
585
|
+
void newEngine.open().then(() => {
|
|
586
|
+
opened = true;
|
|
587
|
+
if (engineRef.current === newEngine) setEngine(newEngine);
|
|
588
|
+
}).catch(() => {
|
|
589
|
+
if (engineRef.current === newEngine) setEngine(null);
|
|
590
|
+
});
|
|
585
591
|
const unsubscribeSessionExpired = persona !== "share" ? newEngine.events.on("session.expired", () => reportExpired?.("session")) : void 0;
|
|
586
592
|
const unsubscribeShareExpired = persona === "share" ? newEngine.events.on("share.expired", () => reportExpired?.("share")) : void 0;
|
|
587
593
|
const unsubscribeShareRevoked = persona === "share" ? newEngine.events.on("share.revoked", () => reportExpired?.("share")) : void 0;
|
|
@@ -589,13 +595,13 @@ function OfflineShell({
|
|
|
589
595
|
unsubscribeSessionExpired?.();
|
|
590
596
|
unsubscribeShareExpired?.();
|
|
591
597
|
unsubscribeShareRevoked?.();
|
|
592
|
-
newEngine.close();
|
|
598
|
+
if (opened) newEngine.close();
|
|
593
599
|
if (engineRef.current === newEngine) {
|
|
594
600
|
engineRef.current = null;
|
|
595
601
|
}
|
|
596
602
|
};
|
|
597
603
|
}, [client, derivedScope, session.status, persona, reportExpired]);
|
|
598
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
604
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkUALMCHNW_cjs.OfflineEngineContext.Provider, { value: engine, children });
|
|
599
605
|
}
|
|
600
606
|
|
|
601
607
|
// src/core/shells/internal/jwtKind.ts
|
|
@@ -715,14 +721,14 @@ function SessionShell(props) {
|
|
|
715
721
|
}, [environment, accessTokenDep, refreshTokenDep, agencyRefDep, shareTokenDep]);
|
|
716
722
|
if (state === null) {
|
|
717
723
|
return /* @__PURE__ */ jsxRuntime.jsx(SessionExpiryBridgeContext.Provider, { value: reportExpired, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
718
|
-
|
|
724
|
+
chunkUALMCHNW_cjs.SessionContext.Provider,
|
|
719
725
|
{
|
|
720
726
|
value: { status: "opening", persona: "manager", agencyRef: void 0, environment },
|
|
721
727
|
children
|
|
722
728
|
}
|
|
723
729
|
) });
|
|
724
730
|
}
|
|
725
|
-
return /* @__PURE__ */ jsxRuntime.jsx(SessionExpiryBridgeContext.Provider, { value: reportExpired, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
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 }) }) });
|
|
726
732
|
}
|
|
727
733
|
function emit(onEvent, event) {
|
|
728
734
|
if (onEvent === void 0) {
|
|
@@ -734,8 +740,8 @@ function emit(onEvent, event) {
|
|
|
734
740
|
}
|
|
735
741
|
}
|
|
736
742
|
function TelemetryShell({ onEvent, children }) {
|
|
737
|
-
const session =
|
|
738
|
-
const serverTime =
|
|
743
|
+
const session = chunkUALMCHNW_cjs.useSession();
|
|
744
|
+
const serverTime = chunk7UFX3Y2U_cjs.useServerTime();
|
|
739
745
|
const previousStatusRef = react.useRef(void 0);
|
|
740
746
|
react.useEffect(() => {
|
|
741
747
|
const previousStatus = previousStatusRef.current;
|
|
@@ -809,7 +815,7 @@ function KaafilUIKitProvider(props) {
|
|
|
809
815
|
...credential
|
|
810
816
|
} = props;
|
|
811
817
|
const inner = /* @__PURE__ */ jsxRuntime.jsx(DefaultCapabilityViewsContext.Provider, { value: defaultCapabilityViews ?? {}, children: /* @__PURE__ */ jsxRuntime.jsx(ConfigShell, { seedConfig, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
812
|
-
|
|
818
|
+
chunk57SUK3GD_cjs.BrandShell,
|
|
813
819
|
{
|
|
814
820
|
appName: brand?.appName,
|
|
815
821
|
logo: brand?.logo,
|
|
@@ -819,7 +825,7 @@ function KaafilUIKitProvider(props) {
|
|
|
819
825
|
children: /* @__PURE__ */ jsxRuntime.jsx(TelemetryShell, { onEvent, children })
|
|
820
826
|
}
|
|
821
827
|
) }) });
|
|
822
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ErrorShell, { children: /* @__PURE__ */ jsxRuntime.jsx(ThemeShell, { theme, density, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
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(
|
|
823
829
|
SessionShell,
|
|
824
830
|
{
|
|
825
831
|
...credential,
|
|
@@ -888,20 +894,20 @@ function detectHazards() {
|
|
|
888
894
|
function HostCssCompatibilityProbe({
|
|
889
895
|
style
|
|
890
896
|
} = {}) {
|
|
891
|
-
const chrome =
|
|
897
|
+
const chrome = chunkUALMCHNW_cjs.useKaafilChrome();
|
|
892
898
|
const [hazards, setHazards] = react.useState(null);
|
|
893
899
|
react.useEffect(() => {
|
|
894
|
-
if (
|
|
900
|
+
if (chunkUALMCHNW_cjs.isDevelopment()) {
|
|
895
901
|
setHazards(detectHazards());
|
|
896
902
|
}
|
|
897
903
|
}, []);
|
|
898
|
-
if (!
|
|
904
|
+
if (!chunkUALMCHNW_cjs.isDevelopment() || hazards === null) {
|
|
899
905
|
return null;
|
|
900
906
|
}
|
|
901
907
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
902
908
|
"div",
|
|
903
909
|
{
|
|
904
|
-
style:
|
|
910
|
+
style: chunkUALMCHNW_cjs.tokenStyle(style, {
|
|
905
911
|
border: "1px solid #999",
|
|
906
912
|
padding: "0.75rem",
|
|
907
913
|
borderRadius: "4px"
|
|
@@ -922,14 +928,14 @@ function KaafilSessionProbe({
|
|
|
922
928
|
expectedEnvironment,
|
|
923
929
|
style
|
|
924
930
|
}) {
|
|
925
|
-
const session =
|
|
926
|
-
const chrome =
|
|
931
|
+
const session = chunkUALMCHNW_cjs.useSession();
|
|
932
|
+
const chrome = chunkUALMCHNW_cjs.useKaafilChrome();
|
|
927
933
|
if (session.status === "expired") {
|
|
928
934
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
929
935
|
"div",
|
|
930
936
|
{
|
|
931
937
|
role: "status",
|
|
932
|
-
style:
|
|
938
|
+
style: chunkUALMCHNW_cjs.tokenStyle(style, {
|
|
933
939
|
border: "1px solid #c00",
|
|
934
940
|
padding: "0.75rem",
|
|
935
941
|
borderRadius: "4px"
|
|
@@ -943,7 +949,7 @@ function KaafilSessionProbe({
|
|
|
943
949
|
"div",
|
|
944
950
|
{
|
|
945
951
|
role: "status",
|
|
946
|
-
style:
|
|
952
|
+
style: chunkUALMCHNW_cjs.tokenStyle(style, {
|
|
947
953
|
border: "1px solid #c00",
|
|
948
954
|
padding: "0.75rem",
|
|
949
955
|
borderRadius: "4px"
|
|
@@ -960,12 +966,12 @@ function KaafilSessionProbe({
|
|
|
960
966
|
);
|
|
961
967
|
}
|
|
962
968
|
if (session.status === "opening") {
|
|
963
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { role: "status", style:
|
|
969
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { role: "status", style: chunkUALMCHNW_cjs.tokenStyle(style), children: chrome.t("chrome.loading") });
|
|
964
970
|
}
|
|
965
971
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
966
972
|
"div",
|
|
967
973
|
{
|
|
968
|
-
style:
|
|
974
|
+
style: chunkUALMCHNW_cjs.tokenStyle(style, {
|
|
969
975
|
border: "1px solid #0a0",
|
|
970
976
|
padding: "0.75rem",
|
|
971
977
|
borderRadius: "4px"
|
|
@@ -989,243 +995,243 @@ function KaafilSessionProbe({
|
|
|
989
995
|
|
|
990
996
|
Object.defineProperty(exports, "useConflicts", {
|
|
991
997
|
enumerable: true,
|
|
992
|
-
get: function () { return
|
|
998
|
+
get: function () { return chunkOZJ74DVQ_cjs.useConflicts; }
|
|
993
999
|
});
|
|
994
1000
|
Object.defineProperty(exports, "useManagerMe", {
|
|
995
1001
|
enumerable: true,
|
|
996
|
-
get: function () { return
|
|
1002
|
+
get: function () { return chunkOZJ74DVQ_cjs.useManagerMe; }
|
|
997
1003
|
});
|
|
998
1004
|
Object.defineProperty(exports, "useNotifications", {
|
|
999
1005
|
enumerable: true,
|
|
1000
|
-
get: function () { return
|
|
1006
|
+
get: function () { return chunkOZJ74DVQ_cjs.useNotifications; }
|
|
1001
1007
|
});
|
|
1002
1008
|
Object.defineProperty(exports, "CLOSEOUT_ACTION_TAB", {
|
|
1003
1009
|
enumerable: true,
|
|
1004
|
-
get: function () { return
|
|
1010
|
+
get: function () { return chunkHTIY33UH_cjs.CLOSEOUT_ACTION_TAB; }
|
|
1005
1011
|
});
|
|
1006
1012
|
Object.defineProperty(exports, "fromSearchParams", {
|
|
1007
1013
|
enumerable: true,
|
|
1008
|
-
get: function () { return
|
|
1014
|
+
get: function () { return chunkHTIY33UH_cjs.fromSearchParams; }
|
|
1009
1015
|
});
|
|
1010
1016
|
Object.defineProperty(exports, "isTripTabKey", {
|
|
1011
1017
|
enumerable: true,
|
|
1012
|
-
get: function () { return
|
|
1018
|
+
get: function () { return chunkHTIY33UH_cjs.isTripTabKey; }
|
|
1013
1019
|
});
|
|
1014
1020
|
Object.defineProperty(exports, "resolveBlockerDeepLink", {
|
|
1015
1021
|
enumerable: true,
|
|
1016
|
-
get: function () { return
|
|
1022
|
+
get: function () { return chunkHTIY33UH_cjs.resolveBlockerDeepLink; }
|
|
1017
1023
|
});
|
|
1018
1024
|
Object.defineProperty(exports, "toSearchParams", {
|
|
1019
1025
|
enumerable: true,
|
|
1020
|
-
get: function () { return
|
|
1026
|
+
get: function () { return chunkHTIY33UH_cjs.toSearchParams; }
|
|
1021
1027
|
});
|
|
1022
1028
|
Object.defineProperty(exports, "useAgencyAdminMe", {
|
|
1023
1029
|
enumerable: true,
|
|
1024
|
-
get: function () { return
|
|
1030
|
+
get: function () { return chunkHTIY33UH_cjs.useAgencyAdminMe; }
|
|
1025
1031
|
});
|
|
1026
1032
|
Object.defineProperty(exports, "useAgencyChecklistTemplates", {
|
|
1027
1033
|
enumerable: true,
|
|
1028
|
-
get: function () { return
|
|
1034
|
+
get: function () { return chunkHTIY33UH_cjs.useAgencyChecklistTemplates; }
|
|
1029
1035
|
});
|
|
1030
1036
|
Object.defineProperty(exports, "useAgencyForms", {
|
|
1031
1037
|
enumerable: true,
|
|
1032
|
-
get: function () { return
|
|
1038
|
+
get: function () { return chunkHTIY33UH_cjs.useAgencyForms; }
|
|
1033
1039
|
});
|
|
1034
1040
|
Object.defineProperty(exports, "useAgencyJourneyTriggers", {
|
|
1035
1041
|
enumerable: true,
|
|
1036
|
-
get: function () { return
|
|
1042
|
+
get: function () { return chunkHTIY33UH_cjs.useAgencyJourneyTriggers; }
|
|
1037
1043
|
});
|
|
1038
1044
|
Object.defineProperty(exports, "useAgencyManagerProfile", {
|
|
1039
1045
|
enumerable: true,
|
|
1040
|
-
get: function () { return
|
|
1046
|
+
get: function () { return chunkHTIY33UH_cjs.useAgencyManagerProfile; }
|
|
1041
1047
|
});
|
|
1042
1048
|
Object.defineProperty(exports, "useAgencySettings", {
|
|
1043
1049
|
enumerable: true,
|
|
1044
|
-
get: function () { return
|
|
1050
|
+
get: function () { return chunkHTIY33UH_cjs.useAgencySettings; }
|
|
1045
1051
|
});
|
|
1046
1052
|
Object.defineProperty(exports, "useAgencyTrip", {
|
|
1047
1053
|
enumerable: true,
|
|
1048
|
-
get: function () { return
|
|
1054
|
+
get: function () { return chunkHTIY33UH_cjs.useAgencyTrip; }
|
|
1049
1055
|
});
|
|
1050
1056
|
Object.defineProperty(exports, "useAgencyTripManifest", {
|
|
1051
1057
|
enumerable: true,
|
|
1052
|
-
get: function () { return
|
|
1058
|
+
get: function () { return chunkHTIY33UH_cjs.useAgencyTripManifest; }
|
|
1053
1059
|
});
|
|
1054
1060
|
Object.defineProperty(exports, "useAgencyTrips", {
|
|
1055
1061
|
enumerable: true,
|
|
1056
|
-
get: function () { return
|
|
1062
|
+
get: function () { return chunkHTIY33UH_cjs.useAgencyTrips; }
|
|
1057
1063
|
});
|
|
1058
1064
|
Object.defineProperty(exports, "useBookings", {
|
|
1059
1065
|
enumerable: true,
|
|
1060
|
-
get: function () { return
|
|
1066
|
+
get: function () { return chunkHTIY33UH_cjs.useBookings; }
|
|
1061
1067
|
});
|
|
1062
1068
|
Object.defineProperty(exports, "useCapabilityStatuses", {
|
|
1063
1069
|
enumerable: true,
|
|
1064
|
-
get: function () { return
|
|
1070
|
+
get: function () { return chunkHTIY33UH_cjs.useCapabilityStatuses; }
|
|
1065
1071
|
});
|
|
1066
1072
|
Object.defineProperty(exports, "useDirectories", {
|
|
1067
1073
|
enumerable: true,
|
|
1068
|
-
get: function () { return
|
|
1074
|
+
get: function () { return chunkHTIY33UH_cjs.useDirectories; }
|
|
1069
1075
|
});
|
|
1070
1076
|
Object.defineProperty(exports, "usePaginatedList", {
|
|
1071
1077
|
enumerable: true,
|
|
1072
|
-
get: function () { return
|
|
1078
|
+
get: function () { return chunkHTIY33UH_cjs.usePaginatedList; }
|
|
1073
1079
|
});
|
|
1074
1080
|
Object.defineProperty(exports, "useShareLinks", {
|
|
1075
1081
|
enumerable: true,
|
|
1076
|
-
get: function () { return
|
|
1082
|
+
get: function () { return chunkHTIY33UH_cjs.useShareLinks; }
|
|
1077
1083
|
});
|
|
1078
1084
|
Object.defineProperty(exports, "useTravellerFormResponses", {
|
|
1079
1085
|
enumerable: true,
|
|
1080
|
-
get: function () { return
|
|
1086
|
+
get: function () { return chunkHTIY33UH_cjs.useTravellerFormResponses; }
|
|
1081
1087
|
});
|
|
1082
1088
|
Object.defineProperty(exports, "ERROR_HANDLING_PATH", {
|
|
1083
1089
|
enumerable: true,
|
|
1084
|
-
get: function () { return
|
|
1090
|
+
get: function () { return chunk6WV5VYT2_cjs.ERROR_HANDLING_PATH; }
|
|
1085
1091
|
});
|
|
1086
1092
|
Object.defineProperty(exports, "classifyError", {
|
|
1087
1093
|
enumerable: true,
|
|
1088
|
-
get: function () { return
|
|
1094
|
+
get: function () { return chunk6WV5VYT2_cjs.classifyError; }
|
|
1089
1095
|
});
|
|
1090
1096
|
Object.defineProperty(exports, "useChecklists", {
|
|
1091
1097
|
enumerable: true,
|
|
1092
|
-
get: function () { return
|
|
1098
|
+
get: function () { return chunk6WV5VYT2_cjs.useChecklists; }
|
|
1093
1099
|
});
|
|
1094
1100
|
Object.defineProperty(exports, "useCloseout", {
|
|
1095
1101
|
enumerable: true,
|
|
1096
|
-
get: function () { return
|
|
1102
|
+
get: function () { return chunk6WV5VYT2_cjs.useCloseout; }
|
|
1097
1103
|
});
|
|
1098
1104
|
Object.defineProperty(exports, "useCollections", {
|
|
1099
1105
|
enumerable: true,
|
|
1100
|
-
get: function () { return
|
|
1106
|
+
get: function () { return chunk6WV5VYT2_cjs.useCollections; }
|
|
1101
1107
|
});
|
|
1102
1108
|
Object.defineProperty(exports, "useExpenses", {
|
|
1103
1109
|
enumerable: true,
|
|
1104
|
-
get: function () { return
|
|
1110
|
+
get: function () { return chunk6WV5VYT2_cjs.useExpenses; }
|
|
1105
1111
|
});
|
|
1106
1112
|
Object.defineProperty(exports, "useFiles", {
|
|
1107
1113
|
enumerable: true,
|
|
1108
|
-
get: function () { return
|
|
1114
|
+
get: function () { return chunk6WV5VYT2_cjs.useFiles; }
|
|
1109
1115
|
});
|
|
1110
1116
|
Object.defineProperty(exports, "useFloat", {
|
|
1111
1117
|
enumerable: true,
|
|
1112
|
-
get: function () { return
|
|
1118
|
+
get: function () { return chunk6WV5VYT2_cjs.useFloat; }
|
|
1113
1119
|
});
|
|
1114
1120
|
Object.defineProperty(exports, "useForms", {
|
|
1115
1121
|
enumerable: true,
|
|
1116
|
-
get: function () { return
|
|
1122
|
+
get: function () { return chunk6WV5VYT2_cjs.useForms; }
|
|
1117
1123
|
});
|
|
1118
1124
|
Object.defineProperty(exports, "useItinerary", {
|
|
1119
1125
|
enumerable: true,
|
|
1120
|
-
get: function () { return
|
|
1126
|
+
get: function () { return chunk6WV5VYT2_cjs.useItinerary; }
|
|
1121
1127
|
});
|
|
1122
1128
|
Object.defineProperty(exports, "useManagerToday", {
|
|
1123
1129
|
enumerable: true,
|
|
1124
|
-
get: function () { return
|
|
1130
|
+
get: function () { return chunk6WV5VYT2_cjs.useManagerToday; }
|
|
1125
1131
|
});
|
|
1126
1132
|
Object.defineProperty(exports, "useManagers", {
|
|
1127
1133
|
enumerable: true,
|
|
1128
|
-
get: function () { return
|
|
1134
|
+
get: function () { return chunk6WV5VYT2_cjs.useManagers; }
|
|
1129
1135
|
});
|
|
1130
1136
|
Object.defineProperty(exports, "useParties", {
|
|
1131
1137
|
enumerable: true,
|
|
1132
|
-
get: function () { return
|
|
1138
|
+
get: function () { return chunk6WV5VYT2_cjs.useParties; }
|
|
1133
1139
|
});
|
|
1134
1140
|
Object.defineProperty(exports, "usePickups", {
|
|
1135
1141
|
enumerable: true,
|
|
1136
|
-
get: function () { return
|
|
1142
|
+
get: function () { return chunk6WV5VYT2_cjs.usePickups; }
|
|
1137
1143
|
});
|
|
1138
1144
|
Object.defineProperty(exports, "useRooming", {
|
|
1139
1145
|
enumerable: true,
|
|
1140
|
-
get: function () { return
|
|
1146
|
+
get: function () { return chunk6WV5VYT2_cjs.useRooming; }
|
|
1141
1147
|
});
|
|
1142
1148
|
Object.defineProperty(exports, "useSeating", {
|
|
1143
1149
|
enumerable: true,
|
|
1144
|
-
get: function () { return
|
|
1150
|
+
get: function () { return chunk6WV5VYT2_cjs.useSeating; }
|
|
1145
1151
|
});
|
|
1146
1152
|
Object.defineProperty(exports, "useSnapshotList", {
|
|
1147
1153
|
enumerable: true,
|
|
1148
|
-
get: function () { return
|
|
1154
|
+
get: function () { return chunk6WV5VYT2_cjs.useSnapshotList; }
|
|
1149
1155
|
});
|
|
1150
1156
|
Object.defineProperty(exports, "useTravellerProfile", {
|
|
1151
1157
|
enumerable: true,
|
|
1152
|
-
get: function () { return
|
|
1158
|
+
get: function () { return chunk6WV5VYT2_cjs.useTravellerProfile; }
|
|
1153
1159
|
});
|
|
1154
1160
|
Object.defineProperty(exports, "useVendors", {
|
|
1155
1161
|
enumerable: true,
|
|
1156
|
-
get: function () { return
|
|
1162
|
+
get: function () { return chunk6WV5VYT2_cjs.useVendors; }
|
|
1157
1163
|
});
|
|
1158
|
-
Object.defineProperty(exports, "
|
|
1164
|
+
Object.defineProperty(exports, "useShareForms", {
|
|
1159
1165
|
enumerable: true,
|
|
1160
|
-
get: function () { return
|
|
1166
|
+
get: function () { return chunkRG4YDSCN_cjs.useShareForms; }
|
|
1161
1167
|
});
|
|
1162
|
-
Object.defineProperty(exports, "
|
|
1168
|
+
Object.defineProperty(exports, "useShareSnapshot", {
|
|
1163
1169
|
enumerable: true,
|
|
1164
|
-
get: function () { return
|
|
1170
|
+
get: function () { return chunkRG4YDSCN_cjs.useShareSnapshot; }
|
|
1165
1171
|
});
|
|
1166
|
-
Object.defineProperty(exports, "
|
|
1172
|
+
Object.defineProperty(exports, "BrandShell", {
|
|
1167
1173
|
enumerable: true,
|
|
1168
|
-
get: function () { return
|
|
1174
|
+
get: function () { return chunk57SUK3GD_cjs.BrandShell; }
|
|
1169
1175
|
});
|
|
1170
|
-
Object.defineProperty(exports, "
|
|
1176
|
+
Object.defineProperty(exports, "useKaafilBrand", {
|
|
1171
1177
|
enumerable: true,
|
|
1172
|
-
get: function () { return
|
|
1178
|
+
get: function () { return chunk57SUK3GD_cjs.useKaafilBrand; }
|
|
1173
1179
|
});
|
|
1174
|
-
Object.defineProperty(exports, "
|
|
1180
|
+
Object.defineProperty(exports, "useKaafilShareMeta", {
|
|
1175
1181
|
enumerable: true,
|
|
1176
|
-
get: function () { return
|
|
1182
|
+
get: function () { return chunk57SUK3GD_cjs.useKaafilShareMeta; }
|
|
1177
1183
|
});
|
|
1178
1184
|
Object.defineProperty(exports, "useOfflineEngine", {
|
|
1179
1185
|
enumerable: true,
|
|
1180
|
-
get: function () { return
|
|
1186
|
+
get: function () { return chunk57SUK3GD_cjs.useOfflineEngine; }
|
|
1181
1187
|
});
|
|
1182
1188
|
Object.defineProperty(exports, "useServerTime", {
|
|
1183
1189
|
enumerable: true,
|
|
1184
|
-
get: function () { return
|
|
1190
|
+
get: function () { return chunk7UFX3Y2U_cjs.useServerTime; }
|
|
1185
1191
|
});
|
|
1186
1192
|
Object.defineProperty(exports, "I18nShell", {
|
|
1187
1193
|
enumerable: true,
|
|
1188
|
-
get: function () { return
|
|
1194
|
+
get: function () { return chunkUALMCHNW_cjs.I18nShell; }
|
|
1189
1195
|
});
|
|
1190
1196
|
Object.defineProperty(exports, "createRegistry", {
|
|
1191
1197
|
enumerable: true,
|
|
1192
|
-
get: function () { return
|
|
1198
|
+
get: function () { return chunkUALMCHNW_cjs.createRegistry; }
|
|
1193
1199
|
});
|
|
1194
1200
|
Object.defineProperty(exports, "useCapabilities", {
|
|
1195
1201
|
enumerable: true,
|
|
1196
|
-
get: function () { return
|
|
1202
|
+
get: function () { return chunkUALMCHNW_cjs.useCapabilities; }
|
|
1197
1203
|
});
|
|
1198
1204
|
Object.defineProperty(exports, "useCapability", {
|
|
1199
1205
|
enumerable: true,
|
|
1200
|
-
get: function () { return
|
|
1206
|
+
get: function () { return chunkUALMCHNW_cjs.useCapability; }
|
|
1201
1207
|
});
|
|
1202
1208
|
Object.defineProperty(exports, "useKaafilChrome", {
|
|
1203
1209
|
enumerable: true,
|
|
1204
|
-
get: function () { return
|
|
1210
|
+
get: function () { return chunkUALMCHNW_cjs.useKaafilChrome; }
|
|
1205
1211
|
});
|
|
1206
1212
|
Object.defineProperty(exports, "useKaafilClient", {
|
|
1207
1213
|
enumerable: true,
|
|
1208
|
-
get: function () { return
|
|
1214
|
+
get: function () { return chunkUALMCHNW_cjs.useKaafilClient; }
|
|
1209
1215
|
});
|
|
1210
1216
|
Object.defineProperty(exports, "useOfflineEvent", {
|
|
1211
1217
|
enumerable: true,
|
|
1212
|
-
get: function () { return
|
|
1218
|
+
get: function () { return chunkUALMCHNW_cjs.useOfflineEvent; }
|
|
1213
1219
|
});
|
|
1214
1220
|
Object.defineProperty(exports, "useOfflineMutation", {
|
|
1215
1221
|
enumerable: true,
|
|
1216
|
-
get: function () { return
|
|
1222
|
+
get: function () { return chunkUALMCHNW_cjs.useOfflineMutation; }
|
|
1217
1223
|
});
|
|
1218
1224
|
Object.defineProperty(exports, "useOutboxStatus", {
|
|
1219
1225
|
enumerable: true,
|
|
1220
|
-
get: function () { return
|
|
1226
|
+
get: function () { return chunkUALMCHNW_cjs.useOutboxStatus; }
|
|
1221
1227
|
});
|
|
1222
1228
|
Object.defineProperty(exports, "usePersona", {
|
|
1223
1229
|
enumerable: true,
|
|
1224
|
-
get: function () { return
|
|
1230
|
+
get: function () { return chunkUALMCHNW_cjs.usePersona; }
|
|
1225
1231
|
});
|
|
1226
1232
|
Object.defineProperty(exports, "useSession", {
|
|
1227
1233
|
enumerable: true,
|
|
1228
|
-
get: function () { return
|
|
1234
|
+
get: function () { return chunkUALMCHNW_cjs.useSession; }
|
|
1229
1235
|
});
|
|
1230
1236
|
Object.defineProperty(exports, "UnsatisfiableSchemeError", {
|
|
1231
1237
|
enumerable: true,
|