/*!
 * Premium Stock Market Widgets
 * ------------------------------
 * Version 2.1.10, built on Monday, July 27, 2020
 * Copyright (c) Financial apps and plugins <info@financialplugins.com>. All rights reserved.
 * Demo: https://financialplugins.com/products/premium-stock-market-widgets
 * Purchase (WordPress version): https://1.envato.market/az97R
 * Purchase (PHP version): https://1.envato.market/AQ17o
 * Like: https://www.facebook.com/financialplugins/
 * 
 */
(window.webpackJsonp28766=window.webpackJsonp28766||[]).push([[11],{458:function(t,e,a){"use strict";var i=a(462),n=a(463),r=a(464),s={data:function(){return{display:!1}},computed:{config:function(){return this.$store.getters[this.code+"/config"]},text:function(){return this.$store.getters[this.code+"/text"]},globalMarketData:function(){return this.$store.getters[this.code+"/marketData"]},code:function(){return this.$root.code},type:function(){return this.$attrs.type},api:function(){return this.$attrs.api},assets:function(){var t=[];if(this.config.assetRecognitionRegexp){var e=new RegExp(this.config.assetRecognitionRegexp,"i"),a=location.href.replace(this.config.websiteUrl+"/","").match(e);a&&void 0!==a[1]&&(t=[a[1].toUpperCase()])}return 0==t.length&&void 0!==this.$attrs.assets&&(t=this.$attrs.assets.toString().split(",")),t},assetsSubscription:function(){var t={type:this.marketDataType,subType:this.marketDataSubType,assets:this.assets,api:this.api};return"history"==this.marketDataType&&(t.range=this.$attrs.range,t.interval=this.$attrs.interval),t},fields:function(){return this.$attrs.fields?this.$attrs.fields.split(","):[]},classes:function(){return[this.code+"-"+this.$attrs.type,this.code+"-"+this.$attrs.template,this.code+"-"+this.$attrs.color]},classesWithIndicator:function(){var t=this.classes,e=this.quoteValue(this.assets[0],"change_abs"),a=e<0?this.code+"-down":e>0?this.code+"-up":"";return a&&-1==t.indexOf(a)&&t.push(a),t},marketDataLoaded:function(){var t=this,e=!1;if("table-history"==this.type||"chart"==this.type){var a=this.marketData(this.assets[0]);e=!(!a||a.symbol!=this.assets[0])}else{var i=0;this.assets.forEach(function(e){i+=t.quoteValue(e,"symbol")==e?1:0}),e=i==this.assets.length}return e},isChildWidget:function(){return void 0!==this.$parent.$parent.$parent&&void 0!==this.$parent.$parent.$parent.api},marketDataType:function(){return"table-history"==this.type||"chart"==this.type?"history":"table-quotes"==this.type||"comparison"==this.type?"quotes-extended":"info"==this.type?"info":"button-link"==this.type?this.isChildWidget?this.$parent.$parent.$parent.marketDataType:"quotes":this.$data.forceMarketDataType||"quotes"},marketDataSubType:function(){return"history"==this.marketDataType?this.$attrs.range+"-"+this.$attrs.interval:"live"}},methods:{checkBoolean:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return void 0===t&&e||"boolean"==typeof t&&t||"string"==typeof t&&"true"==t},marketData:function(t){var e=null;return void 0!==this.globalMarketData[this.api]&&void 0!==this.globalMarketData[this.api][this.marketDataType]&&void 0!==this.globalMarketData[this.api][this.marketDataType][this.marketDataSubType]&&(e=this.globalMarketData[this.api][this.marketDataType][this.marketDataSubType][t]||null),e},quoteValue:function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.marketData(t);return i&&void 0!==i[e]?null!=a?i[e][a]:i[e]:""},quoteValueFormatted:function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=new i.a,o=new n.a,u=new r.a,l=this.quoteValue(t,e,a);if("name"==e){var h=this.quoteValue(t,"name",a);return void 0!==this.config.assetNamesOverrides[t]?this.config.assetNamesOverrides[t]:h}if(["price","open","low","high","close","previous_close","change_abs","52_week_low","52_week_low_change_abs","52_week_high","52_week_high_change_abs","50_day_average","200_day_average","52_week_change","book_value","quick_ratio","current_ratio"].indexOf(e)>-1)l=s.variableDecimal(l);else if(["change_pct","52_week_low_change_pct","52_week_high_change_pct","payout_ratio","dividend_yield","annual_dividend_yield","short_pct_of_float","profit_margin","quarter_earnings_growth","gross_margin","operating_margin","ebitda_margin","return_on_assets","return_on_equity","earnings_growth","revenue_growth"].indexOf(e)>-1)l=s.percentage(100*l);else if(["5_year_avg_dividend_yield"].indexOf(e)>-1)l=s.percentage(l);else if(["shares_outstanding","shares_float","shares_short","net_income_to_common","market_cap","volume","average_volume","average_volume_10_days","total_cash","ebitda","total_debt","total_revenue","gross_profit","free_cashflow","operating_cashflow"].indexOf(e)>-1)l=s.bigNumber(l);else if("range"==e){var c=this.quoteValue(t,"low",a),d=this.quoteValue(t,"high",a);l=s.variableDecimal(c)+" - "+s.variableDecimal(d)}else if("52_week_range"==e){c=this.quoteValue(t,"52_week_low",a),d=this.quoteValue(t,"52_week_high",a);l=s.variableDecimal(c)+" - "+s.variableDecimal(d)}else"currency_symbol"==e?l=o.symbol(this.quoteValue(t,"currency",a)):["last_update","ex_dividend_date","last_split_date"].indexOf(e)>-1?l&&(l=u.long(l)):"date"==e?l=u.date(l):"date_time"==e?l=u.long(this.quoteValue(t,"date",a)):"last_update_ago"==e?l=u.ago(this.quoteValue(t,"last_update",a)):"number"==typeof l&&(l=s.decimal(l));return l},sortValue:function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return["logo_name","logo_name_link"].indexOf(e)>-1?this.quoteValueFormatted(t,"name",a):e.match(/^portfolio_/)?this.portfolioValue(t,a,e):"last_update_ago"==e?this.quoteValue(t,"last_update",a):"date_time"==e?this.quoteValue(t,"date",a):this.quoteValue(t,e,a)||0},subscribeMarketData:function(t){this.$store.dispatch(this.code+"/subscribeMarketData",t||this.assetsSubscription)},disconnectDataSourcesAndClearMarketData:function(){this.$store.dispatch(this.code+"/disconnectDataSourcesAndClearMarketData")},translate:function(t){return void 0!==this.text[t]?this.text[t]:t}},created:function(){var t=this;this.$on("data-loaded",function(){t.display=!0,t.$nextTick(function(){"function"==typeof t.onDataLoaded&&t.onDataLoaded()})}),this.marketDataLoaded?this.$emit("data-loaded",{widgetType:this.type,eventType:"WIDGET_INIT_DATA_AVAILABLE"}):this.subscribeMarketData(),this.$watch("marketDataLoaded",function(e,a){!a&&e&&t.$emit("data-loaded",{widgetType:t.type,eventType:"WIDGET_INIT_DATA_LOADED"})}),this.$watch("$attrs.assets",function(e,a){t.marketDataLoaded?t.$emit("data-loaded",{widgetType:t.type,eventType:"ASSETS_CHANGE_DATA_AVAILABLE"}):t.api&&t.subscribeMarketData()})}},o=a(1),u=Object(o.a)(s,void 0,void 0,!1,null,null,null);u.options.__file="assets/js/src/components/widgets/_mixins/template.vue";e.a=u.exports},462:function(t,e,a){"use strict";a.d(e,"a",function(){return r});var i=a(65),n=a.n(i);function r(){var t=function(t){var e=n()(t).format("0,0.00");return"NaN"!==e?e:parseFloat(t).toFixed(2)};return{integer:function(t){return n()(t).format("0,0")},decimal:t,percentage:function(e){return t(e)+"%"},variableDecimal:function(t){var e,a=n()(t),i=Math.abs(a.value());i>=.01?e="0,0.00":0==i?e="0.00":1e-4<=i&&i<.01?e="0.0000":i<1e-4&&(e="0.00000000");var r=a.format(e);return"NaN"!==r?r:parseFloat(t).toFixed(8)},bigNumber:function(t){return n()(t).format("0,0.00a").toUpperCase()},compareNumbers:function(t,e){var a,i;if("number"==typeof t&&"number"==typeof e)a=t,i=e;else{var r=n()(1.1).format("0.0").substring(1,2),s=n()(1e3).format("0,0").substring(1,2);"."==s&&(t=t.replace(s,""),e=e.replace(s,"")),"."!=r&&(t=t.replace(r,"."),e=e.replace(r,".")),a=parseFloat(t.replace(/[^0-9.-]/g,"")),i=parseFloat(e.replace(/[^0-9.-]/g,""))}return t&&e&&!isNaN(a)&&!isNaN(i)?a>i?1:a<i?-1:0:t.localeCompare(e)}}}},463:function(t,e,a){"use strict";function i(){var t={USD:"$",AUD:"$",BRL:"R$",CAD:"$",CNY:"¥",EUR:"€",EGP:"£",GBP:"£",INR:"₹",ILS:"₪",IDR:"Rp",JPY:"¥",KPW:"₩",KRW:"₩",PLN:"zł",RUB:"₽",UAH:"₴",QAR:"﷼",GOLD:"Gold g"};return{symbol:function(e){return t[e]||e}}}a.d(e,"a",function(){return i})},464:function(t,e,a){"use strict";a.d(e,"a",function(){return r});var i=a(95),n=a.n(i);function r(){return{date:function(t){return n()(t).format("ll")},time:function(t){return n()(t).format("H:mm")},long:function(t){return n()(t).format("LLL")},ago:function(t){return n()(t).fromNow()}}}},465:function(t,e,a){"use strict";var i={computed:{template:function(){return this.$attrs.template}}},n=a(1),r=Object(n.a)(i,void 0,void 0,!1,null,null,null);r.options.__file="assets/js/src/components/widgets/_mixins/widget-type.vue";e.a=r.exports},475:function(t,e,a){"use strict";a.d(e,"a",function(){return r});var i=a(477);function n(t){return function(t){if(Array.isArray(t)){for(var e=0,a=new Array(t.length);e<t.length;e++)a[e]=t[e];return a}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function r(){var t=function(t){return"string"==typeof t&&void 0!==i[t]?i[t]:t};return{nameToHex:t,hexToRgb:function(t,e){var a=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return a?"rgba("+parseInt(a[1],16)+","+parseInt(a[2],16)+","+parseInt(a[3],16)+","+e+")":"rgba(0,0,0,1)"},gradient:function(e,a,i,r){var s,o=o=[0,0,0,i];"bottom to top"==a?o=[0,i,0,0]:"left to right"==a?o=[0,0,i,0]:"right to left"==a&&(o=[i,0,0,0]);var u=(s=e.getContext("2d")).createLinearGradient.apply(s,n(o)),l=r.length;return r.forEach(function(e,a){u.addColorStop(a/l,t(e))}),u},shadeBlend:function(t,e,a){if("number"!=typeof t||t<-1||t>1||"string"!=typeof e||"r"!=e[0]&&"#"!=e[0]||a&&"string"!=typeof a)return null;this.sbcRip||(this.sbcRip=function(t){var e=t.length,a={};if(e>9){if((t=t.split(",")).length<3||t.length>4)return null;a[0]=i(t[0].split("(")[1]),a[1]=i(t[1]),a[2]=i(t[2]),a[3]=t[3]?parseFloat(t[3]):-1}else{if(8==e||6==e||e<4)return null;e<6&&(t="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+(e>4?t[4]+""+t[4]:"")),t=i(t.slice(1),16),a[0]=t>>16&255,a[1]=t>>8&255,a[2]=255&t,a[3]=-1,9!=e&&5!=e||(a[3]=n(a[2]/255*1e4)/1e4,a[2]=a[1],a[1]=a[0],a[0]=t>>24&255)}return a});var i=parseInt,n=Math.round,r=e.length>9,s=(r="string"==typeof a?a.length>9||"c"==a&&!r:r,t<0),o=(t=s?-1*t:t,a=a&&"c"!=a?a:s?"#000000":"#FFFFFF",this.sbcRip(e)),u=this.sbcRip(a);return o&&u?r?"rgb"+(o[3]>-1||u[3]>-1?"a(":"(")+n((u[0]-o[0])*t+o[0])+","+n((u[1]-o[1])*t+o[1])+","+n((u[2]-o[2])*t+o[2])+(o[3]<0&&u[3]<0?")":","+(o[3]>-1&&u[3]>-1?n(1e4*((u[3]-o[3])*t+o[3]))/1e4:u[3]<0?o[3]:u[3])+")"):"#"+(4294967296+16777216*n((u[0]-o[0])*t+o[0])+65536*n((u[1]-o[1])*t+o[1])+256*n((u[2]-o[2])*t+o[2])+(o[3]>-1&&u[3]>-1?n(255*((u[3]-o[3])*t+o[3])):u[3]>-1?n(255*u[3]):o[3]>-1?n(255*o[3]):255)).toString(16).slice(1,o[3]>-1||u[3]>-1?void 0:-2):null}}}},477:function(t){t.exports={default:"#d4d4d5",red:"#DB2828",maroon:"#85144b",orange:"#F2711C",yellow:"#FBBD08",olive:"#B5CC18",green:"#21BA45",teal:"#00B5AD",blue:"#2185D0",aqua:"#7FDBFF",navy:"#001f3f",purple:"#A333C8",violet:"#6435C9",pink:"#E03997",brown:"#A5673F",grey:"#767676",black:"#000000"}},543:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this.$createElement;return(this._self._c||t)("generic",this._b({tag:"component"},"component",this.$attrs,!1))};i._withStripped=!0;var n=a(465),r=function(){var t=this.$createElement,e=this._self._c||t;return this.display?e("div",{class:this.classes},[e("div",{class:this.code+"-gauge-container"})]):this._e()};r._withStripped=!0;var s=a(458),o=a(475);const u=Symbol("loadScript");let l=new class{[u](){return this.scriptPromise||(this.scriptPromise=new Promise(t=>{const e=document.getElementsByTagName("body")[0],a=document.createElement("script");a.type="text/javascript",a.onload=function(){l.api=window.google,l.api.charts.load("current",{packages:["corechart","table"]}),l.api.charts.setOnLoadCallback(()=>{t()})},a.src="https://www.gstatic.com/charts/loader.js",e.appendChild(a)})),this.scriptPromise}load(t,e){return this[u]().then(()=>{if(e){let a={};a=e instanceof Object?e:Array.isArray(e)?{packages:e}:{packages:[e]},this.api.charts.load("current",a),this.api.charts.setOnLoadCallback(t)}else t()})}};var h={mixins:[s.a],data:function(){return{chartData:null,chart:null}},computed:{asset:function(){return this.assets[0]},name:function(){return this.quoteValue(this.asset,"symbol")},value:function(){return this.quoteValue(this.asset,"price")},min:function(){return"52_week_low_high"==this.$attrs.low_high?this.quoteValue(this.asset,"52_week_low"):this.quoteValue(this.asset,"low")},max:function(){return"52_week_low_high"==this.$attrs.low_high?this.quoteValue(this.asset,"52_week_high"):this.quoteValue(this.asset,"high")},chartOptions:function(){var t=new o.a;return{min:this.min,max:this.max,redColor:t.shadeBlend(.15,t.nameToHex("red")),yellowColor:t.shadeBlend(.15,t.nameToHex("yellow")),greenColor:t.shadeBlend(.15,t.nameToHex("green")),redFrom:this.min,redTo:this.min+(this.max-this.min)/3,yellowFrom:this.min+(this.max-this.min)/3,yellowTo:this.min+2*(this.max-this.min)/3,greenFrom:this.min+2*(this.max-this.min)/3,greenTo:this.max,majorTicks:[this.translate("low"),this.translate("high")],minorTicks:15,animation:{duration:2500,easing:"out"}}}},methods:{onDataLoaded:function(){l.load(this.initChart,{packages:["gauge"]})},initChart:function(){this.chartData=l.api.visualization.arrayToDataTable([["Label","Value"],[this.name,this.min]]),this.chart||(this.chart=new l.api.visualization.Gauge(this.$el.querySelector("."+this.code+"-gauge-container"))),this.drawChart(),this.animateGauge()},animateGauge:function(){var t=this;setTimeout(function(){t.chartData.setValue(0,1,t.value),t.drawChart()},200)},drawChart:function(){this.chart.draw(this.chartData,this.chartOptions)}},created:function(){var t=this;this.$watch("$attrs.low_high",function(e){t.initChart()})}},c=a(1),d=Object(c.a)(h,r,[],!1,null,null,null);d.options.__file="assets/js/src/components/widgets/gauge/_generic/template.vue";var p=d.exports,f={mixins:[n.a],components:{Generic:p}},g=Object(c.a)(f,i,[],!1,null,null,null);g.options.__file="assets/js/src/components/widgets/gauge/gauge.vue";e.default=g.exports}}]);