PageSourceSearch

https://cdn3-static.finanztip.de/a0010/ft-ui-calculators/0.56.1/@f…al-estate-transfer-tax-calculator_0.56.1.js

js finanztip.de collected 2026-10-01 08:57:41 UTC 14,146 bytes, 3 lines download raw bytes

1"use strict";(self.webpackChunk_finanztip_ft_ui_calculators=self.webpackChunk_finanztip_ft_ui_calculators||[]).push([[313],{5288:(e,t,r)=>{r.d(t,{A:()=>c});var n=r(9163),o=r(2476),a=r(4577);function i(){return i=Object.assign?Object.assign.bind():function(e2){for(var t2=1;t2<arguments.length;t2++){var r2=arguments[t2];for(var n2 in r2)({}).hasOwnProperty.call(r2,n2)&&(e2[n2]=r2[n2])}return e2},i.apply(null,arguments)}const c=function(e2){var t2=e2.buttonLabel,r2=e2.buttonProps,c2=e2.buttonRef,u=e2.wrapperClassName;return a.createElement("div",{className:(0,o.cn)("flex items-center justify-center py-6 md:py-10",u)},a.createElement("hr",{className:"w-full mr-10 md:block hidden"}),a.createElement(n.$n,i({type:"submit",ref:c2},r2),t2),a.createElement("hr",{className:"w-full ml-10 md:block hidden"}))}},5516:(e,t,r)=>{r.r(t),r.d(t,{RealEstateTransferTaxCalculator:()=>x,default:()=>j});var n=r(9163),o=r(4577),a=r(7442),i=r(5288),c=r(3707);function u(){var e2,t2,r2=typeof Symbol=="function"?Symbol:{},n2=r2.iterator||"@@iterator",o2=r2.toStringTag||"@@toStringTag";function a2(r3,n3,o3,a3){var u2=n3&&n3.prototype instanceof c2?n3:c2,f3=Object.create(u2.prototype);return l(f3,"_invoke",(function(r4,n4,o4){var a4,c3,u3,l2=0,f4=o4||[],s3=!1,m3={p:0,n:0,v:e2,a:p3,f:p3.bind(e2,4),d:function(t3,r5){return a4=t3,c3=0,u3=e2,m3.n=r5,i2}};function p3(r5,n5){for(c3=r5,u3=n5,t2=0;!s3&&l2&&!o5&&t2<f4.length;t2++){var o5,a5=f4[t2],p4=m3.p,d3=a5[2];r5>3?(o5=d3===n5)&&(u3=a5[(c3=a5[4])?5:(c3=3,3)],a5[4]=a5[5]=e2):a5[0]<=p4&&((o5=r5<2&&p4<a5[1])?(c3=0,m3.v=n5,m3.n=a5[1]):p4<d3&&(o5=r5<3||a5[0]>n5||n5>d3)&&(a5[4]=r5,a5[5]=n5,m3.n=d3,c3=0))}if(o5||r5>1)return i2;throw s3=!0,n5}return function(o5,f5,d3){if(l2>1)throw TypeError("Generator is already running");for(s3&&f5===1&&p3(f5,d3),c3=f5,u3=d3;(t2=c3<2?e2:u3)||!s3;){a4||(c3?c3<3?(c3>1&&(m3.n=-1),p3(c3,u3)):m3.n=u3:m3.v=u3);try{if(l2=2,a4){if(c3||(o5="next"),t2=a4[o5]){if(!(t2=t2.call(a4,u3)))throw TypeError("iterator result is not an object");if(!t2.done)return t2;u3=t2.value,c3<2&&(c3=0)}else c3===1&&(t2=a4.return)&&t2.call(a4),c3<2&&(u3=TypeError("The iterator does not provide a '"+o5+"' method"),c3=1);a4=e2}else if((t2=(s3=m3.n<0)?u3:r4.call(n4,m3))!==i2)break}catch(t3){a4=e2,c3=1,u3=t3}finally{l2=1}}return{value:t2,done:s3}}})(r3,o3,a3),!0),f3}var i2={};function c2(){}function f2(){}function s2(){}t2=Object.getPrototypeOf;var m2=[][n2]?t2(t2([][n2]())):(l(t2={},n2,(function(){return this})),t2),p2=s2.prototype=c2.prototype=Object.create(m2);function d2(e3){return Object.setPrototypeOf?Object.setPrototypeOf(e3,s2):(e3.__proto__=s2,l(e3,o2,"GeneratorFunction")),e3.prototype=Object.create(p2),e3}return f2.prototype=s2,l(p2,"constructor",s2),l(s2,"constructor",f2),f2.displayName="GeneratorFunction",l(s2,o2,"GeneratorFunction"),l(p2),l(p2,o2,"Generator"),l(p2,n2,(function(){return this})),l(p2,"toString",(function(){return"[object Generator]"})),(u=function(){return{w:a2,m:d2}})()}function l(e2,t2,r2,n2){var o2=Object.defineProperty;try{o2({},"",{})}catch(e3){o2=0}l=function(e3,t3,r3,n3){if(t3)o2?o2(e3,t3,{value:r3,enumerable:!n3,configurable:!n3,writable:!n3}):e3[t3]=r3;else{var a2=function(t4,r4){l(e3,t4,(function(e4){return this._invoke(t4,r4,e4)}))};a2("next",0),a2("throw",1),a2("return",2)}},l(e2,t2,r2,n2)}function f(e2,t2,r2,n2,o2,a2,i2){try{var c2=e2[a2](i2),u2=c2.value}catch(e3){return void r2(e3)}c2.done?t2(u2):Promise.resolve(u2).then(n2,o2)}function s(e2){return m.apply(this,arguments)}function m(){var e2;return e2=u().m((function e3(t2){var r2,n2,o2,a2,i2;return u().w((function(e4){for(;;)switch(e4.n){case 0:return r2=t2.baseUrl,n2=t2.uri,o2=n2===void 0?"api/v1/real-estate-financing-config":n2,e4.p=1,e4.n=2,fetch("".concat(r2,"/").concat(o2),{method:"GET",headers:{}});case 2:return a2=e4.v,e4.a(2,a2.json());case 3:throw e4.p=3,i2=e4.v,new Error("Error fetching real estate data",{cause:i2});case 4:return e4.a(2)}}),e3,null,[[1,3]])})),m=function(){var t2=this,r2=arguments;return new Promise((function(n2,o2){var a2=e2.apply(t2,r2);function i2(e3){f(a2,n2,o2,i2,c2,"next",e3)}function c2(e3){f(a2,n2,o2,i2,c2,"throw",e3)}i2(void 0)}))}
1,m.apply(this,arguments)}var p=r(6994),d=1e9,v=function(e2){return+e2.replaceAll(".","").replaceAll(",",".")},y=r(9628),b=r(2476);function h(){var e2,t2,r2=typeof Symbol=="function"?Symbol:{},n2=r2.iterator||"@@iterator",o2=r2.toStringTag||"@@toStringTag";function a2(r3,n3,o3,a3){var u3=n3&&n3.prototype instanceof c2?n3:c2,l3=Object.create(u3.prototype);return g(l3,"_invoke",(function(r4,n4,o4){var a4,c3,u4,l4=0,f3=o4||[],s3=!1,m3={p:0,n:0,v:e2,a:p2,f:p2.bind(e2,4),d:function(t3,r5){return a4=t3,c3=0,u4=e2,m3.n=r5,i2}};function p2(r5,n5){for(c3=r5,u4=n5,t2=0;!s3&&l4&&!o5&&t2<f3.length;t2++){var o5,a5=f3[t2],p3=m3.p,d2=a5[2];r5>3?(o5=d2===n5)&&(u4=a5[(c3=a5[4])?5:(c3=3,3)],a5[4]=a5[5]=e2):a5[0]<=p3&&((o5=r5<2&&p3<a5[1])?(c3=0,m3.v=n5,m3.n=a5[1]):p3<d2&&(o5=r5<3||a5[0]>n5||n5>d2)&&(a5[4]=r5,a5[5]=n5,m3.n=d2,c3=0))}if(o5||r5>1)return i2;throw s3=!0,n5}return function(o5,f4,d2){if(l4>1)throw TypeError("Generator is already running");for(s3&&f4===1&&p2(f4,d2),c3=f4,u4=d2;(t2=c3<2?e2:u4)||!s3;){a4||(c3?c3<3?(c3>1&&(m3.n=-1),p2(c3,u4)):m3.n=u4:m3.v=u4);try{if(l4=2,a4){if(c3||(o5="next"),t2=a4[o5]){if(!(t2=t2.call(a4,u4)))throw TypeError("iterator result is not an object");if(!t2.done)return t2;u4=t2.value,c3<2&&(c3=0)}else c3===1&&(t2=a4.return)&&t2.call(a4),c3<2&&(u4=TypeError("The iterator does not provide a '"+o5+"' method"),c3=1);a4=e2}else if((t2=(s3=m3.n<0)?u4:r4.call(n4,m3))!==i2)break}catch(t3){a4=e2,c3=1,u4=t3}finally{l4=1}}return{value:t2,done:s3}}})(r3,o3,a3),!0),l3}var i2={};function c2(){}function u2(){}function l2(){}t2=Object.getPrototypeOf;var f2=[][n2]?t2(t2([][n2]())):(g(t2={},n2,(function(){return this})),t2),s2=l2.prototype=c2.prototype=Object.create(f2);function m2(e3){return Object.setPrototypeOf?Object.setPrototypeOf(e3,l2):(e3.__proto__=l2,g(e3,o2,"GeneratorFunction")),e3.prototype=Object.create(s2),e3}return u2.prototype=l2,g(s2,"constructor",l2),g(l2,"constructor",u2),u2.displayName="GeneratorFunction",g(l2,o2,"GeneratorFunction"),g(s2),g(s2,o2,"Generator"),g(s2,n2,(function(){return this})),g(s2,"toString",(function(){return"[object Generator]"})),(h=function(){return{w:a2,m:m2}})()}function g(e2,t2,r2,n2){var o2=Object.defineProperty;try{o2({},"",{})}catch(e3){o2=0}g=function(e3,t3,r3,n3){if(t3)o2?o2(e3,t3,{value:r3,enumerable:!n3,configurable:!n3,writable:!n3}):e3[t3]=r3;else{var a2=function(t4,r4){g(e3,t4,(function(e4){return this._invoke(t4,r4,e4)}))};a2("next",0),a2("throw",1),a2("return",2)}},g(e2,t2,r2,n2)}function w(e2,t2,r2,n2,o2,a2,i2){try{var c2=e2[a2](i2),u2=c2.value}catch(e3){return void r2(e3)}c2.done?t2(u2):Promise.resolve(u2).then(n2,o2)}function E(e2,t2){return(function(e3){if(Array.isArray(e3))return e3})(e2)||(function(e3,t3){var r2=e3==null?null:typeof Symbol!="undefined"&&e3[Symbol.iterator]||e3["@@iterator"];if(r2!=null){var n2,o2,a2,i2,c2=[],u2=!0,l2=!1;try{if(a2=(r2=r2.call(e3)).next,t3===0){if(Object(r2)!==r2)return;u2=!1}else for(;!(u2=(n2=a2.call(r2)).done)&&(c2.push(n2.value),c2.length!==t3);u2=!0);}catch(e4){l2=!0,o2=e4}finally{try{if(!u2&&r2.return!=null&&(i2=r2.return(),Object(i2)!==i2))return}finally{if(l2)throw o2}}return c2}})(e2,t2)||(function(e3,t3){if(e3){if(typeof e3=="string")return S(e3,t3);var r2={}.toString.call(e3).slice(8,-1);return r2==="Object"&&e3.constructor&&(r2=e3.constructor.name),r2==="Map"||r2==="Set"?Array.from(e3):r2==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r2)?S(e3,t3):void 0}})(e2,t2)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function S(e2,t2){(t2==null||t2>e2.length)&&(t2=e2.length);for(var r2=0,n2=Array(t2);r2<t2;r2++)n2[r2]=e2[r2];return n2}var x=function(e2){var t2=e2.baseUrl,r2=e2.initialConfig,u2=E(o.useState(r2),2),l2=u2[0],f2=u2[1],m2=E(o.useState("400.000"),2),g2=m2[0],S2=m2[1],x2=E(o.use
2State("400.000"),2),j2=x2[0],T=x2[1],O=E(o.useState(0),2),_=O[0],N=O[1],A=E(o.useState(!1),2),P=A[0],C=A[1],k=E(o.useState(""),2),G=k[0],I=k[1],F=E(o.useState("Nordrhein-Westfalen"),2),z=F[0],R=F[1],q=o.useRef(null);o.useEffect((function(){if(!r2){var e3=(function(){var e4,r3=(e4=h().m((function e5(){var r4;return h().w((function(e6){for(;;)switch(e6.n){case 0:return e6.n=1,s({baseUrl:t2});case 1:r4=e6.v,f2(r4.transferTaxConfig);case 2:return e6.a(2)}}),e5)})),function(){var t3=this,r4=arguments;return new Promise((function(n2,o2){var a2=e4.apply(t3,r4);function i2(e5){w(a2,n2,o2,i2,c2,"next",e5)}function c2(e5){w(a2,n2,o2,i2,c2,"throw",e5)}i2(void 0)}))});return function(){return r3.apply(this,arguments)}})();e3()}}),[]),o.useEffect((function(){var e3=window.setTimeout((function(){var e4=(function(e5){if(!e5||e5.endsWith(",")||e5.endsWith("."))return e5;var t3=v(e5);return new Intl.NumberFormat("de-DE",{style:"currency",currency:"EUR",maximumFractionDigits:2}).format(t3).slice(0,-2).replace(/,00$/,"")})(g2);e4!==j2&&T(e4)}),800);return function(){return window.clearTimeout(e3)}}),[j2,g2]),o.useEffect((function(){var e3;P&&((e3=q.current)===null||e3===void 0||e3.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}))}),[P]);var U,B,D=function(){var e3,t3=!((e3=v(g2))<1||e3>d);return I(t3?"":"Bitte gib eine ganze Zahl von 1 bis 1.000.000.000 ein."),t3},L=l2==null?void 0:l2.find((function(e3){return e3.state===z}));return o.createElement("form",{className:"real-estate-transfer-tax-calculator w-full font-inter text-slate",onSubmit:function(e3){e3.preventDefault();var t3=l2.find((function(e4){return e4.state===z}));D()?(N((function(e4,t4){return v(e4)*(t4/100)})(g2,t3.landTransferTaxPercent)),C(!0)):(0,y.YX)()},noValidate:!0},o.createElement("div",{className:"relative z-[60] md:flex md:flex-row md:justify-around"},o.createElement("div",{className:"relative z-[60] md:w-1/2 md:pr-6"},o.createElement(n.wi,{id:"real-estate-transfer-tax-purchase-price",label:"Kaufpreis der Immobilie",value:j2,type:"text",inputMode:"decimal",pattern:"[0-9,.]*",min:1,max:d,labelInside:"€",error:G,showError:!!G,inputLabelClassName:"error-msg-class",onChange:function(e3){var t3=e3.target.value.replace(/[^0-9.,]+/g,"").replace(/\.(?=.*[,])/g,"").replace(/,+/g,",").replace(/,(?=.*,)/g,"");S2(t3),T(t3),I("")},onBlur:D})),o.createElement("div",{className:"relative z-[60] pt-4 md:w-1/2 md:pl-6 md:pt-0"},o.createElement(a.A,{id:"real-estate-transfer-tax-region",label:"Bundesland der Immobilie",textSize:"sm",value:z,options:(l2!=null?l2:[]).map((function(e3){return{value:e3.state,label:e3.state}})),onChange:R}))),o.createElement(i.A,{buttonLabel:"Jetzt berechnen",wrapperClassName:"primary-button-section mt-6 py-0 md:mt-10 md:py-0",buttonProps:{onClick:function(){(0,b.oA)({event:"trigger",eventCategory:"rechner_submit",eventElement:"ftcalculators_realestatecalculator",eventPath:window.location.pathname})}}}),P?o.createElement("div",{ref:q,className:"pt-8 md:pt-10","aria-live":"polite"},o.createElement("div",{className:"flex w-full items-start justify-between self-stretch pb-2"},o.createElement("div",{className:"flex items-center self-start"},o.createElement("span",{className:"mr-2 text-base font-normal leading-[26px] md:text-lg"},"Grunderwerbsteuer"),o.createElement(c.A,{tooltip:"".concat((0,p.Ee)(L.landTransferTaxPercent)," in ").concat(z),tooltipIconSize:"s",wrapperClassName:"my-auto"})),o.createElement("span",{className:"text-base font-bold leading-[26px] md:text-lg"},(U=_,(B=new Intl.NumberFormat("de-DE",{style:"currency",currency:"EUR",maximumFractionDigits:2}).format(U).slice(0,-2)).endsWith(",00")&&(B=B.slice(0,-3)),"".concat(B," €"))))):null)};const j=x},9628:(e,t,r)=>{r.d(t,{L9:()=>l,YX:()=>c,lT:()=>u});var n=r(2476);function o(e2,t2){var r2=typeof Symbol!="undefined"&&e2[Symbol.iterator]||e2["@@iterator"];if(!r2){if(Array.isArray(e2)||(r2=(function(e3,t3){if(e3){if(typeof e3=="string")return a(e3,t3);var r3={}.toString.call(e3).slice(8,-1);return r3==="Object"&&e3.constructor&&(r3=e3.constructor.name),r3==="Map"||r3==="Set"?Array.from(e3):r3==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r3)?a(e3,t3):void 0}})(e2))||t2&&e2&&typeof e2.length=="number"){r2&&(e2=r2);var n2=0,o2=function(){};return{s:o2,n:function(){return n2>=e2.length?{done:!0}
2:{done:!1,value:e2[n2++]}},e:function(e3){throw e3},f:o2}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i2,c2=!0,u2=!1;return{s:function(){r2=r2.call(e2)},n:function(){var e3=r2.next();return c2=e3.done,e3},e:function(e3){u2=!0,i2=e3},f:function(){try{c2||r2.return==null||r2.return()}finally{if(u2)throw i2}}}}function a(e2,t2){(t2==null||t2>e2.length)&&(t2=e2.length);for(var r2=0,n2=Array(t2);r2<t2;r2++)n2[r2]=e2[r2];return n2}var i=function(e2){var t2,r2,o2=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"down",a2=window.scrollY+e2.getBoundingClientRect().top,i2=(0,n.km)(),c2=(t2=i2==null?void 0:i2.clientHeight)!==null&&t2!==void 0?t2:0,u2=i2==null?void 0:i2.querySelector(".main-navigation-hover-area"),l2=document.querySelector(".app-banner-container"),f=document.querySelector(".app-banner-container.\\!tw-fc-hidden"),s=(r2=u2==null?void 0:u2.clientHeight)!==null&&r2!==void 0?r2:0;u2&&o2==="up"&&(s=72);var m=0;return(0,n.Fr)()&&(f||l2===null?m=s:l2&&(m=s-l2.clientHeight),o2==="down"&&e2.getBoundingClientRect().top<0&&(m-=s)),o2==="up"?a2-c2-m:a2-c2+m},c=function(){setTimeout((function(){var e2=document.querySelector(".error-msg-class");if(!e2){var t2,r2=o(document.querySelectorAll("[data-container-index]"));try{for(r2.s();!(t2=r2.n()).done;){var n2=t2.value.shadowRoot;if(n2){var a2=n2.querySelector(".error-msg-class");if(a2){e2=a2;break}}}}catch(e3){r2.e(e3)}finally{r2.f()}}if(e2){var c2=window.scrollY,u2=i(e2)>c2?"down":"up";window.scrollTo({top:i(e2,u2),behavior:"smooth"})}}),0)},u=function(e2){e2&&window.scrollTo({top:i(e2),behavior:"smooth"})},l=typeof document!="undefined"&&!!document.querySelector(".ft-calculator-guide")}}]);

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.