PageSourceSearch

https://www.bankmillennium.pl/dist/js/index.min.js?ts=20260927071050

js bankmillennium.pl collected 2026-10-01 12:01:18 UTC 61,082 bytes, 1 lines download raw bytes

1"use strict";var _this4=void 0;function _callSuper(e,t,n){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,n||[],_getPrototypeOf(e).constructor):t.apply(e,n))}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _wrapNativeSuper(e){var n="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(t,e)})(e)}function _construct(e,t,n){var o;return _isNativeReflectConstruct()?Reflect.construct.apply(null,arguments):((o=[null]).push.apply(o,t),t=new(e.bind.apply(e,o)),n&&_setPrototypeOf(t,n.prototype),t)}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"==typeof t}}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a,i,c=[],l=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=a.call(n)).done)&&(c.push(o.value),c.length!==t);l=!0);}catch(e){s=!0,r=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return c}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _createForOfIteratorHelper(e,t){var n,o,r,a,i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return o=!(n=!0),{s:function(){i=i.call(e)},n:function(){var e=i.next();return n=e.done,e},e:function(e){o=!0,r=e},f:function(){try{n||null==i.return||i.return()}finally{if(o)throw r}}};if(Array.isArray(e)||(i=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length)return i&&(e=i),a=0,{s:t=function(){},n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ownKeys(t,e){var n,o=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),o.push.apply(o,n)),o}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(n),!0).forEach(function(e){_defineProperty(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEac
1h(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var n;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}var AccessibilityTagsModifier=_createClass(function e(){_classCallCheck(this,e),_defineProperty(this,"use strict",void 0)},[{key:"init",value:function(){var r=document.querySelector(".sc-footer"),a=document.querySelector("#bmp-footer");window.addEventListener("DOMContentLoaded",function(e){document.querySelector(".cx-widget")}),window.addEventListener("load",function(e){function t(){var e;r?(e=r.childNodes[0],r.insertBefore(o,e)):a&&(e=a.childNodes[0],a.insertBefore(o,e))}var n,o=document.querySelector(".cx-widget");(window.genesysChatConfig&&!0===window.genesysChatConfig.chatButtonEnabled||o)&&(o?t():n=window.setInterval(function(){(o=document.querySelector(".cx-widget"))&&(console.log("chatDiv 3",o),t(),window.clearInterval(n))},1e3))});try{this.iconTags=_toConsumableArray(document.body.querySelectorAll("i:not([aria-hidden])")).filter(function(e){return-1<e.className.indexOf("icon-")}),this.iconTags.forEach(function(e){e.setAttribute("aria-hidden","true")});var e=_toConsumableArray(document.querySelectorAll(".sc-footer .column__collapse"));!0===window.matchMedia("(max-width: 960px)").matches?(e.forEach(function(e,t){var n,o,r;null==e.querySelector("label")&&(t="col".concat(t,"-01"),n=e.querySelector(".middle__title"),o='<input id="'.concat(t,'" name="').concat(t,'" type="checkbox" class="collapse__marker acc-hide">'),t='<label for="'.concat(t,'">').concat(n.innerHTML,'<i class="icon icon--i-arrow" aria-hidden="true"></i></label>'),(r=n.querySelector(".middle__title__h3:last-child"))&&n.removeChild(r),n.insertAdjacentHTML("afterBegin",t),e.insertAdjacentHTML("afterBegin",o))}),document.querySelectorAll("td.w-100-20 sup, td.w-100-20 sub").forEach(function(e){var t,e=e.parentElement;"span"===e.tagName.toLowerCase()?e.classList.add("no-flex"):((t=document.createElement("span")).classList.add("no-flex"),t.innerHTML=e.innerHTML,e.innerHTML=t.outerHTML)})):e.forEach(function(e){var t=e.querySelector("label");t&&((e=e.querySelector("input#".concat(t.getAttribute("for"))))&&e.parentElement.removeChild(e),e=t.querySelector("span"),t.parentElement.appendChild(e),t.parentElement.removeChild(t))}),_toConsumableArray(document.querySelectorAll(".bmp-table")).forEac
1h(function(e){var n,t=e,o=e.querySelectorAll("th");return 0===o.length?(e.classList.add("no-rwd"),!1):(n=_toConsumableArray(o).map(function(e){return e.innerText.replace(/[\n\r]/g," ")}),o.length<5&&"false"!==e.dataset.autoFixed&&(e=["","two","three","four"][o.length-1],t.classList.add("bmp-table--fixed"),t.classList.add("fixed--".concat(e)),t.dataset.autoFixed="auto-added-".concat(o.length)),t.classList.contains("bmp-table--separate")?t:void _toConsumableArray(t.querySelectorAll("tr")).forEach(function(e){var t=e.querySelectorAll("td");0<t.length&&!1===e.parentElement.parentElement.classList.contains("no-rwd")&&_toConsumableArray(t).map(function(e,t){return!1===e.hasAttribute("data-title")&&e.setAttribute("data-title",n[t]),0===t&&e.hasAttribute("data-flex")&&"false"===e.getAttribute("data-flex")||(e.classList.add("w-50-50"),(t=document.createElement("span")).className="no-flex",t.innerHTML="".concat(e.innerHTML),e.innerHTML="",e.appendChild(t)),e})}))});!0===window.matchMedia("(min-width: 1200px)").matches&&0<(t=_toConsumableArray(document.querySelectorAll(".footer__middle > div"))).length&&(n=t[1].querySelector(".column__collapse:last-child li:last-child > a"),o=t[3].querySelector(".column__collapse li:first-child > a"),i=t[3].querySelector(".column__collapse:last-child li:last-child > a"),c=t[2].querySelector("a:last-child"),l=document.querySelector(".footer__bottom a:first-child"),(s=document.createElement("button")).ariaHidden="true",s.className="acc-hide",s.setAttribute("type","button"),t[1].appendChild(s),s.addEventListener("keyup",function(e){9!==e.keyCode&&"Tab"!==e.key||!1===e.shiftKey&&(e.preventDefault(),o.focus())}),(d=document.createElement("button")).ariaHidden="true",d.className="acc-hide",d.setAttribute("type","button"),t[3].prepend(d),d.addEventListener("keyup",function(e){9!==e.keyCode&&"Tab"!==e.key||e.shiftKey&&(e.preventDefault(),n.focus())}),(u=document.createElement("button")).ariaHidden="true",u.className="acc-hide",u.setAttribute("type","button"),t[3].appendChild(u),u.addEventListener("keyup",function(e){9!==e.keyCode&&"Tab"!==e.key||(e.preventDefault(),((c=null==c?t[2].querySelector("a:last-child"):c)||l).focus())}),(m=document.createElement("button")).ariaHidden="true",m.className="acc-hide",m.setAttribute("type","button"),t[2].prepend(m),m.addEventListener("keyup",function(e){9!==e.keyCode&&"Tab"!==e.key||e.shiftKey&&(e.preventDefault(),i.focus())}),(p=document.createElement("button")).ariaHidden="true",p.className="acc-hide",p.setAttribute("type","button"),t[2].appendChild(p),p.addEventListener("keyup",function(e){9!==e.keyCode&&"Tab"!==e.key||!1===e.shiftKey&&(e.preventDefault(),l.focus())}));var t,n,o,i,c,l,s,d,u,m,p,f=_toConsumableArray(document.querySelectorAll(".aria-controls-target-auto[aria-controls]"));0<f.length&&f.forEach(function(e){e.addEventListener("click",function(e){var t=e.currentTarget,e=(e.preventDefault(),t.dataset&&t.dataset.targetSelector?t.dataset.targetSelector:t.getAttribute("aria-controls")),n=t.dataset&&t.dataset.openClass?t.dataset.openClass:"open",o=t.dataset&&t.dataset.closeClass?t.dataset.closeClass:"close",r=t.dataset&&t.dataset.closeDelay?t.dataset.closeDelay:420,a=document.querySelector("#".concat(e));"true"===t.getAttribute("aria-expanded")?(t.setAttribute("aria-expanded","false"),a.classList.remove(n),a.classList.add("".concat(o,"--pending")),window.setTimeout(function(){a.classList.remove("".concat(o,"--pending")),a.classList.add(o)},r)):a.classList.contains(o)&&(t.setAttribute("aria-expanded","true"),a.classList.add(n),a.classList.remove(o))})})}catch(e){console.error(e)}}}]),accessibilityTagsModifier=new AccessibilityTagsModifier,ariaExpanded=(0!==document.getElementsByTagName("currentaccountapp").length||"complete"!==document.readyState&&("loading"===document.readyState||document.documentElement.doScroll)?document.addEventListener("DOMContentLoaded",function(){accessibilityTagsModifier.init()}):accessibilityTagsModifier.init(),_createClass(function e(t){_classCallCheck(this,e),this.toggleAtribiute(t)},[{key:"toggleAtribiute",value:function(e){var t=e.hasAttribute("type")&&"checkbox"===e.getAttribute("type")?"change":"click",n=e;(n=e.dataset.ariaTarget?document.querySelector("#".concat(e.dataset.ariaTarget)):n).hasAttribute("aria-expanded")&&e.setAttribute("aria-expanded","fal
1se"),e.addEventListener(t,function(e){e.preventDefault(),n.setAttribute("aria-expanded",!("true"===n.getAttribute("aria-expanded")))})}}])),centerSecondaryMenu=(document.addEventListener("DOMContentLoaded",function(){[].slice.call(document.querySelectorAll(".bmp-simple-aria-expanded")).forEach(function(e){new ariaExpanded(e)})}),{init:function(){var t,n,e,o=document.querySelector(".navbar.navbar--secondary"),r="-";o&&!1===o.classList.contains("is-draggable")&&(e=o.querySelector("ul"),o.offsetWidth>=e.scrollWidth&&e.classList.add("flex-center"),window.addEventListener("resize",function(){o.offsetWidth>=e.scrollWidth?e.classList.add("flex-center"):e.classList.remove("flex-center")}),o.offsetWidth<e.scrollWidth&&o.classList.add("is-draggable"),o.addEventListener("mousedown",function(e){r="1",o.classList.add("is-dragged"),t=e.pageX-o.offsetLeft,n=o.scrollLeft}),o.addEventListener("mousemove",function(e){r&&(e.preventDefault(),e=e.pageX-o.offsetLeft-t,o.scrollLeft=n-e)}),o.addEventListener("mouseup",function(){return r=o.classList.remove("is-dragged")}),o.addEventListener("mouseleave",function(){return r=o.classList.remove("is-dragged")}))}}),CmsLinksAccessibility=("complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?centerSecondaryMenu.init():document.addEventListener("DOMContentLoaded",function(){return centerSecondaryMenu.init()}),window.ClickStreamAdapter={ClickStreamEventType:{PageView:0,ObjectView:1,Click:2,View:3,Error:4,Validation:5,ViewTime:6,Step:10}
1,debugForDevelopment:function(e,t){var n="www.bankmillennium.pl"===window.location.hostname;if(!n){try{Object.defineProperty(window,"logCs__on",{get:function(){return window.localStorage.setItem("logCs","on"),"Logging Clickstream is now ON"}}),Object.defineProperty(window,"logCs__off",{get:function(){return window.localStorage.removeItem("logCs"),"Logging Clickstream is now OFF"}})}catch(e){}"on"===window.localStorage.getItem("logCs")&&console.info("%c ⭐ CLICKSTREAM%c --\x3e "+"%c ".concat(e," "),"background: #444; color: #bada55","background: #444; color: orange","background: #000; color: #bada55",t)}},getCookie:function(e){for(var t="".concat(e,"="),n=decodeURIComponent(document.cookie).split(";"),o=0;o<n.length;o++){for(var r=n[o];" "===r.charAt(0);)r=r.substring(1);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return""},findClickableParent:function(e){return["a","button","wc-select","wc-radio","wc-checkbox","wc-input-text","wc-button","wc-button-link","input","textarea"].includes(e.tagName.toLowerCase()||"")?e:e.parentElement?this.findClickableParent(e.parentElement):null},checkClickedElement:function(e){return["input","text","checkbox","radio"].includes(e.type)||!!this.findClickableParent(e)},sendEvent:function(e,n){var t=[],o=(new Date).getTime(),r=n?(r=Object.keys(n).reduce(function(e,t){return"label"!==t&&"value"!==t&&"id"!==t&&"type"!==t&&"addParams"!==t&&(e[t]=n[t]),e},{}),a=n.addParams&&"object"===_typeof(n.addParams)&&!Array.isArray(n.addParams)?n.addParams:{},_objectSpread(_objectSpread({},r),a)):{},a={clientTimestamp:o,eventType:e,label:n&&n.label?n.label:null,elementId:n&&n.id?n.id:null,value:n&&void 0!==n.value?n.value:null,addParams:0===Object.keys(r).length?null:JSON.stringify(r)};this.debugForDevelopment(e,a),t.push(a),window.divolte&&window.divolte.signal("event",{source:"PRT",dataSource:"PRT",timestamp:o,referer:document.referrer||null,location:window.location.href,userAgentString:navigator&&navigator.userAgent?navigator.userAgent:null,viewportPixelWidth:window.innerWidth,viewportPixelHeight:window.innerHeight,screenPixelWidth:document.documentElement.clientWidth,screenPixelHeight:document.documentElement.clientHeight,devicePixelRatio:window.devicePixelRatio||null,pageTitle:document.title,pageEncoding:document.characterSet,_ga:this.getCookie("_ga")||null,_gid:this.getCookie("_gid")||null,WT_FPC:this.getCookie("WT_FPC")||null,language:navigator&&navigator.language?navigator.language:null,colorDepth:window.screen.colorDepth||null,items:t})},pageView:function(e){this.sendEvent(this.ClickStreamEventType.PageView,e)},sendClick:function(e){this.sendEvent(this.ClickStreamEventType.Click,e)},sendObjectView:function(e){this.sendEvent(this.ClickStreamEventType.ObjectView,e)},sendCaError:function(e){this.sendEvent(this.ClickStreamEventType.Error,e)},sendError:function(e){this.sendEvent(this.ClickStreamEventType.Error,e)},sendValidation:function(e){this.sendEvent(this.ClickStreamEventType.Validation,e)},sendViewTime:function(e){this.sendEvent(this.ClickStreamEventType.ViewTime,e)},sendStep:function(e){this.sendEvent(this.ClickStreamEventType.Step,e)},sendComponentView:function(e){this.sendEvent(this.ClickStreamEventType.View,e)},sendClickWithEvent:function(e){var e=e.target||e,t=this.findClickableParent(e),e=e.closest(".journal-content-article"),n="hyperpersonalizationofferdetails",r="contentAssemblyHyperpersonalizationSupportedComponents";function o(e){e=Array.from(e.children,function(e){return{localName:e.localName,icon:e.icon}}).find(function(e){return"wc-icon"===e.localName});return!!e&&e.icon}function a(e){t=window[r];for(var t,n=Array.isArray(t)?t.filter(function(e){return"string"==typeof e&&""!==e.trim()}):[],o=e;o;){if(n.includes(o.localName))return o;o=o.parentElement}return null}i=t;var i=!!(i=Array.from(i.children,function(e){return{className:e.className,innerText:e.innerText}}).find(function(e){return"acc-hide"===e.className}))&&i.innerText;if(e&&-1!==["CAONLINE_SOHO","CA-CORPO-ONLINE"].indexOf(e.dataset.analyticsAssetId))return!1;e={id:function(e){if(!e)return null;if(e.id&&"checkbox"!==e.type)return e.id;if(!e.id||"checkbox"===e.type){for(var t=e,n=[];null!=t.parentNode;){for(var o=0,r=0,a=0;a<t.parentNode.childNodes.length;a++){var i=t.parentNode.childNodes[a];i.nodeName==t.nodeName&&(i===t&&(r=o),o++)}t.hasAttribute("id")&&""!=t.id?n.unshift(t.nodeName.toLowerCase()+"#"+t.id):n.unshift(1<o?t.nodeName.toLowerCase()+":nth-of-type(".concat(r,")"):t.nodeName.toLowerCase()),t=t.parentNode}return n.slice(1).join(">")}}(t),label:(e=t)?e.previousElementSibling&&e.previousElementSibling.tagName&&"label"===e.previousElementSibling.tagName.toLowerCase()?e.previousElementSibling.innerText.replace(i,"").trim():e.parentElement&&e.parentElement.tagName&&"label"===e.parentElement.tagName.toLowerCase()?e.parentElement.innerText.replace(i,"").trim():e.id&&document.querySelector('[for="'.concat(e.id,'"]'))?document.querySelector('[for="'.concat(e.id,'"]')).innerText.replace(i,"").trim():e.placeholder||(o(e)?o(e):!!e&&!!e.innerText&&e.innerText.replace(i,"").trim()):null,value:(e=t)?"text"===e.type?e.value||null:void 0!==e.checked?e.checked:null!==e.ariaExpanded?e.ariaExpanded:e.dataset&&e.dataset.valueForCs?e.dataset.valueForCs:e.href?e.href.includes("javascript:void(0)")?null:e.href:e.value||null:null},t=function(e){if(!(e=(e=a(e))&&e.getAttribute(n)))return null;try{var t=JSON.parse(e);return!t||"object"!==_typeof(t)||Array.isArray(t)?null:t}catch(e){return null}}(t);i&&(e.hiddenText=i),t&&(e.addParams=t),null!==e.id&&this.sendEvent(this.ClickStreamEventType.Click,e)}},document.addEventListener("DOMContentLoaded",function(){document.addEventListener("click",function(e){var t=e.target,n={bubble:{element:['[data-message="ChatButton"]',"div.cx-titlebar","div.cx-title","#numberOfMessages","span.cx-icon","span.i18n.cx-chat-button-label"],click:{id:"ChatBubble_Chat"},objectView:{id:"Chat_Consent"}},yes:{element:['[data-message="ChatFormSubmit"]'],click:{id:"Chat_Consent_yes"},objectView:{id:"Chat_Start"}},no:{element:['[data-message="ChatFormCancel"]'],click:{id:"Chat_Consent_no"}},min:{element:["button.cx-icon.cx-button-minimize"],click:{id:"Chat_Min"}},close:{element:["button.cx-icon.cx-button-close"],click:{id:"Chat_Close",label:"closed by clicking X button"}}};
1Object.keys(n).forEach(function(e){n[e].element.map(function(e){return t===document.querySelector(e)}).includes(!0)&&(window.ClickStreamAdapter.sendClick(n[e].click),n[e].objectView)&&window.ClickStreamAdapter.sendObjectView(n[e].objectView)})},!0)}),new MutationObserver(function(e){var t,n=_createForOfIteratorHelper(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;"cx-widget cx-side-button-group"===o.target.classList.value&&o.addedNodes.length&&window.ClickStreamAdapter.sendObjectView({id:"ChatBubble_Chat"})}}catch(e){n.e(e)}finally{n.f()}}).observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0}),document.addEventListener("DOMContentLoaded",function(){document.addEventListener("click",function(e){e.target&&window.ClickStreamAdapter.checkClickedElement(e.target)&&window.ClickStreamAdapter.sendClickWithEvent(e)})}),document.addEventListener("DOMContentLoaded",function(){window.ClickStreamAdapter.pageView()}),_createClass(function e(){_classCallCheck(this,e),_defineProperty(this,"removeTemplateExternalLinkDesc",function(){_toConsumableArray(document.body.querySelectorAll(".acc-hide")).forEach(function(e){e.textContent.includes("template.externalLink.desc")&&e.remove()})}),_defineProperty(this,"removeEmptyAriaLabels",function(){_toConsumableArray(document.body.querySelectorAll('[aria-label=""]')).forEach(function(e){e.removeAttribute("aria-label")})}),_defineProperty(this,"addAccessibilityToBlankLinks",function(t){this.links=_toConsumableArray(document.body.querySelectorAll('a[target="_blank"]')),this.links.forEach(function(e){e.querySelector('[data-autogenerated="1"]')||e.appendChild(t.cloneNode(!0))})}),this.links=null,this.accSpan=null},[{key:"init",value:function(){if(this.metaAcc=document.head.querySelector('meta[name="bm:acc"]'),this.metaAcc&&-1<this.metaAcc.content.indexOf("acc-linksFixing=0"))return null;this.accSpan=document.createElement("span"),this.accSpan.classList.add("acc-hide");var e=document.querySelector("#cms-translations-for-menu"),t="pl-PL"===document.documentElement.lang,e=(null==e||null==(e=e.dataset)?void 0:e.transNewWindowLink)||(t?"&nbsp;otwiera się w nowej karcie":"&nbsp;opens in a new browser tab");return this.accSpan.innerHTML=e,this.accSpan.setAttribute("data-autogenerated",1),this.addAccessibilityToBlankLinks(this.accSpan),this.removeTemplateExternalLinkDesc(),this.removeEmptyAriaLabels(),this.links}}])),MetaRobotsBlocker=_createClass(function e(){_classCallCheck(this,e),this.robotsMeta=null,this.hashIdentyficator="#!"},[{key:"checkAndAdd",value:function(){return document.getElementsByTagName("head")[0].querySelector('meta[name="robots"]')?1:-1===window.location.hash.indexOf(this.hashIdentyficator)?2:(this.robotsMeta=document.createElement("meta"),this.robotsMeta.setAttribute("name","robots"),this.robotsMeta.setAttribute("content","noindex"),document.getElementsByTagName("head")[0].appendChild(this.robotsMeta),this.robotsMeta)}}]),linksAccessibility=new CmsLinksAccessibility,metaForHead=new MetaRobotsBlocker,jsWebcomponentsTS=(0!==document.getElementsByTagName("currentaccountapp").length||"complete"!==document.readyState&&("loading"===document.readyState||document.documentElement.doScroll)?document.addEventListener("DOMContentLoaded",function(){linksAccessibility.init(),metaForHead.checkAndAdd()}):(linksAccessibility.init(),metaForHead.checkAndAdd()),"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),document.dispatchEvent(new CustomEvent("BmpComponentsReady",{bubbles:!0})),document.addEventListener("DOMContentLoaded",function(){try{var e=document.querySelectorAll(".input-container[disabled]");[].forEach.call(e,function(e){e.removeAttribute("disabled")})}catch(e){console.error(e)}}),"1789741778391"),listToAppendScripts=["/assets/picturefill.min.js","/assets/axios.min.js","/assets/simplebar/simplebar.min.js","/assets/bowser.min.js","/assets/modernizer.min.js","/assets/MiniBar/minibar.min.js"];function debounce(o,r,a){var i;return function(){var e=this,t=arguments,n=a&&!i;clearTimeout(i),i=setTimeout(function(){i=null,a||o.apply(e,t)},r),n&&o.apply(e,t)}}function formatMoney(e,t,n,o){var r,a=0;return t=isNaN(t=Math.abs(t))?2:t,o=null==o?".":o,n=null==n?",":n,(e<0?"-":"")+((r=3<(r=(a=parseInt(e=Math.abs(+e||0).toFixed(t))+"").length)?r%3:0)?a.substr(0,r)+n:"")+a.substr(r).replace(/(\d{3})(?=\d)/g,"$1"+n)+(t?o+Math.abs(e-a).toFixed(t).slice(2):"")}function polishId(e){if(""==(e=e.replace(/\s+/g,"")))return!0;
1if(null==e||9!=e.length)return!1;var t,n={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:18,J:19,K:20,L:21,M:22,N:23,O:24,P:25,Q:26,R:27,S:28,T:29,U:30,V:31,W:32,X:33,Y:34,Z:35};e=e.toUpperCase();for(var o=0;o<3;o++)if(n[e[o]]<10)return!1;for(o=3;o<9;o++)if(n[e[o]]<0||9<n[e[o]])return!1;return t=7*n[e[0]]+3*n[e[1]]+ +n[e[2]]+7*n[e[4]]+3*n[e[5]]+ +n[e[6]]+7*n[e[7]]+3*n[e[8]],(t%=10)==n[e[3]]}function appendScripts(){listToAppendScripts.forEach(function(e){var t;document.querySelector("script[src='"+e+"']")||(t=document.createElement("script"),"8082"==window.location.port?t.src=e:t.src="/dist"+e,document.querySelector("head").appendChild(t))})}function setRefererKey(){var e="referer-key";sessionStorage.getItem(e)||sessionStorage.setItem(e,null!=(e=null==(e=document)?void 0:e.referrer)?e:null)}[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach(function(e){e.hasOwnProperty("append")||Object.defineProperty(e,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(){var e=Array.prototype.slice.call(arguments),n=document.createDocumentFragment();e.forEach(function(e){var t=e instanceof Node;n.appendChild(t?e:document.createTextNode(String(e)))}),this.appendChild(n)}})}),Object.size=function(e){var t,n=0;for(t in e)e.hasOwnProperty(t)&&n++;return n},function(e){function a(e,t){var n=document.createEvent("CustomEvent");n.initCustomEvent(t,!0,!0,e.target),e.target.dispatchEvent(n),n=null}function i(e){return{x:(e=(e.changedTouches&&e.changedTouches.length?e.changedTouches:e.touches)[0]).clientX,y:e.clientY}}var t,c=!0,l={x:0,y:0},s={x:0,y:0},n={touchstart:function(e){l=i(e)},touchmove:function(e){c=!1,s=i(e)},touchend:function(e){var t,n,o,r;c?a(e,"sw-touch"):(t=(s=i(e)).x-l.x,n=Math.abs(t),o=s.y-l.y,r=Math.abs(o),20<Math.max(n,r)&&a(e,r<n?t<0?"sw-left":"sw-right":o<0?"sw-up":"sw-down")),c=!0},touchcancel:function(e){c=!1}};for(t in n)e.addEventListener(t,n[t],!1)}(document),function(){setRefererKey(),appendScripts();var e=document.getElementsByTagName("html")[0],t=null!==document.querySelector("currentaccountapp"),n=/MSIE (\d+\.\d+);/.test(navigator.userAgent),o=!!navigator.userAgent.match(/Trident/),r=navigator.userAgent.indexOf("rv:11.0"),a=0;n&&(a=Number(n)),-1!==navigator.appVersion.indexOf("MSIE 10")&&(a=10),(a=o&&-1!==r?11:a)?e.className="".concat(e.className," ie ie").concat(a):(n=-1!==navigator.userAgent.indexOf("Edg"),o=-1!==navigator.userAgent.indexOf("Edge"),n?e.className+=" ie ieEdge":o?e.className+=" ie ieEdgeOld":!1==t&&(r=navigator.userAgent.toLowerCase(),a=/CriOS/i.test(navigator.userAgent)&&/iPad|iPhone|iPod/i.test(r)&&!window.MSStream,n=-1!==r.indexOf("safari")&&!(-1!==r.indexOf("chrome"))&&-1!==r.indexOf("version/"),a&&(e.className+=" ios "),n)&&(e.className+=" ios safari "))}();var isMobile={Android:function(){return null!==navigator.userAgent.match(/Android/i)},BlackBerry:function(){return null!==navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return null!==navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return null!==navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return null!==navigator.userAgent.match(/IEMobile/i)},any:function(){return isMobile.Android()||isMobile.BlackBerry()||isMobile.iOS()||isMobile.Opera()||isMobile.Windows()},none:function(){return!isMobile.any()}};function koreAiRemoveDuplicatedButton(r,e){var a=e.selector,i=e.element,c=e.isKoreBtn,e=document.querySelector("body");new MutationObserver(function(e){var t,n=_createForOfIteratorHelper(e);try{for(n.s();!(t=n.n()).done;){var o=t.value;"childList"===o.type&&0<o.addedNodes.length&&o.addedNodes[0].classList.contains(r)&&(!i||!c&&(window.KoreAiPortal.isKoreCriticalError||window.KoreAiPortal.isKoreConfigurationError)?a&&(c||!window.KoreAiPortal.isKoreCriticalError&&!window.KoreAiPortal.isKoreConfigurationError)&&document.querySelector(a).remove():document.body.removeChild(i))}}catch(e){n.e(e)}finally{n.f()}}).observe(e,{attributes:!1,childList:!0,subtree:!1})}window.KoreAiPortal={API_ROOT:"https://bots.online.bankmillennium.pl",LIB_VERSION:"",BOT_VERSION:"",isKoreAiAvailable:!!window.KoreChatSDK,isKoreAnalyticsEventsInited:!1,isKoreConfigurationError:!1,isKoreCriticalError:!1,isKoreChatButtonClicked:!1,isKoreScriptsInited:!1,isKoreStylesInited:!1,injectScripts:function(){},handleInjectScripts:function(){var e=window.genesysChatConfig||{},t=e.cobrowseUrl,e=e.cobrowseSrc,n=(window.KoreCobrowse={},window.KoreCobrowse.cobrowse_script=e,window.KoreCobrowse.cobrowse_api=t,"".concat(window.KoreAiPortal.API_ROOT,"/bm/app/bot/chat/public/bot-configuration/portal").concat(window.KoreAiPortal.BOT_VERSION));return fetch(n,{method:"GET",credentials:"include"}).then(function(e){return e.json()}).then(function(e){var t=(window.KoreAiPortal.botConfiguration=e).koreBundleUrl,e=e.koreStylesUrl,t=[{id:"kore-bundle",path:null!=t?t:"".concat(window.KoreAiPortal.API_ROOT,"/static").concat(window.KoreAiPortal.LIB_VERSION,"/kore-ai-sdk.min.js"),type:"script"},{id:"kore-styles",path:null!=e?e:"".concat(window.KoreAiPortal.API_ROOT,"/static").concat(window.KoreAiPortal.LIB_VERSION,"/kore-ai-sdk.min.css"),type:"link"}],o=null,e=new Promise(function(e,t){var n=setTimeout(function(){t()},3e4);o=function(){window.KoreAiPortal.isKoreScriptsInited&&window.KoreAiPortal.isKoreStylesInited&&(clearTimeout(n),e())}});return t.every(function(e){return document.getElementById(e.id)})?o():t.forEach(function(e){var t,n=document.createElement(e.type);n.id=e.id,"script"===e.type?((t=n).src=e.path,t.onload=function(){window.KoreAiPortal.isKoreScriptsInited=!0,o()},t.onerror=function(){throw window.ClickStreamAdapter.sendError({label:"Cannot fetch ".concat(e.path)}),new Error("Scripts inject error")}):"link"===e.type&&((t=n).type="text/css",t.rel="stylesheet",t.href=e.path,t.onload=function(){window.KoreAiPortal.isKoreStylesInited=!0,o()},t.onerror=function(){throw window.ClickStreamAdapter.sendError({label:"Cannot fetch ".concat(e.path)}),new Error("Styles inject error")}),document.body.appendChild(n)}),e}).catch(function(){window.ClickStreamAdapter.sendError({label:"API error for endpoint: ".concat(n),endpoint:n}),window.KoreAiPortal.isKoreConfigurationError=!0,window.KoreAiPortal.openGenesysChat()})},includeBtn:function(){var e,t,n;null===document.querySelector(".sc-kore-wrapper")&&null===document.querySelector(".cx-webchat-chat-button")&&null===document.querySelector(".cx-widget.cx-webchat")&&(e=document.createElement("div"),t=document.createElement("button"),(n=document.createElement("img")).src="/dist/img/kore/chaticon.svg",e.classList.add("sc-kore-wrapper"),t.classList.add("sc-kore-btn"),t.id="Kore_ai_Initiate_chat",t.appendChild(n),e.appendChild(t),document.body.appendChild(e),t.addEventListener("click",function(){window.KoreAiPortal.isChatStarted()||window.KoreAiPortal.isKoreChatButtonClicked||(window.KoreAiPortal.isKoreChatButtonClicked=!0,window.KoreAiPortal.handleInjectScripts().then(function(){window.KoreAiPortal.openKoreChat(),document.body.removeChild(e),window.KoreAiPortal.isKoreChatButtonClicked=!1}).catch(function(e){return console.log("injectScripts error: ",e)}))}),koreAiRemoveDuplicatedButton("cx-widget",{element:e,isKoreBtn:!0}))},isChatStarted:function(){var e=sessionStorage.getItem("kr-cw-state");return"open"===e||"minimized"===e},urlPathToStarpageMapper:function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"CONTACT";return void 0!==window._genesysStarpageMap&&(t=e.replace("web/guest","").replace("en/",""),e=Object.entries(window._genesysStarpageMap).find(function(e){return-1!==e[1].indexOf(t)}))&&2===e.length?e[0]:n},openGenesysChat:function(){window.genesysChatConfig.chatButtonEnabled=!0,window._genesys.widgets.webchat.chatButton.enabled=!0,window.CXBus.command("WebChat.configure",window._genesys.widgets.webchat).done(function(){return window.CXBus.command("WebChat.open")}),setTimeout(function(){var e=document.querySelector(".sc-kore-wrapper");e&&document.body.removeChild(e)},200)},openKoreChat:function(){var e,t,n,o,r,a,i,c,l,s,d,u,m,p,f,h,w,y;window.KoreAiPortal.isKoreCriticalError||null!==document.querySelector(".cx-webchat-chat-button")?(window.KoreAiPortal.openGenesysChat(),document.body.removeChild(document.querySelector(".sc-kore-wrapper"))):(sessionStorage.setItem("bm-kore-init-source","portal"),koreAiRemoveDuplicatedButton("cx-widget",{selector:".cx-widget",isKoreBtn:!1}),e="pl-PL"===document.documentElement.lang?"PL":"EN",t=(d=null==(d=window)||null==(d=d.KoreAiPortal)?void 0:d.botConfiguration).botName,y=d.botId,n=d.logLevel,o=d.koreApiUrl,r=d.staticFilesUrl,w=d.jwtUrl,a=d.extendSessionURL,i=d.extendSessionIntervalSeconds,c=d.tokenForFileDownloadUrl,l=d.transcriptDownloadUrl,s=d.invalidateCookieUrl,d=d.feedbackUrl,u=(m=window.genesysChatConfig||{}).cobrowseUrl,m=m.cobrowseSrc,p=sessionStorage.getItem("kr-cw-state"),f=function(e){window.KoreChatSDK.chatWindowInstance.emit("apiFailure",{errObj:{code:e.status,msg:e.statusText},type:"XHRObj"}),window.ClickStreamAdapter.sendError({label:"API error",error:e})},h=function(e){function t(e){var e=e.replace(/-/g,"+").replace(/_/g,"/"),t="==".slice(0,(4-e.length%4)%4),e=atob(e+t);return JSON.parse(e)}var e=_slicedToArray(e.split("."),3),n=e[0],o=e[1],e=e[2];return{header:t(n),payload:t(o),signature:e}},window.KoreChatSDK.chatConfig.botOptions=_objectSpread(_objectSpread({},window.KoreChatSDK.chatConfig.botOptions),{},{JWTUrl:w,botInfo:{_id:y,name:t,customData:{AD_LOG:"NOLOG",AD_LANG:e,AD_STARTPAGE:window.KoreAiPortal.urlPathToStarpageMapper(window.location.pathname),AD_SOURCE:"PORTAL",AD_STARTSITE:window.location.href}},chatBotBubbleName:"Bank Millennium",cobrowse_api:u||null,cobrowse_script:m||null,koreAPIUrl:o,logLevel:n,maxReconnectionAPIAttempts:2,staticFilesURL:null!=r?r:"".concat(window.KoreAiPortal.API_ROOT,"/static")}),"function"==typeof window.KoreChatSDK.chatConfig.getLanguageData&&(window.KoreChatSDK.chatConfig.languageData=window.KoreChatSDK.chatConfig.getLanguageData(e,"PORTAL")),window.KoreChatSDK.chatConfig.minimizeMode="minimized"===p,window.KoreChatSDK.chatConfig.multiPageApp.enable=!0,window.KoreChatSDK.chatConfig.loadHistory=!0,window.KoreChatSDK.chatConfig.messageHistoryLimit=50,window.KoreChatSDK.chatConfig.multiPageApp={enable:!0,userIdentityStore:"sessionStorage",chatWindowStateStore:"sessionStorage"},window.KoreChatSDK.chatConfig.koreChatBotState=sessionStorage.getItem("kr-cw-state"),window.KoreChatSDK.chatConfig.extendSessionURL=a,window.KoreChatSDK.chatConfig.extendSessionIntervalSeconds=i,window.KoreChatSDK.chatConfig.tokenForFileDownloadUrl=c,window.KoreChatSDK.chatConfig.transcriptDownloadUrl=l,window.KoreChatSDK.chatConfig.invali
1dateCookieUrl=s,window.KoreChatSDK.chatConfig.feedbackUrl=d,window.KoreChatSDK.chatConfig.JWTAsertion=function(n){fetch(window.KoreChatSDK.chatConfig.botOptions.JWTUrl,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({koreChatWidgetUserId:sessionStorage.getItem("kr-cw-uid")})}).then(function(e){e.ok||f(e),e.ok&&e.json().then(function(e){var t=h(e.jwt).payload.sub;window.KoreChatSDK.chatConfig.minimizeMode=!1,window.KoreChatSDK.chatWindowInstance.setJWT(e.jwt),window.KoreChatSDK.chatConfig.botOptions.userIdentity=t,window.KoreChatSDK.chatConfig.botOptions.maxReconnectionAPIAttempts=2,sessionStorage.setItem("kr-cw-uid",t),n()})}).catch(function(){f({status:401,statusText:"error on getting the jwt token"})})},window.KoreChatSDK.chatWindowInstance.show(window.KoreChatSDK.chatConfig),w=document.querySelector(".kore-chat-body"),(y=document.querySelector(".homepageContent"))&&(y.style.overscrollBehavior="contain"),w&&w.addEventListener("wheel",function(e){e.preventDefault()}),window.KoreAiPortal.isKoreAnalyticsEventsInited||(console.log("Add kore clickstream events..."),window.KoreAiPortal.isKoreAnalyticsEventsInited=!0,window.KoreChatSDK.chatWindowInstance.on("click.analytics",function(e){var t=Number(e.EventType||e.eventType),n=e.ElementId||e.elementId,o={id:n,sessionId:e.SessionId,messageId:e.messageId,label:e.Label||null,value:e.Value||null},r=["Kore_ai_Error_confirm","Kore_ai_portal_start_again_chat"].some(function(e){return e===n});switch(t){case window.ClickStreamAdapter.ClickStreamEventType.PageView:window.ClickStreamAdapter.pageView(o);break;case window.ClickStreamAdapter.ClickStreamEventType.ObjectView:window.ClickStreamAdapter.sendObjectView(o);break;case window.ClickStreamAdapter.ClickStreamEventType.View:window.ClickStreamAdapter.sendComponentView(o);break;case window.ClickStreamAdapter.ClickStreamEventType.Click:window.ClickStreamAdapter.sendClick(o),"Kore_ai_Chat_close"===n||"Kore_ai_Opening_close"===n||"Kore_ai_Opening_cancel"===n?("critical_error"===e.Value&&(window.KoreAiPortal.isKoreCriticalError=!0),window.KoreAiPortal.includeBtn()):"critical_error"===e.Value&&r?window.KoreAiPortal.openGenesysChat():"Kore_ai_portal_start_again_chat"===n&&window.KoreAiPortal.openKoreChat();break;case window.ClickStreamAdapter.ClickStreamEventType.Error:window.ClickStreamAdapter.sendError(o),"critical_error"===e.Value&&"Kore_ai_Error"===n&&(window.KoreAiPortal.isKoreCriticalError=!0)}})))},init:function(e){var t,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"";!window.KoreAiPortal.isKoreAiAvailable&&e&&(t=sessionStorage.getItem("bm-kore-init-source"),window.KoreAiPortal.API_ROOT=e,window.KoreAiPortal.BOT_VERSION=n,window.KoreAiPortal.LIB_VERSION=o,"portal"!==t?(sessionStorage.removeItem("bm-kore-init-source"),sessionStorage.removeItem("kr-cw-uid"),sessionStorage.removeItem("kr-cw-state"),sessionStorage.removeItem("kr-session-id"),sessionStorage.removeItem("kr-cw-unread-counter"),sessionStorage.removeItem("clicked_on_welcome_button"),sessionStorage.removeItem("clicked_millenet_welcome_button"),window.KoreAiPortal.handleInjectScripts(),window.KoreAiPortal.includeBtn()):window.KoreAiPortal.handleInjectScripts().then(function(){window.KoreAiPortal.openKoreChat()}))}};var linkModalFunc,targetNode,config,callback,observer,LinkModal=_createClass(function e(){_classCallCheck(this,e),this.linksModal=document.querySelectorAll("[data-links-modal]")},[{key:"init",value:function(){this.addEvents()}},{key:"addEvents",value:function(){for(var e=0;e<this.linksModal.length;e++){var t=this.linksModal[e];this.addEventForEl(t)}}},{key:"addEventForEl",value:function(n){var o=this,r=n.dataset&&n.dataset.linksModal?n.dataset.linksModal:"";n.setAttribute("role","button"),n.setAttribute("aria-haspopup","dialog"),n.setAttribute("aria-expanded","false"),n.setAttribute("aria-controls",r.replace(/\./g,"")),n.classList.add("modal-events-added"),n.addEventListener("click",function(e){e.preventDefault(),n.setAttribute("id","trigger_".concat(r.replace(/\./g,""))),n.setAttribute("aria-expanded","true");e=document.documentElement.lang;axios.get(o.getUrl("config-provider-web/content/".concat(e,"?ts=").concat((new Date).getTime())),{headers:{token:r},withCredentials:!0,timeout:8e3}).then(function(e){var t=e.data,t=o.linkTransform(t,n.href);if(void 0!==e.data.error)throw"".concat(e.data.message);o.buildModal(t,r)}).catch(function(e){console.error(e)})})}},{key:"linkTransform",value:function(e,t){if(-1<(null==t?void 0:t.indexOf("?"))){var i,c,t=t.split("?"),t=-1<t[1].indexOf("#")?t[1].split("#")[0]:t[1];if(-1<t.indexOf("portalId")||-1<t.indexOf("nr")||-1<t.indexOf("utm"))return i=t,t=(c=e.split('a href="')).shift(),c.forEac
1h(function(e,t){var n,o,e=e.split('"'),r=e.shift(),e=e.join('"'),a=r;1<r.length&&(n=r.split("#")[1]?"#".concat(r.split("#")[1]):"",o=(a=r.split("#")[0]).split("?")[1]?"&".concat(a.split("?")[1]):"",a=r.split("?")[0],o=(o="".concat(o,"&").concat(i)).split("&").reduce(function(e,t){var n=t.split("=")[0];return-1===e.indexOf(n)?"".concat(e,"&").concat(t):e},""),a+="?".concat(o).concat(n)),c[t]="".concat(a,'" ').concat(e)}),[t].concat(_toConsumableArray(c)).join('a href="')}return e}},{key:"addCloseEvent",value:function(c,l){if(null!=c)for(var e=function(){var e=c[s];if(null===e)return 1;function n(e){"Escape"===e.key&&(e.preventDefault(),t(e))}var o=document.querySelector('[data-modal-id="'.concat(l,'"]')),r=document.querySelector("#trigger_".concat(l.replace(/\./g,""))),a=(r.setAttribute("aria-expanded","false"),document.querySelector(".bmp-mv .bmp-mv__navi .bmp-dot-navi > .prev > a")),i=document.querySelector(".bmp-mv .bmp-mv__navi .bmp-dot-navi > .next > a"),t=function(e){var t;null!=o&&(e.preventDefault(),o.removeEventListener("keydown",n),o.remove(),t=Math.abs(parseInt(document.body.style.top,10)),document.body.style.cssText="",setTimeout(function(){window.scrollTo(0,t),i&&(a.click(),i.click())},0),r.removeAttribute("id"),r.focus())};e.addEventListener("click",t),o.addEventListener("keydown",n)},s=0;s<c.length;s++)e()}},{key:"getUrl",value:function(e){var t="".concat(window.location.protocol,"//").concat(window.location.hostname);return("8082"==window.location.port?"//seplcldvap02:8090/":""!==window.location.port?"".concat(t,":8080/"):"".concat(t,"/")).concat(e)}},{key:"buildModal",value:function(e,t){var n,o=document.createElement("div");o.classList.add("sc-btn-modal"),o.setAttribute("data-modal-id",t),o.setAttribute("id",t.replace(/\./g,"")),o.setAttribute("role","dialog"),o.setAttribute("aria-modal","true"),0==document.querySelectorAll('.sc-btn-modal[data-modal-id="'.concat(t,'"]')).length&&(n=e.indexOf("container--big-table")||e.indexOf("container--big-text")||!1,o.innerHTML='\n                <div class="sc-btn-modal__mask"></div>\n                <div id="content_'.concat(t.replace(/\./g,""),'" class="sc-btn-modal__content ').concat(n?"content--width-auto":"",'">').concat(e,"</div>\n            "),document.body.appendChild(o),n=[],(e=document.querySelector(".sc-btn-modal__close")).setAttribute("role","button"),e.setAttribute("aria-label","pl-PL"===document.documentElement.lang?"Zamknij modal":"Close modal"),n.push(document.querySelector(".sc-btn-modal__mask")),n.push(e),null!=e&&e.focus(),e=window.scrollY||window.pageYOffset,document.body.style.cssText="position: fixed; top: -".concat(e,"px;"),this.addCloseEvent(n,t),this.blockFocus(o),e=document.querySelector("[data-click-stream]"))&&(t=null!=(n=e.getAttribute("id"))?n:"",e=null!=(n=null==(o=e.getAttribute("data-click-stream"))?void 0:o.replaceAll("&quot;",'"'))?n:"{}",o=JSON.parse(e),t)&&null!=(n=window)&&null!=(n=n.ClickStreamAdapter)&&n.sendObjectView(_objectSpread({id:t},null!=o?o:{}))}},{key:"blockFocus",value:function(e){var t=[].slice.call(e.querySelectorAll('button, a, input, select, textarea, [tabindex]:not([tabindex="-1"])')),n=t[t.length-1],o=t[0],t=(n.addEventListener("keydown",function(e){e.shiftKey||9!=e.keyCode||(e.preventDefault(),o.focus())}),o.addEventListener("keydown",function(e){e.shiftKey&&9==e.keyCode&&(e.preventDefault(),n.focus())}),new URLSearchParams(location.search)),r=document.querySelector("#main"),a=t.get("portalId"),r=(null===a&&r.hasAttribute("data-portal-propagation-auto")&&(a=r.getAttribute("data-portal-propagation-auto")),t.get("nr")),t=(a&&null!=r&&(a="".concat(a,"&nr=").concat(r)),[].slice.call(e.querySelectorAll("a[href]")));null!==a&&t.map(function(e){var t=e.getAttribute("href");return-1===t.indexOf("?")?e.setAttribute("href","".concat(t,"?portalId=").concat(a)):-1===t.indexOf("portalId")&&e.setAttribute("href","".concat(t,"&portalId=").concat(a)),e})}}]),OlderBrowrserJsEvents=(0!=document.getElementsByTagName("currentaccountapp").length||"complete"!==document.readyState&&("loading"===document.readyState||document.documentElement.doScroll)?document.addEventListener("DOMContentLoaded",function(){(new LinkModal).init()}):((linkModalFunc=new LinkModal).init(),targetNode=document.body,config={attributes:!0,childList:!0,subtree:!0},(observer=new MutationObserver(callback=function(e,t){var n,o=_createForOfIteratorHelper(e);try{for(o.s();!(n=o.n()).done;){var r=n.value;if("childList"==r.type&&0<r.addedNodes.length)for(var a=0;a<r.addedNodes.length;a++){var i=r.addedNodes[a];if("#text"!==i.nodeName&&"#comment"!==i.nodeName&&void 0!==i.attributes&&void 0!==i.attributes["data-links-modal"])linkModalFunc.addEventForEl(i);else if("#text"!==i.nodeName&&"#comment"!==i.nodeName&&0<i.querySelectorAll("[data-links-modal]").length)for(var c=0;c<i.querySelectorAll("[data-links-modal]").length;c++){var l=i.querySelectorAll("[data-links-modal]")[c];linkModalFunc.addEventForEl(l)}}}}catch(e){o.e(e)}finally{o.f()}})).observe(targetNode,config)),_createClass(function e(){_classCallCheck(this,e),_defineProperty(this,"use strict",void 0),_defineProperty(this,"topPageStatementBrowsers",null)},[{key:"init",value:function(){try{this.topPageStatementBrowsers=document.querySelector(".top-page-statment--browser"),this.addEvents()}catch(e){console.error(e)}}},{key:"addEvents",value:function(){var e,t=this;void 0!==this.topPageStatementBrowsers&&null!==this.topPageStatementBrowsers&&(e=0,this.until=setInterval(function(){"undefined"==typeof gtag||"undefined"==typeof bowser||"undefined"==typeof Modernizr||Modernizr.cssgrid?100<e&&clearInterval(t.until):(clearInterval(t.until),t.addVisibleGtag()),e++},30))}},{key:"addVisibleGtag",value:function(){gtag("event","visible",{event_category:"BrowserUpdate",event_label:"TopBar"})}}])),olderBrowrserJsEvents=new OlderBrowrserJsEvents,onHoverStick=(0!==document.getElementsByTagName("currentaccountapp").length||"complete"!==document.readyState&&("loading"===document.readyState||document.documentElement.doScroll)?document.addEventListener("DOMContentLoaded",function(){olderBrowrserJsEvents.init()}):olderBrowrserJsEvents.init(),_createClass(function e(t){_classCallCheck(this,e),this.el=t,this.hover=!1,this.calculatePosition(),this.attachEventsListener()},[{key:"attachEventsListener",value:function(){var t=this;window.addEventListener("mousemove",function(e){return t.onMouseMove(e)}),window.addEventListener("resize",function(e){return t.calculatePosition(e)})}},{key:"calculatePosition",value:function(){var e=this.el.getBoundingClientRect();this.x=e.left+.5*e.width,this.y=e.top+.5*e.height,this.width=e.width,this.height=e.height}},{key:"onMouseMove",value:function(e){var t=!1,n=this.hover?.7:.5,o=e.clientX-this.x,r=e.clientY-this.y;Math.sqrt(o*o+r*r)<this.width*n&&(t=!0,this.hover||(this.hover=!0),this.onHover(e.clientX,e.clientY)),!t&&this.hover&&(this.onLeave(),this.hover=!1)}},{key:"onHover",value:function(e,t){this.el.style.cssText="transform: translate3d("+.4*(e-this.x)+"px, "+.4*(t-this.y)+"px, 0px) scale(1.15); transition-property: transform; transition-duration: 0.3s;",this.el.style.zIndex=10}},{key:"onLeave",value:function(){this.el.style.cssText="transform: matrix(1, 0, 0, 1, 0, 0); animation: hoverStick 0.4s; animation-iteration-count: 1",this.el.style.zIndex=0}}])),onScrollAnimate={init:function(){var n=onScrollAnimate,e=n.noContainerElements(),t=(n.elementsInContainer(),n.checkPosition(e),debounce(function(){n.elementsInContainer().forEac
1h(function(e){var t=parseInt(e.container.getAttribute("data-anim-delay"))||300;n.checkPosition(e.elements,t)}),n.checkPosition(e)},100));window.addEventListener("scroll",t,!0),window.addEventListener("resize",t,!1)},noContainerElements:function(){var e=document.getElementsByClassName("to-anim"),n=onScrollAnimate,o=[];return[].slice.call(e).forEach(function(e,t){null===n.ifHasContainer(e,"to-anim-contain")&&o.push(e)}),o},elementsInContainer:function(){for(var e=onScrollAnimate,t=document.getElementsByClassName("to-anim-contain"),n=[],o=0;o<t.length;o++){var r=t[o].querySelectorAll("[data-anim-id]"),a=void 0,a=0<r.length?e.sortElements(r):t[o].getElementsByClassName("to-anim");a=[].slice.call(a),n.push({container:t[o],elements:a})}return n},addEventHandlers:function(){var e=_this4;window.addEventListener("scroll",e.checkPosition),window.addEventListener("resize",e.init)},checkPosition:function(e,t){for(var n,o=window.innerHeight,r=0;r<e.length;r++)e[r].getBoundingClientRect().top-o<0&&(t?(e[r].style.animationDelay="".concat((r+1)*t,"ms"),(n=e[r]).className=n.className.replace("to-anim","animated-scroll")):e[r].className=e[r].className.replace("to-anim","animated-scroll "))},sortElements:function(e){return[].slice.call(e).sort(function(e,t){return parseInt(e.dataset["data-anim-id"])<parseInt(t.dataset["data-anim-id"])?-1:parseInt(e.dataset["data-anim-id"])>parseInt(t.dataset["data-anim-id"])?1:0})},ifHasContainer:function(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e}},PortalidPropagation=(document.addEventListener("DOMContentLoaded",function(){onScrollAnimate.init()}),"path"in Event.prototype||Object.defineProperty(Event.prototype,"path",{get:function(){for(var e=[],t=this.target;t;)e.push(t),t=t.parentElement;return-1===e.indexOf(window)&&-1===e.indexOf(document)&&e.push(document),-1===e.indexOf(window)&&e.push(window),e}}),_createClass(function e(){_classCallCheck(this,e),this.links=null,this.portalId=null,this.nr=null},[{key:"init",value:function(){if(this.links=document.querySelectorAll("[data-portal-id]"),0<this.links.length){this.links=Array.prototype.slice.call(this.links);var e=this.getUrlParameters(location.href);void 0!==e.portalId&&null!==e.portalId&&(this.portalId=e.portalId),void 0!==e.nr&&null!==e.nr&&(this.nr=e.nr),this.links=this.links.filter(function(e){return-1===e.attributes.href.value.indexOf("#")&&null!=e.attributes.href&&""!=e.attributes.href.value});for(var t=0;t<this.links.length;t++){var n=this.links[t];this.transformLink(n)}}e=document.querySelector("#main");e&&e.hasAttribute("data-portal-propagation-auto")&&null==document.querySelector(".guest-site.signed-in")&&this.portalPropagationAuto(e.getAttribute("data-portal-propagation-auto"),e)}},{key:"portalPropagationAuto",value:function(e,t){var n=this.getUrlParameters(location.href),o=["portalId","nr","utm_source","utm_medium","utm_campaign","utm_term","utm_content"],r=Object.entries(n).filter(function(e){var e=_slicedToArray(e,2),t=e[0],e=e[1];if(-1!==o.indexOf(t))return[t,e]}),a=(void 0!==n.portalId&&null!=n.portalId||r.unshift(["portalId",e]),r.map(function(e){var e=_slicedToArray(e,2),t=e[0],e=e[1];return"".concat(t,"=").concat(e)}).join("&")),n=_toConsumableArray(t.querySelectorAll("a[href]")),i=_toConsumableArray(t.querySelectorAll('a[href="javascript:;"], a[href="javascript:void(0)"], a[href^="#"], a[href=""], a[href*=".xml"], a[href*=".xls"], a[href*=".doc"],a[href*=".pdf"]'));return n.filter(function(e){return-1===i.indexOf(e)}).filter(function(e){return-1===e.href.indexOf("managedfiles")}).map(function(e){var t=(n=e.getAttribute("href").split("#"))[0].split("?"),n=2===n.length?"#".concat(n[1]):"",o=_toConsumableArray(a.split("&")),o=t[1]&&-1<t[1].indexOf("=")?(o=[].concat(_toConsumableArray(t[1].split("&")),_toConsumableArray(a.split("&"))).map(function(e){return e.split("=")})).reduce(function(e,t){return-1===e.indexOf(t[0])?"".concat(e,"&").concat(t.join("=")):e},"").substr(1):o.join("&");return e.setAttribute("href","".concat(t[0],"?").concat(o).concat(n)),e.getAttribute("href")})}},{key:"getUrlParameters",value:function(e){for(var t,e=e.split("?"),n=e[e.length-1].split("+").join(" "),o={},r=/[?&]?([^=]+)=([^&]*)/g;t=r.exec(n);)o[decodeURIComponent(t[1])]=decodeURIComponent(t[2]);return o}},{key:"transformLink",value:function(e){var t=null,n=null,o=e.attributes.href.value,r=e.attributes.href.value,a=e.attributes.href.value.indexOf("?"),i=e.attributes.href.value.indexOf("#");-1<i&&(t=o.substr(i)),-1<a&&(o=o.substr(0,a)),n="?portalId=".concat(null!==this.portalId?this.portalId:e.attributes["data-portal-id"].value),null!==this.nr&&(n="".concat(n,"&nr=").concat(this.nr)),console.log(n,o),o=(null!==this.portalId?o+(n||""):r)+(t||""),e.attributes.href.value=o}}])),portalidPropagation=new PortalidPropagation,smoothScrollToElement=(0!=document.getElementsByTagName("currentaccountapp").length||"complete"!==document.readyState&&("loading"===document.readyState||document.documentElement.doScroll)?document.addEventListener("DOMContentLoaded",function(){portalidPropagation.init()}):portalidPropagation.init(),{init:function(){for(var n=smoothScrollToElement,e=document.querySelectorAll("[data-smooth-scroll]"),o=0;o<e.length;o++)!function(){var t=e[o];t.addEventListener("click",function(e){e.preventDefault(),n.smoothScroll(t.getAttribute("href"))})}();window.location&&""!==window.location.hash&&window.addEventListener("load",function(){n.smoothScroll(window.location.hash)})},currentYPosition:function(){return Math.max(document.documentElement.scrollTop,document.body.scrollTop,window.pageYOffset)},elmYPosition:function(e){e=document.querySelector(e);
1if(null==e)return!1;var t,n,o=e.offsetTop,r=e;for(("DIV"===e.tagName?(t=(n=_toConsumableArray(e.querySelectorAll("a")))[0],n=n[1],t.classList.contains("icon--ci-menu")?n:t):(e.hasAttribute("tabindex")||e.setAttribute("tabindex",-1),e)).focus();r.offsetParent&&r.offsetParent!=document.body;)o+=(r=r.offsetParent).offsetTop;return o},changeFocus:function(e,t){setTimeout(function(){e.hasAttribute("tabindex")?e.focus():(e.setAttribute("tabindex",-1),e.focus(),e.removeAttribute("tabindex"))},t)},smoothScroll:function(e){var t=smoothScrollToElement,n=t.currentYPosition(),o=document.querySelector(e),r=t.elmYPosition(e);if(-1!==e.indexOf("_")&&2===(e=e.split("_")).length&&document.querySelector(".navigation-link__".concat(e[1]))&&document.querySelector(".navigation-link__".concat(e[1])).click(),!1!==r){e=n<r?r-n:n-r;if(e<100)"function"==typeof window.scrollTo?window.scrollTo(0,r):window.scroll(0,r),t.changeFocus(o,10);else{var a=Math.round(e/100),i=(20<=a&&(a=20),Math.round(e/25)),c=n<r?n+i:n-i,l=0,s=0;if(n<r)for(s=n;s<r;s+=i)"function"==typeof window.scrollTo?setTimeout("window.scrollTo(0, ".concat(c,")"),l*a):setTimeout("window.scroll(0, ".concat(c,")"),l*a),r<(c+=i)&&(c=r),l++;else{for(s=n;r<s;s-=i)"function"==typeof window.scrollTo?setTimeout("window.scrollTo(0, ".concat(c,")"),l*a):setTimeout("window.scroll(0, ".concat(c,")"),l*a),(c-=i)<r&&(c=r),l++;t.changeFocus(o,l*a)}}}}}),addProperCanonicals=("complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?smoothScrollToElement.init():document.addEventListener("DOMContentLoaded",function(){smoothScrollToElement.init()}),function(){var e,t,n,o;document.querySelector('head link[rel="canonical"]')||(e=document.createElement("link"),t=(o=window.location).origin,n=o.pathname,o=o.search,o=(o=new URLSearchParams(o).get("id"))?"?id=".concat(o):"",e.setAttribute("rel","canonical"),e.setAttribute("href",t+n+o),document.querySelector("head").appendChild(e))});function removeMetaRobots(){var e=document.querySelector('head meta[name="robots"]');e&&e.remove()}function addMetaNoIndex(){var e=document.createElement("meta");e.setAttribute("name","robots"),e.setAttribute("content","noindex"),document.querySelector("head").appendChild(e)}function handleMetaRobotsNoIndex(){removeMetaRobots(),addMetaNoIndex()}function addMetaNoIndexForHashUrl(){var e=window.location.hash;e&&""!==e&&handleMetaRobotsNoIndex()}function addMetaNoIndexForLanguageChange(){window.location.search.includes("languageChange=true")&&handleMetaRobotsNoIndex()}function disableContextMenusForLinksToCaClSohoApps(){document.addEventListener("contextmenu",function(e){var t;e.target.href&&(t=new URL(e.target.href).pathname.replace("/en/","").replace("/",""),["wniosek-o-konto-osobiste","wniosek-o-konto-firmowe","wniosek-o-pozyczke-online","apply-for-business-account","apply-for-current-account"].includes(t))&&e.preventDefault()})}document.addEventListener("DOMContentLoaded",function(e){"interactive"===document.readyState&&(addProperCanonicals(),addMetaNoIndexForHashUrl(),addMetaNoIndexForLanguageChange(),disableContextMenusForLinksToCaClSohoApps())});var BmpComponents={componentsDir:"/webcomponents/",globalVar:{window:{mobileMax:"979",tabletMax:"1199",desktopMax:"1579"}},componentsNamesList:[],componentsList:{},HTMLElement:function(){function e(){return _classCallCheck(this,e),_callSuper(this,e)}return _inherits(e,_wrapNativeSuper(HTMLElement)),_createClass(e,[{key:"connectedCallback",value:function(){try{"function"==typeof this.createdCallbackWC&&this.createdCallbackWC()}catch(e){console.log(e),this.setAttribute("error","true")}finally{this.setAttribute("start","true")}try{"function"==typeof this.attachedCallbackWC&&this.attachedCallbackWC()}catch(e){console.log(e),this.setAttribute("error","true")}}},{key:"disconnectedCallback",value:function(){try{"function"==typeof this.detachedCallbackWC&&this.detachedCallbackWC()}catch(e){console.log(e),this.setAttribute("error","true")}}},{key:"attributeChangedCallback",value:function(e,t,n){try{"function"==typeof this.attributeChangedCallbackWC&&this.attributeChangedCallbackWC(e,t,n)}catch(e){console.log(e),this.setAttribute("error","true")}}},{key:"attr",get:function(){return this.attributes}}])}(),removeScripts:function(e){return e.replace(/<script[^>]*>.*?<\/script>/gi,"")}
1,register:function(e,t,n,o){n.lazy?this.registerLazy(e,t,n):(this.componentsNamesList.push(e),this.componentsList[e]={class:t,option:n,template:o||null})},geComponentstList:function(){return this.componentsList},setShadow:function(e){return e.prototype.createdCallbackWC=function(){this.createShadowRoot()},e},registerLazy:function(e,t,n){var o,r=this,a=document.querySelector(e);null!=a&&(0<window.screen.availHeight-a.getBoundingClientRect().top-100?r.registerComponent(e,t,n):((o=document.createElement("div")).className="standardLoader",a.appendChild(o),window.addEventListener("scroll",debounce(function(){0<window.pageYOffset-a.getBoundingClientRect().top-100&&document.createElement(e).constructor.__proto__!==t&&!a.attributes.start&&r.registerComponent(e,t,n)},10))))},registerComponent:function(t,e,n,o){try{var r,a=customElements.get(t);if(void 0===a)return n.template&&null!=o&&((r=document.createElement("template")).innerHTML=o,e.prototype.template=r.content),customElements.define(t,e)}catch(e){return console.log("error components define",t,e),null}},getWcOnSide:function(){for(var e=/WC-/,t=0,n=["wc-tooltip","wc-scrollbar"],t=0;t<n.length;t++){var o=n[t];document.querySelector('link[href*="'.concat(o,'.html"]'))||document.querySelector("head").insertAdjacentHTML("beforeend",'<link rel="import" href="'.concat(window.BmpComponents.components
1Dir).concat(o,".html?t=").concat(jsWebcomponentsTS,'" defer></link>'))}for(var r=Array.prototype.slice.call(document.all);t!==r.length;)e.test(r[t].nodeName)&&n.indexOf(r[t].nodeName.toLowerCase())<0&&n.push(r[t].nodeName.toLowerCase()),t++;return window.BmpComponents.onSide=n},appendHtmlComponents:function(){for(var e=["wc-tooltip","wc-scrollbar"].concat(window.BmpComponents.componentsNamesList),t=0;t<e.length;t++){var n,o=e[t];!window.BmpComponents.componentsList[o]||(n=window.BmpComponents.componentsList[o]).option.lazy||window.BmpComponents.registerComponent(o.toLowerCase(),n.class,n.option,n.template)}},recreateNode:function(e,t){var n=e.parentNode;if(t)n.replaceChild(e.cloneNode(!0),e);else{for(var o=e.cloneNode(!1);e.hasChildNodes();)o.appendChild(e.firstChild);n.replaceChild(o,e)}return n.firstElementChild},init:function(){var e;BmpComponents.getWcOnSide(),document.querySelector('script[src*="allComponents.js"]')||((e=document.createElement("script")).src="".concat("/dist/js/allComponents.js?t=").concat(jsWebcomponentsTS),document.querySelector("head").appendChild(e)),window.addEventListener("BmpComponentsReady",function(){BmpComponents.appendHtmlComponents()})}};"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?BmpComponents.init():document.addEventListener("DOMContentLoaded",function(){BmpComponents.init()});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.