/*!
 * 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([[12],{458:function(t,e,s){"use strict";var a=s(462),i=s(463),o=s(464),n={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"),s=location.href.replace(this.config.websiteUrl+"/","").match(e);s&&void 0!==s[1]&&(t=[s[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"),s=e<0?this.code+"-down":e>0?this.code+"-up":"";return s&&-1==t.indexOf(s)&&t.push(s),t},marketDataLoaded:function(){var t=this,e=!1;if("table-history"==this.type||"chart"==this.type){var s=this.marketData(this.assets[0]);e=!(!s||s.symbol!=this.assets[0])}else{var a=0;this.assets.forEach(function(e){a+=t.quoteValue(e,"symbol")==e?1:0}),e=a==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 s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=this.marketData(t);return a&&void 0!==a[e]?null!=s?a[e][s]:a[e]:""},quoteValueFormatted:function(t,e){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=new a.a,r=new i.a,l=new o.a,u=this.quoteValue(t,e,s);if("name"==e){var c=this.quoteValue(t,"name",s);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)u=n.variableDecimal(u);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)u=n.percentage(100*u);else if(["5_year_avg_dividend_yield"].indexOf(e)>-1)u=n.percentage(u);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)u=n.bigNumber(u);else if("range"==e){var d=this.quoteValue(t,"low",s),h=this.quoteValue(t,"high",s);u=n.variableDecimal(d)+" - "+n.variableDecimal(h)}else if("52_week_range"==e){d=this.quoteValue(t,"52_week_low",s),h=this.quoteValue(t,"52_week_high",s);u=n.variableDecimal(d)+" - "+n.variableDecimal(h)}else"currency_symbol"==e?u=r.symbol(this.quoteValue(t,"currency",s)):["last_update","ex_dividend_date","last_split_date"].indexOf(e)>-1?u&&(u=l.long(u)):"date"==e?u=l.date(u):"date_time"==e?u=l.long(this.quoteValue(t,"date",s)):"last_update_ago"==e?u=l.ago(this.quoteValue(t,"last_update",s)):"number"==typeof u&&(u=n.decimal(u));return u},sortValue:function(t,e){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return["logo_name","logo_name_link"].indexOf(e)>-1?this.quoteValueFormatted(t,"name",s):e.match(/^portfolio_/)?this.portfolioValue(t,s,e):"last_update_ago"==e?this.quoteValue(t,"last_update",s):"date_time"==e?this.quoteValue(t,"date",s):this.quoteValue(t,e,s)||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,s){!s&&e&&t.$emit("data-loaded",{widgetType:t.type,eventType:"WIDGET_INIT_DATA_LOADED"})}),this.$watch("$attrs.assets",function(e,s){t.marketDataLoaded?t.$emit("data-loaded",{widgetType:t.type,eventType:"ASSETS_CHANGE_DATA_AVAILABLE"}):t.api&&t.subscribeMarketData()})}},r=s(1),l=Object(r.a)(n,void 0,void 0,!1,null,null,null);l.options.__file="assets/js/src/components/widgets/_mixins/template.vue";e.a=l.exports},459:function(t,e,s){"use strict";var a=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)))])};a._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)}}},o=s(1),n=Object(o.a)(i,a,[],!1,null,null,null);n.options.__file="assets/js/src/components/widgets/_parts/quote.vue";e.a=n.exports},460:function(t,e,s){"use strict";var a=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()};a._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}}},o=s(1),n=Object(o.a)(i,a,[],!1,null,null,null);n.options.__file="assets/js/src/components/widgets/_parts/logo.vue";e.a=n.exports},462:function(t,e,s){"use strict";s.d(e,"a",function(){return o});var a=s(65),i=s.n(a);function o(){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,s=i()(t),a=Math.abs(s.value());a>=.01?e="0,0.00":0==a?e="0.00":1e-4<=a&&a<.01?e="0.0000":a<1e-4&&(e="0.00000000");var o=s.format(e);return"NaN"!==o?o:parseFloat(t).toFixed(8)},bigNumber:function(t){return i()(t).format("0,0.00a").toUpperCase()},compareNumbers:function(t,e){var s,a;if("number"==typeof t&&"number"==typeof e)s=t,a=e;else{var o=i()(1.1).format("0.0").substring(1,2),n=i()(1e3).format("0,0").substring(1,2);"."==n&&(t=t.replace(n,""),e=e.replace(n,"")),"."!=o&&(t=t.replace(o,"."),e=e.replace(o,".")),s=parseFloat(t.replace(/[^0-9.-]/g,"")),a=parseFloat(e.replace(/[^0-9.-]/g,""))}return t&&e&&!isNaN(s)&&!isNaN(a)?s>a?1:s<a?-1:0:t.localeCompare(e)}}}},463:function(t,e,s){"use strict";function a(){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}}}s.d(e,"a",function(){return a})},464:function(t,e,s){"use strict";s.d(e,"a",function(){return o});var a=s(95),i=s.n(a);function o(){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,s){"use strict";var a={computed:{template:function(){return this.$attrs.template}}},i=s(1),o=Object(i.a)(a,void 0,void 0,!1,null,null,null);o.options.__file="assets/js/src/components/widgets/_mixins/widget-type.vue";e.a=o.exports},537:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this.$createElement;return(this._self._c||t)(this.template,this._b({tag:"component"},"component",this.$attrs,!1))};a._withStripped=!0;var i=s(465),o=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.display?s("div",{class:t.classes},[t._l(t.fields,function(e){return["logo"==e?s("div",[s("i",{staticClass:"fas fa-angle-right"}),t._v(" "),s("span",{class:t.code+"-bold"},[t._v(t._s(t.translate("logo"))+":")]),t._v(" "),s("logo",{attrs:{symbol:t.symbol}})],1):"logo_name"==e?s("div",[s("i",{staticClass:"fas fa-angle-right"}),t._v(" "),s("span",{class:t.code+"-bold"},[t._v(t._s(t.translate("name"))+":")]),t._v(" "),s("logo",{attrs:{symbol:t.symbol}}),t._v(" "),s("quote",{attrs:{asset:t.symbol,field:"name"}})],1):"name"==e?s("div",[s("i",{staticClass:"fas fa-angle-right"}),t._v(" "),s("span",{class:t.code+"-bold"},[t._v(t._s(t.translate("name"))+":")]),t._v(" "),s("quote",{attrs:{asset:t.symbol,field:"name"}})],1):"website"==e?s("div",[s("i",{staticClass:"fas fa-angle-right"}),t._v(" "),s("span",{class:t.code+"-bold"},[t._v(t._s(t.translate("website"))+":")]),t._v(" "),s("a",{attrs:{href:t.quoteValue(t.symbol,"website"),target:"_blank",rel:"nofollow"}},[t._v(t._s(t.quoteValue(t.symbol,"website")))])]):s("div",[s("i",{staticClass:"fas fa-angle-right"}),t._v(" "),s("span",{class:t.code+"-bold"},[t._v(t._s(t.translate(e))+":")]),t._v(" "),s("quote",{attrs:{asset:t.symbol,field:e}})],1)]})],2):t._e()};o._withStripped=!0;var n=s(458),r=s(459),l=s(460),u={mixins:[n.a],computed:{symbol:function(){return this.assets[0]}},components:{Quote:r.a,Logo:l.a}},c=s(1),d=Object(c.a)(u,o,[],!1,null,null,null);d.options.__file="assets/js/src/components/widgets/info/list/template.vue";var h=d.exports,_=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.display?s("div",{class:t.classes},[t.fields.indexOf("logo_name")>-1?s("div",{class:t.code+"-info-heading"},[s("logo",{attrs:{symbol:t.symbol}}),t._v(" "),s("quote",{attrs:{asset:t.symbol,field:"name"}})],1):t._e(),t._v(" "),s("div",{class:t.code+"-info-body"},[t._l(t.fields,function(e){return["logo"==e?s("div",[s("span",{class:t.code+"-bold"},[t._v(t._s(t.translate("logo"))+":")]),t._v(" "),s("logo",{attrs:{symbol:t.symbol}})],1):"website"==e?s("div",[s("span",{class:t.code+"-bold"},[t._v(t._s(t.translate("website"))+":")]),t._v(" "),s("a",{attrs:{href:t.quoteValue(t.symbol,"website"),target:"_blank",rel:"nofollow"}},[t._v(t._s(t.quoteValue(t.symbol,"website")))])]):"logo_name"!=e?s("div",[s("span",{class:t.code+"-bold"},[t._v(t._s(t.translate(e))+":")]),t._v(" "),s("quote",{attrs:{asset:t.symbol,field:e}})],1):t._e()]})],2)]):t._e()};_._withStripped=!0;var p={mixins:[n.a],computed:{symbol:function(){return this.assets[0]}},components:{Quote:r.a,Logo:l.a}},f=Object(c.a)(p,_,[],!1,null,null,null);f.options.__file="assets/js/src/components/widgets/info/block/template.vue";var m=f.exports,v=function(){var t=this,e=t.$createElement,s=t._self._c||e;return t.display?s("div",{class:t.classes},[s("table",[s("tbody",t._l(t.fields,function(e){return s("tr",["logo"==e?[s("td",[t._v(t._s(t.translate("logo")))]),t._v(" "),s("td",[s("logo",{attrs:{symbol:t.symbol}})],1)]:"logo_name"==e?[s("td",[t._v(t._s(t.translate("name")))]),t._v(" "),s("td",[s("logo",{attrs:{symbol:t.symbol}}),t._v(" "),s("quote",{attrs:{asset:t.symbol,field:"name"}})],1)]:"name"==e?[s("td",[t._v(t._s(t.translate("name")))]),t._v(" "),s("td",[s("quote",{attrs:{asset:t.symbol,field:"name"}})],1)]:"website"==e?[s("td",[t._v(t._s(t.translate("website")))]),t._v(" "),s("td",[s("a",{attrs:{href:t.quoteValue(t.symbol,"website"),target:"_blank",rel:"nofollow"}},[t._v(t._s(t.quoteValue(t.symbol,"website")))])])]:[s("td",[t._v(t._s(t.translate(e)))]),t._v(" "),s("td",[s("quote",{attrs:{asset:t.symbol,field:e}})],1)]],2)}),0)])]):t._e()};v._withStripped=!0;var g={mixins:[n.a],computed:{symbol:function(){return this.assets[0]}},components:{Quote:r.a,Logo:l.a}},b=Object(c.a)(g,v,[],!1,null,null,null);b.options.__file="assets/js/src/components/widgets/info/table/template.vue";var y=b.exports,w={mixins:[i.a],components:{List:h,Block:m,PropertyTable:y}},$=Object(c.a)(w,a,[],!1,null,null,null);$.options.__file="assets/js/src/components/widgets/info/info.vue";e.default=$.exports}}]);