1import{e}from"/assets/application-pevgkcf3.digested.js";import"/assets/application-ssy074d0.digested.js";import{Pn,Rn,Ke,Ce,yt,F}from"/assets/application-kkeexcyy.digested.js";import{Zr,Ee}from"/assets/application-jb81kt7z.digested.js";import"/assets/application-rr4xkcks.digested.js";var s='meta[name="session-runtime"][content="disabled"]';class d extends e{static targets=["button","counter","icon"];static values={id:Number,type:{type:String,default:"property"}};connect(){if(this.updateUI(),!document.querySelector(s))return;window.addEventListener("favorites:changed",this),F()}disconnect(){window.removeEventListener("favorites:changed",this)}handleEvent(){this.updateUI()}toggle(a){let i=Ke(this.typeValue,this.idValue);this.updateUI();let t=()=>Ce(this.typeValue);if(i)Ee(a.currentTarget,Zr,{onComplete:t});else t()}updateUI(){yt(this,this.hasButtonTarget||this.hasIconTarget?Pn(this.typeValue,this.idValue):!1,this.hasCounterTarget?Rn(this.typeValue):0)}}export{d as default}; 2 3//# debugId=AAFD8E0446307B4C64756E2164756E21
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.