/*!
 * 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([[146],{458:function(t,e,s){"use strict";var a=s(462),i=s(463),o=s(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"),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,r=new a.a,n=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=r.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=r.percentage(100*u);else if(["5_year_avg_dividend_yield"].indexOf(e)>-1)u=r.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=r.bigNumber(u);else if("range"==e){var p=this.quoteValue(t,"low",s),h=this.quoteValue(t,"high",s);u=r.variableDecimal(p)+" - "+r.variableDecimal(h)}else if("52_week_range"==e){p=this.quoteValue(t,"52_week_low",s),h=this.quoteValue(t,"52_week_high",s);u=r.variableDecimal(p)+" - "+r.variableDecimal(h)}else"currency_symbol"==e?u=n.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=r.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()})}},n=s(1),l=Object(n.a)(r,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),r=Object(o.a)(i,a,[],!1,null,null,null);r.options.__file="assets/js/src/components/widgets/_parts/quote.vue";e.a=r.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),r=Object(o.a)(i,a,[],!1,null,null,null);r.options.__file="assets/js/src/components/widgets/_parts/logo.vue";e.a=r.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),r=i()(1e3).format("0,0").substring(1,2);"."==r&&(t=t.replace(r,""),e=e.replace(r,"")),"."!=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},474:function(t,e,s){"use strict";var a=s(52),i=s.n(a),o=(s(478),{data:function(){return{dataTable:null}},computed:{rowsPerPage:function(){return Math.max(1,parseInt(this.$attrs.rows_per_page,10))},paginationEnabled:function(){return this.checkBoolean(this.$attrs.pagination)&&("table-history"==this.type||this.rowsPerPage<this.assets.length)}},methods:{onDataLoaded:function(){this.createDataTable()},createDataTable:function(){var t=i()(this.$el).find("table");this.dataTable&&this.dataTable.destroy();var e=this.fields.indexOf(this.$attrs.sort_field);this.dataTable=t.DataTable({language:{search:"",searchPlaceholder:this.translate("search2"),zeroRecords:this.translate("search_not_found"),paginate:{next:'<i class="fas fa-angle-right"></i>',previous:'<i class="fas fa-angle-left"></i>'}},info:!1,searching:this.checkBoolean(this.$attrs.search,!1),lengthChange:!1,paging:this.paginationEnabled,pageLength:this.rowsPerPage,pagingType:"simple_numbers",orderClasses:!1,stripeClasses:[this.code+"-row-odd",this.code+"-row-even"],order:e>-1?[[e,this.$attrs.sort_direction]]:[]})}},created:function(){var t=this;["pagination","rows_per_page","sort_field","sort_direction","search"].forEach(function(e){t.$watch("$attrs."+e,function(){t.createDataTable()})})}}),r=s(1),n=Object(r.a)(o,void 0,void 0,!1,null,null,null);n.options.__file="assets/js/src/components/widgets/_mixins/widget-datatable.vue";e.a=n.exports},538:function(t,e,s){"use strict";s.r(e);var a=function(){var t=this.$createElement;return(this._self._c||t)("generic",this._b({key:this.key,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 s("div",{class:t.classes},[s("table",[s("thead",[s("tr",t._l(t.fields,function(e){return s("th",{class:t.code+"-heading-"+e.replace(/_/g,"-")},[t._v(t._s(t.translate(e)))])}),0)]),t._v(" "),s("tbody",[t.display?t._l(t.assets,function(e,a){return s("tr",t._l(t.fields,function(i){return s("td",{class:t.code+"-cell-"+i.replace(/_/g,"-"),attrs:{"data-title":t.translate(i),"data-sort":i.match(/^portfolio_/)?t.sortValue(e,i,a):t.sortValue(e,i)}},[["price","open","high","low","market_cap","volume","portfolio_price","portfolio_sell_price","portfolio_cost","portfolio_value"].indexOf(i)>-1?[s("quote",{attrs:{asset:e,field:"currency_symbol"}})]:t._e(),t._v(" "),"logo"==i?[s("logo",{attrs:{symbol:e}})]:"logo_name"==i?[s("logo",{attrs:{symbol:e}}),t._v(" "),s("quote",{attrs:{asset:e,field:"name"}})]:"logo_name_link"==i?[s("logo",{attrs:{symbol:e}}),t._v(" "),s("stock-market-widget",{attrs:{type:"button-link",template:"link",color:"default",assets:e,url:t.urls[a],target:"_self",markup:"{name}",api:t.api}})]:["change_abs","change_pct"].indexOf(i)>-1?[s("quote",{attrs:{asset:e,field:i,"color-indicator":"1"}})]:i.match(/^portfolio_/)?[["portfolio_change_abs","portfolio_change_pct","portfolio_return_abs","portfolio_return_pct"].indexOf(i)>-1?[s("portfolio-indicator",{staticClass:"fas",attrs:{asset:e,"asset-index":a,field:i,"down-class":"fa-arrow-down","up-class":"fa-arrow-up"}})]:t._e(),t._v(" "),s("portfolio-field",{attrs:{asset:e,"asset-index":a,field:i,"color-indicator":["portfolio_change_abs","portfolio_change_pct","portfolio_return_abs","portfolio_return_pct"].indexOf(i)>-1}})]:"link"==i?[s("stock-market-widget",{attrs:{type:"button-link",template:"link",color:"default",assets:e,url:t.urls[a],target:"_self",markup:t.markups[a],api:t.api}})]:[s("quote",{attrs:{asset:e,field:i}})]],2)}),0)}):t._l(Array(t.placeholderRowsCount).fill(0),function(e){return s("tr",{class:t.code+"-placeholder"},[s("td",{attrs:{colspan:t.fields.length}},[s("div")])])})],2),t._v(" "),t.display?s("tfoot",[s("tr",[t._l(t.fields,function(e){return[["portfolio_cost","portfolio_value","portfolio_return_abs","portfolio_return_pct"].indexOf(e)>-1?s("td",{attrs:{"data-title":t.translate("total_"+e)}},[["portfolio_cost","portfolio_value"].indexOf(e)>-1?[s("quote",{attrs:{asset:t.assets[0],field:"currency_symbol"}})]:t._e(),t._v("\n                        "+t._s(t.totalPortfolioValueFormatted(e))+"\n                    ")],2):s("td",{class:t.code+"-mobile-hidden"})]})],2)]):t._e()])])};o._withStripped=!0;var r=s(462),n=s(458),l=s(474),u=s(459),c=function(){var t=this.$createElement;return(this._self._c||t)("span",{class:this.classes},[this._v(this._s(this.valueFormatted))])};c._withStripped=!0;var p={props:["asset","field","assetIndex","color-indicator"],computed:{classes:function(){var t=[this.$parent.code+"-portfolio-"+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},value:function(){return this.$parent.portfolioValue(this.asset,this.assetIndex,this.field)},valueFormatted:function(){return this.$parent.portfolioValueFormatted(this.asset,this.assetIndex,this.field)}}},h=s(1),f=Object(h.a)(p,c,[],!1,null,null,null);f.options.__file="assets/js/src/components/widgets/_parts/portfolio-field.vue";var d=f.exports,_=s(460),g=function(){var t=this.$createElement,e=this._self._c||t;return this.classes?e("i",{class:this.classes}):this._e()};g._withStripped=!0;var m={props:["asset","field","assetIndex","downClass","upClass"],computed:{value:function(){return this.$parent.portfolioValue(this.asset,this.assetIndex,this.field)},classes:function(){return this.value<0?[this.downClass,this.$parent.code+"-down"]:this.value>0?[this.upClass,this.$parent.code+"-up"]:""}}},v=Object(h.a)(m,g,[],!1,null,null,null);v.options.__file="assets/js/src/components/widgets/_parts/portfolio-indicator.vue";var b=v.exports,$={mixins:[n.a,l.a],computed:{placeholderRowsCount:function(){return this.checkBoolean(this.$attrs.pagination)?Math.max(1,Math.min(this.assets.length,parseInt(this.$attrs.rows_per_page,10))):this.assets.length},portfolioPrices:function(){return this.$attrs.prices?this.$attrs.prices.split(",").map(function(t){return parseFloat(t)}):[]},portfolioDates:function(){return this.$attrs.dates?this.$attrs.dates.split(","):[]},portfolioSellPrices:function(){return this.$attrs.sell_prices?this.$attrs.sell_prices.split(",").map(function(t){return t?parseFloat(t):""}):[]},portfolioSellDates:function(){return this.$attrs.sell_dates?this.$attrs.sell_dates.split(","):[]},portfolioQuantities:function(){return this.$attrs.quantities?this.$attrs.quantities.split(",").map(function(t){return parseFloat(t)}):[]},urls:function(){return this.$attrs.urls?this.$attrs.urls.split(","):[]},markups:function(){return this.$attrs.markups?this.$attrs.markups.split(","):[]}},methods:{portfolioValue:function(t,e,s){var a;if("portfolio_price"==s)a=this.portfolioPrices[e];else if("portfolio_date"==s)a=this.portfolioDates[e];else if("portfolio_sell_price"==s)a=this.portfolioSellPrices[e];else if("portfolio_sell_date"==s)a=this.portfolioSellDates[e];else if("portfolio_quantity"==s)a=this.portfolioQuantities[e];else if("portfolio_change_abs"==s){a=(i=this.portfolioSellPrices[e]||this.quoteValue(t,"price"))-this.portfolioPrices[e]}else if("portfolio_change_pct"==s){var i=this.portfolioSellPrices[e]||this.quoteValue(t,"price");a=0!=this.portfolioPrices[e]?100*(i/this.portfolioPrices[e]-1):0}else if("portfolio_cost"==s)a=this.portfolioPrices[e]*this.portfolioQuantities[e];else if("portfolio_value"==s){a=(i=this.portfolioSellPrices[e]||this.quoteValue(t,"price"))*this.portfolioQuantities[e]}else if("portfolio_return_abs"==s)a=this.portfolioValue(t,e,"portfolio_value")-this.portfolioValue(t,e,"portfolio_cost");else if("portfolio_return_pct"==s){var o=this.portfolioValue(t,e,"portfolio_cost");a=0!=o?Math.sign(o)*(this.portfolioValue(t,e,"portfolio_value")/o-1)*100:0}return a},portfolioValueFormatted:function(t,e,s){var a=new r.a,i=this.portfolioValue(t,e,s);return["portfolio_price","portfolio_sell_price","portfolio_quantity","portfolio_change_abs"].indexOf(s)>-1?i=a.variableDecimal(i):["portfolio_change_pct","portfolio_return_pct"].indexOf(s)>-1?i=a.percentage(i):"portfolio_date"!=s&&"portfolio_sell_date"!=s&&(i=a.decimal(i)),i},totalPortfolioValue:function(t){var e=this,s=0;if(["portfolio_cost","portfolio_value"].indexOf(t)>-1)this.assets.forEach(function(a,i){s+=e.portfolioValue(a,i,t)});else if("portfolio_return_abs"==t){var a=this.totalPortfolioValue("portfolio_cost"),i=this.totalPortfolioValue("portfolio_value");s=i-a}else if("portfolio_return_pct"==t){a=this.totalPortfolioValue("portfolio_cost"),i=this.totalPortfolioValue("portfolio_value");s=0!=a?Math.sign(a)*(i/a-1)*100:0}return s},totalPortfolioValueFormatted:function(t){var e=new r.a;return["portfolio_change_pct","portfolio_return_pct"].indexOf(t)>-1?e.percentage(this.totalPortfolioValue(t)):e.decimal(this.totalPortfolioValue(t))}},components:{Quote:u.a,PortfolioField:d,Logo:_.a,PortfolioIndicator:b}},y=Object(h.a)($,o,[],!1,null,null,null);y.options.__file="assets/js/src/components/widgets/table-portfolio/_generic/template.vue";var w=y.exports,k={mixins:[i.a],computed:{key:function(){return this.$attrs.assets.length+"-"+this.$attrs.fields.length}},components:{Generic:w}},D=Object(h.a)(k,a,[],!1,null,null,null);D.options.__file="assets/js/src/components/widgets/table-portfolio/table-portfolio.vue";e.default=D.exports}}]);