1import{b6 as u,b7 as p,B as c,b8 as f,k as l,aE as m,a as s,b9 as h,r as w}from"./vendor-DrKskULD.js";import"./styles-BM4tQsNI.js";import{c as g}from"./errorResponses-DGwk-s6W.js";import{i as E}from"./isIgnoredRouteError-B5ilBSl3.js";import{a as b}from"./CustomRedirect.ssr-nPHp7aIA.js";import{g as y,M as S}from"./missingOrganizationUrl-BIs0Bqqu.js";import"./TopBanner-CLRCEKqr.js";import"./useLocalStorage-eSC8l4tj.js";import"./Error404.ssr-BsyM4efY.js";function R(e,{originalException:r}){if(r instanceof Error||!g(r))return e;const{status:t,title:a,detail:i}=r.errors[0]??{},o=e.exception?.values?.[0];return o&&(o.type="ApiError",o.value=`${t} ${a}${i?`: ${i}`:""}`),e.contexts={...e.contexts,api_error:r},e.tags={...e.tags,"api_error.status":t},e.fingerprint=["api-error",String(t),String(a),"{{ default }}"],e}u({dsn:"https://b25699fd23f49d7c48efb516ab7b9f4b@o4505404164276224.ingest.us.sentry.io/4512051210158080",enabled:["prototype","staging","production"].includes("production"),environment:"production",release:"92197793dc587f38ea32d9c9aa007e70a4e148dd",normalizeDepth:5,beforeSend:R,ignoreErrors:["Failed to fetch","NetworkError when attempting to fetch resource.","Load failed"]});const _="2020-06-16",A=(e,r)=>{E(e)||p(e,r)};function T(){typeof window>"u"||window.addEventListener("vite:preloadError",e=>{if(e.preventDefault(),b("vite-preload-retry",window.location.pathname)){console.warn("vite:preloadError, reloading:",e.payload.message),window.location.reload();return}c(new Error(`vite:preloadError persisted after reload: ${e.payload.message}`))})}function k(){return"churchcenter.com"}const L=`https://${k()}/setup`;T();f();l.setGlobalConfiguration({version:_});Object.assign(window,{sessionApiClient:l});const P=["/setup","/missing_organization"];async function x(){const e=await fetch("/web_boot_props",{credentials:"include"});if(e.status===404){window.location.pathname!=="/missing_organization"&&(window.location.href=S);return}else if(!e.ok)throw new Error(`Failed to fetch web boot props (${e.status} ${e.statusText})`);return await e.json()}function C(e){if(!e)return;const r=e.configuration?.csrfToken;if(!r)throw new Error("CSRF token not found in server rendered props");let t=document.querySelector('meta[name="csrf-token"]');return t||(t=document.createElement("meta"),t.setAttribute("name","csrf-token"),document.head.appendChild(t)),t.getAttribute("content")||t.setAttribute("content",r),e}function n(e){window.serverRenderedProps=e,m.hydrateRoot(document,s(w.StrictMode,{children:s(h,{onError:A})}))}function v(e){c(e,{tags:{errorBoundary:"handleError in entry.client.tsx"}}),console.error("Error booting the application:",e);const r=document.createElement("div");r.style.margin="4rem auto",r.style.maxWidth="600px",r.style.padding="1rem",r.innerHTML=` 2 <h1>Application Error</h1> 3 <p>There was an error loading Church Center. Please try again later.</p> 4 `;const t=document.getElementsByClassName("hydrate-fallback-loading")[0];t?t.replaceWith(r):document.body.appendChild(r)}function d(){const e=window.location.href;return!!y(e)}document.querySelector('meta[name="csrf-token"]')?n(window.serverRenderedProps):!d()&&P.includes(window.location.pathname)?n():d()?x().then(C).then(n).catch(v):window.location.href=L; 5//# sourceMappingURL=entry.client-rSUOMjKI.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.