1import{u as f}from"./chunk-YQ6BOFOC.js";import{a as n}from"./chunk-5PASVARH.js";import{i as c}from"./chunk-JPIUVRHT.js";import{ga as s,la as e,t as a}from"./chunk-QLDFHHJL.js";var w=(()=>{class r{constructor(){this.apollo=e(c),this.cardCacheService=e(n)}async toggle(o){if(!o)throw new Error("listingId is required");let t=await a(this.apollo.mutate({mutation:f,variables:{listingId:o}}));if(t.error)throw new Error(t.error.message||"favoriteListing failed");let i=!!t.data?.favoriteListing;return this.cardCacheService.updateCardFavoriteStatus(o,i),i}static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275prov=s({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{w as a};
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.