export const __webpack_esm_id__=93063;export const __webpack_esm_ids__=[93063];export const __webpack_esm_modules__={93063(e,o,r){r(22742),r(33136),r(4325),r(75752),r(22233),r(56996),angular.module("graphdb.framework.jmx.resources",["toastr","ui.bootstrap","graphdb.framework.jmx.resources.controllers","graphdb.framework.core.services.repositories","graphdb.framework.core.directives","graphdb.framework.resources.directives"])},28323(e,o,r){r.d(o,{R:()=>a});var t=r(22233),l=r(33261);class a{static LIGHT_THEME="gwLight";static DARK_THEME="gwDark";static initThemes(){const e=a.getGwDarkTheme(),o=a.getGwLightTheme();t.bf(a.DARK_THEME,e),t.bf(a.LIGHT_THEME,o)}static getGwLightTheme(){return{tooltip:{backgroundColor:`color-mix(in srgb, ${l.h.cssVar("--gw-tooltip-background")}, transparent 10%)`,textStyle:{color:l.h.cssVar("--gw-tooltip-color")},borderWidth:0}}}static getGwDarkTheme(){return{...a.getEchartsDarkTheme(),tooltip:{backgroundColor:`color-mix(in srgb, ${l.h.cssVar("--gw-tooltip-background")}, transparent 10%)`,textStyle:{color:l.h.cssVar("--gw-tooltip-color")},borderWidth:0}}}static getEchartsDarkTheme(){const e="#B9B8CE",o="#100C2A",r=function(){return{axisLine:{lineStyle:{color:e}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},t=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],l={darkMode:!0,color:t,backgroundColor:o,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:e}},textStyle:{color:e},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:e}},dataZoom:{borderColor:"#71708A",textStyle:{color:e},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:e}},timeline:{lineStyle:{color:e},label:{color:e},controlStyle:{color:e,borderColor:e}},calendar:{itemStyle:{color:o},dayLabel:{color:e},monthLabel:{color:e},yearLabel:{color:e}},timeAxis:r(),logAxis:r(),valueAxis:r(),categoryAxis:r(),line:{symbol:"circle"},graph:{color:t},gauge:{title:{color:e}},candlestick:{itemStyle:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}};return l.categoryAxis.splitLine.show=!1,l}}},56996(e,o,r){var t=r(22233),l=r(33261),a=r(57154),c=r(28323);angular.module("graphdb.framework.resources.directives",[]).directive("chart",["$rootScope","$translate",function(e,o){return{restrict:"AE",scope:{chart:"="},link:function(r,s){let i;c.R.initThemes();const n=e.$on("$translateChangeSuccess",()=>{r.chart.translateLabels(),i.setOption(r.chart.chartOptions)});function d(){i.setOption(r.chart.chartOptions),r.chart.updateRange(r.chart.dataHolder),i.hideLoading()}function h(e){r.chart.setSelectedSeries(e.selected)}function g(){i.resize()}r.$watch("chart",function(){!function(){const e=(0,a.service)(a.ThemeService).isDarkModeApplied()?c.R.DARK_THEME:c.R.LIGHT_THEME,n=o.instant("common.loading");i=t.Ts(s[0],e,{renderer:"svg"}),i.setOption(r.chart.chartOptions),i.showLoading({text:n,maskColor:`color-mix(in srgb, ${l.h.cssVar("--gw-default-background")}, transparent 20%)`,textColor:l.h.cssVar("--gw-default-color")}),i.on("legendselectchanged",h),r.chart.registerRefreshHandler(d),r.chart.translateLabels(),window.addEventListener("resize",g)}()}),r.$on("$destroy",function(){i.on("legendselectchanged"),i.dispose(),r.chart.unregisterRefreshHandler(d),n(),window.removeEventListener("resize",g)})}}}])}};
//# sourceMappingURL=93063.cf824722d25682ba6db5.bundle.js.map