PageSourceSearch

https://home.s.id/assets/lazyRouteComponent-Cvpc15Fr.js

js s.id collected 2026-09-24 07:35:41 UTC 3,361 bytes, 1 lines download raw bytes

1import{c as e,n as t,t as n}from"./jsx-runtime-CfjKz_hj.js";import{c as r,n as i,r as a,s as o,t as s,y as c}from"./useNavigate-CnLZGQoO.js";import{l,n as u,o as d,t as f,u as p}from"./link-fKg1js9o.js";import{t as m}from"./root-DLTE-HSj.js";var 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,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=m:this.parentRoute||r();let i=n?m:t?.path;i&&i!==`/`&&(i=l(i));let a=t?.id||i,o=n?m:d([this.parentRoute.id===`__root__`?``:this.parentRoute.id,a]);i===`__root__`&&(i=`/`),o!==`__root__`&&(o=d([`/`,o]));let s=o===`__root__`?`/`:d([this.parentRoute.fullPath,i]);this._path=i,this._id=o,this._fullPath=s,this._to=p(s)},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=>o({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)}};function _(e){return a({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function v(e){let{select:t,...n}=e;return a({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function y(e){return a({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function b(e){return a({...e,select:t=>e.select?e.select(t.context):t.context})}var x=e(t(),1),S=n(),C=class extends h{constructor(e){super(e),this.useMatch=e=>a({...e,from:this.id}),this.useRouteContext=e=>b({...e,from:this.id}),this.useSearch=e=>y({...e,from:this.id}),this.useParams=e=>i({...e,from:this.id}),this.useLoaderDeps=e=>v({...e,from:this.id}),this.useLoaderData=e=>_({...e,from:this.id}),this.useNavigate=()=>s({from:this.fullPath}),this.Link=x.forwardRef((e,t)=>(0,S.jsx)(f,{ref:t,from:this.fullPath,...e}))}};function w(e){return new C(e)}var T=class extends g{constructor(e){super(e),this.useMatch=e=>a({...e,from:this.id}),this.useRouteContext=e=>b({...e,from:this.id}),this.useSearch=e=>y({...e,from:this.id}),this.useParams=e=>i({...e,from:this.id}),this.useLoaderDeps=e=>v({...e,from:this.id}),this.useLoaderData=e=>_({...e,from:this.id}),this.useNavigate=()=>s({from:this.fullPath}),this.Link=x.forwardRef((e,t)=>(0,S.jsx)(f,{ref:t,from:this.fullPath,...e}))}};function E(e){return new T(e)}function D(e){return e=>{let t=w(e);return t.isRoot=!1,t}}function O(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(c(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(u)u(a());else throw a()}return x.createElement(r,e)};return o.preload=a,o}export{D as n,E as r,O 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.