kaafil-react-uikit 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/admin/index.cjs +345 -345
- package/dist/admin/index.js +5 -5
- package/dist/{chunk-XBLAVNP3.cjs → chunk-2D4Y4LOT.cjs} +40 -40
- package/dist/{chunk-XBLAVNP3.cjs.map → chunk-2D4Y4LOT.cjs.map} +1 -1
- package/dist/{chunk-CLHAJBJS.js → chunk-2JABR4FF.js} +3 -3
- package/dist/{chunk-CLHAJBJS.js.map → chunk-2JABR4FF.js.map} +1 -1
- package/dist/{chunk-7356B6YS.cjs → chunk-4LZXDRAD.cjs} +12 -12
- package/dist/{chunk-7356B6YS.cjs.map → chunk-4LZXDRAD.cjs.map} +1 -1
- package/dist/{chunk-3BEQYIFU.js → chunk-5DVTAEQC.js} +5 -5
- package/dist/{chunk-3BEQYIFU.js.map → chunk-5DVTAEQC.js.map} +1 -1
- package/dist/{chunk-7G6IENKN.js → chunk-ABWNV4N4.js} +4 -4
- package/dist/{chunk-7G6IENKN.js.map → chunk-ABWNV4N4.js.map} +1 -1
- package/dist/{chunk-E6ER25BG.js → chunk-BUE2GJDN.js} +3 -3
- package/dist/{chunk-E6ER25BG.js.map → chunk-BUE2GJDN.js.map} +1 -1
- package/dist/{chunk-3N2EQ2KC.cjs → chunk-CCJ5XNWY.cjs} +4 -4
- package/dist/chunk-CCJ5XNWY.cjs.map +1 -0
- package/dist/{chunk-RBIEMGHT.js → chunk-DABF4PUI.js} +3 -3
- package/dist/{chunk-RBIEMGHT.js.map → chunk-DABF4PUI.js.map} +1 -1
- package/dist/{chunk-KETEED2T.cjs → chunk-DDSNXKFN.cjs} +9 -9
- package/dist/{chunk-KETEED2T.cjs.map → chunk-DDSNXKFN.cjs.map} +1 -1
- package/dist/{chunk-6BY2NPBZ.cjs → chunk-DUZG6A22.cjs} +4 -4
- package/dist/{chunk-6BY2NPBZ.cjs.map → chunk-DUZG6A22.cjs.map} +1 -1
- package/dist/{chunk-WPQB7JWS.js → chunk-EP4VCID7.js} +3 -3
- package/dist/{chunk-WPQB7JWS.js.map → chunk-EP4VCID7.js.map} +1 -1
- package/dist/{chunk-4QYI7TOF.cjs → chunk-KDGBJPPZ.cjs} +7 -7
- package/dist/{chunk-4QYI7TOF.cjs.map → chunk-KDGBJPPZ.cjs.map} +1 -1
- package/dist/{chunk-2XW5EIMS.cjs → chunk-TPBKRXEB.cjs} +17 -17
- package/dist/{chunk-2XW5EIMS.cjs.map → chunk-TPBKRXEB.cjs.map} +1 -1
- package/dist/{chunk-KTEXDGAA.js → chunk-TV5QTT44.js} +3 -3
- package/dist/{chunk-KTEXDGAA.js.map → chunk-TV5QTT44.js.map} +1 -1
- package/dist/{chunk-2LMFSKZU.js → chunk-VAJ4D7EF.js} +5 -5
- package/dist/{chunk-2LMFSKZU.js.map → chunk-VAJ4D7EF.js.map} +1 -1
- package/dist/{chunk-A7C74SJT.cjs → chunk-XBYLSJOS.cjs} +83 -83
- package/dist/{chunk-A7C74SJT.cjs.map → chunk-XBYLSJOS.cjs.map} +1 -1
- package/dist/core/index.cjs +114 -114
- package/dist/core/index.js +12 -12
- package/dist/manager/index.cjs +239 -239
- package/dist/manager/index.js +6 -6
- package/dist/traveller/index.cjs +35 -35
- package/dist/traveller/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-3N2EQ2KC.cjs.map +0 -1
package/dist/admin/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
6
|
-
var
|
|
7
|
-
var
|
|
3
|
+
var chunk2D4Y4LOT_cjs = require('../chunk-2D4Y4LOT.cjs');
|
|
4
|
+
var chunkXBYLSJOS_cjs = require('../chunk-XBYLSJOS.cjs');
|
|
5
|
+
require('../chunk-DUZG6A22.cjs');
|
|
6
|
+
var chunk4LZXDRAD_cjs = require('../chunk-4LZXDRAD.cjs');
|
|
7
|
+
var chunkCCJ5XNWY_cjs = require('../chunk-CCJ5XNWY.cjs');
|
|
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:
|
|
112
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "kf-admin-shared-patterns-pill", "data-tone": tone, style: chunkCCJ5XNWY_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:
|
|
118
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-admin-shared-patterns-tag", "data-tone": tone, style: chunkCCJ5XNWY_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:
|
|
186
|
+
style: chunkCCJ5XNWY_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 =
|
|
482
|
+
var fieldKindRegistry = chunkCCJ5XNWY_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 } =
|
|
632
|
+
const { t } = chunkCCJ5XNWY_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:
|
|
636
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-agency-settings-screen__panel-inner", style: chunkCCJ5XNWY_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 } =
|
|
1009
|
-
const { document: document2, loaded, lastFetchFailed, refresh, patchSettings } =
|
|
1008
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
1009
|
+
const { document: document2, loaded, lastFetchFailed, refresh, patchSettings } = chunk2D4Y4LOT_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 =
|
|
1026
|
+
const kind = chunkXBYLSJOS_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:
|
|
1032
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-agency-settings-screen", style: chunkCCJ5XNWY_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 } =
|
|
1149
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
1385
|
+
const { t } = chunkCCJ5XNWY_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:
|
|
1387
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-checklist-template-editor__header", style: chunkCCJ5XNWY_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 } =
|
|
1456
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
1606
|
+
const { t } = chunkCCJ5XNWY_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:
|
|
1634
|
+
style: chunkCCJ5XNWY_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 } =
|
|
1707
|
-
const { templates, loaded, lastFetchFailed, refresh, patchTemplate, publishTemplate } =
|
|
1706
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
1707
|
+
const { templates, loaded, lastFetchFailed, refresh, patchTemplate, publishTemplate } = chunk2D4Y4LOT_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:
|
|
1824
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-checklist-template-editor", "data-framed": "true", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-checklist-template-editor__status-block", role: "alert", children: [
|
|
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:
|
|
1839
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-checklist-template-editor", "data-framed": "true", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-checklist-template-editor__skeleton", "aria-hidden": "true", children: [
|
|
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:
|
|
1846
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-checklist-template-editor", "data-framed": "true", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-checklist-template-editor__status-block", children: [
|
|
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:
|
|
1852
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-checklist-template-editor", style: chunkCCJ5XNWY_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 } =
|
|
1955
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
2072
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
2191
|
+
const { t } = chunkCCJ5XNWY_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:
|
|
2200
|
+
style: chunkCCJ5XNWY_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 } =
|
|
2290
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
2307
|
-
const { templates, loaded, lastFetchFailed, refresh, createTemplate, removeTemplate } =
|
|
2306
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
2307
|
+
const { templates, loaded, lastFetchFailed, refresh, createTemplate, removeTemplate } = chunk2D4Y4LOT_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:
|
|
2343
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-checklist-template-library", style: chunkCCJ5XNWY_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 } =
|
|
2639
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-form-builder__header", style:
|
|
2638
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
2639
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-form-builder__header", style: chunkCCJ5XNWY_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 =
|
|
2835
|
+
var fieldRegistry = chunkCCJ5XNWY_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 } =
|
|
3307
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
3544
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
3633
|
+
const { t } = chunkCCJ5XNWY_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:
|
|
3641
|
+
style: chunkCCJ5XNWY_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 } =
|
|
3703
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
3837
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
3898
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
4194
|
+
const { t } = chunkCCJ5XNWY_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
|
-
} =
|
|
4212
|
+
} = chunk2D4Y4LOT_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:
|
|
4423
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-form-builder", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-form-builder__status-block", role: "alert", children: [
|
|
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:
|
|
4438
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-form-builder", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-form-builder__skeleton", "aria-hidden": "true", children: [
|
|
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:
|
|
4444
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-form-builder", style: chunkCCJ5XNWY_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 } =
|
|
4598
|
+
const { t } = chunkCCJ5XNWY_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(
|
|
4626
|
+
setErrorCode(chunkXBYLSJOS_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 } =
|
|
4814
|
+
const { t } = chunkCCJ5XNWY_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:
|
|
4822
|
+
style: chunkCCJ5XNWY_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 } =
|
|
4878
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
4893
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
4920
|
-
const { forms, loaded, lastFetchFailed, refresh, createForm } =
|
|
4919
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
4920
|
+
const { forms, loaded, lastFetchFailed, refresh, createForm } = chunk2D4Y4LOT_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:
|
|
4931
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-forms-library", style: chunkCCJ5XNWY_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:
|
|
5007
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-forms-authoring-flow", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(FormsLibrary, { onSelectForm: handleSelect }) });
|
|
5008
5008
|
}
|
|
5009
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-forms-authoring-flow", style:
|
|
5009
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-forms-authoring-flow", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(FormBuilder, { formId: selectedFormId, onBack: handleBack }) });
|
|
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:
|
|
5160
|
+
style: chunkCCJ5XNWY_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 } =
|
|
5180
|
+
const { t } = chunkCCJ5XNWY_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:
|
|
5188
|
+
style: chunkCCJ5XNWY_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 } =
|
|
5298
|
-
const directories =
|
|
5297
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
5298
|
+
const directories = chunk2D4Y4LOT_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(
|
|
5309
|
+
setErrorMessage(chunkXBYLSJOS_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 } =
|
|
5317
|
+
const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunk2D4Y4LOT_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 } =
|
|
5414
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
5453
|
+
const { t } = chunkCCJ5XNWY_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:
|
|
5458
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-manager-directory-flow", style: chunkCCJ5XNWY_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 } =
|
|
5530
|
+
const { t } = chunkCCJ5XNWY_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:
|
|
5594
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-admin-shared-patterns-hero", "data-glow": glowTone, style: chunkCCJ5XNWY_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 } =
|
|
5627
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
5687
|
-
const { read, readFailed, refresh } =
|
|
5686
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
5687
|
+
const { read, readFailed, refresh } = chunk2D4Y4LOT_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:
|
|
5691
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-manager-profile-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-manager-profile-section__status-block", role: "alert", children: [
|
|
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:
|
|
5707
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-manager-profile-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(ManagerProfileSkeleton, {}) });
|
|
5708
5708
|
}
|
|
5709
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-manager-profile-section", style:
|
|
5709
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-manager-profile-section", style: chunkCCJ5XNWY_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 } =
|
|
5736
|
+
const { t } = chunkCCJ5XNWY_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:
|
|
5747
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-template-authoring-flow", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(ChecklistTemplateLibrary, { onSelectTemplate: handleSelect }) });
|
|
5748
5748
|
}
|
|
5749
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-template-authoring-flow", style:
|
|
5749
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-template-authoring-flow", style: chunkCCJ5XNWY_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 } =
|
|
5759
|
-
const directories =
|
|
5758
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
5759
|
+
const directories = chunk2D4Y4LOT_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(
|
|
5783
|
+
setErrorMessage(chunkXBYLSJOS_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 } =
|
|
5997
|
+
const { t } = chunkCCJ5XNWY_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:
|
|
6005
|
+
style: chunkCCJ5XNWY_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 } =
|
|
6134
|
-
const directories =
|
|
6133
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
6134
|
+
const directories = chunk2D4Y4LOT_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(
|
|
6145
|
+
setErrorMessage(chunkXBYLSJOS_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 } =
|
|
6153
|
+
const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunk2D4Y4LOT_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 } =
|
|
6248
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
6288
|
+
const { t } = chunkCCJ5XNWY_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:
|
|
6294
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-traveller-directory__search-box", style: chunkCCJ5XNWY_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 } =
|
|
6326
|
+
const { t } = chunkCCJ5XNWY_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:
|
|
6349
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-traveller-directory-flow", style: chunkCCJ5XNWY_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 =
|
|
6375
|
+
const client = chunkCCJ5XNWY_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 } =
|
|
6432
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
6480
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
6526
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
6641
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
6732
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
6783
|
+
const { t } = chunkCCJ5XNWY_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:
|
|
6791
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-traveller-profile-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-traveller-profile-section__status-block", role: "alert", children: [
|
|
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:
|
|
6807
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-traveller-profile-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(TravellerProfileSkeleton, {}) });
|
|
6808
6808
|
}
|
|
6809
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-traveller-profile-section", style:
|
|
6809
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-traveller-profile-section", style: chunkCCJ5XNWY_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:
|
|
6901
|
+
style: chunkCCJ5XNWY_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:
|
|
7339
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trigger-template-editor__detail", style: chunkCCJ5XNWY_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 } =
|
|
7424
|
-
const { triggers, loaded, lastFetchFailed, refresh, patchTrigger } =
|
|
7423
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
7424
|
+
const { triggers, loaded, lastFetchFailed, refresh, patchTrigger } = chunk2D4Y4LOT_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:
|
|
7459
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trigger-template-editor", style: chunkCCJ5XNWY_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 } =
|
|
7607
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
7614
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
7622
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
7668
|
-
const bookings =
|
|
7667
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
7668
|
+
const bookings = chunk2D4Y4LOT_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:
|
|
7678
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-bookings-section", style: chunkCCJ5XNWY_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 } =
|
|
7750
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
7854
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
7863
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
7871
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
7971
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
8168
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
8220
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
8274
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
8310
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
8343
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
8473
|
-
const checklists =
|
|
8472
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
8473
|
+
const checklists = chunkXBYLSJOS_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:
|
|
8640
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-checklist-section", style: chunkCCJ5XNWY_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 } =
|
|
9029
|
+
const { t } = chunkCCJ5XNWY_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:
|
|
9037
|
+
style: chunkCCJ5XNWY_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 } =
|
|
9157
|
-
const { makeTripsFetch } =
|
|
9156
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
9157
|
+
const { makeTripsFetch } = chunk2D4Y4LOT_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(
|
|
9168
|
+
setErrorCode(chunkXBYLSJOS_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 } =
|
|
9176
|
+
const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunk2D4Y4LOT_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 } =
|
|
9278
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
9348
|
+
const { t } = chunkCCJ5XNWY_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:
|
|
9368
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-directory-flow", style: chunkCCJ5XNWY_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 } =
|
|
9629
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
9690
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
9698
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
9706
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
9729
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
9810
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
9880
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
10043
|
-
const files =
|
|
10044
|
-
const expenses =
|
|
10045
|
-
const bookings =
|
|
10046
|
-
const { listTripManifest } =
|
|
10047
|
-
const { statuses, loaded: capabilityLoaded } =
|
|
10042
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
10043
|
+
const files = chunkXBYLSJOS_cjs.useFiles({ tripRef });
|
|
10044
|
+
const expenses = chunkXBYLSJOS_cjs.useExpenses(tripRef);
|
|
10045
|
+
const bookings = chunk2D4Y4LOT_cjs.useBookings(tripRef);
|
|
10046
|
+
const { listTripManifest } = chunk2D4Y4LOT_cjs.useDirectories();
|
|
10047
|
+
const { statuses, loaded: capabilityLoaded } = chunk2D4Y4LOT_cjs.useCapabilityStatuses(tripRef);
|
|
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:
|
|
10194
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-documents-section", style: chunkCCJ5XNWY_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 } =
|
|
10483
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
10492
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
10500
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
10521
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
10581
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
10744
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
10745
10745
|
const titleId = react.useId();
|
|
10746
|
-
const files =
|
|
10746
|
+
const files = chunkXBYLSJOS_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 } =
|
|
10820
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
10895
|
-
const expenses =
|
|
10896
|
-
const vendors =
|
|
10894
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
10895
|
+
const expenses = chunkXBYLSJOS_cjs.useExpenses(tripRef);
|
|
10896
|
+
const vendors = chunkXBYLSJOS_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:
|
|
10965
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-expenses-section", style: chunkCCJ5XNWY_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 } =
|
|
11245
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
11478
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
11487
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
11495
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
11518
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
11725
|
-
const float =
|
|
11726
|
-
const managers =
|
|
11724
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
11725
|
+
const float = chunkXBYLSJOS_cjs.useFloat(tripRef);
|
|
11726
|
+
const managers = chunkXBYLSJOS_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:
|
|
11852
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-float-section", style: chunkCCJ5XNWY_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 } =
|
|
11967
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
12115
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
12168
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
12175
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
12183
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
12228
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
12366
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
12419
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
12456
|
-
const forms =
|
|
12457
|
-
const { listTripManifest } =
|
|
12455
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
12456
|
+
const forms = chunkXBYLSJOS_cjs.useForms(tripRef);
|
|
12457
|
+
const { listTripManifest } = chunk2D4Y4LOT_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:
|
|
12579
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-forms-section", style: chunkCCJ5XNWY_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 } =
|
|
12729
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
13076
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
13198
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
13249
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
13326
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
13469
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
13724
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
13732
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
13740
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
13827
|
+
const { t } = chunkCCJ5XNWY_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 } =
|
|
13854
|
-
const itinerary =
|
|
13853
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
13854
|
+
const itinerary = chunkXBYLSJOS_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:
|
|
14027
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-itinerary-section", style: chunkCCJ5XNWY_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 } =
|
|
14212
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
14213
14213
|
const titleId = react.useId();
|
|
14214
|
-
const { makeTravellersFetch, addTraveller, createAgencyTraveller } =
|
|
14214
|
+
const { makeTravellersFetch, addTraveller, createAgencyTraveller } = chunk2D4Y4LOT_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(
|
|
14228
|
+
setErrorCode(chunkXBYLSJOS_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 } =
|
|
14381
|
-
const { rows, hasNext, loadNext, settled, error } =
|
|
14380
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
14381
|
+
const { rows, hasNext, loadNext, settled, error } = chunk2D4Y4LOT_cjs.usePaginatedList(fetch);
|
|
14382
14382
|
if (!settled) {
|
|
14383
14383
|
return /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-manifest-section__dialog-note", "aria-live": "polite", children: t("chrome.tripManifest.addSearching") });
|
|
14384
14384
|
}
|
|
@@ -14461,9 +14461,9 @@ function EditPartyDialog({
|
|
|
14461
14461
|
onClose,
|
|
14462
14462
|
onSaved
|
|
14463
14463
|
}) {
|
|
14464
|
-
const { t } =
|
|
14464
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
14465
14465
|
const titleId = react.useId();
|
|
14466
|
-
const { patchParty, deleteParty } =
|
|
14466
|
+
const { patchParty, deleteParty } = chunk2D4Y4LOT_cjs.useDirectories();
|
|
14467
14467
|
const party = group.party;
|
|
14468
14468
|
const [kind, setKind] = react.useState(
|
|
14469
14469
|
party?.kind ?? "OTHER"
|
|
@@ -14624,7 +14624,7 @@ function EditPartyDialog({
|
|
|
14624
14624
|
}
|
|
14625
14625
|
var DIET_BUCKET_CAP = 4;
|
|
14626
14626
|
function ManifestFacetTiles({ facets, filtered }) {
|
|
14627
|
-
const { t } =
|
|
14627
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
14628
14628
|
const dietEntries = Object.entries(facets.dietCounts).filter(([, count]) => count > 0).sort((a, b) => b[1] - a[1]);
|
|
14629
14629
|
const shown = dietEntries.slice(0, DIET_BUCKET_CAP);
|
|
14630
14630
|
const hiddenCount = dietEntries.length - shown.length;
|
|
@@ -14706,7 +14706,7 @@ function ManifestFiltersPopover({
|
|
|
14706
14706
|
value,
|
|
14707
14707
|
onChange
|
|
14708
14708
|
}) {
|
|
14709
|
-
const { t } =
|
|
14709
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
14710
14710
|
const [open, setOpen] = react.useState(false);
|
|
14711
14711
|
const rootRef = react.useRef(null);
|
|
14712
14712
|
const triggerRef = react.useRef(null);
|
|
@@ -14846,7 +14846,7 @@ var KIND_LABEL_KEY2 = {
|
|
|
14846
14846
|
OTHER: "chrome.tripManifest.partyKind.other"
|
|
14847
14847
|
};
|
|
14848
14848
|
function ManifestGroupCard({ group, onEdit, children }) {
|
|
14849
|
-
const { t } =
|
|
14849
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
14850
14850
|
const party = group.party;
|
|
14851
14851
|
const isSolo = party === null;
|
|
14852
14852
|
const heading = isSolo ? t("chrome.tripManifest.soloHeading") : party.label ?? t(KIND_LABEL_KEY2[party.kind] ?? "chrome.tripManifest.partyKind.other");
|
|
@@ -14934,7 +14934,7 @@ function ManifestRowKebab({
|
|
|
14934
14934
|
onShareLink,
|
|
14935
14935
|
onOpenProfile
|
|
14936
14936
|
}) {
|
|
14937
|
-
const { t } =
|
|
14937
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
14938
14938
|
const [open, setOpen] = react.useState(false);
|
|
14939
14939
|
const rootRef = react.useRef(null);
|
|
14940
14940
|
const triggerRef = react.useRef(null);
|
|
@@ -15033,10 +15033,10 @@ function ManifestRow({
|
|
|
15033
15033
|
onOpenProfile,
|
|
15034
15034
|
style
|
|
15035
15035
|
}) {
|
|
15036
|
-
const { t } =
|
|
15036
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
15037
15037
|
const derived = deriveManifestRow(row, index, serverTime);
|
|
15038
15038
|
const traveller = row.traveller;
|
|
15039
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("tr", { role: "row", className: "kf-trip-manifest-section__row", style:
|
|
15039
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("tr", { role: "row", className: "kf-trip-manifest-section__row", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
|
|
15040
15040
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
15041
15041
|
"td",
|
|
15042
15042
|
{
|
|
@@ -15110,7 +15110,7 @@ function ManifestTable({
|
|
|
15110
15110
|
onOpenProfile,
|
|
15111
15111
|
RowComponent
|
|
15112
15112
|
}) {
|
|
15113
|
-
const { t } =
|
|
15113
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
15114
15114
|
const Row = RowComponent ?? ManifestRow;
|
|
15115
15115
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-manifest-section__table-wrap", children: /* @__PURE__ */ jsxRuntime.jsxs("table", { role: "table", className: "kf-trip-manifest-section__table", children: [
|
|
15116
15116
|
showHead ? /* @__PURE__ */ jsxRuntime.jsx("thead", { role: "rowgroup", children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { role: "row", className: "kf-trip-manifest-section__head-row", children: [
|
|
@@ -15157,8 +15157,8 @@ function ManifestResultsBody({
|
|
|
15157
15157
|
RowComponent,
|
|
15158
15158
|
onRetry
|
|
15159
15159
|
}) {
|
|
15160
|
-
const { t } =
|
|
15161
|
-
const { makeManifestFetch, facets, groupedPageSize } =
|
|
15160
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
15161
|
+
const { makeManifestFetch, facets, groupedPageSize } = chunk2D4Y4LOT_cjs.useAgencyTripManifest(tripRef);
|
|
15162
15162
|
const [errorCode, setErrorCode] = react.useState(void 0);
|
|
15163
15163
|
const [hasSettled, setHasSettled] = react.useState(false);
|
|
15164
15164
|
const [serverTime, setServerTime] = react.useState(void 0);
|
|
@@ -15175,7 +15175,7 @@ function ManifestResultsBody({
|
|
|
15175
15175
|
if (meta?.serverTime !== void 0) setServerTime(meta.serverTime);
|
|
15176
15176
|
return page;
|
|
15177
15177
|
} catch (error) {
|
|
15178
|
-
setErrorCode(
|
|
15178
|
+
setErrorCode(chunkXBYLSJOS_cjs.classifyError(error).code ?? "unknown");
|
|
15179
15179
|
return { rows: [], nextCursor: void 0 };
|
|
15180
15180
|
} finally {
|
|
15181
15181
|
setHasSettled(true);
|
|
@@ -15183,7 +15183,7 @@ function ManifestResultsBody({
|
|
|
15183
15183
|
},
|
|
15184
15184
|
[makeManifestFetch, filters, grouped, groupedPageSize]
|
|
15185
15185
|
);
|
|
15186
|
-
const { rows, hasNext, hasPrev, loadNext, loadPrev } =
|
|
15186
|
+
const { rows, hasNext, hasPrev, loadNext, loadPrev } = chunk2D4Y4LOT_cjs.usePaginatedList(fetch, {
|
|
15187
15187
|
accumulate: grouped
|
|
15188
15188
|
});
|
|
15189
15189
|
react.useEffect(() => {
|
|
@@ -15344,7 +15344,7 @@ function ManifestSearchInput({
|
|
|
15344
15344
|
debounceMs,
|
|
15345
15345
|
onDebouncedChange
|
|
15346
15346
|
}) {
|
|
15347
|
-
const { t } =
|
|
15347
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
15348
15348
|
const [value, setValue] = react.useState("");
|
|
15349
15349
|
react.useEffect(() => {
|
|
15350
15350
|
const timer = setTimeout(() => onDebouncedChange(value.trim()), debounceMs);
|
|
@@ -15371,8 +15371,8 @@ function RemoveTravellerDialog({
|
|
|
15371
15371
|
onClose,
|
|
15372
15372
|
onRemoved
|
|
15373
15373
|
}) {
|
|
15374
|
-
const { t } =
|
|
15375
|
-
const { removeFromManifest } =
|
|
15374
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
15375
|
+
const { removeFromManifest } = chunk2D4Y4LOT_cjs.useDirectories();
|
|
15376
15376
|
const titleId = react.useId();
|
|
15377
15377
|
const [pending, setPending] = react.useState(false);
|
|
15378
15378
|
const [errorCode, setErrorCode] = react.useState(void 0);
|
|
@@ -15461,12 +15461,12 @@ function ShareLinkDialog({
|
|
|
15461
15461
|
travellerName,
|
|
15462
15462
|
onClose
|
|
15463
15463
|
}) {
|
|
15464
|
-
const { t } =
|
|
15464
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
15465
15465
|
const titleId = react.useId();
|
|
15466
|
-
const shareBaseUrl =
|
|
15466
|
+
const shareBaseUrl = chunk2D4Y4LOT_cjs.useResolvedSetting(SHARE_BASE_URL_KEY);
|
|
15467
15467
|
const isFamily = travellerRef === null;
|
|
15468
|
-
const offerable =
|
|
15469
|
-
const { links, readFailed, mint, revoke, regenerate, reveal } =
|
|
15468
|
+
const offerable = chunk2D4Y4LOT_cjs.familySafeSections(isFamily);
|
|
15469
|
+
const { links, readFailed, mint, revoke, regenerate, reveal } = chunk2D4Y4LOT_cjs.useShareLinks(
|
|
15470
15470
|
tripRef,
|
|
15471
15471
|
travellerRef
|
|
15472
15472
|
);
|
|
@@ -15799,7 +15799,7 @@ function SideDrawer({
|
|
|
15799
15799
|
"aria-modal": "true",
|
|
15800
15800
|
"aria-labelledby": titleId,
|
|
15801
15801
|
tabIndex: -1,
|
|
15802
|
-
style:
|
|
15802
|
+
style: chunkCCJ5XNWY_cjs.tokenStyle(style),
|
|
15803
15803
|
children: [
|
|
15804
15804
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-admin-side-drawer__header", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-admin-side-drawer__header-row", children: [
|
|
15805
15805
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-admin-side-drawer__identity", children: [
|
|
@@ -15867,11 +15867,11 @@ function TravellerDetailDialog({
|
|
|
15867
15867
|
onClose,
|
|
15868
15868
|
onRemove
|
|
15869
15869
|
}) {
|
|
15870
|
-
const { t } =
|
|
15870
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
15871
15871
|
const titleId = react.useId();
|
|
15872
|
-
const { read, readFailed, refresh } =
|
|
15873
|
-
const forms =
|
|
15874
|
-
const { addTravellerNote } =
|
|
15872
|
+
const { read, readFailed, refresh } = chunkXBYLSJOS_cjs.useTravellerProfile(tripRef, travellerRef);
|
|
15873
|
+
const forms = chunk2D4Y4LOT_cjs.useTravellerFormResponses(tripRef, travellerRef);
|
|
15874
|
+
const { addTravellerNote } = chunk2D4Y4LOT_cjs.useDirectories();
|
|
15875
15875
|
const [noteDraft, setNoteDraft] = react.useState("");
|
|
15876
15876
|
const [notePending, setNotePending] = react.useState(false);
|
|
15877
15877
|
const [noteFailed, setNoteFailed] = react.useState(false);
|
|
@@ -16100,7 +16100,7 @@ function DetailRow({
|
|
|
16100
16100
|
absentLabel,
|
|
16101
16101
|
meta
|
|
16102
16102
|
}) {
|
|
16103
|
-
const { t } =
|
|
16103
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
16104
16104
|
const has = value !== null && value !== void 0 && value.length > 0;
|
|
16105
16105
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-manifest-section__detail-row", children: [
|
|
16106
16106
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-manifest-section__detail-label", children: label }),
|
|
@@ -16123,7 +16123,7 @@ function TripManifestSection({
|
|
|
16123
16123
|
components,
|
|
16124
16124
|
style
|
|
16125
16125
|
}) {
|
|
16126
|
-
const { t } =
|
|
16126
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
16127
16127
|
const [q, setQ] = react.useState("");
|
|
16128
16128
|
const [groupBy, setGroupBy] = react.useState("booking_group");
|
|
16129
16129
|
const [filters, setFilters] = react.useState({});
|
|
@@ -16152,7 +16152,7 @@ function TripManifestSection({
|
|
|
16152
16152
|
[groupBy, writeToken, wireFilters]
|
|
16153
16153
|
);
|
|
16154
16154
|
const hasActiveFilter = q.length > 0 || Object.keys(filters).length > 0;
|
|
16155
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-manifest-section", style:
|
|
16155
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-manifest-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
|
|
16156
16156
|
facets === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(ManifestFacetTiles, { facets, filtered: hasActiveFilter }),
|
|
16157
16157
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-manifest-section__toolbar", children: [
|
|
16158
16158
|
/* @__PURE__ */ jsxRuntime.jsx(ManifestSearchInput, { debounceMs: DEBOUNCE_MS, onDebouncedChange: setQ }),
|
|
@@ -16379,7 +16379,7 @@ function PaymentsSkeleton() {
|
|
|
16379
16379
|
] }, id)) });
|
|
16380
16380
|
}
|
|
16381
16381
|
function PaymentsEmpty({ onRecord }) {
|
|
16382
|
-
const { t } =
|
|
16382
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
16383
16383
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-payments-section__state", children: [
|
|
16384
16384
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-payments-section__state-glyph", children: /* @__PURE__ */ jsxRuntime.jsx(ReceiptIcon, {}) }),
|
|
16385
16385
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-payments-section__state-title", children: t("chrome.tripPayments.emptyTitle") }),
|
|
@@ -16388,7 +16388,7 @@ function PaymentsEmpty({ onRecord }) {
|
|
|
16388
16388
|
] });
|
|
16389
16389
|
}
|
|
16390
16390
|
function PaymentsFailed({ onRetry }) {
|
|
16391
|
-
const { t } =
|
|
16391
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
16392
16392
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-payments-section__state", role: "alert", children: [
|
|
16393
16393
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-payments-section__state-title", children: t("chrome.tripPayments.failedTitle") }),
|
|
16394
16394
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-payments-section__state-body", children: t("chrome.tripPayments.failedBody") }),
|
|
@@ -16396,7 +16396,7 @@ function PaymentsFailed({ onRetry }) {
|
|
|
16396
16396
|
] });
|
|
16397
16397
|
}
|
|
16398
16398
|
function PaymentsDark({ reason }) {
|
|
16399
|
-
const { t } =
|
|
16399
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
16400
16400
|
if (reason === "mode") {
|
|
16401
16401
|
return null;
|
|
16402
16402
|
}
|
|
@@ -16417,7 +16417,7 @@ function PaymentsTable({
|
|
|
16417
16417
|
locked,
|
|
16418
16418
|
onVoid
|
|
16419
16419
|
}) {
|
|
16420
|
-
const { t } =
|
|
16420
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
16421
16421
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-payments-section__table-wrap", children: /* @__PURE__ */ jsxRuntime.jsxs("table", { className: "kf-trip-payments-section__table", children: [
|
|
16422
16422
|
/* @__PURE__ */ jsxRuntime.jsx("caption", { className: "kf-visually-hidden", children: t("chrome.tripPayments.tableCaption") }),
|
|
16423
16423
|
/* @__PURE__ */ jsxRuntime.jsx("thead", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
@@ -16476,7 +16476,7 @@ function RecordPaymentDialog({
|
|
|
16476
16476
|
onClose,
|
|
16477
16477
|
onSubmit
|
|
16478
16478
|
}) {
|
|
16479
|
-
const { t } =
|
|
16479
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
16480
16480
|
const titleId = react.useId();
|
|
16481
16481
|
const [travellerId, setTravellerId] = react.useState(null);
|
|
16482
16482
|
const [amount, setAmount] = react.useState("");
|
|
@@ -16651,7 +16651,7 @@ function VoidPaymentDialog({
|
|
|
16651
16651
|
onClose,
|
|
16652
16652
|
onSubmit
|
|
16653
16653
|
}) {
|
|
16654
|
-
const { t } =
|
|
16654
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
16655
16655
|
const titleId = react.useId();
|
|
16656
16656
|
const [reason, setReason] = react.useState("");
|
|
16657
16657
|
const trimmed = reason.trim();
|
|
@@ -16729,9 +16729,9 @@ function TripPaymentsSection({
|
|
|
16729
16729
|
balance,
|
|
16730
16730
|
style
|
|
16731
16731
|
}) {
|
|
16732
|
-
const { t } =
|
|
16733
|
-
const collections =
|
|
16734
|
-
const parties =
|
|
16732
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
16733
|
+
const collections = chunkXBYLSJOS_cjs.useCollections(tripRef);
|
|
16734
|
+
const parties = chunkXBYLSJOS_cjs.useParties(tripRef);
|
|
16735
16735
|
const [overlay, setOverlay] = react.useState({ kind: "none" });
|
|
16736
16736
|
const [pending, setPending] = react.useState(false);
|
|
16737
16737
|
const [errorCode, setErrorCode] = react.useState(void 0);
|
|
@@ -16811,7 +16811,7 @@ function TripPaymentsSection({
|
|
|
16811
16811
|
}
|
|
16812
16812
|
const currency = balance?.currency ?? rows[0]?.currency ?? "INR";
|
|
16813
16813
|
const owingCount = eligibleRows.filter((row) => row.outstandingMinor > 0).length;
|
|
16814
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-payments-section", style:
|
|
16814
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-payments-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
|
|
16815
16815
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-payments-section__toolbar", children: [
|
|
16816
16816
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-payments-section__toolbar-title", children: t("chrome.tripPayments.panelLabel") }),
|
|
16817
16817
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-payments-section__toolbar-spacer" }),
|
|
@@ -16952,7 +16952,7 @@ function AssignTravellerDialog({
|
|
|
16952
16952
|
onSubmit,
|
|
16953
16953
|
onClose
|
|
16954
16954
|
}) {
|
|
16955
|
-
const { t } =
|
|
16955
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
16956
16956
|
const titleId = react.useId();
|
|
16957
16957
|
const [pointId, setPointId] = react.useState(stops[0]?.id ?? "");
|
|
16958
16958
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -17023,7 +17023,7 @@ function BoardingRoster({
|
|
|
17023
17023
|
onRetry,
|
|
17024
17024
|
stops
|
|
17025
17025
|
}) {
|
|
17026
|
-
const { t } =
|
|
17026
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
17027
17027
|
if (failed) {
|
|
17028
17028
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-pickups-section__state", role: "alert", children: [
|
|
17029
17029
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-pickups-section__state-title", children: t("chrome.tripPickups.boardingFailedTitle") }),
|
|
@@ -17083,7 +17083,7 @@ function TravellerBoardRow({
|
|
|
17083
17083
|
busy,
|
|
17084
17084
|
onCorrect
|
|
17085
17085
|
}) {
|
|
17086
|
-
const { t } =
|
|
17086
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
17087
17087
|
const correctable = occupant.status !== "PENDING";
|
|
17088
17088
|
const next = occupant.status === "BOARDED" ? "NO_SHOW" : "BOARDED";
|
|
17089
17089
|
return /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "kf-trip-pickups-section__roster-row", children: [
|
|
@@ -17121,7 +17121,7 @@ function DeleteStopDialog({
|
|
|
17121
17121
|
onDelete,
|
|
17122
17122
|
onClose
|
|
17123
17123
|
}) {
|
|
17124
|
-
const { t } =
|
|
17124
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
17125
17125
|
const titleId = react.useId();
|
|
17126
17126
|
const [target, setTarget] = react.useState(siblings[0]?.id ?? "");
|
|
17127
17127
|
const occupied = stop.expectedCount > 0;
|
|
@@ -17375,7 +17375,7 @@ function PickupsEmpty({
|
|
|
17375
17375
|
kindLabel,
|
|
17376
17376
|
onAdd
|
|
17377
17377
|
}) {
|
|
17378
|
-
const { t } =
|
|
17378
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
17379
17379
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-pickups-section__state", children: [
|
|
17380
17380
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-pickups-section__state-glyph", children: /* @__PURE__ */ jsxRuntime.jsx(BusIcon, {}) }),
|
|
17381
17381
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-pickups-section__state-title", children: t("chrome.tripPickups.emptyTitle").replace("{kind}", kindLabel) }),
|
|
@@ -17384,7 +17384,7 @@ function PickupsEmpty({
|
|
|
17384
17384
|
] });
|
|
17385
17385
|
}
|
|
17386
17386
|
function PickupsFailed({ onRetry }) {
|
|
17387
|
-
const { t } =
|
|
17387
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
17388
17388
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-pickups-section__state", role: "alert", children: [
|
|
17389
17389
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-pickups-section__state-title", children: t("chrome.tripPickups.failedTitle") }),
|
|
17390
17390
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-pickups-section__state-body", children: t("chrome.tripPickups.failedBody") }),
|
|
@@ -17392,7 +17392,7 @@ function PickupsFailed({ onRetry }) {
|
|
|
17392
17392
|
] });
|
|
17393
17393
|
}
|
|
17394
17394
|
function PickupsDark({ reason }) {
|
|
17395
|
-
const { t } =
|
|
17395
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
17396
17396
|
if (reason === "mode") {
|
|
17397
17397
|
return null;
|
|
17398
17398
|
}
|
|
@@ -17426,7 +17426,7 @@ function StopFormDialog({
|
|
|
17426
17426
|
onClose,
|
|
17427
17427
|
onSubmit
|
|
17428
17428
|
}) {
|
|
17429
|
-
const { t } =
|
|
17429
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
17430
17430
|
const titleId = react.useId();
|
|
17431
17431
|
const isEdit = stop !== null;
|
|
17432
17432
|
const [kind, setKind] = react.useState(stop?.kind ?? defaultKind);
|
|
@@ -17573,7 +17573,7 @@ function StopFormDialog({
|
|
|
17573
17573
|
);
|
|
17574
17574
|
}
|
|
17575
17575
|
function StopKebab({ stopName, onEdit, onDelete }) {
|
|
17576
|
-
const { t } =
|
|
17576
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
17577
17577
|
const [open, setOpen] = react.useState(false);
|
|
17578
17578
|
const rootRef = react.useRef(null);
|
|
17579
17579
|
const triggerRef = react.useRef(null);
|
|
@@ -17650,7 +17650,7 @@ function StopCard({
|
|
|
17650
17650
|
onDelete,
|
|
17651
17651
|
onMoveBy
|
|
17652
17652
|
}) {
|
|
17653
|
-
const { t } =
|
|
17653
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
17654
17654
|
const isClosed = stop.status === "CLOSED";
|
|
17655
17655
|
const canReorder = !isClosed;
|
|
17656
17656
|
const percent = boardedPercent(stop);
|
|
@@ -17798,7 +17798,7 @@ function Segment({
|
|
|
17798
17798
|
value,
|
|
17799
17799
|
onChange
|
|
17800
17800
|
}) {
|
|
17801
|
-
const { t } =
|
|
17801
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
17802
17802
|
return /* @__PURE__ */ jsxRuntime.jsxs("fieldset", { className: "kf-trip-pickups-section__segment", children: [
|
|
17803
17803
|
/* @__PURE__ */ jsxRuntime.jsx("legend", { className: "kf-visually-hidden", children: t(legendKey) }),
|
|
17804
17804
|
options.map((option) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -17861,8 +17861,8 @@ function TripPickupsSection({
|
|
|
17861
17861
|
tripStartIso,
|
|
17862
17862
|
style
|
|
17863
17863
|
}) {
|
|
17864
|
-
const { t } =
|
|
17865
|
-
const pickups =
|
|
17864
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
17865
|
+
const pickups = chunkXBYLSJOS_cjs.usePickups(tripRef);
|
|
17866
17866
|
const [kind, setKind] = react.useState("PICKUP");
|
|
17867
17867
|
const [view, setView] = react.useState("stops");
|
|
17868
17868
|
const [overlay, setOverlay] = react.useState({ kind: "none" });
|
|
@@ -18022,7 +18022,7 @@ function TripPickupsSection({
|
|
|
18022
18022
|
const kindLabel = t(
|
|
18023
18023
|
kind === "PICKUP" ? "chrome.tripPickups.kindPickupOne" : "chrome.tripPickups.kindDropOne"
|
|
18024
18024
|
);
|
|
18025
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-pickups-section", style:
|
|
18025
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-pickups-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
|
|
18026
18026
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-pickups-section__toolbar", children: [
|
|
18027
18027
|
/* @__PURE__ */ jsxRuntime.jsx(ViewSwitcher, { value: view, onChange: setView }),
|
|
18028
18028
|
/* @__PURE__ */ jsxRuntime.jsx(KindSwitcher, { value: kind, onChange: setKind }),
|
|
@@ -18245,7 +18245,7 @@ function AutoAssignDialog({
|
|
|
18245
18245
|
onApply,
|
|
18246
18246
|
onClose
|
|
18247
18247
|
}) {
|
|
18248
|
-
const { t } =
|
|
18248
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
18249
18249
|
const titleId = react.useId();
|
|
18250
18250
|
const [reassignAll, setReassignAll] = react.useState(false);
|
|
18251
18251
|
const roomCodeById = new Map(group.rooms.map((room) => [room.id, room.code]));
|
|
@@ -18340,7 +18340,7 @@ function AutoAssignDialog({
|
|
|
18340
18340
|
/* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-rooming-section__plan", children: [
|
|
18341
18341
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-rooming-section__plan-title", children: t("chrome.tripRooming.rulesTitle") }),
|
|
18342
18342
|
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: "kf-trip-rooming-section__rule-list", children: preview.perRule.map((entry) => {
|
|
18343
|
-
const severity =
|
|
18343
|
+
const severity = chunkXBYLSJOS_cjs.roomingHeuristicSeverity(entry.rule);
|
|
18344
18344
|
const relaxed = entry.outcome === "relaxed";
|
|
18345
18345
|
const violation = relaxed && severity === "never";
|
|
18346
18346
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -18386,7 +18386,7 @@ function DeleteShell({
|
|
|
18386
18386
|
onConfirm,
|
|
18387
18387
|
onClose
|
|
18388
18388
|
}) {
|
|
18389
|
-
const { t } =
|
|
18389
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
18390
18390
|
const titleId = react.useId();
|
|
18391
18391
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
18392
18392
|
SheetDialog,
|
|
@@ -18432,7 +18432,7 @@ function DeleteRoomDialog({
|
|
|
18432
18432
|
onConfirm,
|
|
18433
18433
|
onClose
|
|
18434
18434
|
}) {
|
|
18435
|
-
const { t } =
|
|
18435
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
18436
18436
|
const occupied = room.beds.filter((bed) => bed.occupant !== null).length;
|
|
18437
18437
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18438
18438
|
DeleteShell,
|
|
@@ -18458,7 +18458,7 @@ function DeleteWindowDialog({
|
|
|
18458
18458
|
onConfirm,
|
|
18459
18459
|
onClose
|
|
18460
18460
|
}) {
|
|
18461
|
-
const { t } =
|
|
18461
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
18462
18462
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18463
18463
|
DeleteShell,
|
|
18464
18464
|
{
|
|
@@ -18556,15 +18556,15 @@ function roomTypeLabelKey(roomType) {
|
|
|
18556
18556
|
return ROOM_TYPE_LABEL_KEY[roomType] ?? "chrome.tripRooming.roomType.shared";
|
|
18557
18557
|
}
|
|
18558
18558
|
function toneAttrs(tone) {
|
|
18559
|
-
const parsed =
|
|
18559
|
+
const parsed = chunkXBYLSJOS_cjs.parseRoomingTone(tone);
|
|
18560
18560
|
if (parsed === void 0) {
|
|
18561
|
-
return { family:
|
|
18561
|
+
return { family: chunkXBYLSJOS_cjs.TONE_FAMILIES.UNKNOWN, shade: 0 };
|
|
18562
18562
|
}
|
|
18563
|
-
const shade = parsed.shade <
|
|
18563
|
+
const shade = parsed.shade < chunkXBYLSJOS_cjs.SHADES_PER_FAMILY ? parsed.shade : parsed.shade % chunkXBYLSJOS_cjs.SHADES_PER_FAMILY;
|
|
18564
18564
|
return { family: parsed.family, shade };
|
|
18565
18565
|
}
|
|
18566
18566
|
function glyphOf(occupant) {
|
|
18567
|
-
return occupant.glyph === "" ?
|
|
18567
|
+
return occupant.glyph === "" ? chunkXBYLSJOS_cjs.FALLBACK_GLYPH : occupant.glyph;
|
|
18568
18568
|
}
|
|
18569
18569
|
function TravellerGlyph({
|
|
18570
18570
|
occupant,
|
|
@@ -18602,7 +18602,7 @@ var COLLAPSED_COUNT = 10;
|
|
|
18602
18602
|
function IdentityLegend({
|
|
18603
18603
|
occupants
|
|
18604
18604
|
}) {
|
|
18605
|
-
const { t } =
|
|
18605
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
18606
18606
|
const [open, setOpen] = react.useState(false);
|
|
18607
18607
|
if (occupants.length === 0) {
|
|
18608
18608
|
return null;
|
|
@@ -18729,7 +18729,7 @@ function RoomFormDialog({
|
|
|
18729
18729
|
onClose,
|
|
18730
18730
|
onSubmit
|
|
18731
18731
|
}) {
|
|
18732
|
-
const { t } =
|
|
18732
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
18733
18733
|
const titleId = react.useId();
|
|
18734
18734
|
const isEdit = room !== null;
|
|
18735
18735
|
const [code, setCode] = react.useState(room?.code ?? "");
|
|
@@ -18853,7 +18853,7 @@ function RoomingSkeleton() {
|
|
|
18853
18853
|
] }, id)) });
|
|
18854
18854
|
}
|
|
18855
18855
|
function RoomingEmpty({ onAddWindow }) {
|
|
18856
|
-
const { t } =
|
|
18856
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
18857
18857
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-rooming-section__state", children: [
|
|
18858
18858
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-rooming-section__state-glyph", children: /* @__PURE__ */ jsxRuntime.jsx(BedIcon, {}) }),
|
|
18859
18859
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-rooming-section__state-title", children: t("chrome.tripRooming.emptyTitle") }),
|
|
@@ -18862,7 +18862,7 @@ function RoomingEmpty({ onAddWindow }) {
|
|
|
18862
18862
|
] });
|
|
18863
18863
|
}
|
|
18864
18864
|
function RoomingFailed({ onRetry }) {
|
|
18865
|
-
const { t } =
|
|
18865
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
18866
18866
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-rooming-section__state", role: "alert", children: [
|
|
18867
18867
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-rooming-section__state-title", children: t("chrome.tripRooming.failedTitle") }),
|
|
18868
18868
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-rooming-section__state-body", children: t("chrome.tripRooming.failedBody") }),
|
|
@@ -18870,7 +18870,7 @@ function RoomingFailed({ onRetry }) {
|
|
|
18870
18870
|
] });
|
|
18871
18871
|
}
|
|
18872
18872
|
function RoomingDark({ reason }) {
|
|
18873
|
-
const { t } =
|
|
18873
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
18874
18874
|
if (reason === "mode") {
|
|
18875
18875
|
return null;
|
|
18876
18876
|
}
|
|
@@ -18885,7 +18885,7 @@ function RoomingDark({ reason }) {
|
|
|
18885
18885
|
] });
|
|
18886
18886
|
}
|
|
18887
18887
|
function RoomKebab({ roomCode, onEdit, onDelete }) {
|
|
18888
|
-
const { t } =
|
|
18888
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
18889
18889
|
const [open, setOpen] = react.useState(false);
|
|
18890
18890
|
const rootRef = react.useRef(null);
|
|
18891
18891
|
const triggerRef = react.useRef(null);
|
|
@@ -18950,7 +18950,7 @@ function RoomKebab({ roomCode, onEdit, onDelete }) {
|
|
|
18950
18950
|
] });
|
|
18951
18951
|
}
|
|
18952
18952
|
function RoomCard({ room, drag, busy, onEdit, onDelete }) {
|
|
18953
|
-
const { t } =
|
|
18953
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
18954
18954
|
const occupied = room.beds.filter((bed) => bed.occupant !== null).length;
|
|
18955
18955
|
return /* @__PURE__ */ jsxRuntime.jsxs("article", { className: "kf-trip-rooming-section__room", "data-busy": busy ? "true" : void 0, children: [
|
|
18956
18956
|
/* @__PURE__ */ jsxRuntime.jsxs("header", { className: "kf-trip-rooming-section__room-head", children: [
|
|
@@ -19000,7 +19000,7 @@ function UnassignedStrip({
|
|
|
19000
19000
|
drag,
|
|
19001
19001
|
busy
|
|
19002
19002
|
}) {
|
|
19003
|
-
const { t } =
|
|
19003
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
19004
19004
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
19005
19005
|
"div",
|
|
19006
19006
|
{
|
|
@@ -19074,7 +19074,7 @@ function WindowAccordion({
|
|
|
19074
19074
|
onEditRoom,
|
|
19075
19075
|
onDeleteRoom
|
|
19076
19076
|
}) {
|
|
19077
|
-
const { t } =
|
|
19077
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
19078
19078
|
const percent = fillPercent(group);
|
|
19079
19079
|
const bodyId = `kf-rooming-window-${group.window.id}`;
|
|
19080
19080
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -19224,7 +19224,7 @@ function WindowFormDialog({
|
|
|
19224
19224
|
onClose,
|
|
19225
19225
|
onSubmit
|
|
19226
19226
|
}) {
|
|
19227
|
-
const { t } =
|
|
19227
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
19228
19228
|
const titleId = react.useId();
|
|
19229
19229
|
const isEdit = window !== null;
|
|
19230
19230
|
const [label, setLabel] = react.useState(window?.label ?? "");
|
|
@@ -19337,8 +19337,8 @@ function TripRoomingSection({
|
|
|
19337
19337
|
tripEndIso,
|
|
19338
19338
|
style
|
|
19339
19339
|
}) {
|
|
19340
|
-
const { t } =
|
|
19341
|
-
const rooming =
|
|
19340
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
19341
|
+
const rooming = chunkXBYLSJOS_cjs.useRooming(tripRef);
|
|
19342
19342
|
const [openWindowId, setOpenWindowId] = react.useState(null);
|
|
19343
19343
|
const [overlay, setOverlay] = react.useState({ kind: "none" });
|
|
19344
19344
|
const [pending, setPending] = react.useState(false);
|
|
@@ -19476,7 +19476,7 @@ function TripRoomingSection({
|
|
|
19476
19476
|
return /* @__PURE__ */ jsxRuntime.jsx(RoomingDark, { reason: rooming.reason });
|
|
19477
19477
|
}
|
|
19478
19478
|
const pool = ready?.unassignedPool;
|
|
19479
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-rooming-section", style:
|
|
19479
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-rooming-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
|
|
19480
19480
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-rooming-section__toolbar", children: [
|
|
19481
19481
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-rooming-section__toolbar-title", children: t("chrome.tripRooming.panelLabel") }),
|
|
19482
19482
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-rooming-section__toolbar-spacer" }),
|
|
@@ -19710,7 +19710,7 @@ function isAgencyAuthored(vendor) {
|
|
|
19710
19710
|
return vendor.externalId.startsWith("kf-");
|
|
19711
19711
|
}
|
|
19712
19712
|
function CategoryTabs({ selected, counts, total, onSelect }) {
|
|
19713
|
-
const { t } =
|
|
19713
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
19714
19714
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-suppliers-section__chips", children: [
|
|
19715
19715
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
19716
19716
|
"button",
|
|
@@ -19753,7 +19753,7 @@ function DeleteSupplierDialog({
|
|
|
19753
19753
|
onConfirm,
|
|
19754
19754
|
onClose
|
|
19755
19755
|
}) {
|
|
19756
|
-
const { t } =
|
|
19756
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
19757
19757
|
const titleId = react.useId();
|
|
19758
19758
|
const blockers = deleteBlockers(usage);
|
|
19759
19759
|
const blockedLocally = blockers !== void 0 && blockers.vehicles + blockers.expenses > 0;
|
|
@@ -19906,7 +19906,7 @@ function SupplierFormDialog({
|
|
|
19906
19906
|
onClose,
|
|
19907
19907
|
onSubmit
|
|
19908
19908
|
}) {
|
|
19909
|
-
const { t } =
|
|
19909
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
19910
19910
|
const titleId = react.useId();
|
|
19911
19911
|
const isEdit = supplier !== null;
|
|
19912
19912
|
const [name, setName] = react.useState(supplier?.name ?? "");
|
|
@@ -20028,7 +20028,7 @@ function SuppliersSkeleton() {
|
|
|
20028
20028
|
] }, id)) });
|
|
20029
20029
|
}
|
|
20030
20030
|
function SuppliersEmpty({ onAdd }) {
|
|
20031
|
-
const { t } =
|
|
20031
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
20032
20032
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-suppliers-section__state", children: [
|
|
20033
20033
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-suppliers-section__state-glyph", children: /* @__PURE__ */ jsxRuntime.jsx(StorefrontIcon, {}) }),
|
|
20034
20034
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-suppliers-section__state-title", children: t("chrome.tripSuppliers.emptyTitle") }),
|
|
@@ -20037,7 +20037,7 @@ function SuppliersEmpty({ onAdd }) {
|
|
|
20037
20037
|
] });
|
|
20038
20038
|
}
|
|
20039
20039
|
function SuppliersNoMatch({ onClear }) {
|
|
20040
|
-
const { t } =
|
|
20040
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
20041
20041
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-suppliers-section__state", children: [
|
|
20042
20042
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-suppliers-section__state-title", children: t("chrome.tripSuppliers.noMatchTitle") }),
|
|
20043
20043
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-suppliers-section__state-body", children: t("chrome.tripSuppliers.noMatchBody") }),
|
|
@@ -20045,7 +20045,7 @@ function SuppliersNoMatch({ onClear }) {
|
|
|
20045
20045
|
] });
|
|
20046
20046
|
}
|
|
20047
20047
|
function SuppliersFailed({ onRetry }) {
|
|
20048
|
-
const { t } =
|
|
20048
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
20049
20049
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-suppliers-section__state", role: "alert", children: [
|
|
20050
20050
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-suppliers-section__state-title", children: t("chrome.tripSuppliers.failedTitle") }),
|
|
20051
20051
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-suppliers-section__state-body", children: t("chrome.tripSuppliers.failedBody") }),
|
|
@@ -20053,7 +20053,7 @@ function SuppliersFailed({ onRetry }) {
|
|
|
20053
20053
|
] });
|
|
20054
20054
|
}
|
|
20055
20055
|
function SuppliersDark({ reason }) {
|
|
20056
|
-
const { t } =
|
|
20056
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
20057
20057
|
if (reason === "mode") {
|
|
20058
20058
|
return null;
|
|
20059
20059
|
}
|
|
@@ -20068,7 +20068,7 @@ function SuppliersDark({ reason }) {
|
|
|
20068
20068
|
] });
|
|
20069
20069
|
}
|
|
20070
20070
|
function SupplierKebab({ name, busy, onEdit, onDelete }) {
|
|
20071
|
-
const { t } =
|
|
20071
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
20072
20072
|
const [open, setOpen] = react.useState(false);
|
|
20073
20073
|
const rootRef = react.useRef(null);
|
|
20074
20074
|
const triggerRef = react.useRef(null);
|
|
@@ -20135,7 +20135,7 @@ function SupplierKebab({ name, busy, onEdit, onDelete }) {
|
|
|
20135
20135
|
] });
|
|
20136
20136
|
}
|
|
20137
20137
|
function SupplierUsageCell({ usage }) {
|
|
20138
|
-
const { t } =
|
|
20138
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
20139
20139
|
const parts = [];
|
|
20140
20140
|
if (usage.vehicles !== void 0 && usage.vehicles > 0) {
|
|
20141
20141
|
parts.push(
|
|
@@ -20179,7 +20179,7 @@ function SupplierTable({
|
|
|
20179
20179
|
onEdit,
|
|
20180
20180
|
onDelete
|
|
20181
20181
|
}) {
|
|
20182
|
-
const { t } =
|
|
20182
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
20183
20183
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-suppliers-section__table-wrap", children: /* @__PURE__ */ jsxRuntime.jsxs("table", { className: "kf-trip-suppliers-section__table", children: [
|
|
20184
20184
|
/* @__PURE__ */ jsxRuntime.jsx("caption", { className: "kf-visually-hidden", children: t("chrome.tripSuppliers.tableCaption") }),
|
|
20185
20185
|
/* @__PURE__ */ jsxRuntime.jsx("thead", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
|
@@ -20247,11 +20247,11 @@ function serverBlockOf(error) {
|
|
|
20247
20247
|
return { vehicles: details.vehicleCount ?? 0, expenses: details.expenseCount ?? 0 };
|
|
20248
20248
|
}
|
|
20249
20249
|
function TripSuppliersSection({ tripRef, style }) {
|
|
20250
|
-
const { t } =
|
|
20251
|
-
const vendors =
|
|
20252
|
-
const seating =
|
|
20253
|
-
const itinerary =
|
|
20254
|
-
const expenses =
|
|
20250
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
20251
|
+
const vendors = chunkXBYLSJOS_cjs.useVendors(tripRef, "");
|
|
20252
|
+
const seating = chunkXBYLSJOS_cjs.useSeating(tripRef);
|
|
20253
|
+
const itinerary = chunkXBYLSJOS_cjs.useItinerary(tripRef);
|
|
20254
|
+
const expenses = chunkXBYLSJOS_cjs.useExpenses(tripRef);
|
|
20255
20255
|
const [category, setCategory] = react.useState(null);
|
|
20256
20256
|
const [query, setQuery] = react.useState("");
|
|
20257
20257
|
const [sortKey, setSortKey] = react.useState("name");
|
|
@@ -20334,7 +20334,7 @@ function TripSuppliersSection({ tripRef, style }) {
|
|
|
20334
20334
|
return /* @__PURE__ */ jsxRuntime.jsx(SuppliersDark, { reason: vendors.reason });
|
|
20335
20335
|
}
|
|
20336
20336
|
const filtered = category !== null || query.trim() !== "";
|
|
20337
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-suppliers-section", style:
|
|
20337
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-suppliers-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
|
|
20338
20338
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-suppliers-section__toolbar", children: [
|
|
20339
20339
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-suppliers-section__toolbar-title", children: t("chrome.tripSuppliers.panelLabel") }),
|
|
20340
20340
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-suppliers-section__toolbar-spacer" }),
|
|
@@ -20473,7 +20473,7 @@ function AutoAssignDialog2({
|
|
|
20473
20473
|
onApply,
|
|
20474
20474
|
onClose
|
|
20475
20475
|
}) {
|
|
20476
|
-
const { t } =
|
|
20476
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
20477
20477
|
const titleId = react.useId();
|
|
20478
20478
|
const [reassignAll, setReassignAll] = react.useState(false);
|
|
20479
20479
|
const [genderAdjacency, setGenderAdjacency] = react.useState("AVOID_UNRELATED");
|
|
@@ -20635,7 +20635,7 @@ function DayFilter({
|
|
|
20635
20635
|
countByDay,
|
|
20636
20636
|
onSelect
|
|
20637
20637
|
}) {
|
|
20638
|
-
const { t } =
|
|
20638
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
20639
20639
|
const days = Array.from({ length: durationDays }, (_unused, index) => index);
|
|
20640
20640
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-vehicles-section__days", children: [
|
|
20641
20641
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-vehicles-section__days-label", children: t("chrome.tripVehicles.showDay") }),
|
|
@@ -20768,7 +20768,7 @@ function DeleteVehicleDialog({
|
|
|
20768
20768
|
onConfirm,
|
|
20769
20769
|
onClose
|
|
20770
20770
|
}) {
|
|
20771
|
-
const { t } =
|
|
20771
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
20772
20772
|
const titleId = react.useId();
|
|
20773
20773
|
const released = occupantsOf(vehicle).length;
|
|
20774
20774
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -20945,7 +20945,7 @@ function ManagerLinkDialog({
|
|
|
20945
20945
|
onClose,
|
|
20946
20946
|
onSubmit
|
|
20947
20947
|
}) {
|
|
20948
|
-
const { t } =
|
|
20948
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
20949
20949
|
const titleId = react.useId();
|
|
20950
20950
|
const [chosen, setChosen] = react.useState(null);
|
|
20951
20951
|
const demotedFrom = chosen === null ? void 0 : managerVehicleByRef.get(chosen);
|
|
@@ -21022,7 +21022,7 @@ function UnassignedStrip2({
|
|
|
21022
21022
|
drag,
|
|
21023
21023
|
busy
|
|
21024
21024
|
}) {
|
|
21025
|
-
const { t } =
|
|
21025
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
21026
21026
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
21027
21027
|
"div",
|
|
21028
21028
|
{
|
|
@@ -21089,7 +21089,7 @@ function OccupantRoster({
|
|
|
21089
21089
|
variant,
|
|
21090
21090
|
emptyKey
|
|
21091
21091
|
}) {
|
|
21092
|
-
const { t } =
|
|
21092
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
21093
21093
|
const target = { containerId: vehicleId, slotLabel: "" };
|
|
21094
21094
|
const isOver = drag.overSlot !== null && drag.overSlot.containerId === vehicleId && drag.overSlot.slotLabel === "";
|
|
21095
21095
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -21133,7 +21133,7 @@ function OccupantRoster({
|
|
|
21133
21133
|
);
|
|
21134
21134
|
}
|
|
21135
21135
|
function SeatTile({ seat, vehicleId, drag, busy }) {
|
|
21136
|
-
const { t } =
|
|
21136
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
21137
21137
|
const target = { containerId: vehicleId, slotLabel: seat.seatLabel };
|
|
21138
21138
|
const isOver = drag.overSlot !== null && drag.overSlot.containerId === target.containerId && drag.overSlot.slotLabel === target.slotLabel;
|
|
21139
21139
|
const occupant = seat.occupant;
|
|
@@ -21196,7 +21196,7 @@ function VehicleKebab({
|
|
|
21196
21196
|
onUnlinkManager,
|
|
21197
21197
|
onDelete
|
|
21198
21198
|
}) {
|
|
21199
|
-
const { t } =
|
|
21199
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
21200
21200
|
const [open, setOpen] = react.useState(false);
|
|
21201
21201
|
const rootRef = react.useRef(null);
|
|
21202
21202
|
const triggerRef = react.useRef(null);
|
|
@@ -21306,7 +21306,7 @@ function VehicleCard({
|
|
|
21306
21306
|
onUnlinkManager,
|
|
21307
21307
|
onDelete
|
|
21308
21308
|
}) {
|
|
21309
|
-
const { t } =
|
|
21309
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
21310
21310
|
const percent = fillPercent2(vehicle);
|
|
21311
21311
|
const days = daysLabel(vehicle.days);
|
|
21312
21312
|
const bodyId = `kf-vehicle-${vehicle.id}`;
|
|
@@ -21441,7 +21441,7 @@ function VehicleDaysDialog({
|
|
|
21441
21441
|
onClose,
|
|
21442
21442
|
onSubmit
|
|
21443
21443
|
}) {
|
|
21444
|
-
const { t } =
|
|
21444
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
21445
21445
|
const titleId = react.useId();
|
|
21446
21446
|
const [selected, setSelected] = react.useState(vehicle.days);
|
|
21447
21447
|
const wholeTrip = selected.length === 0;
|
|
@@ -21540,7 +21540,7 @@ function VehicleFormDialog({
|
|
|
21540
21540
|
onClose,
|
|
21541
21541
|
onSubmit
|
|
21542
21542
|
}) {
|
|
21543
|
-
const { t } =
|
|
21543
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
21544
21544
|
const titleId = react.useId();
|
|
21545
21545
|
const isEdit = vehicle !== null;
|
|
21546
21546
|
const [regNo, setRegNo] = react.useState(vehicle?.regNo ?? "");
|
|
@@ -21735,7 +21735,7 @@ function VehiclesSkeleton() {
|
|
|
21735
21735
|
] }, id)) });
|
|
21736
21736
|
}
|
|
21737
21737
|
function VehiclesEmpty({ onAddVehicle }) {
|
|
21738
|
-
const { t } =
|
|
21738
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
21739
21739
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-vehicles-section__state", children: [
|
|
21740
21740
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-vehicles-section__state-glyph", children: /* @__PURE__ */ jsxRuntime.jsx(BusIcon2, {}) }),
|
|
21741
21741
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-vehicles-section__state-title", children: t("chrome.tripVehicles.emptyTitle") }),
|
|
@@ -21744,7 +21744,7 @@ function VehiclesEmpty({ onAddVehicle }) {
|
|
|
21744
21744
|
] });
|
|
21745
21745
|
}
|
|
21746
21746
|
function VehiclesFailed({ onRetry }) {
|
|
21747
|
-
const { t } =
|
|
21747
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
21748
21748
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-vehicles-section__state", role: "alert", children: [
|
|
21749
21749
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-trip-vehicles-section__state-title", children: t("chrome.tripVehicles.failedTitle") }),
|
|
21750
21750
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-vehicles-section__state-body", children: t("chrome.tripVehicles.failedBody") }),
|
|
@@ -21752,7 +21752,7 @@ function VehiclesFailed({ onRetry }) {
|
|
|
21752
21752
|
] });
|
|
21753
21753
|
}
|
|
21754
21754
|
function VehiclesDark({ reason }) {
|
|
21755
|
-
const { t } =
|
|
21755
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
21756
21756
|
if (reason === "mode") {
|
|
21757
21757
|
return null;
|
|
21758
21758
|
}
|
|
@@ -21775,9 +21775,9 @@ function TripVehiclesSection({
|
|
|
21775
21775
|
durationDays,
|
|
21776
21776
|
style
|
|
21777
21777
|
}) {
|
|
21778
|
-
const { t } =
|
|
21779
|
-
const seating =
|
|
21780
|
-
const managers =
|
|
21778
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
21779
|
+
const seating = chunkXBYLSJOS_cjs.useSeating(tripRef);
|
|
21780
|
+
const managers = chunkXBYLSJOS_cjs.useManagers(tripRef);
|
|
21781
21781
|
const [openVehicleId, setOpenVehicleId] = react.useState(null);
|
|
21782
21782
|
const [day, setDay] = react.useState(null);
|
|
21783
21783
|
const [overlay, setOverlay] = react.useState({ kind: "none" });
|
|
@@ -21911,7 +21911,7 @@ function TripVehiclesSection({
|
|
|
21911
21911
|
return /* @__PURE__ */ jsxRuntime.jsx(VehiclesDark, { reason: seating.reason });
|
|
21912
21912
|
}
|
|
21913
21913
|
const pool = ready?.unassignedPool;
|
|
21914
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-vehicles-section", style:
|
|
21914
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-vehicles-section", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
|
|
21915
21915
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-vehicles-section__toolbar", children: [
|
|
21916
21916
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-vehicles-section__toolbar-title", children: t("chrome.tripVehicles.panelLabel") }),
|
|
21917
21917
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-vehicles-section__toolbar-spacer" }),
|
|
@@ -22204,7 +22204,7 @@ function WarningIcon13(props) {
|
|
|
22204
22204
|
|
|
22205
22205
|
// src/admin/composite/office/TripWorkspace/internal/panels/deriveCloseout.ts
|
|
22206
22206
|
function tabForBlocker(row) {
|
|
22207
|
-
return
|
|
22207
|
+
return chunk2D4Y4LOT_cjs.resolveBlockerDeepLink({ actionKey: row.actionKey })?.tab;
|
|
22208
22208
|
}
|
|
22209
22209
|
function orderedBlockers(rows) {
|
|
22210
22210
|
return [...rows].sort((a, b) => {
|
|
@@ -22244,8 +22244,8 @@ function codeOf11(error) {
|
|
|
22244
22244
|
return classification?.code ?? "unknown";
|
|
22245
22245
|
}
|
|
22246
22246
|
function CloseoutCard({ tripRef, onOpenTab, litTabs }) {
|
|
22247
|
-
const { t } =
|
|
22248
|
-
const closeout =
|
|
22247
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
22248
|
+
const closeout = chunkXBYLSJOS_cjs.useCloseout(tripRef);
|
|
22249
22249
|
const [note, setNote] = react.useState(null);
|
|
22250
22250
|
const [pending, setPending] = react.useState(void 0);
|
|
22251
22251
|
const [errorCode, setErrorCode] = react.useState(void 0);
|
|
@@ -22452,7 +22452,7 @@ function AssignManagerDialog({
|
|
|
22452
22452
|
onClose,
|
|
22453
22453
|
onAssign
|
|
22454
22454
|
}) {
|
|
22455
|
-
const { t } =
|
|
22455
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
22456
22456
|
const titleId = react.useId();
|
|
22457
22457
|
const [query, setQuery] = react.useState("");
|
|
22458
22458
|
const [selected, setSelected] = react.useState(null);
|
|
@@ -22584,8 +22584,8 @@ var ROLE_LABEL_KEY = {
|
|
|
22584
22584
|
COORDINATOR: "chrome.tripWorkspace.managers.roleCoordinator"
|
|
22585
22585
|
};
|
|
22586
22586
|
function OverviewManagersCard({ trip, onChanged }) {
|
|
22587
|
-
const { t } =
|
|
22588
|
-
const { promoteManager, assignManager, unassignManager, makeManagersFetch } =
|
|
22587
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
22588
|
+
const { promoteManager, assignManager, unassignManager, makeManagersFetch } = chunk2D4Y4LOT_cjs.useDirectories();
|
|
22589
22589
|
const [pendingId, setPendingId] = react.useState(void 0);
|
|
22590
22590
|
const [errorCode, setErrorCode] = react.useState(void 0);
|
|
22591
22591
|
const [assignOpen, setAssignOpen] = react.useState(false);
|
|
@@ -22746,13 +22746,13 @@ function TripOverviewPanel({
|
|
|
22746
22746
|
onOpenTab,
|
|
22747
22747
|
onTripChanged
|
|
22748
22748
|
}) {
|
|
22749
|
-
const { t } =
|
|
22750
|
-
const today =
|
|
22751
|
-
const expenses =
|
|
22749
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
22750
|
+
const today = chunkXBYLSJOS_cjs.useManagerToday(trip.ref);
|
|
22751
|
+
const expenses = chunkXBYLSJOS_cjs.useExpenses(trip.ref);
|
|
22752
22752
|
const spendTotalMinor = expenses.status === "ready" && expenses.totals.loaded && !expenses.totals.lastFetchFailed ? expenses.totals.spendTotalMinor : void 0;
|
|
22753
22753
|
const finance = deriveFinance(trip, spendTotalMinor);
|
|
22754
22754
|
const quickActions = QUICK_ACTION_TABS.filter((key) => litTabs.has(key));
|
|
22755
|
-
const closeoutProbe =
|
|
22755
|
+
const closeoutProbe = chunkXBYLSJOS_cjs.useCloseout(trip.ref);
|
|
22756
22756
|
const closeoutStage = closeoutProbe.status === "ready" && hasReturned(closeoutProbe.aggregate) ? closeoutProbe.aggregate?.stage ?? null : null;
|
|
22757
22757
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__overview", children: [
|
|
22758
22758
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__overview-main", children: [
|
|
@@ -22791,7 +22791,7 @@ function TripOverviewPanel({
|
|
|
22791
22791
|
function TodayCard({
|
|
22792
22792
|
today
|
|
22793
22793
|
}) {
|
|
22794
|
-
const { t } =
|
|
22794
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
22795
22795
|
if (today.kind === "idle") return null;
|
|
22796
22796
|
const openChecklist = today.checklist ?? [];
|
|
22797
22797
|
const itinerary = today.itinerary ?? [];
|
|
@@ -22815,7 +22815,7 @@ function TodayCard({
|
|
|
22815
22815
|
function FinanceCard({
|
|
22816
22816
|
finance
|
|
22817
22817
|
}) {
|
|
22818
|
-
const { t } =
|
|
22818
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
22819
22819
|
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-trip-workspace__card", children: [
|
|
22820
22820
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-workspace__card-head", children: /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "kf-trip-workspace__card-title", children: t("chrome.tripWorkspace.overview.financeTitle") }) }),
|
|
22821
22821
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__finance-body", children: [
|
|
@@ -23078,7 +23078,7 @@ var BLOCKER_BODY_KEY = {
|
|
|
23078
23078
|
capabilityDark: "chrome.tripWorkspace.blocker.capabilityDarkBody"
|
|
23079
23079
|
};
|
|
23080
23080
|
function TripTabPlaceholder({ tabKey, blocker }) {
|
|
23081
|
-
const { t } =
|
|
23081
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
23082
23082
|
const label = t(TAB_LABEL_KEY[tabKey]);
|
|
23083
23083
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__placeholder", children: [
|
|
23084
23084
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-trip-workspace__placeholder-glyph", children: blocker === "deferred" ? /* @__PURE__ */ jsxRuntime.jsx(ClockIcon2, {}) : /* @__PURE__ */ jsxRuntime.jsx(LockIcon11, {}) }),
|
|
@@ -23088,7 +23088,7 @@ function TripTabPlaceholder({ tabKey, blocker }) {
|
|
|
23088
23088
|
] });
|
|
23089
23089
|
}
|
|
23090
23090
|
function TripKpiStrip({ cells }) {
|
|
23091
|
-
const { t } =
|
|
23091
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
23092
23092
|
if (cells.length === 0) return null;
|
|
23093
23093
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-workspace__kpi-strip", "data-columns": cells.length, children: cells.map((cell) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__kpi-card", children: [
|
|
23094
23094
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-workspace__kpi-label", children: t(cell.labelKey) }),
|
|
@@ -23097,7 +23097,7 @@ function TripKpiStrip({ cells }) {
|
|
|
23097
23097
|
] }, cell.key)) });
|
|
23098
23098
|
}
|
|
23099
23099
|
function TripTabRail({ tabs, activeKey, onSelect }) {
|
|
23100
|
-
const { t } =
|
|
23100
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
23101
23101
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
23102
23102
|
"div",
|
|
23103
23103
|
{
|
|
@@ -23131,7 +23131,7 @@ var STATUS_LABEL_KEY9 = {
|
|
|
23131
23131
|
CANCELLED: "chrome.tripDirectory.status.cancelled"
|
|
23132
23132
|
};
|
|
23133
23133
|
function TripWorkspaceHead({ trip, onBack, style }) {
|
|
23134
|
-
const { t } =
|
|
23134
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
23135
23135
|
const head = deriveTripHead(trip);
|
|
23136
23136
|
const subLabelParts = [
|
|
23137
23137
|
head.dateRangeLabel,
|
|
@@ -23142,7 +23142,7 @@ function TripWorkspaceHead({ trip, onBack, style }) {
|
|
|
23142
23142
|
trip.manifestCount === 1 ? "chrome.tripWorkspace.travellerCountOne" : "chrome.tripWorkspace.travellerCount"
|
|
23143
23143
|
).replace("{count}", String(trip.manifestCount))
|
|
23144
23144
|
];
|
|
23145
|
-
return /* @__PURE__ */ jsxRuntime.jsx("header", { className: "kf-trip-workspace__head", style:
|
|
23145
|
+
return /* @__PURE__ */ jsxRuntime.jsx("header", { className: "kf-trip-workspace__head", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__head-identity", children: [
|
|
23146
23146
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__eyebrow", children: [
|
|
23147
23147
|
onBack === void 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(
|
|
23148
23148
|
"button",
|
|
@@ -23182,10 +23182,10 @@ function TripWorkspace({
|
|
|
23182
23182
|
components,
|
|
23183
23183
|
style
|
|
23184
23184
|
}) {
|
|
23185
|
-
const { t } =
|
|
23186
|
-
const { read, readFailed, refresh } =
|
|
23185
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
23186
|
+
const { read, readFailed, refresh } = chunk2D4Y4LOT_cjs.useAgencyTrip(tripRef);
|
|
23187
23187
|
if (readFailed) {
|
|
23188
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-workspace", style:
|
|
23188
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-workspace", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace__status-block", role: "alert", children: [
|
|
23189
23189
|
/* @__PURE__ */ jsxRuntime.jsx(WarningIcon13, { className: "kf-trip-workspace__status-icon" }),
|
|
23190
23190
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-workspace__status-title", children: t("chrome.tripWorkspace.errorTitle") }),
|
|
23191
23191
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-trip-workspace__status-body", children: t("chrome.tripWorkspace.errorBody") }),
|
|
@@ -23201,7 +23201,7 @@ function TripWorkspace({
|
|
|
23201
23201
|
] }) });
|
|
23202
23202
|
}
|
|
23203
23203
|
if (read === void 0) {
|
|
23204
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-workspace", style:
|
|
23204
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-trip-workspace", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: /* @__PURE__ */ jsxRuntime.jsx(TripWorkspaceSkeleton, {}) });
|
|
23205
23205
|
}
|
|
23206
23206
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
23207
23207
|
TripWorkspaceBody,
|
|
@@ -23229,7 +23229,7 @@ function TripWorkspaceBody({
|
|
|
23229
23229
|
components,
|
|
23230
23230
|
style
|
|
23231
23231
|
}) {
|
|
23232
|
-
const { statuses, loaded } =
|
|
23232
|
+
const { statuses, loaded } = chunk2D4Y4LOT_cjs.useCapabilityStatuses(tripRef);
|
|
23233
23233
|
const Head = components?.TripWorkspaceHead ?? TripWorkspaceHead;
|
|
23234
23234
|
const tabs = react.useMemo(() => resolveTripTabs(trip.eventType, statuses), [trip.eventType, statuses]);
|
|
23235
23235
|
const [requestedTab, setRequestedTab] = react.useState(initialTab ?? "overview");
|
|
@@ -23313,7 +23313,7 @@ function TripWorkspaceBody({
|
|
|
23313
23313
|
}),
|
|
23314
23314
|
[trip, litTabs, tripRef, onTripChanged, onOpenTravellerProfile]
|
|
23315
23315
|
);
|
|
23316
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace", style:
|
|
23316
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-trip-workspace", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
|
|
23317
23317
|
/* @__PURE__ */ jsxRuntime.jsx(Head, { trip, ...onBack !== void 0 ? { onBack } : {} }),
|
|
23318
23318
|
/* @__PURE__ */ jsxRuntime.jsx(TripKpiStrip, { cells: kpis }),
|
|
23319
23319
|
loaded ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
@@ -23510,7 +23510,7 @@ function AdminShell({
|
|
|
23510
23510
|
function renderNavIcon(iconKey) {
|
|
23511
23511
|
return NavIcon !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(NavIcon, { iconKey }) : navIcon(iconKey);
|
|
23512
23512
|
}
|
|
23513
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-admin-shell", style:
|
|
23513
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-admin-shell", style: chunkCCJ5XNWY_cjs.tokenStyle(style), children: [
|
|
23514
23514
|
/* @__PURE__ */ jsxRuntime.jsxs("aside", { className: "kf-admin-shell__sidebar", children: [
|
|
23515
23515
|
brand !== void 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-admin-shell__brand", children: [
|
|
23516
23516
|
brand.logo !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-admin-shell__brand-logo", children: brand.logo }) : null,
|
|
@@ -23614,7 +23614,7 @@ function AdminShell({
|
|
|
23614
23614
|
] });
|
|
23615
23615
|
}
|
|
23616
23616
|
function KaafilAgencyWorkspace(props) {
|
|
23617
|
-
const session =
|
|
23617
|
+
const session = chunkCCJ5XNWY_cjs.useSession();
|
|
23618
23618
|
if (session.status !== "authenticated") {
|
|
23619
23619
|
return null;
|
|
23620
23620
|
}
|
|
@@ -23639,8 +23639,8 @@ function ReadyKaafilAgencyWorkspace(props) {
|
|
|
23639
23639
|
components,
|
|
23640
23640
|
style
|
|
23641
23641
|
} = props;
|
|
23642
|
-
const { t } =
|
|
23643
|
-
const agencyAdminMe =
|
|
23642
|
+
const { t } = chunkCCJ5XNWY_cjs.useKaafilChrome();
|
|
23643
|
+
const agencyAdminMe = chunk2D4Y4LOT_cjs.useAgencyAdminMe();
|
|
23644
23644
|
const [internalPane, setInternalPane] = react.useState(
|
|
23645
23645
|
initialPane ?? "trips"
|
|
23646
23646
|
);
|
|
@@ -23901,27 +23901,27 @@ function ReadyKaafilAgencyWorkspace(props) {
|
|
|
23901
23901
|
|
|
23902
23902
|
Object.defineProperty(exports, "BootErrorScreen", {
|
|
23903
23903
|
enumerable: true,
|
|
23904
|
-
get: function () { return
|
|
23904
|
+
get: function () { return chunk4LZXDRAD_cjs.BootErrorScreen; }
|
|
23905
23905
|
});
|
|
23906
23906
|
Object.defineProperty(exports, "LockedTripScreen", {
|
|
23907
23907
|
enumerable: true,
|
|
23908
|
-
get: function () { return
|
|
23908
|
+
get: function () { return chunk4LZXDRAD_cjs.LockedTripScreen; }
|
|
23909
23909
|
});
|
|
23910
23910
|
Object.defineProperty(exports, "NotFoundScreen", {
|
|
23911
23911
|
enumerable: true,
|
|
23912
|
-
get: function () { return
|
|
23912
|
+
get: function () { return chunk4LZXDRAD_cjs.NotFoundScreen; }
|
|
23913
23913
|
});
|
|
23914
23914
|
Object.defineProperty(exports, "OfflineFallbackScreen", {
|
|
23915
23915
|
enumerable: true,
|
|
23916
|
-
get: function () { return
|
|
23916
|
+
get: function () { return chunk4LZXDRAD_cjs.OfflineFallbackScreen; }
|
|
23917
23917
|
});
|
|
23918
23918
|
Object.defineProperty(exports, "PlanLockedScreen", {
|
|
23919
23919
|
enumerable: true,
|
|
23920
|
-
get: function () { return
|
|
23920
|
+
get: function () { return chunk4LZXDRAD_cjs.PlanLockedScreen; }
|
|
23921
23921
|
});
|
|
23922
23922
|
Object.defineProperty(exports, "SessionExpiredScreen", {
|
|
23923
23923
|
enumerable: true,
|
|
23924
|
-
get: function () { return
|
|
23924
|
+
get: function () { return chunk4LZXDRAD_cjs.SessionExpiredScreen; }
|
|
23925
23925
|
});
|
|
23926
23926
|
exports.AdminShell = AdminShell;
|
|
23927
23927
|
exports.AgencySettingsScreen = AgencySettingsScreen;
|