1import{i as t,g as e,z as r,A as s,b as a}from"./pp-accordion-CA6w9In6.js";class n extends t{static get properties(){return{answerId:{attribute:"answer-id",type:String},dataStore:{type:String,attribute:"data-store"},data:{type:Object,state:!0},lumpSumAllowanceGroup2:{type:Number,attribute:"lump-sum-allowance-group-2"}}}constructor(){super(),this._children=e(this,["pp-headline","pp-answer"]),this.lumpSumAllowanceGroup2=538}connectedCallback(){super.connectedCallback(),this.data={...window[this.dataStore]}}get result(){if(!Object.keys(this.data).length)return"Keine Daten";const t=parseFloat(this.data.grossIncome);if(Number.isNaN(t))return"Ungültiger Wert für Brutto-Einkommen";const e=t<0?0:t,s=this.data.isWorking||this.data.isAbove25?100:this.lumpSumAllowanceGroup2,a={income:e>=520?520:e,result(){const t=.2*(this.income-s);return t<0?0:t}},n={income:e>=1e3?1e3:e,result(){const t=.3*(this.income-520);return t<0?0:t}},i={threshold:this.data.hasChildren?1500:1200,income(){return e>=this.threshold?this.threshold:e},result(){const t=.1*(this.income()-1e3);return t<0?0:t}},o=s+a.result()+n.result()+i.result(),l=o>e?e:o;return"number"==typeof l?r(l,{currencyDisplay:"name"}):l}get footer(){const t=this._children?.["pp-answer"];return t?a` 2 <div class="container bg-module-bg-1"> 3 <div class="row justify-center"> 4 <div class="col-8 border-line-1 border-b-2 mb-40"></div> 5 </div> 6 </div> 7 ${t} 8 `:s}render(){return a` 9 <div id="${this.answerId}"> 10 <pp-answer> 11 <div data-slot="pp-headline"> 12 ${this._children["pp-headline"]} 13 </div> 14 <div data-slot="html-collection"> 15 <span 16 class="qs-allowance-calc-result font-bold text-32" 17 > 18 ${this.result} 19 </span> 20 </div> 21 </pp-answer> 22 ${this.footer} 23 </div> 24 `}createRenderRoot(){return this}}customElements.define("pp-allowance-calculator",n);export{n as default};
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.