Publish the prerendered static export (index.html, 404.html, cinema/,
c/, about/, for-cinemas/, for-film-lovers/, assets/, images/, og/,
sitemap.xml, robots.txt) as the site root and remove the React Router
+ Nitro source tree from this branch. Source remains available in
history at 0548772.
Note: public/sw.js here reports VERSION v2.0.5 while the removed source
tree (v2.1.0) was newer, and .gitignore was not carried over.
1 line
4.1 KiB
JavaScript
1 line
4.1 KiB
JavaScript
import{i as e,t}from"./react-B8IZ02wI.js";import{f as n,r}from"./api-path-DiLUeLL2.js";import{t as i}from"./client-BXMKfmWK.js";import{t as a}from"./react-dom-0ZK-Lw7i.js";import{H as o,I as s,M as c,W as l,i as u,r as d,y as f}from"./components-LggAOTeO.js";import{c as p,d as m,f as h,h as g,l as _,m as v,p as y,t as b,u as x}from"./components-BPFOGuol.js";import{t as S}from"./jsx-runtime-fBfwind-.js";function C({state:e,routes:t,getRouteInfo:n,location:r,basename:i,isSpaMode:a}){let o={...e,loaderData:{...e.loaderData}},c=s(t,r,i);if(c)for(let e of c){let t=e.route.id,r=n(t);h(t,r.clientLoader,r.hasLoader,a)&&(r.hasHydrateFallback||!r.hasLoader)?delete o.loaderData[t]:r.hasLoader||(o.loaderData[t]=null)}return o}var w=e(t(),1),T=e(a(),1);function E(e){return w.createElement(d,{flushSync:T.flushSync,...e})}var D=null,O=null;function k(){if(!D&&window.__reactRouterContext&&window.__reactRouterManifest&&window.__reactRouterRouteModules){if(window.__reactRouterManifest.sri===!0){let e=document.querySelector(`script[rr-importmap]`);if(e?.textContent)try{window.__reactRouterManifest.sri=JSON.parse(e.textContent).integrity}catch(e){console.error(`Failed to parse import map`,e)}}D={context:window.__reactRouterContext,manifest:window.__reactRouterManifest,routeModules:window.__reactRouterRouteModules,stateDecodingPromise:void 0,router:void 0,routerInitialized:!1}}}function A({getContext:e,instrumentations:t}){if(k(),!D)throw Error("You must be using the SSR features of React Router in order to skip passing a `router` prop to `<RouterProvider>`");let n=D;if(!D.stateDecodingPromise){let e=D.context.stream;l(e,`No stream found for single fetch decoding`),D.context.stream=void 0,D.stateDecodingPromise=v(e,window).then(e=>{D.context.state=e.value,n.stateDecodingPromise.value=!0}).catch(e=>{n.stateDecodingPromise.error=e})}if(D.stateDecodingPromise.error)throw D.stateDecodingPromise.error;if(!D.stateDecodingPromise.value)throw D.stateDecodingPromise;let r=x(D.manifest.routes,D.routeModules,D.context.state,D.context.ssr,D.context.isSpaMode),i;if(D.context.isSpaMode){let{loaderData:e}=D.context.state;D.manifest.routes.root?.hasLoader&&e&&`root`in e&&(i={loaderData:{root:e.root}})}else i=C({state:D.context.state,routes:r,getRouteInfo:e=>({clientLoader:D.routeModules[e]?.clientLoader,hasLoader:D.manifest.routes[e]?.hasLoader===!0,hasHydrateFallback:D.routeModules[e]?.HydrateFallback!=null}),location:window.location,basename:window.__reactRouterContext?.basename,isSpaMode:D.context.isSpaMode});window.history.state&&window.history.state.masked&&window.history.replaceState({...window.history.state,masked:void 0},``);let a=f({routes:r,history:o(),basename:D.context.basename,getContext:e,hydrationData:i,mapRouteProperties:c,hydrationRouteProperties:u,instrumentations:t,dataStrategy:g(()=>a,D.manifest,D.routeModules,D.context.ssr),patchRoutesOnNavigation:p(()=>a,D.manifest,D.routeModules,D.context.ssr,D.context.routeDiscovery,D.context.isSpaMode,D.context.basename)});return D.router=a,a.state.initialized&&(D.routerInitialized=!0,a.initialize()),a.createRoutesForHMR=m,window.__reactRouterDataRouter=a,a}function j(e){O||=A({getContext:e.getContext,instrumentations:e.instrumentations});let[t,n]=w.useState(void 0);w.useEffect(()=>{},[]),w.useEffect(()=>{},[t]);let[r,i]=w.useState(O.state.location);return w.useLayoutEffect(()=>{D&&D.router&&!D.routerInitialized&&(D.routerInitialized=!0,D.router.initialize())},[]),w.useLayoutEffect(()=>{if(D&&D.router)return D.router.subscribe(e=>{e.location!==r&&i(e.location)})},[r]),l(D,`ssrInfo unavailable for HydratedRouter`),_(O,D.manifest,D.routeModules,D.context.ssr,D.context.routeDiscovery,D.context.isSpaMode),w.createElement(w.Fragment,null,w.createElement(b.Provider,{value:{manifest:D.manifest,routeModules:D.routeModules,future:D.context.future,criticalCss:t,ssr:D.context.ssr,isSpaMode:D.context.isSpaMode,routeDiscovery:D.context.routeDiscovery}},w.createElement(y,{location:r},w.createElement(E,{router:O,useTransitions:e.useTransitions,onError:e.onError}))),w.createElement(w.Fragment,null))}var M=i(),N=S();n(),r(),(0,M.hydrateRoot)(document,(0,N.jsx)(j,{})); |