PageSourceSearch

https://whitehornes.co.uk/_next/static/chunks/7155-1f6d8ad34e82d029.js

js whitehornes.co.uk collected 2026-10-01 02:46:29 UTC 59,376 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1354,5651,6162,7155,7893],{15651:(e,t,a)=>{a.r(t),a.d(t,{YieldCalculator:()=>d});var l=a(85664),r=a(34989),s=a(91745),n=a(96777),i=a(15179);function d(e){let{price:t,theme:a}=e,{annualRent:d,expenses:c,expensesSet:o,rent:m,rentalYield:x,rentSet:h,value:u,valueSet:p}=(0,s.$)(t);return(0,l.jsx)("div",{className:(0,n.cn)("relative","chalet"===a?"bg-gray pb-50 lg:pb-70":"bg-white"),children:(0,l.jsx)("div",{className:(0,r.c)({theme:a}),children:(0,l.jsxs)("div",{className:(0,n.cn)("-mx-20 flex flex-wrap md:mx-0","chalet"!==a?"border border-bordergray shadow-md":"px-20 md:px-0",("beam"===a||"duplex"===a)&&"md:rounded-b-20"),children:[(0,l.jsx)("div",{className:(0,n.cn)("w-full","beam"===a&&"md:w-1/2 md:pr-10","apex"===a&&"md:w-7/12"),children:(0,l.jsx)("div",{className:(0,n.cn)("pb-55","chalet"!==a&&"bg-gray/80 px-20 pt-50 lg:pb-70 xl:pb-90",("beam"===a||"duplex"===a)&&"md:rounded-b-20","apex"===a&&"xl:pt-90 2xl:pb-130"),children:(0,l.jsxs)("div",{className:(0,n.cn)("beam"===a&&"max-w-[380px]","apex"===a&&"max-w-[500px]","chalet"===a?"-mx-15 flex flex-wrap":"mx-auto"),children:[(0,l.jsxs)("div",{className:(0,n.cn)("chalet"===a&&"mt-23 w-full px-15 md:w-1/3"),children:[(0,l.jsx)("label",{className:(0,n.cn)("font-bold text-14 leading-normal tracking-[0.23px]","beam"===a&&"text-green-3",("apex"===a||"chalet"===a)&&"md:text-16"),htmlFor:"property-value",children:"Property Value (\xa3)"}),(0,l.jsx)("input",{className:(0,n.cn)("relative block w-full border-2 border-bordergray bg-white px-16 text-left text-17 text-black leading-[24px] tracking-[0.4px] shadow-none outline-none ring-0 transition-all duration-300 placeholder:text-placeholder hover:border-green-2 focus:z-20 focus:border-green-2 focus:shadow-input-focus focus:outline-none focus:ring-0","beam"===a&&"mt-16 rounded-8 py-10",("apex"===a||"chalet"===a)&&"mt-10 py-12"),id:"property-value",onChange:e=>{p(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},type:"number",value:u})]}),(0,l.jsxs)("div",{className:(0,n.cn)("mt-23","chalet"===a&&"w-full px-15 md:w-1/3"),children:[(0,l.jsx)("label",{className:(0,n.cn)("flex items-center font-bold text-14 leading-normal tracking-[0.23px]","beam"===a&&"text-green-3",("apex"===a||"chalet"===a)&&"md:text-16"),htmlFor:"rent",children:"Monthly Rent (\xa3)"}),(0,l.jsx)("input",{className:(0,n.cn)("relative block w-full border-2 border-bordergray bg-white px-16 text-left text-17 text-black leading-[24px] tracking-[0.4px] shadow-none outline-none ring-0 transition-all duration-300 placeholder:text-placeholder hover:border-green-2 focus:z-20 focus:border-green-2 focus:shadow-input-focus focus:outline-none focus:ring-0","beam"===a&&"mt-16 rounded-8 py-10",("apex"===a||"chalet"===a)&&"mt-10 py-12"),id:"rent",onChange:e=>{h(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},type:"number",value:m})]}),(0,l.jsxs)("div",{className:(0,n.cn)("mt-23","chalet"===a&&"w-full px-15 md:w-1/3"),children:[(0,l.jsx)("label",{className:(0,n.cn)("font-bold text-14 leading-normal tracking-[0.23px]","beam"===a&&"text-green-3",("apex"===a||"chalet"===a)&&"md:text-16"),htmlFor:"expenses",children:"Annual Expenses/Loss (\xa3)"}),(0,l.jsx)("input",{className:(0,n.cn)("relative block w-full border-2 border-bordergray bg-white px-16 text-left text-17 text-black leading-[24px] tracking-[0.4px] shadow-none outline-none ring-0 transition-all duration-300 placeholder:text-placeholder hover:border-green-2 focus:z-20 focus:border-green-2 focus:shadow-input-focus focus:outline-none focus:ring-0","beam"===a&&"mt-16 rounded-8 py-10",("apex"===a||"chalet"===a)&&"mt-10 py-12"),id:"expenses",onChange:e=>{o(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},type:"number",value:c})]})]})})}),(0,l.jsx)("div",{className:(0,n.cn)("w-full","beam"===a&&"pt-60 md:w-1/2 md:pt-80 md:pl-30 lg:pt-100 lg:pl-50 xl:pl-90","apex"===a&&"flex flex-col justify-center px-20 py-50 md:w-5/12 md:pr-0 md:pl-30 lg:pl-40 xl:pl-50 2xl:pl-90"),children:(0,l.jsxs)("div",{className:(0,n.cn)("chalet"!==a&&"mx-auto max-w-[380px]","beam"===a&&"px-20 md:max-w-full md:px-0","apex"===a&&"md:mx-0"),
1children:[(0,l.jsx)("h3",{className:(0,n.cn)("font-body text-18 text-primary leading-normal tracking-[0.06px] md:text-20 lg:text-22 xl:text-24","beam"===a?"font-bold":"font-semibold"),children:"Results"}),(0,l.jsxs)("div",{className:(0,n.cn)("chalet"===a&&"-mx-15 flex flex-wrap"),children:[(0,l.jsxs)("div",{className:(0,n.cn)("chalet"===a&&"w-full px-15 md:w-1/3"),children:[(0,l.jsx)("div",{className:(0,n.cn)("beam"===a?"mt-6":"mt-15","text-17 text-black leading-normal"),children:"Estimated Annual Rent (\xa3)"}),(0,l.jsx)("div",{className:(0,n.cn)("mt-10","beam"===a&&"flex items-baseline"),children:(0,l.jsxs)("span",{className:(0,n.cn)("font-heading text-22 text-primary","beam"===a&&"font-bold leading-normal tracking-[0.07px] lg:text-24 xl:text-28",("apex"===a||"chalet"===a)&&"block font-medium leading-tight tracking-[0.44px] lg:text-28 xl:text-42","chalet"===a&&"!font-body !font-bold"),children:[(0,i.$g)(d)," /year."]})})]}),(0,l.jsxs)("div",{className:(0,n.cn)("chalet"===a&&"w-full px-15 md:w-1/3"),children:[(0,l.jsx)("div",{className:(0,n.cn)("chalet"===a?"mt-25 md:mt-15":"beam"===a?"mt-16":"mt-25","text-17 text-black leading-normal"),children:"Estimated Rental Yield (%)"}),(0,l.jsx)("div",{className:(0,n.cn)("mt-10","beam"===a&&"flex items-baseline"),children:(0,l.jsxs)("span",{className:(0,n.cn)("font-heading text-22 text-primary","beam"===a&&"font-bold leading-normal tracking-[0.07px] lg:text-24 xl:text-28",("apex"===a||"chalet"===a)&&"block font-medium leading-tight tracking-[0.44px] lg:text-28 xl:text-42","chalet"===a&&"!font-body !font-bold"),children:[Number.isNaN(x)?0:x.toFixed(2),"%"]})})]})]})]})})]})})})}},17893:(e,t,a)=>{a.r(t),a.d(t,{MortgageCalculatorDuplex:()=>o});var l=a(85664),r=a(34989),s=a(81072),n=a(17213),i=a(84870),d=a(96777),c=a(15179);function o(e){let{hideTitle:t=!1,isCommercial:a,mortgageEnquiryContent:o,mortgageEnquiryLink:m,price:x,stampDutyLocation:h,tenure:u}=e,p=a?"commercial":h,{deposit:b,depositSet:g,duration:f,durationSet:v,firstTimeBuyer:N,firstTimeBuyerSet:y,interest:j,interestSet:w,monthlyPayment:k,secondHome:E,secondHomeSet:T,stampDutyValues:C,value:F,valueSet:R}=(0,i.k)(x,p,h,u,a),L="wales"!==h&&"scotland"!==h&&!a,S="".concat(a?"Commercial ":"").concat("wales"===h?"Land Transaction Tax":"scotland"===h?"Land & Buildings Transaction Tax (LBTT)":"Stamp Duty"),D="wales"===h?"land transaction tax":"scotland"===h?"LBTT":"stamp duty",I=L?"".concat(D," rate"):D;return(0,l.jsx)("div",{className:(0,d.cn)("relative pt-39",!t&&"overflow-hidden"),children:(0,l.jsx)("div",{className:(0,r.c)({theme:"duplex"}),children:(0,l.jsxs)("div",{className:(0,d.cn)("-mx-12 flex flex-wrap"),children:[(0,l.jsx)("div",{className:(0,d.cn)("mb-10 w-full px-12 lg:mb-0 lg:w-1/3"),children:(0,l.jsxs)("div",{className:"flex h-full flex-col justify-center rounded-30 bg-white px-24 pt-24 pb-40 shadow-testimonial",children:[(0,l.jsx)("div",{className:(0,d.cn)(),children:(0,l.jsx)(s.p,{label:"Property Value (\xa3)",onChange:e=>{R(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},theme:"duplex",type:"number",value:F})}),(0,l.jsx)("div",{className:(0,d.cn)("mt-20"),children:(0,l.jsx)(s.p,{label:"Deposit (\xa3) ".concat((0!==F&&""!==F?(Number(b)/Number(F)*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,l.jsx)("div",{className:(0,d.cn)("mt-20"),children:(0,l.jsx)(s.p,{label:"Duration (Years)",onChange:e=>{v(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},theme:"duplex",type:"number",value:f})}),(0,l.jsx)("div",{className:(0,d.cn)("mt-20"),children:(0,l.jsx)(s.p,{label:"Interest Rate (%)",onChange:e=>{w(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},step:"0.1",theme:"duplex",type:"number",value:j})}),(0,l.jsx)("div",{className:(0,d.cn)("mt-15",(a||"wales"===h)&&"hidden"),children:(0,l.jsxs)("div",{className:"flex",children:[(0,l.jsx)("input",{checked:N,className:(0,d.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=>{y(e.target.checked)},type:"checkbox"}),(0,l.jsx)("label",{className:"cursor-pointer pl-15 text-12 leading-[24px]",htmlFor:"first-time-buyer",children:"I am a first time buyer"})]})}),(0,l.jsx)("div",{className:(0,d.cn)("mt-15",a&&"hidden"),children:(0,l.jsxs)("div",{className:"flex",children:[(0,l.jsx)("input",{checked:E,className:(0,d.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,l.jsx)("label",{className:"cursor-pointer pl-15 text-12 leading-[24px]",htmlFor:"second-home",children:"I am buying a second home"})]})})]})}),(0,l.jsx)("div",{className:"mb-10 w-full px-12 md:mb-0 md:w-1/2 lg:w-1/3",children:(0,l.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,l.jsx)("div",{className:"absolute inset-0 bg-primary opacity-100"}),(0,l.jsxs)("div",{className:"relative text-white",children:[(0,l.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,l.jsx)("div",{className:"my-10 text-16 leading-normal tracking-[0.04px]",children:"Estimated Monthly Mortgage Payment:"}),(0,l.jsxs)("div",{className:"mt-20 font-bold text-28 leading-none tracking-[0.1px] md:text-32 lg:text-42",children:[(0,c.$g)(Number.isNaN(k)?0:k)," ","/mo."]}),(0,l.jsxs)("div",{className:"mt-17 text-14 leading-normal tracking-[0.03px]",children:[f," Years, ",j,"% Interest"]})]}),(0,l.jsxs)("div",{className:"relative text-white",children:[(0,l.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,l.jsx)("div",{children:"Loan"}),(0,l.jsx)("div",{className:"font-semibold",children:(0,c.$g)(Number(F)-Number(b))})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between py-7 text-14 leading-normal tracking-[0.03px]",children:[(0,l.jsx)("div",{children:"Total Repay"}),(0,l.jsx)("div",{className:"font-semibold",children:(0,c.$g)(Number.isNaN(k)?0:12*k*Number(f))})]})]})]})}),(0,l.jsx)("div",{className:"mb-10 w-full px-12 md:mb-0 md:w-1/2 lg:w-1/3",children:(0,l.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,l.jsx)("div",{className:"absolute inset-0 bg-primary opacity-90"}),(0,l.jsxs)("div",{className:"relative text-white",children:[(0,l.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:S}),(0,l.jsxs)("div",{className:"my-10 text-16 leading-normal tracking-[0.04px]",children:["You’ll have to pay the ",D," of:"]}),(0,l.jsx)("div",{className:"mt-20 font-bold text-28 leading-none tracking-[0.1px] md:text-32 lg:text-42",children:C.totalTaxFormatted})]}),(0,l.jsx)("div",{className:"relative text-white",children:!!C.breakdown.length&&(0,l.jsxs)("div",{className:"mt-auto pt-30 pb-7 text-12 leading-normal tracking-[0.03px]",children:[C.breakdown.map(e=>(0,l.jsx)("div",{className:"mt-3 text-balance text-white/70",children:e.label},e.label)),(0,l.jsxs)("div",{className:"mt-3 font-bold",children:["Your effective ",I," is"," ",C.effectiveRateFormatted]})]})})]})}),!!(o||m)&&(0,l.jsxs)("div",{className:"w-full pt-50 text-center",children:[!!o&&(0,l.jsx)("div",{className:"prose xl:prose-lg mx-auto max-w-[580px] text-balance",dangerouslySetInnerHTML:{__html:o}}),!!(null==m?void 0:m.url)&&!!m.title&&(0,l.jsx)("div",{className:"mt-35",children:(0,l.jsx)(n.z,{href:m.url,openNewTab:"_blank"===m.target,size:"lg",theme:"duplex",variant:"ghostPrimary",children:(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:m.title}}
1)})})]})]})})})}},51354:(e,t,a)=>{a.r(t),a.d(t,{YieldCalculatorDuplex:()=>d});var l=a(85664),r=a(34989),s=a(81072),n=a(91745),i=a(15179);function d(e){let{price:t}=e,{annualRent:a,expenses:d,expensesSet:c,rent:o,rentalYield:m,rentSet:x,value:h,valueSet:u}=(0,n.$)(t);return(0,l.jsx)("div",{className:"relative pt-39",children:(0,l.jsx)("div",{className:(0,r.c)({theme:"duplex"}),children:(0,l.jsxs)("div",{className:"-mx-12 flex flex-wrap",children:[(0,l.jsx)("div",{className:"mb-10 w-full px-12 md:mb-0 md:w-1/2",children:(0,l.jsxs)("div",{className:"flex h-full flex-col justify-center rounded-30 bg-white p-24 shadow-testimonial",children:[(0,l.jsx)("div",{className:"",children:(0,l.jsx)(s.p,{label:"Property Value (\xa3)",onChange:e=>{u(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},theme:"duplex",type:"number",value:h})}),(0,l.jsx)("div",{className:"mt-20",children:(0,l.jsx)(s.p,{label:"Monthly Rent (\xa3)",onChange:e=>{x(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},theme:"duplex",type:"number",value:o})}),(0,l.jsx)("div",{className:"mt-20",children:(0,l.jsx)(s.p,{label:"Annual Expenses/Loss (\xa3)",onChange:e=>{c(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},theme:"duplex",type:"number",value:d})})]})}),(0,l.jsx)("div",{className:"w-full px-12 md:w-1/2",children:(0,l.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,l.jsx)("div",{className:"absolute inset-0 bg-primary opacity-100"}),(0,l.jsxs)("div",{className:"relative text-white",children:[(0,l.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:"Results"}),(0,l.jsx)("div",{className:"mt-30 text-16 leading-normal tracking-[0.04px]",children:"Estimated Annual Rent (\xa3)"}),(0,l.jsxs)("div",{className:"font-bold text-28 leading-none tracking-[0.1px] md:text-32 lg:text-42",children:[(0,i.$g)(a)," /year."]}),(0,l.jsx)("div",{className:"mt-30 text-16 leading-normal tracking-[0.04px]",children:"Estimated Rental Yield (%)"}),(0,l.jsxs)("div",{className:"font-bold text-28 leading-none tracking-[0.1px] md:text-32 lg:text-42",children:[m.toFixed(2),"%"]})]})]})})]})})})}},63248:(e,t,a)=>{a.d(t,{Tabs:()=>n,TabsContent:()=>c,TabsList:()=>i,TabsTrigger:()=>d});var l=a(85664),r=a(40281),s=a(96777);let n=r.bL,i=e=>{let{className:t="",theme:a,ref:n,...i}=e;return(0,l.jsx)(r.B8,{className:(0,s.cn)("relative z-10 flex flex-wrap items-center justify-center p-8","duplex"===a&&"rounded-b-20","beam"===a&&"rounded-t-20 border-bordergray border-t","gable"===a?"border border-bordergray bg-white px-20 max-w-md:justify-between md:px-0":"bg-gray shadow-map",t),ref:n,...i})};i.displayName=r.B8.displayName;let d=e=>{let{className:t="",theme:a,ref:n,...i}=e;return(0,l.jsx)(r.l9,{className:(0,s.cn)("mx-4 inline-flex items-center justify-center border bg-white p-10 text-14 text-primary transition-all disabled:pointer-events-none disabled:opacity-50 data-[state=active]:text-white data-[state=active]:shadow-sm md:px-20 md:font-semibold md:text-15 lg:text-16","fascia"===a?"border-secondary/10 hover:bg-secondary/5 data-[state=active]:border-secondary data-[state=active]:bg-secondary":"border-primary/10 hover:bg-primary/5 data-[state=active]:border-primary data-[state=active]:bg-primary","beam"===a&&"rounded-8","duplex"===a&&"rounded-full","gable"!==a&&"min-w-100","gable"===a&&"!mx-0 !border-0 !px-0 !text-black hover:!bg-white hover:!text-primary data-[state=active]:!border-black data-[state=active]:!bg-white data-[state=active]:!text-black data-[state=active]:!shadow-none md:!mx-20 md:min-w-100 [&>svg]:hidden [&[data-state=active]>span]:text-primary [&[data-state=active]>span]:underline [&[data-state=active]>span]:underline-offset-4",t),...i,ref:n})};d.displayName=r.l9.displayName;let c=e=>{let{className:t="",minimal:a,theme:n,ref:i,...d}=e;return(0,l.jsx)(r.UC,{className:(0,s.cn)("gable"!==n&&"-mt-15 pb-15",!a&&("gable"===n?"!border-y-0":"pt-30"),!a&&"border border-bordergray",!a&&"duplex"!==n&&"gable"!==n&&"shadow-md",!a&&"duplex"===n&&"shadow-testimonial",("beam"===n||"duplex"===n)&&"rounded-b-20",t),...d,ref:i}
1)};c.displayName=r.UC.displayName},81072:(e,t,a)=>{a.d(t,{p:()=>i,r:()=>n});var l=a(85664),r=a(88253),s=a(96777);let n=(0,r.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"]},{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]"}}}),i=e=>{let{className:t,error:a,label:r,placeholder:i,theme:d="beam",type:c="text",ref:o,...m}=e;return(0,l.jsxs)("div",{className:(0,s.cn)("relative transition-all",a?"mb-38":"mb-2"),children:[(0,l.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",a&&"visible top-full opacity-100",!a&&"invisible top-0 opacity-0","beam"===d?"left-10 rounded-b-6":"inset-x-0",t),children:null!=a?a:""}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("input",{className:n({hasError:!!a,theme:d}),placeholder:null!=i?i:r,ref:o,type:c,...m}),"duplex"===d&&(0,l.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:r}})]})]})};i.displayName="Input"},84870:(e,t,a)=>{a.d(t,{k:()=>x});var l=a(63276);let r={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"}]}}
1,n={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"}]}};function i(e,t,a){let l=(100*a).toLocaleString("en-GB",{maximumFractionDigits:2});return 0===e&&Number.isFinite(t)?"".concat(l,"% up to \xa3").concat(t.toLocaleString()):Number.isFinite(t)?"".concat(l,"% from \xa3").concat(e.toLocaleString()," to \xa3").concat(t.toLocaleString()):"".concat(l,"% above \xa3").concat(e.toLocaleString())}function d(e,t){let{currency:a="GBP",truncateDecimals:l=!0}=t||{},r=!l||1e3>Math.abs(e),s=new Intl.NumberFormat("en-GB",{currency:a,maximumFractionDigits:2*!!r,minimumFractionDigits:0,style:"currency"}).format(e);return"USD"===a&&s.startsWith("US$")?s=s.replace("US$","$"):"EUR"===a&&s.startsWith("EUR")&&(s=s.replace("EUR","€")),s}function c(e,t){if(0===e)return{breakdown:[],effectiveRate:0,effectiveRateFormatted:"0%",totalTax:0,totalTaxFormatted:d(0)};let a=0,l=0,r=[];for(let{rate:s,threshold:n}of t){if(e<=a){r.push({label:i(a,n,s),rate:s,tax:0,taxableAmount:0});continue}let t=a,d=Math.min(e,n),c=d-t,o=c*s;if(r.push({label:i(t,d,s),rate:s,tax:o,taxableAmount:c}),l+=o,a=n,!Number.isFinite(n)||e<=n)break}let s=Number.parseFloat((0===e?0:l/e*100).toFixed(2)),n="".concat(s.toString(),"%"),c=d(l);return{breakdown:r,effectiveRate:s,effectiveRateFormatted:n,totalTax:l,totalTaxFormatted:c}}function o(e){let t,{country:a,isCommercial:l,isFirstTimeBuyer:i,isSecondHome:d,purchasePrice:o,tenure:m}=e;if(0===o)return c(0,[]);let x={isCommercial:l,isFirstTimeBuyer:i,isSecondHome:d,purchasePrice:o,tenure:m};switch(a){case"default":t=function(e){let{isCommercial:t,isFirstTimeBuyer:a,isSecondHome:l,purchasePrice:s,tenure:n}=e;return t?"Freehold"===n?r.COMMERCIAL.FREEHOLD:r.COMMERCIAL.LEASEHOLD:l?r.RESIDENTIAL.SECOND_HOME:a&&s<=r.RESIDENTIAL.FIRST_TIME_BUYER.MAX_PURCHASE_PRICE?r.RESIDENTIAL.FIRST_TIME_BUYER.BRACKETS:r.RESIDENTIAL.STANDARD}(x);break;case"scotland":t=function(e){let{isCommercial:t,isFirstTimeBuyer:a,isSecondHome:l,purchasePrice:r,tenure:s}=e;return t?"Freehold"===s?n.COMMERCIAL.FREEHOLD:n.COMMERCIAL.LEASEHOLD:l&&r>n.RESIDENTIAL.SECOND_HOME.NO_TAX_THRESHOLD?n.RESIDENTIAL.SECOND_HOME.BRACKETS:a?n.RESIDENTIAL.FIRST_TIME_BUYER.BRACKETS:n.RESIDENTIAL.STANDARD}(x);break;case"wales":t=function(e){let{isCommercial:t,isSecondHome:a,purchasePrice:l,tenure:r}=e;return t?"Freehold"===r?s.COMMERCIAL.FREEHOLD:s.COMMERCIAL.LEASEHOLD:a&&l>s.RESIDENTIAL.SECOND_HOME.NO_TAX_THRESHOLD?s.RESIDENTIAL.SECOND_HOME.BRACKETS:s.RESIDENTIAL.STANDARD}(x);break;default:throw Error("Unsupported country: ".concat(a))}return c(o,t)}var m=a(15179);function x(e,t,a,r,s){let[n,i]=(0,l.useState)(e),[d,c]=(0,l.useState)(.1*e),[x,h]=(0,l.useState)(25),[u,p]=(0,l.useState)(3.75),[b,g]=(0,l.useState)(!1),[f,v]=(0,l.useState)(!1),N="number"==typeof n?n:0,y="number"==typeof d?d:0,j="number"==typeof x?x:0,w="number"==typeof u?u:0,[k,E]=(0,l.useState)((0,m.ob)(N-y,w,j)),[T,C]=(0,l.useState)(o({country:a,isCommercial:!!s,isFirstTimeBuyer:f,isSecondHome:b,purchasePrice:N,tenure:null!=r?r:"Freehold"}));return(0,l.useEffect)(()=>{E((0,m.ob)(N-y,w,j))},[N,y,j,w]),(0,l.useEffect)(()=>{C(o({country:a,isCommercial:!!s,isFirstTimeBuyer:f,isSecondHome:b,purchasePrice:N,tenure:null!=r?r:"Freehold"}))},[N,b,a,r,f,s]),(0,l.useEffect)(()=>{f&&g(!1)},[f]),(0,l.useEffect)(()=>{b&&v(!1)},[b]),{deposit:d,depositSet:c,duration:x,durationSet:h,firstTimeBuyer:f,firstTimeBuyerSet:v,interest:u,interestSet:p,monthlyPayment:k,secondHome:b,secondHomeSet:g,stampDutyValues:T,value:n,valueSet:i}}},87155:(e,t,a)=>{a.r(t),a.d(t,{Calculators:()=>w});var l=a(85664),r=a(74348),s=a(34989),n=a(96162),i=a(17893),d=a(81072),c=a(87214),o=a(17213),m=a(84870),x=a(96777),h=a(15179);function u(e){let{hideTitle:t=!1,isCommercial:a,mortgageEnquiryContent:r,mortgageEnquiryLink:n,price:i,stampDutyLocation:u,tenure:p}=e,b=a?"commercial":u,{deposit:g,depositSet:f,duration:v,durationSet:N,firstTimeBuyer:y,firstTimeBuyerSet:j,interest:w,interestSet:k,monthlyPayment:E,secondHome:T,secondHomeSet:C,stampDutyValues:F,value:R,valueSet:L}=(0,m.k)(i,b,u,p,a),S="wales"!==u&&"scotland"!==u&&!a,D="".concat(a?"Commercial ":"").concat("wales"===u?"Land Transaction Tax":"scotland"===u?"Land & Buildings Transaction Tax (LBTT)":"Stamp Duty"),I="wales"===u?"land transaction tax":"scotland"===u?"LBTT":"stamp duty",A=S?"".concat(I," rate"):I;return(0,l.jsx)("div",{className:(0,x.cn)("relative pt-39",!t&&"overflow-hidden"),children:(0,l.jsx)("div",{className:(0,s.c)({theme:"fascia"}),children:(0,l.jsxs)("div",{className:(0,x.cn)("flex flex-wrap"),children:[(0,l.jsx)("div",{className:(0,x.cn)("mb-10 w-full bg-primary text-white lg:mb-0 lg:w-1/3"),children:(0,l.jsxs)("div",{className:"flex h-full flex-col justify-center px-24 pt-24 pb-40 lg:px-35 lg:pt-40 xl:px-42",children:[(0,l.jsxs)("div",{className:(0,x.cn)(),children:[(0,l.jsx)(c.J,{className:"!text-14 mb-6 block w-full",htmlFor:"property-value",children:"Property Value (\xa3)"}),(0,l.jsx)(d.p,{id:"property-value",label:"Property Value (\xa3)",onChange:e=>{L(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},theme:"fascia",type:"number",value:R})]}),(0,l.jsxs)("div",{className:(0,x.cn)("mt-15"),children:[(0,l.jsx)(c.J,{className:"!text-14 mb-6 block w-full",htmlFor:"deposit",children:"Deposit (\xa3)"}),(0,l.jsx)(d.p,{id:"deposit",label:"Deposit (\xa3) ".concat((0!==R&&""!==R?(Number(g)/Number(R)*100).toFixed(2):0).toString(),"%"),onChange:e=>{f(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},theme:"fascia",type:"number",value:g})]}),(0,l.jsxs)("div",{className:(0,x.cn)("mt-15"),children:[(0,l.jsx)(c.J,{className:"!text-14 mb-6 block w-full",htmlFor:"duration",children:"Duration (Years)"}),(0,l.jsx)(d.p,{id:"duration",label:"Duration (Years)",onChange:e=>{N(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},theme:"fascia",type:"number",value:v})]}),(0,l.jsxs)("div",{className:(0,x.cn)("mt-15"),children:[(0,l.jsx)(c.J,{className:"!text-14 mb-6 block w-full",htmlFor:"interest",children:"Interest Rate (%)"}),(0,l.jsx)(d.p,{id:"interest",label:"Interest Rate (%)",onChange:e=>{k(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},step:"0.1",theme:"fascia",type:"number",value:w})]}),(0,l.jsx)("div",{className:(0,x.cn)("mt-15",a&&"hidden"),children:(0,l.jsxs)("div",{className:"flex",children:[(0,l.jsx)("input",{checked:T,className:(0,x.cn)("size-24 shrink-0 cursor-pointer border-2 border-bordergray text-secondary ring-0 hover:border-green-2 hover:ring-0 focus:border-green-2 focus:outline-none focus:ring-0"),id:"second-home",onChange:e=>{C(e.target.checked)},type:"checkbox"}),(0,l.jsx)("label",{className:"cursor-pointer pl-15 text-12 leading-[24px]",htmlFor:"second-home",children:"I am buying a second home"})]})}),(0,l.jsx)("div",{className:(0,x.cn)("mt-15",(a||"wales"===u)&&"hidden"),children:(0,l.jsxs)("div",{className:"flex",children:[(0,l.jsx)("input",{checked:y,className:(0,x.cn)("size-24 shrink-0 cursor-pointer border-2 border-bordergray text-secondary ring-0 hover:border-green-2 hover:ring-0 focus:border-green-2 focus:outline-none focus:ring-0"),id:"first-time-buyer",onChange:e=>{j(e.target.checked)},type:"checkbox"}),(0,l.jsx)("label",{className:"cursor-pointer pl-15 text-12 leading-[24px]",htmlFor:"first-time-buyer",children:"I am a first time buyer"})]})})]})}),(0,l.jsx)("div",{className:"mb-10 w-full bg-tertiary text-white md:mb-0 md:w-1/2 lg:w-1/3",children:(0,l.jsxs)("div",{className:"relative flex h-full flex-col justify-between overflow-hidden px-45 py-35",children:[(0,l.jsxs)("div",{className:"relative text-white",children:[(0,l.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,l.jsx)("div",{className:"my-10 text-16 leading-normal tracking-[0.04px]",children:"Estimated Monthly Mortgage Payment:"}),(0,l.jsxs)("div",{className:"mt-20 font-bold text-28 text-secondary leading-none tracking-[0.1px] md:text-32 lg:text-42",children:[(0,h.$g)(Number.isNaN(E)?0:E)," ","/mo."]}),(0,l.jsxs)("div",{className:"mt-17 text-14 leading-normal tracking-[0.03px]",children:[v," Years, ",w,"% Interest"]})]}),(0,l.jsxs)("div",{className:"relative text-white",children:[(0,l.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,l.jsx)("div",{children:"Loan"}),(0,l.jsx)("div",{className:"font-semibold",children:(0,h.$g)(Number(R)-Number(g))})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between py-7 text-14 leading-normal tracking-[0.03px]",children:[(0,l.jsx)("div",{children:"Total Repay"}),(0,l.jsx)("div",{className:"font-semibold",children:(0,h.$g)(Number.isNaN(E)?0:12*E*Number(v))})]})]})]})}),(0,l.jsx)("div",{className:"mb-10 w-full bg-tertiary text-white md:mb-0 md:w-1/2 lg:w-1/3",children:(0,l.jsxs)("div",{className:"relative flex h-full flex-col justify-between overflow-hidden px-45 py-35",children:[(0,l.jsxs)("div",{className:"relative text-white",children:[(0,l.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:D}),(0,l.jsxs)("div",{className:"my-10 text-16 leading-normal tracking-[0.04px]",children:["You’ll have to pay the ",I," of:"]}),(0,l.jsx)("div",{className:"mt-20 font-bold text-28 text-secondary leading-none tracking-[0.1px] md:text-32 lg:text-42",children:F.totalTaxFormatted})]}),(0,l.jsx)("div",{className:"relative text-white",children:!!F.breakdown.length&&(0,l.jsxs)("div",{className:"mt-auto pt-30 pb-7 text-12 leading-normal tracking-[0.03px]",children:[F.breakdown.map(e=>(0,l.jsx)("div",{className:"mt-3 text-balance text-white/70",children:e.label},e.label)),(0,l.jsxs)("div",{className:"mt-3 font-bold",children:["Your effective ",A," is"," ",F.effectiveRateFormatted]})]})})]})}),!!(r||n)&&(0,l.jsxs)("div",{className:"w-full pt-50 text-center",children:[!!r&&(0,l.jsx)("div",{className:"prose xl:prose-lg mx-auto max-w-[580px] text-balance",dangerouslySetInnerHTML:{__html:r}}
1),!!(null==n?void 0:n.url)&&!!n.title&&(0,l.jsx)("div",{className:"mt-35",children:(0,l.jsx)(o.z,{href:n.url,openNewTab:"_blank"===n.target,size:"lg",theme:"fascia",variant:"ghostPrimary",children:(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:n.title}})})})]})]})})})}function p(e){let{hideTitle:t=!1,isCommercial:a,mortgageEnquiryContent:r,mortgageEnquiryLink:s,price:n,stampDutyLocation:i,tenure:u}=e,p=a?"commercial":i,{deposit:b,depositSet:g,duration:f,durationSet:v,firstTimeBuyer:N,firstTimeBuyerSet:y,interest:j,interestSet:w,monthlyPayment:k,secondHome:E,secondHomeSet:T,stampDutyValues:C,value:F,valueSet:R}=(0,m.k)(n,p,i,u,a),L="wales"!==i&&"scotland"!==i&&!a,S="".concat(a?"Commercial ":"").concat("wales"===i?"Land Transaction Tax":"scotland"===i?"Land & Buildings Transaction Tax (LBTT)":"Stamp Duty"),D="wales"===i?"land transaction tax":"scotland"===i?"LBTT":"stamp duty",I=L?"".concat(D," rate"):D;return(0,l.jsx)("div",{className:(0,x.cn)("relative",!t&&"overflow-hidden"),children:(0,l.jsxs)("div",{className:(0,x.cn)("flex flex-wrap"),children:[(0,l.jsx)("div",{className:(0,x.cn)("mb-10 w-full border border-bordergray lg:mb-0 lg:w-1/3"),children:(0,l.jsxs)("div",{className:"flex h-full flex-col justify-center px-24 pt-50 pb-35 lg:px-35 xl:px-42",children:[(0,l.jsxs)("div",{className:(0,x.cn)(),children:[(0,l.jsx)(c.J,{className:"!text-14 mb-6 block w-full",htmlFor:"property-value",children:"Property Value (\xa3)"}),(0,l.jsx)(d.p,{id:"property-value",label:"Property Value (\xa3)",onChange:e=>{R(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},theme:"fascia",type:"number",value:F})]}),(0,l.jsxs)("div",{className:(0,x.cn)("mt-15"),children:[(0,l.jsx)(c.J,{className:"!text-14 mb-6 block w-full",htmlFor:"deposit",children:"Deposit (\xa3)"}),(0,l.jsx)(d.p,{id:"deposit",label:"Deposit (\xa3) ".concat((0!==F&&""!==F?(Number(b)/Number(F)*100).toFixed(2):0).toString(),"%"),onChange:e=>{g(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},theme:"fascia",type:"number",value:b})]}),(0,l.jsxs)("div",{className:(0,x.cn)("mt-15"),children:[(0,l.jsx)(c.J,{className:"!text-14 mb-6 block w-full",htmlFor:"duration",children:"Duration (Years)"}),(0,l.jsx)(d.p,{id:"duration",label:"Duration (Years)",onChange:e=>{v(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},theme:"fascia",type:"number",value:f})]}),(0,l.jsxs)("div",{className:(0,x.cn)("mt-15"),children:[(0,l.jsx)(c.J,{className:"!text-14 mb-6 block w-full",htmlFor:"interest",children:"Interest Rate (%)"}),(0,l.jsx)(d.p,{id:"interest",label:"Interest Rate (%)",onChange:e=>{w(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},step:"0.1",theme:"fascia",type:"number",value:j})]}),(0,l.jsx)("div",{className:(0,x.cn)("mt-15",a&&"hidden"),children:(0,l.jsxs)("div",{className:"flex",children:[(0,l.jsx)("input",{checked:E,className:(0,x.cn)("size-24 shrink-0 cursor-pointer border-2 border-bordergray text-secondary ring-0 hover:border-green-2 hover:ring-0 focus:border-green-2 focus:outline-none focus:ring-0"),id:"second-home",onChange:e=>{T(e.target.checked)},type:"checkbox"}),(0,l.jsx)("label",{className:"cursor-pointer pl-15 text-12 leading-[24px]",htmlFor:"second-home",children:"I am buying a second home"})]})}),(0,l.jsx)("div",{className:(0,x.cn)("mt-15",(a||"wales"===i)&&"hidden"),children:(0,l.jsxs)("div",{className:"flex",children:[(0,l.jsx)("input",{checked:N,className:(0,x.cn)("size-24 shrink-0 cursor-pointer border-2 border-bordergray text-secondary ring-0 hover:border-green-2 hover:ring-0 focus:border-green-2 focus:outline-none focus:ring-0"),id:"first-time-buyer",onChange:e=>{y(e.target.checked)},type:"checkbox"}),(0,l.jsx)("label",{className:"cursor-pointer pl-15 text-12 leading-[24px]",htmlFor:"first-time-buyer",children:"I am a first time buyer"})]})})]})}),(0,l.jsx)("div",{className:"mb-10 w-full border border-bordergray md:mb-0 md:w-1/2 lg:w-1/3",children:(0,l.jsxs)("div",{className:"relative flex h-full flex-col justify-between overflow-hidden px-45 pt-50 pb-35",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("h3",{className:"mb-0 text-balance font-semibold text-20 leading-snug tracking-[0.08px] md:text-24 lg:text-28 xl:text-32",children:"Mortgage"}),(0,l.jsx)("div",{className:"my-10 text-14 leading-normal tracking-[0.04px]",children:"Estimated Monthly Mortgage Payment:"}),(0,l.jsxs)("div",{className:"mt-20 font-bold text-28 text-secondary leading-none tracking-[0.1px] md:text-32 lg:text-42",children:[(0,h.$g)(Number.isNaN(k)?0:k)," ","/mo."]}),(0,l.jsxs)("div",{className:"mt-17 text-14 leading-normal tracking-[0.03px]",children:[f," Years, ",j,"% Interest"]})]}),(0,l.jsxs)("div",{className:"relative",children:[(0,l.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,l.jsx)("div",{children:"Loan"}),(0,l.jsx)("div",{className:"font-semibold",children:(0,h.$g)(Number(F)-Number(b))})]}),(0,l.jsxs)("div",{className:"flex items-center justify-between py-7 text-14 leading-normal tracking-[0.03px]",children:[(0,l.jsx)("div",{children:"Total Repay"}),(0,l.jsx)("div",{className:"font-semibold",children:(0,h.$g)(Number.isNaN(k)?0:12*k*Number(f))})]})]})]})}),(0,l.jsx)("div",{className:"mb-10 w-full border border-bordergray md:mb-0 md:w-1/2 lg:w-1/3",children:(0,l.jsxs)("div",{className:"relative flex h-full flex-col justify-between overflow-hidden px-45 pt-50 pb-35",children:[(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("h3",{className:"mb-0 text-balance font-semibold text-20 leading-snug tracking-[0.08px] md:text-24 lg:text-28 xl:text-32",children:S}),(0,l.jsxs)("div",{className:"my-10 text-14 leading-normal tracking-[0.04px]",children:["You’ll have to pay the ",D," of:"]}),(0,l.jsx)("div",{className:"mt-20 font-bold text-28 text-secondary leading-none tracking-[0.1px] md:text-32 lg:text-42",children:C.totalTaxFormatted})]}),(0,l.jsx)("div",{className:"relative",children:!!C.breakdown.length&&(0,l.jsxs)("div",{className:"mt-auto pt-30 pb-7 text-12 leading-normal tracking-[0.03px]",children:[C.breakdown.map(e=>(0,l.jsx)("div",{className:"mt-3 text-balance text-black/70",children:e.label},e.label)),(0,l.jsxs)("div",{className:"mt-3 font-bold",children:["Your effective ",I," is"," ",C.effectiveRateFormatted]})]})})]})}),!!(r||s)&&(0,l.jsxs)("div",{className:"w-full pt-30 text-center",children:[!!r&&(0,l.jsx)("div",{className:"prose mx-auto max-w-[580px] text-balance",dangerouslySetInnerHTML:{__html:r}}
1),!!(null==s?void 0:s.url)&&!!s.title&&(0,l.jsx)("div",{className:"mt-25",children:(0,l.jsx)(o.z,{href:s.url,openNewTab:"_blank"===s.target,size:"lg",theme:"fascia",variant:"ghostPrimary",children:(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:s.title}})})})]})]})})}var b=a(15651),g=a(51354),f=a(91745);function v(e){let{price:t}=e,{annualRent:a,expenses:r,expensesSet:n,rent:i,rentalYield:o,rentSet:m,value:x,valueSet:u}=(0,f.$)(t);return(0,l.jsx)("div",{className:"relative pt-39",children:(0,l.jsx)("div",{className:(0,s.c)({theme:"fascia"}),children:(0,l.jsxs)("div",{className:"flex flex-wrap",children:[(0,l.jsx)("div",{className:"mb-10 w-full md:mb-0 md:w-1/2",children:(0,l.jsxs)("div",{className:"flex h-full flex-col justify-center bg-primary px-24 pt-24 pb-40 lg:px-35 lg:pt-40 xl:px-42",children:[(0,l.jsxs)("div",{className:"",children:[(0,l.jsx)(c.J,{className:"!text-14 mb-6 block w-full text-white",htmlFor:"property-value",children:"Property Value (\xa3)"}),(0,l.jsx)(d.p,{id:"property-value",label:"Property Value (\xa3)",onChange:e=>{u(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},theme:"fascia",type:"number",value:x})]}),(0,l.jsxs)("div",{className:"mt-15",children:[(0,l.jsx)(c.J,{className:"!text-14 mb-6 block w-full text-white",htmlFor:"monthly-rent",children:"Monthly Rent (\xa3)"}),(0,l.jsx)(d.p,{id:"monthly-rent",label:"Monthly Rent (\xa3)",onChange:e=>{m(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},theme:"fascia",type:"number",value:i})]}),(0,l.jsxs)("div",{className:"mt-15",children:[(0,l.jsx)(c.J,{className:"!text-14 mb-6 block w-full text-white",htmlFor:"annual-expenses",children:"Annual Expenses/Loss (\xa3)"}),(0,l.jsx)(d.p,{id:"annual-expenses",label:"Annual Expenses/Loss (\xa3)",onChange:e=>{n(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},theme:"fascia",type:"number",value:r})]})]})}),(0,l.jsx)("div",{className:"w-full md:w-1/2",children:(0,l.jsx)("div",{className:"relative flex h-full flex-col justify-between overflow-hidden bg-tertiary px-45 py-35",children:(0,l.jsxs)("div",{className:"relative text-white",children:[(0,l.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:"Results"}),(0,l.jsx)("div",{className:"mt-30 text-16 leading-normal tracking-[0.04px]",children:"Estimated Annual Rent (\xa3)"}),(0,l.jsxs)("div",{className:"font-bold text-28 text-secondary leading-none tracking-[0.1px] md:text-32 lg:text-42",children:[(0,h.$g)(a)," /year."]}),(0,l.jsx)("div",{className:"mt-30 text-16 leading-normal tracking-[0.04px]",children:"Estimated Rental Yield (%)"}),(0,l.jsxs)("div",{className:"font-bold text-28 leading-none tracking-[0.1px] md:text-32 lg:text-42",children:[o.toFixed(2),"%"]})]})})})]})})})}function N(e){let{price:t}=e,{annualRent:a,expenses:r,expensesSet:s,rent:n,rentalYield:i,rentSet:o,value:m,valueSet:x}=(0,f.$)(t);return(0,l.jsx)("div",{className:"relative",children:(0,l.jsxs)("div",{className:"flex flex-wrap",children:[(0,l.jsx)("div",{className:"mb-10 w-full md:mb-0 md:w-1/2",children:(0,l.jsxs)("div",{className:"flex h-full flex-col justify-center border border-bordergray bg-bordergray/20 px-24 pt-50 pb-35 lg:px-35 xl:px-42",children:[(0,l.jsxs)("div",{className:"",children:[(0,l.jsx)(c.J,{className:"!text-14 mb-6 block w-full",htmlFor:"property-value",children:"Property Value (\xa3)"}),(0,l.jsx)(d.p,{id:"property-value",label:"Property Value (\xa3)",onChange:e=>{x(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},theme:"fascia",type:"number",value:m})]}),(0,l.jsxs)("div",{className:"mt-15",children:[(0,l.jsx)(c.J,{className:"!text-14 mb-6 block w-full",htmlFor:"monthly-rent",children:"Monthly Rent (\xa3)"}),(0,l.jsx)(d.p,{id:"monthly-rent",label:"Monthly Rent (\xa3)",onChange:e=>{o(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},theme:"fascia",type:"number",value:n})]}),(0,l.jsxs)("div",{className:"mt-15",children:[(0,l.jsx)(c.J,{className:"!text-14 mb-6 block w-full",htmlFor:"annual-expenses",children:"Annual Expenses/Loss (\xa3)"}),(0,l.jsx)(d.p,{id:"annual-expenses",label:"Annual Expenses/Loss (\xa3)",onChange:e=>{s(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},theme:"fascia",type:"number",value:r})]})]})}),(0,l.jsx)("div",{className:"w-full md:w-1/2",children:(0,l.jsx)("div",{className:"relative flex h-full flex-col justify-between overflow-hidden border border-bordergray bg-bordergray/20 px-45 pt-50 pb-35",children:(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsx)("h3",{className:"mb-0 text-balance font-heading font-semibold text-20 leading-snug tracking-[0.08px] md:text-24 lg:text-28 xl:text-32",children:"Results"}),(0,l.jsx)("div",{className:"mt-30 text-16 leading-normal tracking-[0.04px]",children:"Estimated Annual Rent (\xa3)"}),(0,l.jsxs)("div",{className:"font-bold text-28 text-secondary leading-none tracking-[0.1px] md:text-32 lg:text-42",children:[(0,h.$g)(a)," /year."]}),(0,l.jsx)("div",{className:"mt-30 text-16 leading-normal tracking-[0.04px]",children:"Estimated Rental Yield (%)"}),(0,l.jsxs)("div",{className:"font-bold text-28 leading-none tracking-[0.1px] md:text-32 lg:text-42",children:[i.toFixed(2),"%"]})]})})})]})})}var y=a(48306),j=a(63248);function w(e){let{hideTitle:t=!1,isCommercial:a,mortgageEnquiryContent:d,mortgageEnquiryLink:c,price:o,stampDutyLocation:m,tenure:h,theme:f}=e;return(0,l.jsxs)(j.Tabs,{className:(0,x.cn)("chalet"===f?"bg-gray pt-50 xl:pt-65":"xl:pt-30"),defaultValue:"mortgage",children:[(0,l.jsx)("div",{className:(0,x.cn)("chalet"===f&&(0,s.c)({theme:f})),children:(0,l.jsxs)("div",{className:(0,x.cn)("chalet"===f&&"flex flex-wrap items-center justify-between pb-30"),children:[!t&&(0,l.jsx)("div",{className:(0,x.cn)("pb-30","chalet"!==f&&"text-center md:pb-50","chalet"!==f&&"gable"!==f&&(0,s.c)({theme:f}),"chalet"===f&&"w-full md:w-auto md:pb-0"),children:(0,l.jsx)("h2",{className:(0,x.cn)("beam"===f?"font-bold text-20 text-primary leading-normal tracking-[0.07px] md:text-22 lg:text-24 xl:text-28":(0,y.D)({attributes:"duplex"===f||"fascia"===f||"gable"===f?"center":void 0,heading:"duplex"===f||"fascia"===f||"gable"===f?"h2":"h1sm",theme:f})),children:"Property Calculators"})}),(0,l.jsx)("div",{className:(0,x.cn)("chalet"!==f&&"-mb-30 md:mb-0","chalet"!==f&&"gable"!==f&&(0,s.c)({theme:f}),"chalet"===f&&"w-full md:w-auto"),children:(0,l.jsxs)(j.TabsList,{className:(0,x.cn)("chalet"===f&&"!p-0 !shadow-none",("beam"===f||"duplex"===f)&&"md:rounded-20"),theme:f,children:[(0,l.jsxs)(j.TabsTrigger,{className:(0,x.cn)("w-[calc(50%-8px)] lg:w-auto","gable"!==f&&"md:min-w-160 lg:min-w-230"),theme:f,value:"mortgage",children:[(0,l.jsx)(r.I,{className:"mr-10 size-20",name:"fa/money-bill-transfer"}),(0,l.jsxs)("span",{children:["Mortgage"," ",(0,l.jsx)("span",{className:(0,x.cn)("hidden","chalet"===f?"lg:inline":"md:inline"),children:"Calculator"})]})]}),(0,l.jsxs)(j.TabsTrigger,{className:(0,x.cn)("w-[calc(50%-8px)] lg:w-auto","gable"!==f&&"md:min-w-160 lg:min-w-230"),theme:f,value:"yield",children:[(0,l.jsx)(r.I,{className:"mr-10 size-20",name:"bs/piggy-bank"}),(0,l.jsxs)("span",{children:["Yield"," ",(0,l.jsx)("span",{className:(0,x.cn)("hidden","chalet"===f?"lg:inline":"md:inline"),children:"Calculator"})]})]})]})})]})}),(0,l.jsx)(j.TabsContent,{className:(0,x.cn)("chalet"===f&&"!shadow-none"),minimal:!0,theme:f,value:"mortgage",children:"duplex"===f?(0,l.jsx)(i.MortgageCalculatorDuplex,{hideTitle:!0,isCommercial:a,mortgageEnquiryContent:d,mortgageEnquiryLink:c,price:o,stampDutyLocation:m,tenure:h}):"gable"===f?(0,l.jsx)(p,{hideTitle:!0,isCommercial:a,mortgageEnquiryContent:d,mortgageEnquiryLink:c,price:o,stampDutyLocation:m,tenure:h}):"fascia"===f?(0,l.jsx)(u,{hideTitle:!0,isCommercial:a,mortgageEnquiryContent:d,mortgageEnquiryLink:c,price:o,stampDutyLocation:m,tenure:h}):(0,l.jsx)(n.MortgageCalculator,{hideTitle:!0,isCommercial:a,mortgageEnquiryContent:d,mortgageEnquiryLink:c,price:o,stampDutyLocation:m,tenure:h,theme:f})}),(0,l.jsx)(j.TabsContent,{className:(0,x.cn)("chalet"===f&&"!shadow-none"),minimal:!0,theme:f,value:"yield",children:"duplex"===f?(0,l.jsx)(g.YieldCalculatorDuplex,{price:o}):"gable"===f?(0,l.jsx)(N,{price:o}):"fascia"===f?(0,l.jsx)(v,{price:o}):(0,l.jsx)(b.YieldCalculator,{price:o,theme:f})})]})}},87214:(e,t,a)=>{a.d(t,{J:()=>d});var l=a(85664),r=a(35121),s=a(88253),n=a(96777);let i=(0,s.F)("leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{look:{alternative:["!text-12 mb-10 block pl-14 font-semibold tracking-wide opacity-50"],default:["text-17"]}}}),d=e=>{let{className:t,look:a="default",ref:s,...d}=e;return(0,l.jsx)(r.b,{className:(0,n.cn)(i({look:a}),t),ref:s,...d})};d.displayName=r.b.displayName},91745:(e,t,a)=>{a.d(t,{$:()=>r});var l=a(63276);
1function r(e){let[t,a]=(0,l.useState)(e),[r,s]=(0,l.useState)(0),[n,i]=(0,l.useState)(0),[d,c]=(0,l.useState)(0),[o,m]=(0,l.useState)(0);return(0,l.useEffect)(()=>{c(12*("number"==typeof r?r:0))},[r]),(0,l.useEffect)(()=>{let e="number"==typeof n?n:0,a="number"==typeof t?t:0;a>0?m((d-e)/a*100):m(0)},[t,d,n]),{annualRent:d,expenses:n,expensesSet:i,rent:r,rentalYield:o,rentSet:s,value:t,valueSet:a}}},96162:(e,t,a)=>{a.r(t),a.d(t,{MortgageCalculator:()=>m});var l=a(85664),r=a(34989),s=a(48306),n=a(17213),i=a(84870),d=a(96777),c=a(15179);function o(e){let{content:t,link:a,theme:r}=e;return(0,l.jsxs)("div",{className:(0,d.cn)("w-full","chalet"===r?"mt-35 lg:mt-50":"mt-20"),children:[!!t&&(0,l.jsx)("div",{className:"prose xl:prose-lg max-w-[580px]",dangerouslySetInnerHTML:{__html:t}}),!!(null==a?void 0:a.url)&&!!a.title&&(0,l.jsx)("div",{className:"mt-35",children:(0,l.jsx)(n.z,{href:a.url,openNewTab:"_blank"===a.target,size:"apex"===r||"chalet"===r?"md":"default",theme:r,variant:"ghostPrimary",children:(0,l.jsx)("span",{dangerouslySetInnerHTML:{__html:a.title}})})})]})}function m(e){let{hideTitle:t=!1,isCommercial:a,isStandalone:n=!1,mortgageEnquiryContent:m,mortgageEnquiryLink:x,price:h,stampDutyLocation:u,tenure:p,theme:b}=e,g=a?"commercial":u,{deposit:f,depositSet:v,duration:N,durationSet:y,firstTimeBuyer:j,firstTimeBuyerSet:w,interest:k,interestSet:E,monthlyPayment:T,secondHome:C,secondHomeSet:F,stampDutyValues:R,value:L,valueSet:S}=(0,i.k)(h,g,u,p,a),D="wales"!==u&&"scotland"!==u&&!a,I="".concat(a?"Commercial ":"").concat("wales"===u?"Land Transaction Tax":"scotland"===u?"Land & Buildings Transaction Tax (LBTT)":"Stamp Duty"),A="wales"===u?"land transaction tax":"scotland"===u?"LBTT":"stamp duty",M=D?"".concat(A," rate"):A;return(0,l.jsx)("div",{className:(0,d.cn)("relative",!t&&"overflow-hidden","chalet"===b?"bg-gray px-20 pb-50 md:px-0 lg:pb-80":"bg-white",n&&"chalet"===b&&"pt-50 xl:pt-65"),children:(0,l.jsx)("div",{className:(0,r.c)({theme:b}),children:(0,l.jsxs)("div",{className:(0,d.cn)("-mx-20 flex flex-wrap md:mx-0",t&&"chalet"!==b&&"border border-bordergray shadow-md",("beam"===b||"duplex"===b)&&"md:rounded-b-20"),children:[(0,l.jsx)("div",{className:(0,d.cn)("w-full","beam"===b&&"md:w-1/2 md:pr-10","apex"===b&&"md:w-7/12"),children:(0,l.jsx)("div",{className:(0,d.cn)("h-full pb-55","chalet"!==b&&"px-20 pt-50 lg:pb-70 xl:pb-90",("beam"===b||"duplex"===b)&&!t&&"md:rounded-20",("beam"===b||"duplex"===b)&&t&&"md:rounded-b-20","apex"===b&&"xl:pt-90 2xl:pb-130",t?"bg-gray/80":"bg-gray"),children:(0,l.jsxs)("div",{className:(0,d.cn)("beam"===b&&"max-w-[380px]","apex"===b&&"max-w-[500px]","chalet"===b?"-mx-15 flex flex-wrap":"mx-auto"),children:[!t&&(0,l.jsx)("h2",{className:(0,d.cn)("chalet"===b&&"w-full px-15","beam"===b?"font-bold text-20 text-primary leading-normal tracking-[0.07px] md:text-22 lg:text-24 xl:text-28":(0,s.D)({heading:"h1sm",theme:b})),children:"Payment Calculator"}),(0,l.jsxs)("div",{className:(0,d.cn)(!t&&"chalet"!==b&&"mt-30","chalet"===b&&"mt-23 w-full px-15 md:w-1/2"),children:[(0,l.jsx)("label",{className:(0,d.cn)("font-bold text-14 leading-normal tracking-[0.23px]","beam"===b&&"text-green-3",("apex"===b||"chalet"===b)&&"md:text-16"),htmlFor:"property-value",children:"Property Value (\xa3)"}),(0,l.jsx)("input",{className:(0,d.cn)("relative block w-full border-2 border-bordergray bg-white px-16 text-left text-17 text-black leading-[24px] tracking-[0.4px] shadow-none outline-none ring-0 transition-all duration-300 placeholder:text-placeholder hover:border-green-2 focus:z-20 focus:border-green-2 focus:shadow-input-focus focus:outline-none focus:ring-0","beam"===b&&"mt-16 rounded-8 py-10",("apex"===b||"chalet"===b)&&"mt-10 py-12"),id:"property-value",onChange:e=>{S(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},type:"number",value:L})]}),(0,l.jsxs)("div",{className:(0,d.cn)("mt-23","chalet"===b&&"w-full px-15 md:w-1/2"),children:[(0,l.jsxs)("label",{className:(0,d.cn)("flex items-center font-bold text-14 leading-normal tracking-[0.23px]","beam"===b&&"text-green-3",("apex"===b||"chalet"===b)&&"md:text-16"),htmlFor:"deposit",children:["Deposit (\xa3)"," ",(0,l.jsxs)("span",{className:"ml-8 font-bold text-16 text-black",children:[0!==L&&""!==L?(Number(f)/Number(L)*100).toFixed(2):0,"%"]})]}),(0,l.jsx)("input",{className:(0,d.cn)("relative block w-full border-2 border-bordergray bg-white px-16 text-left text-17 text-black leading-[24px] tracking-[0.4px] shadow-none outline-none ring-0 transition-all duration-300 placeholder:text-placeholder hover:border-green-2 focus:z-20 focus:border-green-2 focus:shadow-input-focus focus:outline-none focus:ring-0","beam"===b&&"mt-16 rounded-8 py-10",("apex"===b||"chalet"===b)&&"mt-10 py-12"),id:"deposit",onCh
1ange:e=>{v(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},type:"number",value:f})]}),(0,l.jsxs)("div",{className:(0,d.cn)("mt-23","chalet"===b&&"w-full px-15 md:w-1/2"),children:[(0,l.jsx)("label",{className:(0,d.cn)("font-bold text-14 leading-normal tracking-[0.23px]","beam"===b&&"text-green-3",("apex"===b||"chalet"===b)&&"md:text-16"),htmlFor:"duration",children:"Duration (Years)"}),(0,l.jsx)("input",{className:(0,d.cn)("relative block w-full border-2 border-bordergray bg-white px-16 text-left text-17 text-black leading-[24px] tracking-[0.4px] shadow-none outline-none ring-0 transition-all duration-300 placeholder:text-placeholder hover:border-green-2 focus:z-20 focus:border-green-2 focus:shadow-input-focus focus:outline-none focus:ring-0","beam"===b&&"mt-16 rounded-8 py-10",("apex"===b||"chalet"===b)&&"mt-10 py-12"),id:"duration",onChange:e=>{y(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},type:"number",value:N})]}),(0,l.jsxs)("div",{className:(0,d.cn)("mt-23","chalet"===b&&"w-full px-15 md:w-1/2"),children:[(0,l.jsx)("label",{className:(0,d.cn)("font-bold text-14 leading-normal tracking-[0.23px]","beam"===b&&"text-green-3",("apex"===b||"chalet"===b)&&"md:text-16"),htmlFor:"interest-rate",children:"Interest Rate (%)"}),(0,l.jsx)("input",{className:(0,d.cn)("relative block w-full border-2 border-bordergray bg-white px-16 text-left text-17 text-black leading-[24px] tracking-[0.4px] shadow-none outline-none ring-0 transition-all duration-300 placeholder:text-placeholder hover:border-green-2 focus:z-20 focus:border-green-2 focus:shadow-input-focus focus:outline-none focus:ring-0","beam"===b&&"mt-16 rounded-8 py-10",("apex"===b||"chalet"===b)&&"mt-10 py-12"),id:"interest-rate",onChange:e=>{E(""===e.target.value?"":Number(e.target.value))},onFocus:e=>{e.target.select()},step:"0.1",type:"number",value:k})]}),(0,l.jsx)("div",{className:(0,d.cn)("mt-23","chalet"===b?"w-full px-15 md:w-1/2":"md:pt-20",(a||"wales"===u)&&"hidden"),children:(0,l.jsxs)("div",{className:"flex",children:[(0,l.jsx)("input",{checked:j,className:(0,d.cn)("size-24 shrink-0 cursor-pointer 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","beam"===b&&"rounded-6"),id:"first-time-buyer",onChange:e=>{w(e.target.checked)},type:"checkbox"}),(0,l.jsx)("label",{className:"cursor-pointer pl-15 text-17 leading-normal",htmlFor:"first-time-buyer",children:"I am a first time buyer"})]})}),(0,l.jsx)("div",{className:(0,d.cn)("mt-23","chalet"===b?"w-full px-15 md:w-1/2":"md:pb-20",a&&"hidden"),children:(0,l.jsxs)("div",{className:"flex",children:[(0,l.jsx)("input",{checked:C,className:(0,d.cn)("size-24 shrink-0 cursor-pointer 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","beam"===b&&"rounded-6"),id:"second-home",onChange:e=>{F(e.target.checked)},type:"checkbox"}),(0,l.jsx)("label",{className:"cursor-pointer pl-15 text-17 leading-normal",htmlFor:"second-home",children:"I am buying a second home"})]})}),"chalet"!==b&&!!(m||x)&&(0,l.jsx)(o,{content:m,link:x,theme:b})]})})}),(0,l.jsx)("div",{className:(0,d.cn)("w-full","beam"===b&&"pt-60 md:w-1/2 md:pt-80 md:pl-30 lg:pt-100 lg:pl-50 xl:pl-90","apex"===b&&"flex flex-col justify-center px-20 py-50 md:w-5/12 md:pr-0 md:pl-30 lg:pl-40 xl:pl-50 2xl:pl-90"),children:(0,l.jsxs)("div",{className:(0,d.cn)("chalet"!==b&&"mx-auto max-w-[380px]","beam"===b&&"px-20 md:max-w-full md:px-0","apex"===b&&"md:mx-0","chalet"===b&&"-mx-15 flex flex-wrap"),children:[(0,l.jsxs)("div",{className:(0,d.cn)("chalet"===b&&"w-full px-15 lg:w-1/2"),children:[(0,l.jsx)("h3",{className:(0,d.cn)("font-body text-18 text-primary leading-normal tracking-[0.06px] md:text-20 lg:text-22 xl:text-24","beam"===b?"font-bold":"font-semibold"),children:"Mortgage"}),(0,l.jsx)("div",{className:(0,d.cn)("beam"===b?"mt-6":"mt-15","text-17 text-black leading-normal"),children:"Estimated Monthly Mortgage Payment:"}),(0,l.jsxs)("div",{className:(0,d.cn)("mt-10","beam"===b&&"flex items-baseline"),children:[(0,l.jsxs)("span",{className:(0,d.cn)("font-heading text-22 text-primary","beam"===b&&"font-bold leading-normal tracking-[0.07px] lg:text-24 xl:text-28",("apex"===b||"chalet"===b)&&"block font-medium leading-tight tracking-[0.44px] lg:text-28 xl:text-42","chalet"===b&&"!font-body !font-bold"),children:[(0,c.$g)(Number.isNaN(T)?0:T)," ","/mo."]}),(0,l.jsxs)("span",{className:(0,d.cn)("tracking-[0.23px]","beam"===b?"ml-35 text-14 lg:ml-50":"mt-10 text-18 leading-relaxed","beam"===b&&"text-green-3","apex"===b&&"text-secondary"),children:[N," Years, ",k,"% Interest"]})]}),(0,l.jsxs)("div",{className:(0,d.cn)("flex","apex"===b||"chalet"===b?"mt-20":"mt-40"),children:[(0,l.jsxs)("div",{className:"",children:[(0,l.jsx)("div",{className:"text-17 text-black leading-normal",children:"Loan"}),(0,l.jsx)("div",{className:"mt-10 font-bold text-17 text-black tracking-[0.28px]",children:(0,c.$g)(Number(L)-Number(f))})]}),(0,l.jsxs)("div",{className:"ml-40 md:ml-70 lg:ml-100 xl:ml-[133px]",children:[(0,l.jsx)("div",{className:"text-17 text-black leading-normal",children:"Total Repay"}),(0,l.jsx)("div",{className:"mt-10 font-bold text-17 text-black tracking-[0.28px]",children:(0,c.$g)(Number.isNaN(T)?0:12*T*Number(N))})]})]})]}),(0,l.jsxs)("div",{className:(0,d.cn)("chalet"===b&&"w-full px-15 lg:w-1/2"),children:[(0,l.jsx)("h3",{className:(0,d.cn)("mt-40 text-balance font-body text-18 text-primary leading-normal tracking-[0.06px] md:mt-60 md:text-20 lg:text-22 xl:text-24","beam"
1===b?"font-bold":"font-semibold","chalet"===b&&"lg:mt-0"),children:I}),(0,l.jsxs)("div",{className:(0,d.cn)("beam"===b?"mt-6":"mt-15","text-17 text-black leading-normal"),children:["You’ll have to pay the ",A," of:"]}),(0,l.jsx)("div",{className:(0,d.cn)("mt-10 font-heading text-22 text-primary","beam"===b&&"font-bold leading-normal tracking-[0.07px] lg:text-24 xl:text-28",("apex"===b||"chalet"===b)&&"font-medium leading-tight tracking-[0.44px] lg:text-28 xl:text-42","chalet"===b&&"!font-body !font-bold"),children:R.totalTaxFormatted}),!!R.breakdown.length&&(0,l.jsxs)("div",{className:(0,d.cn)("mt-18 max-w-[380px] text-14 leading-[1.57] tracking-[0.23px]","beam"===b&&"text-green-3",("apex"===b||"chalet"===b)&&"md:text-16","chalet"===b&&"lg:mt-48"),children:[R.breakdown.map(e=>(0,l.jsx)("div",{children:e.label},e.label)),(0,l.jsxs)("div",{className:"font-bold",children:["Your effective ",M," is"," ",R.effectiveRateFormatted]})]})]})]})}),"chalet"===b&&!!(m||x)&&(0,l.jsx)(o,{content:m,link:x,theme:b})]})})})}}}]);

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.