!function(){var n=function(n){this.$container=$(n),this.init()};n.prototype.init=function(){this.tabs=new MOD.ModuleTabs(this.$container.find(".mod-ui-tab-row"),this.$container),this.tabs.init(),new MOD.FreezePaneTable(this.$container.find(".mod-ui-table--freeze-pane__container"),1)},MOD.ContentWithNewsApp=n}();
!function(){function t(t){t.on(MOD.ModuleTabs.selectedTrigger,$.proxy(a,this)),t.on("click","li[data-mod-id]",$.proxy(e,this))}function i(t){this.blackList=[],new MOD.FreezePaneTable(t.find(".mod-ui-table--freeze-pane__container"),1),o.call(this,t,!0)}function a(){var t=this.tabs.GetSelectedPanel(),a=this.$container;MOD.UI.Loading.show(a),$.ajax({url:MOD.Common.resolveUrl("~/equities/ajax/update-global-indices"),data:{tab:t}}).done($.proxy(function(t){t&&t.html?(a.find(n+"__content").replaceWith(t.html),i.call(this,a)):new MOD.UI.Alert({text:"Failed to update chart."})},this)).fail($.proxy(function(t){new MOD.UI.Alert},this)).always(function(){MOD.UI.Loading.hide(a)})}function e(t){var i=$(t.target).closest("li"),a=i.data("mod-id").toString(),e=this.blackList,n=this.blackList.indexOf(a),r=i.find("i");-1==n?(e.push(a),i.addClass("disabled"),r&&(r.addClass(l),r.removeClass(s))):(e.splice(n,1),i.removeClass("disabled"),r&&(r.addClass(s),r.removeClass(l))),o.call(this,this.$container,!1)}function o(t,i){var a=t.find(".mod-ui-chart--dynamic"),e=JSON.parse(a.attr("data-mod-chart-data")),o=MOD.Colors,n=this.blackList,l=0,s=[];e&&$.each(e,$.proxy(function(t,i){if(-1==n.indexOf(i.xid)){i.xid,i.points;s.push({name:i.label,data:[],color:o["chartRainbow"+(t+1)],marker:{enabled:!1},fillColor:{linearGradient:[0,0,0,300]}}),$.each(i.points,function(i,a){s[t-l].data.push([moment.utc(a.time).valueOf(),a.value])})}else l++},this)),this.chart=a.highcharts({credits:!1,chart:{plotBackgroundColor:o.backgroundColor,plotShadow:!1,backgroundColor:o.backgroundColor,borderWidth:0,spacingLeft:0,spacingRight:0,spacingTop:10,spacingBottom:1,animation:!1,style:{fontFamily:'"MetricWeb", Arial, Helvetica, sans-serif',fontSize:"14px"}},title:{text:null},xAxis:{type:"datetime",dateTimeLabelFormats:{day:"%a %e/%m",minute:"%l:%M %P",hour:"%l:%M %P"},labels:{style:{"font-size":"12px",color:o.gray3}},gridLineWidth:1,gridLineColor:o.gray2,lineColor:o.gray2,tickColor:o.gray2,minTickInterval:36e5},yAxis:{opposite:!0,title:{text:null},labels:{format:"{value} %",style:{"font-size":"12px",color:o.gray3}},gridLineColor:o.gray2},legend:{enabled:!1},tooltip:{headerFormat:"{series.name}
",pointFormat:"{point.x:%e %b %l:%M %P}: {point.y} %"},plotOptions:{series:{animation:i}},series:s}).highcharts()}var n=".mod-global-indices",l="o-ft-icons-icon--plus",s="o-ft-icons-icon--cross",r=function(t){var i=$(t||n);i.length&&this.init(i)};r.prototype.init=function(a){new MOD.ControlTooltip(a),this.$container=a,this.tabs=new MOD.ModuleTabs(a.find(".mod-ui-tab-row"),a),this.tabs.init(),i.call(this,a),t.call(this,a)},MOD.GlobalIndicesApp=r}();
!function(){function i(){this.$quickViewBanner.find(".quick-view-banner--expand").on("click",$.proxy(function(i){i.preventDefault(),this.$quickViewBannerExpanded.show(),this.$quickViewBannerExpanded.attr("aria-hidden",!1),this.$quickViewBanner.find("hr").show(),this.$quickViewBannerPrimaryButtons.hide();var n=this.$quickViewBanner.find(".o-banner__content");n&&"40px"==n.css("margin-bottom")&&n.addClass("margin-bottom0")},this)),this.$quickViewBanner.on("click",".o-banner__close, .quick-view-banner--dismiss",$.proxy(n,this)),$("body").on(MOD.UI.QuickViewWalkThrough.REMOVE_QUICKVIEW_BANNER,$.proxy(n,this)),$("body").on("click",$.proxy(function(i){$(i.target).parents().hasClass("quick-view-banner")||"true"===this.$quickViewBannerExpanded.attr("aria-hidden")||(this.$quickViewBannerExpanded.hide(),this.$quickViewBannerExpanded.attr("aria-hidden",!0),this.$quickViewBanner.find("hr").hide(),this.$quickViewBannerPrimaryButtons.show())},this))}function n(i){i.preventDefault();var n=this.$quickViewBanner,t=n.attr(e),r=n.attr(a);r&&(r=parseInt(r)+1),$.ajax({url:MOD.Common.resolveUrl("~/miscapi/store-preference"),data:{isPreference:!0,value:r,preferenceId:t},type:"post"}),this.$quickViewBanner.hide()}var e="data-mod-id",a="data-quickview-banner-count",t=function(i){var n=$(i||".quick-view-banner");n.length&&this.init(n)};t.prototype.init=function(n){this.$quickViewBanner=n,this.$quickViewBannerExpanded=this.$quickViewBanner.find(".quick-view-banner--expanded"),this.$quickViewBannerPrimaryButtons=this.$quickViewBanner.find(".quick-view-banner--primary-buttons"),i.call(this)},MOD.QuickViewBanner=t}();
!function(){function e(e){var a=$(c);return a.hasClass(d)||("quickcards"!==$('.card-sections__section li a[aria-selected="true"]').attr("data-key")?($('.card-sections__section li a[data-key="quickcards"]').click(),setTimeout(function(){$(".quick-view-banner").hide(),a.addClass(d).attr("step",1),MOD.UI.Loading.show(a),$(l).append(E)},1500)):($(".quick-view-banner").hide(),a.addClass(d).attr("step",1),MOD.UI.Loading.show(a),$(l).append(E))),!1}function a(e){var a=$(c);return a.hasClass(d)&&(MOD.UI.Loading.hide(a),a.removeClass(d).removeAttr("step"),a.find(h).remove(),a.trigger(R.REMOVE_QUICKVIEW_BANNER)),!1}function r(e){var a=$(c);return a.hasClass(u)||($(".quick-view-banner").hide(),a.addClass(u).attr("step",1),MOD.UI.Loading.show(a),$(v).append(C)),!1}function i(e){var a=$(c);return a.hasClass(u)&&(MOD.UI.Loading.hide(a),MOD.UI.Loading.hide($(p).parent()),a.removeClass(u).removeAttr("step"),a.find(h).remove(),a.trigger(R.REMOVE_QUICKVIEW_BANNER)),!1}function t(e){var a=$(c);if(a.hasClass(u))return n(e),!1;var r=parseInt(a.attr("step"));switch(r>1&&a.attr("step",r-1),r){case 1:return!1;case 2:$(v).find(h).remove(),$(l).append(E);break;case 3:$(v).find(h).remove(),a.trigger(R.WALKTHORUGH_COLLAPSE_CAROUSEL_EVENT),$(v).append(O);break;case 4:$(k).find(h).remove(),a.trigger(R.WALKTHORUGH_EXPAND_CAROUSEL_EVENT),$(v).append(b);break;case 5:$(k).find(h).remove(),$(k).append(L)}return!1}function o(e){var a=$(c);if(a.hasClass(u))return s(e),!1;var r=parseInt(a.attr("step"));switch(r<5&&a.attr("step",r+1),r){case 1:a.find(h).remove(),$(v).append(O);break;case 2:$(v).find(h).remove(),a.trigger(R.WALKTHORUGH_EXPAND_CAROUSEL_EVENT),$(v).append(b);break;case 3:$(v).find(h).remove(),a.trigger(R.WALKTHORUGH_COLLAPSE_CAROUSEL_EVENT),$(k).append(L);break;case 4:$(k).find(h).remove(),$(k).append(U);break;case 5:return!1}return!1}function n(e){var a=$(c),r=parseInt(a.attr("step"));switch(r>1&&a.attr("step",r-1),r){case 1:return!1;case 2:$(v).find(h).remove(),$(v).append(C);break;case 3:$(m).find(h).remove(),MOD.UI.Loading.show(a),MOD.UI.Loading.hide($(p).parent()),$(_).click(),$(v).append(y);break;case 4:$(m).find(h).remove(),$(m).append(I)}return!1}function s(e){var a=$(c),r=parseInt(a.attr("step"));switch(r<4&&a.attr("step",r+1),r){case 1:$(v).find(h).remove(),$(v).append(y);break;case 2:$(v).find(h).remove(),$(w).click(),MOD.UI.Loading.hide(a),MOD.UI.Loading.show($(p).parent()),$(m).append(I);break;case 3:$(m).find(h).remove(),$(m).append(M);break;case 4:return!1}return!1}var c='[data-module-name="MyMarketsBaseApp"]',d="quickview-walkthrough",u="quickview-walkthrough-mobile",p=".mod-mobile-carousel-app",h=".walkthrough-texts",l=c+" .o-header__container",v=c+" .section-cards",k=c+" .mod-ui-carousel__menu--add",w=k+" .mod-ui-hide-medium-above",m=".mod-mobile-carousel-app .select-box-container",_=".mod-module__header--full-overlay",f="",g="",E="
Change the market that you would like to focus on."+f+g+"
Indices, equities, commodities and currencies that you have saved to your Quick View are shown here."+f+g+"
Hover over any card to see more information. You can remove a card from your Quick View while in this view."+f+g+"
Add a new card using this icon."+f+g+"
"+A+f+g+"
Got itTap this icon to view the menu to configure your Quick View."+f+g+"
Here you can add new symbols to your Quick View. You can also view all of the equities, indices, commodities and currencies that you have already added."+f+g+"
"+A+f+g+"
Got it