PageSourceSearch

https://www.patonandco.com/_next/static/chunks/82905-a8806e7799ffe4e8.js

js patonandco.com collected 2026-10-05 10:58:41 UTC 8,039 bytes, 2 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="34b6c780-0c4a-47a4-a8d9-edc5884ce747",e._sentryDebugIdIdentifier="sentry-dbid-34b6c780-0c4a-47a4-a8d9-edc5884ce747")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[82905],{16385:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(12115);function a(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];(0,n.useEffect)(()=>{let t=document.querySelector("body");t&&(e&&(t.style.overflow="hidden"),e||(t.style.overflow="unset"))},[e])}},20600:(e,t,l)=>{l.d(t,{A:()=>r});var n=l(12115),a=l(57008);function r(){let{globalConfig:e}=(0,n.useContext)(a.A);return e}},20833:(e,t,l)=>{l.d(t,{A:()=>u});var n=l(12115),a=l(59948);let r=new Intl.DateTimeFormat("en",{weekday:"long",month:"short",day:"numeric"});function u(e){let{name:t,setValue:l,trigger:u,customDateFormatter:s}=e,i=(0,n.useRef)(null),o=(0,n.useRef)(null),[d,c]=(0,n.useState)(!1),[f,h]=(0,n.useState)(null);(0,a.A)([o,i],()=>c(!1));let m=new Date;m.setDate(m.getDate()+1),m.setHours(0,0,0,0);let[p,g]=(0,n.useState)(new Date(m.getFullYear(),m.getMonth(),1)),[v,y]=(0,n.useState)({top:0,left:0,width:0});(0,n.useEffect)(()=>{let e=()=>{if(d&&o.current){let e=o.current.getBoundingClientRect(),t=Math.max(e.width,288);y({top:e.bottom+window.scrollY+4,left:e.left+window.scrollX,width:t})}};return e(),d&&window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[d]);let w=p.getFullYear(),b=p.getMonth(),S=(new Date(w,b,1).getDay()+6)%7,C=new Date(w,b+1,0).getDate(),I=7*Math.ceil((S+C)/7);return{portalRef:i,inputRef:o,selectedDate:f,selectorShown:d,setSelectorShown:c,currentMonth:p,setCurrentMonth:g,dropdownPosition:v,isSameDate:(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),offset:S,totalDays:C,tomorrow:m,year:w,month:b,dayLabels:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],totalCells:I,handleSelectDate:e=>{let n=new Date(e);n.setHours(0,0,0,0);let a=s?s.format(n):r.format(n);l&&t&&l(t,a),u&&t&&u(t),h(n),c(!1)}}}},20858:(e,t,l)=>{l.d(t,{bN:()=>a,oV:()=>r,v9:()=>n});let n={style:"currency",currency:"GBP",maximumFractionDigits:0},a=["article-list","staff","staff-list","area-guide-list"],r={tel:"link-tel",mail:"link-mail"}},38424:(e,t,l)=>{l.d(t,{A:()=>s});var n=l(95155),a=l(53613);l(12115);var r=l(43935),u=l(2077);function s(e){let{editMode:t,SectionElement:l,section:s,baseClassName:i,SectionElementWrapper:o,itemIdChain:d=[],elementIdChain:c,style:f}=e,h=(0,u.Zl)(s,d,c);return h?(0,n.jsxs)(n.Fragment,{children:[t&&!h.elements?.length&&(0,n.jsx)(r.default,{section:s,itemIdChain:d,elementIdChain:c}),(0,n.jsx)(a.A,{className:"h-full",editMode:t,style:f,SectionElement:l,section:s,baseClassName:i,SectionElementWrapper:o,itemIdChain:d,elementIdChain:c})]}):null}},43120:(e,t,l)=>{l.d(t,{X:()=>u,A:()=>a});var n=l(12115);function a(e){let{price:t,interestRate:l="0",deposit:a=20,term:u=25}=e,[s,i]=(0,n.useState)(0),[o,d]=(0,n.useReducer)(r,{propertyValue:{value:t,error:""},deposit:{value:t*a/100,error:""},annualInterest:{value:l,error:""},repaymentTerm:{value:u,error:""}});(0,n.useEffect)(()=>{i(function(e){var t;if(Object.entries(t=e).some(e=>{let[l]=e;return!!t[l].error}))return 0;let{propertyValue:l,deposit:n,annualInterest:a,repaymentTerm:r}=e;if(!l.value||!n.value||!a.value||!r.value||l<n)return 0;let u=l.value-n.value;if(!u)return 0;let s=12*r.value;if(0==+a.value)return Math.round(u/s);let i=a.value/100/12,o=u*i/(1-(1+i)**(-1*s));return isNaN(o)?0:Math.round(o)}(o))},[o]);let c=(0,n.useCallback)((e,t)=>{let{value:l}=e.target,n=l?parseInt(l.replace(/\D/g,"")):0;if(!n)return d({type:t,payload:{value:0,error:"Enter a valid number value"}});d({type:t,payload:{value:n,error:""}})},[]),f=(0,n.useCallback)(e=>{let{value:t}=e.target;if(o.annualInterest.value===t)return;let l=t.replace(o.annualInterest.value,"");if(!("."===l&&o.annualInterest.value?.split(".")?.length>=2)&&!("."!==l&&isNaN(+l)))return d({type:"set_interest",payload:{value:isNaN(+t)?"0":t,error:isNaN(+t)?"Enter a valid number value":""}})}
1,[o]);return{mortgageState:o,onIntegerChange:c,onInterestChange:f,monthlyRepayments:s}}function r(e,t){switch(t.type){case"set_property_value":return{...e,propertyValue:{...e.propertyValue,...t.payload}};case"set_deposit":return{...e,deposit:{...e.deposit,...t.payload}};case"set_interest":return{...e,annualInterest:{...e.annualInterest,...t.payload}};case"set_term":return{...e,repaymentTerm:{...e.repaymentTerm,...t.payload}};default:return e}}var u=function(e){return e.SetPropertyValue="set_property_value",e.SetDeposit="set_deposit",e.SetInterest="set_interest",e.SetTerm="set_term",e.SetMonthlyRepayments="set_monthly_repayments",e}({})},43935:(e,t,l)=>{l.d(t,{default:()=>u});var n=l(95155),a=l(67909),r=l(12115);function u(e){let{section:t,itemIdChain:u,elementIdChain:s}=e,i=(0,r.useMemo)(()=>(0,a.default)(()=>Promise.all([l.e(48215),l.e(80109),l.e(8420)]).then(l.bind(l,8420)),{loadableGenerated:{webpack:()=>[8420]},loading:()=>(0,n.jsx)("div",{className:"absolute top-0 left-0 w-full h-full animate-pulse bg-slate-200"})}),[]);return(0,n.jsx)(i,{section:t,itemIdChain:u,elementIdChain:s})}},46347:(e,t,l)=>{l.r(t),l.d(t,{default:()=>o});var n=l(95155),a=l(20063),r=l(12115),u=l(99992),s=l(36228),i=l(16385);function o(e){let{children:t,className:l,closeClassName:o,closeInner:d,disableScrollOnOpen:c,style:f}=e,[h,m]=(0,r.useState)(""),[p,g]=(0,r.useState)(!1),v=(0,a.usePathname)(),y=(0,a.useRouter)(),w=(0,a.useSearchParams)(),b=(0,r.useRef)(null);(0,r.useEffect)(()=>{if(window){let e=window.location.hash;e.includes("/")&&(e=e.split("/")[0]),m(e),Object.keys(t).includes(e)?(b.current?.showModal(),g(!0)):(b.current?.close(),g(!1))}},[w,t]);let S=(0,r.useCallback)(()=>{b.current?.close(),y.push(v,{scroll:!1}),m(""),g(!1)},[v,y]),C=(0,r.useCallback)(e=>{let t=b.current;if(!t)return;let l=t.getBoundingClientRect();(l.left>e.clientX||l.right<e.clientX||l.top>e.clientY||l.bottom<e.clientY)&&S()},[S]);return(0,r.useEffect)(()=>{let e=b.current;if(!e)return;let t=e=>{e.preventDefault(),S()};return e?.addEventListener("cancel",t),()=>{e?.removeEventListener("cancel",t)}},[S]),(0,i.A)(p&&c),(0,n.jsxs)("dialog",{ref:b,className:(0,s.Q)("@container w-full backdrop:bg-black/50 text-primary-text",l),style:f,onClick:C,children:[(0,n.jsxs)("button",{onClick:S,type:"button","aria-label":"Close modal",className:(0,s.Q)("absolute right-2 top-2 focus:outline-hidden",o),children:[d,!d&&(0,n.jsx)(u.SXS,{className:"text-inherit"})]}),!!t[h]&&t[h]]})}},49643:(e,t,l)=>{l.r(t),l.d(t,{default:()=>o});var n=l(95155),a=l(12115),r=l(87275),u=l(5737),s=l(20020),i=l(33144);function o(e){let{video:t=i.V,editMode:l=!1}=e,o=(0,a.useMemo)(()=>l||t.lazyLoading?r.A:u.default,[l,t.lazyLoading]);return(0,n.jsx)("div",{className:(0,s.I)("h-full w-full relative",l&&"admin:pointer-events-none"),style:{height:`${t.height}px`,width:`${t.width}px`},children:(0,n.jsx)(o,{displayPlaceholderImageWhileLazyloading:!0,lazyClassName:"h-full w-full relative",wrapperClassName:"h-full w-full relative child-div-full",url:t.src,playing:t.autoplay,loop:t.loop,controls:t.controls,muted:t.muted,width:t?.width?.toString()||"1920",height:t?.height?.toString()||"1080",placeholderWidth:t?.width?.toString()||"1920",placeholderHeight:t?.height?.toString()||"1080",placeholderImage:t?.image?.src})})}},57008:(e,t,l)=>{l.d(t,{A:()=>n});let n=(0,l(12115).createContext)({globalConfig:null})},59948:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(12115);function a(e,t){(0,n.useEffect)(()=>{let l=l=>{for(let t of e){let e=t.current;if(e instanceof Element&&e.contains(l.target))return}t(l)};return document.addEventListener("mousedown",l),document.addEventListener("focusin",l),()=>{document.removeEventListener("mousedown",l),document.removeEventListener("focusin",l)}},[e,t])}}}]);
2//# sourceMappingURL=82905-a8806e7799ffe4e8.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.