kaafil-react-uikit 0.8.0 → 0.9.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 (56) hide show
  1. package/dist/admin/index.cjs +364 -348
  2. package/dist/admin/index.cjs.map +1 -1
  3. package/dist/admin/index.js +24 -8
  4. package/dist/admin/index.js.map +1 -1
  5. package/dist/{chunk-7O3TPYK4.cjs → chunk-2WPNGUX5.cjs} +17 -17
  6. package/dist/{chunk-7O3TPYK4.cjs.map → chunk-2WPNGUX5.cjs.map} +1 -1
  7. package/dist/{chunk-DYOAKTGJ.js → chunk-6PQWLUBA.js} +5 -5
  8. package/dist/{chunk-DYOAKTGJ.js.map → chunk-6PQWLUBA.js.map} +1 -1
  9. package/dist/{chunk-GKR52SVU.js → chunk-CCK3WPMF.js} +3 -3
  10. package/dist/{chunk-GKR52SVU.js.map → chunk-CCK3WPMF.js.map} +1 -1
  11. package/dist/{chunk-7COMKJTM.cjs → chunk-ELJPQSXY.cjs} +9 -9
  12. package/dist/{chunk-7COMKJTM.cjs.map → chunk-ELJPQSXY.cjs.map} +1 -1
  13. package/dist/{chunk-TDFM563X.cjs → chunk-FO5VJJUO.cjs} +12 -12
  14. package/dist/{chunk-TDFM563X.cjs.map → chunk-FO5VJJUO.cjs.map} +1 -1
  15. package/dist/{chunk-VU5BCK2P.js → chunk-FSSB6J3X.js} +3 -3
  16. package/dist/{chunk-VU5BCK2P.js.map → chunk-FSSB6J3X.js.map} +1 -1
  17. package/dist/{chunk-YHGAFRN6.js → chunk-GOSSRXBN.js} +3 -3
  18. package/dist/{chunk-YHGAFRN6.js.map → chunk-GOSSRXBN.js.map} +1 -1
  19. package/dist/{chunk-MP4IMAPF.cjs → chunk-IAXVUR7H.cjs} +55 -55
  20. package/dist/{chunk-MP4IMAPF.cjs.map → chunk-IAXVUR7H.cjs.map} +1 -1
  21. package/dist/{chunk-4R7QBTNL.cjs → chunk-PFTWPEVV.cjs} +4 -4
  22. package/dist/{chunk-4R7QBTNL.cjs.map → chunk-PFTWPEVV.cjs.map} +1 -1
  23. package/dist/chunk-PG7HNBTO.cjs +12 -0
  24. package/dist/{chunk-LBTAK5JA.cjs.map → chunk-PG7HNBTO.cjs.map} +1 -1
  25. package/dist/{chunk-ASFUY3IE.cjs → chunk-SMGXVEN3.cjs} +8 -4
  26. package/dist/chunk-SMGXVEN3.cjs.map +1 -0
  27. package/dist/{chunk-57DYMIWS.js → chunk-SO4F5LTH.js} +5 -5
  28. package/dist/{chunk-57DYMIWS.js.map → chunk-SO4F5LTH.js.map} +1 -1
  29. package/dist/{chunk-ZURCZQQ7.js → chunk-TESIDLJ6.js} +8 -4
  30. package/dist/chunk-TESIDLJ6.js.map +1 -0
  31. package/dist/{chunk-Q4B25EZO.js → chunk-TJGE4ZSX.js} +3 -3
  32. package/dist/{chunk-Q4B25EZO.js.map → chunk-TJGE4ZSX.js.map} +1 -1
  33. package/dist/{chunk-PQJGV3RE.cjs → chunk-TYBIAPPT.cjs} +83 -83
  34. package/dist/{chunk-PQJGV3RE.cjs.map → chunk-TYBIAPPT.cjs.map} +1 -1
  35. package/dist/{chunk-E3KOQYY2.js → chunk-YWMDBY43.js} +3 -3
  36. package/dist/{chunk-E3KOQYY2.js.map → chunk-YWMDBY43.js.map} +1 -1
  37. package/dist/core/index.cjs +107 -107
  38. package/dist/core/index.js +10 -10
  39. package/dist/manager/index.cjs +240 -240
  40. package/dist/manager/index.cjs.map +1 -1
  41. package/dist/manager/index.d.cts +16 -3
  42. package/dist/manager/index.d.ts +16 -3
  43. package/dist/manager/index.js +7 -7
  44. package/dist/manager/index.js.map +1 -1
  45. package/dist/offline/index.cjs +112 -0
  46. package/dist/offline/index.cjs.map +1 -0
  47. package/dist/offline/index.d.cts +129 -0
  48. package/dist/offline/index.d.ts +129 -0
  49. package/dist/offline/index.js +108 -0
  50. package/dist/offline/index.js.map +1 -0
  51. package/dist/traveller/index.cjs +35 -35
  52. package/dist/traveller/index.js +5 -5
  53. package/package.json +6 -1
  54. package/dist/chunk-ASFUY3IE.cjs.map +0 -1
  55. package/dist/chunk-LBTAK5JA.cjs +0 -12
  56. package/dist/chunk-ZURCZQQ7.js.map +0 -1
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkMP4IMAPF_cjs = require('../chunk-MP4IMAPF.cjs');
4
- var chunkPQJGV3RE_cjs = require('../chunk-PQJGV3RE.cjs');
5
- require('../chunk-4R7QBTNL.cjs');
6
- var chunkTDFM563X_cjs = require('../chunk-TDFM563X.cjs');
7
- var chunkASFUY3IE_cjs = require('../chunk-ASFUY3IE.cjs');
3
+ var chunkIAXVUR7H_cjs = require('../chunk-IAXVUR7H.cjs');
4
+ var chunkTYBIAPPT_cjs = require('../chunk-TYBIAPPT.cjs');
5
+ require('../chunk-PFTWPEVV.cjs');
6
+ var chunkFO5VJJUO_cjs = require('../chunk-FO5VJJUO.cjs');
7
+ var chunkSMGXVEN3_cjs = require('../chunk-SMGXVEN3.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: chunkASFUY3IE_cjs.tokenStyle(style), children: [
112
+ return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "kf-admin-shared-patterns-pill", "data-tone": tone, style: chunkSMGXVEN3_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: chunkASFUY3IE_cjs.tokenStyle(style), children });
118
+ return /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-admin-shared-patterns-tag", "data-tone": tone, style: chunkSMGXVEN3_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: chunkASFUY3IE_cjs.tokenStyle(style),
186
+ style: chunkSMGXVEN3_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 = chunkASFUY3IE_cjs.createRegistry({
482
+ var fieldKindRegistry = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
632
+ const { t } = chunkSMGXVEN3_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: chunkASFUY3IE_cjs.tokenStyle(style), children: [
636
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-agency-settings-screen__panel-inner", style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
1009
- const { document: document2, loaded, lastFetchFailed, refresh, patchSettings } = chunkMP4IMAPF_cjs.useAgencySettings();
1008
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
1009
+ const { document: document2, loaded, lastFetchFailed, refresh, patchSettings } = chunkIAXVUR7H_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 = chunkPQJGV3RE_cjs.classifyError(error).code === "CONFLICT_VERSION" ? "conflict" : "failed";
1026
+ const kind = chunkTYBIAPPT_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: chunkASFUY3IE_cjs.tokenStyle(style), children: [
1032
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-agency-settings-screen", style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
1149
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
1385
+ const { t } = chunkSMGXVEN3_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: chunkASFUY3IE_cjs.tokenStyle(style), children: [
1387
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-checklist-template-editor__header", style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
1456
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
1606
+ const { t } = chunkSMGXVEN3_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: chunkASFUY3IE_cjs.tokenStyle(style),
1634
+ style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
1707
- const { templates, loaded, lastFetchFailed, refresh, patchTemplate, publishTemplate } = chunkMP4IMAPF_cjs.useAgencyChecklistTemplates();
1706
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
1707
+ const { templates, loaded, lastFetchFailed, refresh, patchTemplate, publishTemplate } = chunkIAXVUR7H_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: chunkASFUY3IE_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: chunkSMGXVEN3_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: chunkASFUY3IE_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: chunkSMGXVEN3_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: chunkASFUY3IE_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: chunkSMGXVEN3_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: chunkASFUY3IE_cjs.tokenStyle(style), children: [
1852
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-checklist-template-editor", style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
1955
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
2072
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
2191
+ const { t } = chunkSMGXVEN3_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: chunkASFUY3IE_cjs.tokenStyle(style),
2200
+ style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
2290
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
2307
- const { templates, loaded, lastFetchFailed, refresh, createTemplate, removeTemplate } = chunkMP4IMAPF_cjs.useAgencyChecklistTemplates();
2306
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
2307
+ const { templates, loaded, lastFetchFailed, refresh, createTemplate, removeTemplate } = chunkIAXVUR7H_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: chunkASFUY3IE_cjs.tokenStyle(style), children: [
2343
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-checklist-template-library", style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
2639
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-form-builder__header", style: chunkASFUY3IE_cjs.tokenStyle(style), children: [
2638
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
2639
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-form-builder__header", style: chunkSMGXVEN3_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 = chunkASFUY3IE_cjs.createRegistry({ fallback });
2835
+ var fieldRegistry = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
3307
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
3544
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
3633
+ const { t } = chunkSMGXVEN3_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: chunkASFUY3IE_cjs.tokenStyle(style),
3641
+ style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
3703
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
3837
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
3898
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
4194
+ const { t } = chunkSMGXVEN3_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
- } = chunkMP4IMAPF_cjs.useAgencyForms();
4212
+ } = chunkIAXVUR7H_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: chunkASFUY3IE_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: chunkSMGXVEN3_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: chunkASFUY3IE_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: chunkSMGXVEN3_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: chunkASFUY3IE_cjs.tokenStyle(style), children: [
4444
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-form-builder", style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
4598
+ const { t } = chunkSMGXVEN3_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(chunkPQJGV3RE_cjs.classifyError(error).code ?? "unknown");
4626
+ setErrorCode(chunkTYBIAPPT_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
4814
+ const { t } = chunkSMGXVEN3_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: chunkASFUY3IE_cjs.tokenStyle(style),
4822
+ style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
4878
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
4893
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
4920
- const { forms, loaded, lastFetchFailed, refresh, createForm } = chunkMP4IMAPF_cjs.useAgencyForms();
4919
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
4920
+ const { forms, loaded, lastFetchFailed, refresh, createForm } = chunkIAXVUR7H_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: chunkASFUY3IE_cjs.tokenStyle(style), children: [
4931
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-forms-library", style: chunkSMGXVEN3_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: chunkASFUY3IE_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(FormsLibrary, { onSelectForm: handleSelect }) });
5007
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-forms-authoring-flow", style: chunkSMGXVEN3_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(FormsLibrary, { onSelectForm: handleSelect }) });
5008
5008
  }
5009
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-forms-authoring-flow", style: chunkASFUY3IE_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(FormBuilder, { formId: selectedFormId, onBack: handleBack }) });
5009
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-forms-authoring-flow", style: chunkSMGXVEN3_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: chunkASFUY3IE_cjs.tokenStyle(style, {
5160
+ style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
5180
+ const { t } = chunkSMGXVEN3_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: chunkASFUY3IE_cjs.tokenStyle(style),
5188
+ style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
5298
- const directories = chunkMP4IMAPF_cjs.useDirectories();
5297
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
5298
+ const directories = chunkIAXVUR7H_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(chunkPQJGV3RE_cjs.classifyError(error).code ?? "unknown");
5309
+ setErrorMessage(chunkTYBIAPPT_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 } = chunkMP4IMAPF_cjs.usePaginatedList(fetch);
5317
+ const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunkIAXVUR7H_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
5414
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
5453
+ const { t } = chunkSMGXVEN3_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: chunkASFUY3IE_cjs.tokenStyle(style), children: [
5458
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-manager-directory-flow", style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
5530
+ const { t } = chunkSMGXVEN3_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: chunkASFUY3IE_cjs.tokenStyle(style), children: [
5594
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-admin-shared-patterns-hero", "data-glow": glowTone, style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
5627
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
5687
- const { read, readFailed, refresh } = chunkMP4IMAPF_cjs.useAgencyManagerProfile(managerRef);
5686
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
5687
+ const { read, readFailed, refresh } = chunkIAXVUR7H_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: chunkASFUY3IE_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: chunkSMGXVEN3_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: chunkASFUY3IE_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(ManagerProfileSkeleton, {}) });
5707
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-manager-profile-section", style: chunkSMGXVEN3_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(ManagerProfileSkeleton, {}) });
5708
5708
  }
5709
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-manager-profile-section", style: chunkASFUY3IE_cjs.tokenStyle(style), children: [
5709
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-manager-profile-section", style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
5736
+ const { t } = chunkSMGXVEN3_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: chunkASFUY3IE_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(ChecklistTemplateLibrary, { onSelectTemplate: handleSelect }) });
5747
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-template-authoring-flow", style: chunkSMGXVEN3_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(ChecklistTemplateLibrary, { onSelectTemplate: handleSelect }) });
5748
5748
  }
5749
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-template-authoring-flow", style: chunkASFUY3IE_cjs.tokenStyle(style), children: [
5749
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-template-authoring-flow", style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
5759
- const directories = chunkMP4IMAPF_cjs.useDirectories();
5758
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
5759
+ const directories = chunkIAXVUR7H_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(chunkPQJGV3RE_cjs.classifyError(error).code ?? "unknown");
5783
+ setErrorMessage(chunkTYBIAPPT_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
5997
+ const { t } = chunkSMGXVEN3_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: chunkASFUY3IE_cjs.tokenStyle(style),
6005
+ style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
6134
- const directories = chunkMP4IMAPF_cjs.useDirectories();
6133
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
6134
+ const directories = chunkIAXVUR7H_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(chunkPQJGV3RE_cjs.classifyError(error).code ?? "unknown");
6145
+ setErrorMessage(chunkTYBIAPPT_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 } = chunkMP4IMAPF_cjs.usePaginatedList(fetch);
6153
+ const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunkIAXVUR7H_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
6248
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
6288
+ const { t } = chunkSMGXVEN3_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: chunkASFUY3IE_cjs.tokenStyle(style), children: [
6294
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-traveller-directory__search-box", style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
6326
+ const { t } = chunkSMGXVEN3_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: chunkASFUY3IE_cjs.tokenStyle(style), children: [
6349
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-traveller-directory-flow", style: chunkSMGXVEN3_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 = chunkASFUY3IE_cjs.useKaafilClient();
6375
+ const client = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
6432
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
6480
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
6526
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
6641
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
6732
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
6783
+ const { t } = chunkSMGXVEN3_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: chunkASFUY3IE_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: chunkSMGXVEN3_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: chunkASFUY3IE_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(TravellerProfileSkeleton, {}) });
6807
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-traveller-profile-section", style: chunkSMGXVEN3_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(TravellerProfileSkeleton, {}) });
6808
6808
  }
6809
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-traveller-profile-section", style: chunkASFUY3IE_cjs.tokenStyle(style), children: [
6809
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-traveller-profile-section", style: chunkSMGXVEN3_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: chunkASFUY3IE_cjs.tokenStyle(style),
6901
+ style: chunkSMGXVEN3_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: chunkASFUY3IE_cjs.tokenStyle(style), children: [
7339
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trigger-template-editor__detail", style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
7424
- const { triggers, loaded, lastFetchFailed, refresh, patchTrigger } = chunkMP4IMAPF_cjs.useAgencyJourneyTriggers();
7423
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
7424
+ const { triggers, loaded, lastFetchFailed, refresh, patchTrigger } = chunkIAXVUR7H_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: chunkASFUY3IE_cjs.tokenStyle(style), children: [
7459
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trigger-template-editor", style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
7607
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
7614
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
7622
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
7668
- const bookings = chunkMP4IMAPF_cjs.useBookings(tripRef);
7667
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
7668
+ const bookings = chunkIAXVUR7H_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: chunkASFUY3IE_cjs.tokenStyle(style), children: [
7678
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-bookings-section", style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
7750
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
7854
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
7863
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
7871
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
7971
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
8168
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
8220
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
8274
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
8310
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
8343
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
8473
- const checklists = chunkPQJGV3RE_cjs.useChecklists(tripRef);
8472
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
8473
+ const checklists = chunkTYBIAPPT_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: chunkASFUY3IE_cjs.tokenStyle(style), children: [
8640
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-checklist-section", style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
9029
+ const { t } = chunkSMGXVEN3_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: chunkASFUY3IE_cjs.tokenStyle(style),
9037
+ style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
9157
- const { makeTripsFetch } = chunkMP4IMAPF_cjs.useAgencyTrips();
9156
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
9157
+ const { makeTripsFetch } = chunkIAXVUR7H_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(chunkPQJGV3RE_cjs.classifyError(error).code ?? "unknown");
9168
+ setErrorCode(chunkTYBIAPPT_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 } = chunkMP4IMAPF_cjs.usePaginatedList(fetch);
9176
+ const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunkIAXVUR7H_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
9278
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
9348
+ const { t } = chunkSMGXVEN3_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: chunkASFUY3IE_cjs.tokenStyle(style), children: [
9368
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-directory-flow", style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
9629
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
9690
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
9698
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
9706
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
9729
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
9810
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
9880
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
10043
- const files = chunkPQJGV3RE_cjs.useFiles({ tripRef });
10044
- const expenses = chunkPQJGV3RE_cjs.useExpenses(tripRef);
10045
- const bookings = chunkMP4IMAPF_cjs.useBookings(tripRef);
10046
- const { listTripManifest } = chunkMP4IMAPF_cjs.useDirectories();
10047
- const { statuses, loaded: capabilityLoaded } = chunkMP4IMAPF_cjs.useCapabilityStatuses(tripRef);
10042
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
10043
+ const files = chunkTYBIAPPT_cjs.useFiles({ tripRef });
10044
+ const expenses = chunkTYBIAPPT_cjs.useExpenses(tripRef);
10045
+ const bookings = chunkIAXVUR7H_cjs.useBookings(tripRef);
10046
+ const { listTripManifest } = chunkIAXVUR7H_cjs.useDirectories();
10047
+ const { statuses, loaded: capabilityLoaded } = chunkIAXVUR7H_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: chunkASFUY3IE_cjs.tokenStyle(style), children: [
10194
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-documents-section", style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
10483
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
10492
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
10500
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
10521
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
10581
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
10744
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
10745
10745
  const titleId = react.useId();
10746
- const files = chunkPQJGV3RE_cjs.useFiles({ tripRef });
10746
+ const files = chunkTYBIAPPT_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
10820
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
10895
- const expenses = chunkPQJGV3RE_cjs.useExpenses(tripRef);
10896
- const vendors = chunkPQJGV3RE_cjs.useVendors(tripRef, "");
10894
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
10895
+ const expenses = chunkTYBIAPPT_cjs.useExpenses(tripRef);
10896
+ const vendors = chunkTYBIAPPT_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: chunkASFUY3IE_cjs.tokenStyle(style), children: [
10965
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-expenses-section", style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
11245
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
11478
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
11487
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
11495
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
11518
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
11725
- const float = chunkPQJGV3RE_cjs.useFloat(tripRef);
11726
- const managers = chunkPQJGV3RE_cjs.useManagers(tripRef);
11724
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
11725
+ const float = chunkTYBIAPPT_cjs.useFloat(tripRef);
11726
+ const managers = chunkTYBIAPPT_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: chunkASFUY3IE_cjs.tokenStyle(style), children: [
11852
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-float-section", style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
11967
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
12115
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
12168
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
12175
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
12183
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
12228
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
12366
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
12419
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
12456
- const forms = chunkPQJGV3RE_cjs.useForms(tripRef);
12457
- const { listTripManifest } = chunkMP4IMAPF_cjs.useDirectories();
12455
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
12456
+ const forms = chunkTYBIAPPT_cjs.useForms(tripRef);
12457
+ const { listTripManifest } = chunkIAXVUR7H_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: chunkASFUY3IE_cjs.tokenStyle(style), children: [
12579
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-forms-section", style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
12729
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
13076
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
13198
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
13249
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
13326
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
13469
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
13724
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
13732
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
13740
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
13827
+ const { t } = chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
13854
- const itinerary = chunkPQJGV3RE_cjs.useItinerary(tripRef);
13853
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
13854
+ const itinerary = chunkTYBIAPPT_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: chunkASFUY3IE_cjs.tokenStyle(style), children: [
14027
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-itinerary-section", style: chunkSMGXVEN3_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
14212
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
14213
14213
  const titleId = react.useId();
14214
- const { makeTravellersFetch, addTraveller, createAgencyTraveller } = chunkMP4IMAPF_cjs.useDirectories();
14214
+ const { makeTravellersFetch, addTraveller, createAgencyTraveller } = chunkIAXVUR7H_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(chunkPQJGV3RE_cjs.classifyError(error).code ?? "unknown");
14228
+ setErrorCode(chunkTYBIAPPT_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 } = chunkASFUY3IE_cjs.useKaafilChrome();
14381
- const { rows, hasNext, loadNext, settled, error } = chunkMP4IMAPF_cjs.usePaginatedList(fetch);
14380
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
14381
+ const { rows, hasNext, loadNext, settled, error } = chunkIAXVUR7H_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
  }
@@ -14463,9 +14463,9 @@ function ManageGroupsDialog({
14463
14463
  onClose,
14464
14464
  onSaved
14465
14465
  }) {
14466
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
14466
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
14467
14467
  const titleId = react.useId();
14468
- const { createParty, patchParty, deleteParty } = chunkMP4IMAPF_cjs.useDirectories();
14468
+ const { createParty, patchParty, deleteParty } = chunkIAXVUR7H_cjs.useDirectories();
14469
14469
  const groups = deriveManifestGroups(rows).filter(
14470
14470
  (group) => group.id !== SOLO_GROUP_ID && group.party !== null
14471
14471
  );
@@ -14693,7 +14693,7 @@ function ManageGroupsDialog({
14693
14693
  }
14694
14694
  var DIET_BUCKET_CAP = 4;
14695
14695
  function ManifestFacetTiles({ facets, filtered }) {
14696
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
14696
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
14697
14697
  const dietEntries = Object.entries(facets.dietCounts).filter(([, count]) => count > 0).sort((a, b) => b[1] - a[1]);
14698
14698
  const shown = dietEntries.slice(0, DIET_BUCKET_CAP);
14699
14699
  const hiddenCount = dietEntries.length - shown.length;
@@ -14775,7 +14775,7 @@ function ManifestFiltersPopover({
14775
14775
  value,
14776
14776
  onChange
14777
14777
  }) {
14778
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
14778
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
14779
14779
  const [open, setOpen] = react.useState(false);
14780
14780
  const rootRef = react.useRef(null);
14781
14781
  const triggerRef = react.useRef(null);
@@ -14915,7 +14915,7 @@ var KIND_LABEL_KEY2 = {
14915
14915
  OTHER: "chrome.tripManifest.partyKind.other"
14916
14916
  };
14917
14917
  function ManifestGroupCard({ group, onEdit, children }) {
14918
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
14918
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
14919
14919
  const party = group.party;
14920
14920
  const isSolo = party === null;
14921
14921
  const heading = isSolo ? t("chrome.tripManifest.soloHeading") : party.label ?? t(KIND_LABEL_KEY2[party.kind] ?? "chrome.tripManifest.partyKind.other");
@@ -15003,7 +15003,7 @@ function ManifestRowKebab({
15003
15003
  onShareLink,
15004
15004
  onOpenProfile
15005
15005
  }) {
15006
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
15006
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
15007
15007
  const [open, setOpen] = react.useState(false);
15008
15008
  const rootRef = react.useRef(null);
15009
15009
  const triggerRef = react.useRef(null);
@@ -15102,10 +15102,10 @@ function ManifestRow({
15102
15102
  onOpenProfile,
15103
15103
  style
15104
15104
  }) {
15105
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
15105
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
15106
15106
  const derived = deriveManifestRow(row, index, serverTime);
15107
15107
  const traveller = row.traveller;
15108
- return /* @__PURE__ */ jsxRuntime.jsxs("tr", { role: "row", className: "kf-trip-manifest-section__row", style: chunkASFUY3IE_cjs.tokenStyle(style), children: [
15108
+ return /* @__PURE__ */ jsxRuntime.jsxs("tr", { role: "row", className: "kf-trip-manifest-section__row", style: chunkSMGXVEN3_cjs.tokenStyle(style), children: [
15109
15109
  /* @__PURE__ */ jsxRuntime.jsxs(
15110
15110
  "td",
15111
15111
  {
@@ -15179,7 +15179,7 @@ function ManifestTable({
15179
15179
  onOpenProfile,
15180
15180
  RowComponent
15181
15181
  }) {
15182
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
15182
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
15183
15183
  const Row = RowComponent ?? ManifestRow;
15184
15184
  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: [
15185
15185
  showHead ? /* @__PURE__ */ jsxRuntime.jsx("thead", { role: "rowgroup", children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { role: "row", className: "kf-trip-manifest-section__head-row", children: [
@@ -15226,8 +15226,8 @@ function ManifestResultsBody({
15226
15226
  RowComponent,
15227
15227
  onRetry
15228
15228
  }) {
15229
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
15230
- const { makeManifestFetch, facets, groupedPageSize } = chunkMP4IMAPF_cjs.useAgencyTripManifest(tripRef);
15229
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
15230
+ const { makeManifestFetch, facets, groupedPageSize } = chunkIAXVUR7H_cjs.useAgencyTripManifest(tripRef);
15231
15231
  const [errorCode, setErrorCode] = react.useState(void 0);
15232
15232
  const [hasSettled, setHasSettled] = react.useState(false);
15233
15233
  const [serverTime, setServerTime] = react.useState(void 0);
@@ -15244,7 +15244,7 @@ function ManifestResultsBody({
15244
15244
  if (meta?.serverTime !== void 0) setServerTime(meta.serverTime);
15245
15245
  return page;
15246
15246
  } catch (error) {
15247
- setErrorCode(chunkPQJGV3RE_cjs.classifyError(error).code ?? "unknown");
15247
+ setErrorCode(chunkTYBIAPPT_cjs.classifyError(error).code ?? "unknown");
15248
15248
  return { rows: [], nextCursor: void 0 };
15249
15249
  } finally {
15250
15250
  setHasSettled(true);
@@ -15252,7 +15252,7 @@ function ManifestResultsBody({
15252
15252
  },
15253
15253
  [makeManifestFetch, filters, grouped, groupedPageSize]
15254
15254
  );
15255
- const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunkMP4IMAPF_cjs.usePaginatedList(fetch, {
15255
+ const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunkIAXVUR7H_cjs.usePaginatedList(fetch, {
15256
15256
  accumulate: grouped
15257
15257
  });
15258
15258
  react.useEffect(() => {
@@ -15413,7 +15413,7 @@ function ManifestSearchInput({
15413
15413
  debounceMs,
15414
15414
  onDebouncedChange
15415
15415
  }) {
15416
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
15416
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
15417
15417
  const [value, setValue] = react.useState("");
15418
15418
  react.useEffect(() => {
15419
15419
  const timer = setTimeout(() => onDebouncedChange(value.trim()), debounceMs);
@@ -15440,8 +15440,8 @@ function RemoveTravellerDialog({
15440
15440
  onClose,
15441
15441
  onRemoved
15442
15442
  }) {
15443
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
15444
- const { removeFromManifest } = chunkMP4IMAPF_cjs.useDirectories();
15443
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
15444
+ const { removeFromManifest } = chunkIAXVUR7H_cjs.useDirectories();
15445
15445
  const titleId = react.useId();
15446
15446
  const [pending, setPending] = react.useState(false);
15447
15447
  const [errorCode, setErrorCode] = react.useState(void 0);
@@ -15526,18 +15526,28 @@ function shareAddress(build, token) {
15526
15526
  return token;
15527
15527
  }
15528
15528
  }
15529
+ var warnedNoShareUrl = false;
15530
+ function warnMissingShareUrl() {
15531
+ if (warnedNoShareUrl || !chunkSMGXVEN3_cjs.isDevelopment()) return;
15532
+ warnedNoShareUrl = true;
15533
+ console.warn(
15534
+ "[kaafil-react-uikit] No `buildShareUrl` on <KaafilUIKitProvider>, so the share dialog is showing operators a bare token instead of a sendable address. Kaafil returns a token, never a URL \u2014 the traveller page is on your domain. Fix: buildShareUrl={(token) => `${window.location.origin}/share/${token}`}"
15535
+ );
15536
+ }
15529
15537
  function ShareLinkDialog({
15530
15538
  tripRef,
15531
15539
  travellerRef,
15532
15540
  travellerName,
15533
15541
  onClose
15534
15542
  }) {
15535
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
15543
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
15536
15544
  const titleId = react.useId();
15537
- const buildShareUrl = chunkMP4IMAPF_cjs.useBuildShareUrl();
15545
+ const buildShareUrl = chunkIAXVUR7H_cjs.useBuildShareUrl();
15546
+ const showsBareToken = buildShareUrl === null;
15547
+ if (showsBareToken) warnMissingShareUrl();
15538
15548
  const isFamily = travellerRef === null;
15539
- const offerable = chunkMP4IMAPF_cjs.familySafeSections(isFamily);
15540
- const { links, readFailed, mint, revoke, regenerate, reveal } = chunkMP4IMAPF_cjs.useShareLinks(
15549
+ const offerable = chunkIAXVUR7H_cjs.familySafeSections(isFamily);
15550
+ const { links, readFailed, mint, revoke, regenerate, reveal } = chunkIAXVUR7H_cjs.useShareLinks(
15541
15551
  tripRef,
15542
15552
  travellerRef
15543
15553
  );
@@ -15646,7 +15656,9 @@ function ShareLinkDialog({
15646
15656
  readOnly: true,
15647
15657
  className: "kf-trip-manifest-section__minted-token",
15648
15658
  value: shareAddress(buildShareUrl, minted.token),
15649
- "aria-label": t("chrome.tripManifest.mintedTokenLabel"),
15659
+ "aria-label": t(
15660
+ showsBareToken ? "chrome.tripManifest.mintedTokenLabelCode" : "chrome.tripManifest.mintedTokenLabel"
15661
+ ),
15650
15662
  onFocus: (event) => event.currentTarget.select()
15651
15663
  }
15652
15664
  ),
@@ -15659,6 +15671,7 @@ function ShareLinkDialog({
15659
15671
  children: copied ? t("chrome.tripManifest.copied") : t("chrome.tripManifest.copy")
15660
15672
  }
15661
15673
  ),
15674
+ showsBareToken ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-manifest-section__dialog-note", children: t("chrome.tripManifest.noShareUrlHint") }) : null,
15662
15675
  minted.expiresAt === null ? null : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-manifest-section__dialog-note", children: t("chrome.tripManifest.mintedExpiresAt").replace(
15663
15676
  "{date}",
15664
15677
  formatDay(minted.expiresAt, FULL_DATE_OPTS)
@@ -15806,7 +15819,9 @@ function ShareLinkDialog({
15806
15819
  readOnly: true,
15807
15820
  className: "kf-trip-manifest-section__minted-token",
15808
15821
  value: shareAddress(buildShareUrl, String(revealed[link.id])),
15809
- "aria-label": t("chrome.tripManifest.mintedTokenLabel"),
15822
+ "aria-label": t(
15823
+ showsBareToken ? "chrome.tripManifest.mintedTokenLabelCode" : "chrome.tripManifest.mintedTokenLabel"
15824
+ ),
15810
15825
  onFocus: (event) => event.currentTarget.select()
15811
15826
  }
15812
15827
  ),
@@ -15818,7 +15833,8 @@ function ShareLinkDialog({
15818
15833
  onClick: () => void copy(shareAddress(buildShareUrl, String(revealed[link.id]))),
15819
15834
  children: copied ? t("chrome.tripManifest.copied") : t("chrome.tripManifest.copy")
15820
15835
  }
15821
- )
15836
+ ),
15837
+ showsBareToken ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-manifest-section__dialog-note", children: t("chrome.tripManifest.noShareUrlHint") }) : null
15822
15838
  ] }) })
15823
15839
  ] }, link.id)) })
15824
15840
  ] })
@@ -15870,7 +15886,7 @@ function SideDrawer({
15870
15886
  "aria-modal": "true",
15871
15887
  "aria-labelledby": titleId,
15872
15888
  tabIndex: -1,
15873
- style: chunkASFUY3IE_cjs.tokenStyle(style),
15889
+ style: chunkSMGXVEN3_cjs.tokenStyle(style),
15874
15890
  children: [
15875
15891
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-admin-side-drawer__header", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-admin-side-drawer__header-row", children: [
15876
15892
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-admin-side-drawer__identity", children: [
@@ -15938,11 +15954,11 @@ function TravellerDetailDialog({
15938
15954
  onClose,
15939
15955
  onRemove
15940
15956
  }) {
15941
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
15957
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
15942
15958
  const titleId = react.useId();
15943
- const { read, readFailed, refresh } = chunkPQJGV3RE_cjs.useTravellerProfile(tripRef, travellerRef);
15944
- const forms = chunkMP4IMAPF_cjs.useTravellerFormResponses(tripRef, travellerRef);
15945
- const { addTravellerNote } = chunkMP4IMAPF_cjs.useDirectories();
15959
+ const { read, readFailed, refresh } = chunkTYBIAPPT_cjs.useTravellerProfile(tripRef, travellerRef);
15960
+ const forms = chunkIAXVUR7H_cjs.useTravellerFormResponses(tripRef, travellerRef);
15961
+ const { addTravellerNote } = chunkIAXVUR7H_cjs.useDirectories();
15946
15962
  const [noteDraft, setNoteDraft] = react.useState("");
15947
15963
  const [notePending, setNotePending] = react.useState(false);
15948
15964
  const [noteFailed, setNoteFailed] = react.useState(false);
@@ -16171,7 +16187,7 @@ function DetailRow({
16171
16187
  absentLabel,
16172
16188
  meta
16173
16189
  }) {
16174
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
16190
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
16175
16191
  const has = value !== null && value !== void 0 && value.length > 0;
16176
16192
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-manifest-section__detail-row", children: [
16177
16193
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-manifest-section__detail-label", children: label }),
@@ -16194,7 +16210,7 @@ function TripManifestSection({
16194
16210
  components,
16195
16211
  style
16196
16212
  }) {
16197
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
16213
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
16198
16214
  const [q, setQ] = react.useState("");
16199
16215
  const [groupBy, setGroupBy] = react.useState("booking_group");
16200
16216
  const [filters, setFilters] = react.useState({});
@@ -16223,7 +16239,7 @@ function TripManifestSection({
16223
16239
  [groupBy, writeToken, wireFilters]
16224
16240
  );
16225
16241
  const hasActiveFilter = q.length > 0 || Object.keys(filters).length > 0;
16226
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-manifest-section", style: chunkASFUY3IE_cjs.tokenStyle(style), children: [
16242
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-manifest-section", style: chunkSMGXVEN3_cjs.tokenStyle(style), children: [
16227
16243
  facets === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(ManifestFacetTiles, { facets, filtered: hasActiveFilter }),
16228
16244
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-manifest-section__toolbar", children: [
16229
16245
  /* @__PURE__ */ jsxRuntime.jsx(ManifestSearchInput, { debounceMs: DEBOUNCE_MS, onDebouncedChange: setQ }),
@@ -16442,7 +16458,7 @@ function PaymentsSkeleton() {
16442
16458
  ] }, id)) });
16443
16459
  }
16444
16460
  function PaymentsEmpty({ onRecord }) {
16445
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
16461
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
16446
16462
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-payments-section__state", children: [
16447
16463
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-payments-section__state-glyph", children: /* @__PURE__ */ jsxRuntime.jsx(ReceiptIcon, {}) }),
16448
16464
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-payments-section__state-title", children: t("chrome.tripPayments.emptyTitle") }),
@@ -16451,7 +16467,7 @@ function PaymentsEmpty({ onRecord }) {
16451
16467
  ] });
16452
16468
  }
16453
16469
  function PaymentsFailed({ onRetry }) {
16454
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
16470
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
16455
16471
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-payments-section__state", role: "alert", children: [
16456
16472
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-payments-section__state-title", children: t("chrome.tripPayments.failedTitle") }),
16457
16473
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-payments-section__state-body", children: t("chrome.tripPayments.failedBody") }),
@@ -16459,7 +16475,7 @@ function PaymentsFailed({ onRetry }) {
16459
16475
  ] });
16460
16476
  }
16461
16477
  function PaymentsDark({ reason }) {
16462
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
16478
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
16463
16479
  if (reason === "mode") {
16464
16480
  return null;
16465
16481
  }
@@ -16480,7 +16496,7 @@ function PaymentsTable({
16480
16496
  locked,
16481
16497
  onVoid
16482
16498
  }) {
16483
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
16499
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
16484
16500
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-payments-section__table-wrap", children: /* @__PURE__ */ jsxRuntime.jsxs("table", { className: "kf-trip-payments-section__table", children: [
16485
16501
  /* @__PURE__ */ jsxRuntime.jsx("caption", { className: "kf-visually-hidden", children: t("chrome.tripPayments.tableCaption") }),
16486
16502
  /* @__PURE__ */ jsxRuntime.jsx("thead", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
@@ -16539,7 +16555,7 @@ function RecordPaymentDialog({
16539
16555
  onClose,
16540
16556
  onSubmit
16541
16557
  }) {
16542
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
16558
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
16543
16559
  const titleId = react.useId();
16544
16560
  const [travellerId, setTravellerId] = react.useState(null);
16545
16561
  const [amount, setAmount] = react.useState("");
@@ -16714,7 +16730,7 @@ function VoidPaymentDialog({
16714
16730
  onClose,
16715
16731
  onSubmit
16716
16732
  }) {
16717
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
16733
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
16718
16734
  const titleId = react.useId();
16719
16735
  const [reason, setReason] = react.useState("");
16720
16736
  const trimmed = reason.trim();
@@ -16792,9 +16808,9 @@ function TripPaymentsSection({
16792
16808
  balance,
16793
16809
  style
16794
16810
  }) {
16795
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
16796
- const collections = chunkPQJGV3RE_cjs.useCollections(tripRef);
16797
- const parties = chunkPQJGV3RE_cjs.useParties(tripRef);
16811
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
16812
+ const collections = chunkTYBIAPPT_cjs.useCollections(tripRef);
16813
+ const parties = chunkTYBIAPPT_cjs.useParties(tripRef);
16798
16814
  const [overlay, setOverlay] = react.useState({ kind: "none" });
16799
16815
  const [pending, setPending] = react.useState(false);
16800
16816
  const [errorCode, setErrorCode] = react.useState(void 0);
@@ -16874,7 +16890,7 @@ function TripPaymentsSection({
16874
16890
  }
16875
16891
  const currency = balance?.currency ?? rows[0]?.currency ?? "INR";
16876
16892
  const owingCount = eligibleRows.filter((row) => row.outstandingMinor > 0).length;
16877
- return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-payments-section", style: chunkASFUY3IE_cjs.tokenStyle(style), children: [
16893
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-payments-section", style: chunkSMGXVEN3_cjs.tokenStyle(style), children: [
16878
16894
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-payments-section__toolbar", children: [
16879
16895
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-payments-section__toolbar-title", children: t("chrome.tripPayments.panelLabel") }),
16880
16896
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-payments-section__toolbar-spacer" }),
@@ -17015,7 +17031,7 @@ function AssignTravellerDialog({
17015
17031
  onSubmit,
17016
17032
  onClose
17017
17033
  }) {
17018
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
17034
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
17019
17035
  const titleId = react.useId();
17020
17036
  const [pointId, setPointId] = react.useState(stops[0]?.id ?? "");
17021
17037
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -17086,7 +17102,7 @@ function BoardingRoster({
17086
17102
  onRetry,
17087
17103
  stops
17088
17104
  }) {
17089
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
17105
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
17090
17106
  if (failed) {
17091
17107
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-pickups-section__state", role: "alert", children: [
17092
17108
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-pickups-section__state-title", children: t("chrome.tripPickups.boardingFailedTitle") }),
@@ -17146,7 +17162,7 @@ function TravellerBoardRow({
17146
17162
  busy,
17147
17163
  onCorrect
17148
17164
  }) {
17149
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
17165
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
17150
17166
  const correctable = occupant.status !== "PENDING";
17151
17167
  const next = occupant.status === "BOARDED" ? "NO_SHOW" : "BOARDED";
17152
17168
  return /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "kf-trip-pickups-section__roster-row", children: [
@@ -17184,7 +17200,7 @@ function DeleteStopDialog({
17184
17200
  onDelete,
17185
17201
  onClose
17186
17202
  }) {
17187
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
17203
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
17188
17204
  const titleId = react.useId();
17189
17205
  const [target, setTarget] = react.useState(siblings[0]?.id ?? "");
17190
17206
  const occupied = stop.expectedCount > 0;
@@ -17438,7 +17454,7 @@ function PickupsEmpty({
17438
17454
  kindLabel,
17439
17455
  onAdd
17440
17456
  }) {
17441
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
17457
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
17442
17458
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-pickups-section__state", children: [
17443
17459
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-pickups-section__state-glyph", children: /* @__PURE__ */ jsxRuntime.jsx(BusIcon, {}) }),
17444
17460
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-pickups-section__state-title", children: t("chrome.tripPickups.emptyTitle").replace("{kind}", kindLabel) }),
@@ -17447,7 +17463,7 @@ function PickupsEmpty({
17447
17463
  ] });
17448
17464
  }
17449
17465
  function PickupsFailed({ onRetry }) {
17450
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
17466
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
17451
17467
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-pickups-section__state", role: "alert", children: [
17452
17468
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-pickups-section__state-title", children: t("chrome.tripPickups.failedTitle") }),
17453
17469
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-pickups-section__state-body", children: t("chrome.tripPickups.failedBody") }),
@@ -17455,7 +17471,7 @@ function PickupsFailed({ onRetry }) {
17455
17471
  ] });
17456
17472
  }
17457
17473
  function PickupsDark({ reason }) {
17458
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
17474
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
17459
17475
  if (reason === "mode") {
17460
17476
  return null;
17461
17477
  }
@@ -17489,7 +17505,7 @@ function StopFormDialog({
17489
17505
  onClose,
17490
17506
  onSubmit
17491
17507
  }) {
17492
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
17508
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
17493
17509
  const titleId = react.useId();
17494
17510
  const isEdit = stop !== null;
17495
17511
  const [kind, setKind] = react.useState(stop?.kind ?? defaultKind);
@@ -17636,7 +17652,7 @@ function StopFormDialog({
17636
17652
  );
17637
17653
  }
17638
17654
  function StopKebab({ stopName, onEdit, onDelete }) {
17639
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
17655
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
17640
17656
  const [open, setOpen] = react.useState(false);
17641
17657
  const rootRef = react.useRef(null);
17642
17658
  const triggerRef = react.useRef(null);
@@ -17713,7 +17729,7 @@ function StopCard({
17713
17729
  onDelete,
17714
17730
  onMoveBy
17715
17731
  }) {
17716
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
17732
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
17717
17733
  const isClosed = stop.status === "CLOSED";
17718
17734
  const canReorder = !isClosed;
17719
17735
  const percent = boardedPercent(stop);
@@ -17861,7 +17877,7 @@ function Segment({
17861
17877
  value,
17862
17878
  onChange
17863
17879
  }) {
17864
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
17880
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
17865
17881
  return /* @__PURE__ */ jsxRuntime.jsxs("fieldset", { className: "kf-trip-pickups-section__segment", children: [
17866
17882
  /* @__PURE__ */ jsxRuntime.jsx("legend", { className: "kf-visually-hidden", children: t(legendKey) }),
17867
17883
  options.map((option) => /* @__PURE__ */ jsxRuntime.jsx(
@@ -17924,8 +17940,8 @@ function TripPickupsSection({
17924
17940
  tripStartIso,
17925
17941
  style
17926
17942
  }) {
17927
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
17928
- const pickups = chunkPQJGV3RE_cjs.usePickups(tripRef);
17943
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
17944
+ const pickups = chunkTYBIAPPT_cjs.usePickups(tripRef);
17929
17945
  const [kind, setKind] = react.useState("PICKUP");
17930
17946
  const [view, setView] = react.useState("stops");
17931
17947
  const [overlay, setOverlay] = react.useState({ kind: "none" });
@@ -18085,7 +18101,7 @@ function TripPickupsSection({
18085
18101
  const kindLabel = t(
18086
18102
  kind === "PICKUP" ? "chrome.tripPickups.kindPickupOne" : "chrome.tripPickups.kindDropOne"
18087
18103
  );
18088
- return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-pickups-section", style: chunkASFUY3IE_cjs.tokenStyle(style), children: [
18104
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-pickups-section", style: chunkSMGXVEN3_cjs.tokenStyle(style), children: [
18089
18105
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-pickups-section__toolbar", children: [
18090
18106
  /* @__PURE__ */ jsxRuntime.jsx(ViewSwitcher, { value: view, onChange: setView }),
18091
18107
  /* @__PURE__ */ jsxRuntime.jsx(KindSwitcher, { value: kind, onChange: setKind }),
@@ -18308,7 +18324,7 @@ function AutoAssignDialog({
18308
18324
  onApply,
18309
18325
  onClose
18310
18326
  }) {
18311
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
18327
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
18312
18328
  const titleId = react.useId();
18313
18329
  const [reassignAll, setReassignAll] = react.useState(false);
18314
18330
  const roomCodeById = new Map(group.rooms.map((room) => [room.id, room.code]));
@@ -18403,7 +18419,7 @@ function AutoAssignDialog({
18403
18419
  /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-rooming-section__plan", children: [
18404
18420
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-rooming-section__plan-title", children: t("chrome.tripRooming.rulesTitle") }),
18405
18421
  /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "kf-trip-rooming-section__rule-list", children: preview.perRule.map((entry) => {
18406
- const severity = chunkPQJGV3RE_cjs.roomingHeuristicSeverity(entry.rule);
18422
+ const severity = chunkTYBIAPPT_cjs.roomingHeuristicSeverity(entry.rule);
18407
18423
  const relaxed = entry.outcome === "relaxed";
18408
18424
  const violation = relaxed && severity === "never";
18409
18425
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -18449,7 +18465,7 @@ function DeleteShell({
18449
18465
  onConfirm,
18450
18466
  onClose
18451
18467
  }) {
18452
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
18468
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
18453
18469
  const titleId = react.useId();
18454
18470
  return /* @__PURE__ */ jsxRuntime.jsxs(
18455
18471
  SheetDialog,
@@ -18495,7 +18511,7 @@ function DeleteRoomDialog({
18495
18511
  onConfirm,
18496
18512
  onClose
18497
18513
  }) {
18498
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
18514
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
18499
18515
  const occupied = room.beds.filter((bed) => bed.occupant !== null).length;
18500
18516
  return /* @__PURE__ */ jsxRuntime.jsx(
18501
18517
  DeleteShell,
@@ -18521,7 +18537,7 @@ function DeleteWindowDialog({
18521
18537
  onConfirm,
18522
18538
  onClose
18523
18539
  }) {
18524
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
18540
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
18525
18541
  return /* @__PURE__ */ jsxRuntime.jsx(
18526
18542
  DeleteShell,
18527
18543
  {
@@ -18619,15 +18635,15 @@ function roomTypeLabelKey(roomType) {
18619
18635
  return ROOM_TYPE_LABEL_KEY[roomType] ?? "chrome.tripRooming.roomType.shared";
18620
18636
  }
18621
18637
  function toneAttrs(tone) {
18622
- const parsed = chunkPQJGV3RE_cjs.parseRoomingTone(tone);
18638
+ const parsed = chunkTYBIAPPT_cjs.parseRoomingTone(tone);
18623
18639
  if (parsed === void 0) {
18624
- return { family: chunkPQJGV3RE_cjs.TONE_FAMILIES.UNKNOWN, shade: 0 };
18640
+ return { family: chunkTYBIAPPT_cjs.TONE_FAMILIES.UNKNOWN, shade: 0 };
18625
18641
  }
18626
- const shade = parsed.shade < chunkPQJGV3RE_cjs.SHADES_PER_FAMILY ? parsed.shade : parsed.shade % chunkPQJGV3RE_cjs.SHADES_PER_FAMILY;
18642
+ const shade = parsed.shade < chunkTYBIAPPT_cjs.SHADES_PER_FAMILY ? parsed.shade : parsed.shade % chunkTYBIAPPT_cjs.SHADES_PER_FAMILY;
18627
18643
  return { family: parsed.family, shade };
18628
18644
  }
18629
18645
  function glyphOf(occupant) {
18630
- return occupant.glyph === "" ? chunkPQJGV3RE_cjs.FALLBACK_GLYPH : occupant.glyph;
18646
+ return occupant.glyph === "" ? chunkTYBIAPPT_cjs.FALLBACK_GLYPH : occupant.glyph;
18631
18647
  }
18632
18648
  function TravellerGlyph({
18633
18649
  occupant,
@@ -18665,7 +18681,7 @@ var COLLAPSED_COUNT = 10;
18665
18681
  function IdentityLegend({
18666
18682
  occupants
18667
18683
  }) {
18668
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
18684
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
18669
18685
  const [open, setOpen] = react.useState(false);
18670
18686
  if (occupants.length === 0) {
18671
18687
  return null;
@@ -18792,7 +18808,7 @@ function RoomFormDialog({
18792
18808
  onClose,
18793
18809
  onSubmit
18794
18810
  }) {
18795
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
18811
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
18796
18812
  const titleId = react.useId();
18797
18813
  const isEdit = room !== null;
18798
18814
  const [code, setCode] = react.useState(room?.code ?? "");
@@ -18916,7 +18932,7 @@ function RoomingSkeleton() {
18916
18932
  ] }, id)) });
18917
18933
  }
18918
18934
  function RoomingEmpty({ onAddWindow }) {
18919
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
18935
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
18920
18936
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-rooming-section__state", children: [
18921
18937
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-rooming-section__state-glyph", children: /* @__PURE__ */ jsxRuntime.jsx(BedIcon, {}) }),
18922
18938
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-rooming-section__state-title", children: t("chrome.tripRooming.emptyTitle") }),
@@ -18925,7 +18941,7 @@ function RoomingEmpty({ onAddWindow }) {
18925
18941
  ] });
18926
18942
  }
18927
18943
  function RoomingFailed({ onRetry }) {
18928
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
18944
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
18929
18945
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-rooming-section__state", role: "alert", children: [
18930
18946
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-rooming-section__state-title", children: t("chrome.tripRooming.failedTitle") }),
18931
18947
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-rooming-section__state-body", children: t("chrome.tripRooming.failedBody") }),
@@ -18933,7 +18949,7 @@ function RoomingFailed({ onRetry }) {
18933
18949
  ] });
18934
18950
  }
18935
18951
  function RoomingDark({ reason }) {
18936
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
18952
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
18937
18953
  if (reason === "mode") {
18938
18954
  return null;
18939
18955
  }
@@ -18948,7 +18964,7 @@ function RoomingDark({ reason }) {
18948
18964
  ] });
18949
18965
  }
18950
18966
  function RoomKebab({ roomCode, onEdit, onDelete }) {
18951
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
18967
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
18952
18968
  const [open, setOpen] = react.useState(false);
18953
18969
  const rootRef = react.useRef(null);
18954
18970
  const triggerRef = react.useRef(null);
@@ -19013,7 +19029,7 @@ function RoomKebab({ roomCode, onEdit, onDelete }) {
19013
19029
  ] });
19014
19030
  }
19015
19031
  function RoomCard({ room, drag, busy, onEdit, onDelete }) {
19016
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
19032
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
19017
19033
  const occupied = room.beds.filter((bed) => bed.occupant !== null).length;
19018
19034
  return /* @__PURE__ */ jsxRuntime.jsxs("article", { className: "kf-trip-rooming-section__room", "data-busy": busy ? "true" : void 0, children: [
19019
19035
  /* @__PURE__ */ jsxRuntime.jsxs("header", { className: "kf-trip-rooming-section__room-head", children: [
@@ -19063,7 +19079,7 @@ function UnassignedStrip({
19063
19079
  drag,
19064
19080
  busy
19065
19081
  }) {
19066
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
19082
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
19067
19083
  return /* @__PURE__ */ jsxRuntime.jsxs(
19068
19084
  "div",
19069
19085
  {
@@ -19137,7 +19153,7 @@ function WindowAccordion({
19137
19153
  onEditRoom,
19138
19154
  onDeleteRoom
19139
19155
  }) {
19140
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
19156
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
19141
19157
  const percent = fillPercent(group);
19142
19158
  const bodyId = `kf-rooming-window-${group.window.id}`;
19143
19159
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -19287,7 +19303,7 @@ function WindowFormDialog({
19287
19303
  onClose,
19288
19304
  onSubmit
19289
19305
  }) {
19290
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
19306
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
19291
19307
  const titleId = react.useId();
19292
19308
  const isEdit = window !== null;
19293
19309
  const [label, setLabel] = react.useState(window?.label ?? "");
@@ -19400,8 +19416,8 @@ function TripRoomingSection({
19400
19416
  tripEndIso,
19401
19417
  style
19402
19418
  }) {
19403
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
19404
- const rooming = chunkPQJGV3RE_cjs.useRooming(tripRef);
19419
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
19420
+ const rooming = chunkTYBIAPPT_cjs.useRooming(tripRef);
19405
19421
  const [openWindowId, setOpenWindowId] = react.useState(null);
19406
19422
  const [overlay, setOverlay] = react.useState({ kind: "none" });
19407
19423
  const [pending, setPending] = react.useState(false);
@@ -19539,7 +19555,7 @@ function TripRoomingSection({
19539
19555
  return /* @__PURE__ */ jsxRuntime.jsx(RoomingDark, { reason: rooming.reason });
19540
19556
  }
19541
19557
  const pool = ready?.unassignedPool;
19542
- return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-rooming-section", style: chunkASFUY3IE_cjs.tokenStyle(style), children: [
19558
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-rooming-section", style: chunkSMGXVEN3_cjs.tokenStyle(style), children: [
19543
19559
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-rooming-section__toolbar", children: [
19544
19560
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-rooming-section__toolbar-title", children: t("chrome.tripRooming.panelLabel") }),
19545
19561
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-rooming-section__toolbar-spacer" }),
@@ -19773,7 +19789,7 @@ function isAgencyAuthored(vendor) {
19773
19789
  return vendor.externalId.startsWith("kf-");
19774
19790
  }
19775
19791
  function CategoryTabs({ selected, counts, total, onSelect }) {
19776
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
19792
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
19777
19793
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-suppliers-section__chips", children: [
19778
19794
  /* @__PURE__ */ jsxRuntime.jsxs(
19779
19795
  "button",
@@ -19816,7 +19832,7 @@ function DeleteSupplierDialog({
19816
19832
  onConfirm,
19817
19833
  onClose
19818
19834
  }) {
19819
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
19835
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
19820
19836
  const titleId = react.useId();
19821
19837
  const blockers = deleteBlockers(usage);
19822
19838
  const blockedLocally = blockers !== void 0 && blockers.vehicles + blockers.expenses > 0;
@@ -19969,7 +19985,7 @@ function SupplierFormDialog({
19969
19985
  onClose,
19970
19986
  onSubmit
19971
19987
  }) {
19972
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
19988
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
19973
19989
  const titleId = react.useId();
19974
19990
  const isEdit = supplier !== null;
19975
19991
  const [name, setName] = react.useState(supplier?.name ?? "");
@@ -20091,7 +20107,7 @@ function SuppliersSkeleton() {
20091
20107
  ] }, id)) });
20092
20108
  }
20093
20109
  function SuppliersEmpty({ onAdd }) {
20094
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
20110
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
20095
20111
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-suppliers-section__state", children: [
20096
20112
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-suppliers-section__state-glyph", children: /* @__PURE__ */ jsxRuntime.jsx(StorefrontIcon, {}) }),
20097
20113
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-suppliers-section__state-title", children: t("chrome.tripSuppliers.emptyTitle") }),
@@ -20100,7 +20116,7 @@ function SuppliersEmpty({ onAdd }) {
20100
20116
  ] });
20101
20117
  }
20102
20118
  function SuppliersNoMatch({ onClear }) {
20103
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
20119
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
20104
20120
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-suppliers-section__state", children: [
20105
20121
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-suppliers-section__state-title", children: t("chrome.tripSuppliers.noMatchTitle") }),
20106
20122
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-suppliers-section__state-body", children: t("chrome.tripSuppliers.noMatchBody") }),
@@ -20108,7 +20124,7 @@ function SuppliersNoMatch({ onClear }) {
20108
20124
  ] });
20109
20125
  }
20110
20126
  function SuppliersFailed({ onRetry }) {
20111
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
20127
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
20112
20128
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-suppliers-section__state", role: "alert", children: [
20113
20129
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-suppliers-section__state-title", children: t("chrome.tripSuppliers.failedTitle") }),
20114
20130
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-suppliers-section__state-body", children: t("chrome.tripSuppliers.failedBody") }),
@@ -20116,7 +20132,7 @@ function SuppliersFailed({ onRetry }) {
20116
20132
  ] });
20117
20133
  }
20118
20134
  function SuppliersDark({ reason }) {
20119
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
20135
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
20120
20136
  if (reason === "mode") {
20121
20137
  return null;
20122
20138
  }
@@ -20131,7 +20147,7 @@ function SuppliersDark({ reason }) {
20131
20147
  ] });
20132
20148
  }
20133
20149
  function SupplierKebab({ name, busy, onEdit, onDelete }) {
20134
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
20150
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
20135
20151
  const [open, setOpen] = react.useState(false);
20136
20152
  const rootRef = react.useRef(null);
20137
20153
  const triggerRef = react.useRef(null);
@@ -20198,7 +20214,7 @@ function SupplierKebab({ name, busy, onEdit, onDelete }) {
20198
20214
  ] });
20199
20215
  }
20200
20216
  function SupplierUsageCell({ usage }) {
20201
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
20217
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
20202
20218
  const parts = [];
20203
20219
  if (usage.vehicles !== void 0 && usage.vehicles > 0) {
20204
20220
  parts.push(
@@ -20242,7 +20258,7 @@ function SupplierTable({
20242
20258
  onEdit,
20243
20259
  onDelete
20244
20260
  }) {
20245
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
20261
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
20246
20262
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-suppliers-section__table-wrap", children: /* @__PURE__ */ jsxRuntime.jsxs("table", { className: "kf-trip-suppliers-section__table", children: [
20247
20263
  /* @__PURE__ */ jsxRuntime.jsx("caption", { className: "kf-visually-hidden", children: t("chrome.tripSuppliers.tableCaption") }),
20248
20264
  /* @__PURE__ */ jsxRuntime.jsx("thead", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
@@ -20310,11 +20326,11 @@ function serverBlockOf(error) {
20310
20326
  return { vehicles: details.vehicleCount ?? 0, expenses: details.expenseCount ?? 0 };
20311
20327
  }
20312
20328
  function TripSuppliersSection({ tripRef, style }) {
20313
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
20314
- const vendors = chunkPQJGV3RE_cjs.useVendors(tripRef, "");
20315
- const seating = chunkPQJGV3RE_cjs.useSeating(tripRef);
20316
- const itinerary = chunkPQJGV3RE_cjs.useItinerary(tripRef);
20317
- const expenses = chunkPQJGV3RE_cjs.useExpenses(tripRef);
20329
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
20330
+ const vendors = chunkTYBIAPPT_cjs.useVendors(tripRef, "");
20331
+ const seating = chunkTYBIAPPT_cjs.useSeating(tripRef);
20332
+ const itinerary = chunkTYBIAPPT_cjs.useItinerary(tripRef);
20333
+ const expenses = chunkTYBIAPPT_cjs.useExpenses(tripRef);
20318
20334
  const [category, setCategory] = react.useState(null);
20319
20335
  const [query, setQuery] = react.useState("");
20320
20336
  const [sortKey, setSortKey] = react.useState("name");
@@ -20397,7 +20413,7 @@ function TripSuppliersSection({ tripRef, style }) {
20397
20413
  return /* @__PURE__ */ jsxRuntime.jsx(SuppliersDark, { reason: vendors.reason });
20398
20414
  }
20399
20415
  const filtered = category !== null || query.trim() !== "";
20400
- return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-suppliers-section", style: chunkASFUY3IE_cjs.tokenStyle(style), children: [
20416
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-suppliers-section", style: chunkSMGXVEN3_cjs.tokenStyle(style), children: [
20401
20417
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-suppliers-section__toolbar", children: [
20402
20418
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-suppliers-section__toolbar-title", children: t("chrome.tripSuppliers.panelLabel") }),
20403
20419
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-suppliers-section__toolbar-spacer" }),
@@ -20536,7 +20552,7 @@ function AutoAssignDialog2({
20536
20552
  onApply,
20537
20553
  onClose
20538
20554
  }) {
20539
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
20555
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
20540
20556
  const titleId = react.useId();
20541
20557
  const [reassignAll, setReassignAll] = react.useState(false);
20542
20558
  const [genderAdjacency, setGenderAdjacency] = react.useState("AVOID_UNRELATED");
@@ -20698,7 +20714,7 @@ function DayFilter({
20698
20714
  countByDay,
20699
20715
  onSelect
20700
20716
  }) {
20701
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
20717
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
20702
20718
  const days = Array.from({ length: durationDays }, (_unused, index) => index);
20703
20719
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-vehicles-section__days", children: [
20704
20720
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-vehicles-section__days-label", children: t("chrome.tripVehicles.showDay") }),
@@ -20831,7 +20847,7 @@ function DeleteVehicleDialog({
20831
20847
  onConfirm,
20832
20848
  onClose
20833
20849
  }) {
20834
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
20850
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
20835
20851
  const titleId = react.useId();
20836
20852
  const released = occupantsOf(vehicle).length;
20837
20853
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -21008,7 +21024,7 @@ function ManagerLinkDialog({
21008
21024
  onClose,
21009
21025
  onSubmit
21010
21026
  }) {
21011
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
21027
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
21012
21028
  const titleId = react.useId();
21013
21029
  const [chosen, setChosen] = react.useState(null);
21014
21030
  const demotedFrom = chosen === null ? void 0 : managerVehicleByRef.get(chosen);
@@ -21085,7 +21101,7 @@ function UnassignedStrip2({
21085
21101
  drag,
21086
21102
  busy
21087
21103
  }) {
21088
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
21104
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
21089
21105
  return /* @__PURE__ */ jsxRuntime.jsxs(
21090
21106
  "div",
21091
21107
  {
@@ -21152,7 +21168,7 @@ function OccupantRoster({
21152
21168
  variant,
21153
21169
  emptyKey
21154
21170
  }) {
21155
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
21171
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
21156
21172
  const target = { containerId: vehicleId, slotLabel: "" };
21157
21173
  const isOver = drag.overSlot !== null && drag.overSlot.containerId === vehicleId && drag.overSlot.slotLabel === "";
21158
21174
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -21196,7 +21212,7 @@ function OccupantRoster({
21196
21212
  );
21197
21213
  }
21198
21214
  function SeatTile({ seat, vehicleId, drag, busy }) {
21199
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
21215
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
21200
21216
  const target = { containerId: vehicleId, slotLabel: seat.seatLabel };
21201
21217
  const isOver = drag.overSlot !== null && drag.overSlot.containerId === target.containerId && drag.overSlot.slotLabel === target.slotLabel;
21202
21218
  const occupant = seat.occupant;
@@ -21259,7 +21275,7 @@ function VehicleKebab({
21259
21275
  onUnlinkManager,
21260
21276
  onDelete
21261
21277
  }) {
21262
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
21278
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
21263
21279
  const [open, setOpen] = react.useState(false);
21264
21280
  const rootRef = react.useRef(null);
21265
21281
  const triggerRef = react.useRef(null);
@@ -21369,7 +21385,7 @@ function VehicleCard({
21369
21385
  onUnlinkManager,
21370
21386
  onDelete
21371
21387
  }) {
21372
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
21388
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
21373
21389
  const percent = fillPercent2(vehicle);
21374
21390
  const days = daysLabel(vehicle.days);
21375
21391
  const bodyId = `kf-vehicle-${vehicle.id}`;
@@ -21504,7 +21520,7 @@ function VehicleDaysDialog({
21504
21520
  onClose,
21505
21521
  onSubmit
21506
21522
  }) {
21507
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
21523
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
21508
21524
  const titleId = react.useId();
21509
21525
  const [selected, setSelected] = react.useState(vehicle.days);
21510
21526
  const wholeTrip = selected.length === 0;
@@ -21603,7 +21619,7 @@ function VehicleFormDialog({
21603
21619
  onClose,
21604
21620
  onSubmit
21605
21621
  }) {
21606
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
21622
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
21607
21623
  const titleId = react.useId();
21608
21624
  const isEdit = vehicle !== null;
21609
21625
  const [regNo, setRegNo] = react.useState(vehicle?.regNo ?? "");
@@ -21798,7 +21814,7 @@ function VehiclesSkeleton() {
21798
21814
  ] }, id)) });
21799
21815
  }
21800
21816
  function VehiclesEmpty({ onAddVehicle }) {
21801
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
21817
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
21802
21818
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-vehicles-section__state", children: [
21803
21819
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-vehicles-section__state-glyph", children: /* @__PURE__ */ jsxRuntime.jsx(BusIcon2, {}) }),
21804
21820
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-vehicles-section__state-title", children: t("chrome.tripVehicles.emptyTitle") }),
@@ -21807,7 +21823,7 @@ function VehiclesEmpty({ onAddVehicle }) {
21807
21823
  ] });
21808
21824
  }
21809
21825
  function VehiclesFailed({ onRetry }) {
21810
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
21826
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
21811
21827
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-vehicles-section__state", role: "alert", children: [
21812
21828
  /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-vehicles-section__state-title", children: t("chrome.tripVehicles.failedTitle") }),
21813
21829
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-vehicles-section__state-body", children: t("chrome.tripVehicles.failedBody") }),
@@ -21815,7 +21831,7 @@ function VehiclesFailed({ onRetry }) {
21815
21831
  ] });
21816
21832
  }
21817
21833
  function VehiclesDark({ reason }) {
21818
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
21834
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
21819
21835
  if (reason === "mode") {
21820
21836
  return null;
21821
21837
  }
@@ -21838,9 +21854,9 @@ function TripVehiclesSection({
21838
21854
  durationDays,
21839
21855
  style
21840
21856
  }) {
21841
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
21842
- const seating = chunkPQJGV3RE_cjs.useSeating(tripRef);
21843
- const managers = chunkPQJGV3RE_cjs.useManagers(tripRef);
21857
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
21858
+ const seating = chunkTYBIAPPT_cjs.useSeating(tripRef);
21859
+ const managers = chunkTYBIAPPT_cjs.useManagers(tripRef);
21844
21860
  const [openVehicleId, setOpenVehicleId] = react.useState(null);
21845
21861
  const [day, setDay] = react.useState(null);
21846
21862
  const [overlay, setOverlay] = react.useState({ kind: "none" });
@@ -21974,7 +21990,7 @@ function TripVehiclesSection({
21974
21990
  return /* @__PURE__ */ jsxRuntime.jsx(VehiclesDark, { reason: seating.reason });
21975
21991
  }
21976
21992
  const pool = ready?.unassignedPool;
21977
- return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-vehicles-section", style: chunkASFUY3IE_cjs.tokenStyle(style), children: [
21993
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-vehicles-section", style: chunkSMGXVEN3_cjs.tokenStyle(style), children: [
21978
21994
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-vehicles-section__toolbar", children: [
21979
21995
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-vehicles-section__toolbar-title", children: t("chrome.tripVehicles.panelLabel") }),
21980
21996
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-vehicles-section__toolbar-spacer" }),
@@ -22267,7 +22283,7 @@ function WarningIcon13(props) {
22267
22283
 
22268
22284
  // src/admin/composite/office/TripWorkspace/internal/panels/deriveCloseout.ts
22269
22285
  function tabForBlocker(row) {
22270
- return chunkMP4IMAPF_cjs.resolveBlockerDeepLink({ actionKey: row.actionKey })?.tab;
22286
+ return chunkIAXVUR7H_cjs.resolveBlockerDeepLink({ actionKey: row.actionKey })?.tab;
22271
22287
  }
22272
22288
  function orderedBlockers(rows) {
22273
22289
  return [...rows].sort((a, b) => {
@@ -22307,8 +22323,8 @@ function codeOf11(error) {
22307
22323
  return classification?.code ?? "unknown";
22308
22324
  }
22309
22325
  function CloseoutCard({ tripRef, onOpenTab, litTabs }) {
22310
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
22311
- const closeout = chunkPQJGV3RE_cjs.useCloseout(tripRef);
22326
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
22327
+ const closeout = chunkTYBIAPPT_cjs.useCloseout(tripRef);
22312
22328
  const [note, setNote] = react.useState(null);
22313
22329
  const [pending, setPending] = react.useState(void 0);
22314
22330
  const [errorCode, setErrorCode] = react.useState(void 0);
@@ -22515,7 +22531,7 @@ function AssignManagerDialog({
22515
22531
  onClose,
22516
22532
  onAssign
22517
22533
  }) {
22518
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
22534
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
22519
22535
  const titleId = react.useId();
22520
22536
  const [query, setQuery] = react.useState("");
22521
22537
  const [selected, setSelected] = react.useState(null);
@@ -22647,8 +22663,8 @@ var ROLE_LABEL_KEY = {
22647
22663
  COORDINATOR: "chrome.tripWorkspace.managers.roleCoordinator"
22648
22664
  };
22649
22665
  function OverviewManagersCard({ trip, onChanged }) {
22650
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
22651
- const { promoteManager, assignManager, unassignManager, makeManagersFetch } = chunkMP4IMAPF_cjs.useDirectories();
22666
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
22667
+ const { promoteManager, assignManager, unassignManager, makeManagersFetch } = chunkIAXVUR7H_cjs.useDirectories();
22652
22668
  const [pendingId, setPendingId] = react.useState(void 0);
22653
22669
  const [errorCode, setErrorCode] = react.useState(void 0);
22654
22670
  const [assignOpen, setAssignOpen] = react.useState(false);
@@ -22809,13 +22825,13 @@ function TripOverviewPanel({
22809
22825
  onOpenTab,
22810
22826
  onTripChanged
22811
22827
  }) {
22812
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
22813
- const today = chunkPQJGV3RE_cjs.useManagerToday(trip.ref);
22814
- const expenses = chunkPQJGV3RE_cjs.useExpenses(trip.ref);
22828
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
22829
+ const today = chunkTYBIAPPT_cjs.useManagerToday(trip.ref);
22830
+ const expenses = chunkTYBIAPPT_cjs.useExpenses(trip.ref);
22815
22831
  const spendTotalMinor = expenses.status === "ready" && expenses.totals.loaded && !expenses.totals.lastFetchFailed ? expenses.totals.spendTotalMinor : void 0;
22816
22832
  const finance = deriveFinance(trip, spendTotalMinor);
22817
22833
  const quickActions = QUICK_ACTION_TABS.filter((key) => litTabs.has(key));
22818
- const closeoutProbe = chunkPQJGV3RE_cjs.useCloseout(trip.ref);
22834
+ const closeoutProbe = chunkTYBIAPPT_cjs.useCloseout(trip.ref);
22819
22835
  const closeoutStage = closeoutProbe.status === "ready" && hasReturned(closeoutProbe.aggregate) ? closeoutProbe.aggregate?.stage ?? null : null;
22820
22836
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__overview", children: [
22821
22837
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__overview-main", children: [
@@ -22854,7 +22870,7 @@ function TripOverviewPanel({
22854
22870
  function TodayCard({
22855
22871
  today
22856
22872
  }) {
22857
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
22873
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
22858
22874
  if (today.kind === "idle") return null;
22859
22875
  const openChecklist = today.checklist ?? [];
22860
22876
  const itinerary = today.itinerary ?? [];
@@ -22878,7 +22894,7 @@ function TodayCard({
22878
22894
  function FinanceCard({
22879
22895
  finance
22880
22896
  }) {
22881
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
22897
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
22882
22898
  return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-workspace__card", children: [
22883
22899
  /* @__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") }) }),
22884
22900
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__finance-body", children: [
@@ -23141,7 +23157,7 @@ var BLOCKER_BODY_KEY = {
23141
23157
  capabilityDark: "chrome.tripWorkspace.blocker.capabilityDarkBody"
23142
23158
  };
23143
23159
  function TripTabPlaceholder({ tabKey, blocker }) {
23144
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
23160
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
23145
23161
  const label = t(TAB_LABEL_KEY[tabKey]);
23146
23162
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__placeholder", children: [
23147
23163
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-workspace__placeholder-glyph", children: blocker === "deferred" ? /* @__PURE__ */ jsxRuntime.jsx(ClockIcon2, {}) : /* @__PURE__ */ jsxRuntime.jsx(LockIcon11, {}) }),
@@ -23151,7 +23167,7 @@ function TripTabPlaceholder({ tabKey, blocker }) {
23151
23167
  ] });
23152
23168
  }
23153
23169
  function TripKpiStrip({ cells }) {
23154
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
23170
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
23155
23171
  if (cells.length === 0) return null;
23156
23172
  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: [
23157
23173
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-workspace__kpi-label", children: t(cell.labelKey) }),
@@ -23160,7 +23176,7 @@ function TripKpiStrip({ cells }) {
23160
23176
  ] }, cell.key)) });
23161
23177
  }
23162
23178
  function TripTabRail({ tabs, activeKey, onSelect }) {
23163
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
23179
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
23164
23180
  return /* @__PURE__ */ jsxRuntime.jsx(
23165
23181
  "div",
23166
23182
  {
@@ -23194,7 +23210,7 @@ var STATUS_LABEL_KEY9 = {
23194
23210
  CANCELLED: "chrome.tripDirectory.status.cancelled"
23195
23211
  };
23196
23212
  function TripWorkspaceHead({ trip, onBack, style }) {
23197
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
23213
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
23198
23214
  const head = deriveTripHead(trip);
23199
23215
  const subLabelParts = [
23200
23216
  head.dateRangeLabel,
@@ -23205,7 +23221,7 @@ function TripWorkspaceHead({ trip, onBack, style }) {
23205
23221
  trip.manifestCount === 1 ? "chrome.tripWorkspace.travellerCountOne" : "chrome.tripWorkspace.travellerCount"
23206
23222
  ).replace("{count}", String(trip.manifestCount))
23207
23223
  ];
23208
- return /* @__PURE__ */ jsxRuntime.jsx("header", { className: "kf-trip-workspace__head", style: chunkASFUY3IE_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__head-identity", children: [
23224
+ return /* @__PURE__ */ jsxRuntime.jsx("header", { className: "kf-trip-workspace__head", style: chunkSMGXVEN3_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__head-identity", children: [
23209
23225
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__eyebrow", children: [
23210
23226
  onBack === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(
23211
23227
  "button",
@@ -23245,10 +23261,10 @@ function TripWorkspace({
23245
23261
  components,
23246
23262
  style
23247
23263
  }) {
23248
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
23249
- const { read, readFailed, refresh } = chunkMP4IMAPF_cjs.useAgencyTrip(tripRef);
23264
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
23265
+ const { read, readFailed, refresh } = chunkIAXVUR7H_cjs.useAgencyTrip(tripRef);
23250
23266
  if (readFailed) {
23251
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-workspace", style: chunkASFUY3IE_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__status-block", role: "alert", children: [
23267
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-workspace", style: chunkSMGXVEN3_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__status-block", role: "alert", children: [
23252
23268
  /* @__PURE__ */ jsxRuntime.jsx(WarningIcon13, { className: "kf-trip-workspace__status-icon" }),
23253
23269
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-workspace__status-title", children: t("chrome.tripWorkspace.errorTitle") }),
23254
23270
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-workspace__status-body", children: t("chrome.tripWorkspace.errorBody") }),
@@ -23264,7 +23280,7 @@ function TripWorkspace({
23264
23280
  ] }) });
23265
23281
  }
23266
23282
  if (read === void 0) {
23267
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-workspace", style: chunkASFUY3IE_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(TripWorkspaceSkeleton, {}) });
23283
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-workspace", style: chunkSMGXVEN3_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(TripWorkspaceSkeleton, {}) });
23268
23284
  }
23269
23285
  return /* @__PURE__ */ jsxRuntime.jsx(
23270
23286
  TripWorkspaceBody,
@@ -23292,7 +23308,7 @@ function TripWorkspaceBody({
23292
23308
  components,
23293
23309
  style
23294
23310
  }) {
23295
- const { statuses, loaded } = chunkMP4IMAPF_cjs.useCapabilityStatuses(tripRef);
23311
+ const { statuses, loaded } = chunkIAXVUR7H_cjs.useCapabilityStatuses(tripRef);
23296
23312
  const Head = components?.TripWorkspaceHead ?? TripWorkspaceHead;
23297
23313
  const tabs = react.useMemo(() => resolveTripTabs(trip.eventType, statuses), [trip.eventType, statuses]);
23298
23314
  const [requestedTab, setRequestedTab] = react.useState(initialTab ?? "overview");
@@ -23376,7 +23392,7 @@ function TripWorkspaceBody({
23376
23392
  }),
23377
23393
  [trip, litTabs, tripRef, onTripChanged, onOpenTravellerProfile]
23378
23394
  );
23379
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace", style: chunkASFUY3IE_cjs.tokenStyle(style), children: [
23395
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace", style: chunkSMGXVEN3_cjs.tokenStyle(style), children: [
23380
23396
  /* @__PURE__ */ jsxRuntime.jsx(Head, { trip, ...onBack !== void 0 ? { onBack } : {} }),
23381
23397
  /* @__PURE__ */ jsxRuntime.jsx(TripKpiStrip, { cells: kpis }),
23382
23398
  loaded ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
@@ -23573,7 +23589,7 @@ function AdminShell({
23573
23589
  function renderNavIcon(iconKey) {
23574
23590
  return NavIcon !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(NavIcon, { iconKey }) : navIcon(iconKey);
23575
23591
  }
23576
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-admin-shell", style: chunkASFUY3IE_cjs.tokenStyle(style), children: [
23592
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-admin-shell", style: chunkSMGXVEN3_cjs.tokenStyle(style), children: [
23577
23593
  /* @__PURE__ */ jsxRuntime.jsxs("aside", { className: "kf-admin-shell__sidebar", children: [
23578
23594
  brand !== void 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-admin-shell__brand", children: [
23579
23595
  brand.logo !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-admin-shell__brand-logo", children: brand.logo }) : null,
@@ -23677,7 +23693,7 @@ function AdminShell({
23677
23693
  ] });
23678
23694
  }
23679
23695
  function KaafilAgencyWorkspace(props) {
23680
- const session = chunkASFUY3IE_cjs.useSession();
23696
+ const session = chunkSMGXVEN3_cjs.useSession();
23681
23697
  if (session.status !== "authenticated") {
23682
23698
  return null;
23683
23699
  }
@@ -23702,8 +23718,8 @@ function ReadyKaafilAgencyWorkspace(props) {
23702
23718
  components,
23703
23719
  style
23704
23720
  } = props;
23705
- const { t } = chunkASFUY3IE_cjs.useKaafilChrome();
23706
- const agencyAdminMe = chunkMP4IMAPF_cjs.useAgencyAdminMe();
23721
+ const { t } = chunkSMGXVEN3_cjs.useKaafilChrome();
23722
+ const agencyAdminMe = chunkIAXVUR7H_cjs.useAgencyAdminMe();
23707
23723
  const [internalPane, setInternalPane] = react.useState(
23708
23724
  initialPane ?? "trips"
23709
23725
  );
@@ -23964,27 +23980,27 @@ function ReadyKaafilAgencyWorkspace(props) {
23964
23980
 
23965
23981
  Object.defineProperty(exports, "BootErrorScreen", {
23966
23982
  enumerable: true,
23967
- get: function () { return chunkTDFM563X_cjs.BootErrorScreen; }
23983
+ get: function () { return chunkFO5VJJUO_cjs.BootErrorScreen; }
23968
23984
  });
23969
23985
  Object.defineProperty(exports, "LockedTripScreen", {
23970
23986
  enumerable: true,
23971
- get: function () { return chunkTDFM563X_cjs.LockedTripScreen; }
23987
+ get: function () { return chunkFO5VJJUO_cjs.LockedTripScreen; }
23972
23988
  });
23973
23989
  Object.defineProperty(exports, "NotFoundScreen", {
23974
23990
  enumerable: true,
23975
- get: function () { return chunkTDFM563X_cjs.NotFoundScreen; }
23991
+ get: function () { return chunkFO5VJJUO_cjs.NotFoundScreen; }
23976
23992
  });
23977
23993
  Object.defineProperty(exports, "OfflineFallbackScreen", {
23978
23994
  enumerable: true,
23979
- get: function () { return chunkTDFM563X_cjs.OfflineFallbackScreen; }
23995
+ get: function () { return chunkFO5VJJUO_cjs.OfflineFallbackScreen; }
23980
23996
  });
23981
23997
  Object.defineProperty(exports, "PlanLockedScreen", {
23982
23998
  enumerable: true,
23983
- get: function () { return chunkTDFM563X_cjs.PlanLockedScreen; }
23999
+ get: function () { return chunkFO5VJJUO_cjs.PlanLockedScreen; }
23984
24000
  });
23985
24001
  Object.defineProperty(exports, "SessionExpiredScreen", {
23986
24002
  enumerable: true,
23987
- get: function () { return chunkTDFM563X_cjs.SessionExpiredScreen; }
24003
+ get: function () { return chunkFO5VJJUO_cjs.SessionExpiredScreen; }
23988
24004
  });
23989
24005
  exports.AdminShell = AdminShell;
23990
24006
  exports.AgencySettingsScreen = AgencySettingsScreen;