import{a as W}from"./chunk-ISBJRZ42.js";import{Aa as y,Ba as r,Ca as c,Da as w,Ka as d,M as h,Sa as _,Ta as x,Va as B,ba as o,ca as u,gb as D,gc as k,ha as m,ma as g,qa as l,qd as I,rd as R,ta as b,te as S,wa as f,ya as v,za as C}from"./chunk-7SK34GC7.js";import{a as i,b as s}from"./chunk-JKOY2XUY.js";function T(e,p){if(e&1&&(r(0,"c-chart",5,0),x(2),c()),e&2){let t=_(1),a=d().$implicit,n=d();l("data",a.data)("options",n.chartOptions),o(2),B(" ",t.id," ")}}function M(e,p){if(e&1&&(r(0,"c-col",2)(1,"c-widget-stat-d",3),h(),w(2,"svg",4),g(3,T,3,3,"c-chart",5),c()()),e&2){let t,a,n=p.$implicit,F=d();o(),b((t=n.capBg)!==null&&t!==void 0?t:null),l("color",(a=n.color)!==null&&a!==void 0?a:"")("values",n.values),o(),l("name",n.icon),o(),f(F.withCharts?3:-1)}}var O=(()=>{class e{constructor(t){this.changeDetectorRef=t,this.chartOptions={elements:{line:{tension:.4},point:{radius:0,hitRadius:10,hoverRadius:4,hoverBorderWidth:3}},maintainAspectRatio:!1,plugins:{legend:{display:!1}},scales:{x:{display:!1},y:{display:!1}}},this.labels=["January","February","March","April","May","June","July"],this.datasets={borderWidth:2,fill:!0},this.colors={backgroundColor:"rgba(255,255,255,.1)",borderColor:"rgba(255,255,255,.55)",pointHoverBackgroundColor:"#fff",pointBackgroundColor:"rgba(255,255,255,.55)"},this.brandData=[{icon:"cibFacebook",values:[{title:"friends",value:"89K"},{title:"feeds",value:"459"}],capBg:{"--cui-card-cap-bg":"#3b5998"},labels:[...this.labels],data:{labels:[...this.labels],datasets:[i(s(i({},this.datasets),{data:[65,59,84,84,51,55,40],label:"Facebook"}),this.colors)]}},{icon:"cibTwitter",values:[{title:"followers",value:"973k"},{title:"tweets",value:"1.792"}],capBg:{"--cui-card-cap-bg":"#00aced"},data:{labels:[...this.labels],datasets:[i(s(i({},this.datasets),{data:[1,13,9,17,34,41,38],label:"Twitter"}),this.colors)]}},{icon:"cib-linkedin",values:[{title:"contacts",value:"500"},{title:"feeds",value:"1.292"}],capBg:{"--cui-card-cap-bg":"#4875b4"},data:{labels:[...this.labels],datasets:[i(s(i({},this.datasets),{data:[78,81,80,45,34,12,40],label:"LinkedIn"}),this.colors)]}},{icon:"cilCalendar",values:[{title:"events",value:"12+"},{title:"meetings",value:"4"}],capBg:{"--cui-card-cap-bg":"var(--cui-warning)"},data:{labels:[...this.labels],datasets:[i(s(i({},this.datasets),{data:[35,23,56,22,97,23,64],label:"Events"}),this.colors)]}}]}capStyle(t){return t?{"--cui-card-cap-bg":t}:{}}ngAfterContentInit(){this.changeDetectorRef.detectChanges()}static{this.\u0275fac=function(a){return new(a||e)(u(D))}}static{this.\u0275cmp=m({type:e,selectors:[["app-widgets-brand"]],inputs:{withCharts:"withCharts"},decls:3,vars:0,consts:[["chart","cChart"],[1,"g-4"],["sm","6","xl","3"],[3,"color","values"],["cIcon","","height","52",1,"my-4","text-white",3,"name"],["type","line",1,"position-absolute","w-100","h-100",3,"data","options"]],template:function(a,n){a&1&&(r(0,"c-row",1),C(1,M,4,6,"c-col",2,v),c()),a&2&&(o(),y(n.brandData))},dependencies:[R,I,S,k,W],encapsulation:2})}}return e})();export{O as a};
