/*!
 * Premium Stock Market Widgets
 * ------------------------------
 * Version 2.1.7d, built on Monday, June 22, 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.webpackJsonp96739=window.webpackJsonp96739||[]).push([[151],{458:function(t,e,a){"use strict";var i=a(462),s=a(463),n=a(464),o={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&&""!==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 void 0!==this.$attrs["market-data-type"]?this.$attrs["market-data-type"]:"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,o=new i.a,r=new s.a,u=new n.a,l=this.quoteValue(t,e,a);if("name"==e){var c=this.quoteValue(t,"name",a);return void 0!==this.config.assetNamesOverrides[t]?this.config.assetNamesOverrides[t]:c}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=o.variableDecimal(l);else if(["change_pct","52_week_low_change_pct","52_week_high_change_pct","5_year_avg_dividend_yield","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=o.percentage(100*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=o.bigNumber(l);else if("range"==e){var h=this.quoteValue(t,"low",a),d=this.quoteValue(t,"high",a);l=o.variableDecimal(h)+" - "+o.variableDecimal(d)}else if("52_week_range"==e){h=this.quoteValue(t,"52_week_low",a),d=this.quoteValue(t,"52_week_high",a);l=o.variableDecimal(h)+" - "+o.variableDecimal(d)}else"currency_symbol"==e?l=r.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=o.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()})}},r=a(1),u=Object(r.a)(o,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 n});var i=a(65),s=a.n(i);function n(){var t=function(t){var e=s()(t).format("0,0.00");return"NaN"!==e?e:parseFloat(t).toFixed(2)};return{integer:function(t){return s()(t).format("0,0")},decimal:t,percentage:function(e){return t(e)+"%"},variableDecimal:function(t){var e,a=s()(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 n=a.format(e);return"NaN"!==n?n:parseFloat(t).toFixed(8)},bigNumber:function(t){return s()(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 n=s()(1.1).format("0.0").substring(1,2),o=s()(1e3).format("0,0").substring(1,2);"."==o&&(t=t.replace(o,""),e=e.replace(o,"")),"."!=n&&(t=t.replace(n,"."),e=e.replace(n,".")),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 n});var i=a(95),s=a.n(i);function n(){return{date:function(t){return s()(t).format("ll")},time:function(t){return s()(t).format("H:mm")},long:function(t){return s()(t).format("LLL")},ago:function(t){return s()(t).fromNow()}}}},465:function(t,e,a){"use strict";var i={computed:{template:function(){return this.$attrs.template}}},s=a(1),n=Object(s.a)(i,void 0,void 0,!1,null,null,null);n.options.__file="assets/js/src/components/widgets/_mixins/widget-type.vue";e.a=n.exports},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 s=a(465),n=function(){var t=this.$createElement;return(this._self._c||t)("div")};n._withStripped=!0;var o=a(458),r=a(532),u={methods:{onDataLoaded:function(){this.displayToast()},displayToast:function(){var t=this.assets[0],e=void 0!==this.config.assetsLogoImages[t]?this.config.pluginUrl+"/assets/images/logo/"+this.config.assetsLogoImages[t]:null;r.show({class:this.classes.join(" "),title:t,message:this.quoteValueFormatted(t,"name")+" "+this.quoteValueFormatted(t,"currency_symbol")+this.quoteValueFormatted(t,"price")+" ("+this.quoteValueFormatted(t,"change_pct")+")",timeout:1e3*parseInt(this.$attrs.timeout,10),image:this.$attrs.logo&&e?e:"",position:this.$attrs.position,transitionIn:this.$attrs.transition_in,transitionOut:this.$attrs.transition_out})}},created:function(){var t=this;["color","logo","timeout","position","transition_in","transition_out"].forEach(function(e){t.$watch("$attrs."+e,function(){t.displayToast()})})}},l=a(1),c=Object(l.a)(u,void 0,void 0,!1,null,null,null);c.options.__file="assets/js/src/components/widgets/_mixins/widget-toast.vue";var h=c.exports,d={mixins:[o.a,h]},p=Object(l.a)(d,n,[],!1,null,null,null);p.options.__file="assets/js/src/components/widgets/toast/_generic/template.vue";var _=p.exports,f={mixins:[s.a],components:{Generic:_}},m=Object(l.a)(f,i,[],!1,null,null,null);m.options.__file="assets/js/src/components/widgets/toast/toast.vue";e.default=m.exports}}]);