PageSourceSearch

https://partners.iloq.com/assets/Match-Dt1Obare.js

js iloq.com collected 2026-10-02 03:30:32 UTC 4,703 bytes, 2 lines download raw bytes

1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{t}from"./react-C21x__mS.js";import{t as n}from"./jsx-runtime-BdxMnOeJ.js";import{n as r}from"./root-CDpNo7ef.js";import{t as i}from"./ClientOnly-B-kcPeDU.js";import{t as a}from"./useRouter-BZFJt2Xp.js";import{n as o}from"./matchContext-1z8IHyl6.js";import{t as s}from"./useStore-BFEUOsWx.js";var c=e(t(),1),l=n(),u=class extends c.Component{constructor(...e){super(...e),this.state={error:null},this.reset=()=>{this.setState({error:null})}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onCatch?.(e,t)}render(){let e=this.state.error;return e?c.createElement(this.props.errorComponent??d,{error:e,reset:this.reset}):this.props.children}};function d({error:e}){let[t,n]=c.useState(!1);return(0,l.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,l.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,l.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,l.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,l.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,l.jsx)(`div`,{children:(0,l.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,l.jsx)(`code`,{children:e.message}):null})}):null]})}function f(e){let t=a(),n=`not-found-${s(t.stores.location,e=>e.pathname)}-${s(t.stores.status,e=>e)}`;return(0,l.jsx)(u,{getResetKey:()=>n,onCatch:(t,n)=>{if(r(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(r(t))return e.fallback?.(t);throw t},children:e.children})}function p(){return(0,l.jsx)(`p`,{children:`Not Found`})}function m(e){return(0,l.jsx)(l.Fragment,{children:e.children})}function h(e,t,n){return t.options.notFoundComponent?(0,l.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,l.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,l.jsx)(p,{})}function g(e,t){let n=t?.options.pendingComponent??e.options.defaultPendingComponent;return n?(0,l.jsx)(n,{}):null}var _=(e,t)=>
1e[0]===t[0]&&e[1]===t[1],v=(e,t,n)=>!t.isRoot||t.options.shellComponent||t.options.wrapInSuspense||n===!1||n===`data-only`||!e.ssr,y=c.memo(function({routeId:e}){let t=a();return(0,l.jsx)(b,{router:t,match:s(t.stores.getMatchStore(e),e=>e)})});function b({router:e,match:t}){let n=e.routesById[t.routeId],a=g(e,n),s=n.options.errorComponent??e.options.defaultErrorComponent,d=n.options.onCatch??e.options.defaultOnCatch,p=n.isRoot?n.options.notFoundComponent??e.options.notFoundRoute?.options.component:n.options.notFoundComponent,h=t.ssr===!1||t.ssr===`data-only`,_=v(e,n,t.ssr)&&(n.options.wrapInSuspense??a??(n.options.errorComponent?.preload||h))?c.Suspense:m,y=s?u:m,b=p?f:m;return(0,l.jsxs)(n.isRoot?n.options.shellComponent??m:m,{children:[(0,l.jsx)(o.Provider,{value:t.routeId,children:(0,l.jsx)(_,{fallback:a,children:(0,l.jsx)(y,{getResetKey:()=>t,errorComponent:s,onCatch:(e,n)=>{if(r(e))throw e.routeId??(e.routeId=t.routeId),e;d?.(e,n)},children:(0,l.jsx)(b,{fallback:e=>{if(e.routeId??(e.routeId=t.routeId),e.routeId!==t.routeId)throw e;return c.createElement(p,e)},children:h?(0,l.jsx)(i,{fallback:a,children:(0,l.jsx)(x,{match:t})}):(0,l.jsx)(x,{match:t})})})})}),null]})}var x=c.memo(function({match:e}){let t=a(),n=e.routeId,r=t.routesById[n],i=c.useMemo(()=>{let i=(r.options.remountDeps??t.options.defaultRemountDeps)?.({routeId:n,loaderDeps:e.loaderDeps,params:e._strictParams,search:e._strictSearch});return i?JSON.stringify(i):void 0},[n,e.loaderDeps,e._strictParams,e._strictSearch,r.options.remountDeps,t.options.defaultRemountDeps]),o=c.useMemo(()=>{let e=r.options.component??t.options.defaultComponent;return e?(0,l.jsx)(e,{},i):(0,l.jsx)(S,{})},[i,r.options.component,t.options.defaultComponent]);if(e.status===`pending`){if(t.ssr&&!v(t,r,e.ssr))return o;if(t._tx)throw t._tx[5];return g(t,r)}if(e.status===`notFound`)return h(t,r,e.error);if(e.status===`error`)throw e.error;return o}),S=c.memo(function(){let e=a(),t=c.useContext(o),n,r,i;{let a=e.stores.getMatchStore(t);[n,r]=s(a,e=>[!!e._notFound,e.error],_),i=s(e.stores.ids,e=>e[e.indexOf(t)+1])}if(n)return h(e,e.routesById[t],r);if(!i)return null;let u=(0,l.jsx)(y,{routeId:i});return t===`__root__`?(0,l.jsx)(c.Suspense,{fallback:g(e),children:u}):u});export{u as a,m as i,S as n,g as r,y as t};
2//# sourceMappingURL=Match-Dt1Obare.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.