import{ab as _,l as w,s as F}from"./chunk-FZ44MS6K.js";import{c as E}from"./chunk-AEY3DO2Q.js";import{ab as k,bb as A,k as $,qa as T,ra as U,t as s,u as D,ua as j}from"./chunk-RIXYHOD2.js";import{Ba as u,Ca as h,Gc as b,Hc as y,Mb as l,Wb as I,Xb as v,Yb as o,Zb as c,_b as p,hc as x,kb as n,lb as m,oa as C,vc as d,wc as S,xc as g}from"./chunk-7RF4FE4V.js";import{a as r}from"./chunk-WWX6BADO.js";var H=(i,a)=>a[0];function L(i,a){if(i&1&&(o(0,"c-col",2),u(),p(1,"svg",3),h(),o(2,"div"),d(3),c()()),i&2){let t=a.$implicit,e=x();l("md",3)("sm",4)("xl",2)("xs",6),n(),l("name",t[0])("title",t[0]),n(2),S(e.toKebabCase(t[0]))}}var R=(()=>{class i{constructor(t,e){this.route=t,this.iconSet=e,this.title="CoreUI Icons",e.icons=r(r(r({},_),w),F)}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($),m(s))}}static{this.\u0275cmp=C({type:i,selectors:[["ng-component"]],standalone:!0,features:[b([s]),y],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&&(o(0,"c-card")(1,"c-card-header"),d(2),p(3,"app-docs-link",0),c(),o(4,"c-card-body")(5,"c-row",1),I(6,L,4,7,"c-col",2,H),c()()()),e&2&&(n(2),g(" ",f.title," "),n(4),v(f.icons))},dependencies:[T,j,U,k,E,D,A],encapsulation:2})}}return i})();export{R as CoreUIIconsComponent};
