",{id:"header-additional",class:"header-additional"}),$.each(s["header-additional"],function(e,t){i=$("
",{id:e}),$.each(t,function(e,t){r=$("",{class:e}).text(t),i.append(r)}),n.append(i)}),$("header").append(n))},setAuthPanel:function(){var n,r;$.each(s["auth-panel"],function(e,t){r=$(document.createDocumentFragment()),$.each(t,function(e,t){n=$("",{class:e}).text(t),r.append(n)}),$("#"+e).append(r),"multiclient"===e&&(e="true"===localStorage.getItem("is_index_fop_page"),""!==t.en||""!==t.ru||""!==t.uk||e?window.need_hide_auth_nav_bar=!1:((t=$.Event("click")).currentTarget=document.getElementById("client"),$("#client").trigger(t),window.need_hide_auth_nav_bar=!0))})},setMobileOsAccessText:function(){var n,r;s["mobile-os-access-text"]&&$.each(s["mobile-os-access-text"],function(e,t){r=$(document.createDocumentFragment()),n=$("
",{class:e}).text(t),r.append(n),$("#mobile-os-access-text").append(r)})},setMobileOsAccess:function(){var e=$("#mobile-os-access"),n=$(document.createDocumentFragment()),t=$("#mobile-os-access div a"),r="";$.each(s["mobile-os-access"].text,function(e,t){e=$("
",{class:e}).text(t);n.append(e)}),e.prepend(n),$.each(s.smartphoneApplicationLinkTitle,function(e,t){r+='
'+t+"
"}),$.each(t,function(e,t){t.innerHTML=r+t.innerHTML}),"boolean"==typeof s["mobile-os-access"].links&&s["mobile-os-access"].links&&e.find(".mobile-os-access__links").show()},setLeftLinks:function(){var o,a;s["left-links-additional"]&&(o=$("",{id:"left-links-additional",class:"hidden"}),a=s["left-links-additional"],$.each(a,function(i){$.each(a[i].url,function(e){var n,r,t=a[i].url[e];c(t)&&(n=$(''),$.each(a[i].text,function(e,t){t.length&&(r=$("",{class:e}).text(t),n.append(r))}),o.append(n))})}),o.insertAfter("header"))},setFooterLink:function(){$.each(s["footer-additional"],function(r){var i,e,n,o;s["footer-additional"][r]["localed-links"]?(i=s["footer-additional"][r].text,e=s["footer-additional"][r].url,$.each(e,function(e,t){var n;c(t)&&i[e].length&&(n=$("",{class:e}),t=$(''+i[e]+""),n.append(t),$("#footer-additional").append(n))})):c(s["footer-additional"][r].url)&&(o=s["footer-additional"][r].url?$(''):$(''),$.each(s["footer-additional"][r].text,function(e,t){(t=/{currentYear}/.test(t)?t.replace("{currentYear}",(new Date).getFullYear()):t).length&&(n=$("",{class:e}).text(t),o.append(n))}),$("#footer-additional").append(o))})},setFooterMobileLinks:function(){var e,t,n,r;s["footer-links"]&&(e=s["footer-links"].appStore.url||i.url,t=s["footer-links"].appStore["qr-code"]||i.qrCode,n=s["footer-links"].googlePlay.url||o.url,r=s["footer-links"].googlePlay["qr-code"]||o.qrCode,$(".products-store--app-store").prop("href",e),$(".ios").prop("href",e),$(".products-store__qr-code--app-store").prop("src",t),$(".products-store--google-play").prop("href",n),$(".android").prop("href",n),$(".products-store__qr-code--google-play").prop("src",r))},setFooterInfo:function(){var e=$("footer.main"),n=$(".help"),r=$(".client-version-container"),i=$(".server-version-container"),o=$(".products-container");$.each(s["footer-info"],function(e,t){"help"!==e||t?"faq"!==e||t?"version"!==e||t?"products"!==e||t?"supported-1c"!==e||t||$(".products_1c").remove():o.find("."+e).remove():(r.find(".ru").remove(),r.find(".uk").remove(),r.find(".en").remove(),r.find(".client-version").remove(),i.find(".ru").remove(),i.find(".uk").remove(),i.find(".en").remove(),i.find(".server-version").remove()):n.find("."+e).remove():(n.find(".ru").remove(),n.find(".uk").remove(),n.find(".en").remove())}),e.show()},setTooltips:function(){var r;s.tooltips&&$.each(s.tooltips,function(n,e){$.each(e,function(e,t){r=$("",{class:"tooltip "+e}).text(t),$(n).parent("."+e).css({position:"relative"}).append(r)})})},render:function(){$("body").hasClass("not-supported")?(this.setHeaderAdditional(),this.setFooterMobileLinks(),this.setFooterLink(),this.setFooterInfo()):(this.setHeaderAdditional(),this.setAuthPanel(),this.setMobileOsAccess(),this.setMobileOsAccessText(),this.setLeftLinks(),this.setFooterMobileLinks(),this.setFooterLink(),this.setFooterInfo(),this.setTooltips())}},smartphoneApplicationLinkTitle:{get:function(){return s.smartphoneApplicationLinkTitle[localStorage.getItem("locale")||"uk"]||"iBank2 UA"},render:function(){var e=this.get();$(".js-locale-get_text").html(e)}},recaptchaPublicKey:{get:function(){return s["recaptcha-public-key"]}},supportedLocales:{get:function(){let e=s["supported-locales"];return e=!(e=e&&e.length?e.filter(e=>"ua"===e||"en"===e||"ru"===e):e)||e.length<1?["ua","en","ru"]:e},renderSupportLocales:function(e,t){e.forEach(e=>{$(".locales").append($("",{href:e,id:"ua"===e?"uk":e,onclick:"prepareChangeLocale(event)",class:e===t?"current":"",text:e.toUpperCase()}))})},setClass:function(e,t){e&&e.setAttribute("class",t)},changeCmsLocale:function(e){var t=document.body,n=t.className.split(/\s+/);let r=null;for(let e=0;!r&&e${t}
`)}),t.append(i)}if(r(e)){t.addClass("file-active");const o=$('');$.each(e,function(e,t){o.append(`${t}
`)}),t.append(o)}t.hover(function(){t.find("> div").stop().animate({opacity:1},500)},function(){t.find("> div").stop().animate({opacity:0},500)})},prepareKeyStorageIconElement:function(e,t){setTimeout(function(){"DEVICE"===t?(e.removeClass("file").addClass("device"),e.find(".file").css("display","none"),e.find(".device").css("display","block")):(e.removeClass("device").addClass("file"),e.find(".file").css("display","block"),e.find(".device").css("display","none"))},0)}},logoBackgroundImage:{get:function(){return s["logo-background-image"]},setBgImg:function(){var e=r(s["auth-background-image"]),t=$(".left-side"),n=$(".background-overlay");n.length&&e?t.length?t.css({"background-image":`url(${$(".fop").length&&e.fop?e.fop:e.basic})`}):(n.width()?n:$("body")).css({"background-image":`url(${e.basic})`}):"Android"!==BrowserDetect.OS&&"iPhone/iPod"!==BrowserDetect.OS||!e.mobile?e&&(t.length?t.css({"background-image":`url(${$(".fop").length&&e.fop?e.fop:e.basic})`}):$("body").css({"background-image":`url(${e.basic})`})):$("body").css({"background-image":`url(${e.mobile})`})},setLogoImg:function(){var e=r(s["logo-background-image"]);e.basic?($("#logo_img").attr("src",e.auth||e.basic),$("#logo_img_reg").attr("src",e.auth||e.basic),$("#logo_img_fop").attr("src",e.fop||e.basic)):($("#logo_img").hide(),$("#logo_img_fop").hide()),"en"===localStorage.getItem("locale")&&e.another_basic&&($("#logo_img").attr("src",e.another_basic),$("#logo_img_reg").attr("src",e.another_basic),$("#logo_img_fop").attr("src",e.another_basic))},render:function(){this.setLogoImg(),this.setBgImg()}}};function c(e){return""===e||/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g.test(e)}function r(e){const t=(new Date).getTime(),n=Object.assign({},e);return Object.keys(n).forEach(function(e){n[e]&&(n[e]="img/"+n[e]+"?"+t)}),n}return{init:function(){var e=$.Deferred();return s?e.resolve():(e=window.location.protocol+"//"+window.location.host+/\/[a-z]\w+\/|\/[A-Z]\w+\//.exec(window.location.pathname)+"cms.json",$.ajax({dataType:"json",url:e,mimeType:"application/json",cache:!1}).done(function(e){s=e}).fail(function(){console.error("Не удалось получить cms.json")}))},get:function(e){if(t.hasOwnProperty(e)&&t[e].hasOwnProperty("get"))return t[e].get()},getBlock:function(e){if(t.hasOwnProperty(e))return t[e]},render:function(e){this.init().done(function(){e.forEach(function(e){t.hasOwnProperty(e)&&t[e].hasOwnProperty("render")&&t[e].render()})})}}}(),Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e,t){var n,r,i,o,a,s,c,u="",l=0;for(t||(e=Base64.utf8_encode(e));l\s*$/g;function Ne(e,t){return c(e,"table")&&c(11!==t.nodeType?t:t.firstChild,"tr")&&_(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Fe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,r,i,o;if(1===t.nodeType){if(S.hasData(e)&&(o=S.get(e).events))for(i in S.remove(t,"handle events"),o)for(n=0,r=o[i].length;n").append(_.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},_.expr.pseudos.animated=function(t){return _.grep(_.timers,function(e){return t===e.elem}).length},_.offset={setOffset:function(e,t,n){var r,i,o,a,s=_.css(e,"position"),c=_(e),u={};"static"===s&&(e.style.position="relative"),o=c.offset(),r=_.css(e,"top"),a=_.css(e,"left"),s=("absolute"===s||"fixed"===s)&&-1<(r+a).indexOf("auto")?(i=(s=c.position()).top,s.left):(i=parseFloat(r)||0,parseFloat(a)||0),null!=(t=y(t)?t.call(e,n,_.extend({},o)):t).top&&(u.top=t.top-o.top+i),null!=t.left&&(u.left=t.left-o.left+s),"using"in t?t.using.call(e,u):c.css(u)}},_.fn.extend({offset:function(t){var e,n;return arguments.length?void 0===t?this:this.each(function(e){_.offset.setOffset(this,t,e)}):(n=this[0])?n.getClientRects().length?(e=n.getBoundingClientRect(),n=n.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===_.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===_.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=_(e).offset()).top+=_.css(e,"borderTopWidth",!0),i.left+=_.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-_.css(r,"marginTop",!0),left:t.left-i.left-_.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===_.css(e,"position");)e=e.offsetParent;return e||A})}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;_.fn[t]=function(e){return f(this,function(e,t,n){var r;if(g(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),_.each(["top","left"],function(e,n){_.cssHooks[n]=tt(v.pixelPosition,function(e,t){if(t)return t=et(e,n),Ve.test(t)?_(e).position()[n]+"px":t})}),_.each({Height:"height",Width:"width"},function(a,s){_.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){_.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return f(this,function(e,t,n){var r;return g(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?_.css(e,t,i):_.style(e,t,n,i)},s,n?e:void 0,n)}})}),_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){_.fn[t]=function(e){return this.on(t,e)}}),_.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),_.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){_.fn[n]=function(e,t){return 0",{class:"drop-down"}).hide()),e=(v.searchable?h.addClass("searchable"):h.addClass("selectonly non-searchable"),h.on("click","li",function(e){l(e,h,p,o)}).on("mouseover","li",function(e){var t=h.find("li.hover");0
'+t+"