1import{_ as c}from"./ettF49K9.js";import{_ as f,o as v,n as u,w as r,a as n,z as h,H as l,b as d,R as s,u as p,T as b}from"./BwjkGPNs.js";const F={name:"FavButton",props:{type:{type:String,required:!0},item:{type:Object,required:!0},size:{type:String,default:"sm"}},setup(){var{t}=p();return{t}},computed:{isFilled(){var{isFav:t}=s();return t(this.type,this.item.id)},sizeClass(){return"fav-btn--"+this.size}},mounted(){if(this.isFilled){var{updateItem:t}=s();t(this.type,this.item)}},methods:{handleClick(){var{toggle:t}=s();t(this.type,this.item)}}},C=["aria-label","title","aria-pressed"],y=["aria-label","title"];function k(t,i,x,a,z,e){const o=c,m=b;return v(),u(m,null,{fallback:r(()=>[n("button",{class:l(["fav-btn",e.sizeClass]),"aria-label":a.t("common.add_to_favorites","Add to favorites"),title:a.t("common.add_to_favorites","Add to favorites")},[d(o,{name:"far-fa-star"})],10,y)]),default:r(()=>[n("button",{class:l(["fav-btn",[{active:e.isFilled},e.sizeClass]]),"aria-label":e.isFilled?a.t("common.remove_from_favorites","Remove from favorites"):a.t("common.add_to_favorites","Add to favorites"),title:e.isFilled?a.t("common.remove_from_favorites","Remove from favorites"):a.t("common.add_to_favorites","Add to favorites"),"aria-pressed":e.isFilled?"true":"false",onClick:i[0]||(i[0]=h((..._)=>e.handleClick&&e.handleClick(..._),["stop","prevent"]))},[d(o,{name:e.isFilled?"fa-star":"far-fa-star"},null,8,["name"])],10,C)]),_:1})}const A=Object.assign(f(F,[["render",k]]),{__name:"FavButton"});export{A as _};
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.