-
Notifications
You must be signed in to change notification settings - Fork 0
/
567.4a37ccd3079fce5a.js
1 lines (1 loc) · 11 KB
/
567.4a37ccd3079fce5a.js
1
"use strict";(self.webpackChunkemporium=self.webpackChunkemporium||[]).push([[567],{2567:(F,m,r)=>{r.r(m),r.d(m,{AnalyticsModule:()=>q,routes:()=>p});var A=r(6019),v=r(697),g=r(9165),c=r(3447),e=r(3668),u=r(515);const y=[{name:"Germany",series:[{name:"2017",value:71632},{name:"2010",value:40632},{name:"2000",value:76953},{name:"1990",value:31476}]},{name:"United States",series:[{name:"2017",value:82632},{name:"2010",value:49737},{name:"2000",value:55986},{name:"1990",value:37060}]},{name:"France",series:[{name:"2017",value:51732},{name:"2010",value:36745},{name:"2000",value:34774},{name:"1990",value:29476}]},{name:"United Kingdom",series:[{name:"2017",value:95652},{name:"2010",value:36240},{name:"2000",value:32543},{name:"1990",value:26424}]}],f=[{name:"Store 1",series:[{name:"Day 1",value:71632},{name:"Day 2",value:50632},{name:"Day 3",value:66953},{name:"Day 4",value:31476},{name:"Day 5",value:31632},{name:"Day 6",value:40632},{name:"Day 7",value:56953},{name:"Day 8",value:31476},{name:"Day 9",value:71632},{name:"Day 10",value:40632},{name:"Day 11",value:16953},{name:"Day 12",value:31476},{name:"Day 13",value:41632},{name:"Day 14",value:40632},{name:"Day 15",value:76953}]},{name:"Store 2",series:[{name:"Day 1",value:61632},{name:"Day 2",value:40632},{name:"Day 3",value:86953},{name:"Day 4",value:51476},{name:"Day 5",value:41632},{name:"Day 6",value:50632},{name:"Day 7",value:36953},{name:"Day 8",value:21476},{name:"Day 9",value:61632},{name:"Day 10",value:40632},{name:"Day 11",value:26953},{name:"Day 12",value:35476},{name:"Day 13",value:46632},{name:"Day 14",value:40632},{name:"Day 15",value:76953}]}],d=[{name:"Offline Stores",value:178},{name:"Digital Stores",value:340},{name:"Others",value:280}],h=[{name:"Product 1",value:178},{name:"Product 2",value:340},{name:"Product 3",value:280},{name:"Product 4",value:310},{name:"Product 5",value:385},{name:"Product 6",value:240}],Z=[{name:"Store 1",value:40632},{name:"Store 2",value:49737},{name:"Store 3",value:36745},{name:"Store 4",value:36240},{name:"Store 5",value:33e3},{name:"Store 6",value:35800}],x=[{name:"Store 1",value:31632},{name:"Store 2",value:42737},{name:"Store 3",value:33745},{name:"Store 4",value:29240},{name:"Store 5",value:28250},{name:"Store 6",value:31800}];var i=r(888);let w=(()=>{class a{constructor(){this.showXAxis=!0,this.showYAxis=!0,this.gradient=!1,this.showLegend=!1,this.showXAxisLabel=!0,this.xAxisLabel="Country",this.showYAxisLabel=!0,this.yAxisLabel="Sales",this.colorScheme={domain:["#2F3E9E","#D22E2E","#378D3B","#0096A6","#F47B00","#606060"]},Object.assign(this,{sales_summary:y})}ngOnInit(){}onSelect(t){console.log(t)}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-sales-summary"]],decls:7,vars:10,consts:[["fxLayoutAlign","center center"],[1,"w-100","h-300p"],[3,"scheme","results","gradient","xAxis","yAxis","legend","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","select"]],template:function(t,s){1&t&&(e.TgZ(0,"mat-card"),e.TgZ(1,"mat-card-header",0),e.TgZ(2,"mat-card-subtitle"),e.TgZ(3,"h2"),e._uU(4,"Sales Summary (Top Regions)"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",1),e.TgZ(6,"ngx-charts-bar-vertical-2d",2),e.NdJ("select",function(o){return s.onSelect(o)}),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("scheme",s.colorScheme)("results",s.sales_summary)("gradient",s.gradient)("xAxis",s.showXAxis)("yAxis",s.showYAxis)("legend",s.showLegend)("showXAxisLabel",s.showXAxisLabel)("showYAxisLabel",s.showYAxisLabel)("xAxisLabel",s.xAxisLabel)("yAxisLabel",s.yAxisLabel))},directives:[i.a8,i.dk,u.Wh,i.$j,c.H5],styles:[""]}),a})();const S=["resizedDiv"];let L=(()=>{class a{constructor(){this.showLegend=!1,this.gradient=!0,this.colorScheme={domain:["#2F3E9E","#D22E2E","#378D3B"]},this.showLabels=!0,this.explodeSlices=!1,this.doughnut=!1,this.previousWidthOfResizedDiv=0}ngOnInit(){this.data=d}onSelect(t){console.log(t)}ngAfterViewChecked(){this.previousWidthOfResizedDiv!=this.resizedDiv.nativeElement.clientWidth&&setTimeout(()=>this.data=[...d]),this.previousWidthOfResizedDiv=this.resizedDiv.nativeElement.clientWidth}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-montly-sales"]],viewQuery:function(t,s){if(1&t&&e.Gf(S,5),2&t){let l;e.iGM(l=e.CRH())&&(s.resizedDiv=l.first)}},decls:9,vars:7,consts:[["fxLayoutAlign","center"],[1,"w-100","h-300p"],["resizedDiv",""],[3,"scheme","results","legend","explodeSlices","labels","doughnut","gradient","select"]],template:function(t,s){1&t&&(e.TgZ(0,"mat-card"),e.TgZ(1,"mat-card-header",0),e.TgZ(2,"mat-card-subtitle"),e.TgZ(3,"h2"),e._uU(4,"Montly Sales"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"mat-card-content"),e.TgZ(6,"div",1,2),e.TgZ(8,"ngx-charts-pie-chart",3),e.NdJ("select",function(o){return s.onSelect(o)}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(8),e.Q6J("scheme",s.colorScheme)("results",s.data)("legend",s.showLegend)("explodeSlices",s.explodeSlices)("labels",s.showLabels)("doughnut",s.doughnut)("gradient",s.gradient))},directives:[i.a8,i.dk,u.Wh,i.$j,i.dn,c.JU],styles:[""]}),a})(),T=(()=>{class a{constructor(){this.showXAxis=!0,this.showYAxis=!0,this.gradient=!1,this.showLegend=!1,this.showXAxisLabel=!0,this.xAxisLabel="Days",this.showYAxisLabel=!0,this.yAxisLabel="Views",this.colorScheme={domain:["#2F3E9E","#D22E2E","#378D3B","#0096A6","#F47B00","#606060"]},this.autoScale=!0,Object.assign(this,{daily_views_stats:f})}onSelect(t){console.log(t)}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-daily-views-stats"]],decls:7,vars:11,consts:[["fxLayoutAlign","center center"],[1,"w-100","h-400p"],[3,"scheme","results","gradient","xAxis","yAxis","legend","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","autoScale","select"]],template:function(t,s){1&t&&(e.TgZ(0,"mat-card"),e.TgZ(1,"mat-card-header",0),e.TgZ(2,"mat-card-subtitle"),e.TgZ(3,"h2"),e._uU(4,"Daily Views Stats"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",1),e.TgZ(6,"ngx-charts-line-chart",2),e.NdJ("select",function(o){return s.onSelect(o)}),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("scheme",s.colorScheme)("results",s.daily_views_stats)("gradient",s.gradient)("xAxis",s.showXAxis)("yAxis",s.showYAxis)("legend",s.showLegend)("showXAxisLabel",s.showXAxisLabel)("showYAxisLabel",s.showYAxisLabel)("xAxisLabel",s.xAxisLabel)("yAxisLabel",s.yAxisLabel)("autoScale",s.autoScale))},directives:[i.a8,i.dk,u.Wh,i.$j,c.Dw],styles:[""]}),a})();const D=["resizedDiv"];let b=(()=>{class a{constructor(){this.showLegend=!1,this.gradient=!0,this.colorScheme={domain:["#2F3E9E","#D22E2E","#378D3B","#42A5F5","#7E57C2","#AFB42B"]},this.showLabels=!0,this.explodeSlices=!0,this.doughnut=!1,this.previousWidthOfResizedDiv=0}ngOnInit(){this.data=h}onSelect(t){console.log(t)}ngAfterViewChecked(){this.previousWidthOfResizedDiv!=this.resizedDiv.nativeElement.clientWidth&&setTimeout(()=>this.data=[...h]),this.previousWidthOfResizedDiv=this.resizedDiv.nativeElement.clientWidth}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-most-viewed-products"]],viewQuery:function(t,s){if(1&t&&e.Gf(D,5),2&t){let l;e.iGM(l=e.CRH())&&(s.resizedDiv=l.first)}},decls:9,vars:7,consts:[["fxLayoutAlign","center"],[1,"w-100","h-300p"],["resizedDiv",""],[3,"scheme","results","legend","explodeSlices","labels","doughnut","gradient","select"]],template:function(t,s){1&t&&(e.TgZ(0,"mat-card"),e.TgZ(1,"mat-card-header",0),e.TgZ(2,"mat-card-subtitle"),e.TgZ(3,"h2"),e._uU(4,"Most Viewed Products"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"mat-card-content"),e.TgZ(6,"div",1,2),e.TgZ(8,"ngx-charts-pie-chart",3),e.NdJ("select",function(o){return s.onSelect(o)}),e.qZA(),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(8),e.Q6J("scheme",s.colorScheme)("results",s.data)("legend",s.showLegend)("explodeSlices",s.explodeSlices)("labels",s.showLabels)("doughnut",s.doughnut)("gradient",s.gradient))},directives:[i.a8,i.dk,u.Wh,i.$j,i.dn,c.JU],styles:[""]}),a})(),_=(()=>{class a{constructor(){this.showXAxis=!0,this.showYAxis=!0,this.gradient=!1,this.showLegend=!1,this.showXAxisLabel=!0,this.xAxisLabel="Store",this.showYAxisLabel=!0,this.yAxisLabel="Transactions",this.colorScheme={domain:["#3F51B5","#E91E63","#43A047","#FDD835","#F4511E","#606060"]},Object.assign(this,{transactions:Z})}onSelect(t){console.log(t)}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-transactions"]],decls:7,vars:10,consts:[["fxLayoutAlign","center center"],[1,"w-100","h-300p"],[3,"scheme","results","gradient","xAxis","yAxis","legend","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","select"]],template:function(t,s){1&t&&(e.TgZ(0,"mat-card"),e.TgZ(1,"mat-card-header",0),e.TgZ(2,"mat-card-subtitle"),e.TgZ(3,"h2"),e._uU(4,"Transactions"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",1),e.TgZ(6,"ngx-charts-bar-horizontal",2),e.NdJ("select",function(o){return s.onSelect(o)}),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("scheme",s.colorScheme)("results",s.transactions)("gradient",s.gradient)("xAxis",s.showXAxis)("yAxis",s.showYAxis)("legend",s.showLegend)("showXAxisLabel",s.showXAxisLabel)("showYAxisLabel",s.showYAxisLabel)("xAxisLabel",s.yAxisLabel)("yAxisLabel",s.xAxisLabel))},directives:[i.a8,i.dk,u.Wh,i.$j,c.$e],styles:[""]}),a})(),C=(()=>{class a{constructor(){this.showLegend=!0,this.gradient=!0,this.colorScheme={domain:["#2F3E9E","#D22E2E","#378D3B","#0096A6","#F47B00","#606060"]},this.showLabels=!0,this.explodeSlices=!1,this.doughnut=!1,Object.assign(this,{refunds:x})}onSelect(t){console.log(t)}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-refunds"]],decls:7,vars:2,consts:[["fxLayoutAlign","center center"],[1,"w-100","h-300p"],[3,"scheme","results","select"]],template:function(t,s){1&t&&(e.TgZ(0,"mat-card"),e.TgZ(1,"mat-card-header",0),e.TgZ(2,"mat-card-subtitle"),e.TgZ(3,"h2"),e._uU(4,"Refunds by Stores"),e.qZA(),e.qZA(),e.qZA(),e.TgZ(5,"div",1),e.TgZ(6,"ngx-charts-pie-grid",2),e.NdJ("select",function(o){return s.onSelect(o)}),e.qZA(),e.qZA(),e.qZA()),2&t&&(e.xp6(6),e.Q6J("scheme",s.colorScheme)("results",s.refunds))},directives:[i.a8,i.dk,u.Wh,i.$j,c.Nm],styles:[""]}),a})();const p=[{path:"",component:(()=>{class a{constructor(){}ngOnInit(){}}return a.\u0275fac=function(t){return new(t||a)},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-analytics"]],decls:13,vars:0,consts:[["fxLayout","row wrap"],["fxFlex","100","fxFlex.gt-sm","60",1,"p-1"],["fxFlex","100","fxFlex.gt-sm","40",1,"p-1"],["fxFlex","100",1,"p-1"],["fxFlex","100","fxFlex.gt-sm","50",1,"p-1"]],template:function(t,s){1&t&&(e.TgZ(0,"div",0),e.TgZ(1,"div",1),e._UZ(2,"app-sales-summary"),e.qZA(),e.TgZ(3,"div",2),e._UZ(4,"app-montly-sales"),e.qZA(),e.TgZ(5,"div",3),e._UZ(6,"app-daily-views-stats"),e.qZA(),e.TgZ(7,"div",4),e._UZ(8,"app-most-viewed-products"),e.qZA(),e.TgZ(9,"div",4),e._UZ(10,"app-transactions"),e.qZA(),e.TgZ(11,"div",3),e._UZ(12,"app-refunds"),e.qZA(),e.qZA())},directives:[u.xw,u.yH,w,L,T,b,_,C],styles:[""]}),a})(),pathMatch:"full"}];let q=(()=>{class a{}return a.\u0275fac=function(t){return new(t||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[[A.ez,v.Bz.forChild(p),g.m,c.a4]]}),a})()}}]);