import{j as v}from"./chunk-6O7LEHSR.js";import{Bb as h,Cb as d,Ia as l,Sc as g,cb as p,da as s,ha as a,kc as m,lb as o,lc as f,ra as u}from"./chunk-OE6O4GF6.js";var M=["*"],i=class{constructor(n){this.icons=n}};function j(e){return e.toLowerCase().replace(/(?:^\w|[A-Z]|\b\w)/g,n=>n.toUpperCase()).replace(/[-_]/g,"")}var x=(()=>{class e{constructor(t,c,r,C){this.elem=t,this.changeDetector=c,this.icons=r,this.sanitizer=C}ngOnChanges(t){let r=Object.assign({},...this.icons)[j(t.name.currentValue)]||"";r||console.warn(`Icon not found: ${t.name.currentValue}
Refer to documentation on https://github.com/michaelbazos/angular-feather`),this.elem.nativeElement.innerHTML=this.sanitizer.sanitize(p.HTML,this.sanitizer.bypassSecurityTrustHtml(r)),this.changeDetector.markForCheck()}}return e.\u0275fac=function(t){return new(t||e)(o(l),o(g),o(i),o(v))},e.\u0275cmp=h({type:e,selectors:[["i-feather"],["feather-icon"]],inputs:{name:"name"},standalone:!1,features:[u],ngContentSelectors:M,decls:1,vars:0,template:function(t,c){t&1&&(m(),f(0))},styles:["[_nghost-%COMP%]{display:inline-block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2px;stroke-linecap:round;stroke-linejoin:round}"]}),e})(),O=(()=>{class e{constructor(t){if(this.icons=t,!this.icons)throw new Error(`No icon provided. Make sure to use 'FeatherModule.pick({ ... })' when importing the module
Refer to documentation on https://github.com/michaelbazos/angular-feather`)}static pick(t){return{ngModule:e,providers:[{provide:i,multi:!0,useValue:t}]}}}return e.\u0275fac=function(t){return new(t||e)(a(i,8))},e.\u0275mod=d({type:e}),e.\u0275inj=s({}),e})();export{x as a,O as b};
