kaafil-react-uikit 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkFVK7HMQ5_cjs = require('../chunk-FVK7HMQ5.cjs');
4
- var chunkMNUCVVIE_cjs = require('../chunk-MNUCVVIE.cjs');
3
+ var chunkIU2UM5JP_cjs = require('../chunk-IU2UM5JP.cjs');
4
+ var chunk6TI6YQPE_cjs = require('../chunk-6TI6YQPE.cjs');
5
5
  require('../chunk-ECCQW5LN.cjs');
6
6
  var chunkYNHOPYBK_cjs = require('../chunk-YNHOPYBK.cjs');
7
7
  var chunkUALMCHNW_cjs = require('../chunk-UALMCHNW.cjs');
@@ -1006,7 +1006,7 @@ function AgencySettingsScreen({
1006
1006
  style
1007
1007
  }) {
1008
1008
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
1009
- const { document: document2, loaded, lastFetchFailed, refresh, patchSettings } = chunkFVK7HMQ5_cjs.useAgencySettings();
1009
+ const { document: document2, loaded, lastFetchFailed, refresh, patchSettings } = chunkIU2UM5JP_cjs.useAgencySettings();
1010
1010
  const [selectedSectionId, setSelectedSectionId] = react.useState(AGENCY_SETTINGS_SECTIONS[0]?.id);
1011
1011
  const [savingSectionId, setSavingSectionId] = react.useState(void 0);
1012
1012
  const [sectionError, setSectionError] = react.useState(void 0);
@@ -1023,7 +1023,7 @@ function AgencySettingsScreen({
1023
1023
  try {
1024
1024
  await patchSettings({ version: document2.version, [sectionId]: patch });
1025
1025
  } catch (error) {
1026
- const kind = chunkMNUCVVIE_cjs.classifyError(error).code === "CONFLICT_VERSION" ? "conflict" : "failed";
1026
+ const kind = chunk6TI6YQPE_cjs.classifyError(error).code === "CONFLICT_VERSION" ? "conflict" : "failed";
1027
1027
  setSectionError({ sectionId, kind });
1028
1028
  } finally {
1029
1029
  setSavingSectionId(void 0);
@@ -1704,7 +1704,7 @@ function ChecklistTemplateEditor({
1704
1704
  style
1705
1705
  }) {
1706
1706
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
1707
- const { templates, loaded, lastFetchFailed, refresh, patchTemplate, publishTemplate } = chunkFVK7HMQ5_cjs.useAgencyChecklistTemplates();
1707
+ const { templates, loaded, lastFetchFailed, refresh, patchTemplate, publishTemplate } = chunkIU2UM5JP_cjs.useAgencyChecklistTemplates();
1708
1708
  const template = templates.find((candidate) => candidate.id === templateId);
1709
1709
  const [title, setTitle] = react.useState("");
1710
1710
  const [items, setItems] = react.useState([]);
@@ -2304,7 +2304,7 @@ function ChecklistTemplateLibrary({
2304
2304
  style
2305
2305
  }) {
2306
2306
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
2307
- const { templates, loaded, lastFetchFailed, refresh, createTemplate, removeTemplate } = chunkFVK7HMQ5_cjs.useAgencyChecklistTemplates();
2307
+ const { templates, loaded, lastFetchFailed, refresh, createTemplate, removeTemplate } = chunkIU2UM5JP_cjs.useAgencyChecklistTemplates();
2308
2308
  const isControlled = controlledCreating !== void 0 && onCreatingChange !== void 0;
2309
2309
  const [internalCreating, setInternalCreating] = react.useState(false);
2310
2310
  const creating = isControlled ? controlledCreating : internalCreating;
@@ -4209,7 +4209,7 @@ function FormBuilder({ formId, onBack, components, style }) {
4209
4209
  deleteField,
4210
4210
  reorderForm,
4211
4211
  listBindings
4212
- } = chunkFVK7HMQ5_cjs.useAgencyForms();
4212
+ } = chunkIU2UM5JP_cjs.useAgencyForms();
4213
4213
  const [form, setForm] = react.useState(void 0);
4214
4214
  const [loadFailed, setLoadFailed] = react.useState(false);
4215
4215
  const [bindings, setBindings] = react.useState([]);
@@ -4898,7 +4898,7 @@ function FormsLibrary({
4898
4898
  style
4899
4899
  }) {
4900
4900
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
4901
- const { forms, loaded, lastFetchFailed, refresh, createForm } = chunkFVK7HMQ5_cjs.useAgencyForms();
4901
+ const { forms, loaded, lastFetchFailed, refresh, createForm } = chunkIU2UM5JP_cjs.useAgencyForms();
4902
4902
  const isControlled = controlledCreating !== void 0 && onCreatingChange !== void 0;
4903
4903
  const [internalCreating, setInternalCreating] = react.useState(false);
4904
4904
  const creating = isControlled ? controlledCreating : internalCreating;
@@ -5276,7 +5276,7 @@ function ManagerResultsListBody({
5276
5276
  onRetry
5277
5277
  }) {
5278
5278
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
5279
- const directories = chunkFVK7HMQ5_cjs.useDirectories();
5279
+ const directories = chunkIU2UM5JP_cjs.useDirectories();
5280
5280
  const [errorMessage, setErrorMessage] = react.useState(void 0);
5281
5281
  const [hasSettled, setHasSettled] = react.useState(false);
5282
5282
  const ManagerRow = ManagerResultRowComponent ?? ManagerResultRow;
@@ -5287,7 +5287,7 @@ function ManagerResultsListBody({
5287
5287
  setErrorMessage(void 0);
5288
5288
  return page;
5289
5289
  } catch (error) {
5290
- setErrorMessage(chunkMNUCVVIE_cjs.classifyError(error).code ?? "unknown");
5290
+ setErrorMessage(chunk6TI6YQPE_cjs.classifyError(error).code ?? "unknown");
5291
5291
  return { rows: [], nextCursor: void 0 };
5292
5292
  } finally {
5293
5293
  setHasSettled(true);
@@ -5295,7 +5295,7 @@ function ManagerResultsListBody({
5295
5295
  },
5296
5296
  [directories, filters]
5297
5297
  );
5298
- const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunkFVK7HMQ5_cjs.usePaginatedList(fetch);
5298
+ const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunkIU2UM5JP_cjs.usePaginatedList(fetch);
5299
5299
  const isLoading = !hasSettled;
5300
5300
  const reportedCount = isLoading || errorMessage !== void 0 ? void 0 : rows.length;
5301
5301
  react.useEffect(() => {
@@ -5665,7 +5665,7 @@ function ManagerProfileSection({
5665
5665
  style
5666
5666
  }) {
5667
5667
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
5668
- const { read, readFailed, refresh } = chunkFVK7HMQ5_cjs.useAgencyManagerProfile(managerRef);
5668
+ const { read, readFailed, refresh } = chunkIU2UM5JP_cjs.useAgencyManagerProfile(managerRef);
5669
5669
  const Hero = components?.Hero ?? ManagerProfileHero;
5670
5670
  const AssignmentsCard = components?.AssignmentsCard ?? ManagerAssignmentsCard;
5671
5671
  if (readFailed) {
@@ -5737,7 +5737,7 @@ function TemplateAuthoringFlow({
5737
5737
  }
5738
5738
  function AddTravellerModal({ onClose, onCreated }) {
5739
5739
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
5740
- const directories = chunkFVK7HMQ5_cjs.useDirectories();
5740
+ const directories = chunkIU2UM5JP_cjs.useDirectories();
5741
5741
  const titleId = react.useId();
5742
5742
  const [fullName, setFullName] = react.useState("");
5743
5743
  const [phone, setPhone] = react.useState("");
@@ -5761,7 +5761,7 @@ function AddTravellerModal({ onClose, onCreated }) {
5761
5761
  });
5762
5762
  onCreated(created);
5763
5763
  } catch (error) {
5764
- setErrorMessage(chunkMNUCVVIE_cjs.classifyError(error).code ?? "unknown");
5764
+ setErrorMessage(chunk6TI6YQPE_cjs.classifyError(error).code ?? "unknown");
5765
5765
  } finally {
5766
5766
  setIsSubmitting(false);
5767
5767
  }
@@ -6112,7 +6112,7 @@ function TravellerResultsListBody({
6112
6112
  onRetry
6113
6113
  }) {
6114
6114
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
6115
- const directories = chunkFVK7HMQ5_cjs.useDirectories();
6115
+ const directories = chunkIU2UM5JP_cjs.useDirectories();
6116
6116
  const [errorMessage, setErrorMessage] = react.useState(void 0);
6117
6117
  const [hasSettled, setHasSettled] = react.useState(false);
6118
6118
  const fetch = react.useCallback(
@@ -6123,7 +6123,7 @@ function TravellerResultsListBody({
6123
6123
  setErrorMessage(void 0);
6124
6124
  return page;
6125
6125
  } catch (error) {
6126
- setErrorMessage(chunkMNUCVVIE_cjs.classifyError(error).code ?? "unknown");
6126
+ setErrorMessage(chunk6TI6YQPE_cjs.classifyError(error).code ?? "unknown");
6127
6127
  return { rows: [], nextCursor: void 0 };
6128
6128
  } finally {
6129
6129
  setHasSettled(true);
@@ -6131,7 +6131,7 @@ function TravellerResultsListBody({
6131
6131
  },
6132
6132
  [directories, query]
6133
6133
  );
6134
- const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunkFVK7HMQ5_cjs.usePaginatedList(fetch);
6134
+ const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunkIU2UM5JP_cjs.usePaginatedList(fetch);
6135
6135
  const isLoading = !hasSettled;
6136
6136
  const reportedCount = isLoading || errorMessage !== void 0 ? void 0 : rows.length;
6137
6137
  react.useEffect(() => {
@@ -7402,7 +7402,7 @@ function TriggerTemplateEditor({
7402
7402
  style
7403
7403
  }) {
7404
7404
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
7405
- const { triggers, loaded, lastFetchFailed, refresh, patchTrigger } = chunkFVK7HMQ5_cjs.useAgencyJourneyTriggers();
7405
+ const { triggers, loaded, lastFetchFailed, refresh, patchTrigger } = chunkIU2UM5JP_cjs.useAgencyJourneyTriggers();
7406
7406
  const [savingId, setSavingId] = react.useState(void 0);
7407
7407
  const [selectedId, setSelectedId] = react.useState(void 0);
7408
7408
  const filtered = tripModeFilter === void 0 ? triggers : triggers.filter((trigger) => trigger.tripMode === tripModeFilter);
@@ -7646,7 +7646,7 @@ function TripBookingsSection({
7646
7646
  style
7647
7647
  }) {
7648
7648
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
7649
- const bookings = chunkFVK7HMQ5_cjs.useBookings(tripRef);
7649
+ const bookings = chunkIU2UM5JP_cjs.useBookings(tripRef);
7650
7650
  const ready = bookings.status === "ready" ? bookings : null;
7651
7651
  const groups = react.useMemo(
7652
7652
  () => ready === null ? [] : groupByKind(liveBookings(ready.bookings)),
@@ -8451,7 +8451,7 @@ function TripChecklistSection({
8451
8451
  style
8452
8452
  }) {
8453
8453
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
8454
- const checklists = chunkMNUCVVIE_cjs.useChecklists(tripRef);
8454
+ const checklists = chunk6TI6YQPE_cjs.useChecklists(tripRef);
8455
8455
  const [overlay, setOverlay] = react.useState({ kind: "none" });
8456
8456
  const [pending, setPending] = react.useState(false);
8457
8457
  const [busyItemId, setBusyItemId] = react.useState(null);
@@ -9135,7 +9135,7 @@ function TripResultsListBody({
9135
9135
  onRetry
9136
9136
  }) {
9137
9137
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
9138
- const { makeTripsFetch } = chunkFVK7HMQ5_cjs.useAgencyTrips();
9138
+ const { makeTripsFetch } = chunkIU2UM5JP_cjs.useAgencyTrips();
9139
9139
  const [errorCode, setErrorCode] = react.useState(void 0);
9140
9140
  const [hasSettled, setHasSettled] = react.useState(false);
9141
9141
  const Row = TripRowComponent ?? TripRow;
@@ -9146,7 +9146,7 @@ function TripResultsListBody({
9146
9146
  setErrorCode(void 0);
9147
9147
  return page;
9148
9148
  } catch (error) {
9149
- setErrorCode(chunkMNUCVVIE_cjs.classifyError(error).code ?? "unknown");
9149
+ setErrorCode(chunk6TI6YQPE_cjs.classifyError(error).code ?? "unknown");
9150
9150
  return { rows: [], nextCursor: void 0 };
9151
9151
  } finally {
9152
9152
  setHasSettled(true);
@@ -9154,7 +9154,7 @@ function TripResultsListBody({
9154
9154
  },
9155
9155
  [makeTripsFetch, filters]
9156
9156
  );
9157
- const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunkFVK7HMQ5_cjs.usePaginatedList(fetch);
9157
+ const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunkIU2UM5JP_cjs.usePaginatedList(fetch);
9158
9158
  const isLoading = !hasSettled;
9159
9159
  const reportedCount = isLoading || errorCode !== void 0 ? void 0 : rows.length;
9160
9160
  react.useEffect(() => {
@@ -10021,11 +10021,11 @@ function UploadDialog({
10021
10021
  }
10022
10022
  function TripDocumentsSection({ tripRef, style }) {
10023
10023
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
10024
- const files = chunkMNUCVVIE_cjs.useFiles({ tripRef });
10025
- const expenses = chunkMNUCVVIE_cjs.useExpenses(tripRef);
10026
- const bookings = chunkFVK7HMQ5_cjs.useBookings(tripRef);
10027
- const { listTripManifest } = chunkFVK7HMQ5_cjs.useDirectories();
10028
- const { statuses, loaded: capabilityLoaded } = chunkFVK7HMQ5_cjs.useCapabilityStatuses(tripRef);
10024
+ const files = chunk6TI6YQPE_cjs.useFiles({ tripRef });
10025
+ const expenses = chunk6TI6YQPE_cjs.useExpenses(tripRef);
10026
+ const bookings = chunkIU2UM5JP_cjs.useBookings(tripRef);
10027
+ const { listTripManifest } = chunkIU2UM5JP_cjs.useDirectories();
10028
+ const { statuses, loaded: capabilityLoaded } = chunkIU2UM5JP_cjs.useCapabilityStatuses(tripRef);
10029
10029
  const capability = statuses.get("files");
10030
10030
  const [state, setState] = react.useState({ kind: "loading" });
10031
10031
  const [purpose, setPurpose] = react.useState(null);
@@ -10724,7 +10724,7 @@ function ReceiptDialog({
10724
10724
  }) {
10725
10725
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
10726
10726
  const titleId = react.useId();
10727
- const files = chunkMNUCVVIE_cjs.useFiles({ tripRef });
10727
+ const files = chunk6TI6YQPE_cjs.useFiles({ tripRef });
10728
10728
  const [phase, setPhase] = react.useState({ kind: "loading" });
10729
10729
  const [imageBroke, setImageBroke] = react.useState(false);
10730
10730
  const readUrl = files.url;
@@ -10873,8 +10873,8 @@ function isCloseoutLocked2(error) {
10873
10873
  }
10874
10874
  function TripExpensesSection({ tripRef, style }) {
10875
10875
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
10876
- const expenses = chunkMNUCVVIE_cjs.useExpenses(tripRef);
10877
- const vendors = chunkMNUCVVIE_cjs.useVendors(tripRef, "");
10876
+ const expenses = chunk6TI6YQPE_cjs.useExpenses(tripRef);
10877
+ const vendors = chunk6TI6YQPE_cjs.useVendors(tripRef, "");
10878
10878
  const [category, setCategory] = react.useState(null);
10879
10879
  const [paymentMode, setPaymentMode] = react.useState(null);
10880
10880
  const [missingReceiptOnly, setMissingReceiptOnly] = react.useState(false);
@@ -11703,8 +11703,8 @@ function refusedBalanceOf(error) {
11703
11703
  }
11704
11704
  function TripFloatSection({ tripRef, style }) {
11705
11705
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
11706
- const float = chunkMNUCVVIE_cjs.useFloat(tripRef);
11707
- const managers = chunkMNUCVVIE_cjs.useManagers(tripRef);
11706
+ const float = chunk6TI6YQPE_cjs.useFloat(tripRef);
11707
+ const managers = chunk6TI6YQPE_cjs.useManagers(tripRef);
11708
11708
  const [openManagerId, setOpenManagerId] = react.useState(null);
11709
11709
  const [ledgers, setLedgers] = react.useState({});
11710
11710
  const [overlay, setOverlay] = react.useState({ kind: "none" });
@@ -12434,8 +12434,8 @@ function TripFormsSection({
12434
12434
  style
12435
12435
  }) {
12436
12436
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
12437
- const forms = chunkMNUCVVIE_cjs.useForms(tripRef);
12438
- const { listTripManifest } = chunkFVK7HMQ5_cjs.useDirectories();
12437
+ const forms = chunk6TI6YQPE_cjs.useForms(tripRef);
12438
+ const { listTripManifest } = chunkIU2UM5JP_cjs.useDirectories();
12439
12439
  const [openFormId, setOpenFormId] = react.useState(null);
12440
12440
  const [completion, setCompletion] = react.useState(void 0);
12441
12441
  const [manifest, setManifest] = react.useState(void 0);
@@ -13832,7 +13832,7 @@ function TripItinerarySection({
13832
13832
  style
13833
13833
  }) {
13834
13834
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
13835
- const itinerary = chunkMNUCVVIE_cjs.useItinerary(tripRef);
13835
+ const itinerary = chunk6TI6YQPE_cjs.useItinerary(tripRef);
13836
13836
  const [view, setView] = react.useState("days");
13837
13837
  const [activeIso, setActiveIso] = react.useState(null);
13838
13838
  const [overlay, setOverlay] = react.useState({ kind: "none" });
@@ -14186,7 +14186,7 @@ function AddTravellerDialog({
14186
14186
  }) {
14187
14187
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
14188
14188
  const titleId = react.useId();
14189
- const { makeTravellersFetch, addTraveller, createAgencyTraveller } = chunkFVK7HMQ5_cjs.useDirectories();
14189
+ const { makeTravellersFetch, addTraveller, createAgencyTraveller } = chunkIU2UM5JP_cjs.useDirectories();
14190
14190
  const [mode, setMode] = react.useState("search");
14191
14191
  const [term, setTerm] = react.useState("");
14192
14192
  const [debounced, setDebounced] = react.useState("");
@@ -14345,7 +14345,7 @@ function AddTravellerDialog({
14345
14345
  }
14346
14346
  function DirectoryResults({ fetch, disabled, onPick }) {
14347
14347
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
14348
- const { rows, hasNext, loadNext } = chunkFVK7HMQ5_cjs.usePaginatedList(fetch);
14348
+ const { rows, hasNext, loadNext } = chunkIU2UM5JP_cjs.usePaginatedList(fetch);
14349
14349
  if (rows.length === 0) {
14350
14350
  return /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-manifest-section__dialog-note", children: t("chrome.tripManifest.addNoMatches") });
14351
14351
  }
@@ -14424,7 +14424,7 @@ function EditPartyDialog({
14424
14424
  }) {
14425
14425
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
14426
14426
  const titleId = react.useId();
14427
- const { patchParty, deleteParty } = chunkFVK7HMQ5_cjs.useDirectories();
14427
+ const { patchParty, deleteParty } = chunkIU2UM5JP_cjs.useDirectories();
14428
14428
  const party = group.party;
14429
14429
  const [kind, setKind] = react.useState(
14430
14430
  party?.kind ?? "OTHER"
@@ -15100,7 +15100,7 @@ function ManifestResultsBody({
15100
15100
  onRetry
15101
15101
  }) {
15102
15102
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
15103
- const { makeManifestFetch, facets, groupedPageSize } = chunkFVK7HMQ5_cjs.useAgencyTripManifest(tripRef);
15103
+ const { makeManifestFetch, facets, groupedPageSize } = chunkIU2UM5JP_cjs.useAgencyTripManifest(tripRef);
15104
15104
  const [errorCode, setErrorCode] = react.useState(void 0);
15105
15105
  const [hasSettled, setHasSettled] = react.useState(false);
15106
15106
  const [serverTime, setServerTime] = react.useState(void 0);
@@ -15117,7 +15117,7 @@ function ManifestResultsBody({
15117
15117
  if (meta?.serverTime !== void 0) setServerTime(meta.serverTime);
15118
15118
  return page;
15119
15119
  } catch (error) {
15120
- setErrorCode(chunkMNUCVVIE_cjs.classifyError(error).code ?? "unknown");
15120
+ setErrorCode(chunk6TI6YQPE_cjs.classifyError(error).code ?? "unknown");
15121
15121
  return { rows: [], nextCursor: void 0 };
15122
15122
  } finally {
15123
15123
  setHasSettled(true);
@@ -15125,7 +15125,7 @@ function ManifestResultsBody({
15125
15125
  },
15126
15126
  [makeManifestFetch, filters, grouped, groupedPageSize]
15127
15127
  );
15128
- const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunkFVK7HMQ5_cjs.usePaginatedList(fetch);
15128
+ const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunkIU2UM5JP_cjs.usePaginatedList(fetch);
15129
15129
  react.useEffect(() => {
15130
15130
  onFacetsChange?.(facets);
15131
15131
  }, [onFacetsChange, facets]);
@@ -15296,7 +15296,7 @@ function RemoveTravellerDialog({
15296
15296
  onRemoved
15297
15297
  }) {
15298
15298
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
15299
- const { removeFromManifest } = chunkFVK7HMQ5_cjs.useDirectories();
15299
+ const { removeFromManifest } = chunkIU2UM5JP_cjs.useDirectories();
15300
15300
  const titleId = react.useId();
15301
15301
  const [pending, setPending] = react.useState(false);
15302
15302
  const [errorCode, setErrorCode] = react.useState(void 0);
@@ -15376,8 +15376,8 @@ function ShareLinkDialog({
15376
15376
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
15377
15377
  const titleId = react.useId();
15378
15378
  const isFamily = travellerRef === null;
15379
- const offerable = chunkFVK7HMQ5_cjs.familySafeSections(isFamily);
15380
- const { links, readFailed, mint, revoke, regenerate } = chunkFVK7HMQ5_cjs.useShareLinks(tripRef, travellerRef);
15379
+ const offerable = chunkIU2UM5JP_cjs.familySafeSections(isFamily);
15380
+ const { links, readFailed, mint, revoke, regenerate } = chunkIU2UM5JP_cjs.useShareLinks(tripRef, travellerRef);
15381
15381
  const [useAgencyDefault, setUseAgencyDefault] = react.useState(true);
15382
15382
  const [chosen, setChosen] = react.useState(/* @__PURE__ */ new Set());
15383
15383
  const [ttlDays, setTtlDays] = react.useState(null);
@@ -15686,9 +15686,9 @@ function TravellerDetailDialog({
15686
15686
  }) {
15687
15687
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
15688
15688
  const titleId = react.useId();
15689
- const { read, readFailed, refresh } = chunkMNUCVVIE_cjs.useTravellerProfile(tripRef, travellerRef);
15690
- const forms = chunkFVK7HMQ5_cjs.useTravellerFormResponses(tripRef, travellerRef);
15691
- const { addTravellerNote } = chunkFVK7HMQ5_cjs.useDirectories();
15689
+ const { read, readFailed, refresh } = chunk6TI6YQPE_cjs.useTravellerProfile(tripRef, travellerRef);
15690
+ const forms = chunkIU2UM5JP_cjs.useTravellerFormResponses(tripRef, travellerRef);
15691
+ const { addTravellerNote } = chunkIU2UM5JP_cjs.useDirectories();
15692
15692
  const [noteDraft, setNoteDraft] = react.useState("");
15693
15693
  const [notePending, setNotePending] = react.useState(false);
15694
15694
  const [noteFailed, setNoteFailed] = react.useState(false);
@@ -16547,8 +16547,8 @@ function TripPaymentsSection({
16547
16547
  style
16548
16548
  }) {
16549
16549
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
16550
- const collections = chunkMNUCVVIE_cjs.useCollections(tripRef);
16551
- const parties = chunkMNUCVVIE_cjs.useParties(tripRef);
16550
+ const collections = chunk6TI6YQPE_cjs.useCollections(tripRef);
16551
+ const parties = chunk6TI6YQPE_cjs.useParties(tripRef);
16552
16552
  const [overlay, setOverlay] = react.useState({ kind: "none" });
16553
16553
  const [pending, setPending] = react.useState(false);
16554
16554
  const [errorCode, setErrorCode] = react.useState(void 0);
@@ -17679,7 +17679,7 @@ function TripPickupsSection({
17679
17679
  style
17680
17680
  }) {
17681
17681
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
17682
- const pickups = chunkMNUCVVIE_cjs.usePickups(tripRef);
17682
+ const pickups = chunk6TI6YQPE_cjs.usePickups(tripRef);
17683
17683
  const [kind, setKind] = react.useState("PICKUP");
17684
17684
  const [view, setView] = react.useState("stops");
17685
17685
  const [overlay, setOverlay] = react.useState({ kind: "none" });
@@ -18157,7 +18157,7 @@ function AutoAssignDialog({
18157
18157
  /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-rooming-section__plan", children: [
18158
18158
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-rooming-section__plan-title", children: t("chrome.tripRooming.rulesTitle") }),
18159
18159
  /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "kf-trip-rooming-section__rule-list", children: preview.perRule.map((entry) => {
18160
- const severity = chunkMNUCVVIE_cjs.roomingHeuristicSeverity(entry.rule);
18160
+ const severity = chunk6TI6YQPE_cjs.roomingHeuristicSeverity(entry.rule);
18161
18161
  const relaxed = entry.outcome === "relaxed";
18162
18162
  const violation = relaxed && severity === "never";
18163
18163
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -18373,15 +18373,15 @@ function roomTypeLabelKey(roomType) {
18373
18373
  return ROOM_TYPE_LABEL_KEY[roomType] ?? "chrome.tripRooming.roomType.shared";
18374
18374
  }
18375
18375
  function toneAttrs(tone) {
18376
- const parsed = chunkMNUCVVIE_cjs.parseRoomingTone(tone);
18376
+ const parsed = chunk6TI6YQPE_cjs.parseRoomingTone(tone);
18377
18377
  if (parsed === void 0) {
18378
- return { family: chunkMNUCVVIE_cjs.TONE_FAMILIES.UNKNOWN, shade: 0 };
18378
+ return { family: chunk6TI6YQPE_cjs.TONE_FAMILIES.UNKNOWN, shade: 0 };
18379
18379
  }
18380
- const shade = parsed.shade < chunkMNUCVVIE_cjs.SHADES_PER_FAMILY ? parsed.shade : parsed.shade % chunkMNUCVVIE_cjs.SHADES_PER_FAMILY;
18380
+ const shade = parsed.shade < chunk6TI6YQPE_cjs.SHADES_PER_FAMILY ? parsed.shade : parsed.shade % chunk6TI6YQPE_cjs.SHADES_PER_FAMILY;
18381
18381
  return { family: parsed.family, shade };
18382
18382
  }
18383
18383
  function glyphOf(occupant) {
18384
- return occupant.glyph === "" ? chunkMNUCVVIE_cjs.FALLBACK_GLYPH : occupant.glyph;
18384
+ return occupant.glyph === "" ? chunk6TI6YQPE_cjs.FALLBACK_GLYPH : occupant.glyph;
18385
18385
  }
18386
18386
  function TravellerGlyph({
18387
18387
  occupant,
@@ -19155,7 +19155,7 @@ function TripRoomingSection({
19155
19155
  style
19156
19156
  }) {
19157
19157
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
19158
- const rooming = chunkMNUCVVIE_cjs.useRooming(tripRef);
19158
+ const rooming = chunk6TI6YQPE_cjs.useRooming(tripRef);
19159
19159
  const [openWindowId, setOpenWindowId] = react.useState(null);
19160
19160
  const [overlay, setOverlay] = react.useState({ kind: "none" });
19161
19161
  const [pending, setPending] = react.useState(false);
@@ -20065,10 +20065,10 @@ function serverBlockOf(error) {
20065
20065
  }
20066
20066
  function TripSuppliersSection({ tripRef, style }) {
20067
20067
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
20068
- const vendors = chunkMNUCVVIE_cjs.useVendors(tripRef, "");
20069
- const seating = chunkMNUCVVIE_cjs.useSeating(tripRef);
20070
- const itinerary = chunkMNUCVVIE_cjs.useItinerary(tripRef);
20071
- const expenses = chunkMNUCVVIE_cjs.useExpenses(tripRef);
20068
+ const vendors = chunk6TI6YQPE_cjs.useVendors(tripRef, "");
20069
+ const seating = chunk6TI6YQPE_cjs.useSeating(tripRef);
20070
+ const itinerary = chunk6TI6YQPE_cjs.useItinerary(tripRef);
20071
+ const expenses = chunk6TI6YQPE_cjs.useExpenses(tripRef);
20072
20072
  const [category, setCategory] = react.useState(null);
20073
20073
  const [query, setQuery] = react.useState("");
20074
20074
  const [sortKey, setSortKey] = react.useState("name");
@@ -21593,8 +21593,8 @@ function TripVehiclesSection({
21593
21593
  style
21594
21594
  }) {
21595
21595
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
21596
- const seating = chunkMNUCVVIE_cjs.useSeating(tripRef);
21597
- const managers = chunkMNUCVVIE_cjs.useManagers(tripRef);
21596
+ const seating = chunk6TI6YQPE_cjs.useSeating(tripRef);
21597
+ const managers = chunk6TI6YQPE_cjs.useManagers(tripRef);
21598
21598
  const [openVehicleId, setOpenVehicleId] = react.useState(null);
21599
21599
  const [day, setDay] = react.useState(null);
21600
21600
  const [overlay, setOverlay] = react.useState({ kind: "none" });
@@ -22021,7 +22021,7 @@ function WarningIcon13(props) {
22021
22021
 
22022
22022
  // src/admin/composite/office/TripWorkspace/internal/panels/deriveCloseout.ts
22023
22023
  function tabForBlocker(row) {
22024
- return chunkFVK7HMQ5_cjs.resolveBlockerDeepLink({ actionKey: row.actionKey })?.tab;
22024
+ return chunkIU2UM5JP_cjs.resolveBlockerDeepLink({ actionKey: row.actionKey })?.tab;
22025
22025
  }
22026
22026
  function orderedBlockers(rows) {
22027
22027
  return [...rows].sort((a, b) => {
@@ -22062,7 +22062,7 @@ function codeOf11(error) {
22062
22062
  }
22063
22063
  function CloseoutCard({ tripRef, onOpenTab, litTabs }) {
22064
22064
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
22065
- const closeout = chunkMNUCVVIE_cjs.useCloseout(tripRef);
22065
+ const closeout = chunk6TI6YQPE_cjs.useCloseout(tripRef);
22066
22066
  const [note, setNote] = react.useState(null);
22067
22067
  const [pending, setPending] = react.useState(void 0);
22068
22068
  const [errorCode, setErrorCode] = react.useState(void 0);
@@ -22402,7 +22402,7 @@ var ROLE_LABEL_KEY = {
22402
22402
  };
22403
22403
  function OverviewManagersCard({ trip, onChanged }) {
22404
22404
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
22405
- const { promoteManager, assignManager, unassignManager, makeManagersFetch } = chunkFVK7HMQ5_cjs.useDirectories();
22405
+ const { promoteManager, assignManager, unassignManager, makeManagersFetch } = chunkIU2UM5JP_cjs.useDirectories();
22406
22406
  const [pendingId, setPendingId] = react.useState(void 0);
22407
22407
  const [errorCode, setErrorCode] = react.useState(void 0);
22408
22408
  const [assignOpen, setAssignOpen] = react.useState(false);
@@ -22564,12 +22564,12 @@ function TripOverviewPanel({
22564
22564
  onTripChanged
22565
22565
  }) {
22566
22566
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
22567
- const today = chunkMNUCVVIE_cjs.useManagerToday(trip.ref);
22568
- const expenses = chunkMNUCVVIE_cjs.useExpenses(trip.ref);
22567
+ const today = chunk6TI6YQPE_cjs.useManagerToday(trip.ref);
22568
+ const expenses = chunk6TI6YQPE_cjs.useExpenses(trip.ref);
22569
22569
  const spendTotalMinor = expenses.status === "ready" && expenses.totals.loaded && !expenses.totals.lastFetchFailed ? expenses.totals.spendTotalMinor : void 0;
22570
22570
  const finance = deriveFinance(trip, spendTotalMinor);
22571
22571
  const quickActions = QUICK_ACTION_TABS.filter((key) => litTabs.has(key));
22572
- const closeoutProbe = chunkMNUCVVIE_cjs.useCloseout(trip.ref);
22572
+ const closeoutProbe = chunk6TI6YQPE_cjs.useCloseout(trip.ref);
22573
22573
  const closeoutStage = closeoutProbe.status === "ready" && hasReturned(closeoutProbe.aggregate) ? closeoutProbe.aggregate?.stage ?? null : null;
22574
22574
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__overview", children: [
22575
22575
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__overview-main", children: [
@@ -23005,7 +23005,7 @@ function TripWorkspace({
23005
23005
  style
23006
23006
  }) {
23007
23007
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
23008
- const { read, readFailed, refresh } = chunkFVK7HMQ5_cjs.useAgencyTrip(tripRef);
23008
+ const { read, readFailed, refresh } = chunkIU2UM5JP_cjs.useAgencyTrip(tripRef);
23009
23009
  if (readFailed) {
23010
23010
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-workspace", style: chunkUALMCHNW_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__status-block", role: "alert", children: [
23011
23011
  /* @__PURE__ */ jsxRuntime.jsx(WarningIcon13, { className: "kf-trip-workspace__status-icon" }),
@@ -23051,7 +23051,7 @@ function TripWorkspaceBody({
23051
23051
  components,
23052
23052
  style
23053
23053
  }) {
23054
- const { statuses, loaded } = chunkFVK7HMQ5_cjs.useCapabilityStatuses(tripRef);
23054
+ const { statuses, loaded } = chunkIU2UM5JP_cjs.useCapabilityStatuses(tripRef);
23055
23055
  const Head = components?.TripWorkspaceHead ?? TripWorkspaceHead;
23056
23056
  const tabs = react.useMemo(() => resolveTripTabs(trip.eventType, statuses), [trip.eventType, statuses]);
23057
23057
  const [requestedTab, setRequestedTab] = react.useState(initialTab ?? "overview");
@@ -23462,7 +23462,7 @@ function ReadyKaafilAgencyWorkspace(props) {
23462
23462
  style
23463
23463
  } = props;
23464
23464
  const { t } = chunkUALMCHNW_cjs.useKaafilChrome();
23465
- const agencyAdminMe = chunkFVK7HMQ5_cjs.useAgencyAdminMe();
23465
+ const agencyAdminMe = chunkIU2UM5JP_cjs.useAgencyAdminMe();
23466
23466
  const [internalPane, setInternalPane] = react.useState(
23467
23467
  initialPane ?? "trips"
23468
23468
  );
@@ -1,5 +1,5 @@
1
- import { useAgencySettings, useAgencyChecklistTemplates, useAgencyForms, useAgencyManagerProfile, useAgencyJourneyTriggers, useBookings, useDirectories, useCapabilityStatuses, useAgencyTrip, useAgencyAdminMe, useTravellerFormResponses, familySafeSections, useShareLinks, usePaginatedList, useAgencyTrips, useAgencyTripManifest, resolveBlockerDeepLink } from '../chunk-YTSYRLGS.js';
2
- import { useChecklists, useFiles, useExpenses, useVendors, useFloat, useManagers, useForms, useItinerary, useCollections, useParties, usePickups, useRooming, useSeating, classifyError, useTravellerProfile, roomingHeuristicSeverity, useManagerToday, useCloseout, parseRoomingTone, TONE_FAMILIES, SHADES_PER_FAMILY, FALLBACK_GLYPH } from '../chunk-WTTGPWMR.js';
1
+ import { useAgencySettings, useAgencyChecklistTemplates, useAgencyForms, useAgencyManagerProfile, useAgencyJourneyTriggers, useBookings, useDirectories, useCapabilityStatuses, useAgencyTrip, useAgencyAdminMe, useTravellerFormResponses, familySafeSections, useShareLinks, usePaginatedList, useAgencyTrips, useAgencyTripManifest, resolveBlockerDeepLink } from '../chunk-RO2RNHQP.js';
2
+ import { useChecklists, useFiles, useExpenses, useVendors, useFloat, useManagers, useForms, useItinerary, useCollections, useParties, usePickups, useRooming, useSeating, classifyError, useTravellerProfile, roomingHeuristicSeverity, useManagerToday, useCloseout, parseRoomingTone, TONE_FAMILIES, SHADES_PER_FAMILY, FALLBACK_GLYPH } from '../chunk-JHMN6Q5R.js';
3
3
  import '../chunk-VLP323AD.js';
4
4
  export { BootErrorScreen, LockedTripScreen, NotFoundScreen, OfflineFallbackScreen, PlanLockedScreen, SessionExpiredScreen } from '../chunk-GJ2J3PYN.js';
5
5
  import { createRegistry, useKaafilChrome, tokenStyle, useSession, useKaafilClient } from '../chunk-A4Z2YBEF.js';