import{a as b}from"./chunk-CQF3O75Q.js";import{a as T}from"./chunk-5L7ZGGVS.js";import{Ha as J,Ja as O,Ka as G,La as H,Ma as j,T as R,_ as V,ab as D,bb as k,ec as Q,hc as z,n as L,u as S}from"./chunk-RIXYHOD2.js";import{Ba as m,Ca as x,Fb as f,Hc as w,Ic as d,Mb as r,Pb as E,Tb as F,Vb as M,Wb as I,Xb as W,Yb as n,Yc as _,Zb as a,_b as s,hc as h,kb as l,lb as C,oa as v,uc as A,vc as t,xc as B}from"./chunk-7RF4FE4V.js";import{a as u,b as y}from"./chunk-WWX6BADO.js";function $(e,c){if(e&1&&(n(0,"c-chart",5,0),t(2),a()),e&2){let i=A(1),o=h().$implicit,g=h();r("data",o.data)("options",g.chartOptions),l(2),B(" ",i.id," ")}}function q(e,c){if(e&1&&(n(0,"c-col",2)(1,"c-widget-stat-d",3),m(),s(2,"svg",4),f(3,$,3,3,"c-chart",5),a()()),e&2){let i,o,g=c.$implicit,K=h();l(),E((i=g.capBg)!==null&&i!==void 0?i:null),r("color",(o=g.color)!==null&&o!==void 0?o:"")("values",g.values),l(),r("name",g.icon),l(),F(K.withCharts?3:-1)}}var pe=(()=>{class e{constructor(i){this.changeDetectorRef=i,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:[u(y(u({},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:[u(y(u({},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:[u(y(u({},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"}],color:"warning",data:{labels:[...this.labels],datasets:[u(y(u({},this.datasets),{data:[35,23,56,22,97,23,64],label:"Events"}),this.colors)]}}]}capStyle(i){return i?{"--cui-card-cap-bg":i}:{}}ngAfterContentInit(){this.changeDetectorRef.detectChanges()}static{this.\u0275fac=function(o){return new(o||e)(C(_))}}static{this.\u0275cmp=v({type:e,selectors:[["app-widgets-brand"]],inputs:{withCharts:"withCharts"},standalone:!0,features:[w],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(o,g){o&1&&(n(0,"c-row",1),I(1,q,4,6,"c-col",2,M),a()),o&2&&(l(),W(g.brandData))},dependencies:[k,D,z,S,T]})}}return e})();var p=()=>[];function P(e,c){e&1&&(t(0,`
        26K
        `),n(1,"span",9),t(2,`
          (-12.4% `),m(),s(3,"svg",10),t(4,`)
        `),a(),t(5,`
      `))}function U(e,c){e&1&&(n(0,"c-dropdown",11)(1,"button",12),m(),s(2,"svg",13),a(),x(),n(3,"ul",14)(4,"li")(5,"a",15),t(6,"Action"),a()(),n(7,"li")(8,"a",15),t(9,"Another action"),a()(),n(10,"li")(11,"a",15),t(12,"Something else here"),a()(),n(13,"li"),s(14,"hr",16),a(),n(15,"li")(16,"button",17),t(17,"Separated link"),a()()()()),e&2&&(l(),r("caret",!1),l(4),r("routerLink",d(4,p)),l(3),r("routerLink",d(5,p)),l(3),r("routerLink",d(6,p)))}function X(e,c){if(e&1&&s(0,"c-chart",18),e&2){let i=h();r("data",i.data[0])("options",i.options[0])("type","line")}}function Y(e,c){e&1&&(t(0,`
        `),n(1,"span"),t(2,"$6.200"),a(),t(3,`
        `),n(4,"span",9),t(5,`
          (40.9%`),m(),s(6,"svg",19),t(7,`)
        `),a(),t(8,`
      `))}function Z(e,c){e&1&&(n(0,"c-dropdown",11)(1,"button",12),m(),s(2,"svg",13),a(),x(),n(3,"ul",14)(4,"li")(5,"a",15),t(6,"Action"),a()(),n(7,"li")(8,"a",15),t(9,"Another action"),a()(),n(10,"li")(11,"a",15),t(12,"Something else here"),a()(),n(13,"li")(14,"a",20),t(15,"Disabled"),a()()()()),e&2&&(l(),r("caret",!1),l(4),r("routerLink",d(6,p)),l(3),r("routerLink",d(7,p)),l(3),r("routerLink",d(8,p)),l(3),r("disabled",!0)("routerLink",d(9,p)))}function ee(e,c){if(e&1&&s(0,"c-chart",21),e&2){let i=h();r("data",i.data[1])("options",i.options[1])}}function te(e,c){e&1&&(t(0,`
        `),n(1,"span"),t(2,"2.49"),a(),t(3,`
        `),n(4,"span",9),t(5,`
          (84.7% `),m(),s(6,"svg",19),t(7,`)
        `),a(),t(8,`
      `))}function ie(e,c){e&1&&(n(0,"c-dropdown",11)(1,"button",12),m(),s(2,"svg",13),a(),x(),n(3,"ul",14)(4,"li")(5,"a",15),t(6,"Action"),a()(),n(7,"li")(8,"a",15),t(9,"Another action"),a()(),n(10,"li")(11,"a",15),t(12,"Something else here"),a()(),n(13,"li")(14,"a",20),t(15,"Disabled"),a()()()()),e&2&&(l(),r("caret",!1),l(4),r("routerLink",d(6,p)),l(3),r("routerLink",d(7,p)),l(3),r("routerLink",d(8,p)),l(3),r("disabled",!0)("routerLink",d(9,p)))}function ne(e,c){if(e&1&&s(0,"c-chart",22),e&2){let i=h();r("data",i.data[2])("options",i.options[2])}}function ae(e,c){e&1&&(t(0,`
        `),n(1,"span"),t(2,"44K"),a(),t(3,`
        `),n(4,"span",9),t(5,`
          (-23.6% `),m(),s(6,"svg",10),t(7,`)
        `),a(),t(8,`
      `))}function oe(e,c){e&1&&(n(0,"c-dropdown",11)(1,"button",12),m(),s(2,"svg",13),a(),x(),n(3,"ul",14)(4,"li")(5,"a",15),t(6,"Action"),a()(),n(7,"li")(8,"a",15),t(9,"Another action"),a()(),n(10,"li")(11,"a",15),t(12,"Something else here"),a()(),n(13,"li")(14,"a",20),t(15,"Disabled"),a()()()()),e&2&&(l(),r("caret",!1),l(4),r("routerLink",d(6,p)),l(3),r("routerLink",d(7,p)),l(3),r("routerLink",d(8,p)),l(3),r("disabled",!0)("routerLink",d(9,p)))}function re(e,c){if(e&1&&s(0,"c-chart",23),e&2){let i=h();r("data",i.data[3])("options",i.options[3])}}var we=(()=>{class e{constructor(i){this.changeDetectorRef=i,this.data=[],this.options=[],this.labels=["January","February","March","April","May","June","July","August","September","October","November","December","January","February","March","April"],this.datasets=[[{label:"My First dataset",backgroundColor:"transparent",borderColor:"rgba(255,255,255,.55)",pointBackgroundColor:b("--cui-primary"),pointHoverBorderColor:b("--cui-primary"),data:[65,59,84,84,51,55,40]}],[{label:"My Second dataset",backgroundColor:"transparent",borderColor:"rgba(255,255,255,.55)",pointBackgroundColor:b("--cui-info"),pointHoverBorderColor:b("--cui-info"),data:[1,18,9,17,34,22,11]}],[{label:"My Third dataset",backgroundColor:"rgba(255,255,255,.2)",borderColor:"rgba(255,255,255,.55)",pointBackgroundColor:b("--cui-warning"),pointHoverBorderColor:b("--cui-warning"),data:[78,81,80,45,34,12,40],fill:!0}],[{label:"My Fourth dataset",backgroundColor:"rgba(255,255,255,.2)",borderColor:"rgba(255,255,255,.55)",data:[78,81,80,45,34,12,40,85,65,23,12,98,34,84,67,82],barPercentage:.7}]],this.optionsDefault={plugins:{legend:{display:!1}},maintainAspectRatio:!1,scales:{x:{border:{display:!1},grid:{display:!1,drawBorder:!1},ticks:{display:!1}},y:{min:30,max:89,display:!1,grid:{display:!1},ticks:{display:!1}}},elements:{line:{borderWidth:1,tension:.4},point:{radius:4,hitRadius:10,hoverRadius:4}}}}ngOnInit(){this.setData()}ngAfterContentInit(){this.changeDetectorRef.detectChanges()}setData(){for(let i=0;i<4;i++)this.data[i]={labels:i<3?this.labels.slice(0,7):this.labels,datasets:this.datasets[i]};this.setOptions()}setOptions(){for(let i=0;i<4;i++){let o=JSON.parse(JSON.stringify(this.optionsDefault));switch(i){case 0:{this.options.push(o);break}case 1:{o.scales.y.min=-9,o.scales.y.max=39,o.elements.line.tension=0,this.options.push(o);break}case 2:{o.scales.x={display:!1},o.scales.y={display:!1},o.elements.line.borderWidth=2,o.elements.point.radius=0,this.options.push(o);break}case 3:{o.scales.x.grid={display:!1,drawTicks:!1},o.scales.x.grid={display:!1,drawTicks:!1,drawBorder:!1},o.scales.y.min=void 0,o.scales.y.max=void 0,o.elements={},this.options.push(o);break}}}}static{this.\u0275fac=function(o){return new(o||e)(C(_))}}static{this.\u0275cmp=v({type:e,selectors:[["app-widgets-dropdown"]],standalone:!0,features:[w],decls:21,vars:4,consts:[[1,"g-4"],["sm","6","xl","3"],["color","primary",3,"title"],["cTemplateId","widgetValueTemplate"],["cTemplateId","widgetActionTemplate"],["cTemplateId","widgetChartTemplate"],["color","info",3,"title"],["color","warning",3,"title"],["color","danger",3,"title"],[1,"fw-normal",2,"font-size","12px"],["cIcon","","name","cilArrowBottom","size","sm"],["alignment","end","variant","btn-group"],["cButton","","cDropdownToggle","","color","transparent","aria-label","Open dropdown",1,"p-0","text-white",3,"caret"],["cIcon","","name","cilOptions"],["cDropdownMenu",""],["cDropdownItem","",3,"routerLink"],["cDropdownDivider",""],["cDropdownItem",""],["height","70",1,"mt-3","mx-3",3,"data","options","type"],["cIcon","","name","cilArrowTop","size","sm"],["cDropdownItem","",3,"disabled","routerLink"],["height","70","type","line",1,"mt-3","mx-3",3,"data","options"],["height","70","type","line",1,"mt-3",3,"data","options"],["height","70","type","bar",1,"mt-3","mx-3",3,"data","options"]],template:function(o,g){o&1&&(n(0,"c-row",0)(1,"c-col",1)(2,"c-widget-stat-a",2),f(3,P,6,0,"ng-template",3)(4,U,18,7,"ng-template",4)(5,X,1,3,"ng-template",5),a()(),n(6,"c-col",1)(7,"c-widget-stat-a",6),f(8,Y,9,0,"ng-template",3)(9,Z,16,10,"ng-template",4)(10,ee,1,2,"ng-template",5),a()(),n(11,"c-col",1)(12,"c-widget-stat-a",7),f(13,te,9,0,"ng-template",3)(14,ie,16,10,"ng-template",4)(15,ne,1,2,"ng-template",5),a()(),n(16,"c-col",1)(17,"c-widget-stat-a",8),f(18,ae,9,0,"ng-template",3)(19,oe,16,10,"ng-template",4)(20,re,1,2,"ng-template",5),a()()()),o&2&&(l(2),r("title","Users"),l(5),r("title","Income"),l(5),r("title","Conversion Rate"),l(5),r("title","Sessions"))},dependencies:[k,D,Q,R,S,H,V,G,O,j,L,J,T]})}}return e})();export{pe as a,we as b};
