PageSourceSearch

https://www.principal.com.my/sites/default/files/js/js_Nnlct2UAJdX…ygg7Ethhc8d8ll1r5fK2hGdRzLuok3f7w7_IEdVWzJg

js principal.com.my collected 2026-10-04 01:40:12 UTC 114,608 bytes, 5 lines download raw bytes

1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
2(function($){Drupal.behaviors.minified_custom={attach:function(context,settings){}};$(document).on('click','#principal_my_aleph_labs_com .faIcon .fa',function(){if($(this).hasClass('iconRotateFa')){$(this).removeClass('iconRotateFa');$(this).parent().parent('.bodyeTf').next('.accordianClick').removeClass('openAccordian');}else{$('#principal_my_aleph_labs_com .faIcon .fa').removeClass('iconRotateFa');$(this).addClass('iconRotateFa');$('.accordianClick').removeClass('openAccordian');$(this).parent().parent('.bodyeTf').next('.accordianClick').addClass('openAccordian');}});$('#principal_my_aleph_labs_com .add2').each(function(){if($(this).text()==',')$(this).text('');});$('#principal_my_aleph_labs_com .add3').each(function(){if($(this).text()==',')$(this).text('');});})(jQuery);;
3$(document).ready(function(){(function(){var outboundUrl="";var modal=document.getElementById('outboundModal');if(!modal)return;document.querySelectorAll(".outbound_trigger").forEach(function(link){link.addEventListener("click",function(e){e.preventDefault();outboundUrl=link.getAttribute("href");outboundTarget=link.getAttribute("target");modal.classList.add("active");});});modal.querySelector(".outbound-close-btn").addEventListener("click",function(){modal.classList.remove("active");});modal.querySelector(".outbound-proceed-btn").addEventListener("click",function(){if(outboundUrl)window.open(outboundUrl,outboundTarget);modal.classList.remove("active");});})();setTimeout(function(){$('.view-notice-more').on('click',function(){$('.path-frontpage .pds-modal .pds-modal-dialog.pds-modal-large').unbind('click');});},500);$('.pds-modal-close-dialog').on('click',function(){$('body').removeClass('modal-open');});$(".view-notice-more").on('click',function(e){e.preventDefault();var id=$(this).attr('id');$("#modal-"+id).modal('show');});$('.pds-modal-close-dialog').on('click',function(){$('.pds-modal-dialog').modal('hide');});$(".notice-icon").on("click",function(e){e.preventDefault();jQuery(this).parent().parent().parent().parent().remove();});function set_cookie(name,value,days){let expires=" ";if(days){const date=new Date();date.setTime(date.getTime()+(days*60*1000));expires="; expires="+date.toUTCString();}document.cookie=name+"="+(value||"")+expires+"; path=/";}function checkBMsgVisibility(){let matchedcookie=[];document.cookie.split(';').forEach((cookie)=>{cookie=cookie.trim();if(cookie.startsWith('bcastmsg')){let name=cookie.split('=')[0];jQuery('#'+name).hide();matchedcookie.push(name);}else jQuery('.custom-my-notice').show();});matchedcookie.forEach((cookieName)=>{$("#"+cookieName).hide();});}function get_cookie(name){const nameEQ=name+"=";const ca=document.cookie.split(';');for(let i=0;i<ca.length;i++){let c=ca[i];while(c.charAt(0)===0)c=c.substring(1,c.length);if(c.indexOf(nameEQ)===0)return c.substring(nameEQ.length,c.length);}return null;}$(".notice-icon").click(function(){var cookiename=$(this).attr('id');set_cookie(cookiename,'true',30);$("#"+cookiename).hide();});checkBMsgVisibility();var selectedOption="";$('#loginForm input').on('change',function(){selectedOption=$('input[name=login-option]:checked','#loginForm').val();$("#next-btn").removeAttr("disabled");$("#next-btn").removeAttr("aria-disabled");$("#next-btn").addClass("pds-button-primary");});$("#next-btn").on('click',function(){if(selectedOption=="i-invest"){$('#i-invest').show();$('#PRS').hide();$('#PRS-statement').hide();$('#PRS-statement-consultant').hide();$('#access-star-club').hide();$('#PDA').hide();$('#AMS').hide();$('#new-uri').hide();$('#UT').hide();}if(selectedOption=="PRS-statement"){$('#PRS-statement').show();$('#PRS-statement-consultant').hide();$('#i-invest').hide();$('#PRS').hide();$('#access-star-club').hide();$('#PDA').hide();$('#AMS').hide();$('#new-uri').hide();$('#UT').hide();}if(selectedOption=="PRS-statement-consultant"){$('#PRS-statement-consultant').show();$('#PRS-statement').hide();$('#i-invest').hide();$('#PRS').hide();$('#access-star-club').hide();$('#PDA').hide();$('#AMS').hide();$('#new-uri').hide();$('#UT').hide();}if(selectedOption=="PRS"){$('#i-invest').hide();$('#PRS').show();$('#PRS-statement').hide();$('#PRS-statement-consultant').hide();$('#access-star-club').hide();$('#PDA').hide();$('#AMS').hide();$('#new-uri').hide();$('#UT').hide();}
3if(selectedOption=="access-star-club"){$('#i-invest').hide();$('#PRS').hide();$('#access-star-club').show();$('#PDA').hide();$('#AMS').hide();$('#new-uri').hide();$('#PRS-statement').hide();$('#PRS-statement-consultant').hide();$('#UT').hide();}if(selectedOption=="PDA"){$('#i-invest').hide();$('#PRS').hide();$('#access-star-club').hide();$('#PDA').show();$('#AMS').hide();$('#new-uri').hide();$('#PRS-statement').hide();$('#PRS-statement-consultant').hide();$('#UT').hide();}if(selectedOption=="AMS"){$('#i-invest').hide();$('#PRS').hide();$('#access-star-club').hide();$('#PDA').hide();$('#AMS').show();$('#new-uri').hide();$('#PRS-statement').hide();$('#PRS-statement-consultant').hide();$('#UT').hide();}if(selectedOption=="new-uri"){$('#i-invest').hide();$('#PRS').hide();$('#access-star-club').hide();$('#new-uri').show();$('#PDA').hide();$('#AMS').hide();$('#PRS-statement').hide();$('#PRS-statement-consultant').hide();$('#UT').hide();}if(selectedOption=="UT"){$('#i-invest').hide();$('#PRS').hide();$('#access-star-club').hide();$('#new-uri').hide();$('#PDA').hide();$('#AMS').hide();$('#PRS-statement').hide();$('#PRS-statement-consultant').hide();$('#UT').show();}});$("#votality-link").on('click',function(){$('#votality-hub').show();});$('.pds-modal-close-dialog').on('click',function(){$("#i-invest").removeAttr("style");$("#PRS").removeAttr("style");$("#access-star-club").removeAttr("style");$("#PDA").removeAttr("style");$("#AMS").removeAttr("style");$("#new-uri").removeAttr("style");$("#UT").removeAttr("style");$("#PRS-statement").removeAttr("style");$("#PRS-statement-consultant").removeAttr("style");$("#votality-hub").removeAttr("style");});$('.chat-with-us').on('click',function(){$('html,body').animate({scrollTop:$('.epf-form-section').offset().top},'slow');});let widthbanner=$('.epf-i-invest-banner').height();$('.epf-i-invest-banner .banner-image-holder img').height(widthbanner);jQuery('#principal_my_aleph_labs_com .accordion-parent-head').click(function(){jQuery('.wrapper-child').hide();jQuery(this).toggleClass('active-p');jQuery('.active-p').parent().find('.acc-body:first').show();if(jQuery(this).hasClass('active-p')){jQuery(this).find('.fa').removeClass('fa-chevron-down').addClass('fa-chevron-up');jQuery(this).parent('.main').find('.wrapper-child').show();}else{jQuery(this).find('.fa').removeClass('fa-chevron-up').addClass('fa-chevron-down');jQuery(this).parent('.main').find('.wrapper-child').hide();}});jQuery('#principal_my_aleph_labs_com .accordion-child-head').click(function(){jQuery('.acc-body').hide();jQuery(this).toggleClass('active-c');if(jQuery(this).hasClass('active-c')){jQuery(this).find('.fa').removeClass('fa-chevron-down').addClass('fa-chevron-up');jQuery(this).next('.acc-body').show();}else{jQuery(this).find('.fa').removeClass('fa-chevron-up').addClass('fa-chevron-down');jQuery(this).next('.acc-body').hide();}});var ua=navigator.userAgent.toLowerCase();var isAndroid=ua.indexOf("android")>-1;var isAppContainer=ua.indexOf("appcontainer")>-1;if(isAndroid&&isAppContainer){jQuery(".midfund").addClass("downloaddoc");console.log("Mobile Browser");}jQuery(document).on("click",".downloaddoc",function(event){event.preventDefault();console.log("inside browser");var newurl=jQuery(this).attr('href');var url=jQuery(this).attr('href');const myArray=url.split("/");myArray.reverse();var incurl=myArray[0];var isProspectus=event.target.href.includes(incurl);var url=isProspectus?newurl:newurl;window.AlipayJSBridge.call("openInBrowser",{url});});if((window.location.origin=="https://blog.principal.co.id"||window.location.origin=="https://test-blog.principal.co.id")&&jQuery('.page-node-type-article-id').length==1){console.log("inside if");window.onload=function(){var N=navigator.appName,ua=navigator.userAgent,tem;var M=ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);if(M&&(tem=ua.match(/version\/([\.\d]+)/i))!=null)M[2]=tem[1];M=M?[M[1],M[2]]:[N,navigator.appVersion,"-?"];var browserName=M[0];var form=document.getElementById("__vtigerWebForm"),inputs=form.elements;form.onsubmit=function(){var required=[],att,val;for(var i=0;i<inputs.length;i++){att=inputs[i].getAttribute("required");val=inputs[i].value;type=inputs[i].type;if(type=="email")if(val!=""){var elemLabel=inputs[i].getAttribute("label");var emailFilter=/^[_/a-zA-Z0-9]+([!"#$%&()*+,./:;<=>?\^_`{|}~-]?[a-zA-Z0-9/_/-])*@[a-zA-Z0-9]+([\_\-\.]?[a-zA-Z0-9]+)*\.([\-\_]?[a-zA-Z0-9])+(\.?[a-zA-Z0-9]+)?$/;var illegalChars=/[\(\)\<\>\,\;\:\"\[\]]/;if(!emailFilter.test(val)){alert("For "+elemLabel+" field please enter valid email address");return false;}else{if(val.match(illegalChars)){alert(elemLabel+" field contains illegal characters");return false;}}}if(att!=null)if(val.replace(/^\s+|\s+$/g,"")=="")required.push(inputs[i].getAttribute("label"));}if(required.length>0){alert("The following fields are required: "+required.join());return false;}var numberTypeInputs=document.querySelectorAll("input[type=number]");for(var i=0;i<numberTypeInputs.length;i++){val=numberTypeInputs[i].value;var elemLabel=numberTypeInputs[i].getAttribute("label");var elemDataType=numberTypeInputs[i].getAttribute("datatype");if(val!=""){if(elemDataType=="double")var numRegex=/^[+-]?\d+(\.\d+)?$/;else var numRegex=/^[+-]?\d+$/;if(!numRegex.test(val)){alert("For "+elemLabel+" field please enter valid number");return false;}}}var dateTypeInputs=document.querySelectorAll("input[type=date]");for(var i=0;i<dateTypeInputs.length;i++){dateVal=dateTypeInputs[i].value;var elemLabel=dateTypeInputs[i].getAttribute("label");if(dateVal!=""){var dateRegex=/^[1-9][0-9]{3}-(0[1-9]|1[0-2]|[1-9]{1})-(0[1-9]|[1-2][0-9]|3[0-1]|[1-9]{1})$/;if(!dateRegex.test(dateVal)){alert("For "+elemLabel+" field please enter valid date in required format");return false;}}}var inputElems=document.getElementsByTagName("input");var totalFileSize=0;for(var i=0;i<inputElems.length;i++)if(inputElems[i].type.toLowerCase()==="file"){var file=inputElems[i].files[0];if(typeof file!=="undefined")var totalFileSize=totalFileSize+file.size;}if(totalFileSize>52428800){alert("Maximum allowed file size including all files is 50M
3B.");return false;}};var trStatus=document.getElementsByName("utmtracking")[0].value;if(trStatus!=0){var queryString=window.location.search;var urlParams=new URLSearchParams(queryString);var utm_source=urlParams.get("utm_source");document.getElementsByName("utm_source")[0].value=utm_source;var utm_medium=urlParams.get("utm_medium");document.getElementsByName("utm_medium")[0].value=utm_medium;var utm_campaign=urlParams.get("utm_campaign");document.getElementsByName("utm_campaign")[0].value=utm_campaign;var utm_content=urlParams.get("utm_content");document.getElementsByName("utm_content")[0].value=utm_content;var utm_term=urlParams.get("utm_term");document.getElementsByName("utm_term")[0].value=utm_term;}};}setTimeout(function(){$('#principal_my_aleph_labs_com.page-node-573656 .pds-tab-list > button:gt(0)').attr('aria-selected',false);$('#principal_my_aleph_labs_com.page-node-573656 .pds-tab-justified > div:gt(1)').attr('hidden',true);jQuery('#edit-field-fund-currency-value-1 option:first').text('Currency');jQuery('#principal_is_aleph_labs_com .principalsea-header .active').removeClass('active');var currurl=window.location.pathname;var val=jQuery('#principal_is_aleph_labs_com .principalsea-header li:has(a[href="'+currurl+'"])').addClass('active');
3if(currurl=="/en/institutional-islamic")jQuery('#principal_is_aleph_labs_com .expanded.dropdown.first').addClass('active');if(currurl=="/en/knowledge-centre")jQuery('#principal_is_aleph_labs_com .expanded.dropdown:eq(1)').addClass('active');if(currurl=="/institutional-islamic")jQuery('#principal_is_aleph_labs_com .expanded.dropdown.first').addClass('active');if(currurl=="/knowledge-centre")jQuery('#principal_is_aleph_labs_com .expanded.dropdown:eq(1)').addClass('active');if(jQuery('#principal_is_aleph_labs_com .expanded.dropdown').hasClass('active'))jQuery('#principal_is_aleph_labs_com #principalsea-search-box').hide();else jQuery('#principal_is_aleph_labs_com #principalsea-search-box').show();jQuery('#principal_sg_aleph_labs_com .principalsea-header .active').removeClass('active');var currurl=window.location.pathname;var val=jQuery('#principal_sg_aleph_labs_com .principalsea-header li:has(a[href="'+currurl+'"])').addClass('active');if(currurl=="/en/institutional-sg")jQuery('#principal_sg_aleph_labs_com .expanded.dropdown:eq(0)').addClass('active');if(currurl=="/institutional-sg")jQuery('#principal_sg_aleph_labs_com .expanded.dropdown:eq(0)').addClass('active');if(jQuery('#principal_sg_aleph_labs_com .expanded.dropdown').hasClass('active'))jQuery('#principal_sg_aleph_labs_com #principalsea-search-box').hide();else jQuery('#principal_sg_aleph_labs_com #principalsea-search-box').show();jQuery('#principal_is_aleph_labs_com .expanded.dropdown.active .dropdown-menu .last').click(function(e){e.stopPropagation();jQuery(this).toggleClass('searchClick');jQuery('#block-exposedformsearch-pagepage-1').toggleClass('showOption');if(jQuery(this).hasClass('searchClick'))jQuery('body').append('<div class="modelpopup"></div>');else jQuery('.modelpopup').remove();});jQuery('#principal_sg_aleph_labs_com .expanded.dropdown.active .dropdown-menu .last').click(function(e){e.stopPropagation();jQuery(this).toggleClass('searchClick');jQuery('#block-exposedformsearch-pagepage-1').toggleClass('showOption');if(jQuery(this).hasClass('searchClick'))jQuery('body').append('<div class="modelpopup"></div>');else jQuery('.modelpopup').remove();});},0);jQuery("#principal_sg_aleph_labs_com .expanded.dropdown ul.dropdown-menu li:nth-child(2)").hide();jQuery("#principal_sg_aleph_labs_com .expanded.dropdown ul.dropdown-menu li:nth-child(2)").addClass("mobileMenuSG");if(jQuery(window).width()>959){jQuery('#principal_is_aleph_labs_com .expanded.dropdown.first').click(function(e){e.preventDefault();jQuery(this).children('ul').show();var v=jQuery(this).find('span').text();
3window.location.href="institutional-islamic";});jQuery('#principal_is_aleph_labs_com .expanded.dropdown:eq(1)').click(function(e){e.preventDefault();jQuery(this).children('ul').show();var v=jQuery(this).find('span').text();window.location.href="knowledge-centre";});jQuery('#principal_is_aleph_labs_com .expanded.dropdown .dropdown-menu').click(function(e){e.stopPropagation();});jQuery("#principal_is_aleph_labs_com .dropdown-menu").wrapInner('<div class="container"> </div>');jQuery('#principal_sg_aleph_labs_com .expanded.dropdown:eq(0)').click(function(e){e.preventDefault();jQuery(this).children('ul').show();var v=jQuery(this).find('span').text();window.location.href="institutional-sg";});jQuery('#principal_sg_aleph_labs_com .expanded.dropdown .dropdown-menu').click(function(e){e.stopPropagation();});jQuery("#principal_sg_aleph_labs_com .dropdown-menu").wrapInner('<div class="container"> </div>');}jQuery('#principal_is_aleph_labs_com #principalsea-search-box').click(function(){jQuery(this).toggleClass('searchClick');});jQuery('#principal_is_aleph_labs_com .principalsea-home-container .toplist ul li:last').addClass('lastFooter');if(jQuery('.btnClass').hasClass('Light'))jQuery('.Light').find('.btn.btn-primary').addClass('btn-ghost-white');if(jQuery('.btnClass').hasClass('Dark'))jQuery('.Dark').find('.btn.btn-primary').removeClass('btn-ghost-white');$(".cslide:nth-child(1)").attr('itemID',1);$(".cslide:nth-child(2)").attr('itemID',2);$('.cslide:first').show();$('.title').click(function(){$('.cslide').hide();$('.title').removeClass('active');var itemID=$(this).attr('itemID');$(this).addClass('active');$('.cslide[itemID="'+itemID+'"]').fadeIn('fast');});setInterval(function(){var $cur=jQuery('a.active');var i=$cur.closest('li').index();$('.cslide:visible').hide();$cur.removeClass('active');if($cur.closest('li').is(':last-child')){$('.cslide').eq(0).fadeIn('fast');$cur.closest('ul').find('li:first-child').find('a.title').addClass('active');}else{$('.cslide').eq(i+1).fadeIn('fast');$cur.closest('li').next().find('a.title').addClass("active");}},6000);if(location.hostname=="www.test.principal.com.my"||location.hostname=="www.principal.com.my"){var url2Process=window.location.pathname;var patharray=url2Process.split('/');if(patharray[2]=='knowledge-centres'){var pathreplace=url2Process.replace(/knowledge-centre/,'knowledgecentre');window.location=pathreplace;}if(jQuery('html').attr('lang')=='en')jQuery('#principal_my_aleph_labs_com .view-display-id-leadership .about-tab2 h2').text('Management Team, Malaysia');}if(location.hostname=="www.dev.principal.th"||location.hostname=="www.test.principal.th"||location.hostname=="www.principal.th"){var url2Process=window.location.pathname;var patharray=url2Process.split('/');if(patharray[1]=='en')jQuery(".expanded.dropdown.last ul.dropdown-menu li:eq(3)").find('a').attr("href",'/en/principalTH-EN.html');}jQuery('.path-fund-listing .principalsea-search-form .date-addon').click(function(){jQuery('.path-fund-listing .principalsea-search-form #edit-field-fund-nav-date-value').focus();});jQuery(".clink").each(function(){var hf=jQuery(this).find("a").attr('href');jQuery(this).prev('a').attr('href',hf);});jQuery(".leadership_id").each(function(){var hf=jQuery(this).find("a").attr('href');jQuery(this).next('a.more_id').attr('href',hf);});jQuery(".views-slideshow-pager-bullets li").on('click',function(){jQuery(".views-slideshow-pager-bullets li").removeClass('bulletAclass');jQuery(this).addClass('bulletAclass');});jQuery(".hero-img, .banner-res-img").each(function(){$this=$(this);$heroImg=$this.find('img');src=$heroImg.attr('src');if($this.css('background-image')==''||$this.css('background-image')=='none'){$this.css('backgroundImage',"url('"+src+"')");$heroImg.remove();}});var widTh=jQuery('.hero-img').width();var slideLength=jQuery('.views_slideshow_cycle_teaser_section').find('.views_slideshow_cycle_slide').length;if(slideLength==1)jQuery('#views_slideshow_cycle_div_front_slide_show-block_1_0').css('width',widTh);jQuery('#principal_my_aleph_labs_com .performanceBenchmark .view-id-performance_and_benchmark .views-field-field-performance-date').hide();jQuery('#principal_my_aleph_labs_com .performanceBenchmark .view-id-performance_and_benchmark #view-field-fund-name-table-column span').text('');jQuery('#principal_my_aleph_labs_com .performanceBenchmark .view-id-performance_and_benchmark #view-field-fund-name-table-column').prepend("<span>"+jQuery('#principal_my_aleph_labs_com .performanceBenchmark .view-id-performance_and_benchmark.view-display-id-attachment_2 .views-field-field-performance-date').text()+"</span><br/>");jQuery('#principal_my_aleph_labs_com .performanceBenchmark .view-display-id-block_1 tbody tr').after(jQuery('#principal_my_aleph_labs_com .performanceBenchmark .view-display-id-block_2 table tr').addClass('benchmarkTR'));jQuery('#principal_my_aleph_labs_com .performanceBenchmark .view-display-id-block_2 table').hide();var date1=jQuery('#principal_my_aleph_labs_com .performanceBenchmark .view-id-performance_and_benchmark.view-display-id-attachment_2 .views-field-field-performance-date .field-content').text();var date2=jQuery('#principal_my_aleph_labs_com .performanceBenchmark .view-id-performance_and_benchmark.view-display-id-attachment_3 .views-field-field-performance-date .field-content').text();if(jQuery('#principal_th_aleph_labs_com  .performanceBenchmark .view-id-th_performance_and_benchmark.view-display-id-block_1 table').length==0)jQuery('#principal_th_aleph_labs_com  .benchPerF').hide();else jQuery('#principal_th_aleph_labs_com  .benchPerF').show();jQuery('#principal_th_aleph_labs_com.page-node-415654 #captcha .panel-heading').text('Check the CAPTCHA BOX to proceed');jQuery('#principal_id_aleph_labs_com.page-node-56176 #captcha .panel-heading').text('Check the CAPTCHA BOX to proceed');jQuery('#principal_th_aleph_labs_com .performanceBenchmark .view-id-th_performance_and_benchmark #view-field-th-fund-name-table-column').prepend("<span>"+jQuery('#principal_th_aleph_labs_com .performanceBenchmark .view-id-th_performance_and_benchmark.view-display-id-attachment_1 .views-field-field-th-fund-performance-date').text()+"</span><br/>");jQuery('#principal_th_aleph_labs_com .performanceBenchmark .view-id-th_performance_and_benchmark.view-display-id-block_1 table tbody tr').after(jQuery('#principal_th_aleph_labs_com .performanceBenchmark .view-id-th_performance_and_benchmark.view-display-id-block_2 table tbody tr').addClass('benchmarkTR'));jQuery('#principal_th_aleph_labs_com .performanceBenchmark .view-id-th_performance_and_benchmark.view-display-id-block_2 table').hide();var date1=jQuery('#principal_th_aleph_labs_com .performanceBenchmark .view-id-th_performance_and_benchmark.view-display-id-attachment_1 .views-field-field-th-fund-performance-date .field-content').text();var date2=jQuery('#principal_th_aleph_labs_com .performanceBenchmark .view-id-th_performance_and_benchmark.view-display-id-attachment_2 .views-field-field-th-fund-performance-date .field-content').text();if(date1==date2){jQuery('#principal_th_aleph_labs_com .benchPerF .benchmarkTR').show();jQuery('#principal_th_aleph_labs_com .performanceBenchmark .view-id-th_performance_and_benchmark.view-display-id-attachment_3').show();}else{jQuery('#principal_th_aleph_labs_com .benchPerF .benchmarkTR').hide();jQuery('#principal_th_aleph_labs_com .performanceBenchmark .view-id-th_performance_and_benchmark.view-display-id-attachment_3').hide();}var fundTab1=$("#principal_th_aleph_labs_com .tabDetails #tab2").height();var fundTab2=$("#principal_th_aleph_labs_com .tabDetails #tab3").height();if(fundTab1>fundTab2)$('#principal_th_aleph_labs_com .tabDetails #tab3').css('height',fundTab1);var midLength=jQuery(".view--my-mid-day-fund-distribution-display table").length;if(jQuery("#principal_my_aleph_labs_com .view--my-mid-day-fund-distribution-display").length==1)if(midLength==0)jQuery("#principal_my_aleph_labs_com .funddistMyl p").hide();else jQuery("#principal_my_aleph_labs_com .funddistMyl p").show();var lngth=$('#principal_th_aleph_labs_com .navHistory .view-empty').length;if(lngth==1)$('#principal_th_aleph_labs_com .navHistory .feed-icons.appendIcon').hide();else $('#principal_th_aleph_labs_com .navHistory .feed-icons.appendIcon').show();var lngth=$('#principal_my_aleph_labs_com .navHistory .view-empty').length;if(lngth==1)$('#principal_my_aleph_labs_com .navHistory .feed-icons.appendIcon').hide();else $('#principal_my_aleph_labs_com .navHistory .feed-icons.appendIcon').show();if($('#principal_id_aleph_labs_com  .performanceBenchmark .view-id-id_performance_and_benchmark.view-display-id-block_1 table').length==0)$('#principal_id_aleph_labs_com  .benchPerF').hide();else $('#principal_id_aleph_labs_com  .benchPerF').show();$('#principal_id_aleph_labs_com .performanceBenchmark .view-id-id_performance_and_benchmark #view-field-id-fund-name-table-column').prepend("<span style='display:block'>"+$('#principal_id_aleph_labs_com .performanceBenchmark .view-id-id_performance_and_benchmark.view-display-id-attachment_1 .views-field-field-id-fund-date').text()+"</span>");$("#principal_id_aleph_labs_com .productcontent-box .tabDetails #tab2").before($("#principal_id_aleph_labs_com .productcontent-box .download-box.col-xs-12"));$("#principal_id_aleph_labs_com .productcontent-box .download-box.col-xs-12").hide;$('.allperformfunds .table-responsive table').each(function(){var fundD
3ate=$(this).find('caption').text();$(this).find('th.views-field-field-id-fund-name').prepend('<span class="fdateID">'+fundDate+'</span>');});var fundDataID=jQuery('.allperformfunds').html();jQuery('#principal_id_aleph_labs_com .principalsea-proddetails-tab #tab4 .tab-content-box').append(fundDataID);jQuery('#principal_id_aleph_labs_com .principalsea-proddetails-tab #tab4 .table-responsive').each(function(){var txt=jQuery(this).prev('a').text();jQuery(this).find('table tbody').before('<tr> <td colspan="9" class="categoryTxt"> '+txt+'</td> </tr>');});var fundDataID=jQuery('#block-ufabblock').html();jQuery('#principal_th_aleph_labs_com .principalsea-proddetails-tab #tab5 .tab-content-box').append(fundDataID);var fundDataIDEN=jQuery('#block-ufabenblock').html();jQuery('#principal_th_aleph_labs_com .principalsea-proddetails-tab #tab5 .tab-content-box').append(fundDataIDEN);$("#principal_th_aleph_labs_com .principalsea-proddetails-tab #tab5 .fundDescription").wrap('<div class="table-responsive"> </div>');jQuery("#principal_sg_aleph_labs_com .tabDetails #tab1").after(jQuery("#principal_sg_aleph_labs_com .download-box.col-xs-12"));jQuery("#principal_sg_aleph_labs_com .download-box.col-xs-12").hide;jQuery("#principal_is_aleph_labs_com .tabDetails #tab1").after(jQuery("#principal_is_aleph_labs_com .download-box.col-xs-12"));jQuery("#principal_is_aleph_labs_com .download-box.col-xs-12").hide;var contentBannerLength=jQuery('.page-node-type-article .block-views-blockarticle-page-block-1 .articledetail-content .views-field-field-video .contentbanner').children().length;if(contentBannerLength==0)jQuery('.page-node-type-article .block-views-blockarticle-page-block-1 .articledetail-content .views-field-field-video .contentbanner').css('margin-bottom',0);if(jQuery('html').attr('lang')=='th'){jQuery('#principal_th_aleph_labs_com .principalsea-overlay .cdb-popup-main-wrapper #block-disclaimerth-2').find('.subheadline').text('คำเตือน');jQuery('#principal_th_aleph_labs_com .principalsea-overlay .cdb-popup-main-wrapper #block-disclaimerth').find('.subheadline').text('คำเตือน');}if(jQuery('html').attr('lang')=='en')jQuery('#principal_th_aleph_labs_com.page-node-type-category-products .THtaxCal a').text('Tax Calculator');if(jQuery('html').attr('lang')=='ms'){jQuery('#principal_my_aleph_labs_com .principalsea-header .mainMenu .dropdown-menu').addClass('msDropDown');jQuery('#principal_my_aleph_labs_com .view-id-knowledge_centre #edit-kc-title').attr('placeholder','Cari');jQuery('#principal_my_aleph_labs_com .view-id-download_centre #edit-kc-title').attr('placeholder','Cari');jQuery('#edit-field-fund-type-target-id option:first').text("Semua");jQuery('#principal_my_aleph_labs_com #edit-field-fund-currency-value option:first').text("Matawang");jQuery('.nav-background-color .nav-legend-container-new .1m').text("1B");jQuery('.nav-background-color .nav-legend-container-new .3m').text("3B");jQuery('.nav-background-color .nav-legend-container-new .6m').text("6B");jQuery('.nav-background-color .nav-legend-container-new .1y').text("1T");jQuery('.nav-background-color .nav-legend-container-new .3y').text("3T");jQuery('.nav-background-color .nav-legend-container-new .5y').text("6T");jQuery('#principal_my_aleph_labs_com .js-form-item-field-fund-category-value-conventional-funds label').contents().filter(function(){return this.nodeType===3;}).remove();jQuery('#principal_my_aleph_labs_com .js-form-item-field-fund-category-value-conventional-funds label input').after('Dana Konvensional');jQuery('#principal_my_aleph_labs_com .form-item-field-fund-category-value-islamic-funds label').contents().filter(function(){return this.nodeType===3;}).remove();jQuery('#principal_my_aleph_labs_com .form-item-field-fund-category-value-islamic-funds label input').after('Dana Patuh Syariah');jQuery('#principal_my_aleph_labs_com .region-bottom-bar .view-id-front_slide_show .linkstyle').text('Ketahui Lebih Lanjut');jQuery('#principal_my_aleph_labs_com.path-knowledgecentre .viewmore a').text('Lihat Lagi');jQuery('#principal_my_aleph_labs_com .principalsea-overlay .cdb-popup-main-wrapper #block-disclaimermy').find('.subheadline').text('Penafian');jQuery('#principal_my_aleph_labs_com .principalsea-overlay .cdb-popup-main-wrapper .overlay-btn-box').find('.labelprimary').text('Saya telah membaca dan bersetuju dengan Terma dan Syarat Principal');jQuery('#principal_my_aleph_labs_com .principalsea-overlay .cdb-popup-main-wrapper .overlay-btn-box .cdb-control
3s').find('.btn-primary').text('Saya setuju');jQuery('#principal_my_aleph_labs_com .principalsea-overlay .cdb-popup-main-wrapper .overlay-btn-box .cdb-controls').find('.btn-secondary').text('Saya tidak bersetuju');jQuery('#principal_my_aleph_labs_com .principalsea-about-container .webform-submission-contact-us-my-form .util-margin-top-30.util-margin-bottom-30 label').text('Periksa KOTAK CAPTCHA untuk meneruskan');jQuery('#principal_my_aleph_labs_com.page-node-type-category-products .THtaxCal a').text('Kalkulator Kewangan');jQuery('#principal_my_aleph_labs_com .navHistory .form-item-field-fund-nav-date-value-min').addClass('msfilter');jQuery('#principal_my_aleph_labs_com .navHistory .form-item-field-fund-nav-date-value-max').addClass('msfilter');jQuery('#principal_my_aleph_labs_com .performanceBenchmark table tbody tr.benchmarkTR .views-field-title').text('Penanda aras');jQuery('#principal_my_aleph_labs_com .navHistory .form-item-field-fund-nav-date-value-max label.control-label').text('Kepada');}jQuery("#principal_th_aleph_labs_com.path-announcements .view-id-announcement select").change(function(){var redirectUrlTH=jQuery(this).find(":selected").val();var announcementYearPathClick=window.location.pathname;var YearPathClick=announcementYearPathClick.slice(1,3);window.location.href="/"+YearPathClick+"/"+redirectUrlTH;});if(jQuery('.announcementYear').length==1){var announcementYearPath=window.location.pathname;var YearPathA=announcementYearPath.slice(4);$('#principal_th_aleph_labs_com.path-announcements .view-id-announcement select').val(YearPathA).attr("selected","selected");}jQuery("#principal_my_aleph_labs_com.path-media-room .media-room-page select").change(function(){var redirectUrlmy=jQuery(this).find(":selected").val();var mediaYearPathClick=window.location.pathname;var YearPathClicks=mediaYearPathClick.split('/');if(YearPathClicks[1]==='en'||YearPathClicks[1]==='ms')window.location.href="/"+YearPathClicks[1]+"/"+redirectUrlmy;else window.location.href="/"+redirectUrlmy;});if(jQuery('.year-selector').length==1){var currentUrl=window.location.href;var redirectUrlmy=jQuery(this).find(":selected").val();if(currentUrl.lastIndexOf('/en/')<0){let mediaroomPath=window.location.pathname;currentUrl=currentUrl.slice(0,currentUrl.indexOf('media-room'));if(redirectUrlmy===undefined)window.location.href=currentUrl+"/en/media-room";else window.location.href=currentUrl+"/en"+"/"+redirectUrlmy;}var mediaYearPath=window.location.pathname;var YearPaths=mediaYearPath.slice(4);$('#principal_my_aleph_labs_com.path-media-room .media-room-page select').val(YearPaths).attr("selected","selected");}if(jQuery('#principal_id_aleph_labs_com .fundDistribution .table').length==0)jQuery('#principal_id_aleph_labs_com .fundDistribution').hide();if(jQuery('#principal_sg_aleph_labs_com .SgfundDistribution .table').length==0)jQuery('#principal_sg_aleph_labs_com .SgfundDistribution').hide();if(jQuery('#principal_th_aleph_labs_com .fundDistributionTH .table').length==1)jQuery('#principal_th_aleph_labs_com .fundDistributionTH').show();jQuery('#principal_th_aleph_labs_com .fundDistributionTH .table-responsive').append('<div class="fundHeader"> </div>');jQuery('#principal_th_aleph_labs_com .fundDistributionTH .view-id-th_fund_distribution_display table tbody tr').each(function(){jQuery(this).find("td").first().prepend("Period ");});if(jQuery('#principal_my_aleph_labs_com .fundDistribution .view-my-fund-distribution-display').length==1)if(jQuery('#principal_my_aleph_labs_com .fundDistribution .view-my-fund-distribution-display .table').length==0)jQuery('#principal_my_aleph_labs_com .fundDistribution').hide();if(jQuery('html').attr('lang')=='ms'){var aFundDistArry=[];jQuery(".funddistMyl table tr td.views-field-field-my-distribution-period-mon").each(function(index){var b=jQuery(this).text().trim().split('-');aFundDistArry.push(b);if(aFundDistArry[index][0]=='Jan'){aFundDistArry[index].splice(0,1,"Jan");jQuery(this).text(aFundDistArry[index].join('-'));}else if(aFundDistArry[index][0]=='Feb'){aFundDistArry[index].splice(0,1,"Feb");jQuery(this).text(aFundDistArry[index].join('-'));}else if(aFundDistArry[index][0]=='Mar'){aFundDistArry[index].splice(0,1,"Mac");jQuery(this).text(aFundDistArry[index].join('-'));}else if(aFundDistArry[index][0]=='Apr'){aFundDistArry[index].splice(0,1,"Apr");jQuery(this).text(aFundDistArry[index].join('-'));}else if(aFundDistArry[index][0]=='May'){aFundDistArry[index].splice(0,1,"Mei");jQuery(this).text(aFundDistArry[index].join('-'));}else if(aFundDistArry[index][0]=='Jun'){aFundDistArry[index].splice(0,1,"Jun");jQuery(this).text(aFundDistArry[index].join('-'));}else if(aFundDistArry[index][0]=='Jul'){aFundDistArry[index].splice(0,1,"Jul");jQuery(this).text(aFundDistArry[index].join('-'));}else if(aFundDistArry[index][0]=='Aug'){aFundDistArry[index].splice(0,1,"Ogos");jQuery(this).text(aFundDistArry[index].join('-'));}else if(aFundDistArry[index][0]=='Sep'){aFundDistArry[index].splice(0,1,"Sept");jQuery(this).text(aFundDistArry[index].join('-'));}else if(aFundDistArry[index][0]=='Oct'){aFundDistArry[index].splice(0,1,"Okt");jQuery(this).text(aFundDistArry[index].join('-'));}else if(aFundDistArry[index][0]=='Nov'){aFundDistArry[index].splice(0,1,"Nov");jQuery(this).text(aFundDistArry[index].join('-'));}else{aFundDistArry[index].splice(0,1,"Dis");jQuery(this).text(aFundDistArry[index].join('-'));}});}
3jQuery('#principal_my_aleph_labs_com.path-fund-listing .fundlist_breadcrumb').append('<span class="middayFundMyl"> * <span class="midDayText"> this indicates mid-day price</span></span>');jQuery('#principal_my_aleph_labs_com .navHistory .view-content').append('<span class="middayFundMylNAV"> * <span class="midDayText">this indicates mid-day price</span></span>');if(jQuery('html').attr('lang')=='ms'){jQuery('#principal_my_aleph_labs_com.path-fund-listing .fundlist_breadcrumb .middayFundMyl .midDayText').text('ini menunjukkan harga pada setengah hari');jQuery('#principal_my_aleph_labs_com .navHistory .view-content .middayFundMylNAV .midDayText').text('ini menunjukkan harga pada setengah hari');}if(jQuery('#principal_my_aleph_labs_com.page-node-type-category-page .Customised.Mandate').length==1)jQuery('#principal_my_aleph_labs_com.page-node-type-category-page .Customised.Mandate a').attr('href','/en/customised-mandate-my');jQuery("#principal_my_aleph_labs_com .articledetailcontent-box .articledetail-content table").wrap('<div class="table-responsive"> </div>');jQuery("#principal_is_aleph_labs_com .articledetailcontent-box .articledetail-content table").wrap('<div class="table-responsive"> </div>');jQuery("#principal_sg_aleph_labs_com .articledetailcontent-box .articledetail-content table").wrap('<div class="table-responsive"> </div>');jQuery("#principal_my_aleph_labs_com.page-node-type-others-page  .principalsea-other-container table").wrap('<div class="table-responsive" style="border:0"> </div>');jQuery("#principal_sg_aleph_labs_com.page-node-type-category-products .principalsea-proddetails-tab table").wrap('<div class="table-responsive"> </div>');jQuery("#principal_is_aleph_labs_com.page-node-type-category-products .principalsea-proddetails-tab table").wrap('<div class="table-responsive"> </div>');jQuery("#principal_sg_aleph_labs_com.page-node-type-category-page  table").wrap('<div class="table-responsive"> </div>');jQuery("#principal_is_aleph_labs_com.page-node-type-category-page table").wrap('<div class="table-responsive"> </div>');jQuery('#principal_th_aleph_labs_com .navHistory input[type="radio"]').change(function(){var radioValue=$("#principal_th_aleph_labs_com .navHistory input[name='view']:checked").val();if("listview"==radioValue){jQuery('#principal_th_aleph_labs_com .navHistory .grpahViewTH').hide();jQuery('#principal_th_aleph_labs_com .navHistory .fundListing').show();}else{jQuery('#principal_th_aleph_labs_com .navHistory .fundListing').hide();jQuery('#principal_th_aleph_labs_com .navHistory .grpahViewTH').show();}});if((location.hostname=="www.dev.principal.co.id"||location.hostname=="www.test.principal.co.id"||location.hostname=="www.principal.co.id")&&jQuery('html').attr('lang')=='en'){jQuery('#principal_id_aleph_labs_com .principalsea-about-container .block-views-blockabout-us-board-of-directors-block .block-title').text('Board of Commissioners');jQuery('#principal_id_aleph_labs_com .principalsea-about-container .view-display-id-leadership .tab-content-box h2').text('Board of Directors');}if((location.hostname=="www.dev.principal.co.id"||location.hostname=="www.test.principal.co.id"||location.hostname=="www.principal.co.id")){var backgroundColor=jQuery('.mobile_app').attr('data-color');jQuery('.mobile_app').parent().parent('body').css('background-color',backgroundColor);jQuery('.mobile_app').css('background-color',backgroundColor);var questionColor=jQuery('.mobile_app').attr('data-question');jQuery('.faqfield-question').css('color',questionColor);}jQuery(document).on('click','#principal_sg_aleph_labs_com .faIcon .fa',function(){if(jQuery(this).hasClass('iconRotateFa')){jQuery(this).removeClass('iconRotateFa');jQuery(this).parent().parent('.bodyeTf').next('.accordianClick').removeClass('openAccordian');}else{jQuery('#principal_my_aleph_labs_com .faIcon .fa').removeClass('iconRotateFa');jQuery(this).addClass('iconRotateFa');jQuery('.accordianClick').removeClass('openAccordian');jQuery(this).parent().parent('.bodyeTf').next('.accordianClick').addClass('openAccordian');}});jQuery("#principal_sg_aleph_labs_com .currencyChangeSG").text('USD');if(jQuery('#principal_my_aleph_labs_com .view-etf-display').length>=1)jQuery('#principal_my_aleph_labs_com .middayFundMylNAV').hide();if(location.hostname=="www.test.principal.th"||location.hostname=="www.principal.th")if(jQuery('html').attr('lang')=='en')jQuery("#principal_th_aleph_labs_com .region-footer6 li:eq( 1 )").find('a').attr('href','https://easyinvest.principal.th/click/OnlineDocAboutCaution_
3EN.aspx');jQuery('#principal_sg_aleph_labs_com .navHistory input[type="radio"]').change(function(){var radioValue=jQuery("#principal_sg_aleph_labs_com .navHistory input[name='view']:checked").val();if("listview"==radioValue){jQuery('#principal_sg_aleph_labs_com .navHistory .grpahViewSG').hide();jQuery('#principal_sg_aleph_labs_com .navHistory .views-element-container').show();}else{jQuery('#principal_sg_aleph_labs_com .navHistory .views-element-container').hide();jQuery('#principal_sg_aleph_labs_com .navHistory .grpahViewSG').show();}});jQuery('#principal_id_aleph_labs_com .navHistory input[type="radio"]').change(function(){var radioValue=jQuery("#principal_id_aleph_labs_com .navHistory input[name='view']:checked").val();if("listview"==radioValue){jQuery('#principal_id_aleph_labs_com .navHistory .grpahViewID').hide();jQuery('#principal_id_aleph_labs_com .navHistory .views-element-container').show();}else{jQuery('#principal_id_aleph_labs_com .navHistory .views-element-container').hide();jQuery('#principal_id_aleph_labs_com .navHistory .grpahViewID').show();}});jQuery('#principal_my_aleph_labs_com.page-node-449504 .others-page .callout.bg-gray-lightest img').click(function(e){e.stopPropagation();var attriLogin=jQuery(this).attr('alt');var str;if(attriLogin=='eInvestor')if(jQuery('html').attr('lang')=='en')str="<div class='loginconatin'>Dear Customers,"+"<p>Please be reminded not to give “CASH” or transfer money to any of our Consultant’s bank account."+"Investors are also reminded not to pre-sign/thumbprint any form relating to their investments."+"Such practices are prohibited and Principal will not be responsible for any loss incurred.</p>"+"Thank you.</div>"+'<div class="loginButton"><a class="btn btn-primary" href="https://portal.principal.com.my/eInvestor/CEWS/CES_Login.aspx">OK</a><button class="cancelLogin btn btn-secondary"> Cancel </button></div>';else str="<div class='loginconatin'>Pelanggan yang dihormati,"+"<p>Pelabur dinasihatkan untuk tidak memberikan “TUNAI” atau memindahkan wang ke mana-mana akaun bank Perunding kami."+"Pelabur juga diingatkan untuk tidak menandatangani / mencetak sebarang bentuk berkaitan pelaburan mereka."+"Amalan sedemikian dilarang dan Principal tidak akan bertanggungjawab atas kerugian yang ditanggung.</p>"+"Terima kasih.</div>"+'<div class="loginButton"><a class="btn btn-primary" href="https://portal.principal.com.my/eInvestor/CEWS/CES_Login.aspx">OK</a><button class="cancelLogin btn btn-secondary"> Cancel </button></div>';else if(attriLogin=='principal online')if(jQuery('html').attr('lang')=='en')str="<div class='loginconatin'>Dear Customers,"+"<p>Please be reminded not to give “CASH” or transfer money to any of our Consultant’s bank account."+"Investors are also reminded not to pre-sign/thumbprint any form relating to their investments."+"Such practices are prohibited and Principal will not be responsible for any loss incurred.</p>"+"Thank you.</div>"+'<div class="loginButton"><a class="btn btn-primary" href="https://online.principal.com.my">OK</a><button class="cancelLogin btn btn-secondary"> Cancel </button></div>';else str="<div class='loginconatin'>Pelanggan yang dihormati,"+"<p>Pelabur dinasihatkan untuk tidak memberikan “TUNAI” atau memindahkan wang ke mana-mana akaun bank Perunding kami."+"Pelabur juga diingatkan untuk tidak menandatangani / mencetak sebarang bentuk berkaitan pelaburan mereka."+"Amalan sedemikian dilarang dan Principal tidak akan bertanggungjawab atas kerugian yang ditanggung.</p>"+"Terima kasih.</div>"+'<div class="loginButton"><a class="btn btn-primary" href="https://online.principal.com.my">OK</a><button class="cancelLogin btn btn-secondary"> Cancel </button></div>';else if(attriLogin=='direct access')if(jQuery('html').attr('lang')=='en')str="<div class='loginconatin'>Dear Authorised Distributors,"+"<p>Please be reminded that you are prohibited from accepting your customers’ investment payment.</p>"+"Thank you.</div>"+'<div class="loginButton"><a class="btn btn-primary" href="https://digital.principal.com.my">OK</a><button class="cancelLogin btn btn-secondary"> Cancel </button></div>';else str="<div class='loginconatin'>Pengedar Sah yang dihormati,"+"<p>Diingatkan bahawa anda dilarang menerima pembayaran pelaburan pelanggan anda.</p>
3"+"Terima kasih.</div>"+'<div class="loginButton"><a class="btn btn-primary" href="https://digital.principal.com.my">OK</a><button class="cancelLogin btn btn-secondary"> Cancel </button></div>';else if(attriLogin=='starclub')if(jQuery('html').attr('lang')=='en')str=" <div class='loginconatin'>Dear Customers,"+"<p>Please be reminded not to give “CASH” or transfer money to any of our Consultant’s bank account."+"Investors are also reminded not to pre-sign/thumbprint any form relating to their investments."+"Such practices are prohibited and Principal will not be responsible for any loss incurred.</p>"+"Thank you.</div>"+'<div class="loginButton"><a class="btn btn-primary" href="https://portal.principal.com.my/eInvestor/CEWS/CES_LogIn.aspx?co=cwa">OK</a><button class="cancelLogin btn btn-secondary"> Cancel </button></div>';else str="<div class='loginconatin'>Pelanggan yang dihormati,"+"<p>Pelabur dinasihatkan untuk tidak memberikan “TUNAI” atau memindahkan wang ke mana-mana akaun bank Perunding kami."+"Pelabur juga diingatkan untuk tidak menandatangani / mencetak sebarang bentuk berkaitan pelaburan mereka."+"Amalan sedemikian dilarang dan Principal tidak akan bertanggungjawab atas kerugian yang ditanggung.</p>"+"Terima kasih.</div>"+'<div class="loginButton"><a class="btn btn-primary" href="https://portal.principal.com.my/eInvestor/CEWS/CES_LogIn.aspx?co=cwa">OK</a><button class="cancelLogin btn btn-secondary"> Cancel </button></div>';else if(jQuery('html').attr('lang')=='en')str=" <div class='loginconatin'>Dear Customers,"+"<p>Please be reminded not to give “CASH” or transfer money to any of our Consultant’s bank account."+"Investors are also reminded not to pre-sign/thumbprint any form relating to their investments."+"Such practices are prohibited and Principal will not be responsible for any loss incurred.</p>"+"Thank you.</div>"+'<div class="loginButton"><a class="btn btn-primary" href="https://secure01.principal.com.my">OK</a><button class="cancelLogin btn btn-secondary"> Cancel </button></div>';else str="<div class='loginconatin'>Pelanggan yang dihormati,"+"<p>Pelabur dinasihatkan untuk tidak memberikan “TUNAI” atau memindahkan wang ke mana-mana akaun bank Perunding kami."+"Pelabur juga diingatkan untuk tidak menandatangani / mencetak sebarang bentuk berkaitan pelaburan mereka."+"Amalan sedemikian dilarang dan Principal tidak akan bertanggungjawab atas kerugian yang ditanggung.</p>"+"Terima kasih.</div>"+'<div class="loginButton"><a class="btn btn-primary" href="https://secure01.principal.com.my">OK</a><button class="cancelLogin btn btn-secondary"> Cancel </button></div>';if(jQuery('html').attr('lang')=='en')strtitle=" Disclaimer ";else strtitle="Penafian";jQuery('body').append('<div class="loginModel" style="background-color: rgba(255,255,255,0.8);top:0;left:0;width:100%;height:100%; z-index:999999;position:fixed;text-align:center"><div class="horizon-overlay-content-item" style="margin-top:6%;text-align:left;"><h2 class="subheadline">'+strtitle+'</h2>'+str+'</div></div>');});var urlCheck;if((window.location.href=="https://www.test.principalislamic.com/en/"))urlCheck=true;else if((window.location.href=="https://www.test.principalislamic.com"))urlCheck=true;else if((window.location.href=="https://www.test.principalislamic.com/en/about-us"))urlCheck=true;else if((window.location.href=="https://www.principalislamic.com"))urlCheck=true;else if((window.location.href=="https://www.principalislamic.com/en/"))urlCheck=true;else if((window.location.href=="https://www.principalislamic.com/en/about-us"))urlCheck=true;else if(jQuery('#principal_is_aleph_labs_com.page-node-type-fund').length==1)urlCheck=true;else if(jQuery('#principal_is_aleph_labs_com.path-fund-listing').length==1)urlCheck=true;else urlCheck=false;if(urlCheck==false)window.addEventListener("scroll",function(event){var top=this.scrollY;if(top>100){jQuery('#block-exposedformsearch-pagepage-1').css('top','99px');jQuery('#principal_is_aleph_labs_com .principalsea-header').css('position','relative');jQuery('#principal_is_aleph_labs_com .dropdown-menu').addClass('sticky-header');jQuery('#principal_is_aleph_labs_com .expanded.dropdown.active .dropdown-menu .first').show();}else{jQuery('#principal_is_aleph_labs_com .principalsea-header').css('position','fixed');jQuery('#principal_is_aleph_labs_com .dropdown-menu').removeClass('sticky-header');jQuery('#principal_is_aleph_labs_com .expanded.dropdown.active .dropdown-menu .first').hide();jQuery('#block-exposedformsearch-pagepage-1').css('top','159px');}},false);
3if(urlCheck==true)window.addEventListener("scroll",function(event){var top=this.scrollY;if(top>100)jQuery('#principal_is_aleph_labs_com .principalsea-header').addClass('bgChnageHomePage');else jQuery('#principal_is_aleph_labs_com .principalsea-header').removeClass('bgChnageHomePage');},false);var urlCheck;if(jQuery('#principal_sg_aleph_labs_com.path-frontpage').length==1)urlCheck=true;else if((window.location.href=="https://www.test.principal.com.sg/en/about-us")||(window.location.href=="https://www.principal.com.sg/en/about-us"))urlCheck=true;else if((window.location.href=="https://www.test.principal.com.sg/about-us")||(window.location.href=="https://www.principal.com.sg/about-us"))urlCheck=true;else if((window.location.href=="https://www.test.principal.com.sg/unit-trustsg")||(window.location.href=="https://www.test.principal.com.sg/unit-trustsg"))urlCheck=true;else if((window.location.href=="https://www.test.principal.com.sg/en/unit-trustsg")||(window.location.href=="https://www.test.principal.com.sg/en/unit-trustsg"))urlCheck=true;else if(window.location.pathname=="/en/site-search")urlCheck=true;else if((window.location.href=="https://www.dev.principal.com.sg/en/knowledge-centre")||(window.location.href=="https://www.test.principal.com.sg/en/knowledge-centre")||(window.location.href=="https://www.principal.com.sg/en/knowledge-centre"))urlCheck=true;else if(jQuery('#principal_sg_aleph_labs_com.page-node-type-fund').length==1)urlCheck=true;else if(jQuery('#principal_sg_aleph_labs_com.path-fund-listing').length==1)urlCheck=true;else urlCheck=false;if(urlCheck==false)window.addEventListener("scroll",function(event){var top=this.scrollY;if(top>100){jQuery('#block-exposedformsearch-pagepage-1').css('top','99px');jQuery('#principal_sg_aleph_labs_com .principalsea-header').css('position','relative');jQuery('#principal_sg_aleph_labs_com .dropdown-menu').addClass('sticky-header');jQuery('#principal_sg_aleph_labs_com .expanded.dropdown.active .dropdown-menu .first').show();}else{jQuery('#principal_sg_aleph_labs_com .principalsea-header').css('position','fixed');jQuery('#principal_sg_aleph_labs_com .dropdown-menu').removeClass('sticky-header');jQuery('#principal_sg_aleph_labs_com .expanded.dropdown.active .dropdown-menu .first').hide();jQuery('#block-exposedformsearch-pagepage-1').css('top','159px');}},false);if(urlCheck==true)window.addEventListener("scroll",function(event){var top=this.scrollY;if(top>100)jQuery('#principal_sg_aleph_labs_com .principalsea-header').addClass('bgChnageHomePage');else jQuery('#principal_sg_aleph_labs_com .principalsea-header').removeClass('bgChnageHomePage');},false);if(jQuery('html').attr('lang')=='en')jQuery('.principalsea-about-container .captcha .panel-heading a').text('Check the CAPTCHA BOX to proceed');if(jQuery('html').attr('lang')=='ms')setTimeout(function(){jQuery('.principalsea-about-container .captcha .panel-heading a').text('Periksa KOTAK CAPTCHA untuk meneruskan');},100);var highestBox=0;jQuery('.articleBlog').each(function(){if(jQuery(this).height()>highestBox)highestBox=jQuery(this).height();});jQuery('.articleBlog').height(highestBox);jQuery(document).on('click','.cancelLogin',function(){jQuery('.loginModel').hide();setTimeout(function(){jQuery('.loginModel').remove();},100);});jQuery('#test_blog_principal_co_id #views-exposed-form-article-blogs-page-3').attr('action','/tag/investasi-syariah');jQuery('#blog_principal_co_id #views-exposed-form-article-blogs-page-3').attr('action','/tag/investasi-syariah');if(jQuery(window).width()<992){console.log(3);jQuery('#principalsea-search-box').addClass("mobileSearch");jQuery('.mobileSearch').on('click',function(){console.log("mobile search");});}if(jQuery('#principal_my_aleph_labs_com.page-node-type-fund .unitSplitHistoryCnt table').length==0)jQuery('#principal_my_aleph_labs_com.page-node-type-fund .unitSplitHistory').hide();else jQuery('#principal_my_aleph_labs_com.page-node-type-fund .unitSplitHistory').show();setTimeout(function(){if(typeof jQuery.fn.lightSlider!=='undefined')jQuery(".content-slider").lightSlider({loop:false,keyPress:true,pager:false,item:3,responsive:[{breakpoint:769,settings:{item:2}},{breakpoint:450,settings:{item:1}}]});},0);jQuery(document).on("click",'.highcharts-button',function(){jQuery('.highcharts-button').removeClass('highcharts-button-pressed').addClass('highcharts-button-normal');jQuery(this).addClass('highcharts-button-pressed');});jQuery("#principal_th_aleph_labs_com .th-hero-background .btn.btn-default").click(function(e){jQuery('html, body').animate({scrollTop:jQuery("#block-webform-2").offset().top-150},2000);});
3if(jQuery('#principal_my_aleph_labs_com.path-fund-listing #edit-field-epf-mis-value').is(':checked')==false){var searchedString='&field_epf_mis_value=0';jQuery("#principal_my_aleph_labs_com.path-fund-listing li.pager__item").each(function(){var hf=jQuery(this).find("a").attr('href');if(hf.indexOf(searchedString)!=-1){var searchValue=hf.replace(searchedString,'');jQuery(this).find('a').attr('href',searchValue);}});}$('.nav-tabs-about-us').css('margin-top',function(el){val=parseInt($(this).height());return -Math.abs(val);});$('.JS__action-calculate-submit').on('click',function(e){e.preventDefault();var _balance=$('input[name="calculate_balance"]').val(),_age=$('select[name="calculate_age"] option:selected').val();if(_balance!=""&&_age!="")$.ajax({type:"POST",contentType:"application/json; charset=utf-8",url:window.location.origin+"/cpam/calculate/post?_format=json",data:JSON.stringify({"age":_age,"balance":_balance}),dataType:"json",success:function(result){console.log(result);if(result.code==0){$('.JS__message-calculate').html(result.message+'<span class="red">(NOT ELIGIBLE)</span>');$('input[name="calculate_result"]').val('');}else{$('input[name="calculate_result"]').val(result.data.result.amount);$('.JS__message-calculate').html(result.message+'<span class="red green" style="color: #009C91;">(ELIGIBLE)</span>');}}});});if(jQuery('.adminimal-admin-toolbar').length==0||jQuery('.user-logged-in').length==0)if(jQuery('.owl-carousel').length)if(jQuery('.owl-item').length==1){console.log("OWL -ITEM",jQuery('.owl-item').length);var owl=jQuery(".owl-carousel").data('owlCarousel');autoPlay:false;jQuery('.owl-carousel').owlCarousel({rewindNav:false,rewindSpeed:0});}jQuery('#principal_id_aleph_labs_com fieldset.js-form-wrapper').append('<span class="clearAllId">Clear all</span>');jQuery('.clearAllId').on('click',function(){jQuery('#principal_id_aleph_labs_com .form-checkbox').prop('checked',false);});jQuery('#principal_id_aleph_labs_com.page-node-type-article-id #edit-tid--wrapper.js-form-wrapper').append('<span class="clearAllIdArticle">Clear all</span>');jQuery('.clearAllIdArticle').on('click',function(){jQuery('#principal_id_aleph_labs_com.page-node-type-article-id .form-checkbox').prop('checked',false);});jQuery('#test_blog_principal_co_id.path-tag fieldset.js-form-wrapper').append('<span class="clearAllId">Clear all</span>');jQuery('.clearAllId').on('click',function(){jQuery('#test_blog_principal_co_id .form-checkbox').prop('checked',false);});jQuery('#test_blog_principal_co_id.page-node-type-article-id #edit-tid--wrapper.js-form-wrapper').append('<span class="clearAllIdArticle">Clear all</span>');jQuery('.clearAllIdArticle').on('click',function(){jQuery('#test_blog_principal_co_id.page-node-type-article-id .form-checkbox').prop('checked',false);});jQuery('#blog_principal_co_id fieldset.js-form-wrapper').not('#blog_principal_co_id.page-node-type-article-id').append('<span class="clearAllId">Hapus Semua</span>');jQuery('.clearAllId').on('click',function(){jQuery('#blog_principal_co_id .form-checkbox').prop('checked',false);});jQuery('#blog_principal_co_id.page-node-type-article-id #edit-tid--wrapper.js-form-wrapper').append('<span class="clearAllIdArticle">Hapus Semua</span>');jQuery('.clearAllIdArticle').on('click',function(){jQuery('#blog_principal_co_id.page-node-type-article-id .form-checkbox').prop('checked',false);});jQuery('#principal_id_aleph_labs_com.page-node-type-article-id .fieldset-legend').text('Other Topics');jQuery('#principal_id_aleph_labs_com.page-node-type-article-id .button.js-form-submit').text('Read More');jQuery('#principal_id_aleph_labs_com.page-node-type-article-id .fieldset-legend').text('Other Topics');jQuery('#principal_id_aleph_labs_com.page-node-type-article-id .button.js-form-submit').text('Read More');if(jQuery('html').attr('lang')=='id'){jQuery('#test_blog_principal_co_id .articleViewID a').text('Baca Selengkapnya');jQuery('#test_blog_principal_co_id .pager__item a').text('Artikel Lainnya');jQuery('#test_blog_principal_co_id .fieldset-legend').text('Saring Artikel');jQuery('#test_blog_principal_co_id.path-tag .clearAllId').text('Hapus Semua');jQuery('#test_blog_principal_co_id .button.js-form-submit').text('Terapkan');jQuery('#test_blog_principal_co_id.page-node-type-article-id .fieldset-legend').text('Topik Lainnya');jQuery('#test_blog_principal_co_id.page-node-type-article-id .button.js-form-submit').text('Baca Selengkapnya');jQuery('#test_blog_principal_co_id.page-node-type-article-id .clearAllIdArticle').text('Hapus semua');jQuery('#blog_principal_co_id .articleViewID a').text('Baca Selengkapnya');jQuery('#blog_principal_co_id .pager__item a').text('Artikel Lainnya');jQuery('#blog_principal_co_id .fieldset-legend').text('Saring Artikel');jQuery('#blog_principal_co_id .clearAllId').text('Hapus Semua');jQuery('#blog_principal_co_id .button.js-form-submit').text('Terapkan');jQuery('#blog_principal_co_id.page-node-type-article-id .fieldset-legend').text('Topik Lainnya');jQuery('#blog_principal_co_id.page-node-type-article-id .button.js-form-submit').text('Baca Selengkapnya');jQuery('#blog_principal_co_id.page-node-type-article-id .clearAllIdArticle').text('Hapus semua');}jQuery('#principal_my_aleph_labs_com .msDropDown li a').each(function(){if(jQuery(this).attr('href')=='/en/goal-my.html')jQuery(this).attr('href','/ms/goal-my.html');});jQuery('#principal_id_aleph_labs_com.page-node-459688 .navbar-right .en a').attr('href','/id/principalapp');if(jQuery(window).width()<959){$("ul.menu.menu--malaysia-menu.nav").prepend("<li class='last font-weight-bold text-primary'>For Individuals</li>");if(jQuery('.filterHeader').length<1){jQuery('#principal_id_aleph_labs_com #block-hajimudaheadercontent').append('<div class="container filterHeader">Filter Action</div>');jQuery('#test_blog_principal_co_id #block-hajimudaheadercontent').append('<div class="container filterHeader">Filter Action</div>');jQuery('#blog_principal_co_id #block-hajimudaheadercontent').append('<div class="container filterHeader">Saring Artikel</div>');}jQuery('#principal_id_aleph_labs_com .fieldset-legend').text('Select');jQuery('#test_blog_principal_co_id .fieldset-legend').text('Select');jQuery('#blog_principal_co_id .fieldset-legend').text('Select');jQuery('#principal_id_aleph_labs_com .fieldset-legend').click(function(){jQuery('#principal_id_aleph_labs_com .fieldset-wrapper').toggle();jQuery('#principal_id_aleph_labs_com .button').toggle();jQuery('#principal_id_aleph_labs_com .clearAllId').toggle();});jQuery('#test_blog_principal_co_id .fieldset-legend').click(function(){jQuery('#test_blog_principal_co_id .fieldset-wrapper').toggle();jQuery('#test_blog_principal_co_id .button').toggle();jQuery('#test_blog_principal_co_id.path-tag .clearAllId').toggle();});jQuery('#blog_principal_co_id .fieldset-legend').click(function(){jQuery('#blog_principal_co_id .fieldset-wrapper').toggle();jQuery('#blog_principal_co_id .button').toggle();jQuery('#blog_principal_co_id .clearAllId').toggle();});}else jQuery('.filterHeader').remove();jQuery(window).resize(function(){if(jQuery(window).width()<960)jQuery('.heightAttri').attr('height','90');else jQuery('.heightAttri').attr('height','50');if(jQuery(window).width()>959)jQuery('#principal_is_aleph_labs_com .expanded.dropdown').click(function(e){e.stopPropagation();jQuery(this).children('ul').show();var v=jQuery(this).find('a').attr('href');window.location.href=v;});if(jQuery(window).width()<959){if(jQuery('.filterHeader').length<1)jQuery('#principal_id_aleph_labs_com #block-hajimudaheadercontent').append('<div class="container filterHeader">Filter Article</div>');jQuery('#principal_id_aleph_labs_com .fieldset-legend').text('Select');jQuery('#principal_id_aleph_labs_com .fieldset-legend').click(function(){jQuery('#principal_id_aleph_labs_com .fieldset-wrapper').toggle();jQuery('#principal_id_aleph_labs_com .button').toggle();});}});jQuery('#test_blog_principal_co_id .logo.navbar-btn.pull-left').click(function(e){e.preventDefault();window.location.href="https://www.test.principal.co.id/id/";});jQuery('#blog_principal_co_id .logo.navbar-btn.pull-left').click(function(e){e.preventDefault();window.location.href="https://www.principal.co.id/id/";});});(function(){if(window.__pseaMyHeaderMenuBound)return;window.__pseaMyHeaderMenuBound=true;document.addEventListener('click',function(e){var link=e.target.closest('#principal_my_aleph_labs_com .principalsea-header .expanded.dropdown > .dropdown-toggle, #principal_my_aleph_labs_com .principalsea-header .expanded.dropdown > a');if(!link)return;var item=link.closest('.expanded.dropdown');var menu=item?item.querySelector(':scope > .dropdown-menu'):null;if(!item||!menu)return;e.preventDefault();e.stopPropagation();var all=document.querySelectorAll('#principal_my_aleph_labs_com .principalsea-header .expanded.dropdown');var isOpen=item.classList.contains('pds-openMenu');all.forEach(function(el){el.classList.remove('pds-openMenu');var sub=el.querySelector(':scope > .dropdown-menu');if(sub)sub.style.display='none';});if(!isOpen){item.classList.add('pds-openMenu');if(window.innerWidth>1120){menu.style.display='flex';if(item.closest('.menu--malaysia-menu')){var columnNo=0,pos=0;
3Array.from(menu.children).forEach(function(li){if(li.classList.contains('first')||li.classList.contains('last'))return;if(li.classList.contains('spanTxt'))if(li.classList.contains('sustainable-investing-title'))pos++;else{columnNo++;pos=0;}pos++;li.style.gridArea=pos+'/'+columnNo;});if(columnNo>1)menu.style.display='grid';}}else menu.style.display='block';}},true);})();function close_pop(){jQuery('#block-popupmessaget, #block-popupmessageth .backdrop, #block-popupmessageth .box').animate({'opacity':'0'},300,'linear',function(){jQuery('#block-popupmessaget,#block-popupmessageth .backdrop, #block-popupmessageth .box').css('display','none');jQuery('#block-popupmessaget').css('display','none');});setCookie('cookiesAlertBoxClosed',true,365);return false;}function getCookie(c_name){var c_value=document.cookie;var c_start=c_value.indexOf(" "+c_name+"=");if(c_start==-1)c_start=c_value.indexOf(c_name+"=");if(c_start==-1)c_value=null;else{c_start=c_value.indexOf("=",c_start)+1;var c_end=c_value.indexOf(";",c_start);if(c_end==-1)c_end=c_value.length;c_value=unescape(c_value.substring(c_start,c_end));}return c_value;}function setCookie(c_name,value,exdays){var exdate=new Date();var pathNme=window.location.pathname;exdate.setDate(exdate.getDate()+exdays);var c_value=escape(value)+((exdays==null)?"":"; expires="+exdate.toUTCString());document.cookie=c_name+"="+c_value+'; path=/';}window.onload=function(){jQuery('#principal_is_aleph_labs_com .principalsea-header .active').removeClass('active');var currurl=window.location.pathname;var val=jQuery('#principal_is_aleph_labs_com .principalsea-header li:has(a[href="'+currurl+'"])').addClass('active');setTimeout(function(){if(window.location.href=='https://www.test.principalislamic.com/en/institutional-islam
3ic')jQuery('#principal_is_aleph_labs_com .principalsea-header .expanded.dropdown.first').addClass('active');if(jQuery('#principal_is_aleph_labs_com .expanded.dropdown').hasClass('active'))jQuery('#principal_is_aleph_labs_com #principalsea-search-box').hide();else jQuery('#principal_is_aleph_labs_com #principalsea-search-box').show();},0);if(jQuery('html').attr('lang')=='ms'){jQuery('#principal_my_aleph_labs_com  #views-exposed-form-etf-display-block-1 .form-item-field-fund-nav-date-etf-max label').text('Kepada');jQuery('#principal_my_aleph_labs_com .navHistory .form-item-field-fund-nav-date-value-max label.control-label').text('Kepada');jQuery('.principalsea-about-container .captcha .panel-heading a').text('Periksa KOTAK CAPTCHA untuk meneruskan');}if(window.location.href=="https://www.test.principal.com.my/en/new-investor"||window.location.href=="https://www.principal.com.my/en/new-investor")jQuery("head").append("<script>gtag('event', 'conversion', {'send_to': 'AW-628972651/GsJzCKe5vdMBEOu49asC'});</script>");if(window.location.href=="https://www.principal.com.my/en/epfiinvest"||window.location.href=="https://www.test.principal.com.my/en/epfiinvest")jQuery("head").append("<script>gtag('event', 'conversion', {'send_to': 'AW-628972651/lXJWCLyAqdcBEOu49asC'});</script>");if(window.location.href=="https://www.test.principal.com.my/en/i-invest-one-year-anniversary"||window.location.href=="https://www.principal.com.my/en/i-invest-one-year-anniversary")jQuery("head").append("<script>gtag('event', 'conversion', {'send_to': 'AW-628972651/7N5LCPn4qNcBEOu49asC'});</script>");};function ieDisclaimerCookie(){jQuery('.ieDisclaimer').hide();setCookie('ieDisclaimerA',true);return false;}$(window).on("load",function(){if(!getCookie('cookiesAlertBoxClosed'))window.setTimeout(function(){jQuery('#block-popupmessageth').show();jQuery('#block-popupmessageth .popupbox').show();jQuery('#block-popupmessageth .popupbox').ready(function(){jQuery('#block-popupmessageth .backdrop, #block-popupmessageth .box').animate({'opacity':'.50'},300,'linear');jQuery('#block-popupmessageth .box').animate({'opacity':'1.00'},300,'linear');jQuery('#block-popupmessageth,#block-popupmessageth .backdrop, #block-popupmessageth .box').css('display','block');});jQuery('#block-popupmessageth .closePopup').click(function(){close_pop();jQuery('#block-popupmessageth').hide();});},500);jQuery('.nav.navbar-nav .language-link').click(function(){document.cookie="ieDisclaimerA=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";});if(!getCookie('ieDisclaimerA'))jQuery('.ieDisclaimer').show();else ieDisclaimerCookie();jQuery('.ieDisclaimer .fa-times').click(function(){ieDisclaimerCookie();});window.setTimeout(function(){ieDisclaimerCookie();},15000);$('.learn-more-modal').on('click',function(){$(this).parents('.learn-more-modal-parent').children('.modal-body').addClass('display-block');$('.modal-overlay').show();});$('.modal-overlay').on('click',function(){$('.modal-overlay').hide();$('.modal-body').removeClass('display-block');});$('.modal-body .modal-close').on('click',function(){$(this).parents('.modal-body').removeClass('display-block');$('.modal-overlay').hide();});if(Boolean(sessionStorage.getItem('broadcast-message-block')))$('.disclaimer-container').hide();else setInterval(function(){if(!$('.modal-body').hasClass('display-block'))$('.disclaimer-container').hide();},15000);$('.disclaimer-container .dismiss-btn').click(function(e){$(this).parents('.disclaimer-container').hide();e.stopPropagation();sessionStorage.setItem('broadcast-message-block',true,1);return false;});$('.disclaimer-popup .disclaimer-container').each(function(){if($(this).is(':hidden'))$(this).parents('.block-popup-message').hide();});if($('.esg-banner-section .pds-fullWidthImg-img').height()>=$('.esg-banner-section .pds-hero-content-container').height()){$('.esg-banner-section .pds-fullWidthImg-img').height('auto');$('.esg-banner-section').height($('.esg-banner-section .pds-fullWidthImg-img').height());}else{$('.esg-banner-section').height($('.esg-banner-section .pds-hero-content-container').height());$('.esg-banner-section .pds-fullWidthImg-img').height($('.esg-banner-section .pds-hero-content-container').height());}$(window).resize(function(){if($('.esg-banner-section .pds-fullWidthImg-img').height()>=$('.esg-banner-section .pds-hero-content-container').height()){$('.esg-banner-section .pds-fullWidthImg-img').height('auto');$('.esg-banner-section').height($('.esg-banner-section .pds-fullWidthImg-img').height());}else{$('.esg-banner-section').height($('.esg-banner-section .pds-hero-content-container').height());$('.esg-banner-section .pds-fullWidthImg-img').height($('.esg-banner-section .pds-hero-content-container').height());}});});setTimeout(function(){$(".page-node-type-fund #nav-moment-chart-my select").css("opacity",1);},5000);;
4jQuery(document).ready(function(){jQuery('.faqfield-question').click(function(){jQuery('.mobile-app-question').removeClass('mobile-app-question');jQuery(this).addClass('mobile-app-question');jQuery('.mobile-app-block').removeClass('mobile-app-block');jQuery(this).next('.faqfield-answer').addClass("mobile-app-block");});if((location.hostname=="www.dev.principal.co.id"||location.hostname=="www.test.principal.co.id"||location.hostname=="www.principal.co.id")){var backgroundColor=jQuery('.mobile_app').attr('data-color');jQuery('.mobile_app').parent().parent('body').css('background-color',backgroundColor);jQuery('.mobile_app').css('background-color',backgroundColor);var questionColor=jQuery('.mobile_app').attr('data-question');jQuery('.faqfield-question').css('color',questionColor);}});;
5(function($){Drupal.behaviors.navigationDrupal={attach:function(context,settings){$(document).off('click.pdsPrincipalMyMenu').on('click.pdsPrincipalMyMenu','#principal_my_aleph_labs_com .principalsea-header .expanded.dropdown',function(e){var $item=$(this);var $menu=$item.children('.dropdown-menu');if(!$menu.length)return;e.preventDefault();e.stopPropagation();if($item.hasClass('pds-openMenu')){$item.removeClass('pds-openMenu');$menu.hide();return;}$('#principal_my_aleph_labs_com .principalsea-header .expanded.dropdown').removeClass('pds-openMenu').children('.dropdown-menu').hide();$item.addClass('pds-openMenu');$menu.css('display',$(window).width()>1120?'flex':'block');});$('#principalsea-search-box',context).click(function(e){$('.principalsea-global-search').toggle();console.log("click on search icon12");e.stopPropagation();console.log("click on search icon");$('.dropdown-menu').hide();setTimeout(function(){$('#edit-combine').focus();}
5,0);if($(window).width()<992){$('body').removeClass('pds-navigationDrupal-overflow-hidden');$('body').toggleClass('pds-navigationDrupal-overflow-hidden-search');console.log("inside 992");$('.principalsea-navbar').hide();}$('.dropdown-menu').css('display','none');$('.expanded.dropdown').removeClass('pds-openMenu');$('.principalsea-global-search').toggle();$("#block-exposedformsearch-pagepage-1").toggle();$('.pds-navigationDrupal-menu-icon').removeClass('pds-navigationDrupal-menu-icon-open');$('.pds-navigationDrupal-search-icon').toggleClass('pds-navigationDrupal-search-icon-open');});$(document).ready(function(){$(window).load(function(){$('#block-goinvestsavefunds').show();$('#block-investfeatureblock').hide();$('#block-views-block-top-ut-funds-malaysia-block-7').hide();});$('.pds-tab .pds-tab-button').on('click',function(){console.log($(this).text());if($(this).text()==='Save'){$('#block-goinvestsavefunds').show();$('#block-investfeatureblock').hide();$('#block-views-block-top-ut-funds-malaysia-block-7').hide();}if($(this).text()==='Retire'){$('#block-views-block-top-ut-funds-malaysia-block-7').show();$('#block-goinvestsavefunds').hide();$('#block-investfeatureblock').hide();}if($(this).text()==='Invest'){$('#block-goinvestsavefunds').hide();$('#block-views-block-top-ut-funds-malaysia-block-7').hide();$('#block-investfeatureblock').show();}});if($('body').hasClass('page-node-type-fund'))$(document).ajaxComplete(function(){let flg=0;$(".nav-background-color .hasDatepicker").attr("autocomplete","off");$('#principal_my_aleph_labs_com .principalsea-header .expanded.dropdown').click(function(e){console.log(23);e.stopPropagation();$('.principalsea-global-search').hide();$('.shareIcon').removeClass('shareIconFlex');$('.pds-navigationDrupal-search-icon').removeClass('pds-navigationDrupal-search-icon-open');if($(this).hasClass('pds-openMenu')){console.log("if");$('.expanded.dropdown').removeClass('pds-openMenu');$('.dropdown-menu').hide();$(this).find('.dropdown-menu').css('display','none');}else{console.log("inside else");$('.expanded.dropdown').removeClass('pds-openMenu');$(this).addClass('pds-openMenu');$('.dropdown-menu').hide();$(this).find('.dropdown-menu').css('display','flex');let columnNo=0,pos=0;if($(this).parents('.menu--malaysia-menu').length){$(this).find(".dropdown-menu").children("li").each(function(){if(!($(this).hasClass("first")||$(this).hasClass("last"))){if($(this).hasClass("spanTxt"))if(($(this).hasClass("sustainable-investing-title")))pos++;else{columnNo++;pos=0;}pos++;$(this).css("grid-area",pos+"/"+columnNo);}});if(columnNo>1&&$(window).width()>1120){$(this).find(".dropdown-menu").css("display","grid");if(flg==0){flg=1;$(this).find(".dropdown-menu").children("li").children("a").each(function(){if($(this).parent()[0].className!='last'){let anchorWidth=$(this).width();$(this).width(anchorWidth+20);if($(this).attr('href')=='/invest-online'&&$('html').attr('lang')=='ms')$(this).width(460);;}});}}}}});});else{let flg=0;$(".nav-background-color .hasDatepicker").attr("autocomplete","off");$('#principal_my_aleph_labs_com .principalsea-header .expanded.dropdown').click(function(e){console.log(23);e.stopPropagation();$('.principalsea-global-search').hide();$('.shareIcon').removeClass('shareIconFlex');$('.pds-navigationDrupal-search-icon').removeClass('pds-navigationDrupal-search-icon-open');if($(this).hasClass('pds-openMenu')){console.log("if");$('.expanded.dropdown').removeClass('pds-openMenu');$('.dropdown-menu').hide();$(this).find('.dropdown-menu').css('display','none');}else{console.log("inside else");$('.expanded.dropdown').removeClass('pds-openMenu');$(this).addClass('pds-openMenu');$('.dropdown-menu').hide();$(this).find('.dropdown-menu').css('display','flex');let columnNo=0,pos=0;if($(this).parents('.menu--malaysia-menu').length){$(this).find(".dropdown-menu").children("li").each(function(){if(!($(this).hasClass("first")||$(this).hasClass("last"))){if($(this).hasClass("spanTxt"))if(($(this).hasClass("sustainable-investing-title")))pos++;else{columnNo++;pos=0;}pos++;$(this).css("grid-area",pos+"/"+columnNo);}});if(columnNo>1&&$(window).width()>
51120){$(this).find(".dropdown-menu").css("display","grid");if(flg==0){flg=1;$(this).find(".dropdown-menu").children("li").children("a").each(function(){if($(this).parent()[0].className!='last'){let anchorWidth=$(this).width();$(this).width(anchorWidth+20);if($(this).attr('href')=='/invest-online'&&$('html').attr('lang')=='ms')$(this).width(460);;}});}}}}});}function Showmorebutton(){if($('.button')[0])$('.js-pager__items.pager .button').on('click',function(event){setTimeout(function(){$('.pds-description').each(function(){let stripText=$(this).text();$(this).text(stripText);});let carouselHeight=0;$('.media-cards-holder .carousel-holder').each(function(){if($(this).height()>carouselHeight)carouselHeight=$(this).height();});$('.media-cards-holder .carousel-holder').height(carouselHeight);Showmorebutton();},3000);});}Showmorebutton();$('.pds-description').each(function(){let stripText=$(this).text();$(this).text(stripText);});let carouselHeight=0;$('.media-cards-holder .carousel-holder').each(function(){if($(this).height()>carouselHeight)carouselHeight=$(this).height();});$('.media-cards-holder .carousel-holder').height(carouselHeight);if($(window).width()>992)$(document).click(function(){console.log('document');$('.expanded.dropdown').removeClass('pds-openMenu');$('.dropdown-menu').hide();$('.shareIcon').removeClass('shareIconFlex');$('.expanded.dropdown').find('.dropdown-menu').css('display','none');$('.pds-navigationDrupal-search-icon').removeClass('pds-navigationDrupal-search-icon-open');$('.principalsea-global-search').hide();});$('#principalsea-search-box').removeClass("mobileSearch");$('.principalsea-header .dropdown-menu').click(function(e){console.log("drop");e.stopPropagation();});$('.pds-navigationDrupal-share-icon').click(function(e){e.stopPropagation();$('.expanded.dropdown').find('.dropdown-menu').css('display','none');$('.principalsea-global-search').hide();$('.shareIcon').toggleClass("shareIconFlex");});$('.shareIcon').click(function(e){e.stopPropagation();});$('.principalsea-search-form input[type=text]').click(function(e){e.stopPropagation();});$('.hidden-lg button').on('click',function(){$('.principalsea-navbar.main-menu-box').toggleClass("test");});setTimeout(function(){$(".menu--malaysia-menu li.first .dropdown-menu li").each(function(){if($(this).children('span').length){$(this).addClass('spanTxt');console.log($(this).children('span')[0].innerHTML);if($(this).children('span')[0].innerHTML==="CUSTOMISED SOLUTIONS")$(this).addClass('customised-solution-title');else if($(this).children('span')[0].innerHTML==="SELF-SERVICE INVESTMENT")$(this).addClass('self-service-title');else if($(this).children('span')[0].innerHTML==="SUSTAINABLE INVESTING")$(this).addClass('sustainable-investing-title');else{if($(this).children('span')[0].innerHTML==="GET HELP")$(this).addClass('get-help-title');}}});$("li.first .dropdown-menu li:eq( 1 )").addClass("spanTxt");},0);$('.mobile-burgermenu').click(function(){console.log(45);$('.pds-navigationDrupal-menu-icon').toggleClass("pds-navigationDrupal-menu-icon-open");$('body').toggleClass('pds-navigationDrupal-overflow-hidden');$('body').removeClass('pds-navigationDrupal-overflow-hidden-search');$('.principalsea-global-search').hide();$('.pds-navigationDrupal-search-icon').removeClass('pds-navigationDrupal-search-icon-open');});function mobileToggler(){if($(window).width()<992){var mobileAccordionButton=$(".updated-footer.pds-footer-unauthenticated .nav-lower-unauthenticated h2");var mobileAccordionList=$(".updated-footer.pds-footer-unauthenticated ul.menu");mobileAccordionButton.off("click");if($(window).width()>960){mobileAccordionButton.addClass("web_view");mobileAccordionList.addClass("web_view");}else{mobileAccordionButton.removeClass("web_view");mobileAccordionList.removeClass("web_view");$(".updated-footer.pds-footer-unauthenticated .nav-lower-unauthenticated h2").click(function(e){var openThis=$(this).parent().find("ul.menu");$(this).stop().toggleClass("active");openThis.stop().slideToggle("200",function(qw){$(this).css({"overflow":"visible"});});});}}};if($(".updated-footer.pds-footer-unauthenticated .nav-lower-unauthenticated h2").length>0){mobileToggler();$('.updated-footer .nav-accordion-content.help-nav.menu').removeClass('web_view');}$(window).resize(function(){if($(window).width()<960){$('.heightAttri').attr('height','90');if($(".principalsea-footer-navbar .block-title").length>0)mobileToggler();}else $('.heightAttri').attr('height','50');});if(window.location.href=="https://www.test.principal.com.my/en/epfiinvest"||window.location.href=="https://www.principal.com.my/en/epfiinvest"||window.location.href=="https://www.principal.com.my/ms/epfiinvest"||window.location.href=="https://www.test.principal.com.my/ms/epfiinvest"){$("head").append('<script>'+'!function(f,b,e,v,n,t,s)'+'{if(f.fbq)return;n=f.fbq=function(){n.callMethod?'+'n.callMethod.apply(n,arguments):n.queue.push(arguments)};'+'if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version="2.0";'+'n.queue=[];t=b.createElement(e);t.async=!0;'+'t.src=v;s=b.getElementsByTagName(e)[0];'+'s.parentNode.insertBefore(t,s)}(window, document,"script",'+'"https://connect.facebook.net/en_US/fbevents.js");'+'fbq("init", "917950005603173");'+'fbq("track", "PageView");'+'</script>');$("head").append('<noscript><img height="1" width="1" style="display:none"src="https://www.facebook.com/tr?id=917950005603173&ev=PageView&noscript=1"/></noscript>');}setTimeout(function(){$('.js-form-item-field-fund-nav-date-value-min label').text('From');$('.js-form-item-field-my-distribution-date-value-min label').text('From');if($('html').attr('lang')=='en')$('.principalsea-product-container .captcha .panel-heading a').text('Check the CAPTCHA BOX to proceed');if($('html').attr('lang')=='ms')setTimeout(function(){$('.principalsea-product-container .captcha .panel-heading a').text('Periksa KOTAK CAPTCHA untuk meneruskan');},100);},0);});$(window).load(function(){if($('html').attr('lang')=='ms'){$('.js-form-item-field-fund-nav-date-value-min label').text('Dari');$('.js-form-item-field-fund-nav-date-etf-min label').text('Dari');$('.js-form-item-field-my-distribution-date-value-min label').text('Dari');}});$(document).ready(function(){$('.no-top-line').parent().parent().siblings().each(function(){if($(this).hasClass('image-section'))$(this).css('padding-top','40px');});$('#block-languageswitcher-2.language-switcher-header li').removeClass('hide');$('#block-languageswitcher-2.language-switcher-header li.is-active').addClass('hide');$('.pds-navigationDrupal-menu-icon').on('click',function(){$('.mainMenu').toggleClass('menu-open');});$('.unit-trust-accordion.accordion-collapse .panel-collapse').each(function(){$(this).addClass('hide');});$('.unit-trust-accordion .panel-title a').on('click',function(){if(!$(this).parents('.panel').children('.panel-collapse').hasClass('hide')){$(this).parents('.panel').children('.panel-collapse').addClass('hide');$(this).removeClass('collapsed-tab');}else{if($(this).parents('.panel').children('.panel-collapse').hasClass('hide')){$(this).parents('.panel').children('.panel-collapse').removeClass('hide');$(this).addClass('collapsed-tab');}}});});$(document).ready(function(){$('.financial-map-section').parent().css({'padding':'0','margin':'0','max-width':'100%','background-color':'#002855;'});var geoJSONdata=[];var countryData=[];const mobileMax="2";const desktopMax="5";let currentMaxSelection=getMaxSelection();const stickySelection=document.getElementsByClassName("side--container")[0];const stickyNavigation=document.getElementsByClassName("map__section--header")[0];var settings={async:true,crossDomain:true,url:"/sites/default/files/financial-inclusion/map_data.json",method:"GET",headers:{"ocp-apim-subscription-key":"0dd26a77cb7944039133e51942b6017b","content-type":"application/json","cache-control":"no-cache"},mode:"cors",processData:false,dataType:"json",data:JSON.stringify(),success:function(data){geoJSONdata=data;var settings={async:true,crossDomain:true,url:"/sites/default/files/financial-inclusion/inclusion_data.json",method:"GET",headers:{"ocp-apim-subscription-key":"0dd26a77cb7944039133e51942b6017b","content-type":"application/json","cache-control":"no-cache"},mode:"cors",processData:false,dataType:"json",data:JSON.stringify(),success:function(data){countryData=data;LoadData();$('.map__navigation--tab.active').click();}};$.ajax(settings).done(function(response){}).error(function(response){});}};if($('.financial-map-section').length==1)$.ajax(settings).done(function(response){}).error(function(response){});function getMaxSelection(){return window.innerWidth<=768?mobileMax:desktopMax;}function LoadData(){const width=1430;const height=860;const mobileMax="2";const desktopMax="5";let currentMaxSelection=getMaxSelection();const stickySelection=document.getElementsByClassName('side--container')[0];const stickyNavigation=document.getElementsByClassName('map__section--header')[0];d3.select(".side__selection h4").attr("aria-hidden","true");
5function addCountryPanel(singleCountryData){let selectedTab=$('.map__navigation--tab.active').children('button').data('score');let countryName=singleCountryData.info.Country;let categoryScore=singleCountryData.info[selectedTab].Score;let categoryRank=singleCountryData.info[selectedTab].Rank;let rankOverall=singleCountryData.info.Overall.Rank;let rankGovernment=singleCountryData.info.Government.Rank;let rankFinancial=singleCountryData.info.Financial.Rank;let rankEmployer=singleCountryData.info.Employer.Rank;let tabIndex=0;let ranks=Ranks({rankOverall,rankGovernment,rankFinancial,rankEmployer});let maxSelection=getMaxSelection();d3.select(".side__selection h4").html("You have selected "+p+" of "+maxSelection);d3.select(".side__selection--container").append("div").attr('class','side__selection--panel').attr('data-id',singleCountryData.id).html(Panel({categoryRank,countryName,categoryScore,ranks,tabIndex}));sortPanels();}function moveCountryPanels(){if(window.innerWidth<=768){const sidePanels=$('.side--container .side__selection').detach();sidePanels.appendTo('.map__section--header');}else{if($('.map__section--header .side__selection')){const sidePanels=$('.map__section--header .side__selection');$('.side--container .side__scroll--container').prepend(sidePanels);}}}function sortPanels(){if(p>0){let sidePanels=$('.side__selection--panel').detach();const sortedPanelArray=Array.from(sidePanels).sort((panelOne,panelTwo)=>{let rankOne=panelOne.querySelectorAll('.panel__heading--rank')[0].innerHTML;let rankTwo=panelTwo.querySelectorAll('.panel__heading--rank')[0].innerHTML;return parseInt(rankOne,10)-parseInt(rankTwo,10);});for(const panel of sortedPanelArray)$('#selected__Data').append(panel.outerHTML);}}function getMaxSelection(){return window.innerWidth<=768?mobileMax:desktopMax;}moveCountryPanels();const svg=d3.select("#regions").attr("height",height).attr("width",width).attr("viewBox",[0,0,width,height]).attr("prezerveAspectRatio","true");let projection=d3.geoNaturalEarth1().center([0,0]);const pathGenerator=d3.geoPath().projection(projection);let g=svg.append("g");projection.fitSize([width,height],geoJSONdata);countryData.forEach((d)=>{let tableData=document.getElementById('map__Table').getElementsByTagName('tbody')[0];let newRow=tableData.insertRow();newRow.setAttribute('data-id',d.id);newRow.setAttribute('tabindex',0);newRow.setAttribute('aria-label','Rank '+d.info.Overall.Rank+', Country '+d.info.Country+', Score '+d.info.Overall.Score+'.');let newCellRank=newRow.insertCell(0);let newCellName=newRow.insertCell(1);let newCellScore=newRow.insertCell(2);let newTextRank=document.createTextNode(d.info.Overall.Rank);let newTextName=document.createTextNode(d.info.Country);let newTextScore=document.createTextNode(d.info.Overall.Score);newCellRank.appendChild(newTextRank);newCellName.appendChild(newTextName);newCellScore.appendChild(newTextScore);});table=$('#map__Table').DataTable({"tabIndex":0,info:false,filter:false,paging:false,searching:false,order:[[2,'desc']]});$('.map__navigation--tab').click(function(){$('#map__Table').DataTable().clear();let changeScore=$(this).children('button').data('score');$('.map__navigation--tab').removeClass('active');$(this).addClass('active');$('.map__score--container').attr('data-score',$(this).children('button').data('score'));$('#regions').attr('data-score',$(this).children('button').data('score'));$('#map__Table').attr('data-score',$(this).children('button').data('score'));$('.side__selection').attr('data-score',$(this).children('button').data('score'));table.destroy();if(changeScore=="Government"){d3.select(".map__section--heading > *").html("Government support scores");countryData.forEach((d)=>{let tableData=document.getElementById('map__Table').getElementsByTagName('tbody')[0];let newRow=tableData.insertRow();newRow.setAttribute('data-id',d.id);newRow.setAttribute('tabindex',0);newRow.setAttribute('aria-label','Rank '+d.info.Government.Rank+', Country '+d.info.Country+', Score '+d.info.Government.Score+'.');let newCellRank=newRow.insertCell(0);let newCellName=newRow.insertCell(1);let newCellScore=newRow.insertCell(2);let newTextRank=document.createTextNode(d.info.Government.Rank);let newTextName=document.createTextNode(d.info.Country);let newTextScore=document.createTextNode(d.info.Government.Score);newCellRank.appendChild(newTextRank);newCellName.appendChild(newTextName);newCellScore.appendChild(newTextScore);});table=$('#map__Table').DataTable({"tabIndex":0,info:false,filter:false,paging:false,searching:false,order:[[2,'desc']]});}else if(changeScore=="Financial"){d3.select(".map__section--heading > *").html("Financial system support scores");countryData.forEach((d)=>{let tableData=document.getElementById('map__Table').getElementsByTagName('tbody')[0];let newRow=tableData.insertRow();newRow.setAttribute('data-id',d.id);newRow.setAttribute('tabindex',0);newRow.setAttribute('aria-label','Rank '+d.info.Financial.Rank+', Country '+d.info.Country+', Score '+d.info.Financial.Score+'.');let newCellRank=newRow.insertCell(0);let newCellName=newRow.insertCell(1);let newCellScore=newRow.insertCell(2);let newTextRank=document.createTextNode(d.info.Financial.Rank);let newTextName=document.createTextNode(d.info.Country);let newTextScore=document.createTextNode(d.info.Financial.Score);newCellRank.appendChild(newTextRank);newCellName.appendChild(newTextName);newCellScore.appendChild(newTextScore);});table=$('#map__Table').DataTable({"tabIndex":0,info:false,filter:false,paging:false,searching:false,order:[[2,'desc']]});}else if(changeScore=="Employer"){d3.select(".map__section--heading > *").html("Employer support scores");countryData.forEach((d)=>{let tableData=document.getElementById('map__Table').getElementsByTagName('tbody')[0];let newRow=tableData.insertRow();newRow.setAttribute('data-id',d.id);newRow.setAttribute('tabindex',0);newRow.setAttribute('aria-label','Rank '+d.info.Employer.Rank+', Country '+d.info.Country+', Score '+d.info.Employer.Score+'.');let newCellRank=newRow.insertCell(0);let newCellName=newRow.insertCell(1);let newCellScore=newRow.insertCell(2);let newTextRank=document.createTextNode(d.info.Employer.Rank);let newTextName=document.createTextNode(d.info.Country);let newTextScore=document.createTextNode(d.info.Employer.Score);newCellRank.appendChild(newTextRank);newCellName.appendChild(newTextName);newCellScore.appendChild(newTextScore);});table=$('#map__Table').DataTable({"tabIndex":0,info:false,filter:false,paging:false,searching:false,order:[[2,'desc']]});}else{if(changeScore=="Overall"){d3.select(".map__section--heading > *").html("Overall financial inclusion scores");countryData.forEach((d)=>{let tableData=document.getElementById('map__Table').getElementsByTagName('tbody')[0];let newRow=tableData.insertRow();newRow.setAttribute('data-id',d.id);newRow.setAttribute('tabindex',0);newRow.setAttribute('aria-label','Rank '+d.info.Overall.Rank+', Country '+d.info.Country+', Score '+d.info.Overall.Score+'.');let newCellRank=newRow.insertCell(0);let newCellName=newRow.insertCell(1);let newCellScore=newRow.insertCell(2);let newTextRank=document.createTextNode(d.info.Overall.Rank);let newTextName=document.createTextNode(d.info.Country);let newTextScore=document.createTextNode(d.info.Overall.Score);newCellRank.appendChild(newTextRank);newCellName.appendChild(newTextName);newCellScore.appendChild(newTextScore);});table=$('#map__Table').DataTable({"tabIndex":0,info:false,filter:false,paging:false,searching:false,order:[[2,'desc']]});}}
5});g.selectAll("path").data(geoJSONdata.features).join("path").attr("class","country").attr("data-id",function(){return this.__data__.id;}).attr("data-country",function(){return this.__data__.properties.name;}).attr("vector-effect","non-scaling-stroke").attr("data-availability",function(){if(countryData.find((item)=>item.id===this.getAttribute('data-id')))return "has-data";else return "no-data";}).attr("d",pathGenerator);const Colors=({colorMin,colorMax,score})=>{const r=(colorMax[0]-colorMin[0])/100;const g=(colorMax[1]-colorMin[1])/100;const b=(colorMax[2]-colorMin[2])/100;const fill=[Math.ceil(colorMin[0]+(score*r)),Math.ceil(colorMin[1]+(score*g)),Math.ceil(colorMin[2]+(score*b))];return 'rgb('+fill[0]+','+fill[1]+','+fill[2]+')';};g.selectAll("path").attr("fill",function(){if(countryData.find((item)=>item.id===this.getAttribute('data-id'))){let colorMin=[255,255,255];let colorMax=[0,145,218];let score=countryData.find((item)=>item.id===this.getAttribute('data-id')).info.Overall.Score;return Colors({colorMin,colorMax,score});}else return "transparent";});$('.map__navigation--tab').click(function(){let changeScore=$(this).children('button').data('score');if(changeScore=="Government")g.selectAll("path").attr("fill",function(){if(countryData.find((item)=>item.id===this.getAttribute('data-id'))){let colorMin=[255,255,255];let colorMax=[0,196,217];let score=countryData.find((item)=>item.id===this.getAttribute('data-id')).info.Government.Score;return Colors({colorMin,colorMax,score});}else return "transparent";});else if(changeScore=="Financial")g.selectAll("path").attr("fill",function(){if(countryData.find((item)=>item.id===this.getAttribute('data-id'))){let colorMin=[255,255,255];let colorMax=[0,56,101];let score=countryData.find((item)=>item.id===this.getAttribute('data-id')).info.Financial.Score;return Colors({colorMin,colorMax,score});}else return "transparent";});else if(changeScore=="Employer")g.selectAll("path").attr("fill",function(){if(countryData.find((item)=>item.id===this.getAttribute('data-id'))){let colorMin=[255,255,255];let colorMax=[0,127,163];let score=countryData.find((item)=>item.id===this.getAttribute('data-id')).info.Employer.Score;return Colors({colorMin,colorMax,score});}else return "transparent";});else{if(changeScore=="Overall")g.selectAll("path").attr("fill",function(){if(countryData.find((item)=>item.id===this.getAttribute('data-id'))){let colorMin=[255,255,255];let colorMax=[0,145,218];let score=countryData.find((item)=>item.id===this.getAttribute('data-id')).info.Overall.Score;return Colors({colorMin,colorMax,score});}else return "transparent";});}});const Tooltip=({country,score})=>{html='<div class="tooltip__wrapper--container">';html+='<div class="tooltip__wrapper--country">'+country+'</div>';html+='<div class="tooltip__wrapper--score">'+score+'</div>';html+='</div>';return html;};let tooltip=d3.select("body").append("div").attr("class","tooltip__wrapper").style("opacity",0);tableRow=document.getElementById('map__Table').querySelectorAll('tbody tr');$('.map__navigation--tab').click(function(){tableRow=document.getElementById('map__Table').querySelectorAll('tbody tr');});g.selectAll("path").on("mouseover",function(){if(countryData.find((item)=>item.id===this.getAttribute('data-id'))){tooltip.transition().duration(200).style("opacity",1);let country=countryData.find((item)=>item.id===this.getAttribute('data-id')).info.Country;let currentScore=$('.map__score--container').attr('data-score');let score=0;if(currentScore==="Government")score=countryData.find((item)=>item.id===this.getAttribute('data-id')).info.Government.Score;else if(currentScore==="Financial")score=countryData.find((item)=>item.id===this.getAttribute('data-id')).info.Financial.Score;else if(currentScore==="Employer")score=countryData.find((item)=>item.id===this.getAttribute('data-id')).info.Employer.Score;else{if(currentScore==="Overall")score=countryData.find((item)=>item.id===this.getAttribute('data-id')).info.Overall.Score;}tooltip.html(Tooltip({country,score})).style("left",(event.pageX)+"px").style("top",(event.pageY)+"px");}if(countryData.find((item)=>item.id===this.getAttribute('data-id')))tableRow.forEach((d)=>{if(d.getAttribute('data-id')===this.getAttribute('data-id'))d.classList.add("hovered");});}).on("mousemove",function(){tooltip.style("left",(event.pageX)+"px").style("top",(event.pageY)+"px");}).on("mouseout",function(){tooltip.transition().duration(300).style("opacity",0);let tableRow=document.getElementById('map__Table').querySelectorAll('tbody tr');if(countryData.find((item)=>item.id===this.getAttribute('data-id')))tableRow.forEach((d)=>{if(d.getAttribute('data-id')===this.getAttribute('data-id'))d.classList.remove("hovered");});});g.selectAll("path").attr("data-rank",function(){if(countryData.find((item)=>item.id===this.getAttribute('data-id'))){const rank=countryData.find((item)=>item.id===this.getAttribute('data-id')).info.Overall.Rank;return rank;}});$('.map__navigation--tab').click(function(){let changeScore=$(this).children('button').data('score');if(changeScore=="Government")g.selectAll("path").attr("data-rank",function(){if(countryData.find((item)=>item.id===this.getAttribute('data-id'))){const rank=countryData.find((item)=>item.id===this.getAttribute('data-id')).info.Government.Rank;return rank;}});else if(changeScore=="Financial")g.selectAll("path").attr("data-rank",function(){if(countryData.find((item)=>item.id===this.getAttribute('data-id'))){const rank=countryData.find((item)=>item.id===this.getAttribute('data-id')).info.Financial.Rank;return rank;}});else if(changeScore=="Employer")g.selectAll("path").attr("data-rank",function(){if(countryData.find((item)=>item.id===this.getAttribute('data-id'))){const rank=countryData.find((item)=>item.id===this.getAttribute('data-id')).info.Employer.Rank;return rank;}});else{if(changeScore=="Overall")g.selectAll("path").attr("data-rank",function(){if(countryData.find((item)=>item.id===this.getAttribute('data-id'))){const rank=countryData.find((item)=>item.id===this.getAttribute('data-id')).info.Overall.Rank;return rank;}});}});p=0;const selection=document.getElementsByClassName("side__selection")[0];g.selectAll("path").on('click',function(){if(p<=(desktopMax-1)){this.classList.toggle('selected');if(countryData.find((item)=>item.id===this.getAttribute('data-id')))tableRow.forEach((d)=>{if(d.getAttribute('data-id')===this.getAttribute('data-id'))d.classList.toggle("selected");});if(this.classList.contains('selected')){p++;let thisCountry=countryData.find((item)=>item.id===this.getAttribute('data-id'));
5addCountryPanel(thisCountry);}else{p--;selectedData=document.getElementById('selected__Data').querySelectorAll('div.side__selection--panel');const panel=Array.from(selectedData).find((node)=>node.getAttribute('data-id')===this.getAttribute('data-id'));panel.remove();if(p<=0){d3.select(".side__selection h4").html("");d3.select(".side__selection h4").attr("aria-hidden","true");}else{d3.select(".side__selection h4").html("You have selected "+p+" of "+desktopMax);d3.select(".side__selection h4").attr("aria-hidden",null);}}}else if(this.classList.contains('selected')){this.classList.toggle('selected');if(countryData.find((item)=>item.id===this.getAttribute('data-id')))tableRow.forEach((d)=>{if(d.getAttribute('data-id')===this.getAttribute('data-id'))d.classList.toggle("selected");});p--;selectedData=document.getElementById('selected__Data').querySelectorAll('div.side__selection--panel');const panel=Array.from(selectedData).find((node)=>node.getAttribute('data-id')===this.getAttribute('data-id'));panel.remove();if(p<=0){d3.select(".side__selection h4").html("");d3.select(".side__selection h4").attr("aria-hidden","true");}else{d3.select(".side__selection h4").html("You have selected "+p+" of "+desktopMax);d3.select(".side__selection h4").attr("aria-hidden",null);}}else this.animate({fill:"#F76800"},400);if(p>0)selection.classList.add('side__selection--active');else selection.classList.remove('side__selection--active');if(window.innerWidth<=768)if(p>0){stickySelection.classList.add("side__container--sticky");stickyNavigation.classList.add("map__header--sticky");}else{stickySelection.classList.remove("side__container--sticky");stickyNavigation.classList.remove("map__header--sticky");}});const Panel=({categoryRank,countryName,categoryScore,ranks,tabIndex})=>{html='<div class="side__selection--panel">';html='<div class="panel__wraper--container">';html+='<div class="panel__container--content">';html+='<div class="panel__wraper--heading">';html+='<div class="panel__heading--rank">'+categoryRank+'</div>';html+='<div class="panel__heading--country">'+countryName+'</div>';html+='<div class="panel__heading--score">'+categoryScore+'</div>';html+='</div>';html+='<div class="panel__wraper--values">';html+='<ul>'+ranks+'</ul>';html+='</div>';html+='</div>';html+='<div class="panel__container--remove">';html+='<button tabindex='+tabIndex+' class="panel__action--remove">&times;<span>Remove</span></button>';html+='</div>';html+='</div>';html+='</div>';return html;};let Ranks=({rankOverall,rankGovernment,rankFinancial,rankEmployer})=>{html='<li data-score="Overall">Overall financial inclusion rank<span>'+rankOverall+'</span></li>';html+='<li data-score="Government">Government support rank<span>'+rankGovernment+'</span></li>';html+='<li data-score="Financial">Financial system support rank<span>'+rankFinancial+'</span></li>';html+='<li data-score="Employer">Employer support rank<span>'+rankEmployer+'</span></li>';return html;};$('.side__table--container').on('click keypress','.map__table tbody tr',function(event){if(event.which!==13&&event.type!=='click')return;if(window.innerWidth<=768)if(p<=(mobileMax-1)){this.classList.toggle('selected');const paths=document.getElementById('regions').querySelectorAll('g path');paths.forEach((d)=>{if(countryData.find((item)=>item.id===d.getAttribute('data-id')))if(d.getAttribute('data-id')===this.getAttribute('data-id')){d.classList.toggle("selected");if(this.classList.contains('selected')){p++;let thisCountry=countryData.find((item)=>item.id===this.getAttribute('data-id'));addCountryPanel(thisCountry);}else{p--;selectedData=document.getElementById('selected__Data').querySelectorAll('div.side__selection--panel');const panel=Array.from(selectedData).find((node)=>node.getAttribute('data-id')===this.getAttribute('data-id'));panel.remove();if(p<=0){d3.select(".side__selection h4").html("");d3.select(".side__selection h4").attr("aria-hidden","true");}else{d3.select(".side__selection h4").html("You have selected "+p+" of "+mobileMax);d3.select(".side__selection h4").attr("aria-hidden",null);}}}});}else if(this.classList.contains('selected')){this.classList.toggle('selected');const paths=document.getElementById('regions').querySelectorAll('g path');paths.forEach((d)=>{if(countryData.find((item)=>item.id===d.getAttribute('data-id')))if(d.getAttribute('data-id')===this.getAttribute('data-id'))d.classList.toggle("selected");});p--;selectedData=document.getElementById('selected__Data').querySelectorAll('div.side__selection--panel');const panel=Array.from(selectedData).find((node)=>node.getAttribute('data-id')===this.getAttribute('data-id'));panel.remove();if(p<=0){d3.select(".side__selection h4").html("");d3.select(".side__selection h4").attr("aria-hidden","true");}else{d3.select(".side__selection h4").html("You have selected "+p+" of "+mobileMax);d3.select(".side__selection h4").attr("aria-hidden",null);}}else this.animate([{backgroundColor:"#F76800"},{backgroundColor:"initial"}],400);else if(p<=(desktopMax-1)){this.classList.toggle('selected');const paths=document.getElementById('regions').querySelectorAll('g path');paths.forEach((d)=>{if(countryData.find((item)=>item.id===d.getAttribute('data-id')))if(d.getAttribute('data-id')===this.getAttribute('data-id')){d.classList.toggle("selected");if(this.classList.contains('selected')){p++;let thisCountry=countryData.find((item)=>item.id===this.getAttribute('data-id'));
5addCountryPanel(thisCountry);}else{p--;selectedData=document.getElementById('selected__Data').querySelectorAll('div.side__selection--panel');const panel=Array.from(selectedData).find((node)=>node.getAttribute('data-id')===this.getAttribute('data-id'));panel.remove();if(p<=0){d3.select(".side__selection h4").html("");d3.select(".side__selection h4").attr("aria-hidden","true");}else{d3.select(".side__selection h4").html("You have selected "+p+" of "+desktopMax);d3.select(".side__selection h4").attr("aria-hidden",null);}}}});}else if(this.classList.contains('selected')){this.classList.toggle('selected');const paths=document.getElementById('regions').querySelectorAll('g path');paths.forEach((d)=>{if(countryData.find((item)=>item.id===d.getAttribute('data-id')))if(d.getAttribute('data-id')===this.getAttribute('data-id'))d.classList.toggle("selected");});p--;selectedData=document.getElementById('selected__Data').querySelectorAll('div.side__selection--panel');const panel=Array.from(selectedData).find((node)=>node.getAttribute('data-id')===this.getAttribute('data-id'));panel.remove();if(p<=0){d3.select(".side__selection h4").html("");d3.select(".side__selection h4").attr("aria-hidden","true");}else{d3.select(".side__selection h4").html("You have selected "+p+" of "+desktopMax);d3.select(".side__selection h4").attr("aria-hidden",null);}}else this.animate([{backgroundColor:"#F76800"},{backgroundColor:"initial"}],400);if(p>0)selection.classList.add('side__selection--active');else selection.classList.remove('side__selection--active');if(window.innerWidth<=768)if(p>0){stickySelection.classList.add("side__container--sticky");stickyNavigation.classList.add("map__header--sticky");}else{stickySelection.classList.remove("side__container--sticky");stickyNavigation.classList.remove("map__header--sticky");}});$('.map__navigation--tab').click(function(){let changeScore=$(this).children('button').data('score');selectedData=document.getElementById('selected__Data').querySelectorAll('div.side__selection--panel');if(changeScore=="Government")selectedData.forEach((d)=>{if(countryData.find((item)=>item.id===d.getAttribute('data-id'))){const removeButton=d.getElementsByClassName("panel__action--remove")[0];removeButton.setAttribute("tabindex",0);const Rank=d.getElementsByClassName("panel__heading--rank");Rank[0].innerHTML=countryData.find((item)=>item.id===d.getAttribute('data-id')).info.Government.Rank;const Score=d.getElementsByClassName("panel__heading--score");Score[0].innerHTML=countryData.find((item)=>item.id===d.getAttribute('data-id')).info.Government.Score;tableRow.forEach((t)=>{if(t.getAttribute('data-id')===d.getAttribute('data-id'))t.classList.toggle("selected");});}});else if(changeScore=="Financial")selectedData.forEach((d)=>{if(countryData.find((item)=>item.id===d.getAttribute('data-id'))){const removeButton=d.getElementsByClassName("panel__action--remove")[0];removeButton.setAttribute("tabindex",0);const Rank=d.getElementsByClassName("panel__heading--rank");Rank[0].innerHTML=countryData.find((item)=>item.id===d.getAttribute('data-id')).info.Financial.Rank;const Score=d.getElementsByClassName("panel__heading--score");Score[0].innerHTML=countryData.find((item)=>item.id===d.getAttribute('data-id')).info.Financial.Score;tableRow.forEach((t)=>{if(t.getAttribute('data-id')===d.getAttribute('data-id'))t.classList.toggle("selected");});}});else if(changeScore=="Employer")selectedData.forEach((d)=>{if(countryData.find((item)=>item.id===d.getAttribute('data-id'))){const removeButton=d.getElementsByClassName("panel__action--remove")[0];removeButton.setAttribute("tabindex",0);const Rank=d.getElementsByClassName("panel__heading--rank");Rank[0].innerHTML=countryData.find((item)=>item.id===d.getAttribute('data-id')).info.Employer.Rank;const Score=d.getElementsByClassName("panel__heading--score");Score[0].innerHTML=countryData.find((item)=>item.id===d.getAttribute('data-id')).info.Employer.Score;tableRow.forEach((t)=>{if(t.getAttribute('data-id')===d.getAttribute('data-id'))t.classList.toggle("selected");});}});else{if(changeScore=="Overall")selectedData.forEach((d)=>{if(countryData.find((item)=>item.id===d.getAttribute('data-id'))){const removeButton=d.getElementsByClassName("panel__action--remove")[0];removeButton.setAttribute("tabindex",0);const Rank=d.getElementsByClassName("panel__heading--rank");Rank[0].innerHTML=countryData.find((item)=>item.id===d.getAttribute('data-id')).info.Overall.Rank;const Score=d.getElementsByClassName("panel__heading--score");Score[0].innerHTML=countryData.find((item)=>item.id===d.getAttribute('data-id')).info.Overall.Score;tableRow.forEach((t)=>{if(t.getAttribute('data-id')===d.getAttribute('data-id'))t.classList.toggle("selected");});}});}sortPanels();});const paths=document.getElementById('regions').querySelectorAll('g path');$('.side__selection--container').on('click keypress','.panel__action--remove',function(event){if(event.which!==13&&event.type!=='click')return;p=p-1;if(p>0)selection.classList.add('side__selection--active');else selection.classList.remove('side__selection--active');if(p<=0){d3.select(".side__selection h4").html("");d3.select(".side__selection h4").attr("aria-hidden","true");}else{if(window.innerWidth<=768)d3.select(".side__selection h4").html("You have selected "+p+" of "+mobileMax);else d3.select(".side__selection h4").html("You have selected "+p+" of "+desktopMax);d3.select(".side__selection h4").attr("aria-hidden",null);}tableRow.forEach((d)=>{if(d.getAttribute('data-id')===this.closest('.side__selection--panel').getAttribute('data-id'))d.classList.remove("selected");});paths.forEach((d)=>{if(countryData.find((item)=>item.id===d.getAttribute('data-id')))if(d.getAttribute('data-id')===this.closest('.side__selection--panel').getAttribute('data-id'))d.classList.remove("selected");});this.closest('.side__selection--panel').remove();const stickySelection=document.getElementsByClassName('side--container')[0];const stickyNavigation=document.getElementsByClassName('map__section--header')[0];if(window.innerWidth<=768)if(p==0){stickySelection.classList.remove("side__container--sticky");stickyNavigation.classList.remove("map__header--sticky");}});tableRow.forEach((d)=>{d.addEventListener("mouseover",function(event){this.classList.toggle('hovered');paths.forEach((p)=>{if(p.getAttribute('data-id')===this.getAttribute('data-id'))p.classList.toggle('hovered');});});d.addEventListener("mouseout",function(event){this.classList.toggle('hovered');paths.forEach((p)=>{if(p.getAttribute('data-id')===this.getAttribute('data-id'))p.classList.toggle('hovered');});});});$('.map__navigation--tab').click(function(){tableRow.forEach((d)=>{d.addEventListener("mouseover",function(event){this.classList.toggle('hovered');paths.forEach((p)=>{if(p.getAttribute('data-id')===this.getAttribute('data-id'))p.classList.toggle('hovered');});});d.addEventListener("mouseout",function(event){this.classList.toggle('hovered');paths.forEach((p)=>{if(p.getAttribute('data-id')===this.getAttribute('data-id'))p.classList.toggle('hovered');});});});});const reset=document.getElementById("zoom_reset");const mapOverlay=document.getElementsByClassName("map__overlay")[0];const panSize=width-document.getElementsByClassName("map--container")[0].offsetWidth;if(window.innerWidth<=768){let zoom=d3.zoom().on('zoom',function(e){handleZoom(e);reset.classList.add('zoomed');}).scaleExtent([1,5]).translateExtent([[0,0],[width,height]]);d3.select('#regions').call(zoom);d3.select("#zoom_in").on("click",function(){zoom.scaleBy(svg.transition().duration(750),1.2);});d3.select("#zoom_out").on("click",function(){zoom.scaleBy(svg.transition().duration(750),0.8);});$("#zoom_reset").click(()=>{svg.transition().duration(750).call(zoom.transform,d3.zoomIdentity);setTimeout(function(){reset.classList.remove('zoomed');},760);mapOverlay.classList.remove('yes-zoom');mapOverlay.classList.add('no-zoom');});}else{let zoom=d3.zoom().on('zoom',function(e){handleZoom(e);reset.classList.add('zoomed');}).scaleExtent([1,5]).translateExtent([[0,0],[width+panSize,height]]);d3.select('#regions').call(zoom);d3.select("#zoom_in").on("click",function(){zoom.scaleBy(svg.transition().duration(750),1.2);});d3.select("#zoom_out").on("click",function(){zoom.scaleBy(svg.transition().duration(750),0.8);});$("#zoom_reset").click(()=>{svg.transition().duration(750).call(zoom.transform,d3.zoomIdentity);setTimeout(function(){reset.classList.remove('zoomed');},760);mapOverlay.classList.remove('yes-zoom');mapOverlay.classList.add('no-zoom');});}window.addEventListener("resize",function(){let panSize=width-document.getElementsByClassName("map--container")[0].offsetWidth;if(window.innerWidth<=768){let zoom=d3.zoom().on('zoom',function(e){handleZoom(e);reset.classList.add('zoomed');}).scaleExtent([1,5]).translateExtent([[0,0],[width,height]]);d3.select('#regions').call(zoom);d3.select("#zoom_in").on("click",function(){zoom.scaleBy(svg.transition().duration(750),1.2);});d3.select("#zoom_out").on("click",function(){zoom.scaleBy(svg.transition().duration(750),0.8);});$("#zoom_reset").click(()=>{svg.transition().duration(750).call(zoom.transform,d3.zoomIdentity);setTimeout(function(){reset.classList.remove('zoomed');},760);mapOverlay.classList.remove('yes-zoom');mapOverlay.classList.add('no-zoom');});if(getMaxSelection()!==currentMaxSelection){currentMaxSelection=mobileMax;if(p>0){stickySelection.classList.add("side__container--sticky");stickyNavigation.classList.add("map__header--sticky");d3.select(".side__selection h4").html("You have selected "+p+" of "+mobileMax);d3.select(".side__selection h4").attr("aria-hidden",null);}else{stickySelection.classList.remove("side__container--sticky");stickyNavigation.classList.remove("map__header--sticky");d3.select(".side__selection h4").html("");d3.select(".side__selection h4").attr("aria-hidden","true");}moveCountryPanels();}if(p>mobileMax){while(p>mobileMax){selectedData=document.getElementById('selected__Data').querySelectorAll('div.side__selection--panel');let lastPanel=Array.from(selectedData).pop();tableRow.forEach((row)=>{if(row.getAttribute('data-id')===lastPanel.getAttribute('data-id'))row.classList.toggle("selected");});const paths=document.getElementById('regions').querySelectorAll('g path');paths.forEach((d)=>{if(lastPanel.getAttribute('data-id')===d.getAttribute('data-id'))d.classList.toggle("selected");});lastPanel.remove();p--;}d3.select(".side__selection h4").html("You have selected "+p+" of "+mobileMax);}}else{if(getMaxSelection()!==currentMaxSelection){currentMaxSelection=desktopMax;if(p>0){d3.select(".side__selection h4").html("You have selected "+p+" of "+desktopMax);d3.select(".side__selection h4").attr("aria-hidden",null);}else{d3.select(".side__selection h4").html("");d3.select(".side__selection h4").attr("aria-hidden","true");}stickySelection.classList.remove("side__container--sticky");stickyNavigation.classList.remove("map__header--sticky");moveCountryPanels();}let zoom=d3.zoom().on('zoom',function(e){handleZoom(e);reset.classList.add('zoomed');}).scaleExtent([1,5]).translateExtent([[0,0],[width+panSize,height]]);d3.select('#regions').call(zoom);d3.select("#zoom_in").on("click",function(){zoom.scaleBy(svg.transition().duration(750),1.2);});d3.select("#zoom_out").on("click",function(){zoom.scaleBy(svg.transition().duration(750),0.8);});$("#zoom_reset").click(()=>{svg.transition().duration(750).call(zoom.transform,d3.zoomIdentity);setTimeout(function(){reset.classList.remove('zoomed');},760);mapOverlay.classList.remove('yes-zoom');mapOverlay.classList.add('no-zoom');});}});function handleZoom(e){svg.select('g').attr('transform',e.transform);}$(".map__overlay").on('click',function(){mapOverlay.classList.remove('no-zoom');mapOverlay.classList.add('yes-zoom');});const isTouchDevice=()=>{return (('ontouchstart' in window)||(navigator.maxTouchPoints>0)||(navigator.msMaxTouchPoints>0));};if(isTouchDevice())$('html').addClass('is-touch-device');else $('html').addClass('no-touch-device');}if($('html').attr('lang')=='ms'){setTimeout(function(){var arr=$('.menu--malaysia-menu li.first .dropdown-menu li');for(i=0;i<arr.length;i++)if($(arr[i]).hasClass('sustainable-investing-title')){$(arr[i])[0].style.setProperty('display','none','important');i++;while(!$(arr[i]).hasClass('spanTxt')){$(arr[i])[0].style.setProperty('display','none','important');i++;}break;}},500);$(".menu--malaysia-menu li.first .dropdown-menu li").each(function(){if($(this).children('span').text()==="PENYELESAIAN TERSUAI")$(this).addClass('customised-solution-title');else if($(this).children('span').text()==="PELABURAN SECARA LAYAN DIRI")$(this).addClass('self-service-title');else{if($(this).children('span').text()==="DAPATKAN BANTUAN")$(this).addClass('get-help-title');}});}});}};})(jQuery);;

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.