function loadSecondSF(){var e=document.createElement("script");e.type="text/javascript",e.src=sfsearchbaseurl+"smartsearch-v2.2.74.4.min.js",document.getElementsByTagName("head")[0].appendChild(e);var a=sfsearchbaseurl+"smartsearch-v2.2.50.1.min.css";getSecondStyleSheet(a),checkJS2=!0,function(e,a,s,t,r,i,n){e.GoogleAnalyticsObject=r,e[r]=e[r]||function(){(e[r].q=e[r].q||[]).push(arguments)},e[r].l=1*new Date,i=a.createElement(s),n=a.getElementsByTagName(s)[0],i.async=1,i.src=t,n.parentNode.insertBefore(i,n);const c=document.createElement("script");c.src="https://www.googletagmanager.com/gtag/js?id=G-33QEM13FPT",c.async=!0,document.head.appendChild(c)}(window,document,"script","https://www.google-analytics.com/analytics.js","ga"),initSpeech()}function gtag(){window.dataLayer=window.dataLayer||[],dataLayer.push(arguments)}function getSecondStyleSheet(e){var a=document.createElement("link");a.type="text/css",a.rel="stylesheet",a.href=e,document.getElementsByTagName("head")[0].appendChild(a)}function stopAudioResponse(){audioArray&&audioArray.length>0&&($.each(audioArray,function(e,a){try{a.pause()}catch(e){console.log(e)}}),audioArray=[])}function prepareAudioData(e,a){let s=[];if(!0!==a||!0!==micClicked){!0===a&&!1===micClicked&&(micClicked=!0);for(let a=0;a-1){var e={images:[sfsearchbaseurl+"Images/Privilege/Savings Accounts.png",sfsearchbaseurl+"Images/Privilege/Recurring Deposits.png",sfsearchbaseurl+"Images/Privilege/Fixed Deposit.png",sfsearchbaseurl+"Images/Privilege/Home Loan.png",sfsearchbaseurl+"Images/Privilege/Mutual Fund.png"],productName:["Savings Account","Recurring Deposits","Fixed Deposits","Home Loan","Mutual Fund"],productLink:["https://www.icicibank.com/service-charges/privilege-banking-programme","https://www.icicibank.com/privilege-banking/personal/recurring-deposits","https://www.icicibank.com/privilege-banking/personal/fixed-deposits","https://www.icicibank.com/privilege-banking/personal/home-loan","https://www.icicibank.com/privilege-banking/personal/mutual-funds"]};botShow=!1,iscorporate=!1,flag=!0,iswealth=!1,ispersonal=!1,pagesection="privilege-banking"}else if(url.indexOf(".com/nri-banking")>-1||isNRI_UAT){e={images:[sfsearchbaseurl+"Images/NRI/NRO Savings.png",sfsearchbaseurl+"Images/NRI/NRO FD.png",sfsearchbaseurl+"Images/NRI/FCNR.png",sfsearchbaseurl+"Images/NRI/PREMIA Account.png",sfsearchbaseurl+"Images/NRI/Seafarer Account.png",sfsearchbaseurl+"Images/NRI/Student Account.png"],productName:["NRE/NRO Savings","NRE/NRO FD","FCNR","PRO/PREMIA Account","Seafarer Account","Student Account"],productLink:["https://nli.icicibank.com/NewRetailWeb/clickToCallOpenNRIAccount.htm?site=HP-Menu&_ga=2.157520761.235140597.1599822484-647541654.1599645923","https://www.icicibank.com/nri-banking/bankaccounts/nre-fixed-deposit-accounts","https://www.icicibank.com/nri-banking/bankaccounts/fcnr-fixed-accounts","https://nli.icicibank.com/NewRetailWeb/clickToCallOpenNRIAccount.htm?site=HP-Menu&_ga=2.157520761.235140597.1599822484-647541654.1599645923","https://nli.icicibank.com/NewRetailWeb/clickToCallOpenNRIAccount.htm?site=HP-Menu&_ga=2.157520761.235140597.1599822484-647541654.1599645923","https://nli.icicibank.com/NewRetailWeb/clickToCallOpenNRIAccount.htm?site=HP-Menu&_ga=2.157520761.235140597.1599822484-647541654.1599645923"]};botShow=!0,isnri=!0,flag=!0,iscorporate=!1,iswealth=!1,ispersonal=!1,pagesection=isNRI_UAT?"nri-banking-uat":"nri-banking"}else if(url.indexOf(".com/wealth-management")>-1){e={images:[sfsearchbaseurl+"Images/Wealth/Home Loan.png",sfsearchbaseurl+"Images/Wealth/Personal Loan.png",sfsearchbaseurl+"Images/Wealth/Car Loan.png",sfsearchbaseurl+"Images/Wealth/Loan Against Securities.png",sfsearchbaseurl+"Images/Wealth/Credit Card.png",sfsearchbaseurl+"Images/Wealth/Fixed Deposit.png",sfsearchbaseurl+"Images/Wealth/Forex prepaid cards.png"],productName:["Home Loan","Personal Loan","Car Loan","Loan Against Securities","Credit Card","Fixed Deposit","Forex prepaid cards"],productLink:["https://www.icicibank.com/personal-banking/loans/home-loan","https://www.icicibank.com/personal-banking/loans/personal-loan","https://www.icicibank.com/personal-banking/loans/car-loan","https://www.icicibank.com/personal-banking/loans/loan-against-securities","https://www.icicibank.com/personal-banking/cards/credit-card","https://www.icicibank.com/personal-banking/deposits/fixed-deposit","https://www.icicibank.com/personal-banking/cards/travel-card/travel-cards"]};botShow=!1,flag=!0,iscorporate=!1,iswealth=!0,isnri=!1,pagesection="wealth-management"}else if(url.indexOf(".com/corporate")>-1||url.indexOf(".net/corporate")>-1){e={images:[sfsearchbaseurl+"Images/Corporate/Custodial Services.png",sfsearchbaseurl+"Images/Corporate/Trade Services.png",sfsearchbaseurl+"Images/Corporate/Global markets.png",sfsearchbaseurl+"Images/Corporate/Capital Markets.png",sfsearchbaseurl+"Images/Corporate/Cash management Services.png"],productName:["Custodial Services","Trade Services","Global markets","Capital Markets","Cash management Services"],productLink:["https://www.icicibank.com/corporate/custodialservices/custodial","https://www.icicibank.com/corporate/globaltradeservice","https://www.icicibank.com/corporate/forex-treasury-ser/forex/overview","https://www.icicibank.com/corporate/financial-institutions/capital-market","https://www.icicibank.com/corporate/cms/corp-transaction-cms"]};botShow=!1,isnri=!1,flag=!0,iscorporate=!0,iswealth=!1,ispersonal=!1,pagesection="corporate"}else if(url.indexOf(".com/business-banking")>-1){e={images:[sfsearchbaseurl+"Images/Business/Current Account.png",sfsearchbaseurl+"Images/Business/EazyPay POS.png",sfsearchbaseurl+"Images/Business/Instant Overdraft.png",sfsearchbaseurl+"Images/Business/One Globe Trade Account.png"],productName:["Current Account","EazyPay POS","Instant Overdraft","One Globe Trade Account"],productLink:["https://www.icicibank.com/business-banking/current-account","https://www.icicibank.com/business-banking/Eazypay/index.html","https://www.icicibank.com/business-banking/finance/insta-overdraft","https://www.icicibank.com/business-banking/current-account/trade-current-account"]};botShow=!1,flag=!0,isnri=!1,iscorporate=!1,iswealth=!1,ispersonal=!1,pagesection="business-banking"}else if(url.indexOf(".com/sme")>-1){e={images:[sfsearchbaseurl+"Images/SME/Current Account.png",sfsearchbaseurl+"Images/SME/Working Capital.png",sfsearchbaseurl+"Images/SME/Term Loan.png",sfsearchbaseurl+"Images/SME/Treasury Research.png",sfsearchbaseurl+"Images/SME/SuperBiz.png"],productName:["Current Account","Working Capital","Term Loan","Treasury Research","SuperBiz"],productLink:["https://www.icicibank.com/sme/current-accounts","https://www.icicibank.com/sme/working-capital","https://www.icicibank.com/sme/term-loan","https://www.icicibank.com/sme/treasury-research","https://www.icicibank.com/sme/easy-business-loans"]};botShow=!1,flag=!0,iscorporate=!0,iswealth=!1,isnri=!1,ispersonal=!1,pagesection="sme"}else if(url.indexOf(".com/campus-power")>-1){e={images:[sfsearchbaseurl+"Images/NRI/Student Account.png",sfsearchbaseurl+"Images/NRI/NRO Savings.png",sfsearchbaseurl+"Images/Business/One Globe Trade Account.png"],productName:["Education Loan","Remittance","Overseas account"],productLink:["https://www.icicibank.com/campus-power/solutions?ITM=nli_cms_EducationLoan_SmartSearch_searchresults","https://www.icicibank.com/campus-power/solutions?ITM=nli_cms_Remittance_SmartSearch_searchresults","https://www.icicibank.com/campus-power/solutions?ITM=nli_cms_OverseasAccount_SmartSearch_searchresults"]};botShow=!0,flag=!0,iscorporate=!1,iswealth=!1,ispersonal=!0,pagesection="personal"}else{if(1==mobile)e={images:[sfsearchbaseurl+"Images/Accounts.svg",sfsearchbaseurl+"Images/hl-icon-bg.png",sfsearchbaseurl+"Images/pl-icon-bg.png",sfsearchbaseurl+"Images/car-icon-bg.png",sfsearchbaseurl+"Images/cards.png",sfsearchbaseurl+"Images/fd-icon-bg.png",sfsearchbaseurl+"Images/Campus/edu-icon.png",sfsearchbaseurl+"Images/Campus/forex-icon.png"],productName:["Savings Accounts","Home Loan","Personal Loan","Car Loan","Credit Card","Fixed Deposit"],productLink:["https://www.icicibank.com/personal-banking/accounts/savings-account?ITM=nli_cms_SA_SavingsAccount_SmartSearch_choosetheproduct_link","https://loans.icicibank.com/loans/home-loan/?ITM=nli_cms_HL_HLiLens_SmartSearch_choosetheproduct_link","https://buy.icicibank.com/ucj/personal?ius=KMOU29843KM&iup=PL852452&ITM=CMS_NLI_Smartsearch_SearchResults","https://oapnext.icicibank.com/asset-portal-all/apply-now?loanType=al&WT.mc_id=Desk_OAPN_cms_cl_index_btn_applynow&ITM=nli_cms_AL_carloan_SmartSearch_choosetheproduct_link","https://buy.icicibank.com/ucj/cc/mobile?ius=IS83006US&iup=UCC00476&ITM=nli_cms_CC_creditcard_SmartSearch","https://infinity.icicibank.com/corp/AuthenticationController?FORMSGROUP_ID__=AuthenticationFG&__START_TRAN_FLAG__=Y&FG_BUTTONS__=LOAD&ACTION.LOAD=Y&AuthenticationFG.LOGIN_FLAG=1&BANK_ID=ICI&CTA_FLAG=DEPOSIT&ITM=nli_cms_FD_fixeddeposit_SmartSearch_choosetheproduct_link"]};else e={images:[sfsearchbaseurl+"Images/Accounts.svg",sfsearchbaseurl+"Images/hl-icon-bg.png",sfsearchbaseurl+"Images/pl-icon-bg.png",sfsearchbaseurl+"Images/car-icon-bg.png",sfsearchbaseurl+"Images/cards.png",sfsearchbaseurl+"Images/fd-icon-bg.png",sfsearchbaseurl+"Images/Campus/edu-icon.png",sfsearchbaseurl+"Images/Campus/forex-icon.png"],productName:["Savings Accounts","Home Loan","Personal Loan","Car Loan","Credit Card","Fixed Deposit","Education Loan","Forex & Remittance"],productLink:["https://www.icicibank.com/personal-banking/accounts/savings-account?ITM=nli_cms_SA_SavingsAccount_SmartSearch_choosetheproduct_link","https://loans.icicibank.com/loans/home-loan/?ITM=nli_cms_HL_HLiLens_SmartSearch_choosetheproduct_link","https://buy.icicibank.com/ucj/personal?ius=KMOU29843KM&iup=PL852452&ITM=CMS_NLI_Smartsearch_SearchResults","https://oapnext.icicibank.com/asset-portal-all/apply-now?loanType=al&WT.mc_id=Desk_OAPN_cms_cl_index_btn_applynow&ITM=nli_cms_AL_carloan_SmartSearch_choosetheproduct_link","https://buy.icicibank.com/ucj/cc/mobile?ius=IS83006US&iup=UCC00476&ITM=nli_cms_CC_creditcard_SmartSearch","https://infinity.icicibank.com/corp/AuthenticationController?FORMSGROUP_ID__=AuthenticationFG&__START_TRAN_FLAG__=Y&FG_BUTTONS__=LOAD&ACTION.LOAD=Y&AuthenticationFG.LOGIN_FLAG=1&BANK_ID=ICI&CTA_FLAG=DEPOSIT&ITM=nli_cms_FD_fixeddeposit_SmartSearch_choosetheproduct_link","https://www.icicibank.com/campus-power/solutions?cardTitle=education-loan&solutionBundle=smallCards&pageType=financial-solutions&stageType=education-loan&location-input=abroad&countryType=other&ITM=nli_cms_EducationLoan_SmartSearch_searchresults","https://www.icicibank.com/campus-power/solutions?cardTitle=foreign-exchange-service&solutionBundle=smallCards&pageType=financial-solutions&stageType=foreign-exchange-service&location-input=abroad&countryType=other&ITM=nli_cms_Remittance_SmartSearch_searchresults"]};botShow=!0,flag=!0,iscorporate=!1,iswealth=!1,ispersonal=!0,pagesection="personal"}for(var a="",s="",t="",r="",i="",n=0;n"+e.productName[n]+"":n>=4&&n<6&&(s+='
"+e.productName[n]+"
"):n<3?a+='
"+e.productName[n]+"
":n>=3&&n<6?s+='
"+e.productName[n]+"
":n>=6&&(t+='
"+e.productName[n]+"
");$searchbar.find(".sf-product-searches1").append(a),null==s&&null==s||$searchbar.find(".sf-product-searches2").append(s),null==t&&null==t||$searchbar.find(".sf-product-searches3").append(t)}function wantTo(){$searchbar.find(".sf-want-searches1").empty(),$searchbar.find(".sf-want-searches2").empty(),$searchbar.find(".sf-want-searches3").empty();var e=window.location.href.toLowerCase();if(e.indexOf(".com/campus-power")>-1||e.indexOf(".com/ms/campus-power")>-1){var a="https://www.icicibank.com/campus-power/solutions?ITM=nli_cms_StudyAbroad_SmartSearch_searchresults",s="https://www.icicibank.com/campus-power/solutions?ITM=nli_cms_RemitMoney_SmartSearch_searchresults",t="https://www.icicibank.com/campus-power/money-management?ITM=Search_LearnMoneyManagement",r="https://www.icicibank.com/ms/campus-power/expense-calculator/index.html?ITM=smart_search",i={productName:["Study Abroad","Remit Money","Learn Money Management","Know EMI and Tax Benefits"],productLink:[a,s,t,r]};iscorporate=!1}else if(e.indexOf(".com/privilege-banking")>-1){a="https://infinity.icicibank.com/corp/AuthenticationController?FORMSGROUP_ID__=AuthenticationFG&__START_TRAN_FLAG__=Y&FG_BUTTONS__=LOAD&ACTION.LOAD=Y&AuthenticationFG.LOGIN_FLAG=1&BANK_ID=ICI&CTA_FLAG=TRAVELCARDSITM=nli_cms_CARDS_quick_search_travel_btn&_ga=2.247052800.589552841.1600055467-400295547.1599807122",s="https://www.icicibank.com/personal-banking/investments/mutual-funds",t="https://www.icicibank.com/personal-banking/loans",r="https://infinity.icicibank.com/corp/AuthenticationController?FORMSGROUP_ID__=AuthenticationFG&__START_TRAN_FLAG__=Y&FG_BUTTONS__=LOAD&ACTION.LOAD=Y&AuthenticationFG.LOGIN_FLAG=1&BANK_ID=ICI&CTA_FLAG=HLTHINS&ITM=nli_cms_GI_quick_search_insure_me_&_my_family_btn&_ga=2.78362000.589552841.1600055467-400295547.1599807122";var n="https://www.icicibank.com/personal-banking/payments/tax-solutions";i={productName:["Travel","Invest Some Money","Apply for a Loan","Insure Me and My Family","Save Tax"],productLink:[a,s,t,r,n]};iscorporate=!1}else if(e.indexOf(".com/nri-banking")>-1||isNRI_UAT){a="https://nli.icicibank.com/NewRetailWeb/clickToCallOpenNRIAccount.htm?site=HP-Menu&_ga=2.157520761.235140597.1599822484-647541654.1599645923",s="https://www.icicibank.com/nri-banking/loans/home-loan",t="https://www.icicibank.com/nri-banking/insurance/life-insurance",r="https://www.icicibank.com/nri-banking/bankaccounts/nro-fixed-accounts",n="https://www.icicibank.com/nri-banking/bankaccounts/nre-fixed-deposit-accounts";var c="https://www.icicibank.com/corporate/globaltradeservice/research-overview?ITM=nli_cms_NRIResearch2_SmartSearch_Iwantto_link";i={productName:["Open a Account","Apply for Home Loan","Insure Me & My Family","Invest Some Money","Save Tax","Explore Research Reports"],productLink:[a,s,t,r,n,c]};iscorporate=!1}else if(e.indexOf(".com/wealth-management")>-1){a="https://infinity.icicibank.com/corp/AuthenticationController?FORMSGROUP_ID__=AuthenticationFG&__START_TRAN_FLAG__=Y&FG_BUTTONS__=LOAD&ACTION.LOAD=Y&AuthenticationFG.LOGIN_FLAG=1&BANK_ID=ICI&CTA_FLAG=TRAVELCARDSITM=nli_cms_CARDS_quick_search_travel_btn&_ga=2.247052800.589552841.1600055467-400295547.1599807122",s="https://www.icicibank.com/personal-banking/investments/mutual-funds",t="https://www.icicibank.com/personal-banking/loans",r="https://infinity.icicibank.com/corp/AuthenticationController?FORMSGROUP_ID__=AuthenticationFG&__START_TRAN_FLAG__=Y&FG_BUTTONS__=LOAD&ACTION.LOAD=Y&AuthenticationFG.LOGIN_FLAG=1&BANK_ID=ICI&CTA_FLAG=HLTHINS&ITM=nli_cms_GI_quick_search_insure_me_&_my_family_btn&_ga=2.78362000.589552841.1600055467-400295547.1599807122",n="https://www.icicibank.com/personal-banking/payments/tax-solutions",i={productName:["Travel","Invest Some Money","Apply for a Loan","Insure Me and My Family","Save Tax"],productLink:[a,s,t,r,n]};iscorporate=!1}else if(e.indexOf(".com/corporate")>-1||e.indexOf(".net/corporate")>-1){a="https://www.icicibank.com/corporate/globaltradeservice/research-overview?ITM=nli_cms_CorporateResearch_SmartSearch_Popularsearch_link",i={productName:["View Research insights & Forecast"],productLink:[a]};iscorporate=!0}else if(e.indexOf(".com/business-banking")>-1){a="https://www.icicibank.com/business-banking/current-account",s="https://www.icicibank.com/business-banking/trade-service/trade-services",t="https://www.icicibank.com/business-banking/cash-management-services/cms",r="https://www.icicibank.com/business-banking/finance",n="https://www.icicibank.com/offers/categories/category-listing/business-compliments",c="https://www.icicibank.com/instabiz?ITM=nli_cms_BusinessResearch1_SmartSearch_Iwantto_link",i={productName:["Know about account variants","Manage trade services","Manage payment & collections","Know about business loans","Explore business offers","Know about InstaBIZ app"],productLink:[a,s,t,r,n,c]};iscorporate=!1}else if(e.indexOf(".com/sme")>-1){a="https://www.smetoolkit.in/",s="https://www.icicibank.com/sme/term-loan",t="https://www.icicibank.com/corporate/globaltradeservice/research-overview?ITM=nli_cms_CorporateResearch1_SmartSearch_Popularsearch_link",i={productName:["Know resource center for SMEs","Expand my Business","Know About Market Research"],productLink:[a,s,t]};iscorporate=!0}else{a="https://www.icicibank.com/personal-banking/accounts/savings-account?ITM=nli_cms_SA_SavingsAccount_SmartSearch_iwantto_link",s="https://infinity.icicibank.com/corp/AuthenticationController?FORMSGROUP_ID__=AuthenticationFG&__START_TRAN_FLAG__=Y&FG_BUTTONS__=LOAD&ACTION.LOAD=Y&AuthenticationFG.LOGIN_FLAG=1&BANK_ID=ICI&CTA_FLAG=TRAVELCARDSITM=nli_cms_CARDS_travel_SmartSearch_iwantto_link",t="https://infinity.icicibank.com/corp/AuthenticationController?FORMSGROUP_ID__=AuthenticationFG&__START_TRAN_FLAG__=Y&FG_BUTTONS__=LOAD&ACTION.LOAD=Y&AuthenticationFG.LOGIN_FLAG=1&BANK_ID=ICI&CTA_FLAG=INVONL&ITM=nli_cms_INVEST_invest_online_SmartSearch_iwantto_link",r="https://buy.icicibank.com/ucj/cc/mobile?ius=IS83006US&iup=UCC00476&ITM=nli_cms_CC_creditcard_SmartSearch_iwant_to",n="https://infinity.icicibank.com/corp/AuthenticationController?FORMSGROUP_ID__=AuthenticationFG&__START_TRAN_FLAG__=Y&FG_BUTTONS__=LOAD&ACTION.LOAD=Y&AuthenticationFG.LOGIN_FLAG=1&BANK_ID=ICI&CTA_FLAG=HLTHINS&ITM=nli_cms_GI_Healthinsurance_SmartSearch_iwantto_link",c="https://www.icicibank.com/personal-banking/life-stages/career?ITM=nli_cms_smartsearch_iwant_to";var o="https://www.icicibank.com/campus-power/solutions?ITM=nli_cms_StudyAbroad_SmartSearch_searchresults",l="https://www.icicibank.com/campus-power/solutions?ITM=nli_cms_RemitMoney_SmartSearch_searchresults",p="https://www.icicibank.com/campus-power/money-management?ITM=Search_LearnMoneyManagement";i={productName:["Open an Account","Travel","Invest Some Money","Apply for a Loan","Insure Me and My Family","Explore Financial Solutions","Study Abroad","Remit Money","Learn Money Management"],productLink:[a,s,t,r,n,c,o,l,p]};iscorporate=!1}for(var h="",u="",d="",m="",f=0;f"+i.productName[f]+"":f>=3&&f<6?u+="":f>=6&&f<9&&(d+="");$searchbar.find(".sf-want-searches1").append(h),null==u&&null==u||$searchbar.find(".sf-want-searches2").append(u),null==d&&null==d||$searchbar.find(".sf-want-searches3").append(d)}function getCookie(e){var a=document.cookie,s=a.split(e+"=");if(2===s.length)return s.pop().split(";").shift()}function showing(){$(".sf-search-wrapper").addClass("is-open"),!$(".whole-overlay").length>0&&createPlaceholdersSF(),console.log(searchbarAttr),null==searchbarAttr||mobile||$searchbar.find("whole-overlay").hasClass("sf-whole-overlay")||$searchbar.find(".whole-overlay").addClass("sf-whole-overlay"),checkJS2||loadSecondSF(),isNRI_UAT||(gtag("event","SearchInitiated",{event_category:"SearchInitiated",dimension1:getCookie("Fed_ID_NLI")}),dataLayer.push({event:"custom_event",eventCategory:"SearchInitiated",eventAction:"NA",eventLabel:"NA"})),$searchbar.find(".sfSearchWholePopup").slideDown("slow",function(){}),$searchbar.find(".whole-overlay").slideDown("slow",function(){}),$searchbar.find(".close-popup").show(),$searchbar.find(".sf-popup-left-half").show(),!1===mobile?1==botShow?($searchbar.find(".sf-popup-right-half").show(),$(".sf-search-wrapper .chat-bot-intial").find(".msg-server-outer").show(),$searchbar.find(".chat-bot-intial").show(),$searchbar.find(".sf-popup-right-half").css("width","40%"),$searchbar.find(".sf-panel").css("max-width","675px"),$searchbar.find(".outer-quicklinks").css("padding","12px")):($searchbar.find(".sf-popup-right-half").hide(),$(".sf-search-wrapper .chat-bot-intial").find(".msg-server-outer").hide(),$searchbar.find(".chat-bot-intial").hide(),$searchbar.find(".sf-popup-left-half").css("width","99%"),$searchbar.find(".sf-popup-right-half").css("width","unset"),$searchbar.find(".search-popup-center").css("margin-left","20px"),$searchbar.find(".sf-bottom-product-inside").css("margin-left","20px"),$searchbar.find(".sf-bottom-quick-actions").css("margin-left","20px"),$searchbar.find(".search-popup-center").css("width","95%"),$searchbar.find(".sf-bottom-product-inside").css("width","95%"),$searchbar.find(".sf-bottom-quick-actions").css("width","95%"),$searchbar.find(".sf-search-popup-bottom").css("width","95%"),$searchbar.find(".whole-overlay").css("width","675px"),$searchbar.find(".sf-panel").css("max-width","unset"),$searchbar.find(".sf-panel").css("width","95%")):($searchbar.find(".sf-popup-right-half").show(),$(".sf-search-wrapper .chat-bot-intial").find(".msg-server-outer").show(),$searchbar.find(".chat-bot-intial").show(),$searchbar.find(".sf-popup-right-half").css("width","40%")),$searchbar.find(".sf-search-popup").hide(),$searchbar.find(".sf-searchbox").val(""),$searchbar.find(".sf-panel").hide()}function checkPopular(){$searchbar.find(".sf-checkout-inner1").empty();var e="",a="https://www.icicibank.com/personal-banking/deposits/fixed-deposit?ITM=nli_cms_FD_ PopularSearch",s="https://www.icicibank.com/personal-banking/loans/personal-loan?ITM=nli_cms_PL_SmartSearch_searchresults",t="https://www.icicibank.com/campaigns/MonsoonBonanza/index.html?ITM=nli_cms_Monsoon_Bonanza_PopularSearch",r="https://www.icicibank.com/festivebonanza/offer-page.html?utm_source=HomePage&utm_medium=Banner&utm_campaign=FestiveBonanza2022&ITM=nli_cms_FB_smartsearch_searchpopularsearch",n="https://www.icicibank.com/corporate/globaltradeservice/research-overview?ITM=nli_cms_CorporateResearch1_SmartSearch_Popularsearch_link",c="https://www.icicibank.com/corporate/globaltradeservice/research-overview?ITM=nli_cms_CorporateResearch2_SmartSearch_Popularsearch_link",o="https://www.icicibank.com/corporate/globaltradeservice/research-overview?ITM=nli_cms_BusinessResearch1_SmartSearch_Popularsearch_link",l="https://www.icicibank.com/corporate/globaltradeservice/research-overview?ITM=nli_cms_BusinessResearch2_SmartSearch_Popularsearch_link",p="https://www.icicibank.com/corporate/globaltradeservice/research-overview?ITM=nli_cms_SmeResearch1_SmartSearch_Popularsearch_link",h="https://www.icicibank.com/corporate/globaltradeservice/research-overview?ITM=nli_cms_SmeResearch2_SmartSearch_Popularsearch_link",u="https://www.icicibank.com/corporate/globaltradeservice/research-overview?ITM=nli_cms_NRI1_SmartSearch_Popularsearch_link",d="https://www.icicibank.com/instabiz?ITM=nli_cms_BusinessResearch1_SmartSearch_Popularsearch_link",m="https://www.icicibank.com/campus-power?ITM=nli_cms_CampusPower_SmartSearch_searchresults";if(!0===mobile)if(url.indexOf(".com/corporate")>-1||url.indexOf(".net/corporate")>-1)var f={popularsearchName:["Research Portal","Market Research"],popularsearchLink:[n,c]};else if(url.indexOf(".com/business-banking")>-1)f={popularsearchName:["InstaBIZ","Domestic & Global research"],popularsearchLink:[d,l]};else if(url.indexOf(".com/campus-power")>-1)f={popularsearchName:["Campus Power","Fixed Deposit"],popularsearchLink:[m,a]};else if(url.indexOf(".com/sme")>-1)f={popularsearchName:["ERG Portal","Research Reports"],popularsearchLink:[p,h]};else if(url.indexOf(".com/nri-banking")>-1||isNRI_UAT)f={popularsearchName:["Economic & Market reports","Fixed Deposit"],popularsearchLink:[u,a,s,t]};else f={popularsearchName:["Campus Power"],popularsearchLink:[m,r]};else if(url.indexOf(".com/corporate")>-1||url.indexOf(".net/corporate")>-1)f={popularsearchName:["Research Portal","Market Research"],popularsearchLink:[n,c]};else if(url.indexOf(".com/business-banking")>-1)f={popularsearchName:["InstaBIZ","Domestic & Global research","Economic Research"],popularsearchLink:[d,l,o]};else if(url.indexOf(".com/campus-power")>-1)f={popularsearchName:["Campus Power","Fixed Deposit","Personal Loan"],popularsearchLink:[m,a,s,r]};else if(url.indexOf(".com/sme")>-1)f={popularsearchName:["ERG Portal","Research Reports"],popularsearchLink:[p,h]};else if(url.indexOf(".com/nri-banking")>-1||isNRI_UAT)f={popularsearchName:["Economic & Market reports","Fixed Deposit","Personal Loan"],popularsearchLink:[u,a,s,r]};else f={popularsearchName:["Campus Power","Fixed Deposit","Personal Loan"],popularsearchLink:[m,a,s,r]};for(i=0;i"+f.popularsearchName[i]+""):i<4&&(e+='
"+f.popularsearchName[i]+"
");$searchbar.find(".sf-checkout-inner1").append(e)}function mainPageSF(){var e="';$(".sf-search-wrapper").empty(),mobile&&"true"===searchbarAttr?($(".sf-search-wrapper").html(e),$(".sf-search-wrapper .sf-search-icon").show(),$(".sf-search-wrapper .sf-search-input-text").hide()):($(".sf-search-wrapper").html(e),$(".sf-search-wrapper .sf-search-icon").hide(),$(".sf-search-wrapper .sf-search-input-text").show())}function createPlaceholdersSF(){ if(mobile)var e="";else e="";var a="
Hi! I'm ICICI Bank's smart assistant. I can help you with all your banking needs.";if(url.indexOf(".com/campus-power")>-1)var s=a+'AccountCredit CardDebit CardInsuranceInvestmentLoanPayLife Stage SolutionsEducation LoanRemittanceOverseas account
';else if(url.indexOf(".com/nri-banking")>-1||isNRI_UAT)s=a+'Rupee Savings AccountRupee DepositsForeign Currency AccountLoansForeign Currency DepositsInsuranceInvestmentValue Added Services';else s=a+'AccountCredit CardDebit CardInsuranceInvestmentLoanPayLife Stage SolutionsEducation LoanForex & Remittance';var t='',r='';$(".sf-search-wrapper").append(e),$(".sf-search-wrapper .whole-overlay").find(".sf-search-popup-bottom").append(t),$(".chat-bot-outer .msg-server-outer").remove(),msgServer=$(document.createElement("div")),msgServer.addClass("msg-server-outer"),msgServer.append(s),$(".sf-search-wrapper .sf-popup-right-half").find(".chat-bot-intial").append(msgServer),$rateYo=$("#rateYo").rateYo({rating:0,starWidth:"18px",borderRadius:"5px",fullStar:!0}),$("#rateYo").rateYo().on("rateyo.set",function(e,a){$(".sf-search-wrapper .sf-feedback-submit,.sf-search-wrapper .sf-feedback-box").fadeIn()}),$(document).on("click",".sf-search-wrapper #rateYo",function(){searchterm=!0===mobile?$searchbar.find("#sf-searched-term").text():$searchbar.find("#sfsearchedterm").text(),ratings=$rateYo.rateYo("rating"),submitratings(searchterm,ratings)}),$(".whole-overlay").append(r)}function initSpeech(){var e,a,s;window.speechSynthesis;s=document.getElementsByClassName("sf-search-mic")[0],console.log(s),s.addEventListener("play",function(e){stopAudioResponse.call(self),this.classList.add("recorder-loading"),isSpeechUsed=!0}),s.addEventListener("pause",function(s){if(stopAudioResponse.call(self),this.classList.add("record"),this.classList.remove("recording"),e&&clearTimeout(e),a&&clearTimeout(a),document.getElementById("search-chatInput")!==document.activeElement){var t=$searchbar.find("#search-chatInput").val(),r="";if(!0===mobile?($searchbar.find(".sf-search-back").show(),r="Please Rate the results",$searchbar.find("#RateText").text(r)):($searchbar.find(".close-popup").show(),$searchbar.find(".msg-server-outer:nth-child(2)").nextAll().remove(),r="Rate the results",$searchbar.find("#RateText").text(r)),!0===micOpen){var i;if(t.trim())for(let e=0;e-1)return void("url"!==i[1]||isNRI_UAT||(gtag("event","Outbound",{event_category:"Outbound",event_action:"Speech",event_label:i[2],dimension1:getCookie("Fed_ID_NLI")}),dataLayer.push({event:"custom_event",eventCategory:"Outbound",eventAction:"Speech",eventLabel:i[2]}),window.location.href=i[2]));if(1===e&&"tu"===t.toLowerCase())return void("url"!==i[1]||isNRI_UAT||(gtag("event","Outbound",{event_category:"Outbound",event_action:"Speech",event_label:i[2],dimension1:getCookie("Fed_ID_NLI")}),dataLayer.push({event:"custom_event",eventCategory:"Outbound",eventAction:"Speech",eventLabel:i[2]}),$searchbar.find("#search-chatInput").val("2"),window.location.href=i[2]));if(2===e&&"free"===t.toLowerCase())return void("url"!==i[1]||isNRI_UAT||(gtag("event","Outbound",{event_category:"Outbound",event_action:"Speech",event_label:i[2],dimension1:getCookie("Fed_ID_NLI")}),dataLayer.push({event:"custom_event",eventCategory:"Outbound",eventAction:"Speech",eventLabel:i[2]}),$searchbar.find("#search-chatInput").val("3"),window.location.href=i[2]))}return}isNRI_UAT||(gtag("event","Speech",{event_category:"Speech",event_action:t,dimension1:getCookie("Fed_ID_NLI")}),dataLayer.push({event:"custom_event",eventCategory:"Speech",eventAction:t,eventLabel:"NA"})),submitquery(t,"chatBot")}}),function(){function s(s){function t(){var t=new Promise(function(e,a){var s=new WebSocket("wss://icicibankstt.senseforth.com/transcribe");s.addEventListener("open",e),s.addEventListener("error",a)});Promise.all([s,t]).then(function(s){function t(e){p=n.createMediaStreamSource(r),p.connect(h),h.connect(n.destination)}i.classList.remove("record"),i.classList.remove("recorder-loading"),i.classList.add("recording"),e&&clearTimeout(e),e=setTimeout(function(){a&&clearTimeout(a),i.dispatchEvent(new Event("pause"))},1e4);var r=s[0];l=s[1].target,l.addEventListener("message",function(e){l.addEventListener("message",o),t(e)},{once:!0}),l.send(JSON.stringify({sampleRate:n.sampleRate}))}).catch(console.log.bind(console))}function r(){h.disconnect(),p&&p.disconnect(),l&&l.readyState===l.OPEN&&l.close()}function c(e){var a=e.target;"running"===a.state?t():"suspended"===a.state&&r()}function o(s){a&&clearTimeout(a);var t=JSON.parse(s.data),r=document.getElementById("search-chatInput"),i=document.getElementsByClassName("sf-search-mic")[0];a=setTimeout(function(){e&&clearTimeout(e),i.dispatchEvent(new Event("pause"))},3e3),null!=t.transcript_&&0!=t.transcript_.length&&(r.value=t.transcript_,"nari"===r.value||"anari"===r.value?(replaceValue=r.value.replace(r.value,"NRE"),r.value=replaceValue):"anaro"===r.value?(replaceValue=r.value.replace(r.value,"NRO"),r.value=replaceValue):"van"===r.value?(replaceValue=r.value.replace(r.value,"1"),r.value=replaceValue):"tu"===r.value?(replaceValue=r.value.replace(r.value,"2"),r.value=replaceValue):"fore"===r.value&&(replaceValue=r.value.replace(r.value,"4"),r.value=replaceValue)),t.alternatives_&&(r.value=t.alternatives_[0].transcript_),t.isFinal_&&(r.value=t.alternatives_[0].transcript_,clearTimeout(e),clearTimeout(a),i.dispatchEvent(new Event("pause")))}var l,p,h=n.createScriptProcessor(4096,1,1),u=Math.pow(2,15)-1;h.addEventListener("audioprocess",function(e){var a=e.inputBuffer.getChannelData(0);l.send(Int16Array.from(a.map(function(e){return e*u})))}),n.addEventListener("statechange",c),c({target:n})}if(window.AudioContext){var t=16e3,r=16,i=document.getElementsByClassName("sf-search-mic")[0],n=new AudioContext;i.addEventListener("pause",n.suspend.bind(n)),i.addEventListener("play",n.resume.bind(n)),i.addEventListener("play",function(){var e=navigator.mediaDevices.getUserMedia({audio:{echoCancellation:!0,channelCount:1,sampleRate:{ideal:t},sampleSize:r}});e.then(function(e){var a=n.createMediaStreamSource(e);analyser=n.createAnalyser(),a.connect(analyser)}).catch(console.log.bind(console)),s(e)},{once:!0})}else console.log("Web Audio isn't available in your browser.")}()}function closingSearch(){micOpen=!1,speechTextArray=[],speechActionArray=[],stopAudioResponse(),showflag=!1,paneltracker=!1,isSpeechUsed=!1,$(".is-open").removeClass("is-open"),$searchbar.find(".sf-overlayLoad").removeClass("sf-overlayLoad"),$searchbar.find(".sfSearchWholePopup").slideUp("fast",function(){}),$searchbar.find(".whole-overlay").slideUp("fast",function(){}),$searchbar.find(".sf-searchbox").val(""),$searchbar.find(".sf-search-popup").fadeOut(),$searchbar.find(".msg-server-outer:nth-child(2)").nextAll().remove(),$searchbar.find(".right-half .msg-user-outer").remove(),$searchbar.find(".inside-check-out").remove(),$searchbar.find(".close-popup").hide(),$searchbar.find(".sf-search-back").fadeOut(),$searchbar.find(".sf-popup-right-half").hide(),$searchbar.find(".sf-panel").empty(),$searchbar.find(".sf-panel").hide(),$(".sf-search-wrap-loader").hide(),$searchbar.find(".sf-searchbox").attr("type"," "),adjustSfSearchPopupWidth(!0),mobile&&window.parent.postMessage({ev:"close",sentinel:"amp",height:document.body.scrollHeight},"*")}function sfdebounce(e,a,s){var t;return function(){var r=this,i=arguments,n=function(){t=null,s||e.apply(r,i)},c=s&&!t;clearTimeout(t),t=setTimeout(n,a),c&&e.apply(r,i)}}(function(e){"use strict";function a(){var e,a=!1;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(a=!0),a}function s(e,a,s){return e===a?e=a:e===s&&(e=s),e}function t(e,a,s){var t=e>=a&&e<=s;if(!t)throw Error("Invalid Rating, expected value between "+a+" and "+s);return e}function r(e){return void 0!==e}function i(e,a,s){var t=s/100*(a-e);return t=Math.round(e+t).toString(16),1===t.length&&(t="0"+t),t}function n(e,a,s){if(!e||!a)return null;s=r(s)?s:0,e=g(e),a=g(a);var t=i(e.r,a.r,s),n=i(e.b,a.b,s),c=i(e.g,a.g,s);return"#"+t+c+n}function c(i,o){function p(){V=G*o.numStars+U*(o.numStars-1),j=G/V*100,W=U/V*100,i.width(V),showRating()}function h(e){var a=o.starWidth=e;return G=window.parseFloat(o.starWidth.replace("px","")),Y.find("svg").attr({width:o.starWidth,height:a}),z.find("svg").attr({width:o.starWidth,height:a}),p(),i}function d(e){return o.spacing=e,U=parseFloat(o.spacing.replace("px","")),Y.find("svg:not(:first-child)").css({"margin-left":e}),z.find("svg:not(:first-child)").css({"margin-left":e}),p(),i}function f(e){o.normalFill=e;var a=(o.rtl?z:Y).find("svg");return a.attr({fill:o.normalFill}),i}function g(e){if(o.multiColor){var a=J-K,s=a/o.maxValue*100,t=o.multiColor||{},r=t.startColor||m.startColor,c=t.endColor||m.endColor;e=n(r,c,s)}else Z=e;o.ratedFill=e;var l=(o.rtl?Y:z).find("svg");return l.attr({fill:o.ratedFill}),i}function b(e){e=!!e,o.rtl=e,f(o.normalFill),showRating()}function v(e){o.multiColor=e,g(e||Z)}function w(a){o.numStars=a,B=o.maxValue/o.numStars,Y.empty(),z.empty();for(var s=0;se&&T(e),showRating(),i}function k(e){return o.precision=e,T(o.rating),i}function I(e){return o.halfStar=e,i}function y(e){return o.fullStar=e,i}function S(e){var a=e%B,s=B/2,t=o.halfStar,r=o.fullStar;return r||t?(r||t&&a>s?e+=B-a:(e-=a,a>0&&(e+=s)),e):e}function A(e){var a=Y.offset(),s=a.left,t=s+Y.width(),r=o.maxValue,i=e.pageX,n=0;if(it)n=r;else{var c=(i-s)/(t-s);if(U>0){c*=100;for(var l=c;l>0;)l>j?(n+=B,l-=j+W):(n+=l/j*B,l=0)}else n=c*o.maxValue;n=S(n)}return o.rtl&&(n=r-n),n}function C(e){return o.readOnly=e,i.attr("readonly",!0),D(),e||(i.removeAttr("readonly"),q()),i}function T(e){var a=e,r=o.maxValue;return"string"==typeof a&&("%"===a[a.length-1]&&(a=a.substr(0,a.length-1),r=100,_(r)),a=parseFloat(a)),t(a,K,r),a=parseFloat(a.toFixed(o.precision)),s(parseFloat(a),K,r),o.rating=a,showRating(),Q&&i.trigger("rateyo.set",{rating:a}),i}function $(e){return o.onInit=e,i}function x(e){return o.onSet=e,i}function L(e){return o.onChange=e,i}function N(e){var a=A(e).toFixed(o.precision),t=o.maxValue;a=s(parseFloat(a),K,t),showRating(a),i.trigger("rateyo.change",{rating:a})}function R(){a()||(showRating(),i.trigger("rateyo.change",{rating:o.rating}))}function O(e){var a=A(e).toFixed(o.precision);a=parseFloat(a),E.rating(a)}function F(e,a){o.onInit&&"function"==typeof o.onInit&&o.onInit.apply(this,[a.rating,E])}function M(e,a){o.onChange&&"function"==typeof o.onChange&&o.onChange.apply(this,[a.rating,E])}function P(e,a){o.onSet&&"function"==typeof o.onSet&&o.onSet.apply(this,[a.rating,E])}function q(){i.on("mousemove",N).on("mouseenter",N).on("mouseleave",R).on("click",O).on("rateyo.init",F).on("rateyo.change",M).on("rateyo.set",P)}function D(){i.off("mousemove",N).off("mouseenter",N).off("mouseleave",R).off("click",O).off("rateyo.init",F).off("rateyo.change",M).off("rateyo.set",P)}this.node=i.get(0);var E=this;i.empty().addClass("sf-jq-ry-container");var B,G,j,U,W,V,H=e("
").addClass("sf-jq-ry-group-wrapper").appendTo(i),Y=e("
").addClass("sf-jq-ry-normal-group").addClass("sf-jq-ry-group").appendTo(H),z=e("
").addClass("sf-jq-ry-rated-group").addClass("sf-jq-ry-group").appendTo(H),K=0,J=o.rating,Q=!1;window.showRating=function(e,a){r(e)||(e=o.rating),1==a&&(o.rating=0),J=e;var s=e/B,t=s*j;s>1&&(t+=(Math.ceil(s)-1)*W),g(o.ratedFill),t=o.rtl?100-t:t,z.css("width",t+"%")};var Z=o.ratedFill;this.rating=function(e){return r(e)?(T(e),i):o.rating},this.destroy=function(){return o.readOnly||D(),c.prototype.collection=l(i.get(0),this.collection),i.removeClass("sf-jq-ry-container").children().remove(),i},this.method=function(e){if(!e)throw Error("Method name not specified!");if(!r(this[e]))throw Error("Method "+e+" doesn't exist!");var a=Array.prototype.slice.apply(arguments,[]),s=a.slice(1),t=this[e];return t.apply(this,s)},this.option=function(e,a){if(!r(e))return o;var s;switch(e){case"starWidth":s=h;break;case"numStars":s=w;break;case"normalFill":s=f;break;case"ratedFill":s=g;break;case"multiColor":s=v;break;case"maxValue":s=_;break;case"precision":s=k;break;case"rating":s=T;break;case"halfStar":s=I;break;case"fullStar":s=y;break;case"readOnly":s=C;break;case"spacing":s=d;break;case"rtl":s=b;break;case"onInit":s=$;break;case"onSet":s=x;break;case"onChange":s=L;break;default:throw Error("No such option as "+e)}return r(a)?s(a):o[e]},w(o.numStars),C(o.readOnly),o.rtl&&b(o.rtl),this.collection.push(this),this.rating(o.rating,!0),Q=!0,i.trigger("rateyo.init",{rating:o.rating})}function o(a,s){var t;return e.each(s,function(){if(a===this.node)return t=this,!1}),t}function l(a,s){return e.each(s,function(e){if(a===this.node){var t=s.slice(0,e),r=s.slice(e+1,s.length);return s=t.concat(r),!1}}),s}function p(a){var s=c.prototype.collection,t=e(this);if(0===t.length)return t;var r=Array.prototype.slice.apply(arguments,[]);if(0===r.length)a=r[0]={};else{if(1!==r.length||"object"!=typeof r[0]){if(r.length>=1&&"string"==typeof r[0]){var i=r[0],n=r.slice(1),l=[];return e.each(t,function(e,a){var t=o(a,s);if(!t)throw Error("Trying to set options before even initialization");var r=t[i];if(!r)throw Error("Method "+i+" does not exist!");var c=r.apply(t,n);l.push(c)}),l=1===l.length?l[0]:l,l}throw Error("Invalid Arguments")}a=r[0]}return a=e.extend({},d,a),e.each(t,function(){var t=o(this,s);if(!t)return new c(e(this),e.extend({},a))})}function h(){return p.apply(this,Array.prototype.slice.apply(arguments,[]))}var u='',d={starWidth:"32px",normalFill:"gray",ratedFill:"#f39c12",numStars:5,maxValue:5,precision:1,rating:0,fullStar:!1,halfStar:!1,readOnly:!1,spacing:"0px",rtl:!1,multiColor:null,onInit:null,onChange:null,onSet:null,starSvg:null},m={startColor:"#c0392b",endColor:"#e77817"},f=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i,g=function(e){if(!f.test(e))return null;var a=f.exec(e),s=parseInt(a[1],16),t=parseInt(a[2],16),r=parseInt(a[3],16);return{r:s,g:t,b:r}};c.prototype.collection=[],window.RateYo=c,e.fn.rateYo=h})(window.jQuery);var userSearchQuery,FAQdata,searchedValue,headerValue,videosdata,crossproductsData,sfsearchbaseurlapi="https://icicibanksmartsearch.senseforth.com/",sfsearchbaseurl="https://icicibanksmartsearch.senseforth.com/ICICI/",checkContext=!1,checkJS2=!1,oSearchterm="",sessionID="",splitvalue=[],populardata=[],showData="normal",showflag=!1,isSearch=!1,audioArray=[],micOpen=!1,micClicked=!1,speechTextArray=[],speechActionArray=[],isSpeechUsed=!1,botShow=!0,flag=!0,isnri=!1,iswealth=!0,iscorporate=!1,pagesection="",ispersonal=!1,mobile=window.innerWidth<=1024||window.screen.width<=1024,$searchbar=$(".sf-search-wrapper"),$loader=$(".sf-search-wrap-loader"),url=window.location.href.toLowerCase(),isNRI_UAT=!!(url&&url.indexOf(".net/nri-banking")>-1),isScrollBottom=!1,feedbackFormActiveCTA=[],searchAttr=document.querySelector(".sf-search-wrapper");if(searchAttr&&searchAttr.hasAttribute("data-src-backward-compatibility"))var searchbarAttr=searchAttr.getAttribute("data-src-backward-compatibility");else console.log("Attribute does not exist or is not set.");var iurl="PROD",iframeapiurl="https://www.icicibank.com/ipal/mccm-search-default";pagesection=url.indexOf(".com/privilege-banking")>-1?"privilege-banking":url.indexOf(".com/nri-banking")>-1?"nri-banking":isNRI_UAT?"nri-banking-uat":url.indexOf(".com/wealth-management")>-1?"wealth-management":url.indexOf(".com/corporate")>-1||url.indexOf(".net/corporate")>-1?"corporate":url.indexOf(".com/business-banking")>-1?"business-banking":url.indexOf(".com/sme")>-1?"sme":"personal",$(document).ready(function(){var e=getAllUrlParams(decodeURIComponent(window.location.href));stopAudioResponse(),setTimeout(function(){e.hasOwnProperty("search_query")&&($("#search-chatInput").click(),setTimeout(function(){$("#search-chatInput").val(e.search_query);var a=$("#search-chatInput").val();submitquery(a,"SubmitSearch"),$(".sf-search-wrapper .close-popup").show()},1e3))},500)}),gtag("js",new Date),gtag("config","G-33QEM13FPT"),$(document).on("focus",".sf-search-wrapper #search-chatInput",function(){if($("#search-chatInput").val().trim().length<=0&&showing(),mobile&&window.parent.postMessage({ev:"open",sentinel:"amp",type:"embed-size",height:window.screen.availHeight},"*"),!1===showflag){product(),wantTo(),checkPopular(),showing();var e="";!0===mobile?($searchbar.find(".sf-popup-right-half").hide(),$searchbar.find(".sf-search-back").show(),$searchbar.find(".faq-mob-button").show(),$searchbar.find(".close-popup").hide(),e="Please Rate the results",$searchbar.find("#RateText").text(e)):($searchbar.find(".sf-popup-right-half").show(),$searchbar.find(".sf-search-back").hide(),$searchbar.find(".close-popup").show(),$searchbar.find(".faq-mob-button").hide(),e="Rate the results",$searchbar.find("#RateText").text(e)),showflag=!1}"true"===searchbarAttr?($(".sf-search-popup-header").show(),$searchbar.find(".close-popup").show(),$(".sf-search-popup-bottom").addClass("sf-search-popup-bottom-new")):mobile&&$(".sf-search-popup-header").hide()}),mobile&&"true"==searchbarAttr?$(document).on("click",".sf-search-wrapper .sf-search-icon",function(){if($(".header-level-2-left .site-logo").hide(),$(".header-level-2-right .header-list-menu .d-lg-none").hide(),$(".header-level-2-right .header-list-menu .hed-dropdown").hide(),$(".header-level-2-right").css("width","100%"),$(".sf-search-wrapper .sf-search-icon").hide(),$(".sf-search-wrapper").addClass("sf-search-wrapper-mob"),$(".sf-search-back").addClass("sf-mobile"),$(".sf-search-popup-header").show(),$(".sf-search-wrapper .sf-search-input-text").show(),$(".sf-search").addClass("sf-search-new"),$("#search-chatInput").val().trim().length<=0&&showing(),window.parent.postMessage({ev:"open",sentinel:"amp",type:"embed-size",height:window.screen.availHeight},"*"),!1===showflag){product(),wantTo(),checkPopular(),showing();var e="";!0===mobile?($searchbar.find(".whole-overlay").css("margin-left","-64px"),$searchbar.find(".whole-overlay").css("top","20px"),$searchbar.find(".sf-popup-right-half").hide(),$searchbar.find(".sf-search-back").show(),$searchbar.find(".faq-mob-button").show(),$searchbar.find(".close-popup").show(),e="Please Rate the results",$searchbar.find("#RateText").text(e)):($searchbar.find(".sf-popup-right-half").show(),$searchbar.find(".sf-search-back").hide(),$searchbar.find(".close-popup").show(),$searchbar.find(".faq-mob-button").hide(),e="Rate the results",$searchbar.find("#RateText").text(e)),showflag=!1}}):$(document).on("click",".sf-search-wrapper .sf-search-input-text",function(){!$(".whole-overlay").length>0&&createPlaceholdersSF(),checkJS2||loadSecondSF()}),isNRI_UAT&&($(".search-whole").css("cursor","pointer"),$(document).on("focus",".sf-search-wrapper .sf-search-input-img",function(){$(".search-whole").css("cursor","pointer")}),$(document).on("click",".sf-search-wrapper .sf-search-input-img",function(){$(".search-whole").css("cursor","pointer");var e=$("#search-chatInput").val();e.trim().length>0&&submitquery(e,"chatBot")})),mainPageSF(),function(){function e(){r<=s.length-1?(t+=s[r],++r,$("#search-chatInput").attr("placeholder",t)):(clearInterval(n),r=0,setTimeout(a,300))}function a(){var a=setInterval(function(){i%4==0?$("#search-chatInput").attr("placeholder",t):i%4==1?$("#search-chatInput").attr("placeholder",t+"."):i%4==2?$("#search-chatInput").attr("placeholder",t+".."):i%4==3&&$("#search-chatInput").attr("placeholder",t+"..."),12===i&&(i=0,$("#search-chatInput").attr("placeholder",t),clearInterval(a),t="",setTimeout(function(){n=setInterval(e,50)},200)),++i},250)}var s=["S","e","a","r","c","h"," ","f","o","r"," ","P","r","o","d","u","c","t","s",","," ","S","e","r","v","i","c","e","s"],t="",r=0,i=0,n=setInterval(e,50)}();var sel=-1;$searchbar.find(".sf-panel").hide(),$(document).on("click",".sf-search-wrapper .close-popup",function(){var e=$searchbar.find("#sf-searched-term").text();""===e.trim()||isNRI_UAT?isNRI_UAT||(gtag("event","SearchWindowClosed",{event_category:"SearchWindowClosed",event_action:"DefaultPopup",event_label:"",dimension1:getCookie("Fed_ID_NLI")}),dataLayer.push({ event:"custom_event",eventCategory:"SearchWindowClosed",eventAction:"DefaultPopup",eventLabel:"NA"})):(gtag("event","SearchWindowClosed",{event_category:"SearchWindowClosed",event_action:"SearchResults",event_label:e,dimension1:getCookie("Fed_ID_NLI")}),dataLayer.push({event:"custom_event",eventCategory:"SearchWindowClosed",eventAction:"SearchResults",eventLabel:e})),"true"===searchbarAttr&&mobile&&($(".header-level-2-left .site-logo").show(),$(".header-level-2-right .header-list-menu .d-lg-none").show(),$(".header-level-2-right .header-list-menu .hed-dropdown").show(),$(".header-level-2-right").css("width","unset"),$(".sf-search-wrapper .sf-search-icon").show(),$(".sf-search-wrapper .sf-search-input-text").hide(),$(".sf-search-new").removeClass("sf-search-new"),$(".sf-search-wrapper-mob").removeClass("sf-search-wrapper-mob")),closingSearch()}),$(document).click(function(e){$(e.target).hasClass("sfSearchWholePopup")&&("true"===searchbarAttr&&mobile&&($(".header-level-2-left .site-logo").show(),$(".header-level-2-right .header-list-menu .d-lg-none").show(),$(".header-level-2-right .header-list-menu .hed-dropdown").show(),$(".header-level-2-right").css("width","unset"),$(".sf-search-wrapper .sf-search-icon").show(),$(".sf-search-wrapper .sf-search-input-text").hide(),$(".sf-search-new").removeClass("sf-search-new"),$(".sf-search-wrapper-mob").removeClass("sf-search-wrapper-mob")),closingSearch())}),$(document).click(function(e){$(e.target).hasClass("sf-search-back")&&closingSearch()}),$(document).on("click",".sf-search-wrapper #search-chatInput",function(){micOpen=!1,speechTextArray=[],speechActionArray=[],isSpeechUsed=!1,stopAudioResponse()}),$(document).on("click",".sf-search-wrapper .sf-search-mic",function(){checkJS2||loadSecondSF(),micOpen=!1,speechTextArray=[],speechActionArray=[],stopAudioResponse(),this.classList.contains("recording")?this.dispatchEvent(new Event("pause")):this.classList.contains("sf-search-mic")&&prepareAudioData(["Hi, How can I help you? Please ask your query"],!0)}),$(".sf-searchbox").keyup(function(e){if(term=$(".sf-searchbox").val(),13==e.keyCode){if($searchbar.find(".chat-bot-intial").hide(),$(".sf-search-wrapper .chat-bot-outer").find(".msg-server-outer").hide(),$(".sf-search-wrapper .chat-bot-outer").find(".msg-user-outer").remove(),$(".sf-search-wrapper .chat-bot-outer").children(".msg-server-outer").last().hide(),""==$(".sf-searchbox").val()&&$searchbar.find(".chat-bot-intial").show(),showRating(0,!0),paneltracker){var a=$(".sf-searchbox").attr("type");" "==a&&(a="product"),isNRI_UAT||(gtag("event","AutoSuggestClick",{event_category:"AutoSuggestClick",event_action:$(".sf-searchbox").val(),event_label:void 0!==selected?a+"||"+selected:a,dimension1:getCookie("Fed_ID_NLI")}),dataLayer.push({event:"custom_event",eventCategory:"AutoSuggestClick",eventAction:$(".sf-searchbox").val(),eventLabel:void 0!==selected?a+"||"+selected:a}))}submitquery(term,"SubmitSearch")}}),$(".sf-search-wrapper .sf-searchbox").keyup(function(e){0==$(".sf-search-wrapper .sf-searchbox").val().trim().length?($searchbar.find(".sf-panel").hide(),"normal"==showData?$searchbar.find(".sf-popup-left-half").show():lefthalfShowing()):!isNRI_UAT&&38!=e.which&&40!=e.which&&13!=e.which&&$(".sf-searchbox").val().trim().length>0&&($(".sf-search-wrapper .sf-searchbox").attr("type"," "),1!==$(".sf-searchbox").val().trim().length||8===e.which||isNRI_UAT||(gtag("event","QueryInitiated",{event_category:"QueryInitiated",dimension1:getCookie("Fed_ID_NLI")}),dataLayer.push({event:"custom_event",eventCategory:"QueryInitiated",eventAction:"NA",eventLabel:"NA"})),isNRI_UAT||(gtag("event","LetterEntered",{event_category:"LetterEntered",event_action:$(".sf-searchbox").val(),dimension1:getCookie("Fed_ID_NLI")}),dataLayer.push({event:"custom_event",eventCategory:"LetterEntered",eventAction:$(".sf-searchbox").val(),eventLabel:"NA"})),sfdebounceAutosuggest())});var sfdebounceAutosuggest=sfdebounce(function(){getautoSuggestApi()},250);$(".sf-search-wrapper .sf-searchbox").keydown(function(e){switch(e.which){case 38:$(".sf-search-wrapper .sf-searchbox").focus(),$searchbar.find(".sf-showing-result").hide();var a=$searchbar.find(".sf-panelitem").length;0!=sel&&$searchbar.find(".sf-searchbox").val().trim().length>0&&(sel-=1,selected=sel+1,showingPanel(),$searchbar.find(".sf-panelitem").removeClass("sf-selected"),$searchbar.find(".sf-panelitem").eq(sel).addClass("sf-selected"),$searchbar.find(".sf-searchbox").val($searchbar.find(".sf-panelitem").eq(sel).attr("searchterm")),$searchbar.find(".sf-searchbox").attr("type",$searchbar.find(".sf-panelitem").eq(sel).attr("type")),paneltracker=!0);break;case 40:$(".sf-search-wrapper .sf-searchbox").focus();a=$searchbar.find(".sf-panelitem").length;sel0&&(sel+=1,selected=sel+1,showingPanel(),$searchbar.find(".sf-panelitem").removeClass("sf-selected"),$searchbar.find(".sf-panelitem").eq(sel).addClass("sf-selected"),$searchbar.find(".sf-searchbox").val($searchbar.find(".sf-panelitem").eq(sel).attr("searchterm")),$searchbar.find(".sf-searchbox").attr("type",$searchbar.find(".sf-panelitem").eq(sel).attr("type")),paneltracker=!0);break;default:return}e.preventDefault()});