PageSourceSearch

https://www.animasgr.it/bundles/js/main?v=bmG-izj8gMYQTHI5kuM4vaW_2k2DSfOvmIs8YHYRzd81?1.2026-07-22

js animasgr.it collected 2026-10-04 01:35:35 UTC 117,815 bytes, 1 lines download raw bytes

1function htmlEncode(n){return document.createElement("a").appendChild(document.createTextNode(n)).parentNode.innerHTML.replace(/'/g,"'").replace(/"/g,""")}function simulateReturn(n){$(n).trigger(jQuery.Event("keypress",{keyCode:13}))}function Favorites(){}var gtm=gtm||{},msys,Anima,favoriteManager,filterAction;gtm.video={};gtm.documents={};gtm.user={};gtm.product={};gtm.elearning={};gtm.simulators={};gtm.others={};gtm.articles={};gtm.timeout=1e3;$(document).ready(function(){$("[data-gtm='true']").click(function(n){var t=$(this);gtm.traceEvent(t,n)})});gtm.traceObject=function(n){msys.useGTMAnalytics&&n&&n.eventID&&n.eventAction&&n.eventCategory&&window.dataLayer.push(n)};gtm.traceEvent=function(n,t){var i;if(gtm.useGTM()){var e=n.is(":checkbox"),o=n.prop("checked"),s=n.data("gtm-onlychecked")===!0,h=n.data("gtm-onlyactive")===!0,r=!0;if(((s&&e&&!o||h&&n.hasClass("active")||n.data("gtm-event-category")==="homepage"&&dataLayer[0].pageType!=="homepage")&&(r=!1),r)&&(i=gtm.getObject(),$.each(n.data(),function(n,t){if(n.indexOf("gtm")===0&&n.toLowerCase().trim()!=="gtm"&&n.toLowerCase().trim()!=="gtmonlychecked"&&n.toLowerCase().trim()!=="gtmonlyactive"){var u=t.toString(),r=n.replace("gtm","")[0].toLowerCase()+n.replace("gtm","").slice(1);r.toLowerCase()==="eventid"&&(r="eventID");i[r]=gtm.formatValue(u)}}),i.eventID&&i.eventAction&&i.eventCategory)){var c=n.is("a")&&n.attr("href")&&n.attr("href")!="#",u=n.attr("target"),l=u&&u.toLowerCase()==="_blank",f=c&&!l;f&&t.preventDefault();i.eventCallback=function(t,r){if(gtm.logTracing("EventId: "+i.eventID+" - Action: "+i.eventAction+" - Category: "+i.eventCategory,r),f){var u=n.attr("href");window.location=u}};i.eventTimeout=gtm.timeout;n.data("gtm-event-label")||(i.eventLabel=undefined);i.eventCategory==="pdf"&&(i.eventCategory="PDF");gtm.traceObject(i)}}};gtm.others.activateSliderTracing=function(n){gtm.useGTM()&&dataLayer[0].pageType==="homepage"&&$(n+"[data-gtm-home-slider='true']").each(function(n,t){var r=$(t),i=r.find(".bx-controls-direction");i&&(i.find(".bx-prev").click(function(){gtm.others.traceSliderDirection("sinistra")}),i.find(".bx-next").click(function(){gtm.others.traceSliderDirection("destra")}))})};gtm.others.traceSliderDirection=function(n){if(gtm.useGTM()){var t=gtm.formatValue(dataLayer[0].pageType)||"homepage",i="slider_click_"+n,r=gtm.getObject("10",t,i);gtm.traceObject(r)}};gtm.others.homepageSearch=function(n,t){if(!gtm.useGTM()){window.location.href=t;return}if(dataLayer[0].pageType==="homepage"){var r=$(n).val(),i=gtm.getObject("11","homepage","trova_"+gtm.formatValue(r));t&&(i.eventCallback=function(n,i){gtm.logTracing("Home page search",i);window.location=t});gtm.traceObject(i)}};gtm.video.tracePlay=function(n,t,i){gtm.video.trace("play",n,t,i)};gtm.video.tracePause=function(n,t,i){gtm.video.trace("pause",n,t,i)};gtm.video.traceComplete=function(n,t,i){gtm.video.trace("complete",n,t,i)};gtm.video.traceClose=function(n,t,i){gtm.video.trace("close",n,t,i)};gtm.video.trace=function(n,t,i,r){if(gtm.useGTM()){var u=gtm.getObject("08","video",n,t,"video "+n);u.videoLenght=i.toString();u.clusterVideo=gtm.formatValue(r);gtm.traceObject(u)}else msys.usePlausibleAnalytics&&n==="play"&&(typeof plausible=="function"?plausible("video_"+n,{props:{action:n,title:gtm.formatValue(t),videoLenght:i,clusterVideo:gtm.formatValue(r)}}):console.log("gtm.video.trace: plausible undefined"))};gtm.video.traceTimePercentage=function(n,t){if(gtm.useGTM()){var i=gtm.getObject("07","visualizzazione_video",n.toString(),t,"video time percentage");gtm.traceObject(i)}};gtm.documents.download=function(n,t,i){var r=t&&t.indexOf(".")>=0?t.split(".").pop().toUpperCase():"",u;gtm.useGTM()?(u=gtm.getObject("09",r,"download",n,"document download"),u.cluster=gtm.formatValue(i),gtm.traceObject(u)):msys.usePlausibleAnalytics&&(typeof plausible=="function"?plausible("download_"+gtm.formatValue(r),{props:{category:gtm.formatValue(r),title:gtm.formatValue(n),cluster:gtm.formatValue(i)}}):console.log("gtm.video.trace: plausible undefined"))};gtm.documents.filtersSearch=function(n){if(gtm.useGTM()&&n.search){var t=gtm.documentCluster||n.repositoryName,i=gtm.getObject("33","filtri_"+t,"cerca_per_nome",n.search,"filtri_"+t);gtm.traceObject(i)}};gtm.user.register=function(n,t){if(!gtm.useGTM()){window.location.href=t;return}if(n){var i=gtm.getObject("05","registrazione_utente_ok",n);t&&(i.eventCallback=function(n,i){gtm.logTracing("Register",i);window.location.href=t});gtm.traceObject(i)}};gtm.user.login=function(n,t){if(!gtm.useGTM()){window.location.href=t;return}if(n){var i=gtm.getObject("06","login_utente_ok",n);t&&(i.eventCallback=function(n,i){gtm.logTracing("Login",i);window.location=t});gtm.traceObject(i)}};gtm.user.newsletter=function(n){if(!gtm.useGTM()){window.location.href=n;return}var t=gtm.getObject("04","newsletter","sottoscrizione_ok");n&&(t.eventCallback=function(t,i){gtm.logTracing("Newsletter",i);window.location=n});gtm.traceObject(t)};gtm.product.feature=function(n){if(gtm.useGTM()&&n){var t=gtm.getObject("16","dettaglio_fondo","click_anchor_link",n,"dettaglio_fondo click_anchor_link "+gtm.formatValue(n));gtm.traceObject(t)}};gtm.product.portfolio=function(n){if(gtm.useGTM()&&n){var t=gtm.getObject("17","dettaglio_fondo","click_portafoglio",n,"dettaglio_fondo click_portafoglio "+gtm.formatValue(n));gtm.traceObject(t)}};gtm.product.simulatorsMenu=function(n){if(gtm.useGTM()&&n){var t=gtm.getObject("18","dettaglio_fondo","click_simulatori",n,"dettaglio_fondo click_simulatori "+gtm.formatValue(n));gtm.traceObject(t)}};gtm.product.changeClass=function(n,t,i){if(!gtm.useGTM()){window.location.href=redirectUrl;return}if(t){var r=gtm.getObject("19","dettaglio_fondo","cambio_classe",t);r.eventCallback=function(r,u){gtm.logTracing("dettaglio_fondo cambio_classe "+gtm.formatValue(t),u);n&&i&&(n.preventDefault(),window.location.href=i)};gtm.traceObject(r)}};gtm.product.readAll=function(){if(gtm.useGTM()){var n=gtm.getObject("20","dettaglio_fondo","leggi_tutto",undefined,"dettaglio_fondo leggi_tutto");gtm.traceObject(n)}};gtm.product.listingFilterSelect=function(n,t){var i,r;gtm.useGTM()&&n&&(i=n,t&&t.length>0&&(i+="_"+t),r=gtm.getObject("13","listing","filtri",i,"listing filtri "+gtm.formatValue(i)),gtm.traceObject(r))};gtm.product.addFundToFavorites=function(n){if(gtm.useGTM()&&n){var t=gtm.getObject("15","listing","aggiungi_fondi_preferiti",n,"dettaglio_fondo aggiungi_fondi_preferiti "+gtm.formatValue(n));gtm.traceObject(t)}};gtm.elearning.test=function(n,t){if(gtm.useGTM()){var i=t?"test":"esercitazione";gtm.elearning.traceInteraction(n,i)}};gtm.elearning.comment=function(n){gtm.useGTM()&&gtm.elearning.traceInteraction(n,"commento")};gtm.elearning.traceInteraction=function(n,t){if(gtm.useGTM()){var i=gtm.getObject("24","e-learning","click_"+t,n,"eleraning click_"+gtm.formatValue(t)+" "+gtm.formatValue(n));gtm.traceObject(i)}};gtm.simulators.pac=function(n){var t;
1if(gtm.useGTM()){var r=gtm.simulators.extractInput(n,function(n){return n.systemName}),u=gtm.simulators.extractInput(n,function(n){return n.fundName}),f=gtm.simulators.extractInput(n,function(n){return n.monthlyDeposit.toString()}),e=gtm.simulators.extractInput(n,function(n){return n.initialDeposit.toString()}),i="mensile";if(n.frequenceCode>1)switch(n.frequenceCode){case"2":i="bimestrale";break;case"3":i="trimestrale";break;default:i="semestrale"}t=gtm.getObject("31","simulatori","simulatore_pac","calcola_simulazione");t.sistemaSimulatore=gtm.formatValue(r);t.fondoSimulatore=gtm.formatValue(u);t.rataSimulatore=gtm.formatValue(f);t.importoIniziale=gtm.formatValue(e);t.dataAttivazioneSimulatore=n.dateActivation.replace(/\//g,"");t.frequenzaDurata=i+"_"+n.years.toString();gtm.traceObject(t)}};gtm.simulators.compareFunds=function(){if(gtm.useGTM()){var t=$("#fund-comparer-form #funds-container-form"),i=gtm.simulators.extractSelection(t,".category-select"),r=gtm.simulators.extractSelection(t,".system-select"),u=gtm.simulators.extractSelection(t,".funds-select"),f=$("#fund-comparer-form #rifDate").data("DateTimePicker").date().format("YYYYMMDD"),n=gtm.getObject("31","simulatori","simulatore_confronta_rendimento_fondi","calcola_simulazione");n.categoriaSimulatore=gtm.formatValue(i);n.sistemaSimulatore=gtm.formatValue(r);n.fondoSimulatore=gtm.formatValue(u);n.dataRiferimentoSimulatore=gtm.formatValue(f);gtm.traceObject(n)}};gtm.simulators.pic=function(n){if(gtm.useGTM()){var i=$("#pic-simulator-input-form .fund-select-container"),r=gtm.simulators.extractSelection(i,".category-select"),u=gtm.simulators.extractSelection(i,".system-select"),f=gtm.simulators.extractSelection(i,".funds-select"),e=gtm.simulators.extractSelection(i,".initial-import"),o=n.dateStart.replace(/\//g,""),s=n.dateEnd.replace(/\//g,""),t=gtm.getObject("31","simulatori","simulatore_rendimento_portafoglio","calcola_simulazione");t.categoriaSimulatore=gtm.formatValue(r);t.sistemaSimulatore=gtm.formatValue(u);t.fondoSimulatore=gtm.formatValue(f);t.investimentoSimulatore=gtm.formatValue(e);t.dataInizialeSimulatore=gtm.formatValue(o);t.dataFinaleSimulatore=gtm.formatValue(s);gtm.traceObject(t)}};gtm.simulators.comparePortfolio=function(){if(gtm.useGTM()){var t=$(".compare-funds"),i=gtm.simulators.extractSelection(t,".system-select"),r=gtm.simulators.extractSelection(t,".compare-funds-select"),n=gtm.getObject("31","simulatori","simulatore_confronta_portafogli_fondi","calcola_simulazione");n.sistemaSimulatore=gtm.formatValue(i);n.fondoSimulatore=gtm.formatValue(r);gtm.traceObject(n)}};gtm.simulators.extractInput=function(n,t){return n.inputFunds.map(t).join("|")};gtm.simulators.extractSelection=function(n,t){return n.find(t).map(function(){return $(this).find("option:selected").text()}).get().join("|")};gtm.simulators.paramsStringToJson=function(n){var u=n.split("&"),t={},r;for(i=0;i<u.length;i++)k=u[i].split("="),r=k[1]||"",t[k[0]]?$.isArray(t[k[0]])?t[k[0]].push(r):t[k[0]]=[t[k[0]],r]:t[k[0]]=r;return t};gtm.articles.traceView=function(n,t){if(gtm.useGTM()&&n){var i=gtm.getObject("36",n,"view_articolo",t,"view article "+gtm.formatValue(t));gtm.traceObject(i)}};gtm.getObject=function(n,t,i,r,u){return{event:"GAevent",eventID:n,eventCategory:gtm.formatValue(t),eventAction:gtm.formatValue(i),eventLabel:gtm.formatValue(r),cluster:undefined,videoLenght:undefined,clusterVideo:undefined,sistemaSimulatore:undefined,fondoSimulatore:undefined,rataSimulatore:undefined,importoIniziale:undefined,dataAttivazioneSimulatore:undefined,frequenzaDurata:undefined,categoriaSimulatore:undefined,dataRiferimentoSimulatore:undefined,investimentoSimulatore:undefined,dataInizialeSimulatore:undefined,dataFinaleSimulatore:undefined,eventTimeout:gtm.timeout,eventCallback:function(n,t){u&&gtm.logTracing(u,t)}}};gtm.formatValue=function(n){return n?typeof n!="string"?n:n?n.toLowerCase().replace(/ /g,"_"):null:null};gtm.logTracing=function(n,t){msys.gtmLoggingEnabled&&console.log("GTM:"+n+" fired: "+JSON.stringify(t))};gtm.useGTM=function(){return msys.useGTMAnalytics?window.google_tag_manager?!0:(console.log("GTM not loaded"),!1):!1};$.ajaxSetup({cache:!1});msys=msys||{};msys.highstock=msys.highstock||{};msys.highchart=msys.highchart||{};msys.account=msys.account||{};msys.controls=msys.controls||{};msys.models=msys.models||{};msys.notify=msys.notify||{};
1msys.HIGHCHART_COLORS=["#990033","#5A6269","#131E29","#889782","#67757B","#AD0033","#BBC0C4","#EBEBEC","#C6C7C8","#D4CBC5","#C7D2DB","#F2EEE7","#BDC1C4","#222B30"];msys.debounce=function(n,t){let i;return function(...r){clearTimeout(i);i=setTimeout(function(){n.apply(this,r)},t)}};msys.isNullOrEmpty=function(n){return typeof n!="string"||n===null||n===""};msys.isNullOrWhiteSpace=function(n){return typeof n!="string"||n===null?!0:n.replace(/^\s*|\s*$/g,"")===""};msys.formatNumber=function(n){var t=n.toString(),i=t.indexOf(".");return i>0?t.substring(0,i).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1.")+","+t.substring(i+1):t.replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1.")};msys.getLoadingRowText=function(){return'<span class="loader"><\/span>'};msys.loadContent=function(n,t,i,r){$.ajax({url:t,contentType:"application/html; charset=utf-8",type:"GET",dataType:"html",cache:!1,success:function(t){i===!0?$(n).append(t):$(n).html(t);typeof r=="function"&&r(t)},error:function(i,r){console.log("error",r,t,n)}})};msys.getJson=function(n,t,i){$.ajax({url:n,contentType:"application/json; charset=utf-8",type:"GET",dataType:"json",cache:!1,success:function(n){var i,u,r;try{if(i=n.errors,i!==undefined&&i!==null&&i.length>0){for(u="",r=0;r<data.errors.length;r++)u+=i[r]+"\n";console.log(u,msg)}}catch(f){console.log(f)}typeof t=="function"&&t(n)},error:function(t,r){console.log("xhr",r,t,n);typeof i=="function"&&i(t,r)}})};msys.postJson=function(n,t,i,r){$.ajax({url:n,contentType:"application/json; charset=utf-8",type:"POST",dataType:"json",data:JSON.stringify(t),cache:!1,success:function(n){var r,f,u;try{if(r=n.errors,r!==undefined&&r!==null&&r.length>0){for(f="",u=0;u<t.errors.length;u++)f+=r[u]+"\n";console.log(f,msg)}}catch(e){console.log(e)}typeof i=="function"&&i(n)},error:function(t,i){console.log("xhr",i,t,n);typeof r=="function"&&r(t,i)}})};msys.collapse=function(n,t){var i=$(t).find(".lblLeggiTutto"),r=$(t).find("i.glyphicon");$(n).data("collapse")===!0?($(n).data("collapse",!1),i.text($(t).data("read-less")),r.removeClass($(t).data("glyph-hidden")).addClass($(t).data("glyph-visible")),$(n).css("height","auto")):($(n).data("collapse",!0),i.text($(t).data("read-more")),r.removeClass($(t).data("glyph-visible")).addClass($(t).data("glyph-hidden")),$(n).css("height",""))};Array.prototype.clean=function(n){for(var t=0;t<this.length;t++)this[t]===n&&(this.splice(t,1),t--);return this};msys.toFixed=function(n,t){if(n===undefined||n===null||n==="")return"-";try{return+parseFloat(n).toFixed(t)}catch(i){return"-"}};msys.toNumber=function(n,t){if(n===undefined||n===null||n==="")return"-";try{return parseFloat(n).toFixed(t).replace(".",",")}catch(i){return"-"}};msys.isDeviceSizeXS=function(){return $("#users-device-size").find("div:visible").first().attr("id")==="xs"};msys.handleToggleModel=function(n){$(n).parents(".model-wrapper").find(".second-row").toggle();$(n).find(".in").toggle();$(n).find(".out").toggle()};msys.glossario=function(n,t){var i=$(".model44"),r;if(n==="search"){if(t!==null&&t.length>0){i.find(".glossario-letter").removeClass("selected");i.find(".glossario-letter.letter-all").addClass("selected");r=t.toLowerCase();$(".glossario").each(function(){var n=$(this);n.find(".t").text().toLowerCase().indexOf(r)!==-1?n.show():n.hide()});return}n="-"}i.find(".glossario-search").val("");i.find(".glossario-letter").removeClass("selected").attr("aria-selected",!1);n===""||n==="-"?(i.find(".glossario").show(),i.find(".glossario-letter.letter-all").addClass("selected").attr("aria-selected",!0)):(i.find(".glossario").hide(),i.find(".glossario.glossario-"+n).show(),i.find(".glossario-letter.letter-"+n).addClass("selected").attr("aria-selected",!0))};(document.body.scrollTop>500||document.documentElement.scrollTop>500)&&$("#gotoTopbutton").show();$(window).scroll(function(){$(this).scrollTop()>500?$("#gotoTopbutton").fadeIn():$("#gotoTopbutton").fadeOut()});$("#gotoTopbutton").click(function(){return $("html, body").animate({scrollTop:0},600),!1});msys.openChangeProfilePopup=function(n){if(msys.cookieProfileId=Cookies.get("userProfileId"),msys.currentLanguage!=="en"){var t={backdrop:"static",keyboard:!1};if(!msys.suppressPopup){if(msys.cookieProfileId===undefined||msys.cookieProfileId===null||msys.cookieProfileId==="")return msys.setChangeProfileSchedaUrl("#popup-primo-accesso"),$("#popup-primo-accesso").modal(t),!0;if(n||msys.cookieProfileId!==msys.newProfileId&&msys.newProfileId!==undefined&&msys.newProfileId!=="")return msys.setChangeProfileSchedaUrl("#popup-switch-area"),$("#popup-switch-area").modal(t),!0}}return!1};msys.getSchedaFondoUrl=function(){var i=document.referrer&&document.referrer.toLowerCase().indexOf("animasgr.it/site/")>=0,r=!i&&document.referrer&&document.referrer.toLowerCase().indexOf("animasgr.it")>=0,n=r?document.referrer.split("/"):window.location.pathname.split("/"),t=n[n.length-1];return t||t.trim()!==""||(n=window.location.pathname.split("/"),t=n[n.length-1]),t};msys.setChangeProfileSchedaUrl=function(n){var s=document.referrer.toLowerCase().indexOf("/prodotti/scheda/")>=0||window.location.pathname.toLowerCase().indexOf("/prodotti/scheda/")>=0,u,t,i,f,r,e,o;
1if(s)for(u=msys.getSchedaFondoUrl(),t=1;t<=3;t++)i=$(n+" li.profile-"+t),f=i.data("baseurl"),i&&f&&(r=(window.location.origin+i.data("baseurl").trim("/")).toLowerCase(),r.indexOf("/prodotti")>=0&&(r=r.replace(/\/prodotti/g,"")),e=r+"/prodotti/scheda/"+u,o=i.find("a"),o.attr("href","/home/setprofile?returnUrl="+e+"&profileID="+t))};msys.openFPPopup=function(){if(msys.currentLanguage!=="en")msys.suppressPopup||$("#popup-fp").modal({backdrop:"static",keyboard:!1})};msys.openCustomContentPopup=function(){var t,n,i;msys.isCustomContenPopupToShow()&&(t={backdrop:"static",keyboard:!1},n=$("#popup-custom-content"),n.find(".modal-body .container-fluid").html(msys.pagePopup.Content),n.find(".modal-title").text(msys.pagePopup.Title),i=msys.currentLanguage.toLocaleLowerCase()==="en"?"Don't show again ":"Non mostrare più ",n.find(".modal-title .chk-container-custom .msg").text(i),n.modal(t),msys.onCustomContentPopupClose())};msys.isCustomContenPopupToShow=function(){var n,r,t,i;if(!msys.pagePopup||!msys.pagePopup.Enabled||!msys.pagePopup.Content||!msys.pagePopup.Name||(n=msys.pagePopup.StartDate,r=n&&moment(n).isAfter(moment()),r))return!1;if(t=Cookies.get(msys.pagePopup.Name),!t)return!0;try{return i=JSON.parse(t),i.Content!=msys.pagePopup.Content||i.Title!=msys.pagePopup.Title}catch(u){return!1}};msys.onCustomContentPopupClose=function(){$("#popup-custom-content").off("hidden.bs.modal").on("hidden.bs.modal",function(){if($("#popup-custom-content #dontShowAgain")[0].checked){var n=JSON.stringify({Title:msys.pagePopup.Title,Content:msys.pagePopup.Content});Cookies.set(msys.pagePopup.Name,n,{expires:31536e3})}$(".modal-backdrop").length>0&&$("body").addClass("modal-open")})};msys.openCookieClosableModal=function(n){var t={keyboard:!0};$.get(n,function(n){$("#popupCookieModalContainer").html(n);$("#popupCookieModal").modal(t)})};msys.AddPlayVideoEventHandler=function(){$("a.play-video").on("click keypress",function(n){if(msys.isEventClickOrKeyEnter(n)){var t=this.getAttribute("data-player");t==="msys.pacsimulator.videodemo"?msys.pacsimulator.videodemo():msys.playVideo(this)}})};msys.playVideo=function(n){var t=n.getAttribute("data-url"),r=n.getAttribute("data-trace-title"),i;msys.auditPremium.video(n.getAttribute("data-imgpreview"),t,r);$("#playerModal").modal("show");i=t.toLocaleLowerCase().indexOf("vimeo.com")!==-1;i===!0?msys.playVideoInternalVimeo(n,t):msys.playVideoInternalJWPlayer(n,t)};msys.playVideoInternalVimeo=function(n,t){function a(){var i=n.querySelector(".title"),t=i===null?"":i.innerText;return t&&t.length!==0||(t=n.getAttribute("data-title")),t&&t.length!==0||(t="N/A"),t}var v=function(){var n=window.location.href.toLowerCase().split("/"),t=n[n.length-1];return t==="video-premium.aspx"?"video_premium":undefined},h=!1;typeof updateVideoPosition=="function"&&(h=!0);var f=a(),c=0,e=0,l=!1,i=0,o=[],u=[25,50,75,100],s=v(),y={url:t,autoplay:!0,responsive:!0,loop:!1},r=new Vimeo.Player("player",y);r.on("play",function(n){n!==null&&(i==0&&(i=n.duration),gtm.video.tracePlay(f,i,s))});r.on("pause",function(){gtm.video.tracePause(f,i,s)});r.on("ended",function(t){gtm.video.traceComplete(f,i,s);var r=n.getAttribute("data-url");msys.auditPremium.videoTimeWatched(n.getAttribute("data-imgpreview"),r,c,i);l=!0;h&&updateVideoPosition("complete",t)});r.on("timeupdate",function(n){var r=n.seconds,t,s;c+=r-e;e=r;i==0&&(i=n.duration);t=Math.floor(r*100/i);s=o.indexOf(t)<0&&u.indexOf(t)>=0;s&&(gtm.video.traceTimePercentage(t,f),o.push(t));h&&updateVideoPosition("time",n)});r.on("seeked",function(n){var h,c,t;i==0&&(i=n.duration);e=n.seconds;var l=e,s=Math.floor(l*100/i),r=0;for(t=0;t<u.length-1;t++)if(h=s>=u[t]&&s<=u[t+1],h){r=u[t];break}if(o=[],r>0)for(gtm.video.traceTimePercentage(r,f),c=u.indexOf(r),t=0;t<=c;t++)o.push(u[t])});r.on("error",function(n){console.error("VIMEO Error occurred:",n)});$("#playerModal").off("hidden.bs.modal").on("hidden.bs.modal",function(){if(gtm.video.traceClose(f,i,s),r.pause(),r.destroy(),r=undefined,document.getElementById("player").innnerHTML="",!l){var t=n.getAttribute("data-url");msys.auditPremium.videoTimeWatched(n.getAttribute("data-imgpreview"),t,c,i)}})};msys.playVideoInternalJWPlayer=function(n,t){function p(){var t=$(n).find(".title").text();return t&&t.length!==0||(t=$(n).data("title")),t&&t.length!==0||(t="N/A"),t}var a=$(n).data("id"),y=$(n).data("imgpreview"),r=jwplayer("player"),o;
1r.setup({width:"100%",autostart:!0,controls:!0,file:t,aspectratio:"16:9",playbackRateControls:[.25,.5,.75,1,1.25,1.5,2],key:msys.jwplayer.key,image:y,tracks:[{file:a?"/api/"+msys.currentLanguage+"/library/mediafile/"+a+"/bookmarks":undefined,kind:"chapters"}]});o=!1;typeof updateVideoPosition=="function"&&(o=!0);var f=p(),c=0,l=0,v=!1,i=0,e="play",w=function(){var n=window.location.href.toLowerCase().split("/"),t=n[n.length-1];return t==="video-premium.aspx"?"video_premium":undefined},s=[],u=[25,50,75,100],h=w();r.on("time",function(n){var e=n.position,t,h;c+=e-l;l=e;i==0&&(i=r.getDuration());t=Math.floor(e*100/i);h=s.indexOf(t)<0&&u.indexOf(t)>=0;h&&(gtm.video.traceTimePercentage(t,f),s.push(t));o&&updateVideoPosition("time",n)});r.on("seek",function(n){var c,a,t;e="seek";i==0&&(i=r.getDuration());l=n.offset;var v=n.offset,h=Math.floor(v*100/i),o=0;for(t=0;t<u.length-1;t++)if(c=h>=u[t]&&h<=u[t+1],c){o=u[t];break}if(s=[],o>0)for(gtm.video.traceTimePercentage(o,f),a=u.indexOf(o),t=0;t<=a;t++)s.push(u[t])});r.on("play",function(n){i==0&&(i=r.getDuration());e!="seek"&&(e=n.playReason==="autostart"?"play":"resume");gtm.video.trace(e,f,i,h);e="play"});r.on("pause",function(){gtm.video.tracePause(f,i,h)});r.on("complete",function(t){gtm.video.traceComplete(f,i,h);var r=$(n).data("url");msys.auditPremium.videoTimeWatched($(n).data("imgpreview"),r,c,i);v=!0;o&&updateVideoPosition("complete",t)});$("#playerModal").off("hidden.bs.modal").on("hidden.bs.modal",function(){if(gtm.video.traceClose(f,i,h),r.pause(),r=undefined,$("#player").empty(),!v){var t=$(n).data("url");msys.auditPremium.videoTimeWatched($(n).data("imgpreview"),t,c,i)}})};msys.downloadFiles=function(n,t,i,r){var s=new JSZip,a=t+".zip",h=0,c={},v=3,u,e,f,o,l;try{for(u=0;u<n.length;u++)msys.traceClickOnDocument(n[u],i[u])}catch(y){console.error("msys.downloadFiles",y)}for(e=function(t){JSZipUtils.getBinaryContent(t,function(i,u){var o=t.substring(t.lastIndexOf("/")+1),f;if(i!==null&&(f=c[o],f===undefined?f=1:f++,c[o]=f,f<=v)){console.log("retry:",t);e(t);return}s.file(o,u,{binary:!0});h++;h===n.length&&s.generateAsync({type:"blob",compression:"DEFLATE"}).then(function(n){saveAs(n,a);r&&r()})})},f=0,o=n;f<o.length;f++)l=o[f],e(l)};msys.toggleSelectedNavTabs=function(n){var t=$(n),i=t.attr("aria-controls"),r=$("#"+i);return t.addClass("selected").attr("aria-selected","true").siblings().removeClass("selected").attr("aria-selected","false"),r.show().siblings().hide(),!1};msys.account.login=function(n){var r;msys.setBusy(!0);var t=$(n),f=$('input[name="__RequestVerificationToken"]',t).val(),u={email:t.find('input[name="email"]').val(),password:t.find('input[name="password"]').val(),rememberMe:t.find('input[name="rememberMe"]').is(":checked"),returnUrl:t.find('input[name="returnUrl"]').val(),language:msys.currentLanguage},i=t.find(".login-messages");return i.hide(),r=t[0].action,$.ajax({url:r,type:"POST",data:JSON.stringify(u),dataType:"json",contentType:"application/json",success:function(n){var r,t;if(n.success===!0)gtm.user.login("consulente",n.returnValue);else{for(r="",t=0;t<n.messages.length;t++)r+="<div>"+n.messages[t].message+"<\/div>";i.html(r).show()}msys.setBusy(!1)},error:function(){i.html("error").show();msys.setBusy(!1)}}),!1};msys.account.resetPasswordSend=function(n){var r;msys.setBusy(!0);var t=$(n),f=$('input[name="__RequestVerificationToken"]',t).val(),u={email:t.find('input[name="email"]').val(),language:msys.currentLanguage},i=t.find(".login-messages");return i.hide(),r="/api/it/account/resetpasswordsend",$.ajax({url:r,type:"POST",data:JSON.stringify(u),dataType:"json",contentType:"application/json",success:function(n){var u,f,r,e;for(n.success===!0&&t.find(".input-form").hide(),u="",f=n.messages,r=0;r<f.length;r++)e=f[r],u+='<div class="'+(e.type===1?"error":"")+'">'+e.message+"<\/div>";i.html(u).show();msys.setBusy(!1)},error:function(){i.html("error").show();msys.setBusy(!1)}}),!1};msys.fpcontact_updateForm=function(n){var r=$(n).parent(),t,i;r.find(".text-danger").text("");t=$('input[name="FP_Telefono"]').val();i=$('input[name="FP_Email"]').val();t!==""&&i!==""?$("#row-metodo-contatto").slideDown():$("#row-metodo-contatto").slide
1Up()};msys.account.fpContact=function(n){var t,r,i,u;return(msys.setBusy(!0),t=$(n),r=t.find('input[name="FP_Name"]').val(),r.length>0)?!1:(i={fP_nome:t.find('input[name="FP_Nome"]').val(),fP_cognome:t.find('input[name="FP_Cognome"]').val(),fP_email:t.find('input[name="FP_Email"]').val(),fP_telefono:t.find('input[name="FP_Telefono"]').val(),metodoContatto:t.find('select[name="MetodoContatto"]').val()},i.telefono!==""&&i.email===""?i.metodoContatto="telefono":i.telefono===""&&i.email!==""&&(i.metodoContatto="email"),u="/api/it/account/fpcontact",$.ajax({url:u,type:"POST",data:JSON.stringify(i),dataType:"json",contentType:"application/json",success:function(n){var r,i,u;if(n.success===!0)t.find("button").attr("disabled","disabled"),t.find("#success_message").show(),t.find("#error_message").hide();else for(r=0;r<n.messages.length;r++)i=n.messages[r],console.log(i),i.errorId!==""&&(u="#"+i.errorId,$(u).html(i.message));msys.setBusy(!1)},error:function(){errors.html("error").show();msys.setBusy(!1)}}),!1)};msys.account.resetPasswordChange=function(n){var r;msys.setBusy(!0);var t=$(n),f=$('input[name="__RequestVerificationToken"]',t).val(),u={sid:t.find('input[name="sid"]').val(),email:t.find('input[name="email"]').val(),newPassword:t.find('input[name="NewPassword"]').val(),confirmNewPassword:t.find('input[name="ConfirmNewPassword"]').val(),language:msys.currentLanguage},i=t.find(".login-messages");return i.hide(),r="/api/it/account/resetpasswordchange",$.ajax({url:r,type:"POST",data:JSON.stringify(u),dataType:"json",contentType:"application/json",success:function(n){var u,f,r,e;for(n.success===!0&&t.find(".input-form").hide(),u="",f=n.messages,r=0;r<f.length;r++)e=f[r],u+='<div class="'+(e.type===1?"error":"")+'">'+e.message+"<\/div>";i.html(u).show();msys.setBusy(!1)},error:function(){i.html("error").show();msys.setBusy(!1)}}),!1};msys.setBusy=function(n){$("a[data-submit]").attr("disabled",n);n?$(".loader").show():$(".loader").hide()};msys.autoCompleteFundNames=function(n,t){var i="/api/autocomplete/fundNames?profile=profileCode&codiceLingua=lang&search=searchCriteria";i=i.replace(/lang/g,msys.currentLanguage);i=i.replace(/searchCriteria/g,n);i=i.replace(/profileCode/g,msys.currenteProfileCode);$.getJSON(i,function(n){var i=[];n.data.forEach(function(n){i.push(n)});t(i)})};msys.autoCompleteReset=function(){$("#input[name=nameOrIsin]").val("");$("ul[name=nameOrIsinAutoComplete]").fadeOut()};msys.models.m3Onkeypress=function(n,t,i){var r,u;t.keyCode===13&&(t.preventDefault(),r=$(n),i?(u=r.data("url")+r.val(),gtm.others.homepageSearch(n,u)):window.location.href=r.data("url")+r.val())};msys.openGenericModal=function(n){var r={keyboard:!0},t=$("#popup-modal-generic"),u=t.find(".default-template"),i=t.find(".popup-modal-container");i.html(u.html());$.get(n,function(n){i.html(n);t.modal(r)})};Array.from||(Array.from=function(){var t=Object.prototype.toString,n=function(n){return typeof n=="function"||t.call(n)==="[object Function]"},i=function(n){var t=Number(n);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))},r=Math.pow(2,53)-1,u=function(n){var t=i(n);return Math.min(Math.max(t,0),r)};return function(t){var h=this,c=Object(t),i,o;if(t===null)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(i=arguments.length>1?arguments[1]:void undefined,typeof i!="undefined"){if(!n(i))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(o=arguments[2])}for(var f=u(c.length),s=n(h)?Object(new h(f)):new Array(f),r=0,e;r<f;)e=c[r],s[r]=i?typeof o=="undefined"?i(e,r):i.call(o,e,r):e,r+=1;return s.length=f,s}}());msys.getTemplate=function(n){var t=document.getElementById(n);if(t===null)throw new Error('Html template with id "'+n+'" not found.');return t.innerHTML};String.prototype.replaceTag=function(n,t){var i=new RegExp("{{"+n+"}}","gi");return(t===undefined||t===null)&&(t=""),this.replace(i,t)};String.prototype.replaceTagAttr=function(n,t){var i=new RegExp("{{"+n+"}}","gi");return(t===undefined||t===null)&&(t=""),this.replace(i,t.attrEncode())};String.prototype.replaceTagHtml=function(n,t){var i=new RegExp("{{"+n+"}}","gi");return(t===undefined||t===null)&&(t=""),this.replace(i,t.htmlEncode())};String.prototype.htmlEncode=function(){var n=document.createTextNode(this);return document.createElement("a").appendChild(n).parentNode.innerHTML.replace(/'/g,"&#39;").replace(/"/g,"&#34;")};String.prototype.attrEncode=function(){return this.replace(/'/g,"&#39;").replace(/"/g,"&#34;")};String.prototype.writeToHtml=function(n){var t=document.getElementById(n);if(t===null)throw new Error('Html element with id "'+n+'" not found.');t.innerHTML=this};msys.notify.count=0;msys.notify.check=function(){var n=$(".msys-notify");n.length!==0&&$.ajax({type:"GET",url:"/api/notify/check",processData:!1,cache:!1,contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){msys.notify.count=parseInt(n.data);msys.notify.updateIcon();setTimeout(msys.notify.check,3e4)},error:function(){setTimeout(msys.notify.check,3e4)}})};msys.notify.updateIcon=function(){var t=$(".msys-notify"),i="/Content/Images/svg/v2/Notifica_off.svg",n=t.find("span"),r="";msys.notify.count>0?(i="/Content/Images/svg/v2/Notifica_on.svg",r=msys.notify.count,n.show()):n.hide();t.find("img").attr("src",i);n.html(r)};msys.notify.offsetTop=41;msys.notify.offsetLeft=84;msys.notify.open=function(){var n=$("#notify-popup-wrapper"),t;if(n.length===0)$('<div id="notify-popup-wrapper"><div id="notify-popup"><div class="arrow">&#160;<\/div><h3>Notifiche <img class="loading" src="/Content/Images/loading.gif" alt="loading" /><\/h3><div class="wr"><ul><\/ul><\/div><\/div><\/div>').appendTo("body"),msys.notify.absolutePosition&&$("#notify-popup").addClass("position-absolute"),n=$("#notify-popup-wrapper");else if(n.is(":visible")){n.hide();return}t=n.find("#notify-popup");n.css({height:$(window).height()+"px"}).on("click",function(){n.hide()});var r=t.find("ul"),u=t.width(),i=$(".msys-notify a").offset(),f=i.top+msys.notify.offsetTop,e=i.left-u+msys.notify.offsetLeft;t.css({top:f+"px",left:e+"px"});t.find("#notify-popup-wrapper .loading").show();n.show();$(window).resize(function(){msys.FixNotifyPopupPosition()});$.ajax({type:"GET",url:"/api/notify/get",processData:!1,cache:!1,contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){for(var u="",f=0,e=0;e<n.data.length;e++){var i=n.data[e],o=i.i,s=i.m,h=i.d,c=i.u,l=i.id,a=i.r===!0?"read":"unread";u+='<li class="'+a+'" data-url="'+c+'" data-id="'+l+'"><img src="/Content/Images/NotifyIcons/'+o+'" alt=""/><div class="c">'+s+'<\/div><div class="d">'+h+'<\/div><span class="x" aria-label="chiudi">X<\/span><\/li>';f++}msys.notify.updateIcon();f===0&&(u+='<li data-url=""><img src="/Content/Images/NotifyIcons/base.png" alt=""/><div class="c">Non ci sono notifiche<\/div><\/li>',f=1);r.html(u);t.find("li").on("click",msys.notify.read);t.find("span").on("click",msys.notify.delete1);t.find(".loading").hide()},error:function(){}})};msys.notify.read=function(n){n.stopPropagation();var t=$(this),i=t.data("url"),r=t.data("id");$.ajax({type:"POST",url:"/api/notify/read?id="+r,processData:!1,cache:!1,contentType:"application/json; charset=utf-8",dataType:"json",success:function(){location.href=i},error:function(){location.href=i}})};msys.notify.delete1=function(n){n.stopPropagation();var i=$(this),t=$(i).parent(),r=t.data("id");$.ajax({type:"POST",url:"/api/notify/remove?id="+r,processData:!1,cache:!1,contentType:"application/json; charset=utf-8",dataType:"json",success:function(n){n.success===!0&&(t.remove(),msys.notify.check())},error:function(){}})};msys.FixNotifyPopupPosition=function(){var n=$("#notify-popup-wrapper");if(n.is(":visible")){var t=n.find("#notify-popup"),r=t.width(),i=$(".msys-notify a").offset(),u=i.top+msys.notify.offsetTop,f=i.left-r+msys.notify.offsetLeft;t.css({top:u+"px",left:f+"px"})}};msys.traceClickOnDocument=function(n,t){gtm.documents.download(t||document.title,n,msys.getDocumentClusterForGTM())};msys.getDocumentClusterForGTM=function(){return gtm&&gtm.documentCluster?gtm.documentCluster:undefined};msys.removeClickOnDocuments=function(n){$(n).find("a[href$='.pdf']").off("
1click");$(n).find("a[href$='.zip']").off("click");$(n).find("a[href$='.mp3']").off("click");$(n).find("a[href$='.html']").off("click")};msys.addClickOnDocuments=function(n){if(n){$(n).find("a[href$='.pdf']").on("click",function(){msys.traceClickOnDocument($(this).attr("href"),$(this).data("title"))});$(n).find("a[href$='.mp3']").on("click",function(){msys.traceClickOnDocument($(this).attr("href"),$(this).data("title"))});$(n).find("a[href$='.zip']").on("click",function(){msys.traceClickOnDocument($(this).attr("href"),$(this).data("title"))});$(n).find("a[href$='.html']").on("click",function(){msys.traceClickOnDocument($(this).attr("href"),$(this).data("title"))})}else{$("a[href$='.pdf']").not(".anima-grid-text a").on("click",function(){msys.traceClickOnDocument($(this).attr("href"),$(this).data("title"))});$("a[href$='.mp3']").not(".anima-grid-text a").on("click",function(){msys.traceClickOnDocument($(this).attr("href"),$(this).data("title"))});$("a[href$='.zip']").not(".anima-grid-text a").on("click",function(){msys.traceClickOnDocument($(this).attr("href"),$(this).data("title"))});$("a[href$='.html']").not(".anima-grid-text a").on("click",function(){msys.traceClickOnDocument($(this).attr("href"),$(this).data("title"))})}};msys.isEventClickOrKeyEnter=function(n){return n.type==="click"||n.type==="keypress"&&n.which===13};msys.isEventKeyEscape=function(n){return n.which===27};msys.setFocus=function(n){document.getElementById(n).focus()};msys.menageNavMenuState=function(n){$(".navbar-fixed-top [aria-expanded=true]").attr("aria-expanded",!1);var t=n!==undefined&&n.hasClass("open");$(".navbar-fixed-top .open").removeClass("open");t===!1&&n&&(n.find("> a").attr("aria-expanded",!0),n.addClass("open"))};msys._mediaQueryIsMobile=!1;msys.mediaQueryIsMobile=function(){return msys._mediaQueryIsMobile};msys.mediaQueryMonitoringStart=function(){const n=window.matchMedia("(max-width: 1023.9px)");msys._mediaQueryIsMobile=n.matches;n.addEventListener("change",function(n){msys._mediaQueryIsMobile=n.matches;console.log(msys._mediaQueryIsMobile)})};$(function(){msys.openChangeProfilePopup(!1)===!1&&msys.openCustomContentPopup();msys.mediaQueryMonitoringStart();$(".navbar-nav > .dropdown").mouseenter(function(){msys.mediaQueryIsMobile()||msys.menageNavMenuState($(this))});$(".navbar-nav > .dropdown").mouseleave(function(){msys.mediaQueryIsMobile()||msys.menageNavMenuState()});$(".navbar-nav .dropdown > a").on("click",function(){msys.menageNavMenuState($(this).parent())});$(document).on("keydown",function(n){msys.isEventKeyEscape(n)&&($(".anima-caption-hover").removeClass("hover-on"),msys.menageNavMenuState())});var n=$(".anima-caption-hover");if(n.length>0){n.on("mouseover focus",function(){$(this).addClass("hover-on")});n.on("mouseout blur keydown",function(n){console.log(n);(n.type!=="keydown"||msys.isEventKeyEscape(n))&&$(this).removeClass("hover-on")})}msys.modelLoaded.Model5===!0&&($(".model5 .carousel .slider").each(function(n,t){var i=$(t),u=i.attr("data-fade")==="true"?"fade":"horizontal",r=i.bxSlider({mode:u,auto:!0,autoControls:!1,speed:1e3,infiniteLoop:!0,autoHover:!0,onSliderLoad:function(){}});i.parents(".model5").find(".slider-play-pause").show().find("input").on("click",function(){var n=$(this);n.is(":checked")===!0?(r.stopAuto(),n.attr("aria-label","play slider")):(r.startAuto(),n.attr("aria-label","pause slider"))});i.parents(".model5").find(".slider-close").show().find("input").on("click",function(){var n=$(this);n.is(":checked")===!0&&(r.stopAuto(),i.parents(".model5").hide())})}),$(".model5 .carousel .bx-controls a").attr("role","button"));$(".dropdown-content").click(function(n){n.stopPropagation()});msys.notifyEnabled&&setTimeout(msys.notify.check,1e3);msys.addClickOnDocuments();msys.modelLoaded.Model82===!0&&$(".model82-slider .swiper").each(function(){new Swiper(this,{slidesPerView:1,spaceBetween:15,loop:!1,lazyLoading:!0,keyboard:{enabled:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}})});msys.AddPlayVideoEventHandler()});Favorites.prototype.add=function(n,t,i){if(this.addToCookie(n),this.shouldSaveToDb()){var r={url:n,stype:t};$.ajax({url:"/api/"+msys.currentLanguage+"/favorites/add",type:"post",dataType:"json",contentType:"application/json",data:JSON.stringify(r),success:function(n){i(n)},error:function(n,t){i(t)}})}};
1Favorites.prototype.del=function(n,t,i){if(this.delFromCookie(n),this.shouldSaveToDb()){var r={url:n,stype:t};$.ajax({url:"/api/"+msys.currentLanguage+"/favorites/del",type:"DELETE",dataType:"json",contentType:"application/json",data:JSON.stringify(r),success:function(n){i(n)},error:function(n,t){i(t)}})}};Favorites.prototype.isFavorite=function(n,t,i){this.isFavoriteFromCookie(n);this.shouldSaveToDb()&&$.ajax({url:"/api/"+msys.currentLanguage+"/favorites/get/?id="+n+"&sType="+t,type:"get",dataType:"json",contentType:"application/json",success:function(n){i(n)},error:function(n,t){i(t)}})};Favorites.prototype.merge=function(n){$.ajax({url:"/api/"+msys.currentLanguage+"/favorites/merge",type:"put",dataType:"json",contentType:"application/json",data:JSON.stringify(Cookies.get("prodFavorites")),success:function(t){n(t)},error:function(t,i){n(i)}})};Favorites.prototype.shouldSaveToDb=function(){if(msys.currentUsername!==undefined||msys.currentUsername!==null)return!0};Favorites.prototype.addToCookie=function(n){var t=Cookies.get("prodFavorites")!=undefined?Cookies.get("prodFavorites").split("|"):[];if(t.indexOf(n)===-1)return t.push(n),Cookies.set("prodFavorites",t.join("|"),{expires:"01/01/2030"}),!0};
1Favorites.prototype.delFromCookie=function(n){var t=Cookies.get("prodFavorites")!=undefined?Cookies.get("prodFavorites").split("|"):[],i=t.indexOf(n);return i!=-1?(t.splice(i,1),Cookies.set("prodFavorites",t.join("|"),{expires:"01/01/2030"}),!0):!1};Favorites.prototype.isFavoriteFromCookie=function(n){var t=Cookies.get("prodFavorites")!=undefined?Cookies.get("prodFavorites").split("|"):[],i=t.indexOf(n);return i!==-1};msys=msys||{};msys.contactHub={};msys.contactHub.tracePageView=function(){if(msys.currentUsername){var n=msys.contactHub.getPageViewedModel();msys.contactHub.postData("pageviewed",n)}};msys.contactHub.getPageViewedModel=function(){return{pageViewedModel:{title:document.title,url:window.location.href,path:window.location.pathname,referrer:document.referrer},fund:{codice:scheda.fundCode,classe:scheda.className,nome:scheda.fundName,codicePadre:scheda.codicePadre}}};msys.contactHub.traceFundsSearch=function(){var t=location.search,n;msys.currentUsername&&t&&(n=msys.contactHub.getSearchModel(),msys.contactHub.postData("fundssearch",n))};msys.contactHub.getSearchModel=function(){var n=msys.contactHub.getQueryStringObject();return{nomeFondo:n.NomeFondo,linee:msys.contactHub.getSearchArray(n,"Linee"),sistemi:msys.contactHub.getSearchArray(n,"Sistemi"),categorie:msys.contactHub.getSearchArray(n,"Categorie"),classi:msys.contactHub.getSearchArray(n,"Classi"),cedole:msys.contactHub.getSearchArray(n,"Cedole"),gradiRischio:msys.contactHub.getSearchArray(n,"GradiRischio")}};msys.contactHub.getSearchArray=function(n,t){var r=[],i;if(n[t]){i=n[t];Array.isArray(i)||(i=[i]);for(let n=0;n<i.length;n++)r.push($('[data-parent-value="'+i[n]+'"]').attr("data-parent-name"))}return r};msys.contactHub.getQueryStringObject=function(){var n={},t=new URLSearchParams(window.location.search);return t.forEach(function(t,i){n.hasOwnProperty(i)?Array.isArray(n[i])?n[i].push(t):n[i]=[n[i],t]:n[i]=t}),n};msys.contactHub.postData=function(n,t){$.ajax({url:"/api/contacthub/"+n,contentType:"application/json; charset=utf-8",type:"POST",dataType:"json",data:JSON.stringify(t),cache:!1}).done(function(){})};msys=msys||{};msys.auditPremium={};msys.auditPremium.videoTimeWatched=function(n,t,i,r,u){try{n&&$.ajax({url:"/api/"+msys.currentLanguage+"/auditpremium/videotimewatched",type:"POST",data:JSON.stringify({documentUrl:n,videoUrl:t,timeWatched:Math.round(i),totalTime:Math.round(r),title:u}),dataType:"json",contentType:"application/json",success:function(){},error:function(n){console.error("Error audit video time watched",n)}})}catch(f){console.error("Could not send audit video time watched")}};msys.auditPremium.video=function(n,t,i){try{msys.currentUsername&&n&&$.ajax({url:"/api/"+msys.currentLanguage+"/auditpremium/video",type:"POST",data:JSON.stringify({documentUrl:n,videoUrl:t,title:i}),dataType:"json",contentType:"application/json",success:function(){},error:function(n){console.error("Error audit video",n)}})}catch(r){console.error("Could not send audit video",r)}};msys.auditPremium.fundsSearch=function(){try{msys.currentUsername&&$.ajax({url:"/api/"+msys.currentLanguage+"/auditpremium/fundssearch",type:"POST",data:JSON.stringify(msys.contactHub.getSearchModel()),dataType:"json",contentType:"application/json",success:function(){},error:function(n){console.log("Error audit funds seacrh - "+JSON.parse(n))}})}catch(n){console.log("Could not send audit funds search")}};msys.auditPremium.fundsSheetView=function(){try{msys.currentUsername&&scheda.fundCode&&$.ajax({url:"/api/"+msys.currentLanguage+"/auditpremium/fundssheetview",type:"POST",data:JSON.stringify({fundCode:scheda.fundCode}),dataType:"json",contentType:"application/json",success:function(){},error:function(n){console.log("Error audit funds seacrh - "+JSON.parse(n))}})}catch(n){console.log("Could not send audit funds search")}},function(n){var i,r,t,u;(function(n){n[n.Continue=100]="Continue";n[n.SwitchingProtocols=101]="SwitchingProtocols";n[n.OK=200]="OK";n[n.Created=201]="Created";n[n.Accepted=202]="Accepted";n[n.NonAuthoritativeInformation=203]="NonAuthoritativeInformation";n[n.NoContent=204]="NoContent";n[n.ResetContent=205]="ResetContent";n[n.PartialContent=206]="PartialContent";n[n.Ambiguous=300]="Ambiguous";n[n.MultipleChoices=300]="MultipleChoices";n[n.Moved=301]="Moved";n[n.MovedPermanently=301]="MovedPermanently";n[n.Found=302]="Found";n[n.Redirect=302]="Redirect";n[n.RedirectMethod=303]="RedirectMethod";n[n.SeeOther=303]="SeeOther";n[n.NotModified=304]="NotModified";n[n.UseProxy=305]="UseProxy";n[n.Unused=306]="Unused";n[n.RedirectKeepVerb=307]="RedirectKeepVerb";n[n.TemporaryRedirect=307]="TemporaryRedirect";n[n.BadRequest=400]="BadRequest";n[n.Unauthorized=401]="Unauthorized";n[n.PaymentRequired=402]="PaymentRequired";n[n.Forbidden=403]="Forbidden";n[n.NotFound=404]="NotFound";n[n.MethodNotAllowed=405]="MethodNotAllowed";n[n.NotAcceptable=406]="NotAcceptable";n[n.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired";n[n.RequestTimeout=408]="RequestTimeout";n[n.Conflict=409]="Conflict";n[n.Gone=410]="Gone";n[n.LengthRequired=411]="LengthRequired";n[n.PreconditionFailed=412]="PreconditionFailed";n[n.RequestEntityTooLarge=413]="RequestEntityTooLarge";n[n.RequestUriTooLong=414]="RequestUriTooLong";n[n.UnsupportedMediaType=415]="UnsupportedMediaType";n[n.RequestedRangeNotSatisfiable=416]="RequestedRangeNotSatisfiable";n[n.ExpectationFailed=417]="ExpectationFailed";n[n.UnprocessableEntity=426]="UnprocessableEntity";n[n.UpgradeRequired=426]="UpgradeRequired";n[n.InternalServerError=500]="InternalServerError";n[n.NotImplemented=501]="NotImplemented";n[n.BadGateway=502]="BadGateway";n[n.ServiceUnavailable=503]="ServiceUnavailable";n[n.GatewayTimeout=504]="GatewayTimeout";n[n.HttpVersionNotSupported=505]="HttpVersionNotSupported"})(i=n.HttpStatusCode||(n.HttpStatusCode={}));r=function(){function n(){this.data=null;this.returnCode=-1;this.errors=[]}return n}();n.ServiceResponse=r;t=function(){function n(n,t,i){this.errors=[];i&&(this.errors=i);this.returnCode=n;this.status=t}return n.prototype.isApplicationError=function(){return this.returnCode>-1},n}();n.ErrorResponse=t;u=function(){function n(){}return n.getData=function(n,t){return this.callService(n,"GET",null,t)},n.postData=function(n,t,i){return this.callService(n,"POST",t,i)},n.patchData=function(n,t,i){return this.callService(n,"PATCH",t,i)},n.deleteData=function(n,t,i){return this.callService(n,"DELETE",t,i)},n.callService=function(n,t,i,r){if(r||(r={}),r.url="/"+n,r.contentType||(r.contentType="application/json"),r.method=t,i){var u=undefined;i.container&&(u=i.container,i.container=undefined);r.data=r.contentType==="application/json"?JSON.stringify(i):i;u&&(i.container=u)}return r.cache||(r.cache=!1),r.dataType||(r.dataType="json"),$.ajax(r).then(this.processResponse).catch(this.processErrorResponse)},n.processResponse=function(n){return new Promise(function(r,u){var f=n.returnCode,e;f>
10?u(new t(f,i.OK,n.errors)):(e=n.data!==undefined?n.data:n,r(e))})},n.processErrorResponse=function(n){return new Promise(function(r,u){var f,e;n.returnCode?(f=n,u(new t(f.returnCode,i.OK,f.errors))):(f=n,e=f.responseJSON?f.responseJSON.message:f.statusText,u(new t(-1,f.status,[e])))})},n}();n.ApiService=u}(Anima||(Anima={})),function(n){var o=function(){function o(n,r){this.loading=!0;this.loadingChart=!1;this.error=!1;this.periodChartType=u.Last;t.SetBaseOptions();this.fund=n;this.newLayout=r;this.selectedPerformanceChartPeriod=e.P_1Y;this.chartType=r?i.Performances:i.Period}return o.prototype.initialize=function(){var n=this,r=$.templates({markup:"#charts-template",allowCode:!0});r.link($(".charts-container")[0],this,{getFormattedDate:function(n){return t.FormatHeaderDate(n)},switchPeriodChart:function(t){n.initializePeriodsChart(t,!1)},changePerformancesChartPeriod:function(t){$.observable(n).setProperty({selectedPerformanceChartPeriod:t});n.initializePeroformancesChart(t)},switchChartType:function(t){n.newLayout||t==n.chartType||($.observable(n).setProperty({chartType:t}),t===i.Period?n.initializePeriodsChart(n.periodChartType,!0):n.initializePeroformancesChart(n.selectedPerformanceChartPeriod))}});this.newLayout||this.chartType===i.Performances?this.initializePeroformancesChart(this.selectedPerformanceChartPeriod):this.initializePeriodsChart(this.periodChartType,!0)},o.prototype.initializePeriodsChart=function(t,i){var f=this,e,o;(t!==this.periodChartType||i)&&(e=t===u.Last?this.lastDatePeriodChart:this.previousDatePeriodChart,o=e!==undefined,o?($.observable(this).setProperty({periodChartType:t}),r.Create(e)):($.observable(this).setProperty({loadingChart:!0}),n.ApiService.getData("api/performance/"+this.fund.code+"/periods?periodChartType="+t).then(function(n){t===u.Last?f.lastDatePeriodChart=n:f.previousDatePeriodChart=n;$.observable(f).setProperty({loading:!1,loadingChart:!1,periodChartType:t});r.Create(n)})))},o.prototype.initializePeroformancesChart=function(n){var t=this;$.observable(this).setProperty({loadingChart:!0});f.Create(this.fund,n,function(){$.observable(t).setProperty({loadingChart:!0})},function(n){$.observable(t).setProperty({loading:!1,loadingChart:!1,selectedPerformanceChartPeriod:n})})},o}(),r,f,t,u,e,i;n.FundCharts=o;r=function(){function n(){}return n.Create=function(n){var i=this,r=this.GetChartSeries(n.series);this.chart=Highcharts.chart("periods-chart-container",{chart:{type:"column"},title:{text:""},credits:{enabled:!1},xAxis:{categories:this.GetChartCategories(n.categories),crosshair:!0,lineWidth:0,labels:{style:{color:t.colors[0],fontSize:"15px"}}},yAxis:{gridLineWidth:1,title:{text:""},min:this.GetChartMin(n.series),labels:{enabled:!0,style:{fontWeight:"bold",fontSize:"14px"},formatter:function(){return this.value+" %"}}},tooltip:{headerFormat:'<span style="font-size:10px">{point.key}<\/span><table>',pointFormat:'<tr><td style="color:{series.color};padding:0">{series.name}: <\/td><td style="padding:0"><b>{point.y:.2f} %<\/b><\/td><\/tr>',footerFormat:"<\/table>",shared:!0,useHTML:!0},plotOptions:{column:{pointPadding:.1,borderWidth:0,groupPadding:r.length<2?.3:.1}},series:r,responsive:{rules:[{condition:{maxWidth:991},chartOptions:{legend:{align:"left"},xAxis:{min:0,max:3,scrollbar:{enabled:!0}}}},{condition:{maxWidth:575},chartOptions:{legend:{align:"left"},xAxis:{min:0,max:1,scrollbar:{enabled:!0}},plotOptions:{column:{pointPadding:.2,borderWidth:0,pointWidth:30}}}}]}});$(window).resize(function(){i.chart&&i.chart.redraw()})},n.GetChartCategories=function(n){var e=[],i,u,r,f,o;if(n&&n.length>0)for(i=0,u=n;i<u.length;i++)r=u[i],f=msys.res["Scheda_PeriodChart_"+r.code],r.date&&(o=t.FormatHeaderDate(r.date),f+="<br />("+msys.res.UntilThe+" "+o+")"),e.push(f);return e},n.GetChartSeries=function(n){var f=[],i,r,u,e;if(n&&n.length>0)for(i=0,r=n;i<r.length;i++)u=r[i],e=t.GetSerieNameFromCode(u.code),f.push({name:e,data:u.data,type:"column"});return f},n.GetChartMin=function(n){for(var o,i,u,f,t=0,r=0,e=n;r<e.length;r++)for(o=e[r],i=0,u=o.data;i<u.length;i++)f=u[i],f<t&&(t=f);return t<-.5&&t>-20?-20:t},n}();
1n.PeriodChart=r;f=function(){function i(){}return i.Create=function(t,r,u,f){var o=this,e,s;if(f!==null&&(this.onSuccess=f),u!==null&&(this.onStart=u),e={period:r},r===null?(e.beginDate=$("#start-date").datetimepicker("date").format("YYYY-MM-DD"),e.endDate=$("#end-date").datetimepicker("date").format("YYYY-MM-DD"),this.createOnDateChange=!0):this.createOnDateChange=!1,this.fund=t,s=e.period!==null?this.periodsResults[e.period]:null,s){if(this.onSuccess)this.onSuccess(e.period);i.Draw(s,e.period);this.createOnDateChange=!0}else this.onStart&&this.onStart(),n.ApiService.postData("api/performance/"+t.code+"/performances",e).then(function(n){if(o.onSuccess)o.onSuccess(e.period);e.period!==null&&(o.periodsResults[e.period]=n);i.Draw(n,e.period);o.createOnDateChange=!0})},i.Draw=function(n,i){var u=this,r;this.initializePerformancesChartDatetimePickers(n.lastDate);r=this.getChartYLimits(n.series);this.setPickersDates(i,n);this.chart=Highcharts.stockChart({chart:{renderTo:"performances-chart-container",borderWidth:0,spacingBottom:20,height:500,zoomType:null,type:"line"},credits:{enabled:!1},scrollbar:{enabled:!0},exporting:{enabled:!0},rangeSelector:{enabled:!1},xAxis:{dateTimeLabelFormats:{day:"%d/%m/%Y",week:"%d/%m/%y",month:"%m/%y",year:"%Y"},labels:{style:{fontWeight:"bold",fontSize:"14px"}},minRange:864e5},yAxis:{opposite:!1,lineWidth:1,gridLineWidth:0,labels:{align:"right",x:-10,y:5,style:{fontWeight:"bold",fontSize:"14px"},formatter:function(){return(this.value+100).toString()}},max:r[1],min:r[0]},plotOptions:{series:{compare:"percent",dataGrouping:{dateTimeLabelFormats:{day:["%A %e %b %Y","%A %e %b","-%A %e %b %Y"],week:["Settimana da %A, %b %e, %Y"]}}}},tooltip:{pointFormat:'<span style="color:{series.color}">{series.name}<\/span>: {point.change}%<br/>',changeDecimals:1,style:{fontSize:"14px"}},legend:{enabled:!0},navigator:{enabled:!0,series:{fillOpacity:1,color:t.colors[0],lineWidth:0},xAxis:{labels:{style:{color:"#000",fontSize:"14px"}}}},series:this.GetChartSeries(n.series),responsive:{rules:[{condition:{maxWidth:690},chartOptions:{legend:{enabled:!1},scrollbar:{enabled:!1},navigator:{enabled:!1},subtitle:{text:null},rangeSelector:{enabled:!1}}}]}});$(window).resize(function(){u.chart&&u.chart.redraw()})},i.initializePerformancesChartDatetimePickers=function(n){var t=this,i;moment.locale("it");i=moment(this.fund.dataAvvio).isAfter(moment(n).subtract("Y",10))?moment(this.fund.dataAvvio):moment(n).subtract("Y",10).subtract("d",1);$("#start-date").datetimepicker({format:"L",locale:"it",minDate:i,maxDate:moment(this.fund.dataRif),date:moment(n).subtract("Y",1),debug:!0});$("#end-date").datetimepicker({format:"L",locale:"it",minDate:i,maxDate:moment(this.fund.dataRif),date:moment(n)});$(".date").off("dp.change").on("dp.change",function(){t.createOnDateChange&&t.Create(t.fund,null,null,null)})},i.setPickersDates=function(n,t){var i=n!==null?this.periodsResults[n]:t,r=moment(i.lastDate),u=moment(i.firstDate);this.createOnDateChange=!1;$("#end-date").datetimepicker("date",r);$("#start-date").datetimepicker("date",u);this.createOnDateChange=!0},i.getChartYLimits=function(n){for(var f,i,r,t=[],u=0;u<n.length;u++)f=n[u].data.map(function(n){return n[1]}),t=t.concat(f);return i=Math.min.apply(null,t),r=Math.max.apply(null,t),i=i>80?-20:undefined,r=r<120?20:undefined,[i,r]},i.GetChartSeries=function(n){var f=[],i,r,u,e;if(n&&n.length>0)for(i=0,r=n;i<r.length;i++)u=r[i],e=t.GetSerieNameFromCode(u.code),f.push({name:e,data:u.data,type:"line"});return f},i.periodsResults=[],i.createOnDateChange=!1,i}();n.PerformancesChart=f;t=function(){function n(){}return n.FormatHeaderDate=function(n){if(!n)return"";var t=new Date(n),i=t.getDate(),r=t.getMonth()+1,u=t.getFullYear();return(i<=9?"0"+i:i)+"."+(r<=9?"0"+r:r)+"."+u},n.GetSerieNameFromCode=function(n){return msys.res["Scheda_Perf"+n]},n.SetBaseOptions=function(){var t,n;for(console.log("newcharts.js"),t=Highcharts.getOptions().colors,n=0;n<this.colors.length;n++)t[n]=this.colors[n];Highcharts.setOptions({lang:{rangeSelectorFrom:msys.res.Date_From,rangeSelectorTo:msys.res.Date_To,rangeSelectorZoom:"",weekdays:msys.currentLanguage=="en"?["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"]:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],months:msys.currentLanguage=="en"?["Janaury","February","March","April","May","June","July","August","September","October","November","December"]:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],shortMonths:msys.currentLanguage=="en"?["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],decimalPoint:",",thousandsSep:".",numericSymbols:[" mila"," mil"," mld","T","P","E"]},chart:{style:{fontFamily:'"Lato Medium", "Montserrat", "Oswald", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif',fontSize:"14px"}}})},n.colors=msys.HIGHCHART_COLORS,n}();n.ChartUtils=t,function(n){n[n.Last=0]="Last";n[n.Previous=1]="Previous"}(u=n.PeriodsChartType||(n.PeriodsChartType={})),function(n){n[n.P_YTD=0]="P_YTD";n[n.P_1Y=1]="P_1Y";n[n.P_3Y=2]="P_3Y";n[n.P_5Y=3]="P_5Y";n[n.P_10Y=4]="P_10Y";n[n.P_CustomDate=5]="P_CustomDate";n[n.P_MAX=6]="P_MAX"}(e=n.PerformanceChartFilterPeriod||(n.PerformanceChartFilterPeriod={})),function(n){n[n.Period=0]="Period";n[n.Performances=1]="Performances"}(i=n.ChartType||(n.ChartType={}))}(Anima||(Anima={}));msys.performance=msys.performance||{};msys.performance.charts=[];msys.performance.initializeChartArea=function(n,t,i,r){msys.performance.yearlyPerformanceData!==undefined&&msys.performance.yearlyPerformanceData.yearlyPerformances!==null&&msys.performance.createYearlyPerformanceChart(msys.performance.yearlyPerformanceData);msys.performance.loaderHtml=$("#perf-chart-container").html();msys.performance.fundCode=n;msys.performance.dataRif=r;var u=new Anima.FundCharts({code:n,dataRif:r,dataAvvio:i},t);u.initialize();msys.performance.selectedPeriod=1;msys.performance.loading=!1;msys.performance.isCustomDatePeriod=!1;$(".dtp").datetimepicker({locale:"it-IT",format:formatdatequot});$(".dataInizioPerf, .dataFinePerf").on("dp.change",function(){if(!msys.performance.loading){msys.performance.loading=!0;var t=msys.performance.charts[n];t&&($("#perf-chart-container").html(msys.performance.loaderHtml),msys.performance.isCustomDatePeriod=!0,$(".btn-scheda").removeClass("selected"),msys.performance.getChartData(msys.performance.fundCode,undefined,$(".dataInizioPerf").data("DateTimePicker").date(),$(".dataFinePerf").data("DateTimePicker").date()));msys.performance.loading=!1}});msys.initializeYearlyPerformanceTableScroll()};msys.charPeriodEnum=msys.charPeriodEnum||{};msys.charPeriodEnum={YTD:0,Y1:1,Y3:2,Y5:3,Y10:4};msys.performance.createYearlyPerformanceChart=function(n){var t,i;msys.highchart.setOptions();t=[];categories=n.yearlyPerformances[0];i=0;t[i++]={name:msys.res.Scheda_PerfFondo,data:n.yearlyPerformances[1].map(function(n){return n*100})};n.hasBenchmark&&(t[i++]={name:msys.res.Scheda_PerfBenchmark,data:n.yearlyPerformances[2].map(function(n){return n*100})});(n.hasFideuram||n.hasBenchmarkPrec)&&(t[i++]=n.hasBenchmarkPrec?{name:msys.res.Scheda_PerfBenchmarkPrec,data:n.yearlyPerformances[3].map(function(n){return n*100})}:{name:msys.res.Scheda_PerfFideuram,data:n.yearlyPerformances[3].map(function(n){return n*100})});msys.land.createHighchart("perf-chart-yearlyperf-container",categories,"",t,"column")};msys.performance.getChartData=function(n,t,i,r){var u="/api/performance/"+n;t===undefined&&i!==undefined?(i.isBefore(msys.performance.dataMin)===!0&&(i=msys.performance.dataMin.clone()),u+="?dpDate="+i.toISOString()+"&dpDateTo="+r.toISOString()):u+=t!==undefined?"?period="+t:"?period=1";$.ajax({url:u,contentType:"application/json",type:"GET",cache:!1}).done(function(t){var f;if(t.success){var i=t.data,u=0,r=[];r[u++]={name:msys.res.Scheda_PerfFondo,data:i.nav};i.showBenchmark&&(r[u++]={name:msys.res.Scheda_PerfBenchmark,data:i.benchmark});(i.showFideuram||i.showBenchmarkPrec)&&(r[u++]=i.showBenchmarkPrec?{name:msys.res.Scheda_PerfBenchmarkPrec,data:i.benchmarkPrec}:{name:msys.res.Scheda_PerfFideuram,data:i.fideuram})}f={load:function(){msys.performance.dataRif=moment(i.lastDate);msys.performance.firstDataChart=moment(i.firsttDate);var n=undefined,t=undefined;t=moment(msys.performance.dataRif);n=moment(msys.performance.firstDataChart);msys.performance.loading=!0;$(".dataFinePerf").data("DateTimePicker").date(t);$(".dataInizioPerf").data("DateTimePicker").date(n);msys.performance.loading=!1}};msys.performance.charts[n]=msys.highstock.create("perf-chart-container",r,"line",!0,!1,f)}).fail(function(){console.log("error")})};msys.highstock.create=function(n,t,i,r,u,f){msys.highchart.setOptions();var o={enabled:u,buttonSpacing:5,buttons:[{type:"ytd",text:"YTD"},{type:"year",count:1,text:"1 Anno"},{type:"year",count:3,text:"3 Anni"},{type:"year",count:5,text:"5 Anni"},{type:"year",count:10,text:"10 Anni"}],buttonTheme:{fill:"none",width:100,padding:2,stroke:msys.HIGHCHART_COLORS[0],"stroke-width":1,style:{color:"#000",fontWeight:"400"},r:0,states:{hover:{fill:msys.HIGHCHART_COLORS[0],style:{color:"#FFF"}},select:{fill:msys.HIGHCHART_COLORS[0],style:{color:"#FFF"}}}},inputDateFormat:"%e %b %Y",inputEditDateFormat:"%d/%m/%Y",inputDateParser:function(n){return n=n.split(/\//),Date.UTC(parseInt(n[2]),parseInt(n[1]-1),parseInt(n[0]),0,0,0,0)},selected:1},e=msys.highchart.getYAxisLimits(t);return performanceChart=new Highcharts.StockChart({chart:{renderTo:n,borderWidth:0,spacingBottom:20,height:500,zoomType:null,events:f,type:i},credits:{enabled:!1},scrollbar:{enabled:r},exporting:{enabled:!0},rangeSelector:o,xAxis:{dateTimeLabelFormats:{day:"%d/%m/%Y",week:"%d/%m/%y",month:"%m/%y",year:"%Y"},labels:{style:{fontWeight:"bold",fontSize:"14px"}},minRange:864e5},yAxis:{opposite:!1,lineWidth:1,gridLineWidth:0,labels:{align:"right",x:-10,y:5,style:{fontWeight:"bold",fontSize:"14px"},formatter:function(){return this.value+100}},max:e[1],min:e[0]},plotOptions:{series:{compare:"percent",dataGrouping:{dateTimeLabelFormats:{day:["%A %e %b %Y","%A %e %b","-%A %e %b %Y"],week:["Settimana da %A, %b %e, %Y"]}}},style:{fontSize:"14px"}},tooltip:{pointFormat:'<span style="color:{series.color}">{series.name}<\/span>: {point.change}%<br/>',changeDecimals:1,style:{fontSize:"14px"}},legend:{enabled:!0},navigator:{enabled:r,series:{fillOpacity:1,color:seriesColor,lineWidth:0},xAxis:{labels:{style:{color:"#000",fontSize:"14px"}}}},series:t,responsive:{rules:[{condition:{maxWidth:690},chartOptions:{legend:{enabled:!1},scrollbar:{enabled:!1},navigator:{enabled:!1},subtitle:{text:null},rangeSelector:{enabled:!1}}}]}})};msys.highchart.getYAxisLimits=function(n){for(var f,i,r,t=[],u=0;u<n.length;u++)f=n[u].data.map(function(n){return n[1]}),t=t.concat(f);return i=Math.min.apply(null,t),r=Math.max.apply(null,t),i=i>80?-20:undefined,r=r<120?20:undefined,[i,r]};msys.highchart.setOptions=function(){var t,n;for(console.log("performance.js msys.highchart.setOptions"),t=Highcharts.getOptions().colors,n=0;n<msys.HIGHCHART_COLORS.length;n++)t[n]=msys.HIGHCHART_COLORS[n];msys.currentLanguage.toLowerCase()==="it"?Highcharts.setOptions({lang:{rangeSelectorFrom:"Da:",rangeSelectorTo:"A:",rangeSelectorZoom:"",weekdays:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],shortMonths:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],decimalPoint:",",thousandsSep:".",numericSymbol
1s:[" mila"," mil"," mld","T","P","E"]},chart:{style:{fontFamily:'"Lato Medium", "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif',fontSize:"14px"}}}):Highcharts.setOptions({chart:{style:{fontFamily:'"Lato Medium", "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif',fontSize:"14px"}}})};msys.highchart.setLanguageOptions=function(){msys.currentLanguage.toLowerCase()==="it"?Highcharts.setOptions({lang:{rangeSelectorFrom:"Da:",rangeSelectorTo:"A:",rangeSelectorZoom:"",weekdays:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],shortMonths:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],decimalPoint:",",thousandsSep:".",numericSymbols:[" mila"," mil"," mld","T","P","E"]},chart:{style:{fontFamily:'"Lato Medium", "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif',fontSize:"14px"}}}):Highcharts.setOptions({chart:{style:{fontFamily:'"Lato Medium", "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif',fontSize:"14px"}}})};msys.initializeYearlyPerformanceTableScroll=function(){function n(){var n=$(".table-scroll-container").parent().clone(),t,i;if(n.css("opacity","0").css("display","inline-block").addClass("col-xs-12").appendTo("body"),t=n.find(".table-scroll-container"),i=t.find(".anima-table"),t.width()<i.width()){$(".table-scroll-container .scroll-hint").attr("data-hidden")===undefined&&$(".table-scroll-container .scroll-hint").show();$(".table-scroll-container").off("scroll touchmove");$(".table-scroll-container").on("scroll touchmove",function(n){$(n.currentTarget).find(".scroll-hint").attr("data-hidden","true").fadeOut(600)})}else $(".table-scroll-container .scroll-hint").hide();n.remove()}$(".table-scroll-container .scroll-hint").removeAttr("data-hidden");n();$(window).resize(function(){n();var t=$("#portfolio-container .port-mobile > .panel.panel-default").find(".selected").attr("data-chartgroup");msys.land.port.createPortfolioChart(t,$("#portfolio-container .port-mobile #pnl-"+t+" .chart-container")[0]);msys.land.port.createPortfolioChart(t,$("#portfolio-container .port-desktop .port-chart .chart-container")[0])})};msys.land=msys.land||{};msys.land.port=msys.land.port||{};msys.land.port.createPortfolioResults=function(n){var t=n.portList;if(t!==undefined&&t!==null&&t.length>0){t=msys.land.getUniqueArray(t,"codiceGruppo");msys.land.port.result=t;msys.land.port.apScadenze=n.portScadenze;msys.land.port.apDurationScadenze=n.portDurationScadenze;msys.land.port.apQualitaCreditizia=n.portQualitaCreditizia;msys.land.port.ratingMedioFondo=n.ratingMedioFondo;msys.land.port.ratingMedioBench=n.ratingMedioBench;$("#portfolio-container .port-mobile").collapse();$("#portfolio-container .port-mobile").on("show.bs.collapse",function(n){$("#portfolio-container .port-mobile .panel-collapse.collapse").not($(n.target)).collapse("hide");var t=$(n.target).attr("data-chartgroup");msys.land.port.createPortfolioChart(t,$("#portfolio-container .port-mobile #pnl-"+t+" .chart-container")[0]);msys.land.port.createPortfolioChart(t,$("#portfolio-container .port-desktop .port-chart .chart-container")[0])});$("#portfolio-container .port-mobile").on("hide.bs.collapse",function(n){$(n.target).prev().removeClass("selected")});$("#portfolio-container .compare-result-header").show();msys.land.port.tabClick(t[0].codiceGruppo)}};msys.land.port.createPortfolioChart=function(n,t){var r,v,nt,i,s,y,o,l,u,tt,c,rt,w,b,d,g;if(n||(n=$(".port-desktop .port-tab").first().data("chartgroup")),t||(t=$(".port-desktop .port-chart .chart-container")[0]),r=$(t),r.next().empty(),r.css("height",""),$(".port-tab").removeClass("selected").attr("aria-selected","false"),$('.port-tab[data-chartgroup="'+n+'"]').addClass("selected").attr("aria-selected","true"),v="bar",nt=$(".portfolio-appended-data"),nt.empty(),msys.land.port.result){i=$.grep(msys.land.port.result,function(t){return t.codiceGruppo.toLowerCase()===(n||"").toLowerCase()});i.length>0&&(i=i[0]);i.dettaglio.clean(undefined);s=" %";$(".sim-disclaimer-header-perc").show();$(".sim-disclaimer-header-year").hide();$(".ap-duration-notes").hide();msys.land.port.hasAPClassiAltro=!1;switch(i.codiceGruppo.toLowerCase()){case"ap_classiattivita":for(y=new Array(i.dettaglio.length),u=0;u<i.dettaglio.length;u++){o=-1;switch(i.dettaglio[u].descrizione.toLowerCase()){case"azioni":case"equity":o=0;break;case"obbligazioni":case"bond":o=1;break;case"liquidità":case"liquidity":case"liquidità netta":case"net liquidity":o=2;break;case"altro":case"other":case"altro *":case"other *":msys.land.port.hasAPClassiAltro=!0;o=3;break;case"commodity":o=4}o!==-1&&(y[o]=i.dettaglio[u])}i.dettaglio=y;break;case"ap_areeazionari":case"ap_areeobbligazionari":for(y=new Array(i.dettaglio.length),u=0;u<i.dettaglio.length;u++){o=0;switch(i.dettaglio[u].descrizione.toLowerCase()){case"europa":case"europe":o=0;break;case"america":o=1;break;case"asia":o=2;break;case"altro":case"other":case"altro *":case"other *":o=3}y[o]=i.dettaglio[u]}i.dettaglio=y;break;case"ap_tipologiaobb":case"ap_paesiobbligazionari":case"ap_paesiazionari":case"ap_settoriazionari":case"ap_settoriobbligazionari":i.dettaglio=i.dettaglio.sort(function(n,t){return t.valFondo-n.valFondo});break;case"ap_duration":s=" anni";$(".sim-disclaimer-header-perc").hide();$(".sim-disclaimer-header-year").show();$(".ap-duration-notes").show();break;case"ap_valute":i.dettaglio=i.dettaglio.sort(function(n,t){return t.valFondo-n.valFondo});break;case"ap_rating":i.hasRatingInterno&&(i.dettaglioInterno=$.grep(i.dettaglio,function(n){return n.descrizioneGruppo.toLowerCase()==="rating interno"||n.descrizioneGruppo.toLowerCase()==="internal rating"}).reverse());i.hasRatingEsterno&&(i.dettaglioEsterno=$.grep(i.dettaglio,function(n){return n.descrizioneGruppo.toLowerCase()==="rating esterno"||n.descrizioneGruppo.toLowerCase()==="external rating"}).reverse())}if(i){for($("#portfolio-container .port-desktop .rif-date .dt").text(moment(i.dataRifDisplay).format("DD.MM.YY")),$("#portfolio-container .sim-disclaimer").show(),i.codiceGruppo.toLowerCase()==="ap_duration"&&(i.dettaglioTableScadenza=msys.land.port.apScadenze.dettaglio.reverse(),i.dettaglioTableDurationScadenze=msys.land.port.apDurationScadenze.dettaglio.sort(function(n,t){return t.ordine-n.ordine})),l=Highcharts.getOptions().colors,u=0;u<msys.HIGHCHART_COLORS.length;u++)l[u]=msys.HIGHCHART_COLORS[u];scheda.isFondoLongShort&&i.codiceGruppo.toLowerCase()!=="ap_classiattivita"&&i.codiceGruppo.toLowerCase()!=="ap_primi10titoli"&&i.codiceGruppo.toLowerCase()!=="ap_valute"&&i.codiceGruppo.toLowerCase()!=="ap_esg"&&i.codiceGruppo.toLowerCase()!=="ap_pai"&&(tt=l[0],l[1]=tt,l[0]={pattern:{path:{d:"M 0 0 L 6 6 M 4 0 L 7 3 M 0 4 L 4 7 ",strokeWidth:2},width:4,height:4,opacity:.4,color:tt}});var p=!0,h=scheda.isFondoLongShort,f=[],e=[],a=[],it=[],k=[];for(i.dettaglio.clean(undefined),c=i.dettaglio.map(function(n){return n.descrizione}),u=0;u<i.dettaglio.length;u++)i.dettaglio[u].values=i.dettaglio[u].values===undefined||i.dettaglio[u].values===null?null:msys.land.getUniqueArray(i.dettaglio[u].values,"codFondo");if(i.codiceGruppo.toLowerCase()==="ap_classiattivita"?scheda.isFondoLongShort?(p=!1,f.push({name:msys.res.esposizione_short,data:i.dettaglio.map(function(n,t){return{name:n.descrizione,y:+msys.toFixed(n.percFondoSh
1ort,1),color:{pattern:{path:{d:"M 0 0 L 6 6 M 4 0 L 7 3 M 0 4 L 4 7 ",strokeWidth:2},width:4,height:4,opacity:.4,color:l[t]}}}})}),f.push({name:msys.res.esposizione_long,data:i.dettaglio.map(function(n,t){return{name:n.descrizione,y:+msys.toFixed(n.percFondoLong,1),color:l[t]}})})):(f.push({name:msys.res.Scheda_PerfFondo,data:i.dettaglio.map(function(n){return{name:n.descrizione,y:+msys.toFixed(n.percFondo,1)}})}),i.dettaglio[0].valBenchmark&&f.push({name:msys.res.Scheda_PerfBenchmark,data:i.dettaglio.map(function(n){return+msys.toFixed(n.percBenchmark,1)})})):i.codiceGruppo.toLowerCase()==="ap_duration"?(c=i.dettaglioTableScadenza.map(function(n){return n.descrizione}),a=i.dettaglioTableDurationScadenze.map(function(n){return n.descrizione}),scheda.isFondoLongShort?(f.push({name:msys.res.esposizione_short,data:i.dettaglioTableScadenza.map(function(n){return{name:n.descrizione,y:+msys.toFixed(n.percFondoShort,1)}})}),f.push({name:msys.res.esposizione_long,data:i.dettaglioTableScadenza.map(function(n){return{name:n.descrizione,y:+msys.toFixed(n.percFondoLong,1)}})}),e.push({name:msys.res.esposizione_short,data:i.dettaglioTableDurationScadenze.map(function(n){return{name:n.descrizione,y:+msys.toFixed(n.percFondoShort,1)}})}),e.push({name:msys.res.esposizione_long,data:i.dettaglioTableDurationScadenze.map(function(n){return{name:n.descrizione,y:+msys.toFixed(n.percFondoLong,1)}})})):(f.push({name:msys.res.Scheda_PerfFondo,data:i.dettaglioTableScadenza.map(function(n){return+msys.toFixed(n.percFondo,1)})}),i.dettaglio[0].valBenchmark&&f.push({name:msys.res.Scheda_PerfBenchmark,data:i.dettaglioTableScadenza.map(function(n){return+msys.toFixed(n.percBenchmark,1)})}),e.push({name:msys.res.Scheda_PerfFondo,data:i.dettaglioTableDurationScadenze.map(function(n){return+msys.toFixed(n.percFondo,1)})}),i.dettaglio[0].valBenchmark&&e.push({name:msys.res.Scheda_PerfBenchmark,data:i.dettaglioTableDurationScadenze.map(function(n){return+msys.toFixed(n.percBenchmark,1)})}))):i.codiceGruppo.toLowerCase()==="ap_rating"?(i.hasRatingInterno&&(a=i.dettaglioInterno.map(function(n){return n.descrizione}),scheda.isFondoLongShort?(e.push({name:msys.res.esposizione_short,data:i.dettaglioInterno.map(function(n){return+msys.toFixed(n.percFondoShort,1)})}),e.push({name:msys.res.esposizione_long,data:i.dettaglioInterno.map(function(n){return+msys.toFixed(n.percFondoLong,1)})})):(e.push({name:msys.res.Scheda_PerfFondo,data:i.dettaglioInterno.map(function(n){return+msys.toFixed(n.percFondo,1)})}),i.dettaglio[0].valBenchmark&&e.push({name:msys.res.Scheda_PerfBenchmark,data:i.dettaglioInterno.map(function(n){return+msys.toFixed(n.percBenchmark,1)})}))),i.hasRatingEsterno&&(c=i.dettaglioEsterno.map(function(n){return n.descrizione}),scheda.isFondoLongShort?(f.push({name:msys.res.esposizione_short,data:i.dettaglioEsterno.map(function(n){return+msys.toFixed(n.percFondoShort,1)})}),f.push({name:msys.res.esposizione_long,data:i.dettaglioEsterno.map(function(n){return+msys.toFixed(n.percFondoLong,1)})})):(f.push({name:msys.res.Scheda_PerfFondo,data:i.dettaglioEsterno.map(function(n){return+msys.toFixed(n.percFondo,1)})}),i.dettaglio[0].valBenchmark&&f.push({name:msys.res.Scheda_PerfBenchmark,data:i.dettaglioEsterno.map(function(n){return+msys.toFixed(n.percBenchmark,1)})})))):i.codiceGruppo.toLowerCase()==="ap_esg"||i.codiceGruppo.toLowerCase()==="ap_pai"||(scheda.isFondoLongShort&&i.codiceGruppo.toLowerCase()!=="ap_primi10titoli"&&i.codiceGruppo.toLowerCase()!=="ap_valute"?(f.push({name:msys.res.esposizione_short,data:i.dettaglio.map(function(n){return+msys.toFixed(n.percFondoShort,1)})}),f.push({name:msys.res.esposizione_long,data:i.dettaglio.map(function(n){return+msys.toFixed(n.percFondoLong,1)})})):(rt=msys.res.Scheda_PerfFondo,i.codiceGruppo.toLowerCase()==="ap_valute"&&(rt+=" "+msys.res.esposizione_netta),f.push({name:rt,data:i.dettaglio.map(function(n){return+msys.toFixed(n.percFondo,1)})}),i.dettaglio[0].valBenchmark&&f.push({name:msys.res.Scheda_PerfBenchmark,data:i.dettaglio.map(function(n){return+msys.toFixed(n.percBenchmark,1)})}))),i.codiceGruppo.toLowerCase()==="ap_rating")r.empty(),msys.land.port.createTableRating(t,i),i.hasRatingEsterno&&(r.append("<h4>"+i.descrizioneRatingEsterno+"<\/h4>"),newdiv1=document.createElement("div"),r.append(newdiv1),newdiv1.classList.add("rating-graph"),msys.land.createHighchart(ne
1wdiv1,c,s,f,v,h,p)),i.hasRatingInterno&&(r.append("<h4>"+i.descrizioneRatingInterno+"<\/h4>"),newdiv2=document.createElement("div"),r.append(newdiv2),newdiv2.classList.add("rating-graph"),msys.land.createHighchart(newdiv2,a,s,e,v,h,p));else if(i.codiceGruppo.toLowerCase()==="ap_duration")r.empty(),msys.land.port.createTableDuration(t,i),f.length>0&&(msys.land.port.isMonetaryFund?r.append("<h4>"+msys.land.port.apDurationScadenze.descrizione+" ("+msys.res.days+")<\/h4>"):r.append("<h4>"+msys.land.port.apScadenze.descrizione+"<\/h4>"),newdiv1=document.createElement("div"),r.append(newdiv1),newdiv1.classList.add("rating-graph"),msys.land.createHighchart(newdiv1,c,s,f,v,h,p)),e.length>0&&e[0].data.length>0&&(r.append("<h4>"+msys.land.port.apDurationScadenze.descrizione+"<\/h4>"),newdiv2=document.createElement("div"),r.append(newdiv2),newdiv2.classList.add("rating-graph"),msys.land.createHighchart(newdiv2,a,s,e,v,h,p));else if(msys.land.port.isMonetaryFund&&i.codiceGruppo.toLowerCase()==="ap_primi10titoli")r.empty(),msys.land.port.createTablePrimi10Titoli(t,i);else if(i.codiceGruppo.toLowerCase()==="ap_esg"){r.empty();dataTableEsgRating=[];dataChartDistribuzione=[];dataChartCopertura1=[];dataChartCopertura2=[];c=[];i.dettaglio.forEach(function(n){n.tipologia.toLowerCase()==="totali"&&dataTableEsgRating.push(n)});w=msys.res.scheda_TextPortfolioESGAnalizzabile;b=msys.res.scheda_TextPortfolioESGCoperturaRating;i.dettaglio.forEach(function(n){if(n.tipologia.toLowerCase()==="distribuzione"){c.push(n.esgRating);var t={y:+msys.toFixed(n.pesoPtf*100,1),color:"#67757B"};(n.esgRating.indexOf("D")>=0||n.esgRating.indexOf("CCC")>=0)&&(t.color="#990033");dataChartDistribuzione.push(t)}else n.tipologia.toLowerCase()==="copertura"&&(n.ordine===0?(a.push("Analizzabile"),k.push("Copertura"),dataChartCopertura1.push(+msys.toFixed(n.pesoAnalizzabilePtf*100,1)),w+=msys.toFixed(n.pesoAnalizzabilePtf*100,1),dataChartCopertura2.push(+msys.toFixed(n.pesoCoperturaPtf*100,1)),b+=msys.toFixed(n.pesoCoperturaPtf*100,1),msys.currentLanguage.toLowerCase()==="it"&&(b=b.replace(".",","),w=w.replace(".",","))):n.ordine===1&&(a.push(""),k.push(""),dataChartCopertura1.push(+msys.toFixed(n.pesoAnalizzabilePtf*100,1)),dataChartCopertura2.push(+msys.toFixed(n.pesoCoperturaPtf*100,1))))});f.push({name:msys.res.fund,data:dataChartDistribuzione});e.push({name:msys.res.fund,data:dataChartCopertura1,size:"100%",innerSize:"50%",color:"#ffffff",distance:-30});it.push({name:msys.res.fund,data:dataChartCopertura2,size:"100%",innerSize:"50%",color:"#ffffff",distance:-30});r.append("<h3 class='text-center'>"+msys.res.scheda_TextPortfolioESGCoperturaPortafoglio+"<\/h3>");r.append("<div class='col-xs-6' id='chart-analizzabile' ><h4 class='text-center'>"+w+"<\/h4>
1<div class='pie-chart'><\/div><\/div>");r.append("<div class='col-xs-6' id='chart-copertura' ><h4 class='text-center'>"+b+"<\/h4><div class='pie-chart'><\/div><\/div>");$("#chart-analizzabile .pie-chart").css("height","280px");$("#chart-copertura .pie-chart").css("height","280px");d=$("#chart-analizzabile .pie-chart");g=$("#chart-copertura .pie-chart");msys.land.createHighchart(d[0],a,s,e,"donut",h,!1);msys.land.createHighchart(g[0],k,s,it,"donut",h,!1);d.length>1&&g.length>1&&(msys.land.createHighchart(d[1],a,s,e,"donut",h,!1),msys.land.createHighchart(g[1],k,s,it,"donut",h,!1));msys.land.port.createTableEsgRating(t,dataTableEsgRating);var ut=msys.res.scheda_TextPortfolioWarningESG1,ft=msys.res.scheda_TextPortfolioWarningESG2,et=msys.res.scheda_TextPortfolioWarningESG3;r.append("<br />");r.append('<div class="sim-disclaimer" style="display:block"><p>'+ut+"<\/p><p>"+ft+"<\/p><p>"+et+"<\/p><\/div>");r.append("<br />");r.append("<h3 class='text-center'>"+msys.res.scheda_TextPortfolioESGDistribuzione+"<\/h3>");r.append("<div class='bar-chart'><\/div>");msys.land.createHighchart(r.find(".bar-chart")[0],c,s,f,v,h,!1,"left");i.portafoglioPAI&&msys.land.port.renderPAI(nt,i.portafoglioPAI)}else msys.land.createHighchart(t,c,s,f,v,h,p)}i.codiceGruppo.toLowerCase()==="ap_classiattivita"&&msys.land.port.createTableClassiAttivita(i.dettaglio,r.next(),l);msys.land.port.isMonetaryFund&&i.codiceGruppo.toLowerCase()==="ap_rating"&&msys.land.port.createTableQualitaCreditizia(t)}};msys.lightenDarkenColor=function(n,t){var e=!1,f,i,r,u;return n[0]==="#"&&(n=n.slice(1),e=!0),f=parseInt(n,16),i=(f>>16)+t,i>255?i=255:i<0&&(i=0),r=(f>>8&255)+t,r>255?r=255:r<0&&(r=0),u=(f&255)+t,u>255?u=255:u<0&&(u=0),(e?"#":"")+(u|r<<8|i<<16).toString(16)};msys.land.port.renderPAI=function(n,t){var h=function(n){return n?Math.floor(n*100)+"%":"n.d."},a=function(n){var i,r,t;return n?(n=n.trim(),i=n.lastIndexOf(" "),i<0)?n:(n=n.substring(0,i)+"&nbsp;"+n.substring(i+1),t=n.lastIndexOf(" "),t<0)?n:(r=n.length-t,r<=10&&(t=n.lastIndexOf(" "),t>=0&&(n=n.substring(0,t)+"&nbsp;"+n.substring(t+1))),n):"n.d."},v=function(n){return n?n.toLocaleString("it-IT"):"n.d."},r=function(n){return t.metricLabels[n]},y="<h3 class='text-center'>"+r("web.tab")+"<\/h3>",i,c,f,e,l,u,o,s;for(y+="<br/>",n.append(y),i="<div style='overflow-x: auto'><table class='table anima-table anima-table-pai' id='portDettaglioTable'>",i+="<thead><tr>",i+="<th class='anima-label-color'>"+r("common.metric.principali-metriche")+"<\/th>",i+="<th class='anima-label-color' style='text-align: center;'>"+r("common.metric.valore-fondo")+"<\/th>",i+="<th class='anima-label-color' style='text-align: center;'>"+r("common.metric.valore-benchmark")+"<\/th>",i+="<th class='anima-label-color' style='text-align: center;'>"+r("common.metric.unita-di-misura")+"<\/th>",i+="<th class='anima-label-color' style='text-align: center;'>"+r("common.metric.portafoglio-analizzabile")+"<\/th>",i+="<th class='anima-label-color' style='text-align: center;'>"+r("common.metric.copertura-portafoglio")+"<\/th>",i+="<th class='anima-label-color' style='text-align: center;'>"+r("common.metric.copertura-benchmark")+"<\/th>",i+="<\/tr><\/thead>",c=t.metricAnalysis.metriche,u=0;u<c.length;u++)f=c[u],i+="<tr>",i+="<td><strong>"+a(f.indicatore)+"<\/strong><sup>"+f.numeroIndicatore+"<\/sup><\/td>",i+="<td style='text-align: center;'>"+v(f.valore)+"<\/td>",i+="<td style='text-align: center;'>"+v(f.valoreBmk)+"<\/td>",i+="<td style='text-align: center;'>"+a(f.unitaMisura)+"<\/td>",i+="<td style='text-align: center;'>"+h(f.analizzabile)+"<\/td>",i+="<td style='text-align: center;'>"+h(f.copertura)+"<\/td>",i+="<td style='text-align: center;'>"+h(f.coperturaBmk)+"<\/td>",i+="<\/tr>";for(i+="<\/table><\/div>",i+="<br />",n.append(i),e="<div class='sim-disclaimer' style='display:block; padding-top: 0px'>",l=t.metricLegend.righe,u=0;u<l.length;u++)o=l[u],s=o.legenda,s&&(o.tipoRiga==1&&u>0&&(e+="<br />"),e+="<p>",e+=o.tipoRiga==1?"<strong>"+s+"<\/strong>":s,e+="<\/p>");e+="<br />";e+=msys.land.port.rifDate+moment(t.dataRifDisplay).format("DD.MM.YY")+"; "+r("common.metric.fonte");e+="<\/div>";n.append(e)};msys.land.port.createTableQualitaCreditizia=function(n){var t="<table class='table anima-table createTableQualitaCreditizia' id='portDettaglioTable'><thead><tr>";for(t+="<th class='anima-label-color'>"+msys.res.qualitaCreditiziaTitle+"<\/th>",t+="<th class='anima-label-color'>"+msys.res.fund+"<\/th>",t+="<th class='anima-label-color'>Benchmark<\/th>",t+="<\/tr><\/thead>",i=0;i<msys.land.port.apQualitaCreditizia.dettaglio.length;i++)t+="<tr>",t+="<td>"+msys.land.port.apQualitaCreditizia.dettaglio[i].descrizione+"<\/td>",t+="<td>"+msys.toNumber(msys.land.port.apQualitaCreditizia.dettaglio[i].percFondo,2)+"<\/td>",t+="<td>"+msys.toNumber(msys.land.port.apQualitaCreditizia.dettaglio[i].percBenchmark,2)+"<\/td>",t+="<\/tr>";t+="<\/table><br />";$(n).append(t);$(n).append('<span class="sim-disclaimer-warning">'+msys.res.qualitaCreditiziaNota+"<\/span>")};msys.land.port.createTableEsgRating=function(n,t){var i="<table class='table anima-table createTableEsgRating' id='portDettaglioTable'><thead><tr>",u,r;for(i+="<th class='anima-label-color'>Driver ESG<\/th>",i+="<th class='anima-label-color'>ESG Rating<\/th>",i+="<\/tr><\/thead>",u=0;u<t.length;u++)r=t[u],i+=r.bold===1?"<tr><td><b>"+r.driverESG+"<\/b><\/td><td><b>"+r.esgRating+"<\/b><\/td><\/tr>":"<tr><td style='padding-left:60px'>"+r.driverESG+"<\/td><td>"+r.esgRating+"<\/td><\/tr>";i+="<\/table>";i+="<br />";$(n).append(i)};msys.land.port.createTableRating=function(n){var t="<table class='table anima-table ap_rating' id='portDettaglioTable'><thead><tr>";t+="<th class='anima-label-color'><\/th>";t+="<th class='anima-label-color'>"+msys.res.fund+"<\/th>";msys.land.port.ratingMedioBench!==undefined&&(t+="<th class='anima-label-color'>Benchmark<\/th>");t+="<\/tr><\/thead>";t+="<tr><td>"+msys.res.ratingMedio+"<\/td><td>"+msys.land.port.ratingMedioFondo+"<\/td>";msys.land.port.ratingMedioBench!==undefined&&(t+="<td>"+msys.land.port.ratingMedioBench+"<\/td>");t+="<\/tr>";t+="<\/table>";t+="<br />";$(n).append(t)};msys.land.port.createTablePrimi10Titoli=function(n,t){var r="<table class='table anima-table ap_primi10titoli' id='portDettaglioTable'><thead><tr>";for(r+="<th class='anima-label-color'>"+msys.res.descrizione+"<\/th>",r+="<th class='anima-label-color'>"+msys.res.pesoPerc+"<\/th>",r+="<th class='anima-label-color'>"+msys.res.country+"<\/th>",r+="<th class='anima-label-color'>"+msys.res.expiryDate+"<\/th>",r+="<th class='anima-label-color'>"+msys.res.tipoTitolo+"<\/th>",r+="<\/tr>",i=0;i<t.dettaglio.length;i++)r+="<tr>",r+="<td>"+t.dettaglio[i].descrizione+"<\/td>",r+="<td>"+msys.toNumber(t.dettaglio[i].percFondo,2)+"<\/td>",r+="<td>"+t.dettaglio[i].desPaese+"<\/td>",r+="<td>"+t.dettaglio[i].dataScadezaAsString+"<\/td>",r+="<td>"+t.dettaglio[i].desTipoTitolo+"<\/td>",r+="<\/tr>";r+="<\/thead><\/table><\/br>";$(n).append(r)};msys.land.port.createTableDuration=function(n,t){var r="";if(scheda.isFondoLongShort)r="<table class='table anima-table ap_duration1' id='portDettaglioTable'><thead><tr><th class='anima-label-color'>"+msys.land.port.period+"<\/th><th class='anima-label-color'>"+msys.res.esposizione_short+"<\/th><th class='anima-label-color'>"+msys.res.esposizione_long+"<\/th><\/tr>"+("<tr><td>"+t.dettaglio[0].descrizione+"<\/td><td>"+msys.toNumber(t.dettaglio[0].valFondoShort,1)+"<\/td><td>"+msys.toNumber(t.dettaglio[0].valFondoLong,1)+"<\/td><\/tr>");else if(r="<table class='table anima-table ap_duration2' id='portDettaglioTable'><thead><tr><th class='anima-label-color'>"+(msys.land.port.isMonetaryFund?"":msys.land.port.period)+"<\/th><th class='anima-label-color'>"+msys.res.fund+"<\/th><th class='anima-label-color'>Benchmark<\/th><\/thead><tbody>",msys.land.port.isMonetaryFund)for(r+="<tr><td>"+t.dettaglio[0].descrizione+" ("+msys.res.anni+")<\/td><td>"+msys.toNumber(t.dettaglio[0].valFondo,1)+"<\/td><td>"+msys.toNumber(t.dettaglio[0].valBenchmark,1)+"<\/td><\/tr>",i=1;i<t.dettaglio.length;i++)r+="<tr><td>"+t.dettaglio[i].descrizione+" ("+msys.res.days+")<\/td><td>"+msys.toNumber(t.dettaglio[i].valFondo,0)+"<\/td><td>"+msys.toNumber(t.dettaglio[i].valBenchmark,0)+"<\/td><\/tr>";else r+="<tr><td>"+t.dettaglio[0].descrizione+"<\/td><td>"+msys.toNumber(t.dettaglio[0].valFondo,1)+"<\/td><td>"+msys.toNumber(t.dettaglio[0].valBenchmark,1)+"<\/td><\/tr>";r+="<\/tbody><\/table><\/br>";$(n).append(r)};msys.land.port.createTableClassiAttivita=function(n,t,i){for(var o,f=$("#portfolio-container .port-mobile > .panel.panel-default").find(".selected").text().trim(),e=!scheda.isFondoLongShort,s=e?"<th>"+f+"<\/th><th>"+msys.res.fund+"<\/th><th class='no-border'>Bench.<\/th>":"<th>"+f+"<\/th><th>"+msys.res.esposizione_netta+"<\/th>",u="",r=0;r<=n.length-1;r++)u+="<tr>",u+="<td>"+(n[r].descrizione===null?"":"<span style='height:20px;width:20px;
1display:inline-block;background-color:"+i[r]+"';'><\/span><span style='display:inline-block;padding-left:10px;'> "+n[r].descrizione.toString()+"<\/span>")+"<\/td>",u+="<td>"+(n[r].percFondo===null?"":msys.toNumber(n[r].percFondo,1))+"<\/td>",e&&(u+="<td>"+(n[r].percBenchmark===null?"":msys.toNumber(n[r].percBenchmark,1))+"<\/td>"),u+="<\/tr>";o="<div class='table-responsive table-classattivita-mobile ap_classiattivita'><table class='table anima-table'><thead><tr>"+s+"<\/tr><\/thead><tbody>"+u+"<\/tbody><\/table><\/div>";t.append(o);msys.land.port.hasAPClassiAltro&&$(".port_apclassiattivita_nota1").html("<br/><p style='display:block'>"+msys.res.port_apclassiattivita_nota1+"<\/p>")};msys.land.port.tabClick=function(n,t){$(".port_apclassiattivita_nota1").empty();$("#portfolio-container .port-mobile .port-tab").removeClass("selected");$("#portfolio-container .port-mobile .port-tab#heading-"+n).addClass("selected");$("#portfolio-container .port-mobile .port-tab.selected").next().collapse("show");msys.land.port.createPortfolioChart(n,$("#portfolio-container .port-desktop .port-chart .chart-container")[0]);gtm.product.portfolio(t)};msys.land.port.tabClickMobile=function(n,t){var i=$(n),r=i.parent().parent().hasClass("selected");r&&gtm.product.portfolio(t)};msys.land.getUniqueArray=function(n,t){try{if(n.constructor===Array)return n.reduce(function(n,i){var r=n.filter(function(n){return i[t]===n[t]});return r.length===0&&n.push(i),n},[]);var i=[];return i.push(n),i}catch(r){return[]}};msys.land.createHighchart=function(n,t,i,r,u,f,e,o,s){var c,l;s=s==null||s=="null"?"":s;msys.highchart.setLanguageOptions();var a=null,h=msys.isDeviceSizeXS(),v=undefined,y={layout:"horizontal",align:"center",verticalAlign:"bottom",floating:!1,itemStyle:{fontSize:"13px"}};f&&(v="normal");e||(y={enabled:!1});a=o===undefined||o===null||o==="right"?{align:"right",style:{fontSize:"13px",fontFamily:"Lato Regular"}}:{align:"left",x:-25,y:0,reserveSpace:!0,style:{fontSize:"13px",fontFamily:"Lato Regular"}};u==="bar"?Highcharts.chart(n,{lang:{accessibility:{svgContainerLabel:s}},chart:{type:u,style:{fontFamily:'"Lato Regular", "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif',fontSize:"12px"}},exporting:{enabled:!h},title:{text:null},subtitle:{text:null},xAxis:{categories:t,title:{text:null},labels:a},yAxis:{title:{text:"",align:"high"},labels:{style:{fontSize:"13px",fontFamily:"Lato Regular",textAlign:"left"}}},tooltip:{valueSuffix:i,pointFormat:"{point.y:.1f}"},plotOptions:{bar:{stacking:v,dataLabels:{enabled:!0},fillColor:{pattern:{path:{d:"M 0 0 L 6 6 M 4 0 L 7 3 M 0 4 L 4 7 ",strokeWidth:1},width:4,height:4,opacity:.4}}},series:{dataLabels:{enabled:!0,inside:!1,style:{fontFamily:"Lato Regular",fontSize:"12px",color:"black"},format:"{point.y:.1f}"}}},legend:y,credits:{enabled:!1},series:r,responsive:{rules:[{condition:{maxWidth:640},chartOptions:{title:{text:null},xAxis:{labels:{style:{fontSize:"11px"}}},legend:{itemStyle:{fontSize:"11px"}}}}]}}):u==="column"?Highcharts.chart(n,{lang:{accessibility:{svgContainerLabel:s}},chart:{type:u,style:{fontFamily:'"Lato Regular", "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif',fontSize:"12px"}},exporting:{enabled:!h},title:{text:null},subtitle:{text:null},xAxis:{categories:t,title:{text:null},labels:{style:{fontSize:"13px",fontFamily:"Lato Regular"}}},yAxis:{title:{text:"",align:"high"},labels:{overflow:"justify",formatter:function(){return this.value+"%"}}},tooltip:{valueSuffix:i,pointFormat:"{series.name}: <b>{point.y:.2f} %<\/b><br/>"},plotOptions:{bar:{dataLabels:{enabled:!0}},series:{dataLabels:{enabled:!1,style:{fontFamily:"Lato Regular",fontSize:"12px",color:"black"}}}},legend:{layout:"horizontal",align:"center",verticalAlign:"bottom",floating:!1,itemStyle:{fontSize:"13px"}},credits:{enabled:!1},series:r,responsive:{rules:[{condition:{maxWidth:640},chartOptions:{title:{text:null},xAxis:{labels:{style:{fontSize:"11px"}}},legend:{itemStyle:{fontSize:"11px"}}}}]}}):u==="pie"?Highcharts.chart(n,{lang:{accessibility:{svgContainerLabel:s}},chart:{type:u,style:{fontFamily:'"Lato Regular", "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif',fontSize:"12px"}},exporting:{enabled:!h},title:{text:null},subtitle:{text:null},tooltip:{pointFormat:"{point.name}: <b>{point.percentage:.1f}%<\/b>"},plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!0,format:"<b>{point.name}<\/b>: {point.percentage:.1f} %",style:{color:Highcharts.theme&&Highcharts.theme.contrastTextColor||"black"}}}},legend:{layout:"horizontal",align:"center",verticalAlign:"bottom",floating:!1,itemStyle:{fontSize:"13px"}},credits:{enabled:!1},series:r,responsive:{rules:[{condition:{maxWidth:640},chartOptions:{title:{text:null},xAxis:{labels:{style:{fontSize:"11px"}}},legend:{itemStyle:{fontSize:"11px"}}}}]}}):u==="donut"&&Highcharts.chart(n,{lang:{accessibility:{svgContainerLabel:s}},chart:{heigth:230,type:"pie",style:{fontFamily:'"Lato Regular", "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif',fontSize:"12px"}},exporting:{enabled:!h},title:{text:null},subtitle:{text:null},plotOptions:{pie:{allowPointSelect:!1,cursor:"pointer",shadow:!1,center:["50%","50%"],dataLabels:{enabled:!1}}},credits:{enabled:!1},series:r,responsive:{rules:[{condition:{maxWidth:400},chartOptions:{series:r}}]},tooltip:{pointFormat:"<b>{point.y:,.1f}<\/b>",headerFormat:undefined}});msys.isNullOrWhiteSpace(s)===!1&&(c=n.getElementsByTagName("svg"),c&&c.length>
10&&(l=document.createElement("title"),l.innerHTML=s,c[0].appendChild(l)))};msys.performance.chartPeriodSelectChange=function(n){var t,i;if($(".btn-scheda").removeClass("selected"),$(n).addClass("selected"),t=$(n).val(),t!==""){t=parseInt(t);i=new moment;switch(t){case msys.charPeriodEnum.YTD:i=moment().startOf("year");break;case msys.charPeriodEnum.Y1:i=moment(msys.performance.dataRif).subtract(1,"y");break;case msys.charPeriodEnum.Y3:i=moment(msys.performance.dataRif).subtract(3,"y");break;case msys.charPeriodEnum.Y5:i=moment(msys.performance.dataRif).subtract(5,"y");break;case msys.charPeriodEnum.Y10:i=moment(msys.performance.dataRif).subtract(10,"y");break;default:i=moment(msys.performance.dataRif).subtract(1,"y")}$(".dataInizioPerf").blur();$(".dataFinePerf").blur();msys.performance.isCustomDatePeriod=!1;$("#perf-chart-container").html(msys.performance.loaderHtml);msys.performance.loading||(msys.performance.loading=!0,msys.performance.selectedPeriod=t,msys.performance.getChartData(msys.performance.fundCode,t))}};msys.product={};favoriteManager=new Favorites;filterAction={add:"filter-add",del:"filter-del"};msys.product.servicesUrl={autocompleteApi:"/api/autocomplete/fundNames?profile=profileCode&codiceLingua=lang&search=searchCriteria",autocompleteOpenClosed:"/api/autocomplete/openclosed?profile=profileCode&codiceLingua=lang&search=searchCriteria",autocompletePerformancePriisp:"/api/autocomplete/performancesPriisp?profile=profileCode&codiceLingua=lang&search=searchCriteria",filterUpdateApi:"/api/fondi/elenchimenu?profile=profileCode&codiceLingua=lang",exportExcel:"/api/document/products/exportExcel?profile=profileCode&codiceLingua=lang",cedoleExportExcel:"/api/document/cedole/exportExcel?profile=profileCode&codiceLingua=lang",infoVerificaBeneficiarioExportExcel:"/api/document/infoVerificaBeneficiario/exportExcel?profile=profileCode&codiceLingua=lang",exportAllToExcel:"/api/document/products/exportAllToExcel?profile=profileCode&codiceLingua=lang"};msys.product.getCurrentView=function(){var t=new URLSearchParams(window.location.search),n=t.get("Vista");return(n===""||n===null||n===undefined)&&(n=""),n};msys.product.filtersReset=function(n){typeof n=="undefined"&&(n=!1);var t=msys.product.getCurrentView();t===""?window.history.pushState({},document.title,window.location.pathname):window.history.pushState({},document.title,window.location.pathname+"?Vista="+t);msys.product.autoCompleteReset();$("#filterBarSelection").find("a[data-parent-name]").each(function(n,t){msys.product.filterActionDispatcher(filterAction.del,t)});$('button[data-action="featured-funds"]').removeClass("selected").attr("aria-pressed",!1);$('button[data-action="favorite-filter"]').removeClass("selected").attr("aria-pressed",!1);n&&msys.product.updateCurrentView()};msys.product.filterIsSelected=function(n){return $("#filterBarSelection").find("a[data-parent-name='"+n+"']").length>0};msys.product.updateResults=function(n,t){var r,u,i;typeof t=="undefined"&&(t=!0);r=msys.settings["productsView_"+n];u="/"+msys.currentLanguage+"/Products/"+r+window.location.search;$("#loader").show();t&&($("#filteredItemsTotal").html("0"),$("#filteredItemsTotal-mobile").html("0"));$("#resultContainer").html('<div class="anima-row-details-loading"><span class="loader"><\/span><\/div>');i=msys.product.servicesUrl.filterUpdateApi;i=i.replace(/lang/g,msys.currentLanguage);i=i.replace(/profileCode/g,msys.currenteProfileCode);i=i+"&"+msys.product.getFilters();$.get(i,function(n){var i=n.data,r=0,t=null;for(r in i.macrocategorie)t=i.macrocategorie[r],$('.dropdown ul[data-name="categoria"] a[data-parent-value="'+t.codice+'"]').html(t.descrizione+" <span>("+t.numFondi+")<\/span>");for(r in i.gradiRischio)t=i.gradiRischio[r],$('.dropdown ul[data-name="rischio"] a[data-parent-value="'+t.codice+'"]').html(t.descrizione+" <span>("+t.numFondi+")<\/span>");for(r in i.sistemi)t=i.sistemi[r],$('.dropdown  ul[data-name="sistema"] a[data-parent-value="'+t.codice+'"]').html(t.descrizione+" <span>("+t.numFondi+")<\/span>");for(r in i.classi)t=i.classi[r],t.codice!==null&&$('.dropdown  ul[data-name="classe"] a[data-parent-value="'+t.codice+'"]').html(t.descrizione+" <span>("+t.numFondi+")<\/span>");for(r in i.staccoCedole)t=i.staccoCedole[r],$('.dropdown  ul[data-name="cedole"] a[data-parent-value="'+t.codice+'"]').html(t.descrizione+" <span>("+t.numFondi+")<\/span>");for(r in i.esg)t=i.esg[r],$('.dropdown  ul[data-name="esg"] a[data-parent-value="'+t.codice+'"]').html(t.descrizione+" <span>("+t.numFondi+")<\/span>")});$.get(u,function(n){$("#resultContainer").html(n);t&&($("#filteredItemsTotal").html($("#resultTable").data("row-count")),$("#filteredItemsTotal-mobile").html($("#resultTable").data("row-count")));msys.initializeYearlyPerformanceTableScroll();$("#loader").fadeOut();msys.product.floatThead();$("#resultContainer [data-gtm='true']").click(function(){gtm.traceEvent($(this))})})};msys.product.infoVerificaBeneficiarioExportToExcel=function(){var n=msys.product.servicesUrl.infoVerificaBeneficiarioExportExcel;n=n.replace(/lang/g,msys.currentLanguage);n=n.replace(/profileCode/g,msys.currenteProfileCode);n=n+"&"+msys.product.getFilters();window.open(n,"Excel")};msys.product.cedoleExportExcel=function(){var n=msys.product.servicesUrl.cedoleExportExcel;n=n.replace(/lang/g,msys.currentLanguage);n=n.replace(/profileCode/g,msys.currenteProfileCode);n=n+"&"+msys.product.getFilters();window.open(n,"Excel")};msys.product.exportToExcel=function(){var n=msys.product.servicesUrl.exportExcel;n=n.replace(/lang/g,msys.currentLanguage);n=n.replace(/profileCode/g,msys.currenteProfileCode);n=n+"&"+msys.product.getFilters();window.open(n,"Excel")};msys.product.exportAllToExcel=function(){var n=msys.product.servicesUrl.exportAllToExcel;n=n.replace(/lang/g,msys.currentLanguage);n=n.replace(/profileCode/g,msys.currenteProfileCode);n=n+"&"+msys.product.getFilters();window.open(n,"Excel")};msys.product.updateCurrentView=function(){var i=msys.product.getCurrentView(),n=msys.product.getFilters(),t=window.location.pathname;n.length&&(t+="?"+n);window.history.pushState({},document.title,t);msys.product.updateResults(i);msys.product.updateFilterAppareance();msys.contactHub.traceFundsSearch();msys.auditPremium.fundsSearch()};msys.product.filterActionDispatcher=function(n,t){var i=$(t).data("parent-name"),r=$(t).data("parent-root"),u=$(t).data("parent-value"),f=$(t).data("tooltip"),s,h,c;
1if(n===filterAction.add)if(gtm.product.listingFilterSelect(f,i),msys.product.filterIsSelected(i))s=$("#filterBarSelection").find("a[data-parent-name='"+i+"'][data-parent-value='"+u+"']"),msys.product.filterActionDispatcher(filterAction.del,s);else{var e=$("<ul>").addClass("anima-filter-badge selected"),o=$("<li>"),l=$("<a>").attr("data-action",filterAction.del).attr("data-parent-root",r).attr("data-parent-name",i).attr("data-parent-value",u).addClass("del").text(i.toLowerCase().indexOf("esg")===0?i.replace("ESG",msys.res["filter-esg-label"]):i).attr("title",f).attr("href","#");$(t).attr("aria-checked","true");$(t).parent().addClass("checked");$(o).append(l);$(e).append(o);$("#filterBarSelection").append(e)}else n===filterAction.del&&(h=$(t).parent().parent(),c=$("ul[data-parent-name='"+r+"']").find("a[data-parent-name='"+i+"']"),c.attr("aria-checked","false").parent().removeClass("checked"),$(h).remove())};msys.product.autoCompleteReset=function(){$("#nameOrIsin").val("");$("#nameOrIsinAutoComplete").fadeOut()};msys.product.autoComplete=function(n,t,i){n=n.replace(/lang/g,msys.currentLanguage);n=n.replace(/searchCriteria/g,t);n=n.replace(/profileCode/g,msys.currenteProfileCode);$.getJSON(n,function(n){var t=[];n.data.forEach(function(n){t.push(n)});i&&i(t)})};msys.product.autoCompleteFundNames=function(n,t){msys.product.autoComplete(msys.product.servicesUrl.autocompleteApi,n,t)};msys.product.autoCompleteOpenClosed=function(n,t){msys.product.autoComplete(msys.product.servicesUrl.autocompleteOpenClosed,n,t)};msys.product.autocompletePerformancePriisp=function(n,t){msys.product.autoComplete(msys.product.servicesUrl.autocompletePerformancePriisp,n,t)};msys.product.getFilters=function(){var t=new URLSearchParams(window.location.search),n=new URLSearchParams(""),i=msys.product.getCurrentView();i!==""&&n.set("Vista",i);var r=t.get("SortField"),u=t.get("SortDirection"),f=Number(t.get("ShowFavoritesOnly")),e=Number(t.get("MostraFondiInEvidenza"));return $("#filterBarSelection").find("a[data-parent-name]").each(function(t,i){var r=$(i).data("parent-root"),u=$(i).data("parent-value");n.append(r,u)}),$("#nameOrIsin").val().length>0&&n.set("NomeFondo",$("#nameOrIsin").val()),u!==null&&n.set("SortDirection",u),r!==null&&n.set("SortField",r),f===1&&n.set("ShowFavoritesOnly",1),e===1&&n.set("MostraFondiInEvidenza",1),n.toString()};msys.product.updateFilterAppareance=function(){$(".dropdown.anima-filter-dropdown").each(function(n,t){var r=$(t).find(".dropdown-menu").find(".checked").length,i=$(t).find("button");r>0?$(i).addClass("filtered"):$(i).removeClass("filtered")})};msys.product.cedoleExpander=function(n){var r=$(this),i=r.data("id"),t=$(this).closest("tr"),u="/"+msys.currentLanguage+"/Products/CedolaDetails?codiceFondo="+i+"&t="+(new Date).getTime();r.hasClass("expand")?(r.removeClass("expand").addClass("compress"),t.hasClass("loaded")?(t.addClass("selected"),$("tr[data-group-id="+i+"]").show()):(t.addClass("selected").after('<tr><td colspan="9" class="table-row-loading '+i+'">'+msys.getLoadingRowText()+"<\/td><\/tr>"),$.ajax({url:u,type:"GET",data:null,success:function(n){t.after(n);t.parent().find(".table-row-loading."+i).remove();t.addClass("loaded")},error:function(n,i,r){t.html(r)}}))):(r.removeClass("compress").addClass("expand"),$("tr[data-group-id="+i+"]").hide(),t.removeClass("selected"));n.preventDefault()};msys.product.cedoleExpandRow=function(n){var r=$(this),i=r.data("id"),t=$(this).closest("tr"),u="/"+msys.currentLanguage+$("[data-details]").data("details")+"?codiceFondo="+i+"&skipFirstRow=true&t="+(new Date).getTime();r.hasClass("expand")?(r.removeClass("expand").addClass("compress"),t.hasClass("loaded")?(t.addClass("selected"),$("tr[data-group-id="+i+"]").show()):(t.addClass("selected").after('<tr><td colspan="9" class="table-row-loading '+i+'"><span class="loader"><\/span><\/td><\/tr>'),$.ajax({url:u,type:"GET",data:null,success:function(n){t.after(n);t.parent().find(".table-row-loading."+i).remove();t.addClass("loaded")},error:function(n,i,r){t.html(r)}}))):(r.removeClass("compress").addClass("expand"),$("tr[data-group-id="+i+"]").hide(),t.removeClass("selected"));n.preventDefault()};msys.product.initialize=function(){$(document).on("click","button[data-tab-name]",function(){var n,t,i;$(".anima-tab-dropdown > .dropdown-menu > li").find("button").removeClass("active");n=$(this).data("tab-name");$(this).addClass("active");
1url=new URLSearchParams(window.location.search);url.delete("Vista");url.delete("vista");n!=""&&url.set("Vista",n);t=url.toString();i=window.location.pathname+(t===""?"":"?"+t);window.history.pushState({},document.title,i);msys.product.updateResults(n,!1)});$(document).on("click",".anima-filter-refresh-button",function(n){msys.product.filtersReset(!0);n.preventDefault()});$(document).on("click","a[data-row-expander=append]",msys.product.cedoleExpandRow);$(document).on("click","a[data-row-expander=collapse]",function(n){var i=$(this),e=i.data("id"),r=i.parent().parent(),u=r.next(),t=$($(u)).find(".anima-products-detail"),f=$(u).attr("id");$(t).is(":visible")?$(t).slideUp("fast",function(){i.removeClass("compress").addClass("expand");r.removeClass("selected");$("#"+f).hide()}):$("#"+f).show("fast",function(){var n,u;r.addClass("selected");i.removeClass("expand").addClass("compress");n=$(t).attr("data-loaded");n?($(t).slideUp(),$(t).slideDown("fast")):(u="/it"+$("[data-details]").data("details")+"?codiceFondo="+e+"&t="+(new Date).getTime(),$.ajax({url:u,type:"GET",data:null,success:function(n){$(t).attr("data-loaded",!0);$(t).slideUp();$(t).html(n);$(t).slideDown("fast")},error:function(n,i,r){$(t).html(r)}}))});n.preventDefault()});$(document).on("click","a[data-action]",function(){var n=$(this).data("action");msys.product.filterActionDispatcher(n,$(this));msys.product.updateCurrentView()});$(document).on("click","a[data-autocomplete-item-selectable]",function(){msys.product.autoCompleteReset();msys.product.filtersReset();var n=$(this).text();gtm.product.listingFilterSelect(n);$("#nameOrIsin").val(n);msys.product.updateCurrentView()});$(document).on("click","button[data-action=favorite-filter]",function(){var n,t;url=new URLSearchParams(window.location.search);n=Number(url.get("ShowFavoritesOnly"));n===undefined&&(n=1);n===0&&msys.product.filtersReset();n!==1&&gtm.product.listingFilterSelect("fondi_preferiti");$('button[data-action="featured-funds"]').removeClass("selected").attr("aria-pressed",!1);$('button[data-action="favorite-filter"]').toggleClass("selected").attr("aria-pressed",!0);$(".navbar-main .item-favorite a span").toggleClass("selected");url.set("ShowFavoritesOnly",Number(!n));url.delete("MostraFondiInEvidenza");t=window.location.pathname+"?"+url.toString();window.history.pushState({},document.title,t);msys.product.updateCurrentView()});$(document).on("click","button[data-action=featured-funds]",function(){var n,t;url=new URLSearchParams(window.location.search);n=Number(url.get("MostraFondiInEvidenza"));n===undefined&&(n=1);n===0&&msys.product.filtersReset();n!==1&&gtm.product.listingFilterSelect("fondi_in_evidenza");$('button[data-action="favorite-filter"]').removeClass("selected").attr("aria-pressed",!1);$('button[data-action="featured-funds"]').toggleClass("selected").attr("aria-pressed",!0);url.set("MostraFondiInEvidenza",Number(!n));url.delete("ShowFavoritesOnly");t=window.location.pathname+"?"+url.toString();window.history.pushState({},document.title,t);msys.product.updateCurrentView()});$(document).on("click","tr[data-action=link-scheda] td",function(){$(this).find(".anima-favorite-button").length===0&&(location.href=$(this).parent().find(".link-scheda").attr("href"))});$(document).on("click","button[data-action=favorite-toggle]",function(n){n.preventDefault();var t=$(this).data("id"),i=$(this).data("type"),r=this;favoriteManager.isFavoriteFromCookie(t)?(favoriteManager.delFromCookie(t),favoriteManager.shouldSaveToDb()&&favoriteManager.del(t,i,function(n){console.log(n)}),$(r).find("img").attr("src","/Content/Images/svg/heart-off.svg").attr("alt","preferito / favorite: off")):(favoriteManager.addToCookie(t),gtm.product.addFundToFavorites($(this).data("fundname")),favoriteManager.shouldSaveToDb()&&favoriteManager.add(t,i,function(n){console.log(n)}),$(r).find("img").attr("src","/Content/Images/svg/heart-on.svg").attr("alt","preferito / favorite: on"))});$(document).on("click","a[data-sort-field]",function(n){var t=new URLSearchParams(window.location.search),f=t.get("SortField"),r=$(this).data("sort-field"),i=Number(t.get("SortDirection")),u;i=r!==f?0:i!==undefined?i===1?0:1:1;t.set("SortField",r);t.set("SortDirection",i);u=window.location.pathname+"?"+t.toString();window.history.pushState({},document.title,u);msys.product.updateCurrentView();n.preventDefault()});$(document).on("focusout","#nameOrIsin",function(){$("#nameOrIsinAutoComplete").fadeOut()});$("#nameOrIsin").on("keyup paste",msys.debounce(function(n){$("#fundCode").val("");$(".btn-calcola").attr("disabled","disabled");const t=$(n.target).val();t.length>=3?msys.product.autoCompleteFundNames(t,function(n){n&&($("#nameOrIsinAutoComplete").empty(),n.forEac
1h(function(n){var t=$("<a>"),i=$("<li>");$(t).text(n);$(t).attr("data-autocomplete-item-selectable","#nameOrIsin");$(t).attr("href","javascript:void(0)");$(i).addClass("list-group-item");$(i).append(t);$("#nameOrIsinAutoComplete").append(i)}),$("#nameOrIsinAutoComplete").fadeIn())}):t.length===0&&(msys.product.autoCompleteReset(),msys.product.updateCurrentView())},500));$(document).on("keypress","#nameOrIsin",function(n){if(n.keyCode===13){var t=$(this).val();gtm.product.listingFilterSelect(t);msys.product.updateCurrentView()}});$(document).on("click","#nameOrIsin.circle",function(){msys.product.updateCurrentView()})};msys.product.floatThead=function(){$("#resultTable").floatThead()};$(document).ready(function(){$(".product-model").length>0&&(msys.product.initialize(),$("#loader").hide(),msys.initializeYearlyPerformanceTableScroll(),msys.product.floatThead(),$(".navbar-fixed-top").addClass("position-absolute"),msys.notify=msys.notify||{},msys.notify.absolutePosition=!0,msys.product.updateFilterAppareance(),msys.product.setFilterQueryString())});msys.product.managedQueryStringParameters=["NomeFondo","Linee","Sistemi","Categorie","Classi","Cedole","GradiRischio","ESG","SortField","SortDirection","ShowFavoritesOnly","MostraFondiInEvidenza","Vista"];msys.product.findManagedQueryStringParameters=function(n){for(var i,t=0;t<msys.product.managedQueryStringParameters.length;t++)if(i=msys.product.managedQueryStringParameters[t],n.toLowerCase()===i.toLowerCase())return i;return n};msys.product.setFilterQueryString=function(){var t=[],n,i,r,u,f;if($("#filterBarSelection .selected li a").each(function(n,i){var r=$(i).data("parent-root"),u=$(i).data("parent-value");t.push({type:r,value:u})}),t.length>0){for(n=msys.product.getQueryStringObject(),i=0;i<t.length;i++)r=t[i].type,u=t[i].value,n[r]?n[r].indexOf(u.toString())<0&&n[r].push(u):n[r]=[u];if(f="",Object.entries(n).forEach(function([n,t]){for(var i=0;i<t.length;i++)f+="&"+n+"="+t[i]}),f.length>0){let n=window.location.protocol+"//"+window.location.host+window.location.pathname+"?"+f.substr(1);window.history.pushState({path:n},"",n)}}};msys.product.getQueryStringObject=function(){var t;if(location.search.length===0)return{};var e=location.search.substr(1),r=e.split("&"),n={};for(t=0;t<r.length;t++){var u=r[t].split("="),i=msys.product.findManagedQueryStringParameters(u[0].replace(/\[|\]/g,"")),f=decodeURIComponent(u[1]);n[i]?n[i].push(f):n[i]=[f]}return n};msys.sheet=msys.sheet||{};msys.sheet.navPage=0;msys.sheet.navOrder=!1;msys.sheet.servicesUrl={exportExcel:"/api/document/products/performance/exportExcel?codiceFondo=fondo&codiceLingua=lang",exportPDF:"/api/document/products/performance/exportPDF?codiceFondo=fondo&codiceLingua=lang&dataDA=startDate&dataA=endDate",exportQuoteExcel:"/api/document/products/performance/exportQuoteExcel?codiceFondo=fondo&dataInizio=startDate&dataFine=endDate"};msys.sheet.exportToExcel=function(){var n=msys.sheet.servicesUrl.exportExcel;n=n.replace(/lang/g,msys.currentLanguage);n=n.replace(/fondo/g,scheda.fundCode);window.open(n,"Excel")};msys.sheet.exportQuoteToExcel=function(){var n=msys.sheet.servicesUrl.exportQuoteExcel;n=n.replace(/fondo/g,scheda.fundCode);n=n.replace(/startDate/g,$("#dataInizioQuote").datetimepicker("date").format("YYYY-MM-DD"));n=n.replace(/endDate/g,$("#dataFineQuote").datetimepicker("date").format("YYYY-MM-DD"));window.open(n,"Excel")};msys.sheet.exportPDF=function(){var n=msys.sheet.servicesUrl.exportPDF,i,t,r,u;n=n.replace(/lang/g,msys.currentLanguage);n=n.replace(/fondo/g,scheda.fundCode);i=moment(msys.performance.dataRif).subtract("Y",1).format("YYYY-MM-DD");$("#dataInizioPerf input").length>0?(t=$("#dataInizioPerf input").val().split("."),i=t[2]+"-"+t[1]+"-"+t[0]):$("#start-date").length>0&&(i=$("#start-date").datetimepicker("date").format("YYYY-MM-DD"));n=n.replace(/startDate/g,i);r=msys.performance.dataRif;$("#dataFinePerf input")>0?(u=$("#dataFinePerf input").val().split("."),r=u[2]+"-"+u[1]+"-"+t[0]):$("#end-date").length>0&&(r=$("#end-date").datetimepicker("date").format("YYYY-MM-DD"));n=n.replace(/endDate/g,r);window.open(n,"PDF")};msys.sheet.fillQuotazioni=function(){var t=$("#_DetailNav"),n;t.show();n="/"+msys.currentLanguage+"/Funds/_DetailNav?idLanguage="+msys.currentLanguage+"&id="+scheda.fundCode+"&dataInizio="+$("#dataInizioQuote").datetimepicker("date").format("YYYY-MM-DD")+"&dataFine="+$("#dataFineQuote").datetimepicker("date").format("YYYY-MM-DD")+"&numeroPagina="+msys.sheet.navPage+"&lunghezzaPagina=10&order="+msys.sheet.navOrder;msys.sheet.navPage===0?msys.sheet.loadAsync("#_DetailNav",n,!1):msys.sheet.loadAsync("#tbQuotazioni",n,!0)};msys.sheet.loadAsync=function(n,t,i){msys.loadContent(n,t,i,function(){objSpy.scrollspy("refresh")})};msys.sheet.setDataFromYears=function(n){var t=moment(new Date($("#hdDataFineQuote").val())),i=t.subtract(n,"years");$("#dataInizioQuote").data("DateTimePicker").date(new Date(i));$("#dataInizioQuote input").blur()};msys.sheet.setDataFromYearToDate=function(){var n=moment(new Date($("#hdDataFineQuote").val()));$("#dataInizioQuote").data("DateTimePicker").date(new Date(n.year()+"-01-01"));$("#dataInizioQuote input").blur()};msys.sheet.updateTableCheckedCount=function(n){var t=msys.sheet.findCheckboxes(n,!0).length;n==="tbDocLegal"?($("#ndoclegal").html(""),$("#ndoclegal").append(t)):n==="tbDocCommerciale"?($("#ndocCommerciale").html(""),$("#ndocCommerciale").append(t)):n==="tbDocReportCommento"&&($("#ndocReportCommenti").html(""),$("#ndocReportCommenti").append(t))};msys.sheet.resetNavigationNav=function(){msys.sheet.navPage=0;msys.sheet.navOrder=!1};msys.sheet.findCheckboxes=function(n,t){return $("#"+n+" td > input.form-check-input[type='checkbox']"+(t===!0?":checked":""))};$(document).ready(function(){if($("#navbarFondo a").length>0){var n=$("#navbarFondo a").first().attr("href").replace("#","");objSpy=$("body");objSpy.attr("id",n).scrollspy({target:"#navbarFondo",offset:10}).on("load",function(){objSpy.scrollspy("refresh")});$("#dataInizioQuote").datetimepicker({format:formatdatequot,date:new Date($("#hdDataAvvioQuote").val())});$("#dataInizioQuote input").blur(function(){msys.sheet.resetNavigationNav();msys.sheet.fillQuotazioni()});$("#dataFineQuote").datetimepicker({format:formatdatequot,date:new Date($("#hdDataFineQuote").val())});$("#dataFineQuote input").blur(function(){msys.sheet.resetNavigationNav();msys.sheet.fillQuotazioni()});$("#btnBenchmark").click(function(){msys.collapse(".divContentBenchmark",this)});$("#btnMotivoSottoscrizione").click(function(){msys.collapse(".divContentMotivoSottoscrizione",this);$(this).find("i").hasClass("glyphicon-minus")&&gtm.product.readAll(
1)});$("#btnPoliticaGestione").click(function(){msys.collapse(".divContentPoliticaGestione",this)});$("#btnCaricaAltri").click(function(){msys.sheet.navPage+=1;msys.sheet.fillQuotazioni()});$("#contentCollapseQuote").on("hidden.bs.collapse",function(){($("#imgQuoteCollapse")[0].src.indexOf("hidecollapse")||$("#imgQuoteCollapse")[0].src.indexOf("menomobile"))&&($("#imgQuoteCollapse").attr("src","/Content/Images/collapse.png"),$("#imgQuoteCollapseMobile").attr("src","/Content/Images/piumobile.png"))});$("#contentCollapseQuote").on("show.bs.collapse",function(){($("#imgQuoteCollapse")[0].src.indexOf("collapse")||$("#imgQuoteCollapse")[0].src.indexOf("piumobile"))&&($("#imgQuoteCollapse").attr("src","/Content/Images/hidecollapse.png"),$("#imgQuoteCollapseMobile").attr("src","/Content/Images/menomobile.png"))});$("#contentCollapseDocLegal, #contentCollapseDocCommerciale, #contentCollapseDocReportCommento").on("hidden.bs.collapse",function(n){$("a[href*="+n.target.id+"]").find("img").attr("src","/Content/Images/plusDocumentazione.png")});$("#contentCollapseDocLegal, #contentCollapseDocCommerciale, #contentCollapseDocReportCommento").on("show.bs.collapse",function(n){$("a[href*="+n.target.id+"]").find("img").attr("src","/Content/Images/minusDocumentazione.png")});$("#contentCollapseCoupons").on("hidden.bs.collapse",function(){($("#imgCedoleCollapse")[0].src.indexOf("hidecollapse")||$("#imgCedoleCollapse")[0].src.indexOf("menomobile"))&&($("#imgCedoleCollapse").attr("src","/Content/Images/collapse.png"),$("#imgCedoleCollapseMobile").attr("src","/Content/Images/piumobile.png"))});$("#contentCollapseCoupons").on("show.bs.collapse",function(){($("#imgCedoleCollapse")[0].src.indexOf("collapse")||$("#imgCedoleCollapse")[0].src.indexOf("piumobile"))&&($("#imgCedoleCollapse").attr("src","/Content/Images/hidecollapse.png"),$("#imgCedoleCollapseMobile").attr("src","/Content/Images/menomobile.png"))});$("#btnQuoteYTD").click(function(){msys.sheet.resetNavigationNav();msys.sheet.setDataFromYearToDate()});$("#btnQuote1Y").click(function(){msys.sheet.resetNavigationNav();msys.sheet.setDataFromYears(1)});$("#btnQuote3Y").click(function(){msys.sheet.resetNavigationNav();msys.sheet.setDataFromYears(3)});$("#btnQuote5Y").click(function(){msys.sheet.resetNavigationNav();msys.sheet.setDataFromYears(5)});$("#btnQuoteAvvio").click(function(){msys.sheet.resetNavigationNav();$("#dataInizioQuote").data("DateTimePicker").date(new Date($("#hdDataAvvioQuote").val()));$("#dataFineQuote").data("DateTimePicker").date(new Date($("#hdDataFineQuote").val()));$("#dataInizioQuote input").blur();$("#dataFineQuote input").blur()});$("#navbarFondo ul > li").removeClass("active");$("#navbarFondo ul li:first").addClass("active");$(".divContentMotivoSottoscrizione li").addClass("anima-liste");$(".divContentPoliticaGestione li").addClass("anima-liste");$("#docLegaliSelezionaTutti").click(function(){var n="tbDocLegal";msys.sheet.findCheckboxes(n).prop("checked",!0);msys.sheet.updateTableCheckedCount(n)});$("#docLegaliSelezionaNessuno").click(function(){var n="tbDocLegal";msys.sheet.findCheckboxes(n).prop("checked",!1);msys.sheet.updateTableCheckedCount(n)});$("#docsDownloadAll").click(function(){var n=[],t=[],i;$("td > input.form-check-input[type='checkbox']").each(function(i,r){n.push($(r).data("fileurl"));t.push($(r).data("title"))});i=new Date;msys.downloadFiles(n,"Anima_"+i.getTime(),t,function(){console.log("Files downloaded")})});$("#docLegaliDLSelezionati, #docSchedaReportCommentoDLSelezionati").click(function(){var n=[],t=[],i;msys.sheet.findCheckboxes($(this).data("table-name")).filter(function(i,r){$(r).prop("checked")&&(n.push($(r).data("fileurl")),t.push($(r).data("title")));return});i=new Date;msys.downloadFiles(n,"Anima_"+i.getTime(),t,function(){console.log("Files downloaded")})});$("#docReportCommentiSelezionaTutti").click(function(){msys.sheet.findCheckboxes("tbDocCommerciale").prop("checked",!0);msys.sheet.updateTableCheckedCount("tbDocCommerciale")});$("#docReportCommentiSelezionaNessuno").click(function(){msys.sheet.findCheckboxes("tbDocCommerciale").prop("checked",!1);msys.sheet.updateTableCheckedCount("tbDocCommerciale")}
1);$(".form-check-input").click(function(n){var t=$(n.currentTarget).closest("table"),i=$(t)[0].id;msys.sheet.updateTableCheckedCount(i)});scheda.showPerformance===!0&&msys.sheet.loadAsync("#_DetailPerformances","/"+msys.currentLanguage+"/Funds/_DetailPerformances?idLanguage="+msys.currentLanguage+"&id="+scheda.fundCode);scheda.showNavs===!0&&msys.sheet.fillQuotazioni();scheda.showCoupons===!0&&msys.sheet.loadAsync("#_DetailCoupons","/"+msys.currentLanguage+"/Funds/_DetailCoupons?idLanguage="+msys.currentLanguage+"&id="+scheda.fundCode+"&className="+scheda.className);scheda.showPortfolio===!0&&msys.sheet.loadAsync("#_DetailPortfolio","/"+msys.currentLanguage+"/Funds/_DetailPortfolio?idLanguage="+msys.currentLanguage+"&id="+scheda.fundCode+"&isFondoMonetario="+scheda.isFondoMonetario+"&isFondoLongShort="+scheda.isFondoLongShort)}})

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.