PageSourceSearch

https://platinumpropertiesely.co.uk/_next/static/chunks/7893.7eb112fa67da04f2.js

js platinumpropertiesely.co.uk collected 2026-10-01 02:47:22 UTC 15,525 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7893],{17893:(e,t,r)=>{r.r(t),r.d(t,{MortgageCalculatorDuplex:()=>c});var a=r(85664),l=r(34989),s=r(81072),i=r(17213),n=r(84870),o=r(96777),d=r(15179);function c(e){let{hideTitle:t=!1,isCommercial:r,mortgageEnquiryContent:c,mortgageEnquiryLink:h,price:m,stampDutyLocation:u,tenure:p}=e,x=r?"commercial":u,{deposit:b,depositSet:g,duration:f,durationSet:y,firstTimeBuyer:E,firstTimeBuyerSet:N,interest:v,interestSet:S,monthlyPayment:R,secondHome:w,secondHomeSet:T,stampDutyValues:j,value:A,valueSet:D}=(0,n.k)(m,x,u,p,r),I="wales"!==u&&"scotland"!==u&&!r,L="".concat(r?"Commercial ":"").concat("wales"===u?"Land Transaction Tax":"scotland"===u?"Land & Buildings Transaction Tax (LBTT)":"Stamp Duty"),C="wales"===u?"land transaction tax":"scotland"===u?"LBTT":"stamp duty",O=I?"".concat(C," rate"):C;return(0,a.jsx)("div",{className:(0,o.cn)("relative pt-39",!t&&"overflow-hidden"),children:(0,a.jsx)("div",{className:(0,l.c)({theme:"duplex"}),children:(0,a.jsxs)("div",{className:(0,o.cn)("-mx-12 flex flex-wrap"),children:[(0,a.jsx)("div",{className:(0,o.cn)("mb-10 w-full px-12 lg:mb-0 lg:w-1/3"),children:(0,a.jsxs)("div",{className:"flex h-full flex-col justify-center rounded-30 bg-white px-24 pt-24 pb-40 shadow-testimonial",children:[(0,a.jsx)("div",{className:(0,o.cn)(),children:(0,a.jsx)(s.p,{label:"Property Value (\xa3)",onChange:e=>{D(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},theme:"duplex",type:"number",value:A})}),(0,a.jsx)("div",{className:(0,o.cn)("mt-20"),children:(0,a.jsx)(s.p,{label:"Deposit (\xa3) ".concat((0!==A&&""!==A?(Number(b)/Number(A)*100).toFixed(2):0).toString(),"%"),onChange:e=>{g(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},theme:"duplex",type:"number",value:b})}),(0,a.jsx)("div",{className:(0,o.cn)("mt-20"),children:(0,a.jsx)(s.p,{label:"Duration (Years)",onChange:e=>{y(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},theme:"duplex",type:"number",value:f})}),(0,a.jsx)("div",{className:(0,o.cn)("mt-20"),children:(0,a.jsx)(s.p,{label:"Interest Rate (%)",onChange:e=>{S(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},step:"0.1",theme:"duplex",type:"number",value:v})}),(0,a.jsx)("div",{className:(0,o.cn)("mt-15",(r||"wales"===u)&&"hidden"),children:(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("input",{checked:E,className:(0,o.cn)("size-24 shrink-0 cursor-pointer rounded-5 border-2 border-bordergray text-secondary shadow-none ring-0 hover:border-green-2 hover:ring-0 focus:border-green-2 focus:shadow-none focus:outline-none focus:ring-0"),id:"first-time-buyer",onChange:e=>{N(e.target.checked)},type:"checkbox"}),(0,a.jsx)("label",{className:"cursor-pointer pl-15 text-12 leading-[24px]",htmlFor:"first-time-buyer",children:"I am a first time buyer"})]})}),(0,a.jsx)("div",{className:(0,o.cn)("mt-15",r&&"hidden"),children:(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)("input",{checked:w,className:(0,o.cn)("size-24 shrink-0 cursor-pointer rounded-5 border-2 border-bordergray text-secondary shadow-none ring-0 hover:border-green-2 hover:ring-0 focus:border-green-2 focus:shadow-none focus:outline-none focus:ring-0"),id:"second-home",onChange:e=>{T(e.target.checked)},type:"checkbox"}),(0,a.jsx)("label",{className:"cursor-pointer pl-15 text-12 leading-[24px]",htmlFor:"second-home",children:"I am buying a second home"})]})})]})}),(0,a.jsx)("div",{className:"mb-10 w-full px-12 md:mb-0 md:w-1/2 lg:w-1/3",children:(0,a.jsxs)("div",{className:"relative flex h-full flex-col justify-between overflow-hidden rounded-30 border-3 border-white bg-white px-45 py-35 shadow-testimonial",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-primary opacity-100"}),(0,a.jsxs)("div",{className:"relative text-white",children:[(0,a.jsx)("h3",{className:"mb-0 text-balance font-semibold text-20 text-white leading-snug tracking-[0.08px] md:text-24 lg:text-28 xl:text-32",children:"Mortgage"}),(0,a.jsx)("div",{className:"my-10 text-16 leading-normal tracking-[0.04px]",children:"Estimated Monthly Mortgage Payment:"}),(0,a.jsxs)("div",{className:"mt-20 font-bold text-28 leading-none tracking-[0.1px] md:text-32 lg:text-42",children:[(0,d.$g)(Number.isNaN(R)?0:R)," ","/mo."]}),(0,a.jsxs)("div",{className:"mt-17 text-14 leading-normal tracking-[0.03px]",children:[f," Years, ",v,"% Interest"]})]}),(0,a.jsxs)("div",{className:"relative text-white",children:[(0,a.jsxs)("div",{className:"mt-auto flex items-center justify-between border-white/30 border-b py-7 text-14 leading-normal tracking-[0.03px]",children:[(0,a.jsx)("div",{children:"Loan"}),(0,a.jsx)("div",{className:"font-semibold",children:(0,d.$g)(Number(A)-Number(b))})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between py-7 text-14 leading-normal tracking-[0.03px]",children:[(0,a.jsx)("div",{children:"Total Repay"}),(0,a.jsx)("div",{className:"font-semibold",children:(0,d.$g)(Number.isNaN(R)?0:12*R*Number(f))})]})]})]})}),(0,a.jsx)("div",{className:"mb-10 w-full px-12 md:mb-0 md:w-1/2 lg:w-1/3",children:(0,a.jsxs)("div",{className:"relative flex h-full flex-col justify-between overflow-hidden rounded-30 border-3 border-white bg-white px-45 py-35 shadow-testimonial",children:[(0,a.jsx)("div",{className:"absolute inset-0 bg-primary opacity-90"}),(0,a.jsxs)("div",{className:"relative text-white",children:[(0,a.jsx)("h3",{className:"mb-0 text-balance font-semibold text-20 text-white leading-snug tracking-[0.08px] md:text-24 lg:text-28 xl:text-32",children:L}),(0,a.jsxs)("div",{className:"my-10 text-16 leading-normal tracking-[0.04px]",children:["You’ll have to pay the ",C," of:"]}),(0,a.jsx)("div",{className:"mt-20 font-bold text-28 leading-none tracking-[0.1px] md:text-32 lg:text-42",children:j.totalTaxFormatted})]}),(0,a.jsx)("div",{className:"relative text-white",children:!!j.breakdown.length&&(0,a.jsxs)("div",{className:"mt-auto pt-30 pb-7 text-12 leading-normal tracking-[0.03px]",children:[j.breakdown.map(e=>(0,a.jsx)("div",{className:"mt-3 text-balance text-white/70",children:e.label},e.label)),(0,a.jsxs)("div",{className:"mt-3 font-bold",children:["Your effective ",O," is"," ",j.effectiveRateFormatted]})]})})]})}),!!(c||h)&&(0,a.jsxs)("div",{className:"w-full pt-50 text-center",children:[!!c&&(0,a.jsx)("div",{className:"prose xl:prose-lg mx-auto max-w-[580px] text-balance",dangerouslySetInnerHTML:{__html:c}}),!!(null==h?void 0:h.url)&&!!h.title&&(0,a.jsx)("div",{className:"mt-35",children:(0,a.jsx)(i.z,{href:h.url,openNewTab:"_blank"===h.target,size:"lg",theme:"duplex",variant:"ghostPrimary",children:(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:h.title}})})})]})]})})})}},81072:(e,t,r)=>{r.d(t,{p:()=>n,r:()=>i});var a=r(85664),l=r(88253),s=r(96777);let i=(0,l.F)(["relative block w-full tracking-[0.4px] shadow-none outline-none transition-all duration-300 focus:z-20 focus:outline-none","form-input border-2 bg-absolute-white text-left text-black placeholder:text-placeholder"],{compoundVariants:[{class:"border-bordergray ring-0 ring-green-1/20 hover:border-green-1 hover:ring-2 focus:border-green-2 focus:ring-4 focus:ring-green-1/20",hasError:!1,theme:["beam","apex","chalet","duplex","fascia","gable"]}
1,{class:"border-warning/40 ring-2 ring-warning/20 focus:border-warning/60 focus:ring-4 focus:ring-warning/20",hasError:!0,theme:["beam","apex","chalet","duplex","fascia","gable"]}],variants:{hasError:{false:"",true:""},theme:{apex:"px-14 py-10 text-18 leading-[28px]",beam:"rounded-8 px-14 py-10 text-16 leading-[24px]",chalet:"px-14 py-10 text-18 leading-[28px]",duplex:"rounded-10 pt-29 pr-12 pb-7 pl-14 text-15",estate:"",fascia:"px-14 py-10 text-18 leading-[34px]",gable:"px-14 py-10 text-18 leading-[28px]"}}}),n=e=>{let{className:t,error:r,label:l,placeholder:n,theme:o="beam",type:d="text",ref:c,...h}=e;return(0,a.jsxs)("div",{className:(0,s.cn)("relative transition-all",r?"mb-38":"mb-2"),children:[(0,a.jsx)("div",{className:(0,s.cn)("group absolute flex items-center justify-between border-warning/10 border-x border-b bg-warning/5 px-10 py-5 text-11 text-warning shadow-sm transition-all duration-300",r&&"visible top-full opacity-100",!r&&"invisible top-0 opacity-0","beam"===o?"left-10 rounded-b-6":"inset-x-0",t),children:null!=r?r:""}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("input",{className:i({hasError:!!r,theme:o}),placeholder:null!=n?n:l,ref:c,type:d,...h}),"duplex"===o&&(0,a.jsx)("span",{className:"pointer-events-none absolute inset-x-16 top-0 z-20 pt-10 font-semibold text-12 text-black tracking-[0.3px]",dangerouslySetInnerHTML:{__html:l}})]})]})};n.displayName="Input"},84870:(e,t,r)=>{r.d(t,{k:()=>m});var a=r(63276);let l={COMMERCIAL:{FREEHOLD:[{rate:0,threshold:15e4,type:"commercial-freehold"},{rate:.02,threshold:25e4,type:"commercial-freehold"},{rate:.05,threshold:1/0,type:"commercial-freehold"}],LEASEHOLD:[{rate:0,threshold:15e4,type:"commercial-leasehold"},{rate:.01,threshold:5e6,type:"commercial-leasehold"},{rate:.02,threshold:1/0,type:"commercial-leasehold"}]},RESIDENTIAL:{FIRST_TIME_BUYER:{BRACKETS:[{rate:0,threshold:3e5,type:"residential-first-time"},{rate:.05,threshold:5e5,type:"residential-first-time"}],MAX_PURCHASE_PRICE:5e5},SECOND_HOME:[{rate:.05,threshold:125e3,type:"residential-second-home"},{rate:.07,threshold:25e4,type:"residential-second-home"},{rate:.1,threshold:925e3,type:"residential-second-home"},{rate:.15,threshold:15e5,type:"residential-second-home"},{rate:.17,threshold:1/0,type:"residential-second-home"}],STANDARD:[{rate:0,threshold:125e3,type:"residential"},{rate:.02,threshold:25e4,type:"residential"},{rate:.05,threshold:925e3,type:"residential"},{rate:.1,threshold:15e5,type:"residential"},{rate:.12,threshold:1/0,type:"residential"}]}},s={COMMERCIAL:{FREEHOLD:[{rate:0,threshold:225e3,type:"commercial-freehold"},{rate:.01,threshold:25e4,type:"commercial-freehold"},{rate:.05,threshold:1e6,type:"commercial-freehold"},{rate:.06,threshold:1/0,type:"commercial-freehold"}],LEASEHOLD:[{rate:0,threshold:225e3,type:"commercial-leasehold"},{rate:.01,threshold:2e6,type:"commercial-leasehold"},{rate:.02,threshold:1/0,type:"commercial-leasehold"}]},RESIDENTIAL:{SECOND_HOME:{BRACKETS:[{rate:.05,threshold:18e4,type:"residential-second-home"},{rate:.085,threshold:25e4,type:"residential-second-home"},{rate:.1,threshold:4e5,type:"residential-second-home"},{rate:.125,threshold:75e4,type:"residential-second-home"},{rate:.15,threshold:15e5,type:"residential-second-home"},{rate:.17,threshold:1/0,type:"residential-second-home"}],NO_TAX_THRESHOLD:4e4},STANDARD:[{rate:0,threshold:225e3,type:"residential"},{rate:.06,threshold:4e5,type:"residential"},{rate:.075,threshold:75e4,type:"residential"},{rate:.1,threshold:15e5,type:"residential"},{rate:.12,threshold:1/0,type:"residential"}]}},i={COMMERCIAL:{FREEHOLD:[{rate:0,threshold:15e4,type:"commercial-freehold"},{rate:.01,threshold:25e4,type:"commercial-freehold"},{rate:.05,threshold:1/0,type:"commercial-freehold"}],LEASEHOLD:[{rate:0,threshold:15e4,type:"commercial-leasehold"},{rate:.01,threshold:2e6,type:"commercial-leasehold"},{rate:.02,threshold:1/0,type:"commercial-leasehold"}]},RESIDENTIAL:{FIRST_TIME_BUYER:{BRACKETS:[{rate:0,threshold:175e3,type:"residential-first-time"},{rate:.02,threshold:25e4,type:"residential-first-time"},{rate:.05,threshold:325e3,type:"residential-first-time"},{rate:.1,threshold:75e4,type:"residential-first-time"},{rate:.12,threshold:1/0,type:"residential-first-time"}]},SECOND_HOME:{BRACKETS:[{rate:.08,threshold:145e3,type:"residential-second-home"},{rate:.1,threshold:25e4,type:"residential-second-home"},{rate:.13,threshold:325e3,type:"residential-second-home"},{rate:.18,threshold:75e4,type:"residential-second-home"},{rate:.2,threshold:1/0,type:"residential-second-home"}],NO_TAX_THRESHOLD:4e4},STANDARD:[{rate:0,threshold:145e3,type:"residential"},{rate:.02,threshold:25e4,type:"residential"},{rate:.05,threshold:325e3,type:"residential"},{rate:.1,threshold:75e4,type:"residential"},{rate:.12,threshold:1/0,type:"residential"}]}};
1function n(e,t,r){let a=(100*r).toLocaleString("en-GB",{maximumFractionDigits:2});return 0===e&&Number.isFinite(t)?"".concat(a,"% up to \xa3").concat(t.toLocaleString()):Number.isFinite(t)?"".concat(a,"% from \xa3").concat(e.toLocaleString()," to \xa3").concat(t.toLocaleString()):"".concat(a,"% above \xa3").concat(e.toLocaleString())}function o(e,t){let{currency:r="GBP",truncateDecimals:a=!0}=t||{},l=!a||1e3>Math.abs(e),s=new Intl.NumberFormat("en-GB",{currency:r,maximumFractionDigits:2*!!l,minimumFractionDigits:0,style:"currency"}).format(e);return"USD"===r&&s.startsWith("US$")?s=s.replace("US$","$"):"EUR"===r&&s.startsWith("EUR")&&(s=s.replace("EUR","€")),s}function d(e,t){if(0===e)return{breakdown:[],effectiveRate:0,effectiveRateFormatted:"0%",totalTax:0,totalTaxFormatted:o(0)};let r=0,a=0,l=[];for(let{rate:s,threshold:i}of t){if(e<=r){l.push({label:n(r,i,s),rate:s,tax:0,taxableAmount:0});continue}let t=r,o=Math.min(e,i),d=o-t,c=d*s;if(l.push({label:n(t,o,s),rate:s,tax:c,taxableAmount:d}),a+=c,r=i,!Number.isFinite(i)||e<=i)break}let s=Number.parseFloat((0===e?0:a/e*100).toFixed(2)),i="".concat(s.toString(),"%"),d=o(a);return{breakdown:l,effectiveRate:s,effectiveRateFormatted:i,totalTax:a,totalTaxFormatted:d}}function c(e){let t,{country:r,isCommercial:a,isFirstTimeBuyer:n,isSecondHome:o,purchasePrice:c,tenure:h}=e;if(0===c)return d(0,[]);let m={isCommercial:a,isFirstTimeBuyer:n,isSecondHome:o,purchasePrice:c,tenure:h};switch(r){case"default":t=function(e){let{isCommercial:t,isFirstTimeBuyer:r,isSecondHome:a,purchasePrice:s,tenure:i}=e;return t?"Freehold"===i?l.COMMERCIAL.FREEHOLD:l.COMMERCIAL.LEASEHOLD:a?l.RESIDENTIAL.SECOND_HOME:r&&s<=l.RESIDENTIAL.FIRST_TIME_BUYER.MAX_PURCHASE_PRICE?l.RESIDENTIAL.FIRST_TIME_BUYER.BRACKETS:l.RESIDENTIAL.STANDARD}(m);break;case"scotland":t=function(e){let{isCommercial:t,isFirstTimeBuyer:r,isSecondHome:a,purchasePrice:l,tenure:s}=e;return t?"Freehold"===s?i.COMMERCIAL.FREEHOLD:i.COMMERCIAL.LEASEHOLD:a&&l>i.RESIDENTIAL.SECOND_HOME.NO_TAX_THRESHOLD?i.RESIDENTIAL.SECOND_HOME.BRACKETS:r?i.RESIDENTIAL.FIRST_TIME_BUYER.BRACKETS:i.RESIDENTIAL.STANDARD}(m);break;case"wales":t=function(e){let{isCommercial:t,isSecondHome:r,purchasePrice:a,tenure:l}=e;return t?"Freehold"===l?s.COMMERCIAL.FREEHOLD:s.COMMERCIAL.LEASEHOLD:r&&a>s.RESIDENTIAL.SECOND_HOME.NO_TAX_THRESHOLD?s.RESIDENTIAL.SECOND_HOME.BRACKETS:s.RESIDENTIAL.STANDARD}(m);break;default:throw Error("Unsupported country: ".concat(r))}return d(c,t)}var h=r(15179);function m(e,t,r,l,s){let[i,n]=(0,a.useState)(e),[o,d]=(0,a.useState)(.1*e),[m,u]=(0,a.useState)(25),[p,x]=(0,a.useState)(3.75),[b,g]=(0,a.useState)(!1),[f,y]=(0,a.useState)(!1),E="number"==typeof i?i:0,N="number"==typeof o?o:0,v="number"==typeof m?m:0,S="number"==typeof p?p:0,[R,w]=(0,a.useState)((0,h.ob)(E-N,S,v)),[T,j]=(0,a.useState)(c({country:r,isCommercial:!!s,isFirstTimeBuyer:f,isSecondHome:b,purchasePrice:E,tenure:null!=l?l:"Freehold"}));return(0,a.useEffect)(()=>{w((0,h.ob)(E-N,S,v))},[E,N,v,S]),(0,a.useEffect)(()=>{j(c({country:r,isCommercial:!!s,isFirstTimeBuyer:f,isSecondHome:b,purchasePrice:E,tenure:null!=l?l:"Freehold"}))},[E,b,r,l,f,s]),(0,a.useEffect)(()=>{f&&g(!1)},[f]),(0,a.useEffect)(()=>{b&&y(!1)},[b]),{deposit:o,depositSet:d,duration:m,durationSet:u,firstTimeBuyer:f,firstTimeBuyerSet:y,interest:p,interestSet:x,monthlyPayment:R,secondHome:b,secondHomeSet:g,stampDutyValues:T,value:i,valueSet:n}}}}]);

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.