import{LocalizeController as i}from"./chunk.2A3352EO.js";import{ShoelaceElement as t}from"./chunk.Z7XDKKOD.js";import{__decorateClass as r}from"./chunk.6M63UXML.js";import{property as m}from"../../../../lit/decorators.js";var e=class extends t{constructor(){super(...arguments),this.localize=new i(this),this.value=0,this.type="decimal",this.noGrouping=!1,this.currency="USD",this.currencyDisplay="symbol"}render(){return isNaN(this.value)?"":this.localize.number(this.value,{style:this.type,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:!this.noGrouping,minimumIntegerDigits:this.minimumIntegerDigits,minimumFractionDigits:this.minimumFractionDigits,maximumFractionDigits:this.maximumFractionDigits,minimumSignificantDigits:this.minimumSignificantDigits,maximumSignificantDigits:this.maximumSignificantDigits})}};r([m({type:Number})],e.prototype,"value",2),r([m()],e.prototype,"type",2),r([m({attribute:"no-grouping",type:Boolean})],e.prototype,"noGrouping",2),r([m()],e.prototype,"currency",2),r([m({attribute:"currency-display"})],e.prototype,"currencyDisplay",2),r([m({attribute:"minimum-integer-digits",type:Number})],e.prototype,"minimumIntegerDigits",2),r([m({attribute:"minimum-fraction-digits",type:Number})],e.prototype,"minimumFractionDigits",2),r([m({attribute:"maximum-fraction-digits",type:Number})],e.prototype,"maximumFractionDigits",2),r([m({attribute:"minimum-significant-digits",type:Number})],e.prototype,"minimumSignificantDigits",2),r([m({attribute:"maximum-significant-digits",type:Number})],e.prototype,"maximumSignificantDigits",2);export{e as SlFormatNumber};