@burdenoff/microfe-tours 2026.828.1 → 2026.830.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 (47) hide show
  1. package/dist/tours/ToursAdminRoot.js +28 -27
  2. package/dist/tours/ToursAdminRoot.js.map +1 -1
  3. package/dist/tours/ToursAdminRoutes.js +56 -55
  4. package/dist/tours/ToursAdminRoutes.js.map +1 -1
  5. package/dist/tours/ToursUserRoot.js +34 -29
  6. package/dist/tours/ToursUserRoot.js.map +1 -1
  7. package/dist/tours/ToursUserRoutes.js +33 -33
  8. package/dist/tours/ToursUserRoutes.js.map +1 -1
  9. package/dist/tours/components/MarkdownEditor.js +85 -80
  10. package/dist/tours/components/MarkdownEditor.js.map +1 -1
  11. package/dist/tours/components/RouteHelpers.js +47 -42
  12. package/dist/tours/components/RouteHelpers.js.map +1 -1
  13. package/dist/tours/components/ToursAdminNavRegistrar.js +32 -27
  14. package/dist/tours/components/ToursAdminNavRegistrar.js.map +1 -1
  15. package/dist/tours/hooks/useStepSequencer.js +45 -36
  16. package/dist/tours/hooks/useStepSequencer.js.map +1 -1
  17. package/dist/tours/hooks/useTourBuilder.js +106 -93
  18. package/dist/tours/hooks/useTourBuilder.js.map +1 -1
  19. package/dist/tours/hooks/useTourPreview.js +51 -41
  20. package/dist/tours/hooks/useTourPreview.js.map +1 -1
  21. package/dist/tours/hooks/useToursList.js +28 -27
  22. package/dist/tours/hooks/useToursList.js.map +1 -1
  23. package/dist/tours/i18n.js +187 -5
  24. package/dist/tours/i18n.js.map +1 -1
  25. package/dist/tours/pages/AnalyticsDashboardPage.js +108 -109
  26. package/dist/tours/pages/AnalyticsDashboardPage.js.map +1 -1
  27. package/dist/tours/pages/MediaLibraryPage.js +58 -61
  28. package/dist/tours/pages/MediaLibraryPage.js.map +1 -1
  29. package/dist/tours/pages/MyToursPage.js +5 -5
  30. package/dist/tours/pages/MyToursProgressPage.js +5 -5
  31. package/dist/tours/pages/SchedulerPage.js +78 -81
  32. package/dist/tours/pages/SchedulerPage.js.map +1 -1
  33. package/dist/tours/pages/StepEditorPage.js +32 -32
  34. package/dist/tours/pages/StepEditorPage.js.map +1 -1
  35. package/dist/tours/pages/SystemAnalyticsPage.js +75 -79
  36. package/dist/tours/pages/SystemAnalyticsPage.js.map +1 -1
  37. package/dist/tours/pages/TemplateLibraryPage.js +8 -8
  38. package/dist/tours/pages/TourBuilderPage.js +279 -279
  39. package/dist/tours/pages/TourBuilderPage.js.map +1 -1
  40. package/dist/tours/pages/TourPreviewPage.js +6 -6
  41. package/dist/tours/pages/ToursListPage.js +155 -155
  42. package/dist/tours/pages/ToursListPage.js.map +1 -1
  43. package/dist/tours/store/toursStore.js +11 -7
  44. package/dist/tours/store/toursStore.js.map +1 -1
  45. package/dist/tours/utils/index.js +32 -19
  46. package/dist/tours/utils/index.js.map +1 -1
  47. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"useTourPreview.js","names":[],"sources":["../../../src/tours/hooks/useTourPreview.ts"],"sourcesContent":["import { useState, useCallback, useMemo } from 'react';\nimport { useToursStore } from '../store/toursStore';\nimport type { Tour, DeviceType } from '../types';\n\n/**\n * Hook for tour preview functionality\n * Manages preview mode, device simulation, and validation\n */\nexport function useTourPreview(tour?: Tour) {\n const [isPreviewActive, setIsPreviewActive] = useState(false);\n const [currentStepIndex, setCurrentStepIndex] = useState(0);\n const [validationResults, setValidationResults] = useState<{\n valid: boolean;\n errors: string[];\n warnings: string[];\n } | null>(null);\n\n const { devicePreview, setDevicePreview } = useToursStore();\n\n const steps = useMemo(() => tour?.steps ?? [], [tour?.steps]);\n const currentStep = steps[currentStepIndex];\n\n /**\n * Start preview mode\n */\n const startPreview = useCallback(() => {\n setIsPreviewActive(true);\n setCurrentStepIndex(0);\n }, []);\n\n /**\n * Stop preview mode\n */\n const stopPreview = useCallback(() => {\n setIsPreviewActive(false);\n setCurrentStepIndex(0);\n }, []);\n\n /**\n * Navigate to next step\n */\n const nextStep = useCallback(() => {\n if (currentStepIndex < steps.length - 1) {\n setCurrentStepIndex((prev) => prev + 1);\n }\n }, [currentStepIndex, steps.length]);\n\n /**\n * Navigate to previous step\n */\n const previousStep = useCallback(() => {\n if (currentStepIndex > 0) {\n setCurrentStepIndex((prev) => prev - 1);\n }\n }, [currentStepIndex]);\n\n /**\n * Jump to specific step\n */\n const goToStep = useCallback(\n (index: number) => {\n if (index >= 0 && index < steps.length) {\n setCurrentStepIndex(index);\n }\n },\n [steps.length]\n );\n\n /**\n * Change preview device\n */\n const changeDevice = useCallback(\n (device: DeviceType) => {\n setDevicePreview(device);\n },\n [setDevicePreview]\n );\n\n /**\n * Validate tour for preview\n * Checks if all selectors exist, media is accessible, etc.\n */\n const validateForPreview = useCallback(() => {\n const errors: string[] = [];\n const warnings: string[] = [];\n\n if (!tour) {\n errors.push('No tour selected');\n setValidationResults({ valid: false, errors, warnings });\n return { valid: false, errors, warnings };\n }\n\n if (steps.length === 0) {\n errors.push('Tour has no steps');\n }\n\n steps.forEach((step, index) => {\n if (step.placement !== 'CENTER' && !step.targetSelector) {\n errors.push(`Step ${index + 1} has no selector`);\n }\n\n if (!step.content || step.content.trim() === '') {\n warnings.push(`Step ${index + 1} has empty content`);\n }\n\n // Check device-specific selectors\n if (devicePreview === 'mobile' && !step.targetSelectorMobile && !step.targetSelector) {\n warnings.push(`Step ${index + 1} has no mobile selector`);\n }\n if (devicePreview === 'tablet' && !step.targetSelectorTablet && !step.targetSelector) {\n warnings.push(`Step ${index + 1} has no tablet selector`);\n }\n if (devicePreview === 'desktop' && !step.targetSelectorDesktop && !step.targetSelector) {\n warnings.push(`Step ${index + 1} has no desktop selector`);\n }\n\n // Check media\n if (step.media && step.media.length > 0) {\n step.media.forEach((media, mediaIndex) => {\n if (!media.media.cdnUrl) {\n errors.push(`Step ${index + 1}, media ${mediaIndex + 1} has no URL`);\n }\n if (media.media.type === 'IMAGE' && !media.media.altText) {\n warnings.push(`Step ${index + 1}, media ${mediaIndex + 1} missing alt text`);\n }\n });\n }\n });\n\n const valid = errors.length === 0;\n setValidationResults({ valid, errors, warnings });\n return { valid, errors, warnings };\n }, [tour, steps, devicePreview]);\n\n /**\n * Generate shareable preview link\n */\n const generatePreviewLink = useCallback(async () => {\n if (!tour) return null;\n return `${window.location.origin}/tours/${tour.id}/preview`;\n }, [tour]);\n\n return {\n isPreviewActive,\n currentStepIndex,\n currentStep,\n devicePreview,\n validationResults,\n totalSteps: steps.length,\n canGoNext: currentStepIndex < steps.length - 1,\n canGoPrevious: currentStepIndex > 0,\n startPreview,\n stopPreview,\n nextStep,\n previousStep,\n goToStep,\n changeDevice,\n validateForPreview,\n generatePreviewLink,\n };\n}\n"],"mappings":";;;AAQA,SAAgB,EAAe,GAAa;CAC1C,IAAM,CAAC,GAAiB,KAAsB,EAAS,GAAM,EACvD,CAAC,GAAkB,KAAuB,EAAS,EAAE,EACrD,CAAC,GAAmB,KAAwB,EAIxC,KAAK,EAET,EAAE,kBAAe,wBAAqB,GAAe,EAErD,IAAQ,QAAc,GAAM,SAAS,EAAE,EAAE,CAAC,GAAM,MAAM,CAAC,EACvD,IAAc,EAAM,IAKpB,IAAe,QAAkB;AAErC,EADA,EAAmB,GAAK,EACxB,EAAoB,EAAE;IACrB,EAAE,CAAC,EAKA,IAAc,QAAkB;AAEpC,EADA,EAAmB,GAAM,EACzB,EAAoB,EAAE;IACrB,EAAE,CAAC,EAKA,IAAW,QAAkB;AACjC,EAAI,IAAmB,EAAM,SAAS,KACpC,GAAqB,MAAS,IAAO,EAAE;IAExC,CAAC,GAAkB,EAAM,OAAO,CAAC,EAK9B,IAAe,QAAkB;AACrC,EAAI,IAAmB,KACrB,GAAqB,MAAS,IAAO,EAAE;IAExC,CAAC,EAAiB,CAAC,EAKhB,IAAW,GACd,MAAkB;AACjB,EAAI,KAAS,KAAK,IAAQ,EAAM,UAC9B,EAAoB,EAAM;IAG9B,CAAC,EAAM,OAAO,CACf,EAKK,IAAe,GAClB,MAAuB;AAC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ACjC;EAAC;EAAM;EAAO;EAAc,CAAC,EAK1B,IAAsB,EAAY,YACjC,IACE,GAAG,OAAO,SAAS,OAAO,SAAS,EAAK,GAAG,YADhC,MAEjB,CAAC,EAAK,CAAC;AAEV,QAAO;EACL;EACA;EACA;EACA;EACA;EACA,YAAY,EAAM;EAClB,WAAW,IAAmB,EAAM,SAAS;EAC7C,eAAe,IAAmB;EAClC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD"}
1
+ {"version":3,"file":"useTourPreview.js","names":[],"sources":["../../../src/tours/hooks/useTourPreview.ts"],"sourcesContent":["import { useState, useCallback, useMemo } from 'react';\nimport { useToursStore } from '../store/toursStore';\nimport { useTr } from '../i18n';\nimport type { Tour, DeviceType } from '../types';\n\n/**\n * Hook for tour preview functionality\n * Manages preview mode, device simulation, and validation\n */\nexport function useTourPreview(tour?: Tour) {\n const tr = useTr();\n const [isPreviewActive, setIsPreviewActive] = useState(false);\n const [currentStepIndex, setCurrentStepIndex] = useState(0);\n const [validationResults, setValidationResults] = useState<{\n valid: boolean;\n errors: string[];\n warnings: string[];\n } | null>(null);\n\n const { devicePreview, setDevicePreview } = useToursStore();\n\n const steps = useMemo(() => tour?.steps ?? [], [tour?.steps]);\n const currentStep = steps[currentStepIndex];\n\n /**\n * Start preview mode\n */\n const startPreview = useCallback(() => {\n setIsPreviewActive(true);\n setCurrentStepIndex(0);\n }, []);\n\n /**\n * Stop preview mode\n */\n const stopPreview = useCallback(() => {\n setIsPreviewActive(false);\n setCurrentStepIndex(0);\n }, []);\n\n /**\n * Navigate to next step\n */\n const nextStep = useCallback(() => {\n if (currentStepIndex < steps.length - 1) {\n setCurrentStepIndex((prev) => prev + 1);\n }\n }, [currentStepIndex, steps.length]);\n\n /**\n * Navigate to previous step\n */\n const previousStep = useCallback(() => {\n if (currentStepIndex > 0) {\n setCurrentStepIndex((prev) => prev - 1);\n }\n }, [currentStepIndex]);\n\n /**\n * Jump to specific step\n */\n const goToStep = useCallback(\n (index: number) => {\n if (index >= 0 && index < steps.length) {\n setCurrentStepIndex(index);\n }\n },\n [steps.length]\n );\n\n /**\n * Change preview device\n */\n const changeDevice = useCallback(\n (device: DeviceType) => {\n setDevicePreview(device);\n },\n [setDevicePreview]\n );\n\n /**\n * Validate tour for preview\n * Checks if all selectors exist, media is accessible, etc.\n */\n const validateForPreview = useCallback(() => {\n const errors: string[] = [];\n const warnings: string[] = [];\n\n if (!tour) {\n errors.push(tr('tourPreview.errorNoTour', 'No tour selected'));\n setValidationResults({ valid: false, errors, warnings });\n return { valid: false, errors, warnings };\n }\n\n if (steps.length === 0) {\n errors.push(tr('tourPreview.errorNoSteps', 'Tour has no steps'));\n }\n\n steps.forEach((step, index) => {\n const number = index + 1;\n\n if (step.placement !== 'CENTER' && !step.targetSelector) {\n errors.push(\n tr('tourPreview.errorStepNoSelector', 'Step {{number}} has no selector', { number })\n );\n }\n\n if (!step.content || step.content.trim() === '') {\n warnings.push(\n tr('tourPreview.warningStepEmptyContent', 'Step {{number}} has empty content', {\n number,\n })\n );\n }\n\n // Check device-specific selectors\n if (devicePreview === 'mobile' && !step.targetSelectorMobile && !step.targetSelector) {\n warnings.push(\n tr('tourPreview.warningStepNoMobileSelector', 'Step {{number}} has no mobile selector', {\n number,\n })\n );\n }\n if (devicePreview === 'tablet' && !step.targetSelectorTablet && !step.targetSelector) {\n warnings.push(\n tr('tourPreview.warningStepNoTabletSelector', 'Step {{number}} has no tablet selector', {\n number,\n })\n );\n }\n if (devicePreview === 'desktop' && !step.targetSelectorDesktop && !step.targetSelector) {\n warnings.push(\n tr(\n 'tourPreview.warningStepNoDesktopSelector',\n 'Step {{number}} has no desktop selector',\n {\n number,\n }\n )\n );\n }\n\n // Check media\n if (step.media && step.media.length > 0) {\n step.media.forEach((media, mediaIndex) => {\n const mediaNumber = mediaIndex + 1;\n if (!media.media.cdnUrl) {\n errors.push(\n tr(\n 'tourPreview.errorStepMediaNoUrl',\n 'Step {{number}}, media {{mediaNumber}} has no URL',\n { number, mediaNumber }\n )\n );\n }\n if (media.media.type === 'IMAGE' && !media.media.altText) {\n warnings.push(\n tr(\n 'tourPreview.warningStepMediaMissingAlt',\n 'Step {{number}}, media {{mediaNumber}} missing alt text',\n { number, mediaNumber }\n )\n );\n }\n });\n }\n });\n\n const valid = errors.length === 0;\n setValidationResults({ valid, errors, warnings });\n return { valid, errors, warnings };\n }, [tour, steps, devicePreview, tr]);\n\n /**\n * Generate shareable preview link\n */\n const generatePreviewLink = useCallback(async () => {\n if (!tour) return null;\n return `${window.location.origin}/tours/${tour.id}/preview`;\n }, [tour]);\n\n return {\n isPreviewActive,\n currentStepIndex,\n currentStep,\n devicePreview,\n validationResults,\n totalSteps: steps.length,\n canGoNext: currentStepIndex < steps.length - 1,\n canGoPrevious: currentStepIndex > 0,\n startPreview,\n stopPreview,\n nextStep,\n previousStep,\n goToStep,\n changeDevice,\n validateForPreview,\n generatePreviewLink,\n };\n}\n"],"mappings":";;;;AASA,SAAgB,EAAe,GAAa;CAC1C,IAAM,IAAK,GAAO,EACZ,CAAC,GAAiB,KAAsB,EAAS,GAAM,EACvD,CAAC,GAAkB,KAAuB,EAAS,EAAE,EACrD,CAAC,GAAmB,KAAwB,EAIxC,KAAK,EAET,EAAE,kBAAe,wBAAqB,GAAe,EAErD,IAAQ,QAAc,GAAM,SAAS,EAAE,EAAE,CAAC,GAAM,MAAM,CAAC,EACvD,IAAc,EAAM,IAKpB,IAAe,QAAkB;AAErC,EADA,EAAmB,GAAK,EACxB,EAAoB,EAAE;IACrB,EAAE,CAAC,EAKA,IAAc,QAAkB;AAEpC,EADA,EAAmB,GAAM,EACzB,EAAoB,EAAE;IACrB,EAAE,CAAC,EAKA,IAAW,QAAkB;AACjC,EAAI,IAAmB,EAAM,SAAS,KACpC,GAAqB,MAAS,IAAO,EAAE;IAExC,CAAC,GAAkB,EAAM,OAAO,CAAC,EAK9B,IAAe,QAAkB;AACrC,EAAI,IAAmB,KACrB,GAAqB,MAAS,IAAO,EAAE;IAExC,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M,MAAM,UACf,EAAO,KACL,EACE,mCACA,qDACA;KAAE;KAAQ;KAAa,CACxB,CACF,EAEC,EAAM,MAAM,SAAS,WAAW,CAAC,EAAM,MAAM,WAC/C,EAAS,KACP,EACE,0CACA,2DACA;KAAE;KAAQ;KAAa,CACxB,CACF;KAEH;IAEJ;EAEF,IAAM,IAAQ,EAAO,WAAW;AAEhC,SADA,EAAqB;GAAE;GAAO;GAAQ;GAAU,CAAC,EAC1C;GAAE;GAAO;GAAQ;GAAU;IACjC;EAAC;EAAM;EAAO;EAAe;EAAG,CAAC,EAK9B,IAAsB,EAAY,YACjC,IACE,GAAG,OAAO,SAAS,OAAO,SAAS,EAAK,GAAG,YADhC,MAEjB,CAAC,EAAK,CAAC;AAEV,QAAO;EACL;EACA;EACA;EACA;EACA;EACA,YAAY,EAAM;EAClB,WAAW,IAAmB,EAAM,SAAS;EAC7C,eAAe,IAAmB;EAClC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD"}
@@ -1,19 +1,20 @@
1
- import { GetToursDocument as e } from "../../generated/global-operations.js";
2
- import { useCallback as t, useState as n } from "react";
3
- import { useGatewayClient as r } from "@burdenoff/fe-libs/shared/graphql";
1
+ import { useToursI18n as e } from "../i18n.js";
2
+ import { GetToursDocument as t } from "../../generated/global-operations.js";
3
+ import { useCallback as n, useState as r } from "react";
4
+ import { useGatewayClient as i } from "@burdenoff/fe-libs/shared/graphql";
4
5
  //#region src/tours/hooks/useToursList.ts
5
- function i(i, a) {
6
- let o = r("global"), [s, c] = n([]), [l, u] = n(!1), [d, f] = n(null), [p, m] = n(0), h = t(async (t, n) => {
7
- u(!0), f(null);
6
+ function a(a, o) {
7
+ let { tr: s } = e(), c = i("global"), [l, u] = r([]), [d, f] = r(!1), [p, m] = r(null), [h, g] = r(0), _ = n(async (e, n) => {
8
+ f(!0), m(null);
8
9
  try {
9
- let { data: r, error: i } = await o.query({
10
- query: e,
10
+ let { data: r } = await c.query({
11
+ query: t,
11
12
  variables: {
12
13
  filters: {
13
- productId: t?.productId,
14
- moduleId: t?.moduleId,
15
- pageId: t?.pageId,
16
- status: t?.status === "all" ? void 0 : t?.status
14
+ productId: e?.productId,
15
+ moduleId: e?.moduleId,
16
+ pageId: e?.pageId,
17
+ status: e?.status === "all" ? void 0 : e?.status
17
18
  },
18
19
  pagination: {
19
20
  limit: n?.limit ?? 50,
@@ -21,29 +22,29 @@ function i(i, a) {
21
22
  }
22
23
  },
23
24
  fetchPolicy: "network-only"
24
- }), a = (r?.tours?.tours ?? []).filter((e) => {
25
- if (!t?.search) return !0;
26
- let n = t.search.toLowerCase();
27
- return e.name.toLowerCase().includes(n) || (e.description ?? "").toLowerCase().includes(n);
25
+ }), i = (r?.tours?.tours ?? []).filter((t) => {
26
+ if (!e?.search) return !0;
27
+ let n = e.search.toLowerCase();
28
+ return t.name.toLowerCase().includes(n) || (t.description ?? "").toLowerCase().includes(n);
28
29
  });
29
- c(a), m(r?.tours?.total ?? a.length);
30
+ u(i), g(r?.tours?.total ?? i.length);
30
31
  } catch (e) {
31
- f(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to fetch tours")), c([]), m(0);
32
+ m(e instanceof Error ? e : Error(s("toursList.errorFetch", "Failed to fetch tours"))), u([]), g(0);
32
33
  } finally {
33
- u(!1);
34
+ f(!1);
34
35
  }
35
- }, [o]);
36
+ }, [c, s]);
36
37
  return {
37
- tours: s,
38
- loading: l,
39
- error: d,
40
- total: p,
38
+ tours: l,
39
+ loading: d,
40
+ error: p,
41
+ total: h,
41
42
  hasMore: !1,
42
- fetchTours: h,
43
- refetch: () => h()
43
+ fetchTours: _,
44
+ refetch: () => _()
44
45
  };
45
46
  }
46
47
  //#endregion
47
- export { i as useToursList };
48
+ export { a as useToursList };
48
49
 
49
50
  //# sourceMappingURL=useToursList.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useToursList.js","names":[],"sources":["../../../src/tours/hooks/useToursList.ts"],"sourcesContent":["import { useCallback, useState } from 'react';\nimport { useGatewayClient } from '@burdenoff/fe-libs/shared/graphql';\nimport type {\n TourFilters as LocalTourFilters,\n TourPagination as LocalTourPagination,\n} from '../types';\nimport type { TourStatus } from '../../generated/global-types';\nimport { GetToursDocument } from '../../generated/global-operations';\nimport type { GetToursQuery, GetToursQueryVariables } from '../../generated/global-operations';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype Tour = any;\n\n/**\n * Hook for fetching and managing tours list\n * Uses the gateway client from fe-libs\n * All tours are now global (no workspace scoping)\n */\nexport function useToursList(\n _initialFilters?: LocalTourFilters,\n _initialPagination?: LocalTourPagination\n) {\n const globalClient = useGatewayClient('global');\n\n const [tours, setTours] = useState<Tour[]>([]);\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState<Error | null>(null);\n const [total, setTotal] = useState(0);\n\n const fetchTours = useCallback(\n async (filters?: LocalTourFilters, pagination?: LocalTourPagination) => {\n setLoading(true);\n setError(null);\n\n try {\n const { data, error: queryError } = await globalClient.query<\n GetToursQuery,\n GetToursQueryVariables\n >({\n query: GetToursDocument,\n variables: {\n filters: {\n productId: filters?.productId,\n moduleId: filters?.moduleId,\n pageId: filters?.pageId,\n status:\n filters?.status === 'all' ? undefined : (filters?.status as TourStatus | undefined),\n },\n pagination: {\n limit: pagination?.limit ?? 50,\n offset: pagination?.page ? (pagination.page - 1) * (pagination?.limit ?? 50) : 0,\n },\n },\n fetchPolicy: 'network-only',\n });\n\n const fetchedTours = (data?.tours?.tours ?? []).filter((tour) => {\n if (!filters?.search) return true;\n\n const normalizedSearch = filters.search.toLowerCase();\n return (\n tour.name.toLowerCase().includes(normalizedSearch) ||\n (tour.description ?? '').toLowerCase().includes(normalizedSearch)\n );\n });\n\n setTours(fetchedTours);\n setTotal(data?.tours?.total ?? fetchedTours.length);\n } catch (err) {\n setError(err instanceof Error ? err : new Error('Failed to fetch tours'));\n setTours([]);\n setTotal(0);\n } finally {\n setLoading(false);\n }\n },\n [globalClient]\n );\n\n return {\n tours,\n loading,\n error,\n total,\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B"}
1
+ {"version":3,"file":"useToursList.js","names":[],"sources":["../../../src/tours/hooks/useToursList.ts"],"sourcesContent":["import { useCallback, useState } from 'react';\nimport { useGatewayClient } from '@burdenoff/fe-libs/shared/graphql';\nimport { useToursI18n } from '../i18n';\nimport type {\n TourFilters as LocalTourFilters,\n TourPagination as LocalTourPagination,\n} from '../types';\nimport type { TourStatus } from '../../generated/global-types';\nimport { GetToursDocument } from '../../generated/global-operations';\nimport type { GetToursQuery, GetToursQueryVariables } from '../../generated/global-operations';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype Tour = any;\n\n/**\n * Hook for fetching and managing tours list\n * Uses the gateway client from fe-libs\n * All tours are now global (no workspace scoping)\n */\nexport function useToursList(\n _initialFilters?: LocalTourFilters,\n _initialPagination?: LocalTourPagination\n) {\n const { tr } = useToursI18n();\n const globalClient = useGatewayClient('global');\n\n const [tours, setTours] = useState<Tour[]>([]);\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState<Error | null>(null);\n const [total, setTotal] = useState(0);\n\n const fetchTours = useCallback(\n async (filters?: LocalTourFilters, pagination?: LocalTourPagination) => {\n setLoading(true);\n setError(null);\n\n try {\n const { data } = await globalClient.query<GetToursQuery, GetToursQueryVariables>({\n query: GetToursDocument,\n variables: {\n filters: {\n productId: filters?.productId,\n moduleId: filters?.moduleId,\n pageId: filters?.pageId,\n status:\n filters?.status === 'all' ? undefined : (filters?.status as TourStatus | undefined),\n },\n pagination: {\n limit: pagination?.limit ?? 50,\n offset: pagination?.page ? (pagination.page - 1) * (pagination?.limit ?? 50) : 0,\n },\n },\n fetchPolicy: 'network-only',\n });\n\n const fetchedTours = (data?.tours?.tours ?? []).filter((tour) => {\n if (!filters?.search) return true;\n\n const normalizedSearch = filters.search.toLowerCase();\n return (\n tour.name.toLowerCase().includes(normalizedSearch) ||\n (tour.description ?? '').toLowerCase().includes(normalizedSearch)\n );\n });\n\n setTours(fetchedTours);\n setTotal(data?.tours?.total ?? fetchedTours.length);\n } catch (err) {\n setError(\n err instanceof Error\n ? err\n : new Error(tr('toursList.errorFetch', 'Failed to fetch tours'))\n );\n setTours([]);\n setTotal(0);\n } finally {\n setLoading(false);\n }\n },\n [globalClient, tr]\n );\n\n return {\n tours,\n loading,\n error,\n total,\n hasMore: false,\n fetchTours,\n refetch: () => fetchTours(),\n };\n}\n"],"mappings":";;;;;AAmBA,SAAgB,EACd,GACA,GACA;CACA,IAAM,EAAE,UAAO,GAAc,EACvB,IAAe,EAAiB,SAAS,EAEzC,CAAC,GAAO,KAAY,EAAiB,EAAE,CAAC,EACxC,CAAC,GAAS,KAAc,EAAS,GAAM,EACvC,CAAC,GAAO,KAAY,EAAuB,KAAK,EAChD,CAAC,GAAO,KAAY,EAAS,EAAE,EAE/B,IAAa,EACjB,OAAO,GAA4B,MAAqC;AAEtE,EADA,EAAW,GAAK,EAChB,EAAS,KAAK;AAEd,MAAI;GACF,IAAM,EAAE,YAAS,MAAM,EAAa,MAA6C;IAC/E,OAAO;IACP,WAAW;KACT,SAAS;MACP,WAAW,GAAS;MACpB,UAAU,GAAS;MACnB,QAAQ,GAAS;MACjB,QACE,GAAS,WAAW,QAAQ,KAAA,IAAa,GAAS;MACrD;KACD,YAAY;MACV,OAAO,GAAY,SAAS;MAC5B,QAAQ,GAAY,QAAQ,EAAW,OAAO,MAAM,GAAY,SAAS,MAAM;MAChF;KACF;IACD,aAAa;IACd,CAAC,EAEI,KAAgB,GAAM,OAAO,SAAS,EAAE,EAAE,QAAQ,MAAS;AAC/D,QAAI,CAAC,GAAS,OAAQ,QAAO;IAE7B,IAAM,IAAmB,EAAQ,OAAO,aAAa;AACrD,WACE,EAAK,KAAK,aAAa,CAAC,SAAS,EAAiB,KACjD,EAAK,eAAe,IAAI,aAAa,CAAC,SAAS,EAAiB;KAEnE;AAGF,GADA,EAAS,EAAa,EACtB,EAAS,GAAM,OAAO,SAAS,EAAa,OAAO;WAC5C,GAAK;AAOZ,GANA,EACE,aAAe,QACX,IACI,MAAM,EAAG,wBAAwB,wBAAwB,CAAC,CACnE,EACD,EAAS,EAAE,CAAC,EACZ,EAAS,EAAE;YACH;AACR,KAAW,GAAM;;IAGrB,CAAC,GAAc,EAAG,CACnB;AAED,QAAO;EACL;EACA;EACA;EACA;EACA,SAAS;EACT;EACA,eAAe,GAAY;EAC5B"}
@@ -46,6 +46,27 @@ var n = {
46
46
  "stepEditor.tourFallback": "Tour",
47
47
  "stepEditor.tourSteps": "Tour Steps",
48
48
  "stepEditor.untitled": "Untitled",
49
+ "stepEditor.moveStepUp": "Move step up",
50
+ "stepEditor.moveStepDown": "Move step down",
51
+ "stepEditor.requireInteraction": "Require interaction",
52
+ "stepEditor.requireInteractionDescription": "User must interact with the highlighted element before advancing.",
53
+ "stepEditor.waitForTimeout": "Wait for timeout (ms)",
54
+ "stepEditor.advancedSettings": "Advanced settings",
55
+ "stepEditor.advancedSettingsDescription": "Step-timing waits, skip conditions, and analytics tags.",
56
+ "stepEditor.waitForSelector": "Wait for selector",
57
+ "stepEditor.waitForEvent": "Wait for event",
58
+ "stepEditor.skipConditions": "Skip conditions (JSON)",
59
+ "stepEditor.stepMedia": "Step media",
60
+ "stepEditor.noMediaAttached": "No media attached to this step yet.",
61
+ "stepEditor.loadingMedia": "Loading media...",
62
+ "stepEditor.selectUploadedMedia": "Select uploaded media",
63
+ "stepEditor.positionHeader": "Header",
64
+ "stepEditor.positionBody": "Body",
65
+ "stepEditor.positionFooter": "Footer",
66
+ "stepEditor.attach": "Attach",
67
+ "stepEditor.saveBeforeAttach": "Save your steps before attaching media to them.",
68
+ "stepEditor.newStep": "New Step",
69
+ "stepEditor.copySuffix": "(Copy)",
49
70
  "templateLibrary.adjustFilters": "Try adjusting your filters or search query",
50
71
  "templateLibrary.allCategories": "All Categories",
51
72
  "templateLibrary.categoryCustom": "Custom",
@@ -107,6 +128,36 @@ var n = {
107
128
  "tourBuilder.updateTour": "Update Tour",
108
129
  "tourBuilder.updateAccessDeniedMessage": "You do not have permission to update this tour.",
109
130
  "tourBuilder.validationErrorsTitle": "Validation Errors",
131
+ "tourBuilder.schedule": "Schedule",
132
+ "tourBuilder.saveAsTemplate": "Save as Template",
133
+ "tourBuilder.templateDefaultName": "{{name}} Template",
134
+ "tourBuilder.templateNamePrompt": "Template name",
135
+ "tourBuilder.templateCategoryPrompt": "Template category (ONBOARDING, FEATURE_ANNOUNCEMENT, HELP, CUSTOM)",
136
+ "tourBuilder.seedMutationErrors": "Seed mutation returned errors.",
137
+ "tourBuilder.seedMutationNoResult": "Seed mutation returned no result.",
138
+ "tourBuilder.selectProduct": "Select product",
139
+ "tourBuilder.loadingProducts": "Loading products…",
140
+ "tourBuilder.currentValue": "Current: {{value}}",
141
+ "tourBuilder.customProductSlug": "Custom product slug",
142
+ "tourBuilder.productSlugPlaceholder": "vibecontrols",
143
+ "tourBuilder.labelModuleId": "Module ID",
144
+ "tourBuilder.allModules": "All modules",
145
+ "tourBuilder.customModuleId": "Custom module ID",
146
+ "tourBuilder.moduleSlugPlaceholder": "vibecontrols",
147
+ "tourBuilder.labelPageId": "Page ID",
148
+ "tourBuilder.allPages": "All pages",
149
+ "tourBuilder.customPageId": "Custom page ID",
150
+ "tourBuilder.pageSlugPlaceholder": "agents",
151
+ "tourBuilder.labelActive": "Active",
152
+ "tourBuilder.labelStartDate": "Start Date",
153
+ "tourBuilder.labelEndDate": "End Date",
154
+ "tourBuilder.errorLoadTour": "Failed to load tour",
155
+ "tourBuilder.errorCreateTour": "Failed to create tour",
156
+ "tourBuilder.errorUpdateTour": "Failed to update tour",
157
+ "tourBuilder.errorDeleteTour": "Failed to delete tour",
158
+ "tourBuilder.errorSyncSteps": "Failed to sync steps",
159
+ "tourBuilder.errorValidationFailed": "Validation failed",
160
+ "tourBuilder.errorNoTourSelected": "No tour selected",
110
161
  "tourPreview.accessDeniedMessage": "You do not have permission to preview this tour.",
111
162
  "tourPreview.accessDeniedTitle": "Access Denied",
112
163
  "tourPreview.deviceDesktop": "Desktop preview",
@@ -126,6 +177,15 @@ var n = {
126
177
  "tourPreview.stopPreview": "Stop Preview",
127
178
  "tourPreview.validationErrorsTitle": "Validation Errors",
128
179
  "tourPreview.warningsTitle": "Warnings",
180
+ "tourPreview.errorNoTour": "No tour selected",
181
+ "tourPreview.errorNoSteps": "Tour has no steps",
182
+ "tourPreview.errorStepNoSelector": "Step {{number}} has no selector",
183
+ "tourPreview.warningStepEmptyContent": "Step {{number}} has empty content",
184
+ "tourPreview.warningStepNoMobileSelector": "Step {{number}} has no mobile selector",
185
+ "tourPreview.warningStepNoTabletSelector": "Step {{number}} has no tablet selector",
186
+ "tourPreview.warningStepNoDesktopSelector": "Step {{number}} has no desktop selector",
187
+ "tourPreview.errorStepMediaNoUrl": "Step {{number}}, media {{mediaNumber}} has no URL",
188
+ "tourPreview.warningStepMediaMissingAlt": "Step {{number}}, media {{mediaNumber}} missing alt text",
129
189
  "toursList.accessDeniedMessage": "You do not have permission to view product tours.",
130
190
  "toursList.accessDeniedTitle": "Access Denied",
131
191
  "toursList.actionArchive": "Archive",
@@ -199,19 +259,141 @@ var n = {
199
259
  "tourBuilder.nextStepAnalyticsDesc": "See views, completion, and drop-off once it is live.",
200
260
  "stepEditor.purpose": "Build the actual walkthrough. Each step is a tooltip anchored to a real UI element via a CSS or data-tour selector. Add steps, reorder them, attach media, and set placement so the tour guides users exactly where you intend.",
201
261
  "stepEditor.emptyTitle": "No step selected",
202
- "tourPreview.purpose": "Walk through this tour exactly as your users will, on simulated mobile, tablet, and desktop viewports. Validate that every step finds its target element before you publish."
262
+ "tourPreview.purpose": "Walk through this tour exactly as your users will, on simulated mobile, tablet, and desktop viewports. Validate that every step finds its target element before you publish.",
263
+ "analyticsDashboard.accessDenied": "Access Denied",
264
+ "analyticsDashboard.noPermission": "You do not have permission to view tour analytics.",
265
+ "analyticsDashboard.loading": "Loading analytics...",
266
+ "analyticsDashboard.noData": "No analytics data available",
267
+ "analyticsDashboard.noDataHint": "Analytics appear once this tour has been published and seen by users. Publish the tour and check back after it starts collecting views.",
268
+ "analyticsDashboard.title": "Tour Analytics",
269
+ "analyticsDashboard.subtitle": "Performance metrics and insights",
270
+ "analyticsDashboard.purpose": "See how this specific tour is performing: how many people viewed it, how many finished versus skipped, and exactly which step they drop off on. Use the per-step drop-off to find and fix the weak point in your walkthrough.",
271
+ "analyticsDashboard.totalViews": "Total Views",
272
+ "analyticsDashboard.completionRate": "Completion Rate",
273
+ "analyticsDashboard.skipRate": "Skip Rate",
274
+ "analyticsDashboard.avgDuration": "Avg Duration",
275
+ "analyticsDashboard.deviceBreakdown": "Device Breakdown",
276
+ "analyticsDashboard.stepPerformance": "Step Performance",
277
+ "analyticsDashboard.tableStep": "Step",
278
+ "analyticsDashboard.tableViews": "Views",
279
+ "analyticsDashboard.tableCompletions": "Completions",
280
+ "analyticsDashboard.tableDropOffRate": "Drop-off Rate",
281
+ "analyticsDashboard.stepLabel": "Step",
282
+ "systemAnalytics.accessDenied": "Access Denied",
283
+ "systemAnalytics.noPermission": "You do not have permission to view system analytics.",
284
+ "systemAnalytics.loading": "Loading analytics...",
285
+ "systemAnalytics.noData": "No analytics data available",
286
+ "systemAnalytics.noDataHint": "Workspace-wide tour metrics appear once you have published tours and users have started seeing them. Publish a tour to begin collecting data.",
287
+ "systemAnalytics.title": "System Analytics",
288
+ "systemAnalytics.subtitle": "Workspace-wide tour performance overview",
289
+ "systemAnalytics.purpose": "Get the big-picture health of onboarding across the whole workspace: how many tours exist, how many are live, total reach, and the overall completion rate. Use it to judge whether your guided experiences are actually landing.",
290
+ "systemAnalytics.completionRate": "Completion Rate",
291
+ "systemAnalytics.completionRateHint": "The share of started tours that users finished across this workspace.",
292
+ "systemAnalytics.totalTours": "Total Tours",
293
+ "systemAnalytics.publishedTours": "Published Tours",
294
+ "systemAnalytics.totalViews": "Total Views",
295
+ "systemAnalytics.totalCompletions": "Total Completions",
296
+ "tourScheduler.goBack": "Go back",
297
+ "tourScheduler.title": "Schedule Tour",
298
+ "tourScheduler.subtitle": "Configure when this tour should be activated",
299
+ "tourScheduler.purpose": "Decide exactly when this tour goes live and how often it repeats — for example, run an onboarding tour every Monday, or activate a feature-announcement tour for a single launch window. Set a start (and optional end) date plus a recurrence pattern, and the tour will surface to users automatically on schedule.",
300
+ "tourScheduler.existingSchedules": "Existing Schedules",
301
+ "tourScheduler.noEndDate": "No end date",
302
+ "tourScheduler.oneTime": "One-time",
303
+ "tourScheduler.active": "Active",
304
+ "tourScheduler.inactive": "Inactive",
305
+ "tourScheduler.runs": "Runs",
306
+ "tourScheduler.sectionDateRange": "Date Range",
307
+ "tourScheduler.labelStartDate": "Start Date *",
308
+ "tourScheduler.labelEndDate": "End Date (Optional)",
309
+ "tourScheduler.sectionRecurrence": "Recurrence",
310
+ "tourScheduler.labelRecurrencePattern": "Recurrence Pattern",
311
+ "tourScheduler.recurrenceDaily": "Daily",
312
+ "tourScheduler.recurrenceWeekly": "Weekly",
313
+ "tourScheduler.recurrenceMonthly": "Monthly",
314
+ "tourScheduler.recurrenceCustom": "Custom",
315
+ "tourScheduler.labelTimezone": "Timezone",
316
+ "tourScheduler.statusActiveLabel": "Active",
317
+ "tourScheduler.statusActiveDescription": "Enable this schedule immediately after creation",
318
+ "tourScheduler.cancel": "Cancel",
319
+ "tourScheduler.creating": "Creating...",
320
+ "tourScheduler.createSchedule": "Create Schedule",
321
+ "mediaLibrary.title": "Media Library",
322
+ "mediaLibrary.subtitle": "Upload and manage media for tour steps",
323
+ "mediaLibrary.uploadMedia": "Upload Media",
324
+ "mediaLibrary.purpose": "Store and organise the images, videos, audio, and documents you attach to tour steps. Upload an asset here once, then reference it from any step — handy for product screenshots, short demo clips, or callout graphics that make a walkthrough clearer.",
325
+ "mediaLibrary.searchPlaceholder": "Search media...",
326
+ "mediaLibrary.filterByType": "Filter by media type",
327
+ "mediaLibrary.allTypes": "All Types",
328
+ "mediaLibrary.typeImages": "Images",
329
+ "mediaLibrary.typeVideos": "Videos",
330
+ "mediaLibrary.typeAudio": "Audio",
331
+ "mediaLibrary.typeDocuments": "Documents",
332
+ "mediaLibrary.uploading": "Uploading...",
333
+ "mediaLibrary.deleteConfirm": "Delete this media?",
334
+ "mediaLibrary.delete": "Delete",
335
+ "mediaLibrary.noMedia": "No media files",
336
+ "mediaLibrary.uploadFirstMedia": "Upload your first media file to get started",
337
+ "markdownEditor.bold": "Bold",
338
+ "markdownEditor.italic": "Italic",
339
+ "markdownEditor.link": "Link",
340
+ "markdownEditor.inlineCode": "Inline code",
341
+ "markdownEditor.bulletList": "Bullet list",
342
+ "markdownEditor.linkTextPlaceholder": "link text",
343
+ "markdownEditor.writeTab": "Write",
344
+ "markdownEditor.previewTab": "Preview",
345
+ "markdownEditor.nothingToPreview": "Nothing to preview",
346
+ "markdownEditor.tabsAriaLabel": "Markdown editor tabs",
347
+ "toursNav.allTours": "All Tours",
348
+ "toursNav.createTour": "Create Tour",
349
+ "toursNav.templates": "Templates",
350
+ "toursNav.analytics": "Analytics",
351
+ "toursNav.mediaLibrary": "Media Library",
352
+ "toursShell.productToursReady": "Product Tours Ready",
353
+ "toursShell.moduleError": "Something went wrong loading this module. Please refresh the page.",
354
+ "routeErrors.failedToLoadPage": "Failed to load page",
355
+ "routeErrors.chunkLoadRetry": "The page chunk could not be loaded. This may be due to a network issue.",
356
+ "routeErrors.chunkLoadRefresh": "The page chunk could not be loaded after multiple attempts. Please refresh the page.",
357
+ "routeErrors.tryAgain": "Try Again",
358
+ "routeErrors.refreshPage": "Refresh Page",
359
+ "featureDisabled.title": "Feature Not Available",
360
+ "featureDisabled.description": "This feature is not currently enabled. Redirecting you to the tours list…",
361
+ "userTours.unavailable": "Tours are not available for this workspace right now.",
362
+ "deviceType.mobile": "Mobile",
363
+ "deviceType.tablet": "Tablet",
364
+ "deviceType.desktop": "Desktop",
365
+ "common.fileSize.bytes": "Bytes",
366
+ "common.fileSize.kb": "KB",
367
+ "common.fileSize.mb": "MB",
368
+ "common.fileSize.gb": "GB",
369
+ "common.duration.seconds": "s",
370
+ "common.duration.minutes": "m",
371
+ "common.duration.hours": "h",
372
+ "validation.noTourSelected": "No tour selected",
373
+ "validation.tourNameRequired": "Tour name is required",
374
+ "validation.productIdRequired": "Product ID is required",
375
+ "validation.stepsRequired": "At least one step is required",
376
+ "validation.stepTitleRequired": "Step {{number}} title is required",
377
+ "validation.stepContentRequired": "Step {{number}} content is required",
378
+ "validation.stepSelectorRequired": "Step {{number}} selector is required",
379
+ "toursList.errorFetch": "Failed to fetch tours",
380
+ "analyticsDashboard.deviceViews": "views"
203
381
  };
204
382
  function r() {
205
- let r = t(), i = r.t, a = e((e, t) => {
206
- let r = i(e, n[e]);
207
- return t ? Object.entries(t).reduce((e, [t, n]) => e.replace(`{{${t}}}`, String(n)), r) : r;
383
+ let r = t(), i = r.t, a = e((e, t, r) => {
384
+ let a = typeof t == "string" ? t : n[e], o = typeof t == "object" ? t : r, s = i(e, a);
385
+ return o ? Object.entries(o).reduce((e, [t, n]) => e.replace(RegExp(`\\{\\{${t}\\}\\}`, "g"), String(n)), s) : s;
208
386
  }, [i]);
209
387
  return {
210
388
  ...r,
211
389
  tr: a
212
390
  };
213
391
  }
392
+ function i() {
393
+ let { tr: t } = r();
394
+ return e((e, n, r) => t(e, n, r), [t]);
395
+ }
214
396
  //#endregion
215
- export { r as useToursI18n };
397
+ export { r as useToursI18n, i as useTr };
216
398
 
217
399
  //# sourceMappingURL=i18n.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.js","names":[],"sources":["../../src/tours/i18n.ts"],"sourcesContent":["import { useCallback } from 'react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\n\nconst toursTranslationFallbacks = {\n 'stepEditor.addFirstStep': 'Add First Step',\n 'stepEditor.addStep': 'Add Step',\n 'stepEditor.clickAddStep': 'Click \"Add Step\" to create one',\n 'stepEditor.closeSteps': 'Close steps',\n 'stepEditor.content': 'Content',\n 'stepEditor.contentPlaceholder': 'Enter step content or instructions',\n 'stepEditor.createFirstStep': 'Create your first step to get started',\n 'stepEditor.cssSelector': 'CSS Selector',\n 'stepEditor.cssSelectorPlaceholder': \"[data-tour='element-name'] or #id or .class\",\n 'stepEditor.dataTourHint': \"Use data-tour attributes like [data-tour='sidenav'] for best results\",\n 'stepEditor.deleteStep': 'Delete step',\n 'stepEditor.desktopSelector': 'Desktop Selector',\n 'stepEditor.deviceSelectorHint': 'Override the default selector for specific device types',\n 'stepEditor.deviceSpecificSelectors': 'Device-Specific Selectors (Advanced)',\n 'stepEditor.editStep': 'Edit Step',\n 'stepEditor.goBack': 'Go back',\n 'stepEditor.leaveEmptyDefault': 'Leave empty to use default',\n 'stepEditor.mobileSelector': 'Mobile Selector',\n 'stepEditor.noStepSelected': 'No step selected',\n 'stepEditor.noStepsYet': 'No steps yet',\n 'stepEditor.of': 'of',\n 'stepEditor.nextStep': 'Next step',\n 'stepEditor.placementAuto': 'Auto (recommended)',\n 'stepEditor.placementBottom': 'Bottom',\n 'stepEditor.placementCenter': 'Center (modal style)',\n 'stepEditor.placementLeft': 'Left',\n 'stepEditor.placementRight': 'Right',\n 'stepEditor.placementTop': 'Top',\n 'stepEditor.previousStep': 'Previous step',\n 'stepEditor.save': 'Save',\n 'stepEditor.saving': 'Saving...',\n 'stepEditor.selectStepToEdit': 'Select a step from the list to edit it',\n 'stepEditor.stepNumber': 'Step',\n 'stepEditor.steps': 'Steps',\n 'stepEditor.stepsCount': 'steps',\n 'stepEditor.stepsLabel': 'Steps',\n 'stepEditor.stepTitle': 'Step Title',\n 'stepEditor.stepTitlePlaceholder': 'Enter step title',\n 'stepEditor.tabletSelector': 'Tablet Selector',\n 'stepEditor.targetElement': 'target element',\n 'stepEditor.tooltipPlacement': 'Tooltip Placement',\n 'stepEditor.tourFallback': 'Tour',\n 'stepEditor.tourSteps': 'Tour Steps',\n 'stepEditor.untitled': 'Untitled',\n 'templateLibrary.adjustFilters': 'Try adjusting your filters or search query',\n 'templateLibrary.allCategories': 'All Categories',\n 'templateLibrary.categoryCustom': 'Custom',\n 'templateLibrary.categoryFeatureAnnouncement': 'Feature Announcement',\n 'templateLibrary.categoryHelp': 'Help',\n 'templateLibrary.categoryOnboarding': 'Onboarding',\n 'templateLibrary.deleteConfirm': 'Delete this template?',\n 'templateLibrary.deleteTemplate': 'Delete template',\n 'templateLibrary.loading': 'Loading templates...',\n 'templateLibrary.noTemplatesFound': 'No templates found',\n 'templateLibrary.publicOnly': 'Public only',\n 'templateLibrary.searchPlaceholder': 'Search templates...',\n 'templateLibrary.subtitle': 'Browse and use pre-built tour templates',\n 'templateLibrary.times': 'times',\n 'templateLibrary.title': 'Tour Templates',\n 'templateLibrary.useTemplate': 'Use Template',\n 'templateLibrary.usedTimes': 'Used',\n 'tourBuilder.accessDeniedTitle': 'Access Denied',\n 'tourBuilder.analytics': 'Analytics',\n 'tourBuilder.createAndAddSteps': 'Create & Add Steps',\n 'tourBuilder.createAccessDeniedMessage': 'You do not have permission to create tours.',\n 'tourBuilder.editSteps': 'Edit Steps',\n 'tourBuilder.errorTitle': 'Error',\n 'tourBuilder.goBack': 'Go back',\n 'tourBuilder.labelDescription': 'Description',\n 'tourBuilder.labelName': 'Tour Name *',\n 'tourBuilder.labelPriority': 'Priority (1-100)',\n 'tourBuilder.labelProductId': 'Product ID *',\n 'tourBuilder.labelTriggerType': 'Trigger Type',\n 'tourBuilder.loading': 'Loading...',\n 'tourBuilder.preview': 'Preview',\n 'tourBuilder.saving': 'Saving...',\n 'tourBuilder.sectionBasicInfo': 'Basic Information',\n 'tourBuilder.sectionTriggerSettings': 'Trigger Settings',\n 'tourBuilder.seedVibeControls.button': 'Seed VibeControls user tours',\n 'tourBuilder.seedVibeControls.confirm':\n 'This will overwrite the built-in Support, Notifications, and Conversations user tours from the service seed file. Continue?',\n 'tourBuilder.seedVibeControls.description':\n 'Overwrites the built-in Support, Notifications, and Conversations user tours from the service seed file.',\n 'tourBuilder.seedVibeControls.error': 'Failed to seed VibeControls user tours.',\n 'tourBuilder.seedVibeControls.loading': 'Seeding...',\n 'tourBuilder.seedVibeControls.permissionHint':\n 'Requires tour create and update permissions. The service also enforces RBAC when the seed mutation runs.',\n 'tourBuilder.seedVibeControls.result':\n 'Seeded {{totalCount}} tours for {{productId}} in workspace {{workspaceId}}: {{createdCount}} created, {{updatedCount}} updated.',\n 'tourBuilder.seedVibeControls.title': 'Seed VibeControls user tours',\n\n 'tourBuilder.seedBuildmyiq.button': 'Seed Buildmyiq user tours',\n 'tourBuilder.seedBuildmyiq.confirm':\n 'This will overwrite the built-in Buildmyiq dashboard user tour from the service seed file. Continue?',\n 'tourBuilder.seedBuildmyiq.description':\n 'Overwrites the built-in Buildmyiq dashboard user tour from the service seed file.',\n 'tourBuilder.seedBuildmyiq.error': 'Failed to seed Buildmyiq user tours.',\n 'tourBuilder.seedBuildmyiq.loading': 'Seeding...',\n 'tourBuilder.seedBuildmyiq.permissionHint':\n 'Requires tour create and update permissions. The service also enforces RBAC when the seed mutation runs.',\n 'tourBuilder.seedBuildmyiq.result':\n 'Seeded {{totalCount}} tours for {{productId}} in workspace {{workspaceId}}: {{createdCount}} created, {{updatedCount}} updated.',\n 'tourBuilder.seedBuildmyiq.title': 'Seed Buildmyiq user tours',\n 'tourBuilder.subtitle': 'Configure tour details and settings',\n 'tourBuilder.titleCreate': 'Create Tour',\n 'tourBuilder.titleEdit': 'Edit Tour',\n 'tourBuilder.triggerAutoAlways': 'Auto (Always)',\n 'tourBuilder.triggerAutoFirstVisit': 'Auto (First Visit)',\n 'tourBuilder.triggerManual': 'Manual',\n 'tourBuilder.triggerOnEvent': 'On Event',\n 'tourBuilder.triggerScheduled': 'Scheduled',\n 'tourBuilder.updateTour': 'Update Tour',\n 'tourBuilder.updateAccessDeniedMessage': 'You do not have permission to update this tour.',\n 'tourBuilder.validationErrorsTitle': 'Validation Errors',\n 'tourPreview.accessDeniedMessage': 'You do not have permission to preview this tour.',\n 'tourPreview.accessDeniedTitle': 'Access Denied',\n 'tourPreview.deviceDesktop': 'Desktop preview',\n 'tourPreview.deviceMobile': 'Mobile preview',\n 'tourPreview.deviceTablet': 'Tablet preview',\n 'tourPreview.finish': 'Finish',\n 'tourPreview.loading': 'Loading tour...',\n 'tourPreview.next': 'Next',\n 'tourPreview.nextFooter': 'Next',\n 'tourPreview.previewSuffix': 'Preview',\n 'tourPreview.previous': 'Previous',\n 'tourPreview.readyHint': 'Click \"Start Preview\" to begin',\n 'tourPreview.readyTitle': 'Preview ready',\n 'tourPreview.startPreview': 'Start Preview',\n 'tourPreview.stepOf': 'Step',\n 'tourPreview.stepOfConnector': 'of',\n 'tourPreview.stopPreview': 'Stop Preview',\n 'tourPreview.validationErrorsTitle': 'Validation Errors',\n 'tourPreview.warningsTitle': 'Warnings',\n 'toursList.accessDeniedMessage': 'You do not have permission to view product tours.',\n 'toursList.accessDeniedTitle': 'Access Denied',\n 'toursList.actionArchive': 'Archive',\n 'toursList.actionDelete': 'Delete',\n 'toursList.actionDuplicate': 'Duplicate',\n 'toursList.actionPublish': 'Publish',\n 'toursList.actionUnpublish': 'Unpublish',\n 'toursList.confirmDelete': 'Are you sure you want to delete this tour?',\n 'toursList.createTour': 'Create Tour',\n 'toursList.editStepsTitle': 'Edit Steps',\n 'toursList.emptySubtitle': 'Create your first tour to get started',\n 'toursList.emptyTitle': 'No tours found',\n 'toursList.errorArchive': 'Failed to archive tour',\n 'toursList.errorDelete': 'Failed to delete tour',\n 'toursList.errorDuplicate': 'Failed to duplicate tour',\n 'toursList.errorPublish': 'Failed to publish tour',\n 'toursList.errorUnpublish': 'Failed to unpublish tour',\n 'toursList.gridView': 'Grid view',\n 'toursList.listView': 'List view',\n 'toursList.loading': 'Loading tours...',\n 'toursList.moreActionsTitle': 'More actions',\n 'toursList.previewButton': 'Preview',\n 'toursList.previewTitle': 'Preview Tour',\n 'toursList.searchPlaceholder': 'Search tours...',\n 'toursList.settingsTitle': 'Settings',\n 'toursList.statusAll': 'All Statuses',\n 'toursList.statusArchived': 'Archived',\n 'toursList.statusDraft': 'Draft',\n 'toursList.statusPublished': 'Published',\n 'toursList.statusScheduled': 'Scheduled',\n 'toursList.steps': 'steps',\n 'toursList.stepsButton': 'Steps',\n 'toursList.subtitle': 'Create and manage interactive product tours',\n 'toursList.title': 'Product Tours',\n 'toursList.views': 'views',\n\n // User-facing surface (BOFF-2391: My Tours + My Progress).\n 'myTours.title': 'My Tours',\n 'myTours.subtitle': 'Walkthroughs available in this product. Take a tour to learn a feature.',\n 'myTours.loading': 'Loading...',\n 'myTours.empty': 'No tours are available in this context yet.',\n 'myTours.status.completed': 'Completed',\n 'myTours.status.inProgress': 'In progress',\n 'myTours.status.skipped': 'Skipped',\n 'myTours.status.notStarted': 'Not started',\n 'myTours.notFoundTitle': 'Page not found',\n 'myTours.notFoundBody': \"That tour page isn't available — returning to My Tours.\",\n\n 'myToursProgress.title': 'My Progress',\n 'myToursProgress.subtitle': 'Tours you have started, completed, or skipped.',\n 'myToursProgress.loading': 'Loading...',\n 'myToursProgress.inProgress': 'In progress',\n 'myToursProgress.completed': 'Completed',\n 'myToursProgress.skipped': 'Skipped or dismissed',\n 'myToursProgress.emptyInProgress': 'No tours in progress.',\n 'myToursProgress.emptyCompleted': 'No completed tours yet.',\n 'myToursProgress.emptySkipped': 'No skipped tours.',\n 'myToursProgress.other': 'Other',\n 'myToursProgress.emptyOther': 'No tours in other states.',\n 'myToursProgress.empty':\n \"You haven't started any tours yet. Open My Tours and take a walkthrough — your progress will show up here.\",\n\n // Page-purpose (\"what is this page for\") + next-step guidance copy.\n 'toursList.purpose':\n 'Author and manage the interactive product tours users see in-app — onboarding flows, feature spotlights, and help walkthroughs. Create a tour, add steps that point at real UI elements, then publish it so it appears for the right product, module, and page.',\n 'myTours.purpose':\n 'Browse the guided walkthroughs available right here in this product. Take a tour to learn a feature step by step — your progress is saved so you can pick up where you left off.',\n 'myToursProgress.purpose':\n 'Track every tour you have interacted with, grouped by status. See what you have completed, what is still in progress, and what you skipped so you know which walkthroughs are left to finish.',\n 'templateLibrary.purpose':\n 'Start from a pre-built tour template instead of a blank canvas. Pick an onboarding, feature-announcement, or help template, then customise its steps — a fast way to ship a consistent walkthrough.',\n\n 'tourBuilder.purpose':\n 'Set up a tour: give it a name, choose where it appears (product, module, page) and how it triggers (manually, on first visit, or scheduled). Save it, then add the steps users will walk through.',\n 'tourBuilder.nextStepsTitle': 'Recommended next steps',\n 'tourBuilder.nextStepEditSteps': 'Add the steps',\n 'tourBuilder.nextStepEditStepsDesc': 'Define the tooltips and target elements users will see.',\n 'tourBuilder.nextStepPreview': 'Preview it',\n 'tourBuilder.nextStepPreviewDesc': 'Walk through the tour on mobile, tablet, and desktop.',\n 'tourBuilder.nextStepSchedule': 'Schedule activation',\n 'tourBuilder.nextStepScheduleDesc': 'Choose when this tour goes live and how often it recurs.',\n 'tourBuilder.nextStepAnalytics': 'Check analytics',\n 'tourBuilder.nextStepAnalyticsDesc': 'See views, completion, and drop-off once it is live.',\n\n 'stepEditor.purpose':\n 'Build the actual walkthrough. Each step is a tooltip anchored to a real UI element via a CSS or data-tour selector. Add steps, reorder them, attach media, and set placement so the tour guides users exactly where you intend.',\n 'stepEditor.emptyTitle': 'No step selected',\n\n 'tourPreview.purpose':\n 'Walk through this tour exactly as your users will, on simulated mobile, tablet, and desktop viewports. Validate that every step finds its target element before you publish.',\n} as const;\n\nexport type ToursTranslationKey = keyof typeof toursTranslationFallbacks;\n\ntype TranslationParams = Record<string, string | number>;\n\nexport function useToursI18n() {\n const i18n = useI18n();\n // The installed fe-libs typings still expose the older 2-argument shape, but the\n // runtime provider supports fallback strings. Narrow locally so this MFE can rely\n // on fallback-backed translations without changing the shared package here.\n const translateWithFallback = i18n.t as (key: string, fallback?: string) => string;\n\n const tr = useCallback(\n (key: ToursTranslationKey, params?: TranslationParams): string => {\n const resolved = translateWithFallback(key, toursTranslationFallbacks[key]);\n\n if (!params) {\n return resolved;\n }\n\n return Object.entries(params).reduce(\n (value, [paramKey, paramValue]) => value.replace(`{{${paramKey}}}`, String(paramValue)),\n resolved\n );\n },\n [translateWithFallback]\n );\n\n return {\n ...i18n,\n tr,\n };\n}\n\nexport function getToursTranslationFallback(key: ToursTranslationKey) {\n return toursTranslationFallbacks[key];\n}\n"],"mappings":";;;AAGA,IAAM,IAA4B;CAChC,2BAA2B;CAC3B,sBAAsB;CACtB,2BAA2B;CAC3B,yBAAyB;CACzB,sBAAsB;CACtB,iCAAiC;CACjC,8BAA8B;CAC9B,0BAA0B;CAC1B,qCAAqC;CACrC,2BAA2B;CAC3B,yBAAyB;CACzB,8BAA8B;CAC9B,iCAAiC;CACjC,sCAAsC;CACtC,uBAAuB;CACvB,qBAAqB;CACrB,gCAAgC;CAChC,6BAA6B;CAC7B,6BAA6B;CAC7B,yBAAyB;CACzB,iBAAiB;CACjB,uBAAuB;CACvB,4BAA4B;CAC5B,8BAA8B;CAC9B,8BAA8B;CAC9B,4BAA4B;CAC5B,6BAA6B;CAC7B,2BAA2B;CAC3B,2BAA2B;CAC3B,mBAAmB;CACnB,qBAAqB;CACrB,+BAA+B;CAC/B,yBAAyB;CACzB,oBAAoB;CACpB,yBAAyB;CACzB,yBAAyB;CACzB,wBAAwB;CACxB,mCAAmC;CACnC,6BAA6B;CAC7B,4BAA4B;CAC5B,+BAA+B;CAC/B,2BAA2B;CAC3B,wBAAwB;CACxB,uBAAuB;CACvB,iCAAiC;CACjC,iCAAiC;CACjC,kCAAkC;CAClC,+CAA+C;CAC/C,gCAAgC;CAChC,sCAAsC;CACtC,iCAAiC;CACjC,kCAAkC;CAClC,2BAA2B;CAC3B,oCAAoC;CACpC,8BAA8B;CAC9B,qCAAqC;CACrC,4BAA4B;CAC5B,yBAAyB;CACzB,yBAAyB;CACzB,+BAA+B;CAC/B,6BAA6B;CAC7B,iCAAiC;CACjC,yBAAyB;CACzB,iCAAiC;CACjC,yCAAyC;CACzC,yBAAyB;CACzB,0BAA0B;CAC1B,sBAAsB;CACtB,gCAAgC;CAChC,yBAAyB;CACzB,6BAA6B;CAC7B,8BAA8B;CAC9B,gCAAgC;CAChC,uBAAuB;CACvB,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mB;CAGnB,iBAAiB;CACjB,oBAAoB;CACpB,mBAAmB;CACnB,iBAAiB;CACjB,4BAA4B;CAC5B,6BAA6B;CAC7B,0BAA0B;CAC1B,6BAA6B;CAC7B,yBAAyB;CACzB,wBAAwB;CAExB,yBAAyB;CACzB,4BAA4B;CAC5B,2BAA2B;CAC3B,8BAA8B;CAC9B,6BAA6B;CAC7B,2BAA2B;CAC3B,mCAAmC;CACnC,kCAAkC;CAClC,gCAAgC;CAChC,yBAAyB;CACzB,8BAA8B;CAC9B,yBACE;CAGF,qBACE;CACF,mBACE;CACF,2BACE;CACF,2BACE;CAEF,uBACE;CACF,8BAA8B;CAC9B,iCAAiC;CACjC,qCAAqC;CACrC,+BAA+B;CAC/B,mCAAmC;CACnC,gCAAgC;CAChC,oCAAoC;CACpC,iCAAiC;CACjC,qCAAqC;CAErC,sBACE;CACF,yBAAyB;CAEzB,uBACE;CACH;AAMD,SAAgB,IAAe;CAC7B,IAAM,IAAO,GAAS,EAIhB,IAAwB,EAAK,GAE7B,IAAK,GACR,GAA0B,MAAuC;EAChE,IAAM,IAAW,EAAsB,GAAK,EAA0B,GAAK;AAM3E,SAJK,IAIE,OAAO,QAAQ,EAAO,CAAC,QAC3B,GAAO,CAAC,GAAU,OAAgB,EAAM,QAAQ,KAAK,EAAS,KAAK,OAAO,EAAW,CAAC,EACvF,EACD,GANQ;IAQX,CAAC,EAAsB,CACxB;AAED,QAAO;EACL,GAAG;EACH;EACD"}
1
+ {"version":3,"file":"i18n.js","names":[],"sources":["../../src/tours/i18n.ts"],"sourcesContent":["import { useCallback } from 'react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\n\nconst toursTranslationFallbacks = {\n 'stepEditor.addFirstStep': 'Add First Step',\n 'stepEditor.addStep': 'Add Step',\n 'stepEditor.clickAddStep': 'Click \"Add Step\" to create one',\n 'stepEditor.closeSteps': 'Close steps',\n 'stepEditor.content': 'Content',\n 'stepEditor.contentPlaceholder': 'Enter step content or instructions',\n 'stepEditor.createFirstStep': 'Create your first step to get started',\n 'stepEditor.cssSelector': 'CSS Selector',\n 'stepEditor.cssSelectorPlaceholder': \"[data-tour='element-name'] or #id or .class\",\n 'stepEditor.dataTourHint': \"Use data-tour attributes like [data-tour='sidenav'] for best results\",\n 'stepEditor.deleteStep': 'Delete step',\n 'stepEditor.desktopSelector': 'Desktop Selector',\n 'stepEditor.deviceSelectorHint': 'Override the default selector for specific device types',\n 'stepEditor.deviceSpecificSelectors': 'Device-Specific Selectors (Advanced)',\n 'stepEditor.editStep': 'Edit Step',\n 'stepEditor.goBack': 'Go back',\n 'stepEditor.leaveEmptyDefault': 'Leave empty to use default',\n 'stepEditor.mobileSelector': 'Mobile Selector',\n 'stepEditor.noStepSelected': 'No step selected',\n 'stepEditor.noStepsYet': 'No steps yet',\n 'stepEditor.of': 'of',\n 'stepEditor.nextStep': 'Next step',\n 'stepEditor.placementAuto': 'Auto (recommended)',\n 'stepEditor.placementBottom': 'Bottom',\n 'stepEditor.placementCenter': 'Center (modal style)',\n 'stepEditor.placementLeft': 'Left',\n 'stepEditor.placementRight': 'Right',\n 'stepEditor.placementTop': 'Top',\n 'stepEditor.previousStep': 'Previous step',\n 'stepEditor.save': 'Save',\n 'stepEditor.saving': 'Saving...',\n 'stepEditor.selectStepToEdit': 'Select a step from the list to edit it',\n 'stepEditor.stepNumber': 'Step',\n 'stepEditor.steps': 'Steps',\n 'stepEditor.stepsCount': 'steps',\n 'stepEditor.stepsLabel': 'Steps',\n 'stepEditor.stepTitle': 'Step Title',\n 'stepEditor.stepTitlePlaceholder': 'Enter step title',\n 'stepEditor.tabletSelector': 'Tablet Selector',\n 'stepEditor.targetElement': 'target element',\n 'stepEditor.tooltipPlacement': 'Tooltip Placement',\n 'stepEditor.tourFallback': 'Tour',\n 'stepEditor.tourSteps': 'Tour Steps',\n 'stepEditor.untitled': 'Untitled',\n\n // Step editor additions (BOFF-7116)\n 'stepEditor.moveStepUp': 'Move step up',\n 'stepEditor.moveStepDown': 'Move step down',\n 'stepEditor.requireInteraction': 'Require interaction',\n 'stepEditor.requireInteractionDescription':\n 'User must interact with the highlighted element before advancing.',\n 'stepEditor.waitForTimeout': 'Wait for timeout (ms)',\n 'stepEditor.advancedSettings': 'Advanced settings',\n 'stepEditor.advancedSettingsDescription':\n 'Step-timing waits, skip conditions, and analytics tags.',\n 'stepEditor.waitForSelector': 'Wait for selector',\n 'stepEditor.waitForEvent': 'Wait for event',\n 'stepEditor.skipConditions': 'Skip conditions (JSON)',\n 'stepEditor.stepMedia': 'Step media',\n 'stepEditor.noMediaAttached': 'No media attached to this step yet.',\n 'stepEditor.loadingMedia': 'Loading media...',\n 'stepEditor.selectUploadedMedia': 'Select uploaded media',\n 'stepEditor.positionHeader': 'Header',\n 'stepEditor.positionBody': 'Body',\n 'stepEditor.positionFooter': 'Footer',\n 'stepEditor.attach': 'Attach',\n 'stepEditor.saveBeforeAttach': 'Save your steps before attaching media to them.',\n 'stepEditor.newStep': 'New Step',\n 'stepEditor.copySuffix': '(Copy)',\n\n 'templateLibrary.adjustFilters': 'Try adjusting your filters or search query',\n 'templateLibrary.allCategories': 'All Categories',\n 'templateLibrary.categoryCustom': 'Custom',\n 'templateLibrary.categoryFeatureAnnouncement': 'Feature Announcement',\n 'templateLibrary.categoryHelp': 'Help',\n 'templateLibrary.categoryOnboarding': 'Onboarding',\n 'templateLibrary.deleteConfirm': 'Delete this template?',\n 'templateLibrary.deleteTemplate': 'Delete template',\n 'templateLibrary.loading': 'Loading templates...',\n 'templateLibrary.noTemplatesFound': 'No templates found',\n 'templateLibrary.publicOnly': 'Public only',\n 'templateLibrary.searchPlaceholder': 'Search templates...',\n 'templateLibrary.subtitle': 'Browse and use pre-built tour templates',\n 'templateLibrary.times': 'times',\n 'templateLibrary.title': 'Tour Templates',\n 'templateLibrary.useTemplate': 'Use Template',\n 'templateLibrary.usedTimes': 'Used',\n\n 'tourBuilder.accessDeniedTitle': 'Access Denied',\n 'tourBuilder.analytics': 'Analytics',\n 'tourBuilder.createAndAddSteps': 'Create & Add Steps',\n 'tourBuilder.createAccessDeniedMessage': 'You do not have permission to create tours.',\n 'tourBuilder.editSteps': 'Edit Steps',\n 'tourBuilder.errorTitle': 'Error',\n 'tourBuilder.goBack': 'Go back',\n 'tourBuilder.labelDescription': 'Description',\n 'tourBuilder.labelName': 'Tour Name *',\n 'tourBuilder.labelPriority': 'Priority (1-100)',\n 'tourBuilder.labelProductId': 'Product ID *',\n 'tourBuilder.labelTriggerType': 'Trigger Type',\n 'tourBuilder.loading': 'Loading...',\n 'tourBuilder.preview': 'Preview',\n 'tourBuilder.saving': 'Saving...',\n 'tourBuilder.sectionBasicInfo': 'Basic Information',\n 'tourBuilder.sectionTriggerSettings': 'Trigger Settings',\n\n 'tourBuilder.seedVibeControls.button': 'Seed VibeControls user tours',\n 'tourBuilder.seedVibeControls.confirm':\n 'This will overwrite the built-in Support, Notifications, and Conversations user tours from the service seed file. Continue?',\n 'tourBuilder.seedVibeControls.description':\n 'Overwrites the built-in Support, Notifications, and Conversations user tours from the service seed file.',\n 'tourBuilder.seedVibeControls.error': 'Failed to seed VibeControls user tours.',\n 'tourBuilder.seedVibeControls.loading': 'Seeding...',\n 'tourBuilder.seedVibeControls.permissionHint':\n 'Requires tour create and update permissions. The service also enforces RBAC when the seed mutation runs.',\n 'tourBuilder.seedVibeControls.result':\n 'Seeded {{totalCount}} tours for {{productId}} in workspace {{workspaceId}}: {{createdCount}} created, {{updatedCount}} updated.',\n 'tourBuilder.seedVibeControls.title': 'Seed VibeControls user tours',\n\n 'tourBuilder.seedBuildmyiq.button': 'Seed Buildmyiq user tours',\n 'tourBuilder.seedBuildmyiq.confirm':\n 'This will overwrite the built-in Buildmyiq dashboard user tour from the service seed file. Continue?',\n 'tourBuilder.seedBuildmyiq.description':\n 'Overwrites the built-in Buildmyiq dashboard user tour from the service seed file.',\n 'tourBuilder.seedBuildmyiq.error': 'Failed to seed Buildmyiq user tours.',\n 'tourBuilder.seedBuildmyiq.loading': 'Seeding...',\n 'tourBuilder.seedBuildmyiq.permissionHint':\n 'Requires tour create and update permissions. The service also enforces RBAC when the seed mutation runs.',\n 'tourBuilder.seedBuildmyiq.result':\n 'Seeded {{totalCount}} tours for {{productId}} in workspace {{workspaceId}}: {{createdCount}} created, {{updatedCount}} updated.',\n 'tourBuilder.seedBuildmyiq.title': 'Seed Buildmyiq user tours',\n\n 'tourBuilder.subtitle': 'Configure tour details and settings',\n 'tourBuilder.titleCreate': 'Create Tour',\n 'tourBuilder.titleEdit': 'Edit Tour',\n 'tourBuilder.triggerAutoAlways': 'Auto (Always)',\n 'tourBuilder.triggerAutoFirstVisit': 'Auto (First Visit)',\n 'tourBuilder.triggerManual': 'Manual',\n 'tourBuilder.triggerOnEvent': 'On Event',\n 'tourBuilder.triggerScheduled': 'Scheduled',\n 'tourBuilder.updateTour': 'Update Tour',\n 'tourBuilder.updateAccessDeniedMessage': 'You do not have permission to update this tour.',\n 'tourBuilder.validationErrorsTitle': 'Validation Errors',\n\n // Tour builder additions (BOFF-7116)\n 'tourBuilder.schedule': 'Schedule',\n 'tourBuilder.saveAsTemplate': 'Save as Template',\n 'tourBuilder.templateDefaultName': '{{name}} Template',\n 'tourBuilder.templateNamePrompt': 'Template name',\n 'tourBuilder.templateCategoryPrompt':\n 'Template category (ONBOARDING, FEATURE_ANNOUNCEMENT, HELP, CUSTOM)',\n 'tourBuilder.seedMutationErrors': 'Seed mutation returned errors.',\n 'tourBuilder.seedMutationNoResult': 'Seed mutation returned no result.',\n 'tourBuilder.selectProduct': 'Select product',\n 'tourBuilder.loadingProducts': 'Loading products…',\n 'tourBuilder.currentValue': 'Current: {{value}}',\n 'tourBuilder.customProductSlug': 'Custom product slug',\n 'tourBuilder.productSlugPlaceholder': 'vibecontrols',\n 'tourBuilder.labelModuleId': 'Module ID',\n 'tourBuilder.allModules': 'All modules',\n 'tourBuilder.customModuleId': 'Custom module ID',\n 'tourBuilder.moduleSlugPlaceholder': 'vibecontrols',\n 'tourBuilder.labelPageId': 'Page ID',\n 'tourBuilder.allPages': 'All pages',\n 'tourBuilder.customPageId': 'Custom page ID',\n 'tourBuilder.pageSlugPlaceholder': 'agents',\n 'tourBuilder.labelActive': 'Active',\n 'tourBuilder.labelStartDate': 'Start Date',\n 'tourBuilder.labelEndDate': 'End Date',\n 'tourBuilder.errorLoadTour': 'Failed to load tour',\n 'tourBuilder.errorCreateTour': 'Failed to create tour',\n 'tourBuilder.errorUpdateTour': 'Failed to update tour',\n 'tourBuilder.errorDeleteTour': 'Failed to delete tour',\n 'tourBuilder.errorSyncSteps': 'Failed to sync steps',\n 'tourBuilder.errorValidationFailed': 'Validation failed',\n 'tourBuilder.errorNoTourSelected': 'No tour selected',\n\n 'tourPreview.accessDeniedMessage': 'You do not have permission to preview this tour.',\n 'tourPreview.accessDeniedTitle': 'Access Denied',\n 'tourPreview.deviceDesktop': 'Desktop preview',\n 'tourPreview.deviceMobile': 'Mobile preview',\n 'tourPreview.deviceTablet': 'Tablet preview',\n 'tourPreview.finish': 'Finish',\n 'tourPreview.loading': 'Loading tour...',\n 'tourPreview.next': 'Next',\n 'tourPreview.nextFooter': 'Next',\n 'tourPreview.previewSuffix': 'Preview',\n 'tourPreview.previous': 'Previous',\n 'tourPreview.readyHint': 'Click \"Start Preview\" to begin',\n 'tourPreview.readyTitle': 'Preview ready',\n 'tourPreview.startPreview': 'Start Preview',\n 'tourPreview.stepOf': 'Step',\n 'tourPreview.stepOfConnector': 'of',\n 'tourPreview.stopPreview': 'Stop Preview',\n 'tourPreview.validationErrorsTitle': 'Validation Errors',\n 'tourPreview.warningsTitle': 'Warnings',\n\n // Tour preview validation additions (BOFF-7116)\n 'tourPreview.errorNoTour': 'No tour selected',\n 'tourPreview.errorNoSteps': 'Tour has no steps',\n 'tourPreview.errorStepNoSelector': 'Step {{number}} has no selector',\n 'tourPreview.warningStepEmptyContent': 'Step {{number}} has empty content',\n 'tourPreview.warningStepNoMobileSelector': 'Step {{number}} has no mobile selector',\n 'tourPreview.warningStepNoTabletSelector': 'Step {{number}} has no tablet selector',\n 'tourPreview.warningStepNoDesktopSelector': 'Step {{number}} has no desktop selector',\n 'tourPreview.errorStepMediaNoUrl': 'Step {{number}}, media {{mediaNumber}} has no URL',\n 'tourPreview.warningStepMediaMissingAlt':\n 'Step {{number}}, media {{mediaNumber}} missing alt text',\n\n 'toursList.accessDeniedMessage': 'You do not have permission to view product tours.',\n 'toursList.accessDeniedTitle': 'Access Denied',\n 'toursList.actionArchive': 'Archive',\n 'toursList.actionDelete': 'Delete',\n 'toursList.actionDuplicate': 'Duplicate',\n 'toursList.actionPublish': 'Publish',\n 'toursList.actionUnpublish': 'Unpublish',\n 'toursList.confirmDelete': 'Are you sure you want to delete this tour?',\n 'toursList.createTour': 'Create Tour',\n 'toursList.editStepsTitle': 'Edit Steps',\n 'toursList.emptySubtitle': 'Create your first tour to get started',\n 'toursList.emptyTitle': 'No tours found',\n 'toursList.errorArchive': 'Failed to archive tour',\n 'toursList.errorDelete': 'Failed to delete tour',\n 'toursList.errorDuplicate': 'Failed to duplicate tour',\n 'toursList.errorPublish': 'Failed to publish tour',\n 'toursList.errorUnpublish': 'Failed to unpublish tour',\n 'toursList.gridView': 'Grid view',\n 'toursList.listView': 'List view',\n 'toursList.loading': 'Loading tours...',\n 'toursList.moreActionsTitle': 'More actions',\n 'toursList.previewButton': 'Preview',\n 'toursList.previewTitle': 'Preview Tour',\n 'toursList.searchPlaceholder': 'Search tours...',\n 'toursList.settingsTitle': 'Settings',\n 'toursList.statusAll': 'All Statuses',\n 'toursList.statusArchived': 'Archived',\n 'toursList.statusDraft': 'Draft',\n 'toursList.statusPublished': 'Published',\n 'toursList.statusScheduled': 'Scheduled',\n 'toursList.steps': 'steps',\n 'toursList.stepsButton': 'Steps',\n 'toursList.subtitle': 'Create and manage interactive product tours',\n 'toursList.title': 'Product Tours',\n 'toursList.views': 'views',\n\n // User-facing surface (BOFF-2391: My Tours + My Progress).\n 'myTours.title': 'My Tours',\n 'myTours.subtitle': 'Walkthroughs available in this product. Take a tour to learn a feature.',\n 'myTours.loading': 'Loading...',\n 'myTours.empty': 'No tours are available in this context yet.',\n 'myTours.status.completed': 'Completed',\n 'myTours.status.inProgress': 'In progress',\n 'myTours.status.skipped': 'Skipped',\n 'myTours.status.notStarted': 'Not started',\n 'myTours.notFoundTitle': 'Page not found',\n 'myTours.notFoundBody': \"That tour page isn't available — returning to My Tours.\",\n\n 'myToursProgress.title': 'My Progress',\n 'myToursProgress.subtitle': 'Tours you have started, completed, or skipped.',\n 'myToursProgress.loading': 'Loading...',\n 'myToursProgress.inProgress': 'In progress',\n 'myToursProgress.completed': 'Completed',\n 'myToursProgress.skipped': 'Skipped or dismissed',\n 'myToursProgress.emptyInProgress': 'No tours in progress.',\n 'myToursProgress.emptyCompleted': 'No completed tours yet.',\n 'myToursProgress.emptySkipped': 'No skipped tours.',\n 'myToursProgress.other': 'Other',\n 'myToursProgress.emptyOther': 'No tours in other states.',\n 'myToursProgress.empty':\n \"You haven't started any tours yet. Open My Tours and take a walkthrough — your progress will show up here.\",\n\n // Page-purpose (\"what is this page for\") + next-step guidance copy.\n 'toursList.purpose':\n 'Author and manage the interactive product tours users see in-app — onboarding flows, feature spotlights, and help walkthroughs. Create a tour, add steps that point at real UI elements, then publish it so it appears for the right product, module, and page.',\n 'myTours.purpose':\n 'Browse the guided walkthroughs available right here in this product. Take a tour to learn a feature step by step — your progress is saved so you can pick up where you left off.',\n 'myToursProgress.purpose':\n 'Track every tour you have interacted with, grouped by status. See what you have completed, what is still in progress, and what you skipped so you know which walkthroughs are left to finish.',\n 'templateLibrary.purpose':\n 'Start from a pre-built tour template instead of a blank canvas. Pick an onboarding, feature-announcement, or help template, then customise its steps — a fast way to ship a consistent walkthrough.',\n\n 'tourBuilder.purpose':\n 'Set up a tour: give it a name, choose where it appears (product, module, page) and how it triggers (manually, on first visit, or scheduled). Save it, then add the steps users will walk through.',\n 'tourBuilder.nextStepsTitle': 'Recommended next steps',\n 'tourBuilder.nextStepEditSteps': 'Add the steps',\n 'tourBuilder.nextStepEditStepsDesc': 'Define the tooltips and target elements users will see.',\n 'tourBuilder.nextStepPreview': 'Preview it',\n 'tourBuilder.nextStepPreviewDesc': 'Walk through the tour on mobile, tablet, and desktop.',\n 'tourBuilder.nextStepSchedule': 'Schedule activation',\n 'tourBuilder.nextStepScheduleDesc': 'Choose when this tour goes live and how often it recurs.',\n 'tourBuilder.nextStepAnalytics': 'Check analytics',\n 'tourBuilder.nextStepAnalyticsDesc': 'See views, completion, and drop-off once it is live.',\n\n 'stepEditor.purpose':\n 'Build the actual walkthrough. Each step is a tooltip anchored to a real UI element via a CSS or data-tour selector. Add steps, reorder them, attach media, and set placement so the tour guides users exactly where you intend.',\n 'stepEditor.emptyTitle': 'No step selected',\n\n 'tourPreview.purpose':\n 'Walk through this tour exactly as your users will, on simulated mobile, tablet, and desktop viewports. Validate that every step finds its target element before you publish.',\n\n // Analytics dashboard (BOFF-7116)\n 'analyticsDashboard.accessDenied': 'Access Denied',\n 'analyticsDashboard.noPermission': 'You do not have permission to view tour analytics.',\n 'analyticsDashboard.loading': 'Loading analytics...',\n 'analyticsDashboard.noData': 'No analytics data available',\n 'analyticsDashboard.noDataHint':\n 'Analytics appear once this tour has been published and seen by users. Publish the tour and check back after it starts collecting views.',\n 'analyticsDashboard.title': 'Tour Analytics',\n 'analyticsDashboard.subtitle': 'Performance metrics and insights',\n 'analyticsDashboard.purpose':\n 'See how this specific tour is performing: how many people viewed it, how many finished versus skipped, and exactly which step they drop off on. Use the per-step drop-off to find and fix the weak point in your walkthrough.',\n 'analyticsDashboard.totalViews': 'Total Views',\n 'analyticsDashboard.completionRate': 'Completion Rate',\n 'analyticsDashboard.skipRate': 'Skip Rate',\n 'analyticsDashboard.avgDuration': 'Avg Duration',\n 'analyticsDashboard.deviceBreakdown': 'Device Breakdown',\n 'analyticsDashboard.stepPerformance': 'Step Performance',\n 'analyticsDashboard.tableStep': 'Step',\n 'analyticsDashboard.tableViews': 'Views',\n 'analyticsDashboard.tableCompletions': 'Completions',\n 'analyticsDashboard.tableDropOffRate': 'Drop-off Rate',\n 'analyticsDashboard.stepLabel': 'Step',\n\n // System analytics (BOFF-7116)\n 'systemAnalytics.accessDenied': 'Access Denied',\n 'systemAnalytics.noPermission': 'You do not have permission to view system analytics.',\n 'systemAnalytics.loading': 'Loading analytics...',\n 'systemAnalytics.noData': 'No analytics data available',\n 'systemAnalytics.noDataHint':\n 'Workspace-wide tour metrics appear once you have published tours and users have started seeing them. Publish a tour to begin collecting data.',\n 'systemAnalytics.title': 'System Analytics',\n 'systemAnalytics.subtitle': 'Workspace-wide tour performance overview',\n 'systemAnalytics.purpose':\n 'Get the big-picture health of onboarding across the whole workspace: how many tours exist, how many are live, total reach, and the overall completion rate. Use it to judge whether your guided experiences are actually landing.',\n 'systemAnalytics.completionRate': 'Completion Rate',\n 'systemAnalytics.completionRateHint':\n 'The share of started tours that users finished across this workspace.',\n 'systemAnalytics.totalTours': 'Total Tours',\n 'systemAnalytics.publishedTours': 'Published Tours',\n 'systemAnalytics.totalViews': 'Total Views',\n 'systemAnalytics.totalCompletions': 'Total Completions',\n\n // Tour scheduler (BOFF-7116)\n 'tourScheduler.goBack': 'Go back',\n 'tourScheduler.title': 'Schedule Tour',\n 'tourScheduler.subtitle': 'Configure when this tour should be activated',\n 'tourScheduler.purpose':\n 'Decide exactly when this tour goes live and how often it repeats — for example, run an onboarding tour every Monday, or activate a feature-announcement tour for a single launch window. Set a start (and optional end) date plus a recurrence pattern, and the tour will surface to users automatically on schedule.',\n 'tourScheduler.existingSchedules': 'Existing Schedules',\n 'tourScheduler.noEndDate': 'No end date',\n 'tourScheduler.oneTime': 'One-time',\n 'tourScheduler.active': 'Active',\n 'tourScheduler.inactive': 'Inactive',\n 'tourScheduler.runs': 'Runs',\n 'tourScheduler.sectionDateRange': 'Date Range',\n 'tourScheduler.labelStartDate': 'Start Date *',\n 'tourScheduler.labelEndDate': 'End Date (Optional)',\n 'tourScheduler.sectionRecurrence': 'Recurrence',\n 'tourScheduler.labelRecurrencePattern': 'Recurrence Pattern',\n 'tourScheduler.recurrenceDaily': 'Daily',\n 'tourScheduler.recurrenceWeekly': 'Weekly',\n 'tourScheduler.recurrenceMonthly': 'Monthly',\n 'tourScheduler.recurrenceCustom': 'Custom',\n 'tourScheduler.labelTimezone': 'Timezone',\n 'tourScheduler.statusActiveLabel': 'Active',\n 'tourScheduler.statusActiveDescription': 'Enable this schedule immediately after creation',\n 'tourScheduler.cancel': 'Cancel',\n 'tourScheduler.creating': 'Creating...',\n 'tourScheduler.createSchedule': 'Create Schedule',\n\n // Media library (BOFF-7116)\n 'mediaLibrary.title': 'Media Library',\n 'mediaLibrary.subtitle': 'Upload and manage media for tour steps',\n 'mediaLibrary.uploadMedia': 'Upload Media',\n 'mediaLibrary.purpose':\n 'Store and organise the images, videos, audio, and documents you attach to tour steps. Upload an asset here once, then reference it from any step — handy for product screenshots, short demo clips, or callout graphics that make a walkthrough clearer.',\n 'mediaLibrary.searchPlaceholder': 'Search media...',\n 'mediaLibrary.filterByType': 'Filter by media type',\n 'mediaLibrary.allTypes': 'All Types',\n 'mediaLibrary.typeImages': 'Images',\n 'mediaLibrary.typeVideos': 'Videos',\n 'mediaLibrary.typeAudio': 'Audio',\n 'mediaLibrary.typeDocuments': 'Documents',\n 'mediaLibrary.uploading': 'Uploading...',\n 'mediaLibrary.deleteConfirm': 'Delete this media?',\n 'mediaLibrary.delete': 'Delete',\n 'mediaLibrary.noMedia': 'No media files',\n 'mediaLibrary.uploadFirstMedia': 'Upload your first media file to get started',\n\n // Markdown editor (BOFF-7116)\n 'markdownEditor.bold': 'Bold',\n 'markdownEditor.italic': 'Italic',\n 'markdownEditor.link': 'Link',\n 'markdownEditor.inlineCode': 'Inline code',\n 'markdownEditor.bulletList': 'Bullet list',\n 'markdownEditor.linkTextPlaceholder': 'link text',\n 'markdownEditor.writeTab': 'Write',\n 'markdownEditor.previewTab': 'Preview',\n 'markdownEditor.nothingToPreview': 'Nothing to preview',\n 'markdownEditor.tabsAriaLabel': 'Markdown editor tabs',\n\n // Tours shell / nav (BOFF-7116)\n 'toursNav.allTours': 'All Tours',\n 'toursNav.createTour': 'Create Tour',\n 'toursNav.templates': 'Templates',\n 'toursNav.analytics': 'Analytics',\n 'toursNav.mediaLibrary': 'Media Library',\n\n 'toursShell.productToursReady': 'Product Tours Ready',\n 'toursShell.moduleError': 'Something went wrong loading this module. Please refresh the page.',\n\n // Route-level errors (BOFF-7116)\n 'routeErrors.failedToLoadPage': 'Failed to load page',\n 'routeErrors.chunkLoadRetry':\n 'The page chunk could not be loaded. This may be due to a network issue.',\n 'routeErrors.chunkLoadRefresh':\n 'The page chunk could not be loaded after multiple attempts. Please refresh the page.',\n 'routeErrors.tryAgain': 'Try Again',\n 'routeErrors.refreshPage': 'Refresh Page',\n\n // Feature disabled fallback (BOFF-7116)\n 'featureDisabled.title': 'Feature Not Available',\n 'featureDisabled.description':\n 'This feature is not currently enabled. Redirecting you to the tours list…',\n\n // User tours unavailable fallback (BOFF-7116)\n 'userTours.unavailable': 'Tours are not available for this workspace right now.',\n\n // Device type labels (BOFF-7116)\n 'deviceType.mobile': 'Mobile',\n 'deviceType.tablet': 'Tablet',\n 'deviceType.desktop': 'Desktop',\n\n // Common unit labels (BOFF-7116)\n 'common.fileSize.bytes': 'Bytes',\n 'common.fileSize.kb': 'KB',\n 'common.fileSize.mb': 'MB',\n 'common.fileSize.gb': 'GB',\n 'common.duration.seconds': 's',\n 'common.duration.minutes': 'm',\n 'common.duration.hours': 'h',\n\n // Validation messages returned by the store and rendered by the builder (BOFF-7116)\n 'validation.noTourSelected': 'No tour selected',\n 'validation.tourNameRequired': 'Tour name is required',\n 'validation.productIdRequired': 'Product ID is required',\n 'validation.stepsRequired': 'At least one step is required',\n 'validation.stepTitleRequired': 'Step {{number}} title is required',\n 'validation.stepContentRequired': 'Step {{number}} content is required',\n 'validation.stepSelectorRequired': 'Step {{number}} selector is required',\n\n // Tours list async error (BOFF-7116)\n 'toursList.errorFetch': 'Failed to fetch tours',\n\n // Analytics dashboard labels still needed after first pass (BOFF-7116)\n 'analyticsDashboard.deviceViews': 'views',\n} as const;\n\nexport type ToursTranslationKey = keyof typeof toursTranslationFallbacks;\n\ntype TranslationParams = Record<string, string | number>;\n\nexport function useToursI18n() {\n const i18n = useI18n();\n // The installed fe-libs typings still expose the older 2-argument shape, but the\n // runtime provider supports fallback strings. Narrow locally so this MFE can rely\n // on fallback-backed translations without changing the shared package here.\n const translateWithFallback = i18n.t as (key: string, fallback?: string) => string;\n\n const tr = useCallback(\n (\n key: ToursTranslationKey,\n fallbackOrParams?: string | TranslationParams,\n params?: TranslationParams\n ): string => {\n const fallbackString =\n typeof fallbackOrParams === 'string'\n ? fallbackOrParams\n : (toursTranslationFallbacks[key] as string | undefined);\n const interpolationParams = typeof fallbackOrParams === 'object' ? fallbackOrParams : params;\n\n const resolved = translateWithFallback(key, fallbackString);\n\n if (!interpolationParams) {\n return resolved;\n }\n\n return Object.entries(interpolationParams).reduce(\n (value, [paramKey, paramValue]) =>\n value.replace(new RegExp(`\\\\{\\\\{${paramKey}\\\\}\\\\}`, 'g'), String(paramValue)),\n resolved\n );\n },\n [translateWithFallback]\n );\n\n return {\n ...i18n,\n tr,\n };\n}\n\n/**\n * `useTr` — VibeControls-style translation hook with inline English fallback.\n *\n * Wraps the MFE's typed `useToursI18n()` so call sites can keep a readable\n * fallback string next to the key, matching the pattern used by\n * `microfe-vibecontrols/src/shared/hooks/useTr.ts`.\n *\n * @example\n * const tr = useTr();\n * return <h1>{tr('toursList.title', 'Product Tours')}</h1>;\n * return <p>{tr('toursList.selectedCount', '{{count}} tours selected', { count: 5 })}</p>;\n */\nexport function useTr(): (key: string, fallback: string, params?: TranslationParams) => string {\n const { tr } = useToursI18n();\n return useCallback(\n (key: string, fallback: string, params?: TranslationParams): string =>\n tr(key as ToursTranslationKey, fallback, params),\n [tr]\n );\n}\n\nexport function getToursTranslationFallback(key: ToursTranslation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