kaafil-react-uikit 0.4.1 → 0.5.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 (57) hide show
  1. package/CHANGELOG.md +44 -5
  2. package/dist/admin/index.cjs +355 -353
  3. package/dist/admin/index.cjs.map +1 -1
  4. package/dist/admin/index.js +16 -14
  5. package/dist/admin/index.js.map +1 -1
  6. package/dist/{chunk-EP4VCID7.js → chunk-3E2FN5JJ.js} +3 -3
  7. package/dist/{chunk-EP4VCID7.js.map → chunk-3E2FN5JJ.js.map} +1 -1
  8. package/dist/{chunk-TPBKRXEB.cjs → chunk-3RZDHDEY.cjs} +17 -17
  9. package/dist/{chunk-TPBKRXEB.cjs.map → chunk-3RZDHDEY.cjs.map} +1 -1
  10. package/dist/chunk-62HCQWZL.cjs +12 -0
  11. package/dist/chunk-62HCQWZL.cjs.map +1 -0
  12. package/dist/{chunk-ABWNV4N4.js → chunk-6FUVFVYY.js} +97 -4
  13. package/dist/chunk-6FUVFVYY.js.map +1 -0
  14. package/dist/{chunk-BUE2GJDN.js → chunk-762SWUEG.js} +3 -3
  15. package/dist/{chunk-BUE2GJDN.js.map → chunk-762SWUEG.js.map} +1 -1
  16. package/dist/{chunk-CCJ5XNWY.cjs → chunk-CK3L6Y43.cjs} +98 -2
  17. package/dist/chunk-CK3L6Y43.cjs.map +1 -0
  18. package/dist/{chunk-XBYLSJOS.cjs → chunk-DI77H7ED.cjs} +83 -83
  19. package/dist/{chunk-XBYLSJOS.cjs.map → chunk-DI77H7ED.cjs.map} +1 -1
  20. package/dist/{chunk-5DVTAEQC.js → chunk-EDLIJSMR.js} +5 -5
  21. package/dist/{chunk-5DVTAEQC.js.map → chunk-EDLIJSMR.js.map} +1 -1
  22. package/dist/{chunk-VAJ4D7EF.js → chunk-FEJL6GKJ.js} +513 -20
  23. package/dist/chunk-FEJL6GKJ.js.map +1 -0
  24. package/dist/{chunk-2D4Y4LOT.cjs → chunk-IBVCH6GC.cjs} +553 -51
  25. package/dist/chunk-IBVCH6GC.cjs.map +1 -0
  26. package/dist/{chunk-DABF4PUI.js → chunk-ITGVRN2S.js} +3 -3
  27. package/dist/{chunk-DABF4PUI.js.map → chunk-ITGVRN2S.js.map} +1 -1
  28. package/dist/{chunk-DUZG6A22.cjs → chunk-LO3GQFQ6.cjs} +4 -4
  29. package/dist/{chunk-DUZG6A22.cjs.map → chunk-LO3GQFQ6.cjs.map} +1 -1
  30. package/dist/{chunk-4LZXDRAD.cjs → chunk-QD4Z5DRT.cjs} +12 -12
  31. package/dist/{chunk-4LZXDRAD.cjs.map → chunk-QD4Z5DRT.cjs.map} +1 -1
  32. package/dist/{chunk-TV5QTT44.js → chunk-RW6TJMRK.js} +3 -3
  33. package/dist/{chunk-TV5QTT44.js.map → chunk-RW6TJMRK.js.map} +1 -1
  34. package/dist/chunk-XU7GP53M.js +10 -0
  35. package/dist/chunk-XU7GP53M.js.map +1 -0
  36. package/dist/{chunk-DDSNXKFN.cjs → chunk-XYIOM75D.cjs} +9 -9
  37. package/dist/{chunk-DDSNXKFN.cjs.map → chunk-XYIOM75D.cjs.map} +1 -1
  38. package/dist/core/index.cjs +153 -613
  39. package/dist/core/index.cjs.map +1 -1
  40. package/dist/core/index.d.cts +36 -1
  41. package/dist/core/index.d.ts +36 -1
  42. package/dist/core/index.js +21 -511
  43. package/dist/core/index.js.map +1 -1
  44. package/dist/index.css +1 -1
  45. package/dist/manager/index.cjs +239 -239
  46. package/dist/manager/index.js +6 -6
  47. package/dist/traveller/index.cjs +35 -35
  48. package/dist/traveller/index.js +5 -5
  49. package/package.json +2 -2
  50. package/dist/chunk-2D4Y4LOT.cjs.map +0 -1
  51. package/dist/chunk-2JABR4FF.js +0 -105
  52. package/dist/chunk-2JABR4FF.js.map +0 -1
  53. package/dist/chunk-ABWNV4N4.js.map +0 -1
  54. package/dist/chunk-CCJ5XNWY.cjs.map +0 -1
  55. package/dist/chunk-KDGBJPPZ.cjs +0 -110
  56. package/dist/chunk-KDGBJPPZ.cjs.map +0 -1
  57. package/dist/chunk-VAJ4D7EF.js.map +0 -1
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunk2D4Y4LOT_cjs = require('../chunk-2D4Y4LOT.cjs');
4
- var chunkXBYLSJOS_cjs = require('../chunk-XBYLSJOS.cjs');
5
- require('../chunk-DUZG6A22.cjs');
6
- var chunk4LZXDRAD_cjs = require('../chunk-4LZXDRAD.cjs');
7
- var chunkCCJ5XNWY_cjs = require('../chunk-CCJ5XNWY.cjs');
3
+ var chunkIBVCH6GC_cjs = require('../chunk-IBVCH6GC.cjs');
4
+ var chunkDI77H7ED_cjs = require('../chunk-DI77H7ED.cjs');
5
+ require('../chunk-LO3GQFQ6.cjs');
6
+ var chunkQD4Z5DRT_cjs = require('../chunk-QD4Z5DRT.cjs');
7
+ var chunkCK3L6Y43_cjs = require('../chunk-CK3L6Y43.cjs');
8
8
  var react = require('react');
9
9
  var jsxRuntime = require('react/jsx-runtime');
10
10
 
@@ -109,13 +109,13 @@ function CloseIcon(props) {
109
109
  );
110
110
  }
111
111
  function StatusPill({ tone, children, style }) {
112
- return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "kf-admin-shared-patterns-pill", "data-tone": tone, style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
112
+ return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "kf-admin-shared-patterns-pill", "data-tone": tone, style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
113
113
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-admin-shared-patterns-pill-dot", "aria-hidden": "true" }),
114
114
  children
115
115
  ] });
116
116
  }
117
117
  function Tag({ tone, children, style }) {
118
- return /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-admin-shared-patterns-tag", "data-tone": tone, style: chunkCCJ5XNWY_cjs.tokenStyle(style), children });
118
+ return /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-admin-shared-patterns-tag", "data-tone": tone, style: chunkCK3L6Y43_cjs.tokenStyle(style), children });
119
119
  }
120
120
 
121
121
  // src/admin/composite/office/AgencySettingsScreen/internal/fieldDisplayValue.ts
@@ -183,7 +183,7 @@ function SheetDialog({
183
183
  role: "dialog",
184
184
  "aria-modal": "true",
185
185
  "aria-labelledby": titleId,
186
- style: chunkCCJ5XNWY_cjs.tokenStyle(style),
186
+ style: chunkCK3L6Y43_cjs.tokenStyle(style),
187
187
  children: [
188
188
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-admin-shared-patterns-sheet-header", children: [
189
189
  eyebrow === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-admin-shared-patterns-sheet-eyebrow", children: eyebrow }),
@@ -479,7 +479,7 @@ function TriStateToggle({ entry, onChange, t }) {
479
479
  function NoRender() {
480
480
  return null;
481
481
  }
482
- var fieldKindRegistry = chunkCCJ5XNWY_cjs.createRegistry({
482
+ var fieldKindRegistry = chunkCK3L6Y43_cjs.createRegistry({
483
483
  fallback: { render: NoRender }
484
484
  });
485
485
  fieldKindRegistry.register("toggle", {
@@ -629,11 +629,11 @@ function SectionCard({
629
629
  onDismissError,
630
630
  style
631
631
  }) {
632
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
632
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
633
633
  const [dialogOpen, setDialogOpen] = react.useState(false);
634
634
  const setFields = section.fields.filter((field) => stored?.[field.key] !== void 0);
635
635
  const isCustomized = setFields.length > 0;
636
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-agency-settings-screen__panel-inner", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
636
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-agency-settings-screen__panel-inner", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
637
637
  /* @__PURE__ */ jsxRuntime.jsxs("header", { className: "kf-agency-settings-screen__panel-head", children: [
638
638
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-agency-settings-screen__panel-head-copy", children: [
639
639
  /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "kf-agency-settings-screen__panel-eyebrow", children: [
@@ -1005,8 +1005,8 @@ function AgencySettingsScreen({
1005
1005
  components,
1006
1006
  style
1007
1007
  }) {
1008
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
1009
- const { document: document2, loaded, lastFetchFailed, refresh, patchSettings } = chunk2D4Y4LOT_cjs.useAgencySettings();
1008
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
1009
+ const { document: document2, loaded, lastFetchFailed, refresh, patchSettings } = chunkIBVCH6GC_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,13 +1023,13 @@ function AgencySettingsScreen({
1023
1023
  try {
1024
1024
  await patchSettings({ version: document2.version, [sectionId]: patch });
1025
1025
  } catch (error) {
1026
- const kind = chunkXBYLSJOS_cjs.classifyError(error).code === "CONFLICT_VERSION" ? "conflict" : "failed";
1026
+ const kind = chunkDI77H7ED_cjs.classifyError(error).code === "CONFLICT_VERSION" ? "conflict" : "failed";
1027
1027
  setSectionError({ sectionId, kind });
1028
1028
  } finally {
1029
1029
  setSavingSectionId(void 0);
1030
1030
  }
1031
1031
  }
1032
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-agency-settings-screen", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
1032
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-agency-settings-screen", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
1033
1033
  title !== void 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-agency-settings-screen__heading", children: [
1034
1034
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-agency-settings-screen__eyebrow", children: t("chrome.agencySettingsScreen.eyebrow") }),
1035
1035
  /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "kf-agency-settings-screen__title", children: title }),
@@ -1146,7 +1146,7 @@ function summaryFor(t, selected, everyLabelKey, optionLabelKey) {
1146
1146
  return selected.length === 0 ? t(everyLabelKey) : selected.map(optionLabelKey).join(", ");
1147
1147
  }
1148
1148
  function AutoAttachPanel({ template, saving, onSave }) {
1149
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
1149
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
1150
1150
  const titleId = react.useId();
1151
1151
  const [dialogOpen, setDialogOpen] = react.useState(false);
1152
1152
  const [draft, setDraft] = react.useState(() => draftFromTemplate(template));
@@ -1382,9 +1382,9 @@ function TemplateEditorHeader({
1382
1382
  onPublish,
1383
1383
  style
1384
1384
  }) {
1385
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
1385
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
1386
1386
  const statusLabelKey5 = template.status === "PUBLISHED" ? "chrome.checklistTemplateEditor.status.published" : "chrome.checklistTemplateEditor.status.draft";
1387
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-checklist-template-editor__header", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
1387
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-checklist-template-editor__header", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
1388
1388
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-checklist-template-editor__header-identity", children: [
1389
1389
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-checklist-template-editor__header-top", children: [
1390
1390
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -1453,7 +1453,7 @@ function TemplateItemEditDialog({
1453
1453
  onRemove,
1454
1454
  onClose
1455
1455
  }) {
1456
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
1456
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
1457
1457
  const titleId = react.useId();
1458
1458
  return /* @__PURE__ */ jsxRuntime.jsxs(
1459
1459
  SheetDialog,
@@ -1603,7 +1603,7 @@ function TemplateItemRow({
1603
1603
  onReorder,
1604
1604
  style
1605
1605
  }) {
1606
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
1606
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
1607
1607
  const dayOffset = item.dayOffset.trim().length > 0 ? Number.parseInt(item.dayOffset, 10) : null;
1608
1608
  const dayLabel = dayOffset === null ? "\u2014" : dayOffset > 0 ? `D+${dayOffset}` : `D${dayOffset}`;
1609
1609
  return (
@@ -1631,7 +1631,7 @@ function TemplateItemRow({
1631
1631
  onReorder(draggedDraftId, item.draftId);
1632
1632
  }
1633
1633
  },
1634
- style: chunkCCJ5XNWY_cjs.tokenStyle(style),
1634
+ style: chunkCK3L6Y43_cjs.tokenStyle(style),
1635
1635
  children: [
1636
1636
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-checklist-template-editor__item-drag", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(DragHandleIcon, {}) }),
1637
1637
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-checklist-template-editor__item-index", children: String(index + 1).padStart(2, "0") }),
@@ -1703,8 +1703,8 @@ function ChecklistTemplateEditor({
1703
1703
  components,
1704
1704
  style
1705
1705
  }) {
1706
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
1707
- const { templates, loaded, lastFetchFailed, refresh, patchTemplate, publishTemplate } = chunk2D4Y4LOT_cjs.useAgencyChecklistTemplates();
1706
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
1707
+ const { templates, loaded, lastFetchFailed, refresh, patchTemplate, publishTemplate } = chunkIBVCH6GC_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([]);
@@ -1821,7 +1821,7 @@ function ChecklistTemplateEditor({
1821
1821
  }
1822
1822
  };
1823
1823
  if (lastFetchFailed && !loaded) {
1824
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-checklist-template-editor", "data-framed": "true", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-checklist-template-editor__status-block", role: "alert", children: [
1824
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-checklist-template-editor", "data-framed": "true", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-checklist-template-editor__status-block", role: "alert", children: [
1825
1825
  /* @__PURE__ */ jsxRuntime.jsx(WarningIcon2, { className: "kf-checklist-template-editor__status-icon kf-checklist-template-editor__status-icon--danger" }),
1826
1826
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-checklist-template-editor__status-title", children: t("chrome.checklistTemplateEditor.errorTitle") }),
1827
1827
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -1836,20 +1836,20 @@ function ChecklistTemplateEditor({
1836
1836
  ] }) });
1837
1837
  }
1838
1838
  if (!loaded) {
1839
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-checklist-template-editor", "data-framed": "true", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-checklist-template-editor__skeleton", "aria-hidden": "true", children: [
1839
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-checklist-template-editor", "data-framed": "true", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-checklist-template-editor__skeleton", "aria-hidden": "true", children: [
1840
1840
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-checklist-template-editor__skeleton-block" }),
1841
1841
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-checklist-template-editor__skeleton-block" }),
1842
1842
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-checklist-template-editor__skeleton-block" })
1843
1843
  ] }) });
1844
1844
  }
1845
1845
  if (template === void 0) {
1846
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-checklist-template-editor", "data-framed": "true", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-checklist-template-editor__status-block", children: [
1846
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-checklist-template-editor", "data-framed": "true", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-checklist-template-editor__status-block", children: [
1847
1847
  /* @__PURE__ */ jsxRuntime.jsx(EmptyStateIcon2, { className: "kf-checklist-template-editor__status-icon" }),
1848
1848
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-checklist-template-editor__status-title", children: t("chrome.checklistTemplateEditor.notFoundTitle") })
1849
1849
  ] }) });
1850
1850
  }
1851
1851
  const editingItem = items.find((item) => item.draftId === editingDraftId);
1852
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-checklist-template-editor", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
1852
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-checklist-template-editor", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
1853
1853
  /* @__PURE__ */ jsxRuntime.jsx(
1854
1854
  TemplateEditorHeader2,
1855
1855
  {
@@ -1952,7 +1952,7 @@ var AUDIENCE_HINT_KEY = {
1952
1952
  EXTERNAL: "chrome.checklistTemplateLibrary.audience.externalHint"
1953
1953
  };
1954
1954
  function CreateTemplateSheet({ onSubmit, onClose }) {
1955
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
1955
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
1956
1956
  const titleId = react.useId();
1957
1957
  const [locale, setLocale] = react.useState("en");
1958
1958
  const [title, setTitle] = react.useState("");
@@ -2069,7 +2069,7 @@ function DeleteTemplateConfirmSheet({
2069
2069
  onConfirm,
2070
2070
  onClose
2071
2071
  }) {
2072
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
2072
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
2073
2073
  const titleId = react.useId();
2074
2074
  if (template === void 0) {
2075
2075
  return null;
@@ -2188,7 +2188,7 @@ function TemplateRow({
2188
2188
  onDelete,
2189
2189
  style
2190
2190
  }) {
2191
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
2191
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
2192
2192
  const statusLabelKey5 = template.status === "PUBLISHED" ? "chrome.checklistTemplateLibrary.status.published" : "chrome.checklistTemplateLibrary.status.draft";
2193
2193
  return /* @__PURE__ */ jsxRuntime.jsxs(
2194
2194
  "tr",
@@ -2197,7 +2197,7 @@ function TemplateRow({
2197
2197
  className: "kf-checklist-template-library__table-row",
2198
2198
  "data-selectable": onSelect !== void 0 ? "true" : void 0,
2199
2199
  "data-selected": selected === true ? "true" : void 0,
2200
- style: chunkCCJ5XNWY_cjs.tokenStyle(style),
2200
+ style: chunkCK3L6Y43_cjs.tokenStyle(style),
2201
2201
  children: [
2202
2202
  /* @__PURE__ */ jsxRuntime.jsx(
2203
2203
  "td",
@@ -2287,7 +2287,7 @@ function TemplateLibrarySkeleton() {
2287
2287
  ] }, rowIndex)) }) }) });
2288
2288
  }
2289
2289
  function CardHeading({ count }) {
2290
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
2290
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
2291
2291
  return /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-checklist-template-library__card-title", children: t(
2292
2292
  count === 1 ? "chrome.checklistTemplateLibrary.countLabelOne" : "chrome.checklistTemplateLibrary.countLabel"
2293
2293
  ).replace("{count}", String(count)) });
@@ -2303,8 +2303,8 @@ function ChecklistTemplateLibrary({
2303
2303
  components,
2304
2304
  style
2305
2305
  }) {
2306
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
2307
- const { templates, loaded, lastFetchFailed, refresh, createTemplate, removeTemplate } = chunk2D4Y4LOT_cjs.useAgencyChecklistTemplates();
2306
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
2307
+ const { templates, loaded, lastFetchFailed, refresh, createTemplate, removeTemplate } = chunkIBVCH6GC_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;
@@ -2340,7 +2340,7 @@ function ChecklistTemplateLibrary({
2340
2340
  ]
2341
2341
  }
2342
2342
  );
2343
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-checklist-template-library", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
2343
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-checklist-template-library", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
2344
2344
  title !== void 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-checklist-template-library__heading", children: [
2345
2345
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-checklist-template-library__heading-copy", children: [
2346
2346
  /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "kf-checklist-template-library__title", children: title }),
@@ -2635,8 +2635,8 @@ function BuilderHeader({
2635
2635
  pending,
2636
2636
  style
2637
2637
  }) {
2638
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
2639
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-form-builder__header", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
2638
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
2639
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-form-builder__header", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
2640
2640
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-form-builder__header-identity", children: [
2641
2641
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-form-builder__header-top", children: [
2642
2642
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -2832,7 +2832,7 @@ var fallback = {
2832
2832
  preview: ({ field }) => /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-form-builder__preview-unsupported", children: field.label }),
2833
2833
  configFields: NoConfigFields
2834
2834
  };
2835
- var fieldRegistry = chunkCCJ5XNWY_cjs.createRegistry({ fallback });
2835
+ var fieldRegistry = chunkCK3L6Y43_cjs.createRegistry({ fallback });
2836
2836
  fieldRegistry.register("HEADING", {
2837
2837
  preview: ({ field }) => /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-form-builder__preview-heading", children: field.label }),
2838
2838
  configFields: NoConfigFields
@@ -3304,7 +3304,7 @@ fieldRegistry.register("ADDRESS", {
3304
3304
  }
3305
3305
  });
3306
3306
  function FieldEditDialog(props) {
3307
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
3307
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
3308
3308
  const titleId = react.useId();
3309
3309
  const { bindings, saving, onClose } = props;
3310
3310
  const isEdit = props.mode === "edit";
@@ -3541,7 +3541,7 @@ function FieldEditDialog(props) {
3541
3541
  );
3542
3542
  }
3543
3543
  function LivePreviewPane({ title, sections, fields }) {
3544
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
3544
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
3545
3545
  const [frame, setFrame] = react.useState("desktop");
3546
3546
  const [answers, setAnswers] = react.useState({});
3547
3547
  function setAnswer(fieldId, value) {
@@ -3630,7 +3630,7 @@ function FieldRow({
3630
3630
  onDragEnd,
3631
3631
  style
3632
3632
  }) {
3633
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
3633
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
3634
3634
  const hasHelp = field.helpText !== null && field.helpText.length > 0;
3635
3635
  return /* @__PURE__ */ jsxRuntime.jsxs(
3636
3636
  "li",
@@ -3638,7 +3638,7 @@ function FieldRow({
3638
3638
  className: "kf-form-builder__field-row",
3639
3639
  "data-dragging": dragging ? "true" : void 0,
3640
3640
  "data-drag-over": dragOver ? "true" : void 0,
3641
- style: chunkCCJ5XNWY_cjs.tokenStyle(style),
3641
+ style: chunkCK3L6Y43_cjs.tokenStyle(style),
3642
3642
  onDragOver: (event) => {
3643
3643
  event.preventDefault();
3644
3644
  onDragOverRow();
@@ -3700,7 +3700,7 @@ function SectionBlock({
3700
3700
  onOpenField,
3701
3701
  onReorderField
3702
3702
  }) {
3703
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
3703
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
3704
3704
  const [title, setTitle] = react.useState(section.title ?? "");
3705
3705
  const [draggedFieldId, setDraggedFieldId] = react.useState(void 0);
3706
3706
  const [dragOverFieldId, setDragOverFieldId] = react.useState(void 0);
@@ -3834,7 +3834,7 @@ function draftFromForm(form) {
3834
3834
  };
3835
3835
  }
3836
3836
  function TargetingSummary({ form }) {
3837
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
3837
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
3838
3838
  const anchorLabel = (anchor) => t(`chrome.formBuilder.summary.anchor.${anchor}`);
3839
3839
  const eventTypes = form.appliesToEventTypes.length === 0 ? t("chrome.formBuilder.summary.everyEventType") : form.appliesToEventTypes.map((type) => t(`chrome.formBuilder.targeting.eventType.${type}`)).join(" \xB7 ");
3840
3840
  const tripModes = form.appliesToTripModes.length === 0 ? t("chrome.formBuilder.summary.everyTripMode") : form.appliesToTripModes.map((mode) => t(`chrome.formBuilder.targeting.tripMode.${mode}`)).join(" \xB7 ");
@@ -3895,7 +3895,7 @@ function TargetingSummary({ form }) {
3895
3895
  ] }, cell.key)) });
3896
3896
  }
3897
3897
  function TargetingPanel({ form, saving, onSave }) {
3898
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
3898
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
3899
3899
  const [editing, setEditing] = react.useState(false);
3900
3900
  const [submitted, setSubmitted] = react.useState(false);
3901
3901
  const [draft, setDraft] = react.useState(() => draftFromForm(form));
@@ -4191,7 +4191,7 @@ function buildReorderSections(sections, fieldsBySection) {
4191
4191
  }));
4192
4192
  }
4193
4193
  function FormBuilder({ formId, onBack, components, style }) {
4194
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
4194
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
4195
4195
  const {
4196
4196
  getForm,
4197
4197
  patchForm,
@@ -4209,7 +4209,7 @@ function FormBuilder({ formId, onBack, components, style }) {
4209
4209
  deleteField,
4210
4210
  reorderForm,
4211
4211
  listBindings
4212
- } = chunk2D4Y4LOT_cjs.useAgencyForms();
4212
+ } = chunkIBVCH6GC_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([]);
@@ -4420,7 +4420,7 @@ function FormBuilder({ formId, onBack, components, style }) {
4420
4420
  }
4421
4421
  }
4422
4422
  if (loadFailed && form === void 0) {
4423
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-form-builder", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-form-builder__status-block", role: "alert", children: [
4423
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-form-builder", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-form-builder__status-block", role: "alert", children: [
4424
4424
  /* @__PURE__ */ jsxRuntime.jsx(WarningIcon4, { className: "kf-form-builder__status-icon kf-form-builder__status-icon--danger" }),
4425
4425
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-form-builder__status-title", children: t("chrome.formBuilder.errorTitle") }),
4426
4426
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -4435,13 +4435,13 @@ function FormBuilder({ formId, onBack, components, style }) {
4435
4435
  ] }) });
4436
4436
  }
4437
4437
  if (form === void 0) {
4438
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-form-builder", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-form-builder__skeleton", "aria-hidden": "true", children: [
4438
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-form-builder", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-form-builder__skeleton", "aria-hidden": "true", children: [
4439
4439
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-form-builder__skeleton-block" }),
4440
4440
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-form-builder__skeleton-block" }),
4441
4441
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-form-builder__skeleton-block" })
4442
4442
  ] }) });
4443
4443
  }
4444
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-form-builder", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
4444
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-form-builder", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
4445
4445
  onBack !== void 0 ? /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", onClick: onBack, className: "kf-form-builder__back-link", children: [
4446
4446
  /* @__PURE__ */ jsxRuntime.jsx(BackIcon, {}),
4447
4447
  t("chrome.formBuilder.backToLibrary")
@@ -4595,7 +4595,7 @@ var AUDIENCE_LABEL_KEY2 = {
4595
4595
  MANAGER: "chrome.formsLibrary.audience.manager"
4596
4596
  };
4597
4597
  function CreateFormSheet({ onSubmit, onClose }) {
4598
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
4598
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
4599
4599
  const titleId = react.useId();
4600
4600
  const [locale, setLocale] = react.useState("en");
4601
4601
  const [title, setTitle] = react.useState("");
@@ -4623,7 +4623,7 @@ function CreateFormSheet({ onSubmit, onClose }) {
4623
4623
  });
4624
4624
  onClose();
4625
4625
  } catch (error) {
4626
- setErrorCode(chunkXBYLSJOS_cjs.classifyError(error).code ?? "unknown");
4626
+ setErrorCode(chunkDI77H7ED_cjs.classifyError(error).code ?? "unknown");
4627
4627
  } finally {
4628
4628
  setPending(false);
4629
4629
  }
@@ -4811,7 +4811,7 @@ function formatDate2(iso) {
4811
4811
  });
4812
4812
  }
4813
4813
  function FormRow({ form, selected, onSelect, style }) {
4814
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
4814
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
4815
4815
  return /* @__PURE__ */ jsxRuntime.jsxs(
4816
4816
  "tr",
4817
4817
  {
@@ -4819,7 +4819,7 @@ function FormRow({ form, selected, onSelect, style }) {
4819
4819
  className: "kf-forms-library__table-row",
4820
4820
  "data-selectable": onSelect !== void 0 ? "true" : void 0,
4821
4821
  "data-selected": selected === true ? "true" : void 0,
4822
- style: chunkCCJ5XNWY_cjs.tokenStyle(style),
4822
+ style: chunkCK3L6Y43_cjs.tokenStyle(style),
4823
4823
  children: [
4824
4824
  /* @__PURE__ */ jsxRuntime.jsx(
4825
4825
  "td",
@@ -4875,7 +4875,7 @@ function FormsLibrarySkeleton() {
4875
4875
  ] }, rowIndex)) }) }) });
4876
4876
  }
4877
4877
  function CardHeading2({ count }) {
4878
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
4878
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
4879
4879
  return /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-forms-library__card-title", children: t(
4880
4880
  count === 1 ? "chrome.formsLibrary.countLabelOne" : "chrome.formsLibrary.countLabel"
4881
4881
  ).replace("{count}", String(count)) });
@@ -4890,7 +4890,7 @@ function StatusFilterBar({
4890
4890
  active,
4891
4891
  onChange
4892
4892
  }) {
4893
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
4893
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
4894
4894
  return /* @__PURE__ */ jsxRuntime.jsxs("fieldset", { className: "kf-forms-library__filter-bar", children: [
4895
4895
  /* @__PURE__ */ jsxRuntime.jsx("legend", { className: "kf-visually-hidden", children: t("chrome.formsLibrary.filter.legend") }),
4896
4896
  STATUS_FILTERS.map((filter) => /* @__PURE__ */ jsxRuntime.jsx(
@@ -4916,8 +4916,8 @@ function FormsLibrary({
4916
4916
  components,
4917
4917
  style
4918
4918
  }) {
4919
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
4920
- const { forms, loaded, lastFetchFailed, refresh, createForm } = chunk2D4Y4LOT_cjs.useAgencyForms();
4919
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
4920
+ const { forms, loaded, lastFetchFailed, refresh, createForm } = chunkIBVCH6GC_cjs.useAgencyForms();
4921
4921
  const isControlled = controlledCreating !== void 0 && onCreatingChange !== void 0;
4922
4922
  const [internalCreating, setInternalCreating] = react.useState(false);
4923
4923
  const creating = isControlled ? controlledCreating : internalCreating;
@@ -4928,7 +4928,7 @@ function FormsLibrary({
4928
4928
  await createForm(input);
4929
4929
  };
4930
4930
  const visibleForms = statusFilter === "ALL" ? forms : forms.filter((form) => form.status === statusFilter);
4931
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-forms-library", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
4931
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-forms-library", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
4932
4932
  title !== void 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-forms-library__heading", children: [
4933
4933
  /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "kf-forms-library__title", children: title }),
4934
4934
  subtitle !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-forms-library__subtitle", children: subtitle }) : null
@@ -5004,9 +5004,9 @@ function FormsAuthoringFlow({ initialFormId, style }) {
5004
5004
  setSelectedFormId(void 0);
5005
5005
  }
5006
5006
  if (selectedFormId === void 0) {
5007
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-forms-authoring-flow", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(FormsLibrary, { onSelectForm: handleSelect }) });
5007
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-forms-authoring-flow", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(FormsLibrary, { onSelectForm: handleSelect }) });
5008
5008
  }
5009
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-forms-authoring-flow", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(FormBuilder, { formId: selectedFormId, onBack: handleBack }) });
5009
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-forms-authoring-flow", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(FormBuilder, { formId: selectedFormId, onBack: handleBack }) });
5010
5010
  }
5011
5011
  function SearchIcon(props) {
5012
5012
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -5157,7 +5157,7 @@ function AdminAvatar({
5157
5157
  className: "kf-admin-shared-patterns-avatar",
5158
5158
  "data-size": size,
5159
5159
  "aria-hidden": "true",
5160
- style: chunkCCJ5XNWY_cjs.tokenStyle(style, {
5160
+ style: chunkCK3L6Y43_cjs.tokenStyle(style, {
5161
5161
  "--kf-admin-shared-patterns-avatar-computed-size": SIZE_VAR[size],
5162
5162
  "--kf-admin-shared-patterns-avatar-computed-bg": `var(--kf-color-avatar-${step})`
5163
5163
  }),
@@ -5177,7 +5177,7 @@ function ManagerResultRow({
5177
5177
  onSelect,
5178
5178
  style
5179
5179
  }) {
5180
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
5180
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
5181
5181
  const initials = initialsFromName(manager.fullName);
5182
5182
  return /* @__PURE__ */ jsxRuntime.jsxs(
5183
5183
  "tr",
@@ -5185,7 +5185,7 @@ function ManagerResultRow({
5185
5185
  role: "row",
5186
5186
  className: "kf-manager-directory-flow__table-row",
5187
5187
  "data-selectable": onSelect !== void 0 ? "true" : void 0,
5188
- style: chunkCCJ5XNWY_cjs.tokenStyle(style),
5188
+ style: chunkCK3L6Y43_cjs.tokenStyle(style),
5189
5189
  children: [
5190
5190
  /* @__PURE__ */ jsxRuntime.jsx(
5191
5191
  "td",
@@ -5294,8 +5294,8 @@ function ManagerResultsListBody({
5294
5294
  onCountChange,
5295
5295
  onRetry
5296
5296
  }) {
5297
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
5298
- const directories = chunk2D4Y4LOT_cjs.useDirectories();
5297
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
5298
+ const directories = chunkIBVCH6GC_cjs.useDirectories();
5299
5299
  const [errorMessage, setErrorMessage] = react.useState(void 0);
5300
5300
  const [hasSettled, setHasSettled] = react.useState(false);
5301
5301
  const ManagerRow = ManagerResultRowComponent ?? ManagerResultRow;
@@ -5306,7 +5306,7 @@ function ManagerResultsListBody({
5306
5306
  setErrorMessage(void 0);
5307
5307
  return page;
5308
5308
  } catch (error) {
5309
- setErrorMessage(chunkXBYLSJOS_cjs.classifyError(error).code ?? "unknown");
5309
+ setErrorMessage(chunkDI77H7ED_cjs.classifyError(error).code ?? "unknown");
5310
5310
  return { rows: [], nextCursor: void 0 };
5311
5311
  } finally {
5312
5312
  setHasSettled(true);
@@ -5314,7 +5314,7 @@ function ManagerResultsListBody({
5314
5314
  },
5315
5315
  [directories, filters]
5316
5316
  );
5317
- const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunk2D4Y4LOT_cjs.usePaginatedList(fetch);
5317
+ const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunkIBVCH6GC_cjs.usePaginatedList(fetch);
5318
5318
  const isLoading = !hasSettled;
5319
5319
  const reportedCount = isLoading || errorMessage !== void 0 ? void 0 : rows.length;
5320
5320
  react.useEffect(() => {
@@ -5411,7 +5411,7 @@ function ManagerSearchInput({
5411
5411
  debounceMs,
5412
5412
  onDebouncedChange
5413
5413
  }) {
5414
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
5414
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
5415
5415
  const [value, setValue] = react.useState("");
5416
5416
  react.useEffect(() => {
5417
5417
  const timer = setTimeout(() => onDebouncedChange(value), debounceMs);
@@ -5450,12 +5450,12 @@ function ManagerDirectoryFlow({
5450
5450
  components,
5451
5451
  style
5452
5452
  }) {
5453
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
5453
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
5454
5454
  const [query, setQuery] = react.useState("");
5455
5455
  const [count, setCount] = react.useState(void 0);
5456
5456
  const trimmedQuery = query.trim();
5457
5457
  const handleCountChange = react.useCallback((next) => setCount(next), []);
5458
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-manager-directory-flow", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
5458
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-manager-directory-flow", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
5459
5459
  title !== void 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-manager-directory-flow__heading", children: [
5460
5460
  /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "kf-manager-directory-flow__title", children: title }),
5461
5461
  subtitle !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-manager-directory-flow__subtitle", children: subtitle }) : null
@@ -5527,7 +5527,7 @@ function formatDate3(iso) {
5527
5527
  return new Date(iso).toLocaleDateString("en-GB", { day: "2-digit", month: "short" });
5528
5528
  }
5529
5529
  function ManagerAssignmentsCard({ trips }) {
5530
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
5530
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
5531
5531
  return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-manager-profile-section__card", children: [
5532
5532
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-manager-profile-section__card-head", children: [
5533
5533
  /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "kf-manager-profile-section__card-title", children: t("chrome.managerProfileSection.trips.title") }),
@@ -5591,7 +5591,7 @@ function HeroProfileHeader({
5591
5591
  glowTone,
5592
5592
  style
5593
5593
  }) {
5594
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-admin-shared-patterns-hero", "data-glow": glowTone, style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
5594
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-admin-shared-patterns-hero", "data-glow": glowTone, style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
5595
5595
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-admin-shared-patterns-hero-glow", "aria-hidden": "true" }),
5596
5596
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-admin-shared-patterns-hero-row", children: [
5597
5597
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-admin-shared-patterns-hero-avatar", "aria-hidden": "true", children: avatarInitials }),
@@ -5624,7 +5624,7 @@ function initialsFromName2(name) {
5624
5624
  return `${first}${last}`.toUpperCase();
5625
5625
  }
5626
5626
  function ManagerProfileHero({ profile, onBack }) {
5627
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
5627
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
5628
5628
  const initials = initialsFromName2(profile.fullName);
5629
5629
  const stats = [
5630
5630
  { key: "trips", label: t("chrome.managerProfileSection.hero.trips"), value: profile.tripCount },
@@ -5683,12 +5683,12 @@ function ManagerProfileSection({
5683
5683
  components,
5684
5684
  style
5685
5685
  }) {
5686
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
5687
- const { read, readFailed, refresh } = chunk2D4Y4LOT_cjs.useAgencyManagerProfile(managerRef);
5686
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
5687
+ const { read, readFailed, refresh } = chunkIBVCH6GC_cjs.useAgencyManagerProfile(managerRef);
5688
5688
  const Hero = components?.Hero ?? ManagerProfileHero;
5689
5689
  const AssignmentsCard = components?.AssignmentsCard ?? ManagerAssignmentsCard;
5690
5690
  if (readFailed) {
5691
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-manager-profile-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-manager-profile-section__status-block", role: "alert", children: [
5691
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-manager-profile-section", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-manager-profile-section__status-block", role: "alert", children: [
5692
5692
  /* @__PURE__ */ jsxRuntime.jsx(WarningIcon7, { className: "kf-manager-profile-section__status-icon kf-manager-profile-section__status-icon--danger" }),
5693
5693
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-manager-profile-section__status-title", children: t("chrome.managerProfileSection.errorTitle") }),
5694
5694
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-manager-profile-section__status-body", children: t("chrome.managerProfileSection.errorBody") }),
@@ -5704,9 +5704,9 @@ function ManagerProfileSection({
5704
5704
  ] }) });
5705
5705
  }
5706
5706
  if (read === void 0) {
5707
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-manager-profile-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(ManagerProfileSkeleton, {}) });
5707
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-manager-profile-section", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(ManagerProfileSkeleton, {}) });
5708
5708
  }
5709
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-manager-profile-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
5709
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-manager-profile-section", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
5710
5710
  /* @__PURE__ */ jsxRuntime.jsx(Hero, { profile: read, onBack }),
5711
5711
  /* @__PURE__ */ jsxRuntime.jsx(AssignmentsCard, { trips: read.trips })
5712
5712
  ] });
@@ -5733,7 +5733,7 @@ function TemplateAuthoringFlow({
5733
5733
  initialTemplateId,
5734
5734
  style
5735
5735
  }) {
5736
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
5736
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
5737
5737
  const [selectedTemplateId, setSelectedTemplateId] = react.useState(
5738
5738
  initialTemplateId
5739
5739
  );
@@ -5744,9 +5744,9 @@ function TemplateAuthoringFlow({
5744
5744
  setSelectedTemplateId(void 0);
5745
5745
  }
5746
5746
  if (selectedTemplateId === void 0) {
5747
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-template-authoring-flow", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(ChecklistTemplateLibrary, { onSelectTemplate: handleSelect }) });
5747
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-template-authoring-flow", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(ChecklistTemplateLibrary, { onSelectTemplate: handleSelect }) });
5748
5748
  }
5749
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-template-authoring-flow", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
5749
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-template-authoring-flow", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
5750
5750
  /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", onClick: handleBack, className: "kf-template-authoring-flow__back-link", children: [
5751
5751
  /* @__PURE__ */ jsxRuntime.jsx(BackIcon3, {}),
5752
5752
  t("chrome.templateAuthoringFlow.backToLibrary")
@@ -5755,8 +5755,8 @@ function TemplateAuthoringFlow({
5755
5755
  ] });
5756
5756
  }
5757
5757
  function AddTravellerModal({ onClose, onCreated }) {
5758
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
5759
- const directories = chunk2D4Y4LOT_cjs.useDirectories();
5758
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
5759
+ const directories = chunkIBVCH6GC_cjs.useDirectories();
5760
5760
  const titleId = react.useId();
5761
5761
  const [fullName, setFullName] = react.useState("");
5762
5762
  const [phone, setPhone] = react.useState("");
@@ -5780,7 +5780,7 @@ function AddTravellerModal({ onClose, onCreated }) {
5780
5780
  });
5781
5781
  onCreated(created);
5782
5782
  } catch (error) {
5783
- setErrorMessage(chunkXBYLSJOS_cjs.classifyError(error).code ?? "unknown");
5783
+ setErrorMessage(chunkDI77H7ED_cjs.classifyError(error).code ?? "unknown");
5784
5784
  } finally {
5785
5785
  setIsSubmitting(false);
5786
5786
  }
@@ -5994,7 +5994,7 @@ function TravellerResultRow({
5994
5994
  onSelect,
5995
5995
  style
5996
5996
  }) {
5997
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
5997
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
5998
5998
  const initials = initialsFromName3(traveller.fullName);
5999
5999
  return /* @__PURE__ */ jsxRuntime.jsxs(
6000
6000
  "tr",
@@ -6002,7 +6002,7 @@ function TravellerResultRow({
6002
6002
  role: "row",
6003
6003
  className: "kf-traveller-directory__table-row",
6004
6004
  "data-selectable": onSelect !== void 0 ? "true" : void 0,
6005
- style: chunkCCJ5XNWY_cjs.tokenStyle(style),
6005
+ style: chunkCK3L6Y43_cjs.tokenStyle(style),
6006
6006
  children: [
6007
6007
  /* @__PURE__ */ jsxRuntime.jsx(
6008
6008
  "td",
@@ -6130,8 +6130,8 @@ function TravellerResultsListBody({
6130
6130
  onCountChange,
6131
6131
  onRetry
6132
6132
  }) {
6133
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
6134
- const directories = chunk2D4Y4LOT_cjs.useDirectories();
6133
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
6134
+ const directories = chunkIBVCH6GC_cjs.useDirectories();
6135
6135
  const [errorMessage, setErrorMessage] = react.useState(void 0);
6136
6136
  const [hasSettled, setHasSettled] = react.useState(false);
6137
6137
  const fetch = react.useCallback(
@@ -6142,7 +6142,7 @@ function TravellerResultsListBody({
6142
6142
  setErrorMessage(void 0);
6143
6143
  return page;
6144
6144
  } catch (error) {
6145
- setErrorMessage(chunkXBYLSJOS_cjs.classifyError(error).code ?? "unknown");
6145
+ setErrorMessage(chunkDI77H7ED_cjs.classifyError(error).code ?? "unknown");
6146
6146
  return { rows: [], nextCursor: void 0 };
6147
6147
  } finally {
6148
6148
  setHasSettled(true);
@@ -6150,7 +6150,7 @@ function TravellerResultsListBody({
6150
6150
  },
6151
6151
  [directories, query]
6152
6152
  );
6153
- const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunk2D4Y4LOT_cjs.usePaginatedList(fetch);
6153
+ const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunkIBVCH6GC_cjs.usePaginatedList(fetch);
6154
6154
  const isLoading = !hasSettled;
6155
6155
  const reportedCount = isLoading || errorMessage !== void 0 ? void 0 : rows.length;
6156
6156
  react.useEffect(() => {
@@ -6245,7 +6245,7 @@ function TravellerSearchInput({
6245
6245
  debounceMs,
6246
6246
  onDebouncedChange
6247
6247
  }) {
6248
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
6248
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
6249
6249
  const [value, setValue] = react.useState("");
6250
6250
  react.useEffect(() => {
6251
6251
  const timer = setTimeout(() => onDebouncedChange(value), debounceMs);
@@ -6285,13 +6285,13 @@ function TravellerSearchBox({
6285
6285
  trailingAction,
6286
6286
  style
6287
6287
  }) {
6288
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
6288
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
6289
6289
  const [query, setQuery] = react.useState("");
6290
6290
  const [count, setCount] = react.useState(void 0);
6291
6291
  const trimmed = query.trim();
6292
6292
  const handleCountChange = react.useCallback((next) => setCount(next), []);
6293
6293
  const isBelowFloor = minQueryLength > 0 && trimmed.length < minQueryLength;
6294
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-traveller-directory__search-box", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
6294
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-traveller-directory__search-box", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
6295
6295
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-traveller-directory__search-box-input-row", children: [
6296
6296
  /* @__PURE__ */ jsxRuntime.jsx(TravellerSearchInput, { debounceMs, onDebouncedChange: setQuery }),
6297
6297
  count !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-traveller-directory__count", children: t(
@@ -6323,7 +6323,7 @@ function TravellerDirectoryFlow({
6323
6323
  components,
6324
6324
  style
6325
6325
  }) {
6326
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
6326
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
6327
6327
  const [uncontrolledOpen, setUncontrolledOpen] = react.useState(false);
6328
6328
  const isControlled = adding !== void 0 && onAddingChange !== void 0;
6329
6329
  const isAddModalOpen = isControlled ? adding : uncontrolledOpen;
@@ -6346,7 +6346,7 @@ function TravellerDirectoryFlow({
6346
6346
  );
6347
6347
  const SearchBox = components?.TravellerSearchBox ?? TravellerSearchBox;
6348
6348
  const AddModal = components?.AddTravellerModal ?? AddTravellerModal;
6349
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-traveller-directory-flow", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
6349
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-traveller-directory-flow", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
6350
6350
  title !== void 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-traveller-directory-flow__heading", children: [
6351
6351
  /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "kf-traveller-directory-flow__title", children: title }),
6352
6352
  subtitle !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-traveller-directory-flow__subtitle", children: subtitle }) : null
@@ -6372,7 +6372,7 @@ function TravellerDirectoryFlow({
6372
6372
  ] });
6373
6373
  }
6374
6374
  function useAgencyTravellerProfile(travellerRef) {
6375
- const client = chunkCCJ5XNWY_cjs.useKaafilClient();
6375
+ const client = chunkCK3L6Y43_cjs.useKaafilClient();
6376
6376
  const [read, setRead] = react.useState(void 0);
6377
6377
  const [readFailed, setReadFailed] = react.useState(false);
6378
6378
  const refresh = react.useCallback(async () => {
@@ -6429,7 +6429,7 @@ function formatMinor(minor, currency) {
6429
6429
  }).format(minor / 100);
6430
6430
  }
6431
6431
  function TravellerLifetimeCard({ lifetime }) {
6432
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
6432
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
6433
6433
  if (lifetime.currency === null) {
6434
6434
  return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-traveller-profile-section__card", children: [
6435
6435
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-traveller-profile-section__card-head", children: [
@@ -6477,7 +6477,7 @@ function formatTimestamp(iso) {
6477
6477
  });
6478
6478
  }
6479
6479
  function TravellerNotesList({ notes }) {
6480
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
6480
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
6481
6481
  return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-traveller-profile-section__card", children: [
6482
6482
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-traveller-profile-section__card-head", children: [
6483
6483
  /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "kf-traveller-profile-section__card-title", children: t("chrome.travellerProfileSection.notes.title") }),
@@ -6523,7 +6523,7 @@ function formatDateOfBirth(iso) {
6523
6523
  });
6524
6524
  }
6525
6525
  function TravellerPersonalCard({ profile }) {
6526
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
6526
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
6527
6527
  const p = profile.profile;
6528
6528
  const dob = formatDateOfBirth(p.dateOfBirth);
6529
6529
  const email = p.email ?? profile.email;
@@ -6638,7 +6638,7 @@ function formatMinor2(minor, currency) {
6638
6638
  }).format(minor / 100);
6639
6639
  }
6640
6640
  function TravellerProfileHero({ profile, onBack }) {
6641
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
6641
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
6642
6642
  const initials = initialsFromName4(profile.fullName);
6643
6643
  const { lifetime } = profile;
6644
6644
  const stats = lifetime.currency !== null ? [
@@ -6729,7 +6729,7 @@ function formatMinor3(minor, currency) {
6729
6729
  }).format(minor / 100);
6730
6730
  }
6731
6731
  function TravellerTripHistoryTable({ trips }) {
6732
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
6732
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
6733
6733
  return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-traveller-profile-section__card", children: [
6734
6734
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-traveller-profile-section__card-head", children: [
6735
6735
  /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "kf-traveller-profile-section__card-title", children: t("chrome.travellerProfileSection.trips.title") }),
@@ -6780,7 +6780,7 @@ function TravellerProfileSection({
6780
6780
  components,
6781
6781
  style
6782
6782
  }) {
6783
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
6783
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
6784
6784
  const { read, readFailed, refresh } = useAgencyTravellerProfile(travellerRef);
6785
6785
  const Hero = components?.Hero ?? TravellerProfileHero;
6786
6786
  const PersonalCard = components?.PersonalCard ?? TravellerPersonalCard;
@@ -6788,7 +6788,7 @@ function TravellerProfileSection({
6788
6788
  const TripHistoryTable = components?.TripHistoryTable ?? TravellerTripHistoryTable;
6789
6789
  const NotesList = components?.NotesList ?? TravellerNotesList;
6790
6790
  if (readFailed) {
6791
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-traveller-profile-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-traveller-profile-section__status-block", role: "alert", children: [
6791
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-traveller-profile-section", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-traveller-profile-section__status-block", role: "alert", children: [
6792
6792
  /* @__PURE__ */ jsxRuntime.jsx(WarningIcon9, { className: "kf-traveller-profile-section__status-icon kf-traveller-profile-section__status-icon--danger" }),
6793
6793
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-traveller-profile-section__status-title", children: t("chrome.travellerProfileSection.errorTitle") }),
6794
6794
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-traveller-profile-section__status-body", children: t("chrome.travellerProfileSection.errorBody") }),
@@ -6804,9 +6804,9 @@ function TravellerProfileSection({
6804
6804
  ] }) });
6805
6805
  }
6806
6806
  if (read === void 0) {
6807
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-traveller-profile-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(TravellerProfileSkeleton, {}) });
6807
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-traveller-profile-section", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(TravellerProfileSkeleton, {}) });
6808
6808
  }
6809
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-traveller-profile-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
6809
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-traveller-profile-section", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
6810
6810
  /* @__PURE__ */ jsxRuntime.jsx(Hero, { profile: read, onBack }),
6811
6811
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-traveller-profile-section__body", children: [
6812
6812
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-traveller-profile-section__column", children: [
@@ -6898,7 +6898,7 @@ function ToggleSwitch({
6898
6898
  disabled,
6899
6899
  className: "kf-admin-shared-patterns-toggle-row",
6900
6900
  onClick: () => onChange(!checked),
6901
- style: chunkCCJ5XNWY_cjs.tokenStyle(style),
6901
+ style: chunkCK3L6Y43_cjs.tokenStyle(style),
6902
6902
  children: /* @__PURE__ */ jsxRuntime.jsx(
6903
6903
  "span",
6904
6904
  {
@@ -7336,7 +7336,7 @@ function TriggerDetailPanel({
7336
7336
  style
7337
7337
  }) {
7338
7338
  const [dialogOpen, setDialogOpen] = react.useState(false);
7339
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trigger-template-editor__detail", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
7339
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trigger-template-editor__detail", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
7340
7340
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trigger-template-editor__detail-head", children: [
7341
7341
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trigger-template-editor__detail-eyebrow", children: t("chrome.triggerTemplateEditor.selected") }),
7342
7342
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -7420,8 +7420,8 @@ function TriggerTemplateEditor({
7420
7420
  onTriggerPatched,
7421
7421
  style
7422
7422
  }) {
7423
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
7424
- const { triggers, loaded, lastFetchFailed, refresh, patchTrigger } = chunk2D4Y4LOT_cjs.useAgencyJourneyTriggers();
7423
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
7424
+ const { triggers, loaded, lastFetchFailed, refresh, patchTrigger } = chunkIBVCH6GC_cjs.useAgencyJourneyTriggers();
7425
7425
  const [savingId, setSavingId] = react.useState(void 0);
7426
7426
  const [selectedId, setSelectedId] = react.useState(void 0);
7427
7427
  const filtered = tripModeFilter === void 0 ? triggers : triggers.filter((trigger) => trigger.tripMode === tripModeFilter);
@@ -7456,7 +7456,7 @@ function TriggerTemplateEditor({
7456
7456
  setSavingId(void 0);
7457
7457
  }
7458
7458
  }
7459
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trigger-template-editor", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
7459
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trigger-template-editor", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
7460
7460
  title !== void 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trigger-template-editor__heading", children: [
7461
7461
  /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "kf-trigger-template-editor__title", children: title }),
7462
7462
  subtitle !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trigger-template-editor__subtitle", children: subtitle }) : null
@@ -7604,14 +7604,14 @@ function BookingsSkeleton() {
7604
7604
  ] }, id)) });
7605
7605
  }
7606
7606
  function BookingsEmpty() {
7607
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
7607
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
7608
7608
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-bookings-section__state", children: [
7609
7609
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-bookings-section__state-title", children: t("chrome.tripBookings.emptyTitle") }),
7610
7610
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-bookings-section__state-body", children: t("chrome.tripBookings.emptyBody") })
7611
7611
  ] });
7612
7612
  }
7613
7613
  function BookingsFailed({ onRetry }) {
7614
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
7614
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
7615
7615
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-bookings-section__state", role: "alert", children: [
7616
7616
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-bookings-section__state-title", children: t("chrome.tripBookings.failedTitle") }),
7617
7617
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-bookings-section__state-body", children: t("chrome.tripBookings.failedBody") }),
@@ -7619,7 +7619,7 @@ function BookingsFailed({ onRetry }) {
7619
7619
  ] });
7620
7620
  }
7621
7621
  function BookingsDark({ reason }) {
7622
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
7622
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
7623
7623
  if (reason === "mode") return null;
7624
7624
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-bookings-section__state", "data-dark": reason, children: [
7625
7625
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-bookings-section__state-title", children: t(
@@ -7664,8 +7664,8 @@ function TripBookingsSection({
7664
7664
  onOpenDocuments,
7665
7665
  style
7666
7666
  }) {
7667
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
7668
- const bookings = chunk2D4Y4LOT_cjs.useBookings(tripRef);
7667
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
7668
+ const bookings = chunkIBVCH6GC_cjs.useBookings(tripRef);
7669
7669
  const ready = bookings.status === "ready" ? bookings : null;
7670
7670
  const groups = react.useMemo(
7671
7671
  () => ready === null ? [] : groupByKind(liveBookings(ready.bookings)),
@@ -7675,7 +7675,7 @@ function TripBookingsSection({
7675
7675
  const unreadable = ready !== null && ready.syncedAt === void 0;
7676
7676
  const refreshLive = ready?.refreshLive;
7677
7677
  if (bookings.status === "dark") return /* @__PURE__ */ jsxRuntime.jsx(BookingsDark, { reason: bookings.reason });
7678
- return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-bookings-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
7678
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-bookings-section", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
7679
7679
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-bookings-section__head", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-bookings-section__head-text", children: [
7680
7680
  /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "kf-trip-bookings-section__title", children: t("chrome.tripBookings.panelLabel") }),
7681
7681
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-bookings-section__subtitle", children: t("chrome.tripBookings.subtitle").replace("{count}", String(total)) })
@@ -7747,7 +7747,7 @@ function LockIcon2() {
7747
7747
  );
7748
7748
  }
7749
7749
  function CloseoutLockNotice({ whatKey }) {
7750
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
7750
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
7751
7751
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-admin-closeout-lock", role: "status", children: [
7752
7752
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-admin-closeout-lock__glyph", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(LockIcon2, {}) }),
7753
7753
  /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "kf-admin-closeout-lock__body", children: [
@@ -7851,7 +7851,7 @@ function ChecklistSkeleton() {
7851
7851
  ] }, column)) });
7852
7852
  }
7853
7853
  function ChecklistEmpty({ onPull }) {
7854
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
7854
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
7855
7855
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-checklist-section__state", children: [
7856
7856
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-checklist-section__state-glyph", children: /* @__PURE__ */ jsxRuntime.jsx(ChecklistIcon, {}) }),
7857
7857
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-checklist-section__state-title", children: t("chrome.tripChecklist.emptyTitle") }),
@@ -7860,7 +7860,7 @@ function ChecklistEmpty({ onPull }) {
7860
7860
  ] });
7861
7861
  }
7862
7862
  function ChecklistFailed({ onRetry }) {
7863
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
7863
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
7864
7864
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-checklist-section__state", children: [
7865
7865
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-checklist-section__state-title", children: t("chrome.tripChecklist.failedTitle") }),
7866
7866
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-checklist-section__state-body", children: t("chrome.tripChecklist.failedBody") }),
@@ -7868,7 +7868,7 @@ function ChecklistFailed({ onRetry }) {
7868
7868
  ] });
7869
7869
  }
7870
7870
  function ChecklistDark({ reason }) {
7871
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
7871
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
7872
7872
  if (reason === "mode") return null;
7873
7873
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-checklist-section__state", "data-dark": reason, children: [
7874
7874
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-checklist-section__state-glyph", children: /* @__PURE__ */ jsxRuntime.jsx(LockIcon3, {}) }),
@@ -7968,7 +7968,7 @@ function ItemDialog({
7968
7968
  onClose,
7969
7969
  onSubmit
7970
7970
  }) {
7971
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
7971
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
7972
7972
  const titleId = react.useId();
7973
7973
  const [values, setValues] = react.useState(initial);
7974
7974
  const [sectionChoice, setSectionChoice] = react.useState(
@@ -8165,7 +8165,7 @@ function ChecklistItemRow({
8165
8165
  onToggle,
8166
8166
  onEdit
8167
8167
  }) {
8168
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
8168
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
8169
8169
  const complete = item.status === "COMPLETE";
8170
8170
  const day = dayOffsetLabel(item.dayOffset);
8171
8171
  const actorKey = actorLabelKey(item.performedByKind);
@@ -8217,7 +8217,7 @@ function SectionCard2({
8217
8217
  onAddToSection,
8218
8218
  ItemRow: ItemRow2 = ChecklistItemRow
8219
8219
  }) {
8220
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
8220
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
8221
8221
  const openMandatory = items.filter((one) => one.isMandatory && one.status === "OPEN").length;
8222
8222
  return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-checklist-section__section", children: [
8223
8223
  /* @__PURE__ */ jsxRuntime.jsxs("header", { className: "kf-trip-checklist-section__section-head", children: [
@@ -8271,7 +8271,7 @@ function PhasePanel({
8271
8271
  onAddToPhase,
8272
8272
  ItemRow: ItemRow2
8273
8273
  }) {
8274
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
8274
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
8275
8275
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: sections.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-checklist-section__phase-empty", children: [
8276
8276
  /* @__PURE__ */ jsxRuntime.jsx("p", { children: t("chrome.tripChecklist.phaseEmpty") }),
8277
8277
  readOnly ? null : /* @__PURE__ */ jsxRuntime.jsx(
@@ -8307,7 +8307,7 @@ function PhaseSwitcher({
8307
8307
  value,
8308
8308
  onChange
8309
8309
  }) {
8310
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
8310
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
8311
8311
  return /* @__PURE__ */ jsxRuntime.jsxs("fieldset", { className: "kf-trip-checklist-section__segment", children: [
8312
8312
  /* @__PURE__ */ jsxRuntime.jsx("legend", { className: "kf-visually-hidden", children: t("chrome.tripChecklist.phaseLabel") }),
8313
8313
  OPTIONS.map((option) => /* @__PURE__ */ jsxRuntime.jsx(
@@ -8340,7 +8340,7 @@ function TemplatePickerDialog({
8340
8340
  onClose,
8341
8341
  onPull
8342
8342
  }) {
8343
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
8343
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
8344
8344
  const titleId = react.useId();
8345
8345
  const [selectedId, setSelectedId] = react.useState(null);
8346
8346
  const [mode, setMode] = react.useState("append");
@@ -8469,8 +8469,8 @@ function TripChecklistSection({
8469
8469
  components,
8470
8470
  style
8471
8471
  }) {
8472
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
8473
- const checklists = chunkXBYLSJOS_cjs.useChecklists(tripRef);
8472
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
8473
+ const checklists = chunkDI77H7ED_cjs.useChecklists(tripRef);
8474
8474
  const [overlay, setOverlay] = react.useState({ kind: "none" });
8475
8475
  const [pending, setPending] = react.useState(false);
8476
8476
  const [busyItemId, setBusyItemId] = react.useState(null);
@@ -8637,7 +8637,7 @@ function TripChecklistSection({
8637
8637
  const inert = readOnly || locked;
8638
8638
  const unreadable = aggregate?.lastFetchFailed === true && aggregate.loaded === false;
8639
8639
  const percent = overallPercent(aggregate?.progress);
8640
- return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-checklist-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
8640
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-checklist-section", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
8641
8641
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-checklist-section__head", children: [
8642
8642
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-checklist-section__head-text", children: [
8643
8643
  /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "kf-trip-checklist-section__title", children: t("chrome.tripChecklist.panelLabel") }),
@@ -9026,7 +9026,7 @@ var STATUS_LABEL_KEY5 = {
9026
9026
  CANCELLED: "chrome.tripDirectory.status.cancelled"
9027
9027
  };
9028
9028
  function TripRow({ trip, index, onOpen, style }) {
9029
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
9029
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
9030
9030
  const derived = deriveTripRow(trip, index);
9031
9031
  return /* @__PURE__ */ jsxRuntime.jsxs(
9032
9032
  "tr",
@@ -9034,7 +9034,7 @@ function TripRow({ trip, index, onOpen, style }) {
9034
9034
  role: "row",
9035
9035
  className: "kf-trip-directory-flow__row",
9036
9036
  "data-dimming": derived.dimming === "none" ? void 0 : derived.dimming,
9037
- style: chunkCCJ5XNWY_cjs.tokenStyle(style),
9037
+ style: chunkCK3L6Y43_cjs.tokenStyle(style),
9038
9038
  children: [
9039
9039
  /* @__PURE__ */ jsxRuntime.jsxs(
9040
9040
  "td",
@@ -9153,8 +9153,8 @@ function TripResultsListBody({
9153
9153
  hasActiveFilter,
9154
9154
  onRetry
9155
9155
  }) {
9156
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
9157
- const { makeTripsFetch } = chunk2D4Y4LOT_cjs.useAgencyTrips();
9156
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
9157
+ const { makeTripsFetch } = chunkIBVCH6GC_cjs.useAgencyTrips();
9158
9158
  const [errorCode, setErrorCode] = react.useState(void 0);
9159
9159
  const [hasSettled, setHasSettled] = react.useState(false);
9160
9160
  const Row = TripRowComponent ?? TripRow;
@@ -9165,7 +9165,7 @@ function TripResultsListBody({
9165
9165
  setErrorCode(void 0);
9166
9166
  return page;
9167
9167
  } catch (error) {
9168
- setErrorCode(chunkXBYLSJOS_cjs.classifyError(error).code ?? "unknown");
9168
+ setErrorCode(chunkDI77H7ED_cjs.classifyError(error).code ?? "unknown");
9169
9169
  return { rows: [], nextCursor: void 0 };
9170
9170
  } finally {
9171
9171
  setHasSettled(true);
@@ -9173,7 +9173,7 @@ function TripResultsListBody({
9173
9173
  },
9174
9174
  [makeTripsFetch, filters]
9175
9175
  );
9176
- const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunk2D4Y4LOT_cjs.usePaginatedList(fetch);
9176
+ const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunkIBVCH6GC_cjs.usePaginatedList(fetch);
9177
9177
  const isLoading = !hasSettled;
9178
9178
  const reportedCount = isLoading || errorCode !== void 0 ? void 0 : rows.length;
9179
9179
  react.useEffect(() => {
@@ -9275,7 +9275,7 @@ function TripSearchInput({
9275
9275
  debounceMs,
9276
9276
  onDebouncedChange
9277
9277
  }) {
9278
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
9278
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
9279
9279
  const [value, setValue] = react.useState("");
9280
9280
  react.useEffect(() => {
9281
9281
  const timer = setTimeout(() => onDebouncedChange(value.trim()), debounceMs);
@@ -9345,7 +9345,7 @@ function TripDirectoryFlow({
9345
9345
  components,
9346
9346
  style
9347
9347
  }) {
9348
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
9348
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
9349
9349
  const [eventType, setEventType] = react.useState(initialEventType ?? "TRIP");
9350
9350
  const [segment, setSegment] = react.useState("all");
9351
9351
  const [q, setQ] = react.useState("");
@@ -9365,7 +9365,7 @@ function TripDirectoryFlow({
9365
9365
  );
9366
9366
  const filterKey = react.useMemo(() => JSON.stringify(filters), [filters]);
9367
9367
  const hasActiveFilter = segment !== "all" || q.length > 0 || status !== void 0;
9368
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-directory-flow", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
9368
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-directory-flow", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
9369
9369
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-directory-flow__toolbar", children: [
9370
9370
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-directory-flow__toolbar-row", children: [
9371
9371
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -9626,7 +9626,7 @@ function KindIcon({
9626
9626
  return /* @__PURE__ */ jsxRuntime.jsx(GenericFileIcon, {});
9627
9627
  }
9628
9628
  function DocumentRow({ row, onOpen }) {
9629
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
9629
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
9630
9630
  const { file, spend } = row;
9631
9631
  const purged = file.status === "purged";
9632
9632
  const retention = retentionStateOf(file);
@@ -9687,7 +9687,7 @@ function DocumentsSkeleton() {
9687
9687
  ] }, id)) });
9688
9688
  }
9689
9689
  function DocumentsEmpty() {
9690
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
9690
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
9691
9691
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-documents-section__state", children: [
9692
9692
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-documents-section__state-mark", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(EmptyDocumentsIcon, {}) }),
9693
9693
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-documents-section__state-title", children: t("chrome.tripDocuments.emptyTitle") }),
@@ -9695,7 +9695,7 @@ function DocumentsEmpty() {
9695
9695
  ] });
9696
9696
  }
9697
9697
  function DocumentsFailed({ onRetry }) {
9698
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
9698
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
9699
9699
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-documents-section__state", role: "alert", children: [
9700
9700
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-documents-section__state-title", children: t("chrome.tripDocuments.failedTitle") }),
9701
9701
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-documents-section__state-body", children: t("chrome.tripDocuments.failedBody") }),
@@ -9703,7 +9703,7 @@ function DocumentsFailed({ onRetry }) {
9703
9703
  ] });
9704
9704
  }
9705
9705
  function DocumentsDark({ reason }) {
9706
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
9706
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
9707
9707
  if (reason === "mode") return null;
9708
9708
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-documents-section__state", "data-dark": reason, children: [
9709
9709
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-documents-section__state-title", children: t(
@@ -9726,7 +9726,7 @@ function DocumentViewer({
9726
9726
  failed,
9727
9727
  onClose
9728
9728
  }) {
9729
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
9729
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
9730
9730
  const titleId = react.useId();
9731
9731
  const { file } = row;
9732
9732
  const classKey = retentionClassLabelKey(file.retentionClass);
@@ -9807,7 +9807,7 @@ function DocumentViewer({
9807
9807
  );
9808
9808
  }
9809
9809
  function PurposeChips({ counts, value, onChange }) {
9810
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
9810
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
9811
9811
  const options = [
9812
9812
  {
9813
9813
  key: "all",
@@ -9877,7 +9877,7 @@ function UploadDialog({
9877
9877
  onClose,
9878
9878
  onSubmit
9879
9879
  }) {
9880
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
9880
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
9881
9881
  const titleId = react.useId();
9882
9882
  const nameId = react.useId();
9883
9883
  const fileId = react.useId();
@@ -10039,12 +10039,12 @@ function UploadDialog({
10039
10039
  );
10040
10040
  }
10041
10041
  function TripDocumentsSection({ tripRef, style }) {
10042
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
10043
- const files = chunkXBYLSJOS_cjs.useFiles({ tripRef });
10044
- const expenses = chunkXBYLSJOS_cjs.useExpenses(tripRef);
10045
- const bookings = chunk2D4Y4LOT_cjs.useBookings(tripRef);
10046
- const { listTripManifest } = chunk2D4Y4LOT_cjs.useDirectories();
10047
- const { statuses, loaded: capabilityLoaded } = chunk2D4Y4LOT_cjs.useCapabilityStatuses(tripRef);
10042
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
10043
+ const files = chunkDI77H7ED_cjs.useFiles({ tripRef });
10044
+ const expenses = chunkDI77H7ED_cjs.useExpenses(tripRef);
10045
+ const bookings = chunkIBVCH6GC_cjs.useBookings(tripRef);
10046
+ const { listTripManifest } = chunkIBVCH6GC_cjs.useDirectories();
10047
+ const { statuses, loaded: capabilityLoaded } = chunkIBVCH6GC_cjs.useCapabilityStatuses(tripRef);
10048
10048
  const capability = statuses.get("files");
10049
10049
  const [state, setState] = react.useState({ kind: "loading" });
10050
10050
  const [purpose, setPurpose] = react.useState(null);
@@ -10191,7 +10191,7 @@ function TripDocumentsSection({ tripRef, style }) {
10191
10191
  if (capabilityLoaded && capability === "mode-dark") return /* @__PURE__ */ jsxRuntime.jsx(DocumentsDark, { reason: "mode" });
10192
10192
  if (capabilityLoaded && capability === "flag-dark") return /* @__PURE__ */ jsxRuntime.jsx(DocumentsDark, { reason: "flag" });
10193
10193
  if (capabilityLoaded && capability === "data-dark") return /* @__PURE__ */ jsxRuntime.jsx(DocumentsDark, { reason: "data" });
10194
- return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-documents-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
10194
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-documents-section", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
10195
10195
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-documents-section__head", children: [
10196
10196
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-documents-section__head-text", children: [
10197
10197
  /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "kf-trip-documents-section__title", children: t("chrome.tripDocuments.panelLabel") }),
@@ -10480,7 +10480,7 @@ function ExpensesSkeleton() {
10480
10480
  ] }, id)) });
10481
10481
  }
10482
10482
  function ExpensesEmpty({ onLog }) {
10483
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
10483
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
10484
10484
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-expenses-section__state", children: [
10485
10485
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-expenses-section__state-glyph", children: /* @__PURE__ */ jsxRuntime.jsx(WalletIcon, {}) }),
10486
10486
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-expenses-section__state-title", children: t("chrome.tripExpenses.emptyTitle") }),
@@ -10489,7 +10489,7 @@ function ExpensesEmpty({ onLog }) {
10489
10489
  ] });
10490
10490
  }
10491
10491
  function ExpensesFailed({ onRetry }) {
10492
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
10492
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
10493
10493
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-expenses-section__state", role: "alert", children: [
10494
10494
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-expenses-section__state-title", children: t("chrome.tripExpenses.failedTitle") }),
10495
10495
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-expenses-section__state-body", children: t("chrome.tripExpenses.failedBody") }),
@@ -10497,7 +10497,7 @@ function ExpensesFailed({ onRetry }) {
10497
10497
  ] });
10498
10498
  }
10499
10499
  function ExpensesDark({ reason }) {
10500
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
10500
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
10501
10501
  if (reason === "mode") {
10502
10502
  return null;
10503
10503
  }
@@ -10518,7 +10518,7 @@ function ExpensesTable({
10518
10518
  onVoid,
10519
10519
  onViewReceipt
10520
10520
  }) {
10521
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
10521
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
10522
10522
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-expenses-section__table-wrap", children: /* @__PURE__ */ jsxRuntime.jsxs("table", { className: "kf-trip-expenses-section__table", children: [
10523
10523
  /* @__PURE__ */ jsxRuntime.jsx("caption", { className: "kf-visually-hidden", children: t("chrome.tripExpenses.tableCaption") }),
10524
10524
  /* @__PURE__ */ jsxRuntime.jsx("thead", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
@@ -10578,7 +10578,7 @@ function LogExpenseDialog({
10578
10578
  onClose,
10579
10579
  onSubmit
10580
10580
  }) {
10581
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
10581
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
10582
10582
  const titleId = react.useId();
10583
10583
  const [category, setCategory] = react.useState("MISC");
10584
10584
  const [amount, setAmount] = react.useState("");
@@ -10741,9 +10741,9 @@ function ReceiptDialog({
10741
10741
  description,
10742
10742
  onClose
10743
10743
  }) {
10744
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
10744
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
10745
10745
  const titleId = react.useId();
10746
- const files = chunkXBYLSJOS_cjs.useFiles({ tripRef });
10746
+ const files = chunkDI77H7ED_cjs.useFiles({ tripRef });
10747
10747
  const [phase, setPhase] = react.useState({ kind: "loading" });
10748
10748
  const [imageBroke, setImageBroke] = react.useState(false);
10749
10749
  const readUrl = files.url;
@@ -10817,7 +10817,7 @@ function VoidExpenseDialog({
10817
10817
  onClose,
10818
10818
  onSubmit
10819
10819
  }) {
10820
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
10820
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
10821
10821
  const titleId = react.useId();
10822
10822
  const [reason, setReason] = react.useState("");
10823
10823
  const trimmed = reason.trim();
@@ -10891,9 +10891,9 @@ function isCloseoutLocked2(error) {
10891
10891
  return classification?.status === 423 || classification?.code === "TRIP_CLOSED_OUT";
10892
10892
  }
10893
10893
  function TripExpensesSection({ tripRef, style }) {
10894
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
10895
- const expenses = chunkXBYLSJOS_cjs.useExpenses(tripRef);
10896
- const vendors = chunkXBYLSJOS_cjs.useVendors(tripRef, "");
10894
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
10895
+ const expenses = chunkDI77H7ED_cjs.useExpenses(tripRef);
10896
+ const vendors = chunkDI77H7ED_cjs.useVendors(tripRef, "");
10897
10897
  const [category, setCategory] = react.useState(null);
10898
10898
  const [paymentMode, setPaymentMode] = react.useState(null);
10899
10899
  const [missingReceiptOnly, setMissingReceiptOnly] = react.useState(false);
@@ -10962,7 +10962,7 @@ function TripExpensesSection({ tripRef, style }) {
10962
10962
  return /* @__PURE__ */ jsxRuntime.jsx(ExpensesDark, { reason: expenses.reason });
10963
10963
  }
10964
10964
  const filtered = category !== null || paymentMode !== null || missingReceiptOnly;
10965
- return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-expenses-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
10965
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-expenses-section", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
10966
10966
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-expenses-section__toolbar", children: [
10967
10967
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-expenses-section__toolbar-title", children: t("chrome.tripExpenses.panelLabel") }),
10968
10968
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-expenses-section__toolbar-spacer" }),
@@ -11242,7 +11242,7 @@ function FloatMovementDialog({
11242
11242
  onClose,
11243
11243
  onSubmit
11244
11244
  }) {
11245
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
11245
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
11246
11246
  const titleId = react.useId();
11247
11247
  const [managerId, setManagerId] = react.useState(manager?.managerId ?? null);
11248
11248
  const [amount, setAmount] = react.useState(
@@ -11475,7 +11475,7 @@ function FloatSkeleton() {
11475
11475
  ] }, id)) });
11476
11476
  }
11477
11477
  function FloatEmpty({ onIssue }) {
11478
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
11478
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
11479
11479
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-float-section__state", children: [
11480
11480
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-float-section__state-glyph", children: /* @__PURE__ */ jsxRuntime.jsx(SafeIcon, {}) }),
11481
11481
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-float-section__state-title", children: t("chrome.tripFloat.emptyTitle") }),
@@ -11484,7 +11484,7 @@ function FloatEmpty({ onIssue }) {
11484
11484
  ] });
11485
11485
  }
11486
11486
  function FloatFailed({ onRetry }) {
11487
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
11487
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
11488
11488
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-float-section__state", role: "alert", children: [
11489
11489
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-float-section__state-title", children: t("chrome.tripFloat.failedTitle") }),
11490
11490
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-float-section__state-body", children: t("chrome.tripFloat.failedBody") }),
@@ -11492,7 +11492,7 @@ function FloatFailed({ onRetry }) {
11492
11492
  ] });
11493
11493
  }
11494
11494
  function FloatDark({ reason }) {
11495
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
11495
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
11496
11496
  if (reason === "mode") {
11497
11497
  return null;
11498
11498
  }
@@ -11515,7 +11515,7 @@ function ManagerFloatCard({
11515
11515
  onAdjust,
11516
11516
  onSettle
11517
11517
  }) {
11518
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
11518
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
11519
11519
  const bodyId = `kf-float-${row.managerId}`;
11520
11520
  const summary = row.summary;
11521
11521
  const shares = summary === void 0 ? void 0 : usageShares(summary);
@@ -11721,9 +11721,9 @@ function refusedBalanceOf(error) {
11721
11721
  return details?.currentBalanceMinor;
11722
11722
  }
11723
11723
  function TripFloatSection({ tripRef, style }) {
11724
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
11725
- const float = chunkXBYLSJOS_cjs.useFloat(tripRef);
11726
- const managers = chunkXBYLSJOS_cjs.useManagers(tripRef);
11724
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
11725
+ const float = chunkDI77H7ED_cjs.useFloat(tripRef);
11726
+ const managers = chunkDI77H7ED_cjs.useManagers(tripRef);
11727
11727
  const [openManagerId, setOpenManagerId] = react.useState(null);
11728
11728
  const [ledgers, setLedgers] = react.useState({});
11729
11729
  const [overlay, setOverlay] = react.useState({ kind: "none" });
@@ -11849,7 +11849,7 @@ function TripFloatSection({ tripRef, style }) {
11849
11849
  if (float.status === "dark") {
11850
11850
  return /* @__PURE__ */ jsxRuntime.jsx(FloatDark, { reason: float.reason });
11851
11851
  }
11852
- return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-float-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
11852
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-float-section", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
11853
11853
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-float-section__toolbar", children: [
11854
11854
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-float-section__toolbar-title", children: t("chrome.tripFloat.panelLabel") }),
11855
11855
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-float-section__toolbar-spacer" }),
@@ -11964,7 +11964,7 @@ function DispatchDialog({
11964
11964
  onClose,
11965
11965
  onSend
11966
11966
  }) {
11967
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
11967
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
11968
11968
  const titleId = react.useId();
11969
11969
  const [everyone, setEveryone] = react.useState(true);
11970
11970
  const [picked, setPicked] = react.useState(/* @__PURE__ */ new Set());
@@ -12112,7 +12112,7 @@ function FormRow2({
12112
12112
  onExport,
12113
12113
  onOpenMissing
12114
12114
  }) {
12115
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
12115
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
12116
12116
  const canSeeMissing = supportsWhoIsMissing(form);
12117
12117
  return /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "kf-trip-forms-section__row", children: [
12118
12118
  /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "kf-trip-forms-section__row-body", children: [
@@ -12165,14 +12165,14 @@ function FormsSkeleton() {
12165
12165
  ] }, id)) });
12166
12166
  }
12167
12167
  function FormsEmpty() {
12168
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
12168
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
12169
12169
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-forms-section__state", children: [
12170
12170
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-forms-section__state-title", children: t("chrome.tripForms.emptyTitle") }),
12171
12171
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-forms-section__state-body", children: t("chrome.tripForms.emptyBody") })
12172
12172
  ] });
12173
12173
  }
12174
12174
  function FormsFailed({ onRetry }) {
12175
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
12175
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
12176
12176
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-forms-section__state", role: "alert", children: [
12177
12177
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-forms-section__state-title", children: t("chrome.tripForms.failedTitle") }),
12178
12178
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-forms-section__state-body", children: t("chrome.tripForms.failedBody") }),
@@ -12180,7 +12180,7 @@ function FormsFailed({ onRetry }) {
12180
12180
  ] });
12181
12181
  }
12182
12182
  function FormsDark({ reason }) {
12183
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
12183
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
12184
12184
  if (reason === "mode") return null;
12185
12185
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-forms-section__state", "data-dark": reason, children: [
12186
12186
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-forms-section__state-title", children: t(reason === "flag" ? "chrome.tripForms.flagDarkTitle" : "chrome.tripForms.dataDarkTitle") }),
@@ -12225,7 +12225,7 @@ function OnBehalfDialog({
12225
12225
  onClose,
12226
12226
  onSubmit
12227
12227
  }) {
12228
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
12228
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
12229
12229
  const titleId = react.useId();
12230
12230
  const [values, setValues] = react.useState({});
12231
12231
  const answerable = react.useMemo(
@@ -12363,7 +12363,7 @@ function ParticipantRow({
12363
12363
  onFillOnBehalf,
12364
12364
  onOpenResponse
12365
12365
  }) {
12366
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
12366
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
12367
12367
  const status = row.response?.status;
12368
12368
  const submitted = status === "SUBMITTED";
12369
12369
  return /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "kf-trip-forms-section__row", "data-done": submitted ? "true" : void 0, children: [
@@ -12416,7 +12416,7 @@ function ResponseViewer({
12416
12416
  failed,
12417
12417
  onClose
12418
12418
  }) {
12419
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
12419
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
12420
12420
  const titleId = react.useId();
12421
12421
  return /* @__PURE__ */ jsxRuntime.jsx(
12422
12422
  SheetDialog,
@@ -12452,9 +12452,9 @@ function TripFormsSection({
12452
12452
  components,
12453
12453
  style
12454
12454
  }) {
12455
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
12456
- const forms = chunkXBYLSJOS_cjs.useForms(tripRef);
12457
- const { listTripManifest } = chunk2D4Y4LOT_cjs.useDirectories();
12455
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
12456
+ const forms = chunkDI77H7ED_cjs.useForms(tripRef);
12457
+ const { listTripManifest } = chunkIBVCH6GC_cjs.useDirectories();
12458
12458
  const [openFormId, setOpenFormId] = react.useState(null);
12459
12459
  const [completion, setCompletion] = react.useState(void 0);
12460
12460
  const [manifest, setManifest] = react.useState(void 0);
@@ -12576,7 +12576,7 @@ function TripFormsSection({
12576
12576
  if (forms.status === "dark") return /* @__PURE__ */ jsxRuntime.jsx(FormsDark, { reason: forms.reason });
12577
12577
  const inert = readOnly;
12578
12578
  const unreadable = ready !== null && ready.syncedAt === void 0 && rows.length === 0;
12579
- return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-forms-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
12579
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-forms-section", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
12580
12580
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-forms-section__head", children: [
12581
12581
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-forms-section__head-text", children: [
12582
12582
  /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "kf-trip-forms-section__title", children: openForm === null ? t("chrome.tripForms.panelLabel") : openForm.title }),
@@ -12726,7 +12726,7 @@ function ChangeLogDialog({
12726
12726
  onRetry,
12727
12727
  onClose
12728
12728
  }) {
12729
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
12729
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
12730
12730
  const titleId = react.useId();
12731
12731
  return /* @__PURE__ */ jsxRuntime.jsx(
12732
12732
  SheetDialog,
@@ -13073,7 +13073,7 @@ function ItemRow({
13073
13073
  onMoveBy,
13074
13074
  onOpenVendor
13075
13075
  }) {
13076
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
13076
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
13077
13077
  const derived = deriveItineraryItem(item, timeZone, serverTime);
13078
13078
  const isDone = item.status === "COMPLETED";
13079
13079
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -13195,7 +13195,7 @@ function DayCard({
13195
13195
  onSwitchToTimeline,
13196
13196
  onOpenVendor
13197
13197
  }) {
13198
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
13198
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
13199
13199
  const { draggingId, overIndex, rowProps, moveBy } = useListReorder({
13200
13200
  enabled: canEdit,
13201
13201
  onMove: onReorder
@@ -13246,7 +13246,7 @@ function DayCard({
13246
13246
  ] });
13247
13247
  }
13248
13248
  function DayPillStrip({ pills, activeIso, onSelect }) {
13249
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
13249
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
13250
13250
  return /* @__PURE__ */ jsxRuntime.jsx(
13251
13251
  "div",
13252
13252
  {
@@ -13323,7 +13323,7 @@ function EditDayDialog({
13323
13323
  onClose,
13324
13324
  onSubmit
13325
13325
  }) {
13326
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
13326
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
13327
13327
  const titleId = react.useId();
13328
13328
  const [cardTitle, setCardTitle] = react.useState(group.day.cardTitle);
13329
13329
  const [hasSummary, setHasSummary] = react.useState(
@@ -13466,7 +13466,7 @@ function ItemFormDialog({
13466
13466
  onSubmit,
13467
13467
  onDelete
13468
13468
  }) {
13469
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
13469
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
13470
13470
  const titleId = react.useId();
13471
13471
  const isEdit = item !== null;
13472
13472
  const [isoDate, setIsoDate] = react.useState(
@@ -13721,7 +13721,7 @@ function ItinerarySkeleton({ view }) {
13721
13721
  ] });
13722
13722
  }
13723
13723
  function ItineraryEmpty() {
13724
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
13724
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
13725
13725
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-itinerary-section__state", children: [
13726
13726
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-itinerary-section__state-glyph", children: /* @__PURE__ */ jsxRuntime.jsx(CalendarIcon, {}) }),
13727
13727
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-itinerary-section__state-title", children: t("chrome.tripItinerary.emptyTitle") }),
@@ -13729,7 +13729,7 @@ function ItineraryEmpty() {
13729
13729
  ] });
13730
13730
  }
13731
13731
  function ItineraryFailed({ onRetry }) {
13732
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
13732
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
13733
13733
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-itinerary-section__state", role: "alert", children: [
13734
13734
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-itinerary-section__state-title", children: t("chrome.tripItinerary.failedTitle") }),
13735
13735
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-itinerary-section__state-body", children: t("chrome.tripItinerary.failedBody") }),
@@ -13737,7 +13737,7 @@ function ItineraryFailed({ onRetry }) {
13737
13737
  ] });
13738
13738
  }
13739
13739
  function TimelineView({ entries, onOpenDay }) {
13740
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
13740
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
13741
13741
  return /* @__PURE__ */ jsxRuntime.jsx("section", { className: "kf-trip-itinerary-section__timeline", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-itinerary-section__timeline-grid", children: [
13742
13742
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-itinerary-section__timeline-line", "aria-hidden": "true" }),
13743
13743
  entries.map((entry, index) => /* @__PURE__ */ jsxRuntime.jsx(
@@ -13824,7 +13824,7 @@ var OPTIONS2 = [
13824
13824
  { value: "timeline", labelKey: "chrome.tripItinerary.viewTimeline" }
13825
13825
  ];
13826
13826
  function ViewSegment({ value, onChange }) {
13827
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
13827
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
13828
13828
  return /* @__PURE__ */ jsxRuntime.jsxs("fieldset", { className: "kf-trip-itinerary-section__segment", children: [
13829
13829
  /* @__PURE__ */ jsxRuntime.jsx("legend", { className: "kf-visually-hidden", children: t("chrome.tripItinerary.viewLabel") }),
13830
13830
  OPTIONS2.map((option) => /* @__PURE__ */ jsxRuntime.jsx(
@@ -13850,8 +13850,8 @@ function TripItinerarySection({
13850
13850
  onOpenVendor,
13851
13851
  style
13852
13852
  }) {
13853
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
13854
- const itinerary = chunkXBYLSJOS_cjs.useItinerary(tripRef);
13853
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
13854
+ const itinerary = chunkDI77H7ED_cjs.useItinerary(tripRef);
13855
13855
  const [view, setView] = react.useState("days");
13856
13856
  const [activeIso, setActiveIso] = react.useState(null);
13857
13857
  const [overlay, setOverlay] = react.useState({ kind: "none" });
@@ -14024,7 +14024,7 @@ function TripItinerarySection({
14024
14024
  setActiveIso(isoDate);
14025
14025
  setView("days");
14026
14026
  }
14027
- return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-itinerary-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
14027
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-itinerary-section", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
14028
14028
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-itinerary-section__toolbar", children: [
14029
14029
  /* @__PURE__ */ jsxRuntime.jsx(ViewSegment, { value: view, onChange: setView }),
14030
14030
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-itinerary-section__toolbar-spacer" }),
@@ -14209,9 +14209,9 @@ function AddTravellerDialog({
14209
14209
  onClose,
14210
14210
  onAdded
14211
14211
  }) {
14212
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
14212
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
14213
14213
  const titleId = react.useId();
14214
- const { makeTravellersFetch, addTraveller, createAgencyTraveller } = chunk2D4Y4LOT_cjs.useDirectories();
14214
+ const { makeTravellersFetch, addTraveller, createAgencyTraveller } = chunkIBVCH6GC_cjs.useDirectories();
14215
14215
  const [mode, setMode] = react.useState("search");
14216
14216
  const [term, setTerm] = react.useState("");
14217
14217
  const [debounced, setDebounced] = react.useState("");
@@ -14225,7 +14225,7 @@ function AddTravellerDialog({
14225
14225
  return () => clearTimeout(timer);
14226
14226
  }, [term]);
14227
14227
  function reportFailure(error) {
14228
- setErrorCode(chunkXBYLSJOS_cjs.classifyError(error).code ?? "unknown");
14228
+ setErrorCode(chunkDI77H7ED_cjs.classifyError(error).code ?? "unknown");
14229
14229
  }
14230
14230
  async function addExisting(externalTravellerId, fullName) {
14231
14231
  setPending(true);
@@ -14377,8 +14377,8 @@ function DirectoryResults({
14377
14377
  pendingId,
14378
14378
  onPick
14379
14379
  }) {
14380
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
14381
- const { rows, hasNext, loadNext, settled, error } = chunk2D4Y4LOT_cjs.usePaginatedList(fetch);
14380
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
14381
+ const { rows, hasNext, loadNext, settled, error } = chunkIBVCH6GC_cjs.usePaginatedList(fetch);
14382
14382
  if (!settled) {
14383
14383
  return /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-manifest-section__dialog-note", "aria-live": "polite", children: t("chrome.tripManifest.addSearching") });
14384
14384
  }
@@ -14461,9 +14461,9 @@ function EditPartyDialog({
14461
14461
  onClose,
14462
14462
  onSaved
14463
14463
  }) {
14464
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
14464
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
14465
14465
  const titleId = react.useId();
14466
- const { patchParty, deleteParty } = chunk2D4Y4LOT_cjs.useDirectories();
14466
+ const { patchParty, deleteParty } = chunkIBVCH6GC_cjs.useDirectories();
14467
14467
  const party = group.party;
14468
14468
  const [kind, setKind] = react.useState(
14469
14469
  party?.kind ?? "OTHER"
@@ -14624,7 +14624,7 @@ function EditPartyDialog({
14624
14624
  }
14625
14625
  var DIET_BUCKET_CAP = 4;
14626
14626
  function ManifestFacetTiles({ facets, filtered }) {
14627
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
14627
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
14628
14628
  const dietEntries = Object.entries(facets.dietCounts).filter(([, count]) => count > 0).sort((a, b) => b[1] - a[1]);
14629
14629
  const shown = dietEntries.slice(0, DIET_BUCKET_CAP);
14630
14630
  const hiddenCount = dietEntries.length - shown.length;
@@ -14706,7 +14706,7 @@ function ManifestFiltersPopover({
14706
14706
  value,
14707
14707
  onChange
14708
14708
  }) {
14709
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
14709
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
14710
14710
  const [open, setOpen] = react.useState(false);
14711
14711
  const rootRef = react.useRef(null);
14712
14712
  const triggerRef = react.useRef(null);
@@ -14846,7 +14846,7 @@ var KIND_LABEL_KEY2 = {
14846
14846
  OTHER: "chrome.tripManifest.partyKind.other"
14847
14847
  };
14848
14848
  function ManifestGroupCard({ group, onEdit, children }) {
14849
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
14849
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
14850
14850
  const party = group.party;
14851
14851
  const isSolo = party === null;
14852
14852
  const heading = isSolo ? t("chrome.tripManifest.soloHeading") : party.label ?? t(KIND_LABEL_KEY2[party.kind] ?? "chrome.tripManifest.partyKind.other");
@@ -14934,7 +14934,7 @@ function ManifestRowKebab({
14934
14934
  onShareLink,
14935
14935
  onOpenProfile
14936
14936
  }) {
14937
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
14937
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
14938
14938
  const [open, setOpen] = react.useState(false);
14939
14939
  const rootRef = react.useRef(null);
14940
14940
  const triggerRef = react.useRef(null);
@@ -15033,10 +15033,10 @@ function ManifestRow({
15033
15033
  onOpenProfile,
15034
15034
  style
15035
15035
  }) {
15036
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
15036
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
15037
15037
  const derived = deriveManifestRow(row, index, serverTime);
15038
15038
  const traveller = row.traveller;
15039
- return /* @__PURE__ */ jsxRuntime.jsxs("tr", { role: "row", className: "kf-trip-manifest-section__row", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
15039
+ return /* @__PURE__ */ jsxRuntime.jsxs("tr", { role: "row", className: "kf-trip-manifest-section__row", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
15040
15040
  /* @__PURE__ */ jsxRuntime.jsxs(
15041
15041
  "td",
15042
15042
  {
@@ -15110,7 +15110,7 @@ function ManifestTable({
15110
15110
  onOpenProfile,
15111
15111
  RowComponent
15112
15112
  }) {
15113
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
15113
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
15114
15114
  const Row = RowComponent ?? ManifestRow;
15115
15115
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-manifest-section__table-wrap", children: /* @__PURE__ */ jsxRuntime.jsxs("table", { role: "table", className: "kf-trip-manifest-section__table", children: [
15116
15116
  showHead ? /* @__PURE__ */ jsxRuntime.jsx("thead", { role: "rowgroup", children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { role: "row", className: "kf-trip-manifest-section__head-row", children: [
@@ -15157,8 +15157,8 @@ function ManifestResultsBody({
15157
15157
  RowComponent,
15158
15158
  onRetry
15159
15159
  }) {
15160
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
15161
- const { makeManifestFetch, facets, groupedPageSize } = chunk2D4Y4LOT_cjs.useAgencyTripManifest(tripRef);
15160
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
15161
+ const { makeManifestFetch, facets, groupedPageSize } = chunkIBVCH6GC_cjs.useAgencyTripManifest(tripRef);
15162
15162
  const [errorCode, setErrorCode] = react.useState(void 0);
15163
15163
  const [hasSettled, setHasSettled] = react.useState(false);
15164
15164
  const [serverTime, setServerTime] = react.useState(void 0);
@@ -15175,7 +15175,7 @@ function ManifestResultsBody({
15175
15175
  if (meta?.serverTime !== void 0) setServerTime(meta.serverTime);
15176
15176
  return page;
15177
15177
  } catch (error) {
15178
- setErrorCode(chunkXBYLSJOS_cjs.classifyError(error).code ?? "unknown");
15178
+ setErrorCode(chunkDI77H7ED_cjs.classifyError(error).code ?? "unknown");
15179
15179
  return { rows: [], nextCursor: void 0 };
15180
15180
  } finally {
15181
15181
  setHasSettled(true);
@@ -15183,7 +15183,7 @@ function ManifestResultsBody({
15183
15183
  },
15184
15184
  [makeManifestFetch, filters, grouped, groupedPageSize]
15185
15185
  );
15186
- const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunk2D4Y4LOT_cjs.usePaginatedList(fetch, {
15186
+ const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunkIBVCH6GC_cjs.usePaginatedList(fetch, {
15187
15187
  accumulate: grouped
15188
15188
  });
15189
15189
  react.useEffect(() => {
@@ -15344,7 +15344,7 @@ function ManifestSearchInput({
15344
15344
  debounceMs,
15345
15345
  onDebouncedChange
15346
15346
  }) {
15347
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
15347
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
15348
15348
  const [value, setValue] = react.useState("");
15349
15349
  react.useEffect(() => {
15350
15350
  const timer = setTimeout(() => onDebouncedChange(value.trim()), debounceMs);
@@ -15371,8 +15371,8 @@ function RemoveTravellerDialog({
15371
15371
  onClose,
15372
15372
  onRemoved
15373
15373
  }) {
15374
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
15375
- const { removeFromManifest } = chunk2D4Y4LOT_cjs.useDirectories();
15374
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
15375
+ const { removeFromManifest } = chunkIBVCH6GC_cjs.useDirectories();
15376
15376
  const titleId = react.useId();
15377
15377
  const [pending, setPending] = react.useState(false);
15378
15378
  const [errorCode, setErrorCode] = react.useState(void 0);
@@ -15448,12 +15448,14 @@ var FULL_DATE_OPTS = {
15448
15448
  month: "short",
15449
15449
  year: "numeric"
15450
15450
  };
15451
- var SHARE_BASE_URL_KEY = "share.baseUrl.default";
15452
- function shareAddress(baseUrl, token) {
15453
- if (baseUrl === void 0 || baseUrl.trim().length === 0) {
15451
+ function shareAddress(build, token) {
15452
+ if (build === null) return token;
15453
+ try {
15454
+ const url = build(token);
15455
+ return typeof url === "string" && url.length > 0 ? url : token;
15456
+ } catch {
15454
15457
  return token;
15455
15458
  }
15456
- return `${baseUrl.replace(/\/+$/, "")}/${token}`;
15457
15459
  }
15458
15460
  function ShareLinkDialog({
15459
15461
  tripRef,
@@ -15461,12 +15463,12 @@ function ShareLinkDialog({
15461
15463
  travellerName,
15462
15464
  onClose
15463
15465
  }) {
15464
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
15466
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
15465
15467
  const titleId = react.useId();
15466
- const shareBaseUrl = chunk2D4Y4LOT_cjs.useResolvedSetting(SHARE_BASE_URL_KEY);
15468
+ const buildShareUrl = chunkIBVCH6GC_cjs.useBuildShareUrl();
15467
15469
  const isFamily = travellerRef === null;
15468
- const offerable = chunk2D4Y4LOT_cjs.familySafeSections(isFamily);
15469
- const { links, readFailed, mint, revoke, regenerate, reveal } = chunk2D4Y4LOT_cjs.useShareLinks(
15470
+ const offerable = chunkIBVCH6GC_cjs.familySafeSections(isFamily);
15471
+ const { links, readFailed, mint, revoke, regenerate, reveal } = chunkIBVCH6GC_cjs.useShareLinks(
15470
15472
  tripRef,
15471
15473
  travellerRef
15472
15474
  );
@@ -15574,7 +15576,7 @@ function ShareLinkDialog({
15574
15576
  {
15575
15577
  readOnly: true,
15576
15578
  className: "kf-trip-manifest-section__minted-token",
15577
- value: shareAddress(shareBaseUrl, minted.token),
15579
+ value: shareAddress(buildShareUrl, minted.token),
15578
15580
  "aria-label": t("chrome.tripManifest.mintedTokenLabel"),
15579
15581
  onFocus: (event) => event.currentTarget.select()
15580
15582
  }
@@ -15584,7 +15586,7 @@ function ShareLinkDialog({
15584
15586
  {
15585
15587
  type: "button",
15586
15588
  className: "kf-trip-manifest-section__dialog-secondary",
15587
- onClick: () => void copy(shareAddress(shareBaseUrl, minted.token)),
15589
+ onClick: () => void copy(shareAddress(buildShareUrl, minted.token)),
15588
15590
  children: copied ? t("chrome.tripManifest.copied") : t("chrome.tripManifest.copy")
15589
15591
  }
15590
15592
  ),
@@ -15734,7 +15736,7 @@ function ShareLinkDialog({
15734
15736
  {
15735
15737
  readOnly: true,
15736
15738
  className: "kf-trip-manifest-section__minted-token",
15737
- value: shareAddress(shareBaseUrl, String(revealed[link.id])),
15739
+ value: shareAddress(buildShareUrl, String(revealed[link.id])),
15738
15740
  "aria-label": t("chrome.tripManifest.mintedTokenLabel"),
15739
15741
  onFocus: (event) => event.currentTarget.select()
15740
15742
  }
@@ -15744,7 +15746,7 @@ function ShareLinkDialog({
15744
15746
  {
15745
15747
  type: "button",
15746
15748
  className: "kf-trip-manifest-section__link-action-button",
15747
- onClick: () => void copy(shareAddress(shareBaseUrl, String(revealed[link.id]))),
15749
+ onClick: () => void copy(shareAddress(buildShareUrl, String(revealed[link.id]))),
15748
15750
  children: copied ? t("chrome.tripManifest.copied") : t("chrome.tripManifest.copy")
15749
15751
  }
15750
15752
  )
@@ -15799,7 +15801,7 @@ function SideDrawer({
15799
15801
  "aria-modal": "true",
15800
15802
  "aria-labelledby": titleId,
15801
15803
  tabIndex: -1,
15802
- style: chunkCCJ5XNWY_cjs.tokenStyle(style),
15804
+ style: chunkCK3L6Y43_cjs.tokenStyle(style),
15803
15805
  children: [
15804
15806
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-admin-side-drawer__header", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-admin-side-drawer__header-row", children: [
15805
15807
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-admin-side-drawer__identity", children: [
@@ -15867,11 +15869,11 @@ function TravellerDetailDialog({
15867
15869
  onClose,
15868
15870
  onRemove
15869
15871
  }) {
15870
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
15872
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
15871
15873
  const titleId = react.useId();
15872
- const { read, readFailed, refresh } = chunkXBYLSJOS_cjs.useTravellerProfile(tripRef, travellerRef);
15873
- const forms = chunk2D4Y4LOT_cjs.useTravellerFormResponses(tripRef, travellerRef);
15874
- const { addTravellerNote } = chunk2D4Y4LOT_cjs.useDirectories();
15874
+ const { read, readFailed, refresh } = chunkDI77H7ED_cjs.useTravellerProfile(tripRef, travellerRef);
15875
+ const forms = chunkIBVCH6GC_cjs.useTravellerFormResponses(tripRef, travellerRef);
15876
+ const { addTravellerNote } = chunkIBVCH6GC_cjs.useDirectories();
15875
15877
  const [noteDraft, setNoteDraft] = react.useState("");
15876
15878
  const [notePending, setNotePending] = react.useState(false);
15877
15879
  const [noteFailed, setNoteFailed] = react.useState(false);
@@ -16100,7 +16102,7 @@ function DetailRow({
16100
16102
  absentLabel,
16101
16103
  meta
16102
16104
  }) {
16103
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
16105
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
16104
16106
  const has = value !== null && value !== void 0 && value.length > 0;
16105
16107
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-manifest-section__detail-row", children: [
16106
16108
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-manifest-section__detail-label", children: label }),
@@ -16123,7 +16125,7 @@ function TripManifestSection({
16123
16125
  components,
16124
16126
  style
16125
16127
  }) {
16126
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
16128
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
16127
16129
  const [q, setQ] = react.useState("");
16128
16130
  const [groupBy, setGroupBy] = react.useState("booking_group");
16129
16131
  const [filters, setFilters] = react.useState({});
@@ -16152,7 +16154,7 @@ function TripManifestSection({
16152
16154
  [groupBy, writeToken, wireFilters]
16153
16155
  );
16154
16156
  const hasActiveFilter = q.length > 0 || Object.keys(filters).length > 0;
16155
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-manifest-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
16157
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-manifest-section", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
16156
16158
  facets === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(ManifestFacetTiles, { facets, filtered: hasActiveFilter }),
16157
16159
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-manifest-section__toolbar", children: [
16158
16160
  /* @__PURE__ */ jsxRuntime.jsx(ManifestSearchInput, { debounceMs: DEBOUNCE_MS, onDebouncedChange: setQ }),
@@ -16379,7 +16381,7 @@ function PaymentsSkeleton() {
16379
16381
  ] }, id)) });
16380
16382
  }
16381
16383
  function PaymentsEmpty({ onRecord }) {
16382
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
16384
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
16383
16385
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-payments-section__state", children: [
16384
16386
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-payments-section__state-glyph", children: /* @__PURE__ */ jsxRuntime.jsx(ReceiptIcon, {}) }),
16385
16387
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-payments-section__state-title", children: t("chrome.tripPayments.emptyTitle") }),
@@ -16388,7 +16390,7 @@ function PaymentsEmpty({ onRecord }) {
16388
16390
  ] });
16389
16391
  }
16390
16392
  function PaymentsFailed({ onRetry }) {
16391
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
16393
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
16392
16394
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-payments-section__state", role: "alert", children: [
16393
16395
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-payments-section__state-title", children: t("chrome.tripPayments.failedTitle") }),
16394
16396
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-payments-section__state-body", children: t("chrome.tripPayments.failedBody") }),
@@ -16396,7 +16398,7 @@ function PaymentsFailed({ onRetry }) {
16396
16398
  ] });
16397
16399
  }
16398
16400
  function PaymentsDark({ reason }) {
16399
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
16401
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
16400
16402
  if (reason === "mode") {
16401
16403
  return null;
16402
16404
  }
@@ -16417,7 +16419,7 @@ function PaymentsTable({
16417
16419
  locked,
16418
16420
  onVoid
16419
16421
  }) {
16420
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
16422
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
16421
16423
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-payments-section__table-wrap", children: /* @__PURE__ */ jsxRuntime.jsxs("table", { className: "kf-trip-payments-section__table", children: [
16422
16424
  /* @__PURE__ */ jsxRuntime.jsx("caption", { className: "kf-visually-hidden", children: t("chrome.tripPayments.tableCaption") }),
16423
16425
  /* @__PURE__ */ jsxRuntime.jsx("thead", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
@@ -16476,7 +16478,7 @@ function RecordPaymentDialog({
16476
16478
  onClose,
16477
16479
  onSubmit
16478
16480
  }) {
16479
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
16481
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
16480
16482
  const titleId = react.useId();
16481
16483
  const [travellerId, setTravellerId] = react.useState(null);
16482
16484
  const [amount, setAmount] = react.useState("");
@@ -16651,7 +16653,7 @@ function VoidPaymentDialog({
16651
16653
  onClose,
16652
16654
  onSubmit
16653
16655
  }) {
16654
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
16656
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
16655
16657
  const titleId = react.useId();
16656
16658
  const [reason, setReason] = react.useState("");
16657
16659
  const trimmed = reason.trim();
@@ -16729,9 +16731,9 @@ function TripPaymentsSection({
16729
16731
  balance,
16730
16732
  style
16731
16733
  }) {
16732
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
16733
- const collections = chunkXBYLSJOS_cjs.useCollections(tripRef);
16734
- const parties = chunkXBYLSJOS_cjs.useParties(tripRef);
16734
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
16735
+ const collections = chunkDI77H7ED_cjs.useCollections(tripRef);
16736
+ const parties = chunkDI77H7ED_cjs.useParties(tripRef);
16735
16737
  const [overlay, setOverlay] = react.useState({ kind: "none" });
16736
16738
  const [pending, setPending] = react.useState(false);
16737
16739
  const [errorCode, setErrorCode] = react.useState(void 0);
@@ -16811,7 +16813,7 @@ function TripPaymentsSection({
16811
16813
  }
16812
16814
  const currency = balance?.currency ?? rows[0]?.currency ?? "INR";
16813
16815
  const owingCount = eligibleRows.filter((row) => row.outstandingMinor > 0).length;
16814
- return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-payments-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
16816
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-payments-section", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
16815
16817
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-payments-section__toolbar", children: [
16816
16818
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-payments-section__toolbar-title", children: t("chrome.tripPayments.panelLabel") }),
16817
16819
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-payments-section__toolbar-spacer" }),
@@ -16952,7 +16954,7 @@ function AssignTravellerDialog({
16952
16954
  onSubmit,
16953
16955
  onClose
16954
16956
  }) {
16955
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
16957
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
16956
16958
  const titleId = react.useId();
16957
16959
  const [pointId, setPointId] = react.useState(stops[0]?.id ?? "");
16958
16960
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -17023,7 +17025,7 @@ function BoardingRoster({
17023
17025
  onRetry,
17024
17026
  stops
17025
17027
  }) {
17026
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
17028
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
17027
17029
  if (failed) {
17028
17030
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-pickups-section__state", role: "alert", children: [
17029
17031
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-pickups-section__state-title", children: t("chrome.tripPickups.boardingFailedTitle") }),
@@ -17083,7 +17085,7 @@ function TravellerBoardRow({
17083
17085
  busy,
17084
17086
  onCorrect
17085
17087
  }) {
17086
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
17088
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
17087
17089
  const correctable = occupant.status !== "PENDING";
17088
17090
  const next = occupant.status === "BOARDED" ? "NO_SHOW" : "BOARDED";
17089
17091
  return /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "kf-trip-pickups-section__roster-row", children: [
@@ -17121,7 +17123,7 @@ function DeleteStopDialog({
17121
17123
  onDelete,
17122
17124
  onClose
17123
17125
  }) {
17124
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
17126
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
17125
17127
  const titleId = react.useId();
17126
17128
  const [target, setTarget] = react.useState(siblings[0]?.id ?? "");
17127
17129
  const occupied = stop.expectedCount > 0;
@@ -17375,7 +17377,7 @@ function PickupsEmpty({
17375
17377
  kindLabel,
17376
17378
  onAdd
17377
17379
  }) {
17378
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
17380
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
17379
17381
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-pickups-section__state", children: [
17380
17382
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-pickups-section__state-glyph", children: /* @__PURE__ */ jsxRuntime.jsx(BusIcon, {}) }),
17381
17383
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-pickups-section__state-title", children: t("chrome.tripPickups.emptyTitle").replace("{kind}", kindLabel) }),
@@ -17384,7 +17386,7 @@ function PickupsEmpty({
17384
17386
  ] });
17385
17387
  }
17386
17388
  function PickupsFailed({ onRetry }) {
17387
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
17389
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
17388
17390
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-pickups-section__state", role: "alert", children: [
17389
17391
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-pickups-section__state-title", children: t("chrome.tripPickups.failedTitle") }),
17390
17392
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-pickups-section__state-body", children: t("chrome.tripPickups.failedBody") }),
@@ -17392,7 +17394,7 @@ function PickupsFailed({ onRetry }) {
17392
17394
  ] });
17393
17395
  }
17394
17396
  function PickupsDark({ reason }) {
17395
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
17397
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
17396
17398
  if (reason === "mode") {
17397
17399
  return null;
17398
17400
  }
@@ -17426,7 +17428,7 @@ function StopFormDialog({
17426
17428
  onClose,
17427
17429
  onSubmit
17428
17430
  }) {
17429
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
17431
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
17430
17432
  const titleId = react.useId();
17431
17433
  const isEdit = stop !== null;
17432
17434
  const [kind, setKind] = react.useState(stop?.kind ?? defaultKind);
@@ -17573,7 +17575,7 @@ function StopFormDialog({
17573
17575
  );
17574
17576
  }
17575
17577
  function StopKebab({ stopName, onEdit, onDelete }) {
17576
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
17578
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
17577
17579
  const [open, setOpen] = react.useState(false);
17578
17580
  const rootRef = react.useRef(null);
17579
17581
  const triggerRef = react.useRef(null);
@@ -17650,7 +17652,7 @@ function StopCard({
17650
17652
  onDelete,
17651
17653
  onMoveBy
17652
17654
  }) {
17653
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
17655
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
17654
17656
  const isClosed = stop.status === "CLOSED";
17655
17657
  const canReorder = !isClosed;
17656
17658
  const percent = boardedPercent(stop);
@@ -17798,7 +17800,7 @@ function Segment({
17798
17800
  value,
17799
17801
  onChange
17800
17802
  }) {
17801
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
17803
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
17802
17804
  return /* @__PURE__ */ jsxRuntime.jsxs("fieldset", { className: "kf-trip-pickups-section__segment", children: [
17803
17805
  /* @__PURE__ */ jsxRuntime.jsx("legend", { className: "kf-visually-hidden", children: t(legendKey) }),
17804
17806
  options.map((option) => /* @__PURE__ */ jsxRuntime.jsx(
@@ -17861,8 +17863,8 @@ function TripPickupsSection({
17861
17863
  tripStartIso,
17862
17864
  style
17863
17865
  }) {
17864
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
17865
- const pickups = chunkXBYLSJOS_cjs.usePickups(tripRef);
17866
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
17867
+ const pickups = chunkDI77H7ED_cjs.usePickups(tripRef);
17866
17868
  const [kind, setKind] = react.useState("PICKUP");
17867
17869
  const [view, setView] = react.useState("stops");
17868
17870
  const [overlay, setOverlay] = react.useState({ kind: "none" });
@@ -18022,7 +18024,7 @@ function TripPickupsSection({
18022
18024
  const kindLabel = t(
18023
18025
  kind === "PICKUP" ? "chrome.tripPickups.kindPickupOne" : "chrome.tripPickups.kindDropOne"
18024
18026
  );
18025
- return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-pickups-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
18027
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-pickups-section", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
18026
18028
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-pickups-section__toolbar", children: [
18027
18029
  /* @__PURE__ */ jsxRuntime.jsx(ViewSwitcher, { value: view, onChange: setView }),
18028
18030
  /* @__PURE__ */ jsxRuntime.jsx(KindSwitcher, { value: kind, onChange: setKind }),
@@ -18245,7 +18247,7 @@ function AutoAssignDialog({
18245
18247
  onApply,
18246
18248
  onClose
18247
18249
  }) {
18248
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
18250
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
18249
18251
  const titleId = react.useId();
18250
18252
  const [reassignAll, setReassignAll] = react.useState(false);
18251
18253
  const roomCodeById = new Map(group.rooms.map((room) => [room.id, room.code]));
@@ -18340,7 +18342,7 @@ function AutoAssignDialog({
18340
18342
  /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-rooming-section__plan", children: [
18341
18343
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-rooming-section__plan-title", children: t("chrome.tripRooming.rulesTitle") }),
18342
18344
  /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "kf-trip-rooming-section__rule-list", children: preview.perRule.map((entry) => {
18343
- const severity = chunkXBYLSJOS_cjs.roomingHeuristicSeverity(entry.rule);
18345
+ const severity = chunkDI77H7ED_cjs.roomingHeuristicSeverity(entry.rule);
18344
18346
  const relaxed = entry.outcome === "relaxed";
18345
18347
  const violation = relaxed && severity === "never";
18346
18348
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -18386,7 +18388,7 @@ function DeleteShell({
18386
18388
  onConfirm,
18387
18389
  onClose
18388
18390
  }) {
18389
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
18391
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
18390
18392
  const titleId = react.useId();
18391
18393
  return /* @__PURE__ */ jsxRuntime.jsxs(
18392
18394
  SheetDialog,
@@ -18432,7 +18434,7 @@ function DeleteRoomDialog({
18432
18434
  onConfirm,
18433
18435
  onClose
18434
18436
  }) {
18435
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
18437
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
18436
18438
  const occupied = room.beds.filter((bed) => bed.occupant !== null).length;
18437
18439
  return /* @__PURE__ */ jsxRuntime.jsx(
18438
18440
  DeleteShell,
@@ -18458,7 +18460,7 @@ function DeleteWindowDialog({
18458
18460
  onConfirm,
18459
18461
  onClose
18460
18462
  }) {
18461
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
18463
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
18462
18464
  return /* @__PURE__ */ jsxRuntime.jsx(
18463
18465
  DeleteShell,
18464
18466
  {
@@ -18556,15 +18558,15 @@ function roomTypeLabelKey(roomType) {
18556
18558
  return ROOM_TYPE_LABEL_KEY[roomType] ?? "chrome.tripRooming.roomType.shared";
18557
18559
  }
18558
18560
  function toneAttrs(tone) {
18559
- const parsed = chunkXBYLSJOS_cjs.parseRoomingTone(tone);
18561
+ const parsed = chunkDI77H7ED_cjs.parseRoomingTone(tone);
18560
18562
  if (parsed === void 0) {
18561
- return { family: chunkXBYLSJOS_cjs.TONE_FAMILIES.UNKNOWN, shade: 0 };
18563
+ return { family: chunkDI77H7ED_cjs.TONE_FAMILIES.UNKNOWN, shade: 0 };
18562
18564
  }
18563
- const shade = parsed.shade < chunkXBYLSJOS_cjs.SHADES_PER_FAMILY ? parsed.shade : parsed.shade % chunkXBYLSJOS_cjs.SHADES_PER_FAMILY;
18565
+ const shade = parsed.shade < chunkDI77H7ED_cjs.SHADES_PER_FAMILY ? parsed.shade : parsed.shade % chunkDI77H7ED_cjs.SHADES_PER_FAMILY;
18564
18566
  return { family: parsed.family, shade };
18565
18567
  }
18566
18568
  function glyphOf(occupant) {
18567
- return occupant.glyph === "" ? chunkXBYLSJOS_cjs.FALLBACK_GLYPH : occupant.glyph;
18569
+ return occupant.glyph === "" ? chunkDI77H7ED_cjs.FALLBACK_GLYPH : occupant.glyph;
18568
18570
  }
18569
18571
  function TravellerGlyph({
18570
18572
  occupant,
@@ -18602,7 +18604,7 @@ var COLLAPSED_COUNT = 10;
18602
18604
  function IdentityLegend({
18603
18605
  occupants
18604
18606
  }) {
18605
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
18607
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
18606
18608
  const [open, setOpen] = react.useState(false);
18607
18609
  if (occupants.length === 0) {
18608
18610
  return null;
@@ -18729,7 +18731,7 @@ function RoomFormDialog({
18729
18731
  onClose,
18730
18732
  onSubmit
18731
18733
  }) {
18732
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
18734
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
18733
18735
  const titleId = react.useId();
18734
18736
  const isEdit = room !== null;
18735
18737
  const [code, setCode] = react.useState(room?.code ?? "");
@@ -18853,7 +18855,7 @@ function RoomingSkeleton() {
18853
18855
  ] }, id)) });
18854
18856
  }
18855
18857
  function RoomingEmpty({ onAddWindow }) {
18856
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
18858
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
18857
18859
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-rooming-section__state", children: [
18858
18860
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-rooming-section__state-glyph", children: /* @__PURE__ */ jsxRuntime.jsx(BedIcon, {}) }),
18859
18861
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-rooming-section__state-title", children: t("chrome.tripRooming.emptyTitle") }),
@@ -18862,7 +18864,7 @@ function RoomingEmpty({ onAddWindow }) {
18862
18864
  ] });
18863
18865
  }
18864
18866
  function RoomingFailed({ onRetry }) {
18865
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
18867
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
18866
18868
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-rooming-section__state", role: "alert", children: [
18867
18869
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-rooming-section__state-title", children: t("chrome.tripRooming.failedTitle") }),
18868
18870
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-rooming-section__state-body", children: t("chrome.tripRooming.failedBody") }),
@@ -18870,7 +18872,7 @@ function RoomingFailed({ onRetry }) {
18870
18872
  ] });
18871
18873
  }
18872
18874
  function RoomingDark({ reason }) {
18873
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
18875
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
18874
18876
  if (reason === "mode") {
18875
18877
  return null;
18876
18878
  }
@@ -18885,7 +18887,7 @@ function RoomingDark({ reason }) {
18885
18887
  ] });
18886
18888
  }
18887
18889
  function RoomKebab({ roomCode, onEdit, onDelete }) {
18888
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
18890
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
18889
18891
  const [open, setOpen] = react.useState(false);
18890
18892
  const rootRef = react.useRef(null);
18891
18893
  const triggerRef = react.useRef(null);
@@ -18950,7 +18952,7 @@ function RoomKebab({ roomCode, onEdit, onDelete }) {
18950
18952
  ] });
18951
18953
  }
18952
18954
  function RoomCard({ room, drag, busy, onEdit, onDelete }) {
18953
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
18955
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
18954
18956
  const occupied = room.beds.filter((bed) => bed.occupant !== null).length;
18955
18957
  return /* @__PURE__ */ jsxRuntime.jsxs("article", { className: "kf-trip-rooming-section__room", "data-busy": busy ? "true" : void 0, children: [
18956
18958
  /* @__PURE__ */ jsxRuntime.jsxs("header", { className: "kf-trip-rooming-section__room-head", children: [
@@ -19000,7 +19002,7 @@ function UnassignedStrip({
19000
19002
  drag,
19001
19003
  busy
19002
19004
  }) {
19003
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
19005
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
19004
19006
  return /* @__PURE__ */ jsxRuntime.jsxs(
19005
19007
  "div",
19006
19008
  {
@@ -19074,7 +19076,7 @@ function WindowAccordion({
19074
19076
  onEditRoom,
19075
19077
  onDeleteRoom
19076
19078
  }) {
19077
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
19079
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
19078
19080
  const percent = fillPercent(group);
19079
19081
  const bodyId = `kf-rooming-window-${group.window.id}`;
19080
19082
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -19224,7 +19226,7 @@ function WindowFormDialog({
19224
19226
  onClose,
19225
19227
  onSubmit
19226
19228
  }) {
19227
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
19229
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
19228
19230
  const titleId = react.useId();
19229
19231
  const isEdit = window !== null;
19230
19232
  const [label, setLabel] = react.useState(window?.label ?? "");
@@ -19337,8 +19339,8 @@ function TripRoomingSection({
19337
19339
  tripEndIso,
19338
19340
  style
19339
19341
  }) {
19340
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
19341
- const rooming = chunkXBYLSJOS_cjs.useRooming(tripRef);
19342
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
19343
+ const rooming = chunkDI77H7ED_cjs.useRooming(tripRef);
19342
19344
  const [openWindowId, setOpenWindowId] = react.useState(null);
19343
19345
  const [overlay, setOverlay] = react.useState({ kind: "none" });
19344
19346
  const [pending, setPending] = react.useState(false);
@@ -19476,7 +19478,7 @@ function TripRoomingSection({
19476
19478
  return /* @__PURE__ */ jsxRuntime.jsx(RoomingDark, { reason: rooming.reason });
19477
19479
  }
19478
19480
  const pool = ready?.unassignedPool;
19479
- return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-rooming-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
19481
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-rooming-section", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
19480
19482
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-rooming-section__toolbar", children: [
19481
19483
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-rooming-section__toolbar-title", children: t("chrome.tripRooming.panelLabel") }),
19482
19484
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-rooming-section__toolbar-spacer" }),
@@ -19710,7 +19712,7 @@ function isAgencyAuthored(vendor) {
19710
19712
  return vendor.externalId.startsWith("kf-");
19711
19713
  }
19712
19714
  function CategoryTabs({ selected, counts, total, onSelect }) {
19713
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
19715
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
19714
19716
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-suppliers-section__chips", children: [
19715
19717
  /* @__PURE__ */ jsxRuntime.jsxs(
19716
19718
  "button",
@@ -19753,7 +19755,7 @@ function DeleteSupplierDialog({
19753
19755
  onConfirm,
19754
19756
  onClose
19755
19757
  }) {
19756
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
19758
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
19757
19759
  const titleId = react.useId();
19758
19760
  const blockers = deleteBlockers(usage);
19759
19761
  const blockedLocally = blockers !== void 0 && blockers.vehicles + blockers.expenses > 0;
@@ -19906,7 +19908,7 @@ function SupplierFormDialog({
19906
19908
  onClose,
19907
19909
  onSubmit
19908
19910
  }) {
19909
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
19911
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
19910
19912
  const titleId = react.useId();
19911
19913
  const isEdit = supplier !== null;
19912
19914
  const [name, setName] = react.useState(supplier?.name ?? "");
@@ -20028,7 +20030,7 @@ function SuppliersSkeleton() {
20028
20030
  ] }, id)) });
20029
20031
  }
20030
20032
  function SuppliersEmpty({ onAdd }) {
20031
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
20033
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
20032
20034
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-suppliers-section__state", children: [
20033
20035
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-suppliers-section__state-glyph", children: /* @__PURE__ */ jsxRuntime.jsx(StorefrontIcon, {}) }),
20034
20036
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-suppliers-section__state-title", children: t("chrome.tripSuppliers.emptyTitle") }),
@@ -20037,7 +20039,7 @@ function SuppliersEmpty({ onAdd }) {
20037
20039
  ] });
20038
20040
  }
20039
20041
  function SuppliersNoMatch({ onClear }) {
20040
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
20042
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
20041
20043
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-suppliers-section__state", children: [
20042
20044
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-suppliers-section__state-title", children: t("chrome.tripSuppliers.noMatchTitle") }),
20043
20045
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-suppliers-section__state-body", children: t("chrome.tripSuppliers.noMatchBody") }),
@@ -20045,7 +20047,7 @@ function SuppliersNoMatch({ onClear }) {
20045
20047
  ] });
20046
20048
  }
20047
20049
  function SuppliersFailed({ onRetry }) {
20048
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
20050
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
20049
20051
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-suppliers-section__state", role: "alert", children: [
20050
20052
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-suppliers-section__state-title", children: t("chrome.tripSuppliers.failedTitle") }),
20051
20053
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-suppliers-section__state-body", children: t("chrome.tripSuppliers.failedBody") }),
@@ -20053,7 +20055,7 @@ function SuppliersFailed({ onRetry }) {
20053
20055
  ] });
20054
20056
  }
20055
20057
  function SuppliersDark({ reason }) {
20056
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
20058
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
20057
20059
  if (reason === "mode") {
20058
20060
  return null;
20059
20061
  }
@@ -20068,7 +20070,7 @@ function SuppliersDark({ reason }) {
20068
20070
  ] });
20069
20071
  }
20070
20072
  function SupplierKebab({ name, busy, onEdit, onDelete }) {
20071
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
20073
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
20072
20074
  const [open, setOpen] = react.useState(false);
20073
20075
  const rootRef = react.useRef(null);
20074
20076
  const triggerRef = react.useRef(null);
@@ -20135,7 +20137,7 @@ function SupplierKebab({ name, busy, onEdit, onDelete }) {
20135
20137
  ] });
20136
20138
  }
20137
20139
  function SupplierUsageCell({ usage }) {
20138
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
20140
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
20139
20141
  const parts = [];
20140
20142
  if (usage.vehicles !== void 0 && usage.vehicles > 0) {
20141
20143
  parts.push(
@@ -20179,7 +20181,7 @@ function SupplierTable({
20179
20181
  onEdit,
20180
20182
  onDelete
20181
20183
  }) {
20182
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
20184
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
20183
20185
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-suppliers-section__table-wrap", children: /* @__PURE__ */ jsxRuntime.jsxs("table", { className: "kf-trip-suppliers-section__table", children: [
20184
20186
  /* @__PURE__ */ jsxRuntime.jsx("caption", { className: "kf-visually-hidden", children: t("chrome.tripSuppliers.tableCaption") }),
20185
20187
  /* @__PURE__ */ jsxRuntime.jsx("thead", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
@@ -20247,11 +20249,11 @@ function serverBlockOf(error) {
20247
20249
  return { vehicles: details.vehicleCount ?? 0, expenses: details.expenseCount ?? 0 };
20248
20250
  }
20249
20251
  function TripSuppliersSection({ tripRef, style }) {
20250
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
20251
- const vendors = chunkXBYLSJOS_cjs.useVendors(tripRef, "");
20252
- const seating = chunkXBYLSJOS_cjs.useSeating(tripRef);
20253
- const itinerary = chunkXBYLSJOS_cjs.useItinerary(tripRef);
20254
- const expenses = chunkXBYLSJOS_cjs.useExpenses(tripRef);
20252
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
20253
+ const vendors = chunkDI77H7ED_cjs.useVendors(tripRef, "");
20254
+ const seating = chunkDI77H7ED_cjs.useSeating(tripRef);
20255
+ const itinerary = chunkDI77H7ED_cjs.useItinerary(tripRef);
20256
+ const expenses = chunkDI77H7ED_cjs.useExpenses(tripRef);
20255
20257
  const [category, setCategory] = react.useState(null);
20256
20258
  const [query, setQuery] = react.useState("");
20257
20259
  const [sortKey, setSortKey] = react.useState("name");
@@ -20334,7 +20336,7 @@ function TripSuppliersSection({ tripRef, style }) {
20334
20336
  return /* @__PURE__ */ jsxRuntime.jsx(SuppliersDark, { reason: vendors.reason });
20335
20337
  }
20336
20338
  const filtered = category !== null || query.trim() !== "";
20337
- return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-suppliers-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
20339
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-suppliers-section", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
20338
20340
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-suppliers-section__toolbar", children: [
20339
20341
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-suppliers-section__toolbar-title", children: t("chrome.tripSuppliers.panelLabel") }),
20340
20342
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-suppliers-section__toolbar-spacer" }),
@@ -20473,7 +20475,7 @@ function AutoAssignDialog2({
20473
20475
  onApply,
20474
20476
  onClose
20475
20477
  }) {
20476
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
20478
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
20477
20479
  const titleId = react.useId();
20478
20480
  const [reassignAll, setReassignAll] = react.useState(false);
20479
20481
  const [genderAdjacency, setGenderAdjacency] = react.useState("AVOID_UNRELATED");
@@ -20635,7 +20637,7 @@ function DayFilter({
20635
20637
  countByDay,
20636
20638
  onSelect
20637
20639
  }) {
20638
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
20640
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
20639
20641
  const days = Array.from({ length: durationDays }, (_unused, index) => index);
20640
20642
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-vehicles-section__days", children: [
20641
20643
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-vehicles-section__days-label", children: t("chrome.tripVehicles.showDay") }),
@@ -20768,7 +20770,7 @@ function DeleteVehicleDialog({
20768
20770
  onConfirm,
20769
20771
  onClose
20770
20772
  }) {
20771
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
20773
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
20772
20774
  const titleId = react.useId();
20773
20775
  const released = occupantsOf(vehicle).length;
20774
20776
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -20945,7 +20947,7 @@ function ManagerLinkDialog({
20945
20947
  onClose,
20946
20948
  onSubmit
20947
20949
  }) {
20948
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
20950
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
20949
20951
  const titleId = react.useId();
20950
20952
  const [chosen, setChosen] = react.useState(null);
20951
20953
  const demotedFrom = chosen === null ? void 0 : managerVehicleByRef.get(chosen);
@@ -21022,7 +21024,7 @@ function UnassignedStrip2({
21022
21024
  drag,
21023
21025
  busy
21024
21026
  }) {
21025
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
21027
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
21026
21028
  return /* @__PURE__ */ jsxRuntime.jsxs(
21027
21029
  "div",
21028
21030
  {
@@ -21089,7 +21091,7 @@ function OccupantRoster({
21089
21091
  variant,
21090
21092
  emptyKey
21091
21093
  }) {
21092
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
21094
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
21093
21095
  const target = { containerId: vehicleId, slotLabel: "" };
21094
21096
  const isOver = drag.overSlot !== null && drag.overSlot.containerId === vehicleId && drag.overSlot.slotLabel === "";
21095
21097
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -21133,7 +21135,7 @@ function OccupantRoster({
21133
21135
  );
21134
21136
  }
21135
21137
  function SeatTile({ seat, vehicleId, drag, busy }) {
21136
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
21138
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
21137
21139
  const target = { containerId: vehicleId, slotLabel: seat.seatLabel };
21138
21140
  const isOver = drag.overSlot !== null && drag.overSlot.containerId === target.containerId && drag.overSlot.slotLabel === target.slotLabel;
21139
21141
  const occupant = seat.occupant;
@@ -21196,7 +21198,7 @@ function VehicleKebab({
21196
21198
  onUnlinkManager,
21197
21199
  onDelete
21198
21200
  }) {
21199
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
21201
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
21200
21202
  const [open, setOpen] = react.useState(false);
21201
21203
  const rootRef = react.useRef(null);
21202
21204
  const triggerRef = react.useRef(null);
@@ -21306,7 +21308,7 @@ function VehicleCard({
21306
21308
  onUnlinkManager,
21307
21309
  onDelete
21308
21310
  }) {
21309
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
21311
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
21310
21312
  const percent = fillPercent2(vehicle);
21311
21313
  const days = daysLabel(vehicle.days);
21312
21314
  const bodyId = `kf-vehicle-${vehicle.id}`;
@@ -21441,7 +21443,7 @@ function VehicleDaysDialog({
21441
21443
  onClose,
21442
21444
  onSubmit
21443
21445
  }) {
21444
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
21446
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
21445
21447
  const titleId = react.useId();
21446
21448
  const [selected, setSelected] = react.useState(vehicle.days);
21447
21449
  const wholeTrip = selected.length === 0;
@@ -21540,7 +21542,7 @@ function VehicleFormDialog({
21540
21542
  onClose,
21541
21543
  onSubmit
21542
21544
  }) {
21543
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
21545
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
21544
21546
  const titleId = react.useId();
21545
21547
  const isEdit = vehicle !== null;
21546
21548
  const [regNo, setRegNo] = react.useState(vehicle?.regNo ?? "");
@@ -21735,7 +21737,7 @@ function VehiclesSkeleton() {
21735
21737
  ] }, id)) });
21736
21738
  }
21737
21739
  function VehiclesEmpty({ onAddVehicle }) {
21738
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
21740
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
21739
21741
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-vehicles-section__state", children: [
21740
21742
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-vehicles-section__state-glyph", children: /* @__PURE__ */ jsxRuntime.jsx(BusIcon2, {}) }),
21741
21743
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-vehicles-section__state-title", children: t("chrome.tripVehicles.emptyTitle") }),
@@ -21744,7 +21746,7 @@ function VehiclesEmpty({ onAddVehicle }) {
21744
21746
  ] });
21745
21747
  }
21746
21748
  function VehiclesFailed({ onRetry }) {
21747
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
21749
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
21748
21750
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-vehicles-section__state", role: "alert", children: [
21749
21751
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-vehicles-section__state-title", children: t("chrome.tripVehicles.failedTitle") }),
21750
21752
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-vehicles-section__state-body", children: t("chrome.tripVehicles.failedBody") }),
@@ -21752,7 +21754,7 @@ function VehiclesFailed({ onRetry }) {
21752
21754
  ] });
21753
21755
  }
21754
21756
  function VehiclesDark({ reason }) {
21755
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
21757
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
21756
21758
  if (reason === "mode") {
21757
21759
  return null;
21758
21760
  }
@@ -21775,9 +21777,9 @@ function TripVehiclesSection({
21775
21777
  durationDays,
21776
21778
  style
21777
21779
  }) {
21778
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
21779
- const seating = chunkXBYLSJOS_cjs.useSeating(tripRef);
21780
- const managers = chunkXBYLSJOS_cjs.useManagers(tripRef);
21780
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
21781
+ const seating = chunkDI77H7ED_cjs.useSeating(tripRef);
21782
+ const managers = chunkDI77H7ED_cjs.useManagers(tripRef);
21781
21783
  const [openVehicleId, setOpenVehicleId] = react.useState(null);
21782
21784
  const [day, setDay] = react.useState(null);
21783
21785
  const [overlay, setOverlay] = react.useState({ kind: "none" });
@@ -21911,7 +21913,7 @@ function TripVehiclesSection({
21911
21913
  return /* @__PURE__ */ jsxRuntime.jsx(VehiclesDark, { reason: seating.reason });
21912
21914
  }
21913
21915
  const pool = ready?.unassignedPool;
21914
- return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-vehicles-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
21916
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-vehicles-section", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
21915
21917
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-vehicles-section__toolbar", children: [
21916
21918
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-vehicles-section__toolbar-title", children: t("chrome.tripVehicles.panelLabel") }),
21917
21919
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-vehicles-section__toolbar-spacer" }),
@@ -22204,7 +22206,7 @@ function WarningIcon13(props) {
22204
22206
 
22205
22207
  // src/admin/composite/office/TripWorkspace/internal/panels/deriveCloseout.ts
22206
22208
  function tabForBlocker(row) {
22207
- return chunk2D4Y4LOT_cjs.resolveBlockerDeepLink({ actionKey: row.actionKey })?.tab;
22209
+ return chunkIBVCH6GC_cjs.resolveBlockerDeepLink({ actionKey: row.actionKey })?.tab;
22208
22210
  }
22209
22211
  function orderedBlockers(rows) {
22210
22212
  return [...rows].sort((a, b) => {
@@ -22244,8 +22246,8 @@ function codeOf11(error) {
22244
22246
  return classification?.code ?? "unknown";
22245
22247
  }
22246
22248
  function CloseoutCard({ tripRef, onOpenTab, litTabs }) {
22247
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
22248
- const closeout = chunkXBYLSJOS_cjs.useCloseout(tripRef);
22249
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
22250
+ const closeout = chunkDI77H7ED_cjs.useCloseout(tripRef);
22249
22251
  const [note, setNote] = react.useState(null);
22250
22252
  const [pending, setPending] = react.useState(void 0);
22251
22253
  const [errorCode, setErrorCode] = react.useState(void 0);
@@ -22452,7 +22454,7 @@ function AssignManagerDialog({
22452
22454
  onClose,
22453
22455
  onAssign
22454
22456
  }) {
22455
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
22457
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
22456
22458
  const titleId = react.useId();
22457
22459
  const [query, setQuery] = react.useState("");
22458
22460
  const [selected, setSelected] = react.useState(null);
@@ -22584,8 +22586,8 @@ var ROLE_LABEL_KEY = {
22584
22586
  COORDINATOR: "chrome.tripWorkspace.managers.roleCoordinator"
22585
22587
  };
22586
22588
  function OverviewManagersCard({ trip, onChanged }) {
22587
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
22588
- const { promoteManager, assignManager, unassignManager, makeManagersFetch } = chunk2D4Y4LOT_cjs.useDirectories();
22589
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
22590
+ const { promoteManager, assignManager, unassignManager, makeManagersFetch } = chunkIBVCH6GC_cjs.useDirectories();
22589
22591
  const [pendingId, setPendingId] = react.useState(void 0);
22590
22592
  const [errorCode, setErrorCode] = react.useState(void 0);
22591
22593
  const [assignOpen, setAssignOpen] = react.useState(false);
@@ -22746,13 +22748,13 @@ function TripOverviewPanel({
22746
22748
  onOpenTab,
22747
22749
  onTripChanged
22748
22750
  }) {
22749
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
22750
- const today = chunkXBYLSJOS_cjs.useManagerToday(trip.ref);
22751
- const expenses = chunkXBYLSJOS_cjs.useExpenses(trip.ref);
22751
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
22752
+ const today = chunkDI77H7ED_cjs.useManagerToday(trip.ref);
22753
+ const expenses = chunkDI77H7ED_cjs.useExpenses(trip.ref);
22752
22754
  const spendTotalMinor = expenses.status === "ready" && expenses.totals.loaded && !expenses.totals.lastFetchFailed ? expenses.totals.spendTotalMinor : void 0;
22753
22755
  const finance = deriveFinance(trip, spendTotalMinor);
22754
22756
  const quickActions = QUICK_ACTION_TABS.filter((key) => litTabs.has(key));
22755
- const closeoutProbe = chunkXBYLSJOS_cjs.useCloseout(trip.ref);
22757
+ const closeoutProbe = chunkDI77H7ED_cjs.useCloseout(trip.ref);
22756
22758
  const closeoutStage = closeoutProbe.status === "ready" && hasReturned(closeoutProbe.aggregate) ? closeoutProbe.aggregate?.stage ?? null : null;
22757
22759
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__overview", children: [
22758
22760
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__overview-main", children: [
@@ -22791,7 +22793,7 @@ function TripOverviewPanel({
22791
22793
  function TodayCard({
22792
22794
  today
22793
22795
  }) {
22794
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
22796
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
22795
22797
  if (today.kind === "idle") return null;
22796
22798
  const openChecklist = today.checklist ?? [];
22797
22799
  const itinerary = today.itinerary ?? [];
@@ -22815,7 +22817,7 @@ function TodayCard({
22815
22817
  function FinanceCard({
22816
22818
  finance
22817
22819
  }) {
22818
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
22820
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
22819
22821
  return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-workspace__card", children: [
22820
22822
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-workspace__card-head", children: /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "kf-trip-workspace__card-title", children: t("chrome.tripWorkspace.overview.financeTitle") }) }),
22821
22823
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__finance-body", children: [
@@ -23078,7 +23080,7 @@ var BLOCKER_BODY_KEY = {
23078
23080
  capabilityDark: "chrome.tripWorkspace.blocker.capabilityDarkBody"
23079
23081
  };
23080
23082
  function TripTabPlaceholder({ tabKey, blocker }) {
23081
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
23083
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
23082
23084
  const label = t(TAB_LABEL_KEY[tabKey]);
23083
23085
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__placeholder", children: [
23084
23086
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-workspace__placeholder-glyph", children: blocker === "deferred" ? /* @__PURE__ */ jsxRuntime.jsx(ClockIcon2, {}) : /* @__PURE__ */ jsxRuntime.jsx(LockIcon11, {}) }),
@@ -23088,7 +23090,7 @@ function TripTabPlaceholder({ tabKey, blocker }) {
23088
23090
  ] });
23089
23091
  }
23090
23092
  function TripKpiStrip({ cells }) {
23091
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
23093
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
23092
23094
  if (cells.length === 0) return null;
23093
23095
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-workspace__kpi-strip", "data-columns": cells.length, children: cells.map((cell) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__kpi-card", children: [
23094
23096
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-workspace__kpi-label", children: t(cell.labelKey) }),
@@ -23097,7 +23099,7 @@ function TripKpiStrip({ cells }) {
23097
23099
  ] }, cell.key)) });
23098
23100
  }
23099
23101
  function TripTabRail({ tabs, activeKey, onSelect }) {
23100
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
23102
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
23101
23103
  return /* @__PURE__ */ jsxRuntime.jsx(
23102
23104
  "div",
23103
23105
  {
@@ -23131,7 +23133,7 @@ var STATUS_LABEL_KEY9 = {
23131
23133
  CANCELLED: "chrome.tripDirectory.status.cancelled"
23132
23134
  };
23133
23135
  function TripWorkspaceHead({ trip, onBack, style }) {
23134
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
23136
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
23135
23137
  const head = deriveTripHead(trip);
23136
23138
  const subLabelParts = [
23137
23139
  head.dateRangeLabel,
@@ -23142,7 +23144,7 @@ function TripWorkspaceHead({ trip, onBack, style }) {
23142
23144
  trip.manifestCount === 1 ? "chrome.tripWorkspace.travellerCountOne" : "chrome.tripWorkspace.travellerCount"
23143
23145
  ).replace("{count}", String(trip.manifestCount))
23144
23146
  ];
23145
- return /* @__PURE__ */ jsxRuntime.jsx("header", { className: "kf-trip-workspace__head", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__head-identity", children: [
23147
+ return /* @__PURE__ */ jsxRuntime.jsx("header", { className: "kf-trip-workspace__head", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__head-identity", children: [
23146
23148
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__eyebrow", children: [
23147
23149
  onBack === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(
23148
23150
  "button",
@@ -23182,10 +23184,10 @@ function TripWorkspace({
23182
23184
  components,
23183
23185
  style
23184
23186
  }) {
23185
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
23186
- const { read, readFailed, refresh } = chunk2D4Y4LOT_cjs.useAgencyTrip(tripRef);
23187
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
23188
+ const { read, readFailed, refresh } = chunkIBVCH6GC_cjs.useAgencyTrip(tripRef);
23187
23189
  if (readFailed) {
23188
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-workspace", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__status-block", role: "alert", children: [
23190
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-workspace", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__status-block", role: "alert", children: [
23189
23191
  /* @__PURE__ */ jsxRuntime.jsx(WarningIcon13, { className: "kf-trip-workspace__status-icon" }),
23190
23192
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-workspace__status-title", children: t("chrome.tripWorkspace.errorTitle") }),
23191
23193
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-workspace__status-body", children: t("chrome.tripWorkspace.errorBody") }),
@@ -23201,7 +23203,7 @@ function TripWorkspace({
23201
23203
  ] }) });
23202
23204
  }
23203
23205
  if (read === void 0) {
23204
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-workspace", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(TripWorkspaceSkeleton, {}) });
23206
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-workspace", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(TripWorkspaceSkeleton, {}) });
23205
23207
  }
23206
23208
  return /* @__PURE__ */ jsxRuntime.jsx(
23207
23209
  TripWorkspaceBody,
@@ -23229,7 +23231,7 @@ function TripWorkspaceBody({
23229
23231
  components,
23230
23232
  style
23231
23233
  }) {
23232
- const { statuses, loaded } = chunk2D4Y4LOT_cjs.useCapabilityStatuses(tripRef);
23234
+ const { statuses, loaded } = chunkIBVCH6GC_cjs.useCapabilityStatuses(tripRef);
23233
23235
  const Head = components?.TripWorkspaceHead ?? TripWorkspaceHead;
23234
23236
  const tabs = react.useMemo(() => resolveTripTabs(trip.eventType, statuses), [trip.eventType, statuses]);
23235
23237
  const [requestedTab, setRequestedTab] = react.useState(initialTab ?? "overview");
@@ -23313,7 +23315,7 @@ function TripWorkspaceBody({
23313
23315
  }),
23314
23316
  [trip, litTabs, tripRef, onTripChanged, onOpenTravellerProfile]
23315
23317
  );
23316
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
23318
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
23317
23319
  /* @__PURE__ */ jsxRuntime.jsx(Head, { trip, ...onBack !== void 0 ? { onBack } : {} }),
23318
23320
  /* @__PURE__ */ jsxRuntime.jsx(TripKpiStrip, { cells: kpis }),
23319
23321
  loaded ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
@@ -23510,7 +23512,7 @@ function AdminShell({
23510
23512
  function renderNavIcon(iconKey) {
23511
23513
  return NavIcon !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(NavIcon, { iconKey }) : navIcon(iconKey);
23512
23514
  }
23513
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-admin-shell", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
23515
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-admin-shell", style: chunkCK3L6Y43_cjs.tokenStyle(style), children: [
23514
23516
  /* @__PURE__ */ jsxRuntime.jsxs("aside", { className: "kf-admin-shell__sidebar", children: [
23515
23517
  brand !== void 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-admin-shell__brand", children: [
23516
23518
  brand.logo !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-admin-shell__brand-logo", children: brand.logo }) : null,
@@ -23614,7 +23616,7 @@ function AdminShell({
23614
23616
  ] });
23615
23617
  }
23616
23618
  function KaafilAgencyWorkspace(props) {
23617
- const session = chunkCCJ5XNWY_cjs.useSession();
23619
+ const session = chunkCK3L6Y43_cjs.useSession();
23618
23620
  if (session.status !== "authenticated") {
23619
23621
  return null;
23620
23622
  }
@@ -23639,8 +23641,8 @@ function ReadyKaafilAgencyWorkspace(props) {
23639
23641
  components,
23640
23642
  style
23641
23643
  } = props;
23642
- const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
23643
- const agencyAdminMe = chunk2D4Y4LOT_cjs.useAgencyAdminMe();
23644
+ const { t } = chunkCK3L6Y43_cjs.useKaafilChrome();
23645
+ const agencyAdminMe = chunkIBVCH6GC_cjs.useAgencyAdminMe();
23644
23646
  const [internalPane, setInternalPane] = react.useState(
23645
23647
  initialPane ?? "trips"
23646
23648
  );
@@ -23901,27 +23903,27 @@ function ReadyKaafilAgencyWorkspace(props) {
23901
23903
 
23902
23904
  Object.defineProperty(exports, "BootErrorScreen", {
23903
23905
  enumerable: true,
23904
- get: function () { return chunk4LZXDRAD_cjs.BootErrorScreen; }
23906
+ get: function () { return chunkQD4Z5DRT_cjs.BootErrorScreen; }
23905
23907
  });
23906
23908
  Object.defineProperty(exports, "LockedTripScreen", {
23907
23909
  enumerable: true,
23908
- get: function () { return chunk4LZXDRAD_cjs.LockedTripScreen; }
23910
+ get: function () { return chunkQD4Z5DRT_cjs.LockedTripScreen; }
23909
23911
  });
23910
23912
  Object.defineProperty(exports, "NotFoundScreen", {
23911
23913
  enumerable: true,
23912
- get: function () { return chunk4LZXDRAD_cjs.NotFoundScreen; }
23914
+ get: function () { return chunkQD4Z5DRT_cjs.NotFoundScreen; }
23913
23915
  });
23914
23916
  Object.defineProperty(exports, "OfflineFallbackScreen", {
23915
23917
  enumerable: true,
23916
- get: function () { return chunk4LZXDRAD_cjs.OfflineFallbackScreen; }
23918
+ get: function () { return chunkQD4Z5DRT_cjs.OfflineFallbackScreen; }
23917
23919
  });
23918
23920
  Object.defineProperty(exports, "PlanLockedScreen", {
23919
23921
  enumerable: true,
23920
- get: function () { return chunk4LZXDRAD_cjs.PlanLockedScreen; }
23922
+ get: function () { return chunkQD4Z5DRT_cjs.PlanLockedScreen; }
23921
23923
  });
23922
23924
  Object.defineProperty(exports, "SessionExpiredScreen", {
23923
23925
  enumerable: true,
23924
- get: function () { return chunk4LZXDRAD_cjs.SessionExpiredScreen; }
23926
+ get: function () { return chunkQD4Z5DRT_cjs.SessionExpiredScreen; }
23925
23927
  });
23926
23928
  exports.AdminShell = AdminShell;
23927
23929
  exports.AgencySettingsScreen = AgencySettingsScreen;