@burdenoff/microfe-tours 2026.608.1 → 2026.625.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,55 +9,56 @@ import { useEffect as s } from "react";
9
9
  import { AlertCircle as c, ArrowLeft as l, CheckCircle as u, ChevronLeft as d, ChevronRight as f, Monitor as p, Smartphone as m, Tablet as h, X as g } from "lucide-react";
10
10
  import { jsx as _, jsxs as v } from "react/jsx-runtime";
11
11
  import { useNavigate as y, useParams as b } from "react-router-dom";
12
+ import { Button as x, GlassCard as S } from "@burdenoff/fe-libs/ui";
12
13
  //#region src/tours/pages/TourPreviewPage.tsx
13
- function x() {
14
- let { tr: x } = i(), { tourId: S } = b(), C = y(), { basePath: w = "/" } = e(), { hasPermission: T } = n(), E = T(r.TOUR_READ), { tour: D, loadTour: O } = a(S), { devicePreview: k } = t(), { isPreviewActive: A, currentStepIndex: j, currentStep: M, totalSteps: N, canGoNext: P, canGoPrevious: F, validationResults: I, startPreview: L, stopPreview: R, nextStep: z, previousStep: B, changeDevice: V, validateForPreview: H } = o(D || void 0);
14
+ function C() {
15
+ let { tr: C } = i(), { tourId: w } = b(), T = y(), { basePath: E = "/" } = e(), { hasPermission: D } = n(), O = D(r.TOUR_READ), { tour: k, loadTour: A } = a(w), { devicePreview: j } = t(), { isPreviewActive: M, currentStepIndex: N, currentStep: P, totalSteps: F, canGoNext: I, canGoPrevious: L, validationResults: R, startPreview: z, stopPreview: B, nextStep: V, previousStep: H, changeDevice: U, validateForPreview: W } = o(k || void 0);
15
16
  if (s(() => {
16
- S && O(S);
17
- }, [S, O]), s(() => {
18
- D && H();
17
+ w && A(w);
18
+ }, [w, A]), s(() => {
19
+ k && W();
19
20
  }, [
20
- D,
21
21
  k,
22
- H
23
- ]), !E) return /* @__PURE__ */ _("div", {
24
- className: "flex items-center justify-center h-screen bg-muted",
22
+ j,
23
+ W
24
+ ]), !O) return /* @__PURE__ */ _("div", {
25
+ className: "flex items-center justify-center h-screen bg-bg-sunken",
25
26
  children: /* @__PURE__ */ v("div", {
26
27
  className: "text-center",
27
28
  children: [/* @__PURE__ */ _("h2", {
28
- className: "text-lg font-semibold text-foreground mb-2",
29
- children: x("tourPreview.accessDeniedTitle")
29
+ className: "text-lg font-semibold text-text-primary mb-2",
30
+ children: C("tourPreview.accessDeniedTitle")
30
31
  }), /* @__PURE__ */ _("p", {
31
- className: "text-sm text-muted-foreground",
32
- children: x("tourPreview.accessDeniedMessage")
32
+ className: "text-sm text-text-secondary",
33
+ children: C("tourPreview.accessDeniedMessage")
33
34
  })]
34
35
  })
35
36
  });
36
- if (!D) return /* @__PURE__ */ _("div", {
37
- className: "flex items-center justify-center h-screen bg-muted",
37
+ if (!k) return /* @__PURE__ */ _("div", {
38
+ className: "flex items-center justify-center h-screen bg-bg-sunken",
38
39
  children: /* @__PURE__ */ _("p", {
39
- className: "text-muted-foreground",
40
- children: x("tourPreview.loading")
40
+ className: "text-text-secondary",
41
+ children: C("tourPreview.loading")
41
42
  })
42
43
  });
43
- let U = () => {
44
- C(`${w}/${S}/edit`);
45
- }, W = {
44
+ let G = () => {
45
+ T(`${E}/${w}/edit`);
46
+ }, K = {
46
47
  mobile: /* @__PURE__ */ _(m, { size: 20 }),
47
48
  tablet: /* @__PURE__ */ _(h, { size: 20 }),
48
49
  desktop: /* @__PURE__ */ _(p, { size: 20 })
49
50
  };
50
51
  return /* @__PURE__ */ v("div", {
51
- className: "flex flex-col h-screen bg-muted",
52
+ className: "flex flex-col h-screen bg-bg-sunken",
52
53
  children: [
53
54
  /* @__PURE__ */ v("div", {
54
- className: "border-b border-border bg-background p-3 sm:p-4 flex flex-wrap items-center gap-3 sm:gap-4",
55
+ className: "border-b border-border-subtle bg-bg-surface p-3 sm:p-4 flex flex-wrap items-center gap-3 sm:gap-4",
55
56
  children: [
56
57
  /* @__PURE__ */ _("button", {
57
58
  type: "button",
58
- onClick: U,
59
+ onClick: G,
59
60
  className: "p-2 min-h-[44px] min-w-[44px] hover:bg-accent rounded-md",
60
- "aria-label": x("tourBuilder.goBack"),
61
+ "aria-label": C("tourBuilder.goBack"),
61
62
  children: /* @__PURE__ */ _(l, { size: 20 })
62
63
  }),
63
64
  /* @__PURE__ */ v("div", {
@@ -65,75 +66,76 @@ function x() {
65
66
  children: [/* @__PURE__ */ v("h1", {
66
67
  className: "text-base sm:text-lg font-semibold truncate",
67
68
  children: [
68
- D?.name,
69
+ k?.name,
69
70
  " - ",
70
- x("tourPreview.previewSuffix")
71
+ C("tourPreview.previewSuffix")
71
72
  ]
72
- }), A && /* @__PURE__ */ v("p", {
73
- className: "text-sm text-muted-foreground",
73
+ }), M && /* @__PURE__ */ v("p", {
74
+ className: "text-sm text-text-secondary",
74
75
  children: [
75
- x("tourPreview.stepOf"),
76
+ C("tourPreview.stepOf"),
76
77
  " ",
77
- j + 1,
78
+ N + 1,
78
79
  " ",
79
- x("tourPreview.stepOfConnector"),
80
+ C("tourPreview.stepOfConnector"),
80
81
  " ",
81
- N
82
+ F
82
83
  ]
83
84
  })]
84
85
  }),
85
86
  /* @__PURE__ */ _("div", {
86
- className: "flex gap-2 border border-border rounded-md overflow-hidden",
87
+ className: "flex gap-2 border border-border-subtle rounded-md overflow-hidden",
87
88
  children: [
88
89
  "mobile",
89
90
  "tablet",
90
91
  "desktop"
91
92
  ].map((e) => /* @__PURE__ */ _("button", {
92
93
  type: "button",
93
- onClick: () => V(e),
94
- className: `px-3 py-2 min-h-[44px] min-w-[44px] ${k === e ? "bg-primary text-primary-foreground" : "bg-background hover:bg-accent"}`,
95
- title: x(e === "mobile" ? "tourPreview.deviceMobile" : e === "tablet" ? "tourPreview.deviceTablet" : "tourPreview.deviceDesktop"),
96
- "aria-label": x(e === "mobile" ? "tourPreview.deviceMobile" : e === "tablet" ? "tourPreview.deviceTablet" : "tourPreview.deviceDesktop"),
97
- children: W[e]
94
+ onClick: () => U(e),
95
+ className: `px-3 py-2 min-h-[44px] min-w-[44px] ${j === e ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-surface hover:bg-accent"}`,
96
+ title: C(e === "mobile" ? "tourPreview.deviceMobile" : e === "tablet" ? "tourPreview.deviceTablet" : "tourPreview.deviceDesktop"),
97
+ "aria-label": C(e === "mobile" ? "tourPreview.deviceMobile" : e === "tablet" ? "tourPreview.deviceTablet" : "tourPreview.deviceDesktop"),
98
+ children: K[e]
98
99
  }, e))
99
100
  }),
100
- A ? /* @__PURE__ */ v("button", {
101
+ M ? /* @__PURE__ */ v(x, {
101
102
  type: "button",
102
- onClick: R,
103
- className: "px-4 py-2 min-h-[44px] border border-border rounded-md hover:bg-accent flex items-center gap-2",
104
- children: [/* @__PURE__ */ _(g, { size: 20 }), x("tourPreview.stopPreview")]
105
- }) : /* @__PURE__ */ _("button", {
103
+ variant: "outline",
104
+ onClick: B,
105
+ className: "min-h-[44px]",
106
+ children: [/* @__PURE__ */ _(g, { size: 20 }), C("tourPreview.stopPreview")]
107
+ }) : /* @__PURE__ */ _(x, {
106
108
  type: "button",
107
- onClick: L,
108
- disabled: !I?.valid,
109
- className: "px-4 py-2 min-h-[44px] bg-primary text-primary-foreground rounded-md hover:bg-primary/90 disabled:opacity-50",
110
- children: x("tourPreview.startPreview")
109
+ onClick: z,
110
+ disabled: !R?.valid,
111
+ className: "min-h-[44px]",
112
+ children: C("tourPreview.startPreview")
111
113
  })
112
114
  ]
113
115
  }),
114
- I && !I.valid && /* @__PURE__ */ _("div", {
115
- className: "bg-destructive/10 border-b border-destructive px-3 sm:px-6 py-3",
116
+ R && !R.valid && /* @__PURE__ */ _("div", {
117
+ className: "bg-status-error-bg/10 border-b border-status-error-border px-3 sm:px-6 py-3",
116
118
  children: /* @__PURE__ */ v("div", {
117
119
  className: "flex items-start gap-3",
118
120
  children: [/* @__PURE__ */ _(c, {
119
- className: "text-destructive flex-shrink-0 mt-0.5",
121
+ className: "text-status-error-text flex-shrink-0 mt-0.5",
120
122
  size: 20
121
123
  }), /* @__PURE__ */ v("div", {
122
124
  className: "flex-1",
123
125
  children: [/* @__PURE__ */ _("h3", {
124
- className: "font-semibold text-destructive mb-1",
125
- children: x("tourPreview.validationErrorsTitle")
126
+ className: "font-semibold text-status-error-text mb-1",
127
+ children: C("tourPreview.validationErrorsTitle")
126
128
  }), /* @__PURE__ */ _("ul", {
127
129
  className: "list-disc list-inside space-y-1",
128
- children: I.errors.map((e) => /* @__PURE__ */ _("li", {
129
- className: "text-sm text-destructive",
130
+ children: R.errors.map((e) => /* @__PURE__ */ _("li", {
131
+ className: "text-sm text-status-error-text",
130
132
  children: e
131
133
  }, e))
132
134
  })]
133
135
  })]
134
136
  })
135
137
  }),
136
- I && I.warnings.length > 0 && /* @__PURE__ */ _("div", {
138
+ R && R.warnings.length > 0 && /* @__PURE__ */ _("div", {
137
139
  className: "bg-warning/10 border-b border-warning px-3 sm:px-6 py-3",
138
140
  children: /* @__PURE__ */ v("div", {
139
141
  className: "flex items-start gap-3",
@@ -144,10 +146,10 @@ function x() {
144
146
  className: "flex-1",
145
147
  children: [/* @__PURE__ */ _("h3", {
146
148
  className: "font-semibold text-warning mb-1",
147
- children: x("tourPreview.warningsTitle")
149
+ children: C("tourPreview.warningsTitle")
148
150
  }), /* @__PURE__ */ _("ul", {
149
151
  className: "list-disc list-inside space-y-1",
150
- children: I.warnings.map((e) => /* @__PURE__ */ _("li", {
152
+ children: R.warnings.map((e) => /* @__PURE__ */ _("li", {
151
153
  className: "text-sm text-warning",
152
154
  children: e
153
155
  }, e))
@@ -158,41 +160,42 @@ function x() {
158
160
  /* @__PURE__ */ _("div", {
159
161
  className: "flex-1 flex items-center justify-center p-3 sm:p-6 overflow-auto",
160
162
  children: /* @__PURE__ */ _("div", {
161
- className: `bg-background border-2 rounded-lg shadow-xl overflow-hidden ${k === "mobile" ? "w-[min(375px,calc(100vw-1.5rem))] h-[667px] max-h-full" : k === "tablet" ? "w-[min(768px,calc(100vw-1.5rem))] h-[1024px] max-h-full" : "w-full max-w-[1920px] h-full max-h-[1080px]"}`,
162
- children: A && M ? /* @__PURE__ */ _("div", {
163
+ className: `bg-bg-surface border-2 rounded-lg shadow-xl overflow-hidden ${j === "mobile" ? "w-[min(375px,calc(100vw-1.5rem))] h-[667px] max-h-full" : j === "tablet" ? "w-[min(768px,calc(100vw-1.5rem))] h-[1024px] max-h-full" : "w-full max-w-[1920px] h-full max-h-[1080px]"}`,
164
+ children: M && P ? /* @__PURE__ */ _("div", {
163
165
  className: "h-full flex flex-col items-center justify-center p-4 sm:p-8",
164
- children: /* @__PURE__ */ v("div", {
165
- className: "max-w-md border border-border rounded-lg shadow-lg bg-card p-4 sm:p-6",
166
+ children: /* @__PURE__ */ v(S, {
167
+ treatment: "glass",
168
+ className: "max-w-md border-border-seam p-4 sm:p-6 shadow-[var(--shadow-pop)]",
166
169
  children: [
167
170
  /* @__PURE__ */ _("h3", {
168
171
  className: "text-lg font-semibold mb-3",
169
- children: M.title
172
+ children: P.title
170
173
  }),
171
174
  /* @__PURE__ */ _("p", {
172
- className: "text-sm text-muted-foreground mb-4 whitespace-pre-wrap",
173
- children: M.content
175
+ className: "text-sm text-text-secondary mb-4 whitespace-pre-wrap",
176
+ children: P.content
174
177
  }),
175
178
  /* @__PURE__ */ v("div", {
176
179
  className: "flex gap-2",
177
180
  children: [/* @__PURE__ */ _("button", {
178
181
  type: "button",
179
- onClick: B,
180
- disabled: !F,
181
- className: "px-3 py-2 min-h-[44px] min-w-[44px] border border-border rounded-md hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed",
182
- "aria-label": x("tourPreview.previous"),
182
+ onClick: H,
183
+ disabled: !L,
184
+ className: "px-3 py-2 min-h-[44px] min-w-[44px] border border-border-subtle rounded-md hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed",
185
+ "aria-label": C("tourPreview.previous"),
183
186
  children: /* @__PURE__ */ _(d, { size: 16 })
184
187
  }), /* @__PURE__ */ _("button", {
185
188
  type: "button",
186
- onClick: z,
187
- disabled: !P,
188
- className: "flex-1 px-3 py-2 min-h-[44px] bg-primary text-primary-foreground rounded-md hover:bg-primary/90 disabled:opacity-50 disabled:cursor-not-allowed",
189
- children: x(P ? "tourPreview.next" : "tourPreview.finish")
189
+ onClick: V,
190
+ disabled: !I,
191
+ className: "flex-1 px-3 py-2 min-h-[44px] bg-action-primary-bg text-action-primary-text rounded-md hover:bg-action-primary-bg/90 disabled:opacity-50 disabled:cursor-not-allowed",
192
+ children: C(I ? "tourPreview.next" : "tourPreview.finish")
190
193
  })]
191
194
  })
192
195
  ]
193
196
  })
194
197
  }) : /* @__PURE__ */ _("div", {
195
- className: "h-full flex items-center justify-center text-muted-foreground",
198
+ className: "h-full flex items-center justify-center text-text-secondary",
196
199
  children: /* @__PURE__ */ v("div", {
197
200
  className: "text-center",
198
201
  children: [
@@ -202,41 +205,41 @@ function x() {
202
205
  }),
203
206
  /* @__PURE__ */ _("p", {
204
207
  className: "mb-2",
205
- children: x("tourPreview.readyTitle")
208
+ children: C("tourPreview.readyTitle")
206
209
  }),
207
210
  /* @__PURE__ */ _("p", {
208
211
  className: "text-sm",
209
- children: x("tourPreview.readyHint")
212
+ children: C("tourPreview.readyHint")
210
213
  })
211
214
  ]
212
215
  })
213
216
  })
214
217
  })
215
218
  }),
216
- A && /* @__PURE__ */ v("div", {
217
- className: "border-t border-border bg-background p-3 sm:p-4 flex items-center justify-center gap-3 sm:gap-4",
219
+ M && /* @__PURE__ */ v("div", {
220
+ className: "border-t border-border-subtle bg-bg-surface p-3 sm:p-4 flex items-center justify-center gap-3 sm:gap-4",
218
221
  children: [
219
222
  /* @__PURE__ */ v("button", {
220
223
  type: "button",
221
- onClick: B,
222
- disabled: !F,
223
- className: "px-4 py-2 min-h-[44px] border border-border rounded-md hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2",
224
- children: [/* @__PURE__ */ _(d, { size: 20 }), x("tourPreview.previous")]
224
+ onClick: H,
225
+ disabled: !L,
226
+ className: "px-4 py-2 min-h-[44px] border border-border-subtle rounded-md hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2",
227
+ children: [/* @__PURE__ */ _(d, { size: 20 }), C("tourPreview.previous")]
225
228
  }),
226
229
  /* @__PURE__ */ v("div", {
227
- className: "text-sm text-muted-foreground",
230
+ className: "text-sm text-text-secondary",
228
231
  children: [
229
- j + 1,
232
+ N + 1,
230
233
  " / ",
231
- N
234
+ F
232
235
  ]
233
236
  }),
234
237
  /* @__PURE__ */ v("button", {
235
238
  type: "button",
236
- onClick: z,
237
- disabled: !P,
238
- className: "px-4 py-2 min-h-[44px] border border-border rounded-md hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2",
239
- children: [x("tourPreview.nextFooter"), /* @__PURE__ */ _(f, { size: 20 })]
239
+ onClick: V,
240
+ disabled: !I,
241
+ className: "px-4 py-2 min-h-[44px] border border-border-subtle rounded-md hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2",
242
+ children: [C("tourPreview.nextFooter"), /* @__PURE__ */ _(f, { size: 20 })]
240
243
  })
241
244
  ]
242
245
  })
@@ -244,6 +247,6 @@ function x() {
244
247
  });
245
248
  }
246
249
  //#endregion
247
- export { x as TourPreviewPage };
250
+ export { C as TourPreviewPage };
248
251
 
249
252
  //# sourceMappingURL=TourPreviewPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"TourPreviewPage.js","names":[],"sources":["../../../src/tours/pages/TourPreviewPage.tsx"],"sourcesContent":["import { useEffect } from 'react';\nimport { useParams, useNavigate } from 'react-router-dom';\nimport {\n ArrowLeft,\n ChevronLeft,\n ChevronRight,\n X,\n Smartphone,\n Tablet,\n Monitor,\n CheckCircle,\n AlertCircle,\n} from 'lucide-react';\nimport { useTourPreview } from '../hooks/useTourPreview';\nimport { useTourBuilder } from '../hooks/useTourBuilder';\nimport { useToursPermissionAccess } from '../hooks/useToursPermissionAccess';\nimport { useToursContext } from '../providers/ToursProvider';\nimport { useToursStore } from '../store/toursStore';\nimport { TOUR_PERMISSIONS } from '../../constants/permissions';\nimport { useToursI18n } from '../i18n';\n\n/**\n * Tour preview page\n * Preview tour with device simulation and validation\n */\nexport function TourPreviewPage() {\n const { tr } = useToursI18n();\n const { tourId } = useParams();\n const navigate = useNavigate();\n const { basePath = '/' } = useToursContext();\n const { hasPermission } = useToursPermissionAccess();\n const canReadTour = hasPermission(TOUR_PERMISSIONS.TOUR_READ);\n const { tour, loadTour } = useTourBuilder(tourId);\n const { devicePreview } = useToursStore();\n\n const {\n isPreviewActive,\n currentStepIndex,\n currentStep,\n totalSteps,\n canGoNext,\n canGoPrevious,\n validationResults,\n startPreview,\n stopPreview,\n nextStep,\n previousStep,\n changeDevice,\n validateForPreview,\n } = useTourPreview(tour || undefined);\n\n useEffect(() => {\n if (tourId) {\n loadTour(tourId);\n }\n }, [tourId, loadTour]);\n\n useEffect(() => {\n if (tour) {\n validateForPreview();\n }\n }, [tour, devicePreview, validateForPreview]);\n\n if (!canReadTour) {\n return (\n <div className=\"flex items-center justify-center h-screen bg-muted\">\n <div className=\"text-center\">\n <h2 className=\"text-lg font-semibold text-foreground mb-2\">\n {tr('tourPreview.accessDeniedTitle')}\n </h2>\n <p className=\"text-sm text-muted-foreground\">{tr('tourPreview.accessDeniedMessage')}</p>\n </div>\n </div>\n );\n }\n\n if (!tour) {\n return (\n <div className=\"flex items-center justify-center h-screen bg-muted\">\n <p className=\"text-muted-foreground\">{tr('tourPreview.loading')}</p>\n </div>\n );\n }\n\n const handleBack = () => {\n navigate(`${basePath}/${tourId}/edit`);\n };\n\n const deviceIcons = {\n mobile: <Smartphone size={20} />,\n tablet: <Tablet size={20} />,\n desktop: <Monitor size={20} />,\n };\n\n return (\n <div className=\"flex flex-col h-screen bg-muted\">\n {/* Header */}\n <div className=\"border-b border-border bg-background p-3 sm:p-4 flex flex-wrap items-center gap-3 sm:gap-4\">\n <button\n type=\"button\"\n onClick={handleBack}\n className=\"p-2 min-h-[44px] min-w-[44px] hover:bg-accent rounded-md\"\n aria-label={tr('tourBuilder.goBack')}\n >\n <ArrowLeft size={20} />\n </button>\n <div className=\"flex-1 min-w-[12rem]\">\n <h1 className=\"text-base sm:text-lg font-semibold truncate\">\n {tour?.name} - {tr('tourPreview.previewSuffix')}\n </h1>\n {isPreviewActive && (\n <p className=\"text-sm text-muted-foreground\">\n {tr('tourPreview.stepOf')} {currentStepIndex + 1} {tr('tourPreview.stepOfConnector')}{' '}\n {totalSteps}\n </p>\n )}\n </div>\n\n {/* Device Selector */}\n <div className=\"flex gap-2 border border-border rounded-md overflow-hidden\">\n {(['mobile', 'tablet', 'desktop'] as const).map((device) => (\n <button\n type=\"button\"\n key={device}\n onClick={() => changeDevice(device)}\n className={`px-3 py-2 min-h-[44px] min-w-[44px] ${\n devicePreview === device\n ? 'bg-primary text-primary-foreground'\n : 'bg-background hover:bg-accent'\n }`}\n title={\n device === 'mobile'\n ? tr('tourPreview.deviceMobile')\n : device === 'tablet'\n ? tr('tourPreview.deviceTablet')\n : tr('tourPreview.deviceDesktop')\n }\n aria-label={\n device === 'mobile'\n ? tr('tourPreview.deviceMobile')\n : device === 'tablet'\n ? tr('tourPreview.deviceTablet')\n : tr('tourPreview.deviceDesktop')\n }\n >\n {deviceIcons[device]}\n </button>\n ))}\n </div>\n\n {/* Preview Controls */}\n {!isPreviewActive ? (\n <button\n type=\"button\"\n onClick={startPreview}\n disabled={!validationResults?.valid}\n className=\"px-4 py-2 min-h-[44px] bg-primary text-primary-foreground rounded-md hover:bg-primary/90 disabled:opacity-50\"\n >\n {tr('tourPreview.startPreview')}\n </button>\n ) : (\n <button\n type=\"button\"\n onClick={stopPreview}\n className=\"px-4 py-2 min-h-[44px] border border-border rounded-md hover:bg-accent flex items-center gap-2\"\n >\n <X size={20} />\n {tr('tourPreview.stopPreview')}\n </button>\n )}\n </div>\n\n {/* Validation Results */}\n {validationResults && !validationResults.valid && (\n <div className=\"bg-destructive/10 border-b border-destructive px-3 sm:px-6 py-3\">\n <div className=\"flex items-start gap-3\">\n <AlertCircle className=\"text-destructive flex-shrink-0 mt-0.5\" size={20} />\n <div className=\"flex-1\">\n <h3 className=\"font-semibold text-destructive mb-1\">\n {tr('tourPreview.validationErrorsTitle')}\n </h3>\n <ul className=\"list-disc list-inside space-y-1\">\n {validationResults.errors.map((error) => (\n <li key={error} className=\"text-sm text-destructive\">\n {error}\n </li>\n ))}\n </ul>\n </div>\n </div>\n </div>\n )}\n\n {/* Warnings */}\n {validationResults && validationResults.warnings.length > 0 && (\n <div className=\"bg-warning/10 border-b border-warning px-3 sm:px-6 py-3\">\n <div className=\"flex items-start gap-3\">\n <AlertCircle className=\"text-warning flex-shrink-0 mt-0.5\" size={20} />\n <div className=\"flex-1\">\n <h3 className=\"font-semibold text-warning mb-1\">{tr('tourPreview.warningsTitle')}</h3>\n <ul className=\"list-disc list-inside space-y-1\">\n {validationResults.warnings.map((warning) => (\n <li key={warning} className=\"text-sm text-warning\">\n {warning}\n </li>\n ))}\n </ul>\n </div>\n </div>\n </div>\n )}\n\n {/* Preview Area */}\n <div className=\"flex-1 flex items-center justify-center p-3 sm:p-6 overflow-auto\">\n <div\n className={`bg-background border-2 rounded-lg shadow-xl overflow-hidden ${\n devicePreview === 'mobile'\n ? 'w-[min(375px,calc(100vw-1.5rem))] h-[667px] max-h-full'\n : devicePreview === 'tablet'\n ? 'w-[min(768px,calc(100vw-1.5rem))] h-[1024px] max-h-full'\n : 'w-full max-w-[1920px] h-full max-h-[1080px]'\n }`}\n >\n {isPreviewActive && currentStep ? (\n <div className=\"h-full flex flex-col items-center justify-center p-4 sm:p-8\">\n {/* Simulated Tour Tooltip */}\n <div className=\"max-w-md border border-border rounded-lg shadow-lg bg-card p-4 sm:p-6\">\n <h3 className=\"text-lg font-semibold mb-3\">{currentStep.title}</h3>\n <p className=\"text-sm text-muted-foreground mb-4 whitespace-pre-wrap\">\n {currentStep.content}\n </p>\n <div className=\"flex gap-2\">\n <button\n type=\"button\"\n onClick={previousStep}\n disabled={!canGoPrevious}\n className=\"px-3 py-2 min-h-[44px] min-w-[44px] border border-border rounded-md hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed\"\n aria-label={tr('tourPreview.previous')}\n >\n <ChevronLeft size={16} />\n </button>\n <button\n type=\"button\"\n onClick={nextStep}\n disabled={!canGoNext}\n className=\"flex-1 px-3 py-2 min-h-[44px] bg-primary text-primary-foreground rounded-md hover:bg-primary/90 disabled:opacity-50 disabled:cursor-not-allowed\"\n >\n {canGoNext ? tr('tourPreview.next') : tr('tourPreview.finish')}\n </button>\n </div>\n </div>\n </div>\n ) : (\n <div className=\"h-full flex items-center justify-center text-muted-foreground\">\n <div className=\"text-center\">\n <CheckCircle className=\"mx-auto mb-4\" size={48} />\n <p className=\"mb-2\">{tr('tourPreview.readyTitle')}</p>\n <p className=\"text-sm\">{tr('tourPreview.readyHint')}</p>\n </div>\n </div>\n )}\n </div>\n </div>\n\n {/* Footer Controls */}\n {isPreviewActive && (\n <div className=\"border-t border-border bg-background p-3 sm:p-4 flex items-center justify-center gap-3 sm:gap-4\">\n <button\n type=\"button\"\n onClick={previousStep}\n disabled={!canGoPrevious}\n className=\"px-4 py-2 min-h-[44px] border border-border rounded-md hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2\"\n >\n <ChevronLeft size={20} />\n {tr('tourPreview.previous')}\n </button>\n <div className=\"text-sm text-muted-foreground\">\n {currentStepIndex + 1} / {totalSteps}\n </div>\n <button\n type=\"button\"\n onClick={nextStep}\n disabled={!canGoNext}\n className=\"px-4 py-2 min-h-[44px] border border-border rounded-md hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2\"\n >\n {tr('tourPreview.nextFooter')}\n <ChevronRight size={20} />\n </button>\n </div>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAyBA,SAAgB,IAAkB;CAChC,IAAM,EAAE,UAAO,GAAc,EACvB,EAAE,cAAW,GAAW,EACxB,IAAW,GAAa,EACxB,EAAE,cAAW,QAAQ,GAAiB,EACtC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U;mBAAW,EAAG,wBAAwB;SAAK,CAAA;QACpD;;MACF,CAAA;KAEJ,CAAA;IACF,CAAA;GAGL,KACC,kBAAC,OAAD;IAAK,WAAU;cAAf;KACE,kBAAC,UAAD;MACE,MAAK;MACL,SAAS;MACT,UAAU,CAAC;MACX,WAAU;gBAJZ,CAME,kBAAC,GAAD,EAAa,MAAM,IAAM,CAAA,EACxB,EAAG,uBAAuB,CACpB;;KACT,kBAAC,OAAD;MAAK,WAAU;gBAAf;OACG,IAAmB;OAAE;OAAI;OACtB;;KACN,kBAAC,UAAD;MACE,MAAK;MACL,SAAS;MACT,UAAU,CAAC;MACX,WAAU;gBAJZ,CAMG,EAAG,yBAAyB,EAC7B,kBAAC,GAAD,EAAc,MAAM,IAAM,CAAA,CACnB;;KACL;;GAEJ"}
1
+ {"version":3,"file":"TourPreviewPage.js","names":[],"sources":["../../../src/tours/pages/TourPreviewPage.tsx"],"sourcesContent":["import { useEffect } from 'react';\nimport { useParams, useNavigate } from 'react-router-dom';\nimport {\n ArrowLeft,\n ChevronLeft,\n ChevronRight,\n X,\n Smartphone,\n Tablet,\n Monitor,\n CheckCircle,\n AlertCircle,\n} from 'lucide-react';\nimport { Button, GlassCard } from '@burdenoff/fe-libs/ui';\nimport { useTourPreview } from '../hooks/useTourPreview';\nimport { useTourBuilder } from '../hooks/useTourBuilder';\nimport { useToursPermissionAccess } from '../hooks/useToursPermissionAccess';\nimport { useToursContext } from '../providers/ToursProvider';\nimport { useToursStore } from '../store/toursStore';\nimport { TOUR_PERMISSIONS } from '../../constants/permissions';\nimport { useToursI18n } from '../i18n';\n\n/**\n * Tour preview page\n * Preview tour with device simulation and validation\n */\nexport function TourPreviewPage() {\n const { tr } = useToursI18n();\n const { tourId } = useParams();\n const navigate = useNavigate();\n const { basePath = '/' } = useToursContext();\n const { hasPermission } = useToursPermissionAccess();\n const canReadTour = hasPermission(TOUR_PERMISSIONS.TOUR_READ);\n const { tour, loadTour } = useTourBuilder(tourId);\n const { devicePreview } = useToursStore();\n\n const {\n isPreviewActive,\n currentStepIndex,\n currentStep,\n totalSteps,\n canGoNext,\n canGoPrevious,\n validationResults,\n startPreview,\n stopPreview,\n nextStep,\n previousStep,\n changeDevice,\n validateForPreview,\n } = useTourPreview(tour || undefined);\n\n useEffect(() => {\n if (tourId) {\n loadTour(tourId);\n }\n }, [tourId, loadTour]);\n\n useEffect(() => {\n if (tour) {\n validateForPreview();\n }\n }, [tour, devicePreview, validateForPreview]);\n\n if (!canReadTour) {\n return (\n <div className=\"flex items-center justify-center h-screen bg-bg-sunken\">\n <div className=\"text-center\">\n <h2 className=\"text-lg font-semibold text-text-primary mb-2\">\n {tr('tourPreview.accessDeniedTitle')}\n </h2>\n <p className=\"text-sm text-text-secondary\">{tr('tourPreview.accessDeniedMessage')}</p>\n </div>\n </div>\n );\n }\n\n if (!tour) {\n return (\n <div className=\"flex items-center justify-center h-screen bg-bg-sunken\">\n <p className=\"text-text-secondary\">{tr('tourPreview.loading')}</p>\n </div>\n );\n }\n\n const handleBack = () => {\n navigate(`${basePath}/${tourId}/edit`);\n };\n\n const deviceIcons = {\n mobile: <Smartphone size={20} />,\n tablet: <Tablet size={20} />,\n desktop: <Monitor size={20} />,\n };\n\n return (\n <div className=\"flex flex-col h-screen bg-bg-sunken\">\n {/* Header */}\n <div className=\"border-b border-border-subtle bg-bg-surface p-3 sm:p-4 flex flex-wrap items-center gap-3 sm:gap-4\">\n <button\n type=\"button\"\n onClick={handleBack}\n className=\"p-2 min-h-[44px] min-w-[44px] hover:bg-accent rounded-md\"\n aria-label={tr('tourBuilder.goBack')}\n >\n <ArrowLeft size={20} />\n </button>\n <div className=\"flex-1 min-w-[12rem]\">\n <h1 className=\"text-base sm:text-lg font-semibold truncate\">\n {tour?.name} - {tr('tourPreview.previewSuffix')}\n </h1>\n {isPreviewActive && (\n <p className=\"text-sm text-text-secondary\">\n {tr('tourPreview.stepOf')} {currentStepIndex + 1} {tr('tourPreview.stepOfConnector')}{' '}\n {totalSteps}\n </p>\n )}\n </div>\n\n {/* Device Selector */}\n <div className=\"flex gap-2 border border-border-subtle rounded-md overflow-hidden\">\n {(['mobile', 'tablet', 'desktop'] as const).map((device) => (\n <button\n type=\"button\"\n key={device}\n onClick={() => changeDevice(device)}\n className={`px-3 py-2 min-h-[44px] min-w-[44px] ${\n devicePreview === device\n ? 'bg-action-primary-bg text-action-primary-text'\n : 'bg-bg-surface hover:bg-accent'\n }`}\n title={\n device === 'mobile'\n ? tr('tourPreview.deviceMobile')\n : device === 'tablet'\n ? tr('tourPreview.deviceTablet')\n : tr('tourPreview.deviceDesktop')\n }\n aria-label={\n device === 'mobile'\n ? tr('tourPreview.deviceMobile')\n : device === 'tablet'\n ? tr('tourPreview.deviceTablet')\n : tr('tourPreview.deviceDesktop')\n }\n >\n {deviceIcons[device]}\n </button>\n ))}\n </div>\n\n {/* Preview Controls */}\n {!isPreviewActive ? (\n <Button\n type=\"button\"\n onClick={startPreview}\n disabled={!validationResults?.valid}\n className=\"min-h-[44px]\"\n >\n {tr('tourPreview.startPreview')}\n </Button>\n ) : (\n <Button\n type=\"button\"\n variant=\"outline\"\n onClick={stopPreview}\n className=\"min-h-[44px]\"\n >\n <X size={20} />\n {tr('tourPreview.stopPreview')}\n </Button>\n )}\n </div>\n\n {/* Validation Results */}\n {validationResults && !validationResults.valid && (\n <div className=\"bg-status-error-bg/10 border-b border-status-error-border px-3 sm:px-6 py-3\">\n <div className=\"flex items-start gap-3\">\n <AlertCircle className=\"text-status-error-text flex-shrink-0 mt-0.5\" size={20} />\n <div className=\"flex-1\">\n <h3 className=\"font-semibold text-status-error-text mb-1\">\n {tr('tourPreview.validationErrorsTitle')}\n </h3>\n <ul className=\"list-disc list-inside space-y-1\">\n {validationResults.errors.map((error) => (\n <li key={error} className=\"text-sm text-status-error-text\">\n {error}\n </li>\n ))}\n </ul>\n </div>\n </div>\n </div>\n )}\n\n {/* Warnings */}\n {validationResults && validationResults.warnings.length > 0 && (\n <div className=\"bg-warning/10 border-b border-warning px-3 sm:px-6 py-3\">\n <div className=\"flex items-start gap-3\">\n <AlertCircle className=\"text-warning flex-shrink-0 mt-0.5\" size={20} />\n <div className=\"flex-1\">\n <h3 className=\"font-semibold text-warning mb-1\">{tr('tourPreview.warningsTitle')}</h3>\n <ul className=\"list-disc list-inside space-y-1\">\n {validationResults.warnings.map((warning) => (\n <li key={warning} className=\"text-sm text-warning\">\n {warning}\n </li>\n ))}\n </ul>\n </div>\n </div>\n </div>\n )}\n\n {/* Preview Area */}\n <div className=\"flex-1 flex items-center justify-center p-3 sm:p-6 overflow-auto\">\n <div\n className={`bg-bg-surface border-2 rounded-lg shadow-xl overflow-hidden ${\n devicePreview === 'mobile'\n ? 'w-[min(375px,calc(100vw-1.5rem))] h-[667px] max-h-full'\n : devicePreview === 'tablet'\n ? 'w-[min(768px,calc(100vw-1.5rem))] h-[1024px] max-h-full'\n : 'w-full max-w-[1920px] h-full max-h-[1080px]'\n }`}\n >\n {isPreviewActive && currentStep ? (\n <div className=\"h-full flex flex-col items-center justify-center p-4 sm:p-8\">\n {/* Simulated Tour Tooltip */}\n <GlassCard\n treatment=\"glass\"\n className=\"max-w-md border-border-seam p-4 sm:p-6 shadow-[var(--shadow-pop)]\"\n >\n <h3 className=\"text-lg font-semibold mb-3\">{currentStep.title}</h3>\n <p className=\"text-sm text-text-secondary mb-4 whitespace-pre-wrap\">\n {currentStep.content}\n </p>\n <div className=\"flex gap-2\">\n <button\n type=\"button\"\n onClick={previousStep}\n disabled={!canGoPrevious}\n className=\"px-3 py-2 min-h-[44px] min-w-[44px] border border-border-subtle rounded-md hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed\"\n aria-label={tr('tourPreview.previous')}\n >\n <ChevronLeft size={16} />\n </button>\n <button\n type=\"button\"\n onClick={nextStep}\n disabled={!canGoNext}\n className=\"flex-1 px-3 py-2 min-h-[44px] bg-action-primary-bg text-action-primary-text rounded-md hover:bg-action-primary-bg/90 disabled:opacity-50 disabled:cursor-not-allowed\"\n >\n {canGoNext ? tr('tourPreview.next') : tr('tourPreview.finish')}\n </button>\n </div>\n </GlassCard>\n </div>\n ) : (\n <div className=\"h-full flex items-center justify-center text-text-secondary\">\n <div className=\"text-center\">\n <CheckCircle className=\"mx-auto mb-4\" size={48} />\n <p className=\"mb-2\">{tr('tourPreview.readyTitle')}</p>\n <p className=\"text-sm\">{tr('tourPreview.readyHint')}</p>\n </div>\n </div>\n )}\n </div>\n </div>\n\n {/* Footer Controls */}\n {isPreviewActive && (\n <div className=\"border-t border-border-subtle bg-bg-surface p-3 sm:p-4 flex items-center justify-center gap-3 sm:gap-4\">\n <button\n type=\"button\"\n onClick={previousStep}\n disabled={!canGoPrevious}\n className=\"px-4 py-2 min-h-[44px] border border-border-subtle rounded-md hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2\"\n >\n <ChevronLeft size={20} />\n {tr('tourPreview.previous')}\n </button>\n <div className=\"text-sm text-text-secondary\">\n {currentStepIndex + 1} / {totalSteps}\n </div>\n <button\n type=\"button\"\n onClick={nextStep}\n disabled={!canGoNext}\n className=\"px-4 py-2 min-h-[44px] border border-border-subtle rounded-md hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2\"\n >\n {tr('tourPreview.nextFooter')}\n <ChevronRight size={20} />\n </button>\n </div>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AA0BA,SAAgB,IAAkB;CAChC,IAAM,EAAE,UAAO,GAAc,EACvB,EAAE,cAAW,GAAW,EACxB,IAAW,GAAa,EACxB,EAAE,cAAW,QAAQ,GAAiB,EACtC,EAAE,qBAAkB,GAA0B,EAC9C,IAAc,EAAc,EAAiB,UAAU,EACvD,EAAE,SAAM,gBAAa,EAAe,EAAO,EAC3C,EAAE,qBAAkB,GAAe,EAEnC,EACJ,oBACA,qBACA,gBACA,eACA,cACA,kBACA,sBACA,iBACA,gBACA,aACA,iBACA,iBACA,0BACE,EAAe,KAAQ,KAAA,EAAU;AAc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