"use strict";function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),e}var options={series:[{name:"Orders",type:"bar",data:[26,59,27,51,25,39,29,48,29,52,27,37]},{name:"Sales",type:"line",data:[47,41,72,35,46,35,51,78,40,75,52,58]}],chart:{animations:{enabled:!1},height:345,zoom:{enabled:!1},toolbar:{show:!1}},plotOptions:{bar:{horizontal:!1,columnWidth:"35%",endingShape:"rounded",borderRadius:6}},dataLabels:{enabled:!1},legend:{position:"top",horizontalAlign:"right"},stroke:{curve:"smooth",width:[3,2]},grid:{strokeDashArray:2,xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}}},colors:["#108dff","#E77636"],xaxis:{type:"month",categories:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],axisBorder:{show:!0,color:"rgba(119, 119, 142, 0.05)",offsetX:0,offsetY:0}}},chart=new ApexCharts(document.querySelector("#performance-review"),options);function Earnings(){chart.updateOptions({colors:["rgb("+myVarVal+")","rgb(203,213,225)"]})}chart.render();options={series:[{name:"New Customer",data:[85,80,150,127,220,200,300,290,314]},{name:"Old Customer",data:[215,165,100,200,145,185,104,124,82]}],chart:{type:"line",height:305,parentHeightOffset:0,zoom:{enabled:!1},toolbar:{show:!1},animations:{enabled:!1}},dataLabels:{enabled:!1},fill:{opacity:1},stroke:{width:[2,2],curve:"straight",dashArray:[0,7]},legend:{position:"top",horizontalAlign:"right",tooltipHoverFormatter:function(e,t){return e+" <strong>"+t.w.globals.series[t.seriesIndex][t.dataPointIndex]+"</strong>"}},markers:{size:0,hover:{sizeOffset:6}},grid:{strokeDashArray:2,xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}}},xaxis:{labels:{padding:0},axisBorder:{show:!1},tooltip:{enabled:!1},categories:["09","10","11","12","13","14","15","16"]},tooltip:{y:[{title:{formatter:function(e){return e}}},{title:{formatter:function(e){return e}}}]},colors:["#108dff","#27ebb0"]};(chart=new ApexCharts(document.querySelector("#repeat-customer"),options)).render();options={chart:{height:290,type:"radialBar",responsive:"true",offsetX:0,offsetY:15},plotOptions:{radialBar:{startAngle:-135,endAngle:135,size:120,imageWidth:50,imageHeight:50,track:{strokeWidth:"97%"},dropShadow:{enabled:!1,top:0,left:0,bottom:0,blur:3,opacity:.5},dataLabels:{name:{fontSize:"16px",color:void 0,offsetY:30},hollow:{size:"60%"},value:{offsetY:-10,fontSize:"22px",color:void 0,formatter:function(e){return e+"%"}}}}},colors:["#108dff"],fill:{type:"solid",gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:["#108dff"],inverseColors:!1,opacityFrom:1,opacityTo:1,stops:[0,100]}},stroke:{dashArray:3},series:[92],labels:["Orders"]};(chart=new ApexCharts(document.querySelector("#ordersreport"),options)).render();var VectorMap=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"initWorldCountryMap",value:function(){new jsVectorMap({map:"world_merc",selector:"#world-country",zoomOnScroll:!1,zoomButtons:!1,selectedMarkers:[0,2],markersSelectable:!0,markers:[{name:"Palestine",coords:[31.9474,35.2272]},{name:"Russia",coords:[61.524,105.3188]},{name:"Canada",coords:[56.1304,-106.3468]},{name:"Greenland",coords:[71.7069,-42.6043]}],regionStyle:{initial:{stroke:"#4a5a6b",fill:"#ced4da",strokeWidth:.25,fillOpacity:1}},markerStyle:{initial:{fill:"#108dff"},selected:{fill:"#4a5a6b"}},labels:{markers:{render:function(e){return e.name}}}})}},{key:"init",value:function(){this.initWorldCountryMap()}}]),e}();document.addEventListener("DOMContentLoaded",function(e){(new VectorMap).init()});