PageSourceSearch

https://www.northgates.co.uk/_next/static/chunks/9967-4d2b4f50325fde46.js

js northgates.co.uk collected 2026-10-01 02:44:38 UTC 14,297 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9967],{15327:(e,t,n)=>{n.d(t,{C:()=>a});var i=n(63276),r=n(82150),o=n(83795),a=e=>{let{present:t,children:n}=e,a=function(e){var t,n;let[r,a]=i.useState(),u=i.useRef(null),s=i.useRef(e),d=i.useRef("none"),[c,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},i.useReducer((e,t)=>{let i=n[e][t];return null!=i?i:e},t));return i.useEffect(()=>{let e=l(u.current);d.current="mounted"===c?e:"none"},[c]),(0,o.N)(()=>{let t=u.current,n=s.current;if(n!==e){let i=d.current,r=l(t);e?f("MOUNT"):"none"===r||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&i!==r?f("ANIMATION_OUT"):f("UNMOUNT"),s.current=e}},[e,f]),(0,o.N)(()=>{if(r){var e;let t,n=null!=(e=r.ownerDocument.defaultView)?e:window,i=e=>{let i=l(u.current).includes(CSS.escape(e.animationName));if(e.target===r&&i&&(f("ANIMATION_END"),!s.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},o=e=>{e.target===r&&(d.current=l(u.current))};return r.addEventListener("animationstart",o),r.addEventListener("animationcancel",i),r.addEventListener("animationend",i),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",o),r.removeEventListener("animationcancel",i),r.removeEventListener("animationend",i)}}f("ANIMATION_END")},[r,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(e=>{u.current=e?getComputedStyle(e):null,a(e)},[])}}(t),u="function"==typeof n?n({present:a.isPresent}):i.Children.only(n),s=(0,r.s)(a.ref,function(e){var t,n;let i=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,r=i&&"isReactWarning"in i&&i.isReactWarning;return r?e.ref:(r=(i=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in i&&i.isReactWarning)?e.props.ref:e.props.ref||e.ref}(u));return"function"==typeof n||a.isPresent?i.cloneElement(u,{ref:s}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"},22686:(e,t,n)=>{n.d(t,{v:()=>a});var i=n(63276);let r=e=>{let t,n=new Set,i=(e,i)=>{let r="function"==typeof e?e(t):e;if(!Object.is(r,t)){let e=t;t=(null!=i?i:"object"!=typeof r||null===r)?r:Object.assign({},t,r),n.forEach(n=>n(t,e))}},r=()=>t,o={setState:i,getState:r,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e))},a=t=e(i,r,o);return o},o=e=>{let t=(e=>e?r(e):r)(e),n=e=>(function(e,t=e=>e){let n=i.useSyncExternalStore(e.subscribe,i.useCallback(()=>t(e.getState()),[e,t]),i.useCallback(()=>t(e.getInitialState()),[e,t]));return i.useDebugValue(n),n})(t,e);return Object.assign(n,t),n},a=e=>e?o(e):o},53853:(e,t,n)=>{n.d(t,{$H:()=>g});var i=n(63276);function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}var a={current:null};function l(e,t){("off"!==e||void 0!==window.LiveChatWidget)&&("function"==typeof t.onReady&&window.LiveChatWidget[e]("ready",t.onReady),"function"==typeof t.onAvailabilityChanged&&window.LiveChatWidget[e]("availability_changed",t.onAvailabilityChanged),"function"==typeof t.onVisibilityChanged&&window.LiveChatWidget[e]("visibility_changed",t.onVisibilityChanged),"function"==typeof t.onCustomerStatusChanged&&window.LiveChatWidget[e]("customer_status_changed",t.onCustomerStatusChanged),"function"==typeof t.onNewEvent&&window.LiveChatWidget[e]("new_event",t.onNewEvent),"function"==typeof t.onFormSubmitted&&window.LiveChatWidget[e]("form_submitted",t.onFormSubmitted),"function"==typeof t.onRatingSubmitted&&window.LiveChatWidget[e]("rating_submitted",t.onRatingSubmitted),"function"==typeof t.onGreetingDisplayed&&window.LiveChatWidget[e]("greeting_displayed",t.onGreetingDisplayed),"function"==typeof t.onGreetingHidden&&window.LiveChatWidget[e]("greeting_hidden",t.onGreetingHidden),"function"==typeof t.onRichMessageButtonClicked&&window.LiveChatWidget[e]("rich_message_button_clicked",t.onRichMessageButtonClicked))}function u(e){"string"==typeof e.name&&window.LiveChatWidget.call("set_customer_name",e.name),"string"==typeof e.email&&window.LiveChatWidget.call("set_customer_email",e.email)}function s(e){"hidden"===e&&window.LiveChatWidget.call("hide"),"maximized"===e&&window.LiveChatWidget.call("maximize"),"minimized"===e&&window.LiveChatWidget.call("minimize")}var d=(function(e){return{all:e=e||new Map,on:function(t,n){var i=e.get(t);i?i.push(n):e.set(t,[n])},off:function(t,n){var i=e.get(t);i&&(n?i.splice(i.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var i=e.get(t);i&&i.slice().map(function(e){e(n)}),(i=e.get("*"))&&i.slice().map(function(e){e(t,n)})}}})().emit.bind(null);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?c(Object(n),!0).forEach(function(t){var i,r,o;i=e,r=t,o=n[t],r in i?Object.defineProperty(i,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[r]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(e){var t=i.useRef(null);return i.useEffect(function(){var n,i;return n={isLoading:!1,desiredState:"unknown",currentEventHandlers:{onReady:e.onReady,onNewEvent:e.onNewEvent,onFormSubmitted:e.onFormSubmitted,onGreetingHidden:e.onGreetingHidden,onRatingSubmitted:e.onRatingSubmitted,onGreetingDisplayed:e.onGreetingDisplayed,onVisibilityChanged:e.onVisibilityChanged,onAvailabilityChanged:e.onAvailabilityChanged,onCustomerStatusChanged:e.onCustomerStatusChanged,onRichMessageButtonClicked:e.onRichMessageButtonClicked}},i=function(){var e,t=Array.prototype.slice;function n(e){return i._h?i._h.apply(null,e):i._q.push(e)}var i={_q:[],_h:null,_v:"2.0",on:function(){n(["on",t.call(arguments)])},once:function(){n(["once",t.call(arguments)])},off:function(){n(["off",t.call(arguments)])},get:function(){if(!i._h)throw Error("[LiveChatWidget] You can't use getters before load.");return n(["get",t.call(arguments)])},call:function(){n(["call",t.call(arguments)])},init:function(){var e=document.createElement("script");e.async=!0,e.type="text/javascript",e.src="https://cdn.livechatinc.com/tracking.js",document.head.appendChild(e),a.current=e}};return null==(e=a.current)||e.remove(),window.LiveChatWidget=window.LiveChatWidget||i,a}(),function(e){var t=e.license,n=e.group,i=e.chatBetweenGroups,r=e.sessionVariables,a=e.customIdentityProvider;if(window.__lc=window.__lc||{},"string"==typeof t)window.__lc.license=Number(t);else throw Error("[LiveChatWidget] The license property is required for initialization");void 0!==n&&(window.__lc.group=Number(n)),void 0!==i&&(window.__lc.chat_between_groups=!!i),r instanceof Object&&(window.__lc.params=Object.entries(r).map(function(e){var t=function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n,i,r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),o.length!==t);a=!0);}catch(e){l=!0,i=e}finally{try{a||null==r.return||r.return()}finally{if(l)throw i}}return o}}(e,2)||function(e,t){if(e){if("string"==typeof e)return o(e,2);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();return{name:t[0],value:t[1]}})),"function"==typeof a&&(window.__lc.custom_identity_provider=a)}(e),s(e.visibility),l("on",n.currentEventHandlers),u({name:e.customerName,email:e.customerEmail}),window.__lc.integration_name="@livechat/widget-core",t.current={init:function(){var e=this;n.desiredState="loaded",n.isLoading||(window.LC_API=window.LC_API||{},window.LC_API.on_after_load=function(){n.isLoading=!1,"destroyed"===n.desiredState&&e.destroy(),n.desiredState="unknown"},d("init"),n.isLoading=!0,window.LiveChatWidget.init())},destroy:function(){var e;n.desiredState="destroyed",n.isLoading||(d("destroy"),null==(e=i.current)||e.remove(),window.LiveChatWidget.call("destroy"))},updateVisibility:function(e){s(e)},updateEventHandlers:function(e){l("off",n.currentEventHandlers),l("on",e),n.currentEventHandlers=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){var i,r,o;i=e,r=t,o=n[t],r in i?Object.defineProperty(i,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[r]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e)},updateSessionVariables:function(e){e&&window.LiveChatWidget.call("update_session_variables",e)},hideGreeting:function(){window.LiveChatWidget.call("hide_greeting")},updateCustomerData:function(e){u(e)}},window.__lc.integration_name="@livechat/widget-react",t.current.init(),function(){var e;null==(e=t.current)||e.destroy()}},[e.license,e.group,e.chatBetweenGroups]),i.useEffect(function(){var n;null==(n=t.current)||n.updateVisibility(e.visibility)},[e.visibility]),i.useEffect(function(){var n;null==(n=t.current)||n.updateSessionVariables(e.sessionVariables)},[e.sessionVariables]),i.useEffect(function(){var n;null==(n=t.current)||n.updateCustomerData({name:e.customerName,email:e.customerEmail})},[e.customerName,e.customerEmail]),i.useEffect(function(){var n;null==(n=t.current)||n.updateEventHandlers(f(f(f(f(f(f(f(f(f(f({},e.onReady&&{onReady:e.onReady}),e.onNewEvent&&{onNewEvent:e.onNewEvent}),e.onFormSubmitted&&{onFormSubmitted:e.onFormSubmitted}),e.onGreetingHidden&&{onGreetingHidden:e.onGreetingHidden}),e.onRatingSubmitted&&{onRatingSubmitted:e.onRatingSubmitted}),e.onGreetingDisplayed&&{onGreetingDisplayed:e.onGreetingDisplayed}),e.onVisibilityChanged&&{onVisibilityChanged:e.onVisibilityChanged}),e.onAvailabilityChanged&&{onAvailabilityChanged:e.onAvailabilityChanged}),e.onCustomerStatusChanged&&{onCustomerStatusChanged:e.onCustomerStatusChanged}),e.onRichMessageButtonClicked&&{onRichMessageButtonClicked:e.onRichMessageButtonClicked}))},[e.onReady,e.onNewEvent,e.onFormSubmitted,e.onGreetingHidden,e.onRatingSubmitted,e.onGreetingDisplayed,e.onVisibilityChanged,e.onAvailabilityChanged,e.onCustomerStatusChanged,e.onRichMessageButtonClicked]),null}},54376:(e,t,n)=>{function i(e,t){let n;try{n=e()}catch(e){return}return{getItem:e=>{var i;let r=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),o=null!=(i=n.getItem(e))?i:null;return o instanceof Promise?o.then(r):r(o)},setItem:(e,i)=>n.setItem(e,JSON.stringify(i,null==t?void 0:t.replacer)),removeItem:e=>n.removeItem(e)}}n.d(t,{KU:()=>i,Zr:()=>o});let r=e=>t=>{try{let n=e(t);if(n instanceof Promise)return n;return{then:e=>r(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>r(t)(e)}}},o=(e,t)=>(n,o,a)=>{let l,u={storage:i(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>
1({...t,...e}),...t},s=!1,d=new Set,c=new Set,f=u.storage;if(!f)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${u.name}', the given storage is currently unavailable.`),n(...e)},o,a);let g=()=>{let e=u.partialize({...o()});return f.setItem(u.name,{state:e,version:u.version})},m=a.setState;a.setState=(e,t)=>(m(e,t),g());let v=e((...e)=>(n(...e),g()),o,a);a.getInitialState=()=>v;let y=()=>{var e,t;if(!f)return;s=!1,d.forEach(e=>{var t;return e(null!=(t=o())?t:v)});let i=(null==(t=u.onRehydrateStorage)?void 0:t.call(u,null!=(e=o())?e:v))||void 0;return r(f.getItem.bind(f))(u.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===u.version)return[!1,e.state];else{if(u.migrate){let t=u.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;let[i,r]=e;if(n(l=u.merge(r,null!=(t=o())?t:v),!0),i)return g()}).then(()=>{null==i||i(l,void 0),l=o(),s=!0,c.forEach(e=>e(l))}).catch(e=>{null==i||i(void 0,e)})};return a.persist={setOptions:e=>{u={...u,...e},e.storage&&(f=e.storage)},clearStorage:()=>{null==f||f.removeItem(u.name)},getOptions:()=>u,rehydrate:()=>y(),hasHydrated:()=>s,onHydrate:e=>(d.add(e),()=>{d.delete(e)}),onFinishHydration:e=>(c.add(e),()=>{c.delete(e)})},u.skipHydration||y(),l||v}},88253:(e,t,n)=>{n.d(t,{F:()=>o,cx:()=>r});let i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,r=function(){for(var e,t,n=0,i="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=function e(t){var n,i,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(i=e(t[n]))&&(r&&(r+=" "),r+=i)}else for(i in t)t[i]&&(r&&(r+=" "),r+=i);return r}(e))&&(i&&(i+=" "),i+=t);return i},o=(e,t)=>n=>{var o;if((null==t?void 0:t.variants)==null)return r(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:a,defaultVariants:l}=t,u=Object.keys(a).map(e=>{let t=null==n?void 0:n[e],r=null==l?void 0:l[e];if(null===t)return null;let o=i(t)||i(r);return a[e][o]}),s=n&&Object.entries(n).reduce((e,t)=>{let[n,i]=t;return void 0===i||(e[n]=i),e},{});return r(e,u,null==t||null==(o=t.compoundVariants)?void 0:o.reduce((e,t)=>{let{class:n,className:i,...r}=t;return Object.entries(r).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...l,...s}[t]):({...l,...s})[t]===n})?[...e,n,i]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}}}]);

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.