import{c as A}from"./chunk-HP6GYALN.js";import{eb as _,l as $,s as w}from"./chunk-YMPBRAMJ.js";import{L as y,Pa as D,Qa as T,Ta as U,U as s,V as F,tb as j,ub as k}from"./chunk-6564DHLL.js";import{$b as v,Fc as d,Gc as g,Hc as S,Qb as l,Rc as b,_b as I,ac as n,bc as c,cc as p,ib as o,ob as m,qc as x,sa as C,ta as h,yb as u}from"./chunk-YRCUNHHT.js";import{a as r}from"./chunk-2AVGQ2MQ.js";var E=(i,a)=>a[0];function H(i,a){if(i&1&&(n(0,"c-col",2),C(),p(1,"svg",3),h(),n(2,"div"),d(3),c()()),i&2){let t=a.$implicit,e=x();l("md",3)("sm",4)("xl",2)("xs",6),o(),l("name",t[0])("title",t[0]),o(2),g(e.toKebabCase(t[0]))}}var O=(()=>{class i{constructor(t,e){this.route=t,this.iconSet=e,this.title="CoreUI Icons",e.icons=r(r(r({},_),$),w)}ngOnInit(){let t=this.route?.routeConfig?.path,e="cil";t==="coreui-icons"?(this.title=`${this.title} - Free`,e="cil"):t==="brands"?(this.title=`${this.title} - Brands`,e="cib"):t==="flags"&&(this.title=`${this.title} - Flags`,e="cif"),this.icons=this.getIconsView(e)}toKebabCase(t){return t.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase()}getIconsView(t){return Object.entries(this.iconSet.icons).filter(e=>e[0].startsWith(t))}static{this.\u0275fac=function(e){return new(e||i)(m(y),m(s))}}static{this.\u0275cmp=u({type:i,selectors:[["ng-component"]],features:[b([s])],decls:8,vars:1,consts:[["href","https://github.com/coreui/coreui-icons","text","GitHub"],[1,"text-center"],[1,"mb-5",3,"md","sm","xl","xs"],["cIcon","","size","3xl",3,"name","title"]],template:function(e,f){e&1&&(n(0,"c-card")(1,"c-card-header"),d(2),p(3,"app-docs-link",0),c(),n(4,"c-card-body")(5,"c-row",1),I(6,H,4,7,"c-col",2,E),c()()()),e&2&&(o(2),S(" ",f.title," "),o(4),v(f.icons))},dependencies:[D,U,T,j,A,F,k],encapsulation:2})}}return i})();export{O as CoreUIIconsComponent};
