/*!
 * 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([[152],{458:function(t,e,a){"use strict";var s=a(462),i=a(463),n=a(464),r={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 s=0;this.assets.forEach(function(e){s+=t.quoteValue(e,"symbol")==e?1:0}),e=s==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,s=this.marketData(t);return s&&void 0!==s[e]?null!=a?s[e][a]:s[e]:""},quoteValueFormatted:function(t,e){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=new s.a,o=new i.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=r.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=r.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=r.bigNumber(l);else if("range"==e){var p=this.quoteValue(t,"low",a),h=this.quoteValue(t,"high",a);l=r.variableDecimal(p)+" - "+r.variableDecimal(h)}else if("52_week_range"==e){p=this.quoteValue(t,"52_week_low",a),h=this.quoteValue(t,"52_week_high",a);l=r.variableDecimal(p)+" - "+r.variableDecimal(h)}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=r.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)(r,void 0,void 0,!1,null,null,null);u.options.__file="assets/js/src/components/widgets/_mixins/template.vue";e.a=u.exports},459:function(t,e,a){"use strict";var s=function(){var t=this.$createElement;return(this._self._c||t)("span",{class:this.classes},[this._v(this._s(this.$parent.quoteValueFormatted(this.asset,this.field,this.index)))])};s._withStripped=!0;var i={props:["asset","field","i","color-indicator"],computed:{classes:function(){var t=[this.$parent.code+"-field",this.$parent.code+"-field-"+this.field.replace(/_/g,"-")],e=this.value;return this.colorIndicator&&t.push(e<0?this.$parent.code+"-down":e>0?this.$parent.code+"-up":""),t},index:function(){return void 0!==this.i?parseFloat(this.i):null},value:function(){return this.$parent.quoteValue(this.asset,this.field,this.index)}}},n=a(1),r=Object(n.a)(i,s,[],!1,null,null,null);r.options.__file="assets/js/src/components/widgets/_parts/quote.vue";e.a=r.exports},460:function(t,e,a){"use strict";var s=function(){var t=this.$createElement,e=this._self._c||t;return this.url?e("span",{class:this.classes},[e("img",{attrs:{src:this.url}})]):this._e()};s._withStripped=!0;var i={props:["symbol"],data:function(){return{config:this.$parent.config}},computed:{classes:function(){return this.$parent.code+"-field-logo"},url:function(){return void 0!==this.config.assetsLogoImages[this.symbol]?this.config.pluginUrl+"/assets/images/logo/"+this.config.assetsLogoImages[this.symbol]:null}}},n=a(1),r=Object(n.a)(i,s,[],!1,null,null,null);r.options.__file="assets/js/src/components/widgets/_parts/logo.vue";e.a=r.exports},462:function(t,e,a){"use strict";a.d(e,"a",function(){return n});var s=a(65),i=a.n(s);function n(){var t=function(t){var e=i()(t).format("0,0.00");return"NaN"!==e?e:parseFloat(t).toFixed(2)};return{integer:function(t){return i()(t).format("0,0")},decimal:t,percentage:function(e){return t(e)+"%"},variableDecimal:function(t){var e,a=i()(t),s=Math.abs(a.value());s>=.01?e="0,0.00":0==s?e="0.00":1e-4<=s&&s<.01?e="0.0000":s<1e-4&&(e="0.00000000");var n=a.format(e);return"NaN"!==n?n:parseFloat(t).toFixed(8)},bigNumber:function(t){return i()(t).format("0,0.00a").toUpperCase()},compareNumbers:function(t,e){var a,s;if("number"==typeof t&&"number"==typeof e)a=t,s=e;else{var n=i()(1.1).format("0.0").substring(1,2),r=i()(1e3).format("0,0").substring(1,2);"."==r&&(t=t.replace(r,""),e=e.replace(r,"")),"."!=n&&(t=t.replace(n,"."),e=e.replace(n,".")),a=parseFloat(t.replace(/[^0-9.-]/g,"")),s=parseFloat(e.replace(/[^0-9.-]/g,""))}return t&&e&&!isNaN(a)&&!isNaN(s)?a>s?1:a<s?-1:0:t.localeCompare(e)}}}},463:function(t,e,a){"use strict";function s(){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 s})},464:function(t,e,a){"use strict";a.d(e,"a",function(){return n});var s=a(95),i=a.n(s);function n(){return{date:function(t){return i()(t).format("ll")},time:function(t){return i()(t).format("H:mm")},long:function(t){return i()(t).format("LLL")},ago:function(t){return i()(t).fromNow()}}}},465:function(t,e,a){"use strict";var s={computed:{template:function(){return this.$attrs.template}}},i=a(1),n=Object(i.a)(s,void 0,void 0,!1,null,null,null);n.options.__file="assets/js/src/components/widgets/_mixins/widget-type.vue";e.a=n.exports},544:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this.$createElement;return(this._self._c||t)(this.template,this._b({tag:"component"},"component",this.$attrs,!1))};s._withStripped=!0;var i=a(465),n=a(28),r=a(458),o=a(459),u=a(460),l=a(530),c=a.n(l),p={data:function(){return{typed:null}},computed:{speed:function(){return parseInt(this.$attrs.speed,10)}},methods:{initTyped:function(){var t=this;if(this.typed){this.typed.stop();var e=this.$el.querySelector(".typed-cursor");e&&e.remove(),this.typed.destroy()}return new c.a(this.$el.querySelector("."+this.code+"-typed-container"),{stringsElement:this.$el.querySelector("."+this.code+"-typed-elements"),typeSpeed:this.speed,loop:!0,showCursor:!0,backDelay:1e3,onLastStringBackspaced:function(){t.typed=t.initTyped()}})},onDataLoaded:function(){this.typed=this.initTyped()}},created:function(){var t=this;this.$watch("speed",function(){t.onDataLoaded()})}},h=a(1),d=Object(h.a)(p,void 0,void 0,!1,null,null,null);d.options.__file="assets/js/src/components/widgets/_mixins/widget-typed.vue";var f=d.exports,m={mixins:[r.a,f],render:function(t){if(this.template)return this.template()},data:function(){return{template:null}},methods:{componentMarkup:function(t){var e="";return e="logo"==t?'<logo :symbol="asset"></logo>':'<quote :asset="asset" field="'+t+'"></quote>',e},compileTemplate:function(){var t=this,e=this.$attrs.markup?this.$attrs.markup.replace(/\{[a-z0-9_-]+\}/gi,function(e){var a=e.replace(/\{|\}/g,"");return t.componentMarkup(a)}):"";this.template=n.a.compile('<span v-if="display" :class="classes"><span :class="code + \'-typed-elements\'"><span v-for="asset in assets">'+e+"</span></span><span :class=\"code + '-typed-container'\"></span></span>").render}},created:function(){var t=this;this.compileTemplate(),this.$watch("$attrs.markup",function(){t.compileTemplate()})},components:{Quote:o.a,Logo:u.a}},_=Object(h.a)(m,void 0,void 0,!1,null,null,null);_.options.__file="assets/js/src/components/widgets/typed-quotes/_generic/template.vue";var g=_.exports,v={mixins:[i.a],components:{Generic:g}},y=Object(h.a)(v,s,[],!1,null,null,null);y.options.__file="assets/js/src/components/widgets/typed-quotes/typed-quotes.vue";e.default=y.exports}}]);