",{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 jt(e,t){return S(e,"table")&&S(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function Bt(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Wt(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function $t(e,t){var n,r,i,o;if(1===t.nodeType){if(m.hasData(e)&&(o=m.get(e).events))for(i in m.remove(t,"handle events"),o)for(n=0,r=o[i].length;n").append(x.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},x.expr.pseudos.animated=function(t){return x.grep(x.timers,function(e){return t===e.elem}).length},x.offset={setOffset:function(e,t,n){var r,i,o,a,s=x.css(e,"position"),c=x(e),u={};"static"===s&&(e.style.position="relative"),o=c.offset(),r=x.css(e,"top"),a=x.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,x.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)}},x.fn.extend({offset:function(t){var e,n;return arguments.length?void 0===t?this:this.each(function(e){x.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"===x.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"===x.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=x(e).offset()).top+=x.css(e,"borderTopWidth",!0),i.left+=x.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-x.css(r,"marginTop",!0),left:t.left-i.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===x.css(e,"position");)e=e.offsetParent;return e||yt})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;x.fn[t]=function(e){return l(this,function(e,t,n){var r;if(M(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)}}),x.each(["top","left"],function(e,n){x.cssHooks[n]=an(g.pixelPosition,function(e,t){if(t)return t=on(e,n),Zt.test(t)?x(e).position()[n]+"px":t})}),x.each({Height:"height",Width:"width"},function(a,s){x.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){x.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return l(this,function(e,t,n){var r;return M(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?x.css(e,t,i):x.style(e,t,n,i)},s,n?e:void 0,n)}})}),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.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.on("mouseenter",e).on("mouseleave",t||e)}}),x.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){x.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+"