PageSourceSearch

https://go.avis.co.uk/_next/_v/2.9.2.s15.27.e1/_next/static/chunks…/%5Bhostname%5D/error-725ffe35f3c96605.js

js avis.co.uk collected 2026-10-01 13:05:49 UTC 3,090 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4093],{780:(e,r,t)=>{"use strict";t.d(r,{g:()=>i});let i=e=>e?.toLowerCase()??""},9408:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>o});var i=t(47388),a=t(61872),n=t(21093);function o({error:e,reset:r}){return(0,a.useEffect)(()=>{console.error("[page error boundary]",e)},[e]),(0,i.jsx)(n.x,{reset:r})}},21093:(e,r,t)=>{"use strict";t.d(r,{x:()=>l});var i=t(47388),a=t(61872),n=t(84396);let o={avis:{primary:"#D4002A"},budget:{primary:"#006BBF"},budgettruck:{primary:"#006BBF"}},s="error_no_iframe";function l({reset:e}){let[r,t]=(0,a.useState)("avis"),[u,d]=(0,a.useState)({phase:"loading"});if((0,a.useEffect)(()=>{let e;if(t((e=globalThis.location.hostname.toLowerCase()).includes("budgettruck")||e.includes("budget-truck")?"budgettruck":e.includes("budget")?"budget":"avis"),"author"===n.PV||"1"===new URLSearchParams(globalThis.location.search).get(s))return void d({phase:"static"});let r=new AbortController;return fetch("/api/aem-error-page",{signal:r.signal}).then(e=>e.ok?e.json():null).then(e=>(e?.ok&&e.url&&/^\/(?!\/)/.test(e.url)?d({phase:"iframe",url:e.url}):d({phase:"static"}),null)).catch(e=>{e instanceof DOMException&&"AbortError"===e.name||d({phase:"static"})}),()=>r.abort()},[]),"iframe"===u.phase){let e=u.url.includes("?")?"&":"?";return(0,i.jsx)("iframe",{title:"Error page",src:`${u.url}${e}${s}=1`,style:{border:"none",width:"100%",height:"100vh",display:"block"}})}if("loading"===u.phase)return(0,i.jsx)("div",{"aria-hidden":!0,style:{minHeight:"100vh"}});let c=o[r];return(0,i.jsxs)("div",{role:"alert",style:{minHeight:"60vh",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",padding:"2rem",fontFamily:'system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',color:"#0D0D0B"},children:[(0,i.jsx)("h1",{style:{fontSize:"1.75rem",margin:"0 0 0.75rem"},children:"Something went wrong"}),(0,i.jsx)("p",{style:{maxWidth:"36rem",margin:"0 0 1.75rem",color:"#524D4D"},children:"We're having trouble loading this page. Please try again in a moment."}),(0,i.jsxs)("div",{style:{display:"flex",gap:"0.75rem",flexWrap:"wrap"},children:[e&&(0,i.jsx)("button",{type:"button",onClick:()=>e(),style:{padding:"0.6rem 1.4rem",borderRadius:"4px",border:`1px solid ${c.primary}`,background:c.primary,color:"#fff",fontWeight:600,cursor:"pointer"},children:"Try again"}),(0,i.jsx)("a",{href:"/",style:{padding:"0.6rem 1.4rem",borderRadius:"4px",border:"1px solid #0D0D0B",color:"#0D0D0B",textDecoration:"none",fontWeight:600},children:"Go to homepage"})]})]})}},84396:(e,r,t)=>{"use strict";t.d(r,{Ht:()=>l,J2:()=>s,Lh:()=>o,PV:()=>u,q$:()=>d,sM:()=>c});var i=t(780),a=t(30880);let n=a.env.DEV_MODE,o="true"===(0,i.g)(n)&&"development"===(0,i.g)("production"),s=(0,i.g)(a.env.NEXT_PUBLIC_RUNENV??"local"),l="NEXT_PUBLIC_RUNMODE",u=(0,i.g)(a.env[l]??"publish"),d="author"===u,c=!d},95442:(e,r,t)=>{Promise.resolve().then(t.bind(t,9408))}},e=>{e.O(0,[5204,5162,7358],()=>e(e.s=95442)),_N_E=e.O()}]);
2//# sourceMappingURL=error-725ffe35f3c96605.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.