PageSourceSearch

https://www.threerivers.gov.uk/_next/static/chunks/1036.f4c75ee6b1427ab1.js

js threerivers.gov.uk collected 2026-10-02 05:30:20 UTC 8,735 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1036],{1036:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(25773),l=n(96535),o=n(27378),u=n(79894),a=n.n(u),i=n(23615),f=n.n(i),c=n(65234);let s="http://",d="https://",p="mailto:",h="tel:";var b=e=>RegExp("((([A-Za-z]{3,9}:(?:\\/\\/)?)(?:[\\-;:&=\\+\\$,\\w]+@)?[A-Za-z0-9\\.\\-]+|(?:www\\.|[\\-;:&=\\+\\$,\\w]+@)[A-Za-z0-9\\.\\-]+)((?:\\/[\\+~%\\/\\.\\w\\-_]*)?\\??(?:[\\-\\+=&;%@\\.\\w_]*)#?(?:[\\.\\!\\/\\\\\\w]*))?)").test(e),y=e=>!b(e)||e.includes(s)||e.includes(d)||e.includes(p)||e.includes(h)?e:"http://".concat(e),v=(e,t)=>{if(!e||!t)return!1;if(!b(t))return!0;let n=e.split(".").slice(-2).join(".");return t.includes(n)},_=e=>!!e&&(b(e)||e.startsWith(s)||e.startsWith(d)||e.startsWith(p)||e.startsWith(h)),g=n(14284);let m=e=>!!(g.env.BLAZE_RELATED_DOMAINS||"").split(",").find(t=>-1!==e.indexOf(t));var O=(e,t)=>!e||e.includes(p)||e.includes(h)||t||m(e)?void 0:"noopener nofollow";let C=e=>{if(!e)return"";if("string"==typeof e||"number"==typeof e)return"".concat(e);if(Array.isArray(e))return e.map(e=>"".concat(C(e))).filter(Boolean).join(" ");if(!e.props)return"";if(e.props.children)return"".concat(C(e.props.children));let{props:{altText:t,name:n,title:r,ariaLabel:l}}=e;return t||n||r||l||""};var E=e=>{let{ariaLabel:t,name:n,children:r,href:l}=e;if(t)return t;if(n)return n;if(r){let e=C(r);if(e)return e}return l?"/"===l?"Home":"Open ".concat(l):null};let T=["children","href","className","shallow","scroll","onClick","ariaLabel","name"],j=e=>{let{children:t,href:n,className:u,shallow:i,scroll:f,onClick:s,ariaLabel:d,name:p}=e,h=(0,l.Z)(e,T),{fullUrl:b}=(0,o.useContext)(c.Tr),{host:g}=b?new URL(b):{},m=y(n),C=v(g,n),j=E({ariaLabel:d,name:p,children:t,href:n});return _(n)?o.createElement("a",(0,r.Z)({"aria-label":j,href:m,rel:O(m,C),target:C?"":"_blank",className:u},h),t):o.createElement(a(),(0,r.Z)({href:"/Resolver",shallow:i,scroll:f,as:n,"aria-label":j,className:u,onClick:s},h),t)};j.propTypes={href:f().string.isRequired,children:f().oneOfType([f().arrayOf(f().node),f().node]),className:f().string,name:f().string,ariaLabel:f().string,shallow:f().bool,scroll:f().bool,onClick:f().func},j.defaultProps={children:null,className:null,ariaLabel:"",shallow:!1,scroll:null,onClick:null,name:""};var A=j},64223:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return n},ACTION_REFRESH:function(){return l},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return u},ACTION_SERVER_PATCH:function(){return a},ACTION_PREFETCH:function(){return i},ACTION_FAST_REFRESH:function(){return f},ACTION_SERVER_ACTION:function(){return c},isThenable:function(){return s}});let l="refresh",o="navigate",u="restore",a="server-patch",i="prefetch",f="fast-refresh",c="server-action";function s(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(r=n||(n={})).AUTO="auto",r.FULL="full",r.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43093:function(e,t,n){"use strict";function r(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return r}}),n(83147),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},31336:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return m}});let r=n(51538),l=n(24246),o=r._(n(27378)),u=n(58195),a=n(43839),i=n(90066),f=n(9921),c=n(93912),s=n(29242),d=n(20453),p=n(77457),h=n(43093),b=n(53311),y=n(64223),v=new Set;function _(e,t,n,r,l,o){if(o||(0,a.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){let l=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(v.has(l))return;v.add(l)}Promise.resolve(o?e.prefetch(t,l):e.prefetch(t,n,r)).catch(e=>{})}}function g(e){return"string"==typeof e?e:(0,i.formatUrl)(e)}let m=o.default.forwardRef(function(e,t){let n,r;let{href:i,as:v,children:m,prefetch:O=null,passHref:C,replace:E,shallow:T,scroll:j,locale:A,onClick:R,onMouseEnter:P,onTouchStart:k,legacyBehavior:M=!1,...w}=e;n=m,M&&("string"==typeof n||"number"==typeof n)&&(n=(0,l.jsx)("a",{children:n}));let L=o.default.useContext(s.RouterContext),I=o.default.useContext(d.AppRouterContext),N=null!=L?L:I,x=!L,S=!1!==O,U=null===O?y.PrefetchKind.AUTO:y.PrefetchKind.FULL,{href:Z,as:H}=o.default.useMemo(()=>
1{if(!L){let e=g(i);return{href:e,as:v?g(v):e}}let[e,t]=(0,u.resolveHref)(L,i,!0);return{href:e,as:v?(0,u.resolveHref)(L,v):t||e}},[L,i,v]),K=o.default.useRef(Z),D=o.default.useRef(H);M&&(r=o.default.Children.only(n));let F=M?r&&"object"==typeof r&&r.ref:t,[z,W,B]=(0,p.useIntersection)({rootMargin:"200px"}),V=o.default.useCallback(e=>{(D.current!==H||K.current!==Z)&&(B(),D.current=H,K.current=Z),z(e),F&&("function"==typeof F?F(e):"object"==typeof F&&(F.current=e))},[H,F,Z,B,z]);o.default.useEffect(()=>{N&&W&&S&&_(N,Z,H,{locale:A},{kind:U},x)},[H,Z,W,A,S,null==L?void 0:L.locale,N,x,U]);let q={ref:V,onClick(e){M||"function"!=typeof R||R(e),M&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),N&&!e.defaultPrevented&&function(e,t,n,r,l,u,i,f,c){let{nodeName:s}=e.currentTarget;if("A"===s.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!c&&!(0,a.isLocalURL)(n)))return;e.preventDefault();let d=()=>{let e=null==i||i;"beforePopState"in t?t[l?"replace":"push"](n,r,{shallow:u,locale:f,scroll:e}):t[l?"replace":"push"](r||n,{scroll:e})};c?o.default.startTransition(d):d()}(e,N,Z,H,E,T,j,A,x)},onMouseEnter(e){M||"function"!=typeof P||P(e),M&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),N&&(S||!x)&&_(N,Z,H,{locale:A,priority:!0,bypassPrefetchedCheck:!0},{kind:U},x)},onTouchStart(e){M||"function"!=typeof k||k(e),M&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),N&&(S||!x)&&_(N,Z,H,{locale:A,priority:!0,bypassPrefetchedCheck:!0},{kind:U},x)}};if((0,f.isAbsoluteUrl)(H))q.href=H;else if(!M||C||"a"===r.type&&!("href"in r.props)){let e=void 0!==A?A:null==L?void 0:L.locale,t=(null==L?void 0:L.isLocaleDomain)&&(0,h.getDomainLocale)(H,e,null==L?void 0:L.locales,null==L?void 0:L.domainLocales);q.href=t||(0,b.addBasePath)((0,c.addLocale)(H,e,null==L?void 0:L.defaultLocale))}return M?o.default.cloneElement(r,q):(0,l.jsx)("a",{...w,...q,children:n})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77457:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return i}});let r=n(27378),l=n(6717),o="function"==typeof IntersectionObserver,u=new Map,a=[];function i(e){let{rootRef:t,rootMargin:n,disabled:i}=e,f=i||!o,[c,s]=(0,r.useState)(!1),d=(0,r.useRef)(null),p=(0,r.useCallback)(e=>{d.current=e},[]);return(0,r.useEffect)(()=>{if(o){if(f||c)return;let e=d.current;if(e&&e.tagName)return function(e,t,n){let{id:r,observer:l,elements:o}=function(e){let t;let n={root:e.root||null,margin:e.rootMargin||""},r=a.find(e=>e.root===n.root&&e.margin===n.margin);if(r&&(t=u.get(r)))return t;let l=new Map;return t={id:n,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=l.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:l},a.push(n),u.set(n,t),t}(n);return o.set(e,t),l.observe(e),function(){if(o.delete(e),l.unobserve(e),0===o.size){l.disconnect(),u.delete(r);let e=a.findIndex(e=>e.root===r.root&&e.margin===r.margin);e>-1&&a.splice(e,1)}}}(e,e=>e&&s(e),{root:null==t?void 0:t.current,rootMargin:n})}else if(!c){let e=(0,l.requestIdleCallback)(()=>s(!0));return()=>(0,l.cancelIdleCallback)(e)}},[f,n,t,c,d.current]),[p,c,(0,r.useCallback)(()=>{s(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},79894:function(e,t,n){e.exports=n(31336)}}]);
2//# sourceMappingURL=1036.f4c75ee6b1427ab1.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.