PageSourceSearch

https://www.logodesign.org/assets/route-DMzyNlv_.js

js logodesign.org collected 2026-09-25 03:54:51 UTC 4,769 bytes, 1 lines download raw bytes

1import{d as e,l as t,r as n,t as r}from"./useRouter-D-xeXV9i.js";import{F as i,b as a,c as o,d as s,f as c,n as l,t as u}from"./link-DD1QJLYs.js";import{a as d,r as f}from"./redirect-DCb_aIiF.js";import{n as p}from"./useNavigate-N747GNWJ.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,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=m:this.parentRoute||a();let r=n?m:t?.path;r&&r!==`/`&&(r=s(r));let i=t?.id||r,l=n?m:o([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),l!==`__root__`&&(l=o([`/`,l]));let u=l===`__root__`?`/`:o([this.parentRoute.fullPath,r]);this._path=r,this._id=l,this._fullPath=u,this._to=c(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=>f({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{constructor({id:e}){this.notFound=e=>d({routeId:this.id,...e}),this.redirect=e=>f({from:this.id,...e}),this.id=e}},_=class extends h{constructor(e){super(e)}},v=e(t(),1),y=v.createContext(void 0),b=v.createContext(void 0),x={get(){},subscribe(){return{unsubscribe(){}}}};function S(e,t){let n=v.useRef();return r=>{let a=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=i(n.current,a):a}}function C(e){let t=r(),n=v.useContext(e.from?b:y),i=e.from?t.stores.getRouteMatchStore(e.from):t.stores.matchStores.get(n),o=S(e,t),s=l(i??x,e=>e?o(e):x);if(s!==x)return s;(e.shouldThrow??!0)&&a()}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=n();function A(e){return new j({id:e})}var j=class extends g{constructor({id:e}){super({id:e}),this.useMatch=e=>C({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>O({...e,from:this.id}),this.useSearch=e=>D({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>E({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>T({...e,from:this.id,strict:!1}),this.useLoaderData=e=>w({...e,from:this.id,strict:!1}),this.useNavigate=()=>p({from:r().routesById[this.id].fullPath}),this.notFound=e=>d({routeId:this.id,...e}),this.Link=v.forwardRef((e,t)=>{let n=r().routesById[this.id].fullPath;return(0,k.jsx)(u,{ref:t,from:n,...e})})}},M=class extends h{constructor(e){super(e),this.useMatch=e=>C({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>O({...e,from:this.id}),this.useSearch=e=>D({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>E({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>T({...e,from:this.id}),this.useLoaderData=e=>w({...e,from:this.id}),this.useNavigate=()=>p({from:this.fullPath}),this.Link=v.forwardRef((e,t)=>(0,k.jsx)(u,{ref:t,from:this.fullPath,...e}))}};function N(e){return new M(e)}function P(){return e=>I(e)}var F=class extends _{constructor(e){super(e),this.useMatch=e=>C({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>O({...e,from:this.id}),this.useSearch=e=>D({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>E({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>T({...e,from:this.id}),this.useLoaderData=e=>w({...e,from:this.id}),this.useNavigate=()=>p({from:this.fullPath}),this.Link=v.forwardRef((e,t)=>
1(0,k.jsx)(u,{ref:t,from:this.fullPath,...e}))}};function I(e){return new F(e)}export{y as a,S as i,N as n,m as o,A as r,P 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.