import{LitElement as e}from"../../../lit/index.js";class PaperIconStepper extends e{static get tag(){return"paper-icon-stepper"}constructor(){super(),this.selectedValues=[],this._selected=-1}updated(e){e.forEach(((e,t)=>{"selectedValues"==t&&this.dispatchEvent(new CustomEvent("selected-values-changed",{detail:{value:this[t]}}))}))}static get properties(){return{selectedValues:{type:Array,attribute:"selected-values"},_selected:{type:Number}}}previous(){if(!(this._selected<0)){var e=this.selectedValues.indexOf(this._selected);this.selectedValues.splice(e,1),this._selected--}}next(){this._selected!==this._items.length-1&&(this._selected>=0?this._selected++:this.selectedValues.length<=0?this._selected=0:this._selected=this.selectedValues[this.selectedValues.length]++,this.selectedValues.push(this._selected))}clear(){this.selectedValues=[],this._selected=-1}_onItemsChanged(e){this._items=this.shadowRoot.querySelector("#selector").items}}customElements.define(PaperIconStepper.tag,PaperIconStepper);export{PaperIconStepper};