PageSourceSearch

https://floky.com/assets/lazyRouteComponent-B0bgAB0e.js

js floky.com collected 2026-10-07 16:55:09 UTC 4,132 bytes, 1 lines download raw bytes

1import{i as e,t}from"./jsx-runtime-DUAcabCT.js";import{t as n}from"./react-6OGjdfot.js";import{i as r,t as i}from"./invariant-CgFvOqN2.js";import{T as a,c as o,n as s,s as c,t as l,x as u}from"./link-DdTIhjth.js";import{n as d,r as f,t as p}from"./matchContext-DcmFOHbe.js";import{n as m,t as h}from"./useNavigate-B0AUrVOM.js";import{t as g}from"./useRouter-BgNLAmZd.js";import{t as _}from"./useSelector-YQTRP_6j.js";var v=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,this._branch=void 0;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=f:this.parentRoute||i();let r=n?f:t?.path;r&&r!==`/`&&(r=c(r));let a=t?.id||r,l=n?f:s((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(a??``));r===`__root__`&&(r=`/`);let u=l===`__root__`?`/`:r===void 0?this.parentRoute.fullPath:s(this.parentRoute.fullPath+`/`+r);this._path=r,this._id=l,this._fullPath=u,this._to=o(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=>r({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.`)}},y=class extends v{constructor(e){super(e)}},b=e(n(),1),x={};function S(e,t){let n=b.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=a(n.current,i):i}}function C(e){let t=g(),n=b.useContext(e.from?p:d),r=e.from??n,a=t.stores.getMatchStore(r),o=S(e,t),s=_(a,e=>e?o(e):x);if(s!==x)return s;(e.shouldThrow??!0)&&i()}function w(e){return C({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function T(e){let{select:t,...n}=e;return C({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function E(e){return C({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 D(e){return C({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function O(e){return C({...e,select:t=>e.select?e.select(t.context):t.context})}var k=t(),A=class extends v{constructor(e){super(e),this.useMatch=e=>C({...e,from:this.id}),this.useRouteContext=e=>O({...e,from:this.id}),this.useSearch=e=>D({...e,from:this.id}),this.useParams=e=>E({...e,from:this.id}),this.useLoaderDeps=e=>T({...e,from:this.id}),this.useLoaderData=e=>w({...e,from:this.id}),this.useNavigate=()=>h({from:this.fullPath}),this.Link=b.forwardRef((e,t)=>(0,k.jsx)(l,{ref:t,from:this.fullPath,...e}))}};function j(e){return new A(e)}function M(){return e=>P(e)}var N=class extends y{constructor(e){super(e),this.useMatch=e=>C({...e,from:this.id}),this.useRouteContext=e=>O({...e,from:this.id}),this.useSearch=e=>D({...e,from:this.id}),this.useParams=e=>E({...e,from:this.id}),this.useLoaderDeps=e=>T({...e,from:this.id}),this.useLoaderData=e=>w({...e,from:this.id}),this.useNavigate=()=>h({from:this.fullPath}),this.Link=b.forwardRef((e,t)=>(0,k.jsx)(l,{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,a=()=>(n||=(i=void 0,e().then(e=>{n=void 0,o.preload=void 0,r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),o=function(e){if(i){if(u(i)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r)if(m)m(a());else throw a();return b.createElement(r,e)};return o.preload=a,o}
1export{S as i,F as n,M as r,I 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.