PageSourceSearch

https://staff-509collective.lovable.app/assets/preload-helper-B7-v9gb0.js

js staff-509collective.lovable.app collected 2026-10-03 03:36:00 UTC 5,575 bytes, 1 lines download raw bytes

1import{r as e,t}from"./jsx-runtime-BkSabwWG.js";import{C as n,I as r,L as i,N as a,d as o,h as s,m as c,n as l,r as u,s as d,t as f}from"./link-BUtwDr6S.js";import{a as p}from"./createServerFn-D_9TGvoI.js";var m=`__root__`,h=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,r=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=m:this.parentRoute||n();let i=r?m:t?.path;i&&i!==`/`&&(i=c(i));let a=t?.id||i,l=r?m:o([this.parentRoute.id===`__root__`?``:this.parentRoute.id,a]);i===`__root__`&&(i=`/`),l!==`__root__`&&(l=o([`/`,l]));let u=l===`__root__`?`/`:o([this.parentRoute.fullPath,i]);this._path=i,this._id=l,this._fullPath=u,this._to=s(u)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>p({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},g=class extends h{constructor(e){super(e)}},_=e(i(),1),v=_.createContext(void 0),y=_.createContext(void 0),b={};function x(e,t){let n=_.useRef();return i=>{let a=e?.select?e.select(i):i;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=r(n.current,a):a}}function S(e){let t=u(),r=_.useContext(e.from?y:v),i=e.from??r,a=t.stores.getMatchStore(i),o=x(e,t),s=l(a,e=>e?o(e):b);if(s!==b)return s;(e.shouldThrow??!0)&&n()}function C(e){return S({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function w(e){let{select:t,...n}=e;return S({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function T(e){return S({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function E(e){return S({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function D(e){let t=u();return _.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function O(e){return S({...e,select:t=>e.select?e.select(t.context):t.context})}var k=t(),A=class extends h{constructor(e){super(e),this.useMatch=e=>S({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>O({...e,from:this.id}),this.useSearch=e=>E({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>T({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>w({...e,from:this.id}),this.useLoaderData=e=>C({...e,from:this.id}),this.useNavigate=()=>D({from:this.fullPath}),this.Link=_.forwardRef((e,t)=>(0,k.jsx)(f,{ref:t,from:this.fullPath,...e}))}};function j(e){return new A(e)}function M(){return e=>P(e)}var N=class extends g{constructor(e){super(e),this.useMatch=e=>S({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>O({...e,from:this.id}),this.useSearch=e=>E({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>T({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>w({...e,from:this.id}),this.useLoaderData=e=>C({...e,from:this.id}),this.useNavigate=()=>D({from:this.fullPath}),this.Link=_.forwardRef((e,t)=>(0,k.jsx)(f,{ref:t,from:this.fullPath,...e}))}};function P(e){return new N(e)}function F(e){return e=>{let t=j(e);return t.isRoot=!1,t}}function I(e,t){let n,r,i,o=()=>(n||=(i=void 0,e().then(e=>{n=void 0,s.preload=void 0,r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),s=function(e){if(i){if(a(i)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;
1if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r)if(d)d(o());else throw o();return _.createElement(r,e)};return s.preload=o,s}var L=`modulepreload`,R=function(e){return`/`+e},z={},B=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=R(t,n),t=s(t),t in z)return;z[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:L,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};export{D as a,M as i,I as n,v as o,F as r,m as s,B as t};

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.