1import{i as t,g as e,z as i,e as s,b as r}from"./pp-accordion-CA6w9In6.js";import{q as n}from"./pp-highcharts-D5Crk9o0.js";import"./pp-facet-dropdown-FY1eeaHH.js";class a extends t{static get properties(){return{textMinimum:{type:String,attribute:"text-minimum"},textMaximum:{type:String,attribute:"text-maximum"},difference:{reflect:!0},inputValue:{reflect:!0},resultDescription:{reflect:!0}}}constructor(){super(),this._children=e(this,["pp-text"]),this.difference=0,this.setAttribute("role","status"),this.setAttribute("aria-live","polite"),window.addEventListener(n,this.results)}results=t=>{this.difference=t.detail.difference,this.inputValue=i(t.detail.inputValue),this.resultDescription=t.detail.resultDescription,this.defaultDescription=t.detail.defaultDescription,this.textAfterResult=this.difference>0?this.textMaximum:this.textMinimum};get classMapDifference(){return{"text-static-4":this.difference<0,"text-static-7":this.difference>0}}changeNumberIntoCurrencyString(t){return t.toString().replace(".",",")}render(){return r` 2 <div class="text-16 text-static-1"> 3 ${this._children["pp-text"]} 4 </div> 5 <div class="text-32 text-static-1 my-24"> 6 = ${this.inputValue} 7 </div> 8 <p class=" text-16 font-bold ${s(this.classMapDifference)}"> 9 <span>${this.changeNumberIntoCurrencyString(this.difference)}</span> 10 ${this.textAfterResult} 11 </p> 12 <div class="text-16 text-static-1"> 13 ${this.resultDescription} 14 </div> 15 `}createRenderRoot(){return this}}customElements.define("pp-status",a);export{a 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.