kaafil-react-uikit 0.10.0 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/dist/admin/index.cjs +360 -360
  3. package/dist/admin/index.js +5 -5
  4. package/dist/{chunk-APE4R2GB.cjs → chunk-2OWH2KDY.cjs} +83 -83
  5. package/dist/{chunk-APE4R2GB.cjs.map → chunk-2OWH2KDY.cjs.map} +1 -1
  6. package/dist/{chunk-E6SI2S3L.cjs → chunk-3AF2M2JD.cjs} +17 -17
  7. package/dist/{chunk-E6SI2S3L.cjs.map → chunk-3AF2M2JD.cjs.map} +1 -1
  8. package/dist/{chunk-AJEZMD64.cjs → chunk-64R4ZJTA.cjs} +12 -12
  9. package/dist/{chunk-AJEZMD64.cjs.map → chunk-64R4ZJTA.cjs.map} +1 -1
  10. package/dist/{chunk-ZVADVALQ.js → chunk-7752B4NM.js} +3 -3
  11. package/dist/{chunk-ZVADVALQ.js.map → chunk-7752B4NM.js.map} +1 -1
  12. package/dist/{chunk-WMBFBZ7Q.js → chunk-7V2XJIXD.js} +7 -4
  13. package/dist/chunk-7V2XJIXD.js.map +1 -0
  14. package/dist/{chunk-OXCVTVBY.js → chunk-AFWZFFEM.js} +7 -6
  15. package/dist/chunk-AFWZFFEM.js.map +1 -0
  16. package/dist/{chunk-LYCN2BOH.cjs → chunk-AJE2RNOR.cjs} +4 -4
  17. package/dist/{chunk-LYCN2BOH.cjs.map → chunk-AJE2RNOR.cjs.map} +1 -1
  18. package/dist/{chunk-X5EFVCYF.cjs → chunk-F4GGHUMX.cjs} +57 -56
  19. package/dist/chunk-F4GGHUMX.cjs.map +1 -0
  20. package/dist/{chunk-UMLJEBQV.js → chunk-K5Z6N2FY.js} +5 -5
  21. package/dist/{chunk-UMLJEBQV.js.map → chunk-K5Z6N2FY.js.map} +1 -1
  22. package/dist/{chunk-VAUGZOY6.js → chunk-KV7ODN2X.js} +3 -3
  23. package/dist/{chunk-VAUGZOY6.js.map → chunk-KV7ODN2X.js.map} +1 -1
  24. package/dist/{chunk-BKDKXM3L.cjs → chunk-NCHZLGEE.cjs} +9 -9
  25. package/dist/{chunk-BKDKXM3L.cjs.map → chunk-NCHZLGEE.cjs.map} +1 -1
  26. package/dist/{chunk-P5HF55MO.cjs → chunk-S53XNHRU.cjs} +7 -4
  27. package/dist/chunk-S53XNHRU.cjs.map +1 -0
  28. package/dist/{chunk-U2443I5Q.js → chunk-TGP4GTIY.js} +3 -3
  29. package/dist/{chunk-U2443I5Q.js.map → chunk-TGP4GTIY.js.map} +1 -1
  30. package/dist/{chunk-2HGOHUFU.js → chunk-UUID3H4R.js} +3 -3
  31. package/dist/{chunk-2HGOHUFU.js.map → chunk-UUID3H4R.js.map} +1 -1
  32. package/dist/{chunk-IDKRXLMY.js → chunk-VCROLPO3.js} +3 -3
  33. package/dist/{chunk-IDKRXLMY.js.map → chunk-VCROLPO3.js.map} +1 -1
  34. package/dist/chunk-ZZK7USFC.cjs +12 -0
  35. package/dist/{chunk-PHVQIIOI.cjs.map → chunk-ZZK7USFC.cjs.map} +1 -1
  36. package/dist/core/index.cjs +107 -107
  37. package/dist/core/index.js +10 -10
  38. package/dist/manager/index.cjs +256 -256
  39. package/dist/manager/index.js +6 -6
  40. package/dist/traveller/index.cjs +44 -37
  41. package/dist/traveller/index.cjs.map +1 -1
  42. package/dist/traveller/index.js +14 -7
  43. package/dist/traveller/index.js.map +1 -1
  44. package/package.json +1 -1
  45. package/dist/chunk-OXCVTVBY.js.map +0 -1
  46. package/dist/chunk-P5HF55MO.cjs.map +0 -1
  47. package/dist/chunk-PHVQIIOI.cjs +0 -12
  48. package/dist/chunk-WMBFBZ7Q.js.map +0 -1
  49. package/dist/chunk-X5EFVCYF.cjs.map +0 -1
@@ -1,9 +1,9 @@
1
- import { useManagerMe, useConflicts, useNotifications } from '../chunk-ZVADVALQ.js';
2
- import { FORM_FIELD_KIND_SINGLE_BOOLEAN, useChecklists, useManagers, useCloseout, useFiles, useFloat, useForms, useParties, useItinerary, useVendors, useExpenses, useCollections, useManagerToday, usePickups, useRooming, useTravellerProfile, useSeating } from '../chunk-U2443I5Q.js';
3
- import { useOfflineEngine } from '../chunk-2HGOHUFU.js';
4
- import { OfflineFallbackScreen } from '../chunk-IDKRXLMY.js';
5
- export { BootErrorScreen, LockedTripScreen, NotFoundScreen, OfflineFallbackScreen, SessionExpiredScreen } from '../chunk-IDKRXLMY.js';
6
- import { createRegistry, useKaafilChrome, useSession, tokenStyle, useOutboxStatus, useKaafilBrand } from '../chunk-WMBFBZ7Q.js';
1
+ import { useManagerMe, useConflicts, useNotifications } from '../chunk-7752B4NM.js';
2
+ import { FORM_FIELD_KIND_SINGLE_BOOLEAN, useChecklists, useManagers, useCloseout, useFiles, useFloat, useForms, useParties, useItinerary, useVendors, useExpenses, useCollections, useManagerToday, usePickups, useRooming, useTravellerProfile, useSeating } from '../chunk-TGP4GTIY.js';
3
+ import { useOfflineEngine } from '../chunk-UUID3H4R.js';
4
+ import { OfflineFallbackScreen } from '../chunk-VCROLPO3.js';
5
+ export { BootErrorScreen, LockedTripScreen, NotFoundScreen, OfflineFallbackScreen, SessionExpiredScreen } from '../chunk-VCROLPO3.js';
6
+ import { createRegistry, useKaafilChrome, useSession, tokenStyle, useOutboxStatus, useKaafilBrand } from '../chunk-7V2XJIXD.js';
7
7
  import { useState, useRef, useEffect, useMemo, useId } from 'react';
8
8
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
9
9
 
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunkE6SI2S3L_cjs = require('../chunk-E6SI2S3L.cjs');
4
- require('../chunk-PHVQIIOI.cjs');
5
- require('../chunk-LYCN2BOH.cjs');
6
- var chunkAJEZMD64_cjs = require('../chunk-AJEZMD64.cjs');
7
- var chunkP5HF55MO_cjs = require('../chunk-P5HF55MO.cjs');
3
+ var chunk3AF2M2JD_cjs = require('../chunk-3AF2M2JD.cjs');
4
+ require('../chunk-ZZK7USFC.cjs');
5
+ require('../chunk-AJE2RNOR.cjs');
6
+ var chunk64R4ZJTA_cjs = require('../chunk-64R4ZJTA.cjs');
7
+ var chunkS53XNHRU_cjs = require('../chunk-S53XNHRU.cjs');
8
8
  var react = require('react');
9
9
  var jsxRuntime = require('react/jsx-runtime');
10
10
 
@@ -102,7 +102,7 @@ function HouseholdSheet({
102
102
  label,
103
103
  travellers
104
104
  }) {
105
- const { t } = chunkP5HF55MO_cjs.useKaafilChrome();
105
+ const { t } = chunkS53XNHRU_cjs.useKaafilChrome();
106
106
  react.useEffect(() => {
107
107
  if (!open) {
108
108
  return;
@@ -179,11 +179,11 @@ var COPY_KEY = {
179
179
  "not-found": "chrome.shareView.ended.notFound"
180
180
  };
181
181
  function ShareEndedScreen({ reason }) {
182
- const { t } = chunkP5HF55MO_cjs.useKaafilChrome();
182
+ const { t } = chunkS53XNHRU_cjs.useKaafilChrome();
183
183
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-share-view__ended", role: "alert", "aria-live": "assertive", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-share-view__ended-message", children: t(COPY_KEY[reason]) }) });
184
184
  }
185
185
  function ShareSkeleton() {
186
- const { t } = chunkP5HF55MO_cjs.useKaafilChrome();
186
+ const { t } = chunkS53XNHRU_cjs.useKaafilChrome();
187
187
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-share-view__skeleton", role: "status", "aria-live": "polite", "aria-busy": "true", children: [
188
188
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-visually-hidden", children: t("chrome.shareView.loading") }),
189
189
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-share-view__skeleton-line kf-share-view__skeleton-line--eyebrow kf-shimmer" }),
@@ -297,7 +297,7 @@ function initialsOf(name) {
297
297
  return `${first}${last}`.toUpperCase();
298
298
  }
299
299
  function ContactActions({ row }) {
300
- const { t } = chunkP5HF55MO_cjs.useKaafilChrome();
300
+ const { t } = chunkS53XNHRU_cjs.useKaafilChrome();
301
301
  if (row.phoneHref === null && row.whatsappHref === null) {
302
302
  return null;
303
303
  }
@@ -347,7 +347,7 @@ function ContactCard({
347
347
  ] });
348
348
  }
349
349
  function AgencyContactSection({ data }) {
350
- const { t } = chunkP5HF55MO_cjs.useKaafilChrome();
350
+ const { t } = chunkS53XNHRU_cjs.useKaafilChrome();
351
351
  return /* @__PURE__ */ jsxRuntime.jsxs("section", { "aria-label": t("chrome.shareView.agency.eyebrow"), children: [
352
352
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-share-view__eyebrow-row", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-eyebrow", children: t("chrome.shareView.agency.eyebrow") }) }),
353
353
  /* @__PURE__ */ jsxRuntime.jsx(ContactCard, { row: data, roleLabel: t("chrome.shareView.agency.roleLabel") })
@@ -364,7 +364,7 @@ function BrandHeaderSection({
364
364
  agencyContact,
365
365
  partyKind
366
366
  }) {
367
- const { t } = chunkP5HF55MO_cjs.useKaafilChrome();
367
+ const { t } = chunkS53XNHRU_cjs.useKaafilChrome();
368
368
  const initial = agencyContact.name.trim().slice(0, 1).toUpperCase();
369
369
  const kindLabel = partyKind !== null ? t(PARTY_KIND_KEY[partyKind]) : null;
370
370
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-share-view__brand-header", children: [
@@ -418,7 +418,7 @@ function formatSize(sizeBytes) {
418
418
  return `${(kb / 1024).toFixed(1)} MB`;
419
419
  }
420
420
  function DocumentsSection({ data, timezone }) {
421
- const { t } = chunkP5HF55MO_cjs.useKaafilChrome();
421
+ const { t } = chunkS53XNHRU_cjs.useKaafilChrome();
422
422
  const files = data.files ?? [];
423
423
  if (data.vouchers.length === 0 && files.length === 0) {
424
424
  return null;
@@ -471,7 +471,7 @@ function SelectFieldEditor({
471
471
  required,
472
472
  onChange
473
473
  }) {
474
- const { t } = chunkP5HF55MO_cjs.useKaafilChrome();
474
+ const { t } = chunkS53XNHRU_cjs.useKaafilChrome();
475
475
  const [open, setOpen] = react.useState(false);
476
476
  const rootRef = react.useRef(null);
477
477
  const selected = options.find((option) => option.value === value);
@@ -548,7 +548,7 @@ var fallback = {
548
548
  editor: ({ field, t }) => /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-share-view__form-unsupported", children: t("chrome.shareView.form.unsupported").replace("{label}", field.label) }),
549
549
  preview: PlainPreview
550
550
  };
551
- var fieldRegistry = chunkP5HF55MO_cjs.createRegistry({ fallback });
551
+ var fieldRegistry = chunkS53XNHRU_cjs.createRegistry({ fallback });
552
552
  fieldRegistry.register("HEADING", {
553
553
  editor: ({ field }) => /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-share-view__form-heading", children: field.label }),
554
554
  preview: ({ field }) => /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "kf-share-view__form-heading", children: field.label })
@@ -974,7 +974,7 @@ function FormFillScreen({
974
974
  writeStatus,
975
975
  travellerRef
976
976
  }) {
977
- const { t } = chunkP5HF55MO_cjs.useKaafilChrome();
977
+ const { t } = chunkS53XNHRU_cjs.useKaafilChrome();
978
978
  const [clientToken] = react.useState(() => crypto.randomUUID());
979
979
  const [answers, setAnswers] = react.useState(() => initialAnswers(form.fields));
980
980
  const readOnly = form.responseStatus === "SUBMITTED";
@@ -1073,15 +1073,15 @@ function isPendingRequired(form) {
1073
1073
  return form.required && form.fillState === "ok" && form.responseStatus === null;
1074
1074
  }
1075
1075
  function FormsSection({ token, travellerRef }) {
1076
- const engine = react.useContext(chunkP5HF55MO_cjs.OfflineEngineContext);
1076
+ const engine = react.useContext(chunkS53XNHRU_cjs.OfflineEngineContext);
1077
1077
  if (engine === null) {
1078
1078
  return null;
1079
1079
  }
1080
1080
  return /* @__PURE__ */ jsxRuntime.jsx(ReadyFormsSection, { token, travellerRef });
1081
1081
  }
1082
1082
  function ReadyFormsSection({ token, travellerRef }) {
1083
- const { t } = chunkP5HF55MO_cjs.useKaafilChrome();
1084
- const { status, forms, renderForm, save, submit, writeStatus, refresh } = chunkE6SI2S3L_cjs.useShareForms(token);
1083
+ const { t } = chunkS53XNHRU_cjs.useKaafilChrome();
1084
+ const { status, forms, renderForm, save, submit, writeStatus, refresh } = chunk3AF2M2JD_cjs.useShareForms(token);
1085
1085
  const [openFormId, setOpenFormId] = react.useState(null);
1086
1086
  const [openForm, setOpenForm] = react.useState(null);
1087
1087
  const autoOpenedRef = react.useRef(false);
@@ -1197,7 +1197,7 @@ function HeroSection({
1197
1197
  travellers,
1198
1198
  onOpenHousehold
1199
1199
  }) {
1200
- const { t } = chunkP5HF55MO_cjs.useKaafilChrome();
1200
+ const { t } = chunkS53XNHRU_cjs.useKaafilChrome();
1201
1201
  return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "kf-share-view__hero", "aria-label": t("chrome.shareView.trip.ariaLabel"), children: [
1202
1202
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "kf-share-view__hero-code kf-eyebrow", children: tripName }),
1203
1203
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -1253,7 +1253,7 @@ function HeroSection({
1253
1253
  ] });
1254
1254
  }
1255
1255
  function HouseholdBanner({ label, names }) {
1256
- const { t } = chunkP5HF55MO_cjs.useKaafilChrome();
1256
+ const { t } = chunkS53XNHRU_cjs.useKaafilChrome();
1257
1257
  if (names.length === 0 && label === null) {
1258
1258
  return null;
1259
1259
  }
@@ -1274,15 +1274,21 @@ function HouseholdBanner({ label, names }) {
1274
1274
  }
1275
1275
  );
1276
1276
  }
1277
+
1278
+ // src/traveller/KaafilShareView/internal/sections/planRow.ts
1279
+ function usesTimeColumn(items) {
1280
+ return items.some((item) => item.startTime !== null || item.timeState === "now");
1281
+ }
1277
1282
  function ItineraryDayStrip({
1278
1283
  itinerary,
1279
1284
  timezone,
1280
1285
  selectedIndex,
1281
1286
  onSelectIndex
1282
1287
  }) {
1283
- const { t } = chunkP5HF55MO_cjs.useKaafilChrome();
1288
+ const { t } = chunkS53XNHRU_cjs.useKaafilChrome();
1284
1289
  const todayIndex = itinerary.days.findIndex((day) => day.isToday);
1285
1290
  const selectedDay = itinerary.days[selectedIndex] ?? itinerary.days[0];
1291
+ const showTime = usesTimeColumn(selectedDay?.items ?? []);
1286
1292
  if (itinerary.days.length === 0 || selectedDay === void 0) {
1287
1293
  return null;
1288
1294
  }
@@ -1332,7 +1338,7 @@ function ItineraryDayStrip({
1332
1338
  {
1333
1339
  className: `kf-share-view__row kf-share-view__plan-row kf-share-view__plan-row--${item.timeState}`,
1334
1340
  children: [
1335
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-share-view__plan-time kf-num", children: item.timeState === "now" ? t("chrome.shareView.plan.now") : item.startTime !== null ? formatTimeOfDay(item.startTime, timezone) : "" }),
1341
+ showTime ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-share-view__plan-time kf-num", children: item.timeState === "now" ? t("chrome.shareView.plan.now") : item.startTime !== null ? formatTimeOfDay(item.startTime, timezone) : "" }) : null,
1336
1342
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-share-view__plan-title", children: item.title })
1337
1343
  ]
1338
1344
  },
@@ -1342,7 +1348,7 @@ function ItineraryDayStrip({
1342
1348
  ] });
1343
1349
  }
1344
1350
  function ManagerContactSection({ data }) {
1345
- const { t } = chunkP5HF55MO_cjs.useKaafilChrome();
1351
+ const { t } = chunkS53XNHRU_cjs.useKaafilChrome();
1346
1352
  return /* @__PURE__ */ jsxRuntime.jsxs("section", { "aria-label": t("chrome.shareView.manager.eyebrow"), children: [
1347
1353
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-share-view__eyebrow-row", children: [
1348
1354
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-eyebrow", children: t("chrome.shareView.manager.eyebrow") }),
@@ -1372,7 +1378,7 @@ function formatMinor(minor, currency) {
1372
1378
  return new Intl.NumberFormat(void 0, { style: "currency", currency }).format(minor / 100);
1373
1379
  }
1374
1380
  function MoneySection({ data }) {
1375
- const { t } = chunkP5HF55MO_cjs.useKaafilChrome();
1381
+ const { t } = chunkS53XNHRU_cjs.useKaafilChrome();
1376
1382
  return /* @__PURE__ */ jsxRuntime.jsxs("section", { "aria-label": t("chrome.shareView.money.eyebrow"), children: [
1377
1383
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-share-view__eyebrow-row", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-eyebrow", children: t("chrome.shareView.money.eyebrow") }) }),
1378
1384
  /* @__PURE__ */ jsxRuntime.jsxs("dl", { className: "kf-share-view__card kf-share-view__money", children: [
@@ -1391,7 +1397,7 @@ function MoneySection({ data }) {
1391
1397
  ] })
1392
1398
  ] });
1393
1399
  }
1394
- var ITEM_TYPE_ICON = chunkP5HF55MO_cjs.createRegistry({
1400
+ var ITEM_TYPE_ICON = chunkS53XNHRU_cjs.createRegistry({
1395
1401
  fallback: () => /* @__PURE__ */ jsxRuntime.jsx(CompassIcon, {})
1396
1402
  });
1397
1403
  ITEM_TYPE_ICON.register("FLIGHT", () => /* @__PURE__ */ jsxRuntime.jsx(PlaneIcon, {}));
@@ -1430,7 +1436,7 @@ function pickNextItem(itinerary) {
1430
1436
  return void 0;
1431
1437
  }
1432
1438
  function NextUpBanner({ itinerary, timezone }) {
1433
- const { t } = chunkP5HF55MO_cjs.useKaafilChrome();
1439
+ const { t } = chunkS53XNHRU_cjs.useKaafilChrome();
1434
1440
  const item = pickNextItem(itinerary);
1435
1441
  if (item === void 0) {
1436
1442
  return null;
@@ -1466,7 +1472,7 @@ var STATE_LABEL_KEY = {
1466
1472
  function dayLabel(t, n) {
1467
1473
  return t("chrome.shareView.dayLabel").replace("{n}", String(n));
1468
1474
  }
1469
- var ROW_ICON = chunkP5HF55MO_cjs.createRegistry({ fallback: () => /* @__PURE__ */ jsxRuntime.jsx(CompassIcon, {}) });
1475
+ var ROW_ICON = chunkS53XNHRU_cjs.createRegistry({ fallback: () => /* @__PURE__ */ jsxRuntime.jsx(CompassIcon, {}) });
1470
1476
  ROW_ICON.register("transport", () => /* @__PURE__ */ jsxRuntime.jsx(CarIcon, {}));
1471
1477
  ROW_ICON.register("stay", () => /* @__PURE__ */ jsxRuntime.jsx(HouseIcon, {}));
1472
1478
  ROW_ICON.register("activity", () => /* @__PURE__ */ jsxRuntime.jsx(CompassIcon, {}));
@@ -1553,7 +1559,7 @@ function StayAndTransportSection({
1553
1559
  selectedDayIndex,
1554
1560
  serverTime
1555
1561
  }) {
1556
- const { t } = chunkP5HF55MO_cjs.useKaafilChrome();
1562
+ const { t } = chunkS53XNHRU_cjs.useKaafilChrome();
1557
1563
  const allDayRows = [
1558
1564
  ...mergeDayBookings(
1559
1565
  transport,
@@ -1642,11 +1648,12 @@ function StayAndTransportSection({
1642
1648
  ] });
1643
1649
  }
1644
1650
  function TodayPlanSection({ itinerary, timezone }) {
1645
- const { t } = chunkP5HF55MO_cjs.useKaafilChrome();
1651
+ const { t } = chunkS53XNHRU_cjs.useKaafilChrome();
1646
1652
  const today = itinerary.days.find((day) => day.isToday);
1647
1653
  if (today === void 0 || today.items.length === 0) {
1648
1654
  return null;
1649
1655
  }
1656
+ const showTime = usesTimeColumn(today.items);
1650
1657
  return /* @__PURE__ */ jsxRuntime.jsxs("section", { "aria-label": t("chrome.shareView.today.eyebrow"), children: [
1651
1658
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-share-view__eyebrow-row", children: [
1652
1659
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-eyebrow", children: t("chrome.shareView.today.eyebrow") }),
@@ -1657,7 +1664,7 @@ function TodayPlanSection({ itinerary, timezone }) {
1657
1664
  {
1658
1665
  className: `kf-share-view__row kf-share-view__plan-row kf-share-view__plan-row--${item.timeState}`,
1659
1666
  children: [
1660
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-share-view__plan-time kf-num", children: item.timeState === "now" ? t("chrome.shareView.plan.now") : item.startTime !== null ? formatTimeOfDay(item.startTime, timezone) : "" }),
1667
+ showTime ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-share-view__plan-time kf-num", children: item.timeState === "now" ? t("chrome.shareView.plan.now") : item.startTime !== null ? formatTimeOfDay(item.startTime, timezone) : "" }) : null,
1661
1668
  /* @__PURE__ */ jsxRuntime.jsx("span", { className: "kf-share-view__plan-title", children: item.title })
1662
1669
  ]
1663
1670
  },
@@ -1669,7 +1676,7 @@ function isVisible(key, overrides) {
1669
1676
  return overrides?.[key] !== false;
1670
1677
  }
1671
1678
  function KaafilShareView(props) {
1672
- const session = chunkP5HF55MO_cjs.useSession();
1679
+ const session = chunkS53XNHRU_cjs.useSession();
1673
1680
  if (session.status !== "authenticated") {
1674
1681
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-share-view", "data-kf-family": "traveller", children: /* @__PURE__ */ jsxRuntime.jsx(ShareSkeleton, {}) });
1675
1682
  }
@@ -1684,8 +1691,8 @@ function ReadyKaafilShareView({
1684
1691
  renderSection,
1685
1692
  style
1686
1693
  }) {
1687
- const { t } = chunkP5HF55MO_cjs.useKaafilChrome();
1688
- const snapshot = chunkE6SI2S3L_cjs.useShareSnapshot(token, { travellerRef });
1694
+ const { t } = chunkS53XNHRU_cjs.useKaafilChrome();
1695
+ const snapshot = chunk3AF2M2JD_cjs.useShareSnapshot(token, { travellerRef });
1689
1696
  const [householdSheetOpen, setHouseholdSheetOpen] = react.useState(false);
1690
1697
  const [chosenDayIndex, setChosenDayIndex] = react.useState(-1);
1691
1698
  const itinerary = snapshot.sections.get("itinerary");
@@ -1705,7 +1712,7 @@ function ReadyKaafilShareView({
1705
1712
  () => snapshot.trip !== void 0 ? deriveTripStatus(snapshot.trip, itinerary, snapshot.serverTime, t) : void 0,
1706
1713
  [snapshot.trip, itinerary, snapshot.serverTime, t]
1707
1714
  );
1708
- const rootStyle = chunkP5HF55MO_cjs.tokenStyle(style);
1715
+ const rootStyle = chunkS53XNHRU_cjs.tokenStyle(style);
1709
1716
  if (snapshot.status === "loading") {
1710
1717
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "kf-share-view", "data-kf-family": "traveller", style: rootStyle, children: /* @__PURE__ */ jsxRuntime.jsx(ShareSkeleton, {}) });
1711
1718
  }
@@ -1726,7 +1733,7 @@ function ReadyKaafilShareView({
1726
1733
  const selectedDayIndex = chosenDayIndex !== -1 ? chosenDayIndex : todayDayIndex !== -1 ? todayDayIndex : 0;
1727
1734
  const showStayAndTransport = accommodation !== void 0 || transport !== void 0 || activities !== void 0 || rooming !== void 0 || seating !== void 0 || pickup !== void 0;
1728
1735
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "kf-share-view", "data-kf-family": "traveller", style: rootStyle, children: [
1729
- /* @__PURE__ */ jsxRuntime.jsxs(chunkP5HF55MO_cjs.BrandShell, { headStrategy, appName: tripName, children: [
1736
+ /* @__PURE__ */ jsxRuntime.jsxs(chunkS53XNHRU_cjs.BrandShell, { headStrategy, appName: tripName, children: [
1730
1737
  agencyContact !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx(
1731
1738
  BrandHeaderSection,
1732
1739
  {
@@ -1794,11 +1801,11 @@ function ReadyKaafilShareView({
1794
1801
 
1795
1802
  Object.defineProperty(exports, "BootErrorScreen", {
1796
1803
  enumerable: true,
1797
- get: function () { return chunkAJEZMD64_cjs.BootErrorScreen; }
1804
+ get: function () { return chunk64R4ZJTA_cjs.BootErrorScreen; }
1798
1805
  });
1799
1806
  Object.defineProperty(exports, "OfflineFallbackScreen", {
1800
1807
  enumerable: true,
1801
- get: function () { return chunkAJEZMD64_cjs.OfflineFallbackScreen; }
1808
+ get: function () { return chunk64R4ZJTA_cjs.OfflineFallbackScreen; }
1802
1809
  });
1803
1810
  exports.KaafilShareView = KaafilShareView;
1804
1811
  //# sourceMappingURL=index.cjs.map