import{a as f}from"./chunk-AKTZMHDJ.js";import{Bb as o,Ra as l,Ya as s,ma as n}from"./chunk-KBLF2WKH.js";var m=(()=>{let i=class i{constructor(a,e){this.el=a,this.imageUrlService=e,this.fallbackType="avatar",this.hasTriedFallback=!1}onError(a){if(!this.hasTriedFallback){this.hasTriedFallback=!0;let e=this.imageUrlService.getFallbackImage(this.fallbackType);this.el.nativeElement.src=e,console.log(`\u{1F5BC}\uFE0F Image fallback applied: ${this.fallbackType} \u2192 ${e}`)}}onLoad(a){this.hasTriedFallback=!1}};i.\u0275fac=function(e){return new(e||i)(l(n),l(f))},i.\u0275dir=s({type:i,selectors:[["","appImageFallback",""]],hostBindings:function(e,c){e&1&&o("error",function(r){return c.onError(r)})("load",function(r){return c.onLoad(r)})},inputs:{fallbackType:[0,"appImageFallback","fallbackType"]}});let t=i;return t})();export{m as a};
