PageSourceSearch

https://www.leasingoptions.co.uk/_next/static/chunks/4933-a0bd3cffba43d64f.js

js leasingoptions.co.uk collected 2026-10-03 23:39:30 UTC 1,736 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4933],{84933:(e,t,o)=>{o.d(t,{Mj:()=>a,W3:()=>l,l4:()=>i});var n=o(14232);function r(e,t){window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:t}))}function l(e){let t=n.useRef(null),o=n.useRef(e);return n.useLayoutEffect(()=>{o.current=e}),n.useEffect(()=>{let e=e=>{let n=t.current;n&&!n.contains(e.target)&&o.current(e)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e)}},[]),t}let s=(e,t)=>{let o=JSON.stringify(t);window.localStorage.setItem(e,o),r(e,o)},u=e=>(window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)),c=()=>{throw Error("useLocalStorage is a client-only hook")};function a(e,t){let o=n.useSyncExternalStore(u,()=>window.localStorage.getItem(e),c),l=n.useCallback(t=>{try{let n="function"==typeof t?t(JSON.parse(o)):t;if(null==n)window.localStorage.removeItem(e),r(e,null);else s(e,n)}catch(e){console.warn(e)}},[e,o]);return n.useEffect(()=>{null===window.localStorage.getItem(e)&&void 0!==t&&s(e,t)},[e,t]),[o?JSON.parse(o):t,l]}function i(){let[e,t]=n.useState({x:null,y:null}),o=n.useCallback((...e)=>{if("object"==typeof e[0])window.scrollTo(e[0]);else if("number"==typeof e[0]&&"number"==typeof e[1])window.scrollTo(e[0],e[1]);else throw Error("Invalid arguments passed to scrollTo. See here for more info. https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollTo")},[]);return n.useLayoutEffect(()=>{let e=()=>{t({x:window.scrollX,y:window.scrollY})};return e(),window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),[e,o]}}}]);

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.