1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"1.0.0"};var s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="6babee86-b35c-4abb-9b20-7563490c6899",e._sentryDebugIdIdentifier="sentry-dbid-6babee86-b35c-4abb-9b20-7563490c6899")}catch(t){}}();import{j as e,T as s}from"./index-CJ0eVksD.js";import{R as t,L as r}from"./vendor-react-Cg5IBgwO.js";import{u as i}from"./DashboardContext-CecwK-yo.js";import{V as o}from"./VenueWebsiteSite-B8nuUzgT.js";import{t as a}from"./websitePreviewHandoff--Z2zfnnP.js";import"./firebase-DvHzvjpo.js";import"./vendor-firebase-auth-Dw-tYyLh.js";import"./vendor-firebase-db-BWYKWqg8.js";import"./turnstileScript-Nso5-LFr.js";import"./helpers-DlcxdMGb.js";import"./cycleWindow-BHn3tM_i.js";import"./subDays-DeC4Dhpo.js";import"./en-US-DSTBSzO8.js";import"./format-Cqu3RLcn.js";import"./isWalkInSource-GMcf3upj.js";import"./notify-DLhs2xBD.js";import"./errorMessages-DM6_MVJz.js";import"./offlineActionPolicy-Djb7n2Z2.js";import"./postSignOutError-BXWQuBO0.js";import"./reportListenerDeath-Dlr7Syko.js";import"./apiClient--m1UJa-S.js";import"./publicBookingSource-CE6_PvFq.js";import"./eventService-Cq61G-nh.js";import"./useListenerRedial-Dy6lpSEx.js";import"./waitlist-BBTyHysC.js";import"./specialDateRules-BSvcUCYt.js";import"./staffTableJoining-D_MbVaX2.js";import"./userDocNameCache-7DB8l2eC.js";import"./bookingTypesModel-Dj3kT6QP.js";import"./noShowTableHold-Bu7QzwNJ.js";import"./waitlistRules-Bs9wu54o.js";import"./settingsService-DWNbfFyj.js";import"./timelineColourDefaults-DmyWhyHT.js";import"./staffService-Dn6Yer-g.js";import"./themeWriteRegister-CY0ImIDj.js";import"./scopedLocalStorage-C63pQoBG.js";import"./menuDealsModel-3su4us9K.js";import"./menuDietary-zYYOBkf9.js";import"./sha256Sync-21y9jCIc.js";import"./planService-RCjdxSEx.js";import"./themeSync-BN6IDfTv.js";import"./displayPhone-dI_5hh0A.js";import"./PoweredByFooter-DcF6Wfei.js";import"./proxy-B4lWT78e.js";import"./openTodayLabel-DKWJh21g.js";import"./whatsOnDisplay-q8WR5NBA.js";import"./parseISO-B25Dly6c.js";import"./dialog-BCSGQg7_.js";import"./utils-DruVD-uI.js";import"./button-Duwog9Kr.js";import"./index-C30fg99R.js";import"./useButton-Dv-sk77p.js";import"./useEscapeLayer-BYkrVTo8.js";import"./x-C3OBs_Zs.js";import"./composite-DSWmIJ4G.js";import"./useBaseUiId-D49M12hI.js";import"./useRole-BY-HprSY.js";import"./policyAssembly-BmcRAJjp.js";import"./partialRefundPolicy-mnu0SBYM.js";import"./customerRememberStore-OIlHQuFi.js";import"./useBodyScrollLock-DyGE1b4L.js";import"./websiteThemes-BLjoG5xc.js";import"./venueAccent-DMW231X_.js";import"./VenueBrandScope-BsXC4AXW.js";import"./websiteFonts--jmrFa6j.js";import"./websiteFrameContext-_QmhdDWK.js";import"./websiteConfig-JjcOJiNk.js";import"./star-B912nPW0.js";import"./PublicReviewBits-B5KqCue-.js";import"./websiteStatsService-DIo5TCnO.js";import"./analyticsDataService-DV3bdrcr.js";import"./DataProcessedLine-autMZBNp.js";import"./clock-2CKq179y.js";import"./shopping-bag-D7dx5y0S.js";import"./utensils-crossed-D_tdpygb.js";function m(){const{tenantId:m}=i(),[p,n]=t.useState(null),[l,d]=t.useState(!1),j=t.useRef(!1);return t.useEffect(()=>{m&&!j.current&&(j.current=!0,n(a(m)),d(!0))},[m]),l?p&&p.website?e.jsxs("div",{className:"min-h-dvh bg-white",children:[e.jsxs("div",{className:"sticky top-0 z-50 flex flex-wrap items-center justify-between gap-2 border-b border-amber-200 bg-amber-50 px-4 py-2 text-amber-900",children:[e.jsxs("p",{className:"text-xs font-semibold",children:["Preview â example content.",e.jsx("span",{className:"ml-1 font-normal",children:"Events, featured dishes, hours and live availability are examples here; your published site shows your real data."})]}),e.jsx(r,{to:"/dashboard/website",className:"rounded-dash-md border border-amber-300 bg-white px-2.5 py-1 text-xs font-bold text-amber-900 hover:bg-amber-100",children:"Back to editor"})]}),e.jsx("div",{className:"pointer-events-none","aria-hidden":"true",children:e.jsx(o,{slug:m||"",data:p,website:p.website})})]}):e.jsx("div",{className:"min-h-dvh flex items-center justify-center bg-slate-50 dark:bg-slate-900 p-6",children:e.jsxs("div",{className:"max-w-md text-center",children:[e.jsx(s,{size:28,className:"mx-auto mb-3 text-amber-500"}),e.jsx("h1",{className:"text-lg font-bold text-slate-900 dark:text-white",children:"This preview has expired"}
1),e.jsx("p",{className:"mt-2 text-sm text-slate-600 dark:text-slate-400",children:"A preview is a snapshot of your unsaved changes, so it can't be refreshed or bookmarked. Head back to your website editor and press Preview again."}),e.jsx(r,{to:"/dashboard/website",className:"mt-4 inline-flex rounded-dash-lg bg-primary px-4 py-2 text-sm font-bold text-white hover:brightness-95",children:"Back to my website"})]})}):null}export{m as WebsitePreviewPage,m as default}; 2//# sourceMappingURL=WebsitePreviewPage-DYXoDhAc.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.