",""]);var Ee=/<|?\w+;/;function ke(e,t,n,r,i){for(var o,a,s,u,c,l=t.createDocumentFragment(),f=[],d=0,p=e.length;d\s*$/g;function Ne(e,t){return u(e,"table")&&u(11!==t.nodeType?t:t.firstChild,"tr")&&_(e).children("tbody")[0]||e}function Fe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function je(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(b.hasData(e)&&(o=b.get(e).events))for(i in b.remove(t,"handle events"),o)for(n=0,r=o[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),x.head.appendChild(r[0])},abort:function(){i&&i()}}}),[]),Qt=/(=)\?(?=&|$)|\?\?/,Jt=(_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Yt.pop()||_.expando+"_"+Ct.guid++;return this[e]=!0,e}}),_.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Qt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Qt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Qt,"$1"+r):!1!==e.jsonp&&(e.url+=(Ot.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||_.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=S[r],S[r]=function(){o=arguments},n.always(function(){void 0===i?_(S).removeProp(r):S[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Yt.push(r)),o&&y(i)&&i(o[0]),o=i=void 0}),"script"}),v.createHTMLDocument=((o=x.implementation.createHTMLDocument("").body).innerHTML="",2===o.childNodes.length),_.parseHTML=function(e,t,n){var r;return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((r=(t=x.implementation.createHTMLDocument("")).createElement("base")).href=x.location.href,t.head.appendChild(r)):t=x),r=!n&&[],(n=J.exec(e))?[t.createElement(n[1])]:(n=ke([e],t,r),r&&r.length&&_(r).remove(),_.merge([],n.childNodes)))},_.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").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"),u=_(e),c={};"static"===s&&(e.style.position="relative"),o=u.offset(),r=_.css(e,"top"),a=_.css(e,"left"),s=("absolute"===s||"fixed"===s)&&-1<(r+a).indexOf("auto")?(i=(s=u.position()).top,s.left):(i=parseFloat(r)||0,parseFloat(a)||0),null!=(t=y(t)?t.call(e,n,_.extend({},o)):t).top&&(c.top=t.top-o.top+i),null!=t.left&&(c.left=t.left-o.left+s),"using"in t?t.using.call(e,c):u.css(c)}},_.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||E})}}),_.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),$e.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 0r.scrollHeight||"top"===t?n!==s&&(a.css("top",-n-7+"px"),e.addClass("chosen__drop-down-border_top-position")):n!==s&&a.css("top",i+7+"px")}_.fn.chosen=function(v){function m(e,t){v.renderInput&&v.renderInput(e,v.data,t)}function y(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return String(e).replace(/[&<>"'\/]/g,function(e){return t[e]})}function r(){u={},_.each(v.data.array,function(e,t){u[S(t,v.data.id)]=t})}function w(t){t.show().slideDown(v.duration,function(){var e=t.closest("div.scrollbox");e.css("height",Math.min(t.height()+10,v.maxHeight)),e.css("z-index",20),e.attr("data-tmp","tmp_"+Math.random()),e.trigger("scrollbox-change")})}function h(e,t){for(var n=0;n"+y(r.substr(n,t.length))+""+y(r.substr(n+t.length)):y(r),v.accType&&e.type_desc&&(r+=''+e.type_desc+" "),e.client_comment&&(r+=""+y(e.client_comment)),s&&(e.client_comment&&(r='"),n=S(e,v.data.id),r=' '+(r="all"===n&&v.data.all?''+(S(e,"text")||S(e,v.data.text))+" ":r)),e.client_comment?""+r+"
":r},strictCondition:function(e,t){return void 0!==e[t]},class:"",width:"100%",scrollBoxWidth:"100%",duration:250,searchable:!0,beforeHandleClickFn:null,strict:!1,ignoreCase:!0,inputId:!1,stripOptionSize:!0,maxHeight:200,pageSize:100,preloadText:"",markedIds:[],data:{id:"",text:null,array:[]}},v),{}),l=(r(),s?function(e,t,n){var r,i=_(e.target),o=i.is("li")?i:i.closest("li"),a=(i.is("input")?r=i.prop("checked"):(r=!(i=o.find("input")).prop("checked"),i.prop("checked",r)),o.data("id")),s=v.data.selection,i=[],o=[];if(r)if("notInBank"!==a&&"inBank"!==a||(i=h(a,v.data.array),_.each(i,function(e,t){s[t]=!0})),"all"===a&&v.data.all)_.each(v.data.array,function(e,t){s[t[v.data.id]]=!0});else if(e.shiftKey){var u,c=A.findIndex(v.data.array,function(e){return+e[v.data.id]===a}),l=A.keys(s);switch(!0){case 1===l.length:u=l[0],p=A.findIndex(v.data.array,function(e){return e[v.data.id]===u});break;case 1").addClass("marked")),u[t]),t=x(e,v.data.text),i=n.val();v.searchable?r(t):n.val(t).change(),n.trigger("chosen:select",[e,i])});return this.each(function(){var d,p=_(this).attr({autocomplete:"off",readonly:!v.searchable}).addClass("select-box"),e=(v.searchable||p.on("focus",this.blur),p.bind("refresh",function(e,t){v.data.array=t.array,t.pageSize&&(v.pageSize=t.pageSize),t.id&&(v.data.id=t.id),t.text&&(v.data.text=t.text),s&&(a(),1 ").addClass("marked")),t=u[n],n=x(t,v.data.text),v.searchable?i(n):r.val(n).change())}),p.bind("markById",function(e,t){A.contains(v.markedIds,t)||(v.markedIds.push(t),h.find('li[data-id="'+T(String(t))+'"]').addClass(b))}),p.bind("unmarkById",function(e,t){A.contains(v.markedIds,t)&&(v.markedIds=A.without(v.markedIds,t),h.find('li[data-id="'+T(String(t))+'"]').removeClass(b))}),p.bind("empty",function(){o(""),s&&a()}),_("",{width:p.width()&&p.outerWidth()?p.outerWidth():v.width,class:"chosen"}).css("margin",p.css("margin"))),t=(v.class&&e.addClass(v.class),p.is(":focus")),h=(p.wrap(e),t&&p.focus(),_("
",{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 '),n=(t.width(v.scrollBoxWidth),p[0].offsetHeight&&t.css("top",p[0].offsetHeight),h.insertAfter(p).wrap(t),p.after(_(" ").addClass("chosen__drop-down-border")),p.siblings(".chosen__drop-down-border")),g=(v.searchable?p.keyup(function(e){-1===_.inArray(e.keyCode,new Array(9,13,16,33,34,35,36,37,38,39,40))&&(p.val()?o(p.val()):o(""))}):p.after(_(" ").addClass("drop-down").on("click",function(e){f(e),p.is("[disabled]")||h.trigger("toggle")})),{search:"",filteredArray:[],border:0,lastElement:0,isDropDownUpdated:!0}),o=function(e){if(p.val()!==e&&p.val(e).change(),e||(g.filteredArray=[],g.search="",g.lastElement=0),0"+y(v.preloadText)+" "),p.data("spinner",new Spinner({lines:8,length:0,color:"#AAA",corners:1,zIndex:100,width:6,radius:10,left:5,top:0,position:"relative"}).spin(h.find("li")[0])),w(h);else{v.searchable&&0!==e.length&&(n=e,r=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","^","$"].join("|\\")+")","g"),n=n.replace(r,"\\$1"),v.ignoreCase&&(t="i"),e=new RegExp(n,t));var t,n,r,i=v.data.text,o=v.data.array;if(g.search="",g.filteredArray=[],e&&(g.lastElement=0),v.searchable&&e){g.search=e;for(var a=0;av.pageSize?v.pageSize:g.border),a="";d&&v.data.selection&&Object.keys(v.data.selection).length&&(t=(e=Math.ceil(d/v.pageSize))*v.pageSize>i.length?i.length:e*v.pageSize);for(var s=0;s<(t||o)&&g.lastElement"+c+""||" ",v.searchable||p.val()!==x(u,r)||(l+=" current",c+=' ');var f=(f=S(u,n))&&y(f);0"+c+""}a?(p.removeClass("empty"),h.append(a),h.find('input[checked="checked"]').removeAttr("checked").prop("checked",!0),g.search?h.addClass("search"):h.removeClass("search")):(p.addClass("empty"),h.removeClass("search")),w(h),g.isDropDownUpdated=!0,p.hasClass("expanded")&&k(p)}s?(o(""),m(p)):o(p.val()),h.bind("drop-down-scroll-bottom",function(){g.isDropDownUpdated&&g.lastElementt&&(n=n.substring(0,t)),e[0]?e[0]+P+n:"")):""}function d(e,t){return e.substring(0,t).split(c.thousandseparator).length-1}var p=/^[0-9.,]*$/;function t(e,t){var n,r,i,o,a,s=t?e:"";p.test(s)&&(s=","===s?P:s,i=u.val(),o=F(i,c.thousandseparator),i=i,i={start:(a=D(u[0])).start-d(i,a.start),end:a.end-d(i,a.end)},i=t?(a=o,t=s,(n={start:(n=i).start,end:n.end}).end-n.start||(r=a.split(P),a=a.indexOf(P),((r=r[0].length===c.maxlength)||aS.maxlength&&(t=t.substring(0,S.maxlength)),"amount"===b&&(t=N(t=g.toFixed(t,S.decimallength),S.thousandseparator)),v.val(t).trigger(I.Event("change")))},0),!0},S.mask&&v.bind("focus",m.focus),v.bind("paste",m.paste),v.attr("disabled")&&!S.allowDisabled||v.attr("readonly")||(v.bind("keypress",this,m.format),v.bind("keydown",this,m.keydownEvent)),v.bind("drop",m.paste);for(var w=0;wthis.length)&&-1!==this.indexOf(e,t)}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){if(null==this)throw new TypeError('"this" is null or not defined');var n=Object(this),r=n.length>>>0;if(0!=r)for(var i,o,t=0|t,a=Math.max(0<=t?t:r-Math.abs(t),0);a ",{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];u(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;u(t)&&i[e].length&&(n=$("",{class:e}),t=$(''+i[e]+" "),n.append(t),$("#footer-additional").append(n))})):u(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{for(var t in e)if(!e[t])return!1;return!0};if(r(n)){t.addClass("device-active");const i=$('
');$.each(n,function(e,t){i.append(`${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 u(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()})})}}}())