PageSourceSearch

https://www.whiteknightpaints.com.au/assets/entry.client-Bpkk1cKH.js

js whiteknightpaints.com.au collected 2026-10-06 17:18:35 UTC 6,437 bytes, 5 lines download raw bytes

1import{m as x,s as E,E as R,N as g,R as s,i as v,r as i,e as y,f as S,F as _,g as D,h as M,k as b,l as C,n as P,o as F,p as k,q as L,t as H,v as I,x as T,j as h}from"./chunk-TMI4QPZX-GgWXBRS_.js";import{r as z}from"./index-CviFoYZK.js";import{c as O}from"./client-CdWE5fJs.js";import{l as N}from"./index-bL2hkj1p.js";[...g];function j({state:t,routes:o,getRouteInfo:n,location:a,basename:r,isSpaMode:l}){let u={...t,loaderData:{...t.loaderData}},c=x(o,a,r);if(c)for(let d of c){let m=d.route.id,f=n(m);E(m,f.clientLoader,f.hasLoader,l)&&(f.hasHydrateFallback||!f.hasLoader)?delete u.loaderData[m]:f.hasLoader||(u.loaderData[m]=null)}return u}(class extends s.Component{constructor(t){super(t),this.state={error:null,location:t.location}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,o){return o.location!==t.location?{error:null,location:t.location}:{error:o.error,location:o.location}}render(){return this.state.error?s.createElement(B,{error:this.state.error,renderAppShell:!0}):this.props.children}});function w({renderAppShell:t,title:o,children:n}){return t?s.createElement("html",{lang:"en"},s.createElement("head",null,s.createElement("meta",{charSet:"utf-8"}),s.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),s.createElement("title",null,o)),s.createElement("body",null,s.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},n))):n}function B({error:t,renderAppShell:o}){console.error(t);let n=s.createElement("script",{dangerouslySetInnerHTML:{__html:`
2        console.log(
3          "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."
4        );
5      `}});if(v(t))return s.createElement(w,{renderAppShell:o,title:"Unhandled Thrown Response!"},s.createElement("h1",{style:{fontSize:"24px"}},t.status," ",t.statusText),n);let a;if(t instanceof Error)a=t;else{let r=t==null?"Unknown Error":typeof t=="object"&&"toString"in t?t.toString():JSON.stringify(t);a=new Error(r)}return s.createElement(w,{renderAppShell:o,title:"Application Error!"},s.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),s.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},a.stack),n)}new TextEncoder;function U(t){if(!t)return null;let o=Object.entries(t),n={};for(let[a,r]of o)if(r&&r.__type==="RouteErrorResponse")n[a]=new R(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type==="Error"){if(r.__subType){let l=window[r.__subType];if(typeof l=="function")try{let u=new l(r.message);u.stack=r.stack,n[a]=u}catch{}}if(n[a]==null){let l=new Error(r.message);l.stack=r.stack,n[a]=l}}else n[a]=r;return n}function q(t){return i.createElement(M,{flushSync:z.flushSync,...t})}var e=null,p=null;function A(){if(!e&&window.__reactRouterContext&&window.__reactRouterManifest&&window.__reactRouterRouteModules){if(window.__reactRouterManifest.sri===!0){const t=document.querySelector("script[rr-importmap]");if(t!=null&&t.textContent)try{window.__reactRouterManifest.sri=JSON.parse(t.textContent).integrity}catch(o){console.error("Failed to parse import map",o)}}e={context:window.__reactRouterContext,manifest:window.__reactRouterManifest,routeModules:window.__reactRouterRouteModules,stateDecodingPromise:void 0,router:void 0,routerInitialized:!1}}}function W({getContext:t}){var l,u;if(A(),!e)throw new Error("You must be using the SSR features of React Router in order to skip passing a `router` prop to `<RouterProvider>`");let o=e;if(!e.stateDecodingPromise){let c=e.context.stream;y(c,"No stream found for single fetch decoding"),e.context.stream=void 0,e.stateDecodingPromise=b(c,window).then(d=>{e.context.state=d.value,o.stateDecodingPromise.value=!0}).catch(d=>{o.stateDecodingPromise.error=d})}if(e.stateDecodingPromise.error)throw e.stateDecodingPromise.error;if(!e.stateDecodingPromise.value)throw e.stateDecodingPromise;let n=C(e.manifest.routes,e.routeModules,e.context.state,e.context.ssr,e.context.
5isSpaMode),a;if(e.context.isSpaMode){let{loaderData:c}=e.context.state;(l=e.manifest.routes.root)!=null&&l.hasLoader&&c&&"root"in c&&(a={loaderData:{root:c.root}})}else a=j({state:e.context.state,routes:n,getRouteInfo:c=>{var d,m,f;return{clientLoader:(d=e.routeModules[c])==null?void 0:d.clientLoader,hasLoader:((m=e.manifest.routes[c])==null?void 0:m.hasLoader)===!0,hasHydrateFallback:((f=e.routeModules[c])==null?void 0:f.HydrateFallback)!=null}},location:window.location,basename:(u=window.__reactRouterContext)==null?void 0:u.basename,isSpaMode:e.context.isSpaMode}),a&&a.errors&&(a.errors=U(a.errors));let r=P({routes:n,history:L(),basename:e.context.basename,getContext:t,hydrationData:a,hydrationRouteProperties:T,mapRouteProperties:I,future:{middleware:e.context.future.v8_middleware},dataStrategy:k(()=>r,e.manifest,e.routeModules,e.context.ssr,e.context.basename),patchRoutesOnNavigation:F(e.manifest,e.routeModules,e.context.ssr,e.context.routeDiscovery,e.context.isSpaMode,e.context.basename)});return e.router=r,r.state.initialized&&(e.routerInitialized=!0,r.initialize()),r.createRoutesForHMR=H,window.__reactRouterDataRouter=r,r}function Y(t){p||(p=W({getContext:t.getContext}));let[o,n]=i.useState(void 0);i.useEffect(()=>{},[]),i.useEffect(()=>{},[o]);let[a,r]=i.useState(p.state.location);return i.useLayoutEffect(()=>{e&&e.router&&!e.routerInitialized&&(e.routerInitialized=!0,e.router.initialize())},[]),i.useLayoutEffect(()=>{if(e&&e.router)return e.router.subscribe(l=>{l.location!==a&&r(l.location)})},[a]),y(e,"ssrInfo unavailable for HydratedRouter"),S(p,e.manifest,e.routeModules,e.context.ssr,e.context.routeDiscovery,e.context.isSpaMode),i.createElement(i.Fragment,null,i.createElement(_.Provider,{value:{manifest:e.manifest,routeModules:e.routeModules,future:e.context.future,criticalCss:o,ssr:e.context.ssr,isSpaMode:e.context.isSpaMode,routeDiscovery:e.context.routeDiscovery}},i.createElement(D,{location:a},i.createElement(q,{router:p,unstable_onError:t.unstable_onError}))),i.createElement(i.Fragment,null))}window.location.origin.includes("webcache.googleusercontent.com")||i.startTransition(()=>{var o;const t=(o=document.querySelector("script[nonce]"))==null?void 0:o.nonce;O.hydrateRoot(document,h.jsx(i.StrictMode,{children:h.jsx(N,{value:t,children:h.jsx(Y,{})})}))});

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.