1import{$b as Qe,$e as yt,$i as mi,Aa as O,Ah as Yt,B as je,Bc as lt,Bh as L,Cb as Q,Cj as ui,Dd as ft,Dh as K,Dj as fi,Eb as Xe,Eh as qt,F as Ve,Fe as It,Gb as Ye,Gi as ti,Ha as $,I as x,Ia as S,Ic as pt,Id as _t,Ii as ii,Je as Et,Ji as ni,K as b,Ka as u,Kf as Ht,Ki as oi,Lb as qe,Lf as Wt,Li as ri,M as D,Md as Se,Mi as ai,N as E,Nd as j,Ni as si,O as F,Oi as ci,P as k,Pd as gt,Pe as xe,Pi as li,Pj as _i,Qb as H,Rd as ht,S as Ue,Sd as te,Sj as gi,Ta as Le,Te as xt,Ub as Ze,V as He,Va as We,Ve as V,Wb as de,We as Tt,Xa as l,Xe as Ot,Ya as I,Yb as ue,Ye as Pt,Za as N,Zb as Je,Ze as bt,_a as ze,_c as W,_e as Dt,_f as zt,_i as pi,a as U,ab as Ke,af as Lt,aj as di,b as Y,bc as et,be as vt,bf as Mt,ca as s,cc as fe,cf as wt,dc as tt,df as q,dm as vi,ec as it,ef as Nt,ei as ie,ff as Rt,g as Ge,gc as _e,gf as Ft,gi as ne,ha as p,hd as ce,hf as kt,hi as oe,i as $e,ia as T,ib as P,ic as nt,id as mt,if as Bt,ii as Zt,jb as y,jc as ge,jd as he,je as z,jf as Gt,ji as Jt,kb as Me,kd as ee,ke as we,kf as $t,ld as dt,le as Ae,md as ve,me as Ce,ob as se,od as ut,ok as hi,p as J,pc as ot,pe as Ie,qc as rt,qf as jt,ra as h,rc as at,rd as A,re as Ee,rf as Vt,ri as re,sa as v,sc as st,sf as Ut,sh as Kt,si as Qt,th as Ne,ua as ae,ue as St,va as B,ve as At,wa as G,wc as ct,xa as m,xh as Xt,ya as r,ye as Ct,yi as ei,za as a}from"./chunk-YMFY75IU.js";var Ai=(()=>{class t{constructor(e){this.http=e}getAccounts(){return this.http.get(Ht)}updateAccountsOrder(e){let i=this.transformToAccountOrder(e);return this.http.put(Wt,i)}transformToAccountOrder(e){return e.forEach(i=>i.orderValue=e.indexOf(i)),e}static{this.\u0275fac=function(i){return new(i||t)(D(H))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Hi(t,c){if(t&1&&(r(0,"span"),l(1),a()),t&2){let e=u(2);s(),I(e.DOWNLOADING_INFO)}}function Wi(t,c){if(t&1&&(r(0,"span"),l(1),P(2,"ibanFormatPipe"),a()),t&2){let e=u().$implicit;s(),I(y(2,1,e.iban))}}function zi(t,c){if(t&1){let e=$();r(0,"mat-list-option",6),S("click",function(){let n=F(e).$index,o=u();return k(o.select(n))}),h(1,Hi,2,1,"span"),h(2,Wi,3,3,"span"),a()}if(t&2){let e=c.$implicit,i=u();m("value",e)("selected",i.preSelection.indexOf(e)>-1),s(),v(i.accounts[0].iban.includes(i.DOWNLOADING_INFO)?1:-1),s(),v(i.accounts[0].iban.includes(i.DOWNLOADING_INFO)?-1:2)}}var Ei=(()=>{class t{constructor(e,i,n,o,f){this.dialogRef=e,this.accountsOrderService=i,this.notificationService=n,this.errorProviderService=o,this.data=f,this.preSelection=[],this.DOWNLOADING_INFO=A.DATA_DOWNLOADING,this.ButtonLabels=ie,this.changeFlag=!1,this.accounts=[{accountId:"",orderValue:-1,iban:this.DOWNLOADING_INFO}]}ngOnInit(){this.accountsOrderService.getAccounts().pipe(x(e=>{this.accounts=e,e&&(this.preSelection=[this.accounts[0]],this.select(0))}),this.errorProviderService.processError(A.FETCHING_DATA_ERROR)).subscribe()}select(e){this.selectedAccountIndex=e}close(){this.dialogRef.close()}moveUp(){this.move(-1)}moveDown(){this.move(1)}move(e){if(this.changeFlag=!0,this.selectedAccountIndex||this.selectedAccountIndex===0){let i=this.selectedAccountIndex,n=i+e;if(this.isNotFirstOrLast(n)){let o=this.accounts,f=[i,n].sort((g,$i)=>g-$i);o.splice(f[0],2,o[f[1]],o[f[0]]),this.selectedAccountIndex=n}}else this.notificationService.error(A.SELECT_ACCOUNT)}save(){this.accounts&&this.changeFlag?(this.notificationService.default(A.SAVING_PROGRESS),this.updateListOrder()):this.notificationService.default("Nie wykryto zmian w kolejno\u015Bci listy kont")}isNotFirstOrLast(e){return e>=0&&e<this.accounts.length}updateListOrder(){this.accountsOrderService.updateAccountsOrder(this.accounts).pipe(x(()=>{this.notificationService.success(A.SAVING_SUCCESS),this.close()}),this.errorProviderService.processError(A.SAVING_ERROR)).subscribe()}static{this.\u0275fac=function(i){return new(i||t)(p(ee),p(Ai),p(j),p(z),p(dt))}}static{this.\u0275cmp=T({type:t,selectors:[["app-accounts-order-dialog"]],standalone:!1,decls:14,vars:4,consts:[[1,"page-button-panel","gap-02rem"],["icon","arrow_upward",3,"clickAction"],["icon","arrow_downward",3,"clickAction"],["dense","",1,"selection-list",3,"multiple"],[3,"value","selected"],[3,"cancelAction","confirmAction","buttonLabelCancel","buttonLabelConfirm"],[3,"click","value","selected"]],template:function(i,n){i&1&&(r(0,"app-dialog-container")(1,"app-dialog-header"),l(2),a(),r(3,"app-dialog-subheader"),l(4,"Lista rachunk\xF3w"),a(),r(5,"app-page-btn-panel",0)(6,"app-button",1),S("clickAction",function(){return n.moveUp()}),l(7," W g\xF3r\u0119 "),a(),r(8,"app-button",2),S("clickAction",function(){return n.moveDown()}),l(9," W d\xF3\u0142 "),a()(),r(10,"mat-selection-list",3),B(11,zi,3,4,"mat-list-option",4,ae),a(),r(13,"app-action-buttons-panel",5),S("cancelAction",function(){return n.close()})("confirmAction",function(){return n.save()}),a()()),i&2&&(s(2),I(n.data.title),s(8),m("multiple",!1),s(),G(n.accounts),s(2),m("buttonLabelCancel",n.ButtonLabels.CANCEL)("buttonLabelConfirm",n.ButtonLabels.SAVE))},dependencies:[li,si,hi,ne,oe,Zt,Se,re,gi],styles:[".page-button-panel[_ngcontent-%COMP%]{margin-bottom:.5rem}.selection-list[_ngcontent-%COMP%]{max-height:50vh;overflow:auto;padding-top:0!important}.gap-02rem[_ngcontent-%COMP%]{gap:.2rem}"]})}}return t})();var xi=(()=>{class t{constructor(e,i){this.http=e,this.parameterService=i,this.url="",this.port="",this.parameterService.getParameterAsString(W.AUTODEALING_URL).subscribe(n=>this.url=n),this.parameterService.getParameterAsString(W.AUTODEALING_PORT).subscribe(n=>this.port=n)}getDealingData(){return this.http.get(Ne)}tokenLogin(e,i){let n=[["userId",i],["tokenSSO",e.tokenSSO],["systemName",e.systemName]],o=document.createElement("form");o.target="_blank",o.method="POST",o.action=this.url+":"+this.port+"/tokenlogin",n.forEac
1h(f=>{let g=document.createElement("input");g.type="hidden",g.name=f[0],g.setAttribute("value",f[1]),o.appendChild(g)}),document.body.appendChild(o),o.submit()}saveUserId(e){let i=new qe().set("userId",e.trim());return this.http.post(Ne,null,{params:i})}static{this.\u0275fac=function(i){return new(i||t)(D(H),D(te))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Ji(t,c){t&1&&(r(0,"span"),l(1,"To pole jest wymagane"),a())}function Qi(t,c){t&1&&(r(0,"span"),l(1,"Niepoprawne ID Autodealing"),a())}var Ti=(()=>{class t{constructor(e,i,n,o){this.dialogRef=e,this.autodealingBpsService=i,this.notificationService=n,this.errorProviderService=o,this.ButtonLabels=ie,this.userIdFC=new fe("")}ngOnInit(){this.getAutodealingData()}getAutodealingData(){this.autodealingBpsService.getDealingData().subscribe(e=>{this.autodealingData=e,this.userIdFC.setValue(this.autodealingData.userId)})}dismiss(){this.dialogRef.close()}resetValues(){this.userIdFC.setValue(this.autodealingData.userId)}saveUserId(){this.autodealingBpsService.saveUserId(this.userIdFC.value).pipe(x(()=>{this.notificationService.success(A.REALIZATION_SUCCESS),this.dialogRef.close()}),this.errorProviderService.processError(A.ERROR_OCCURED)).subscribe()}tokenLogin(){this.autodealingBpsService.tokenLogin(this.autodealingData,this.userIdFC.value.trim()),this.dialogRef.close()}static{this.\u0275fac=function(i){return new(i||t)(p(ee),p(xi),p(j),p(z))}}static{this.\u0275cmp=T({type:t,selectors:[["app-autodealing-bps-dialog"]],standalone:!1,decls:12,vars:7,consts:[["appearance","outline"],["autocomplete","off","appConfirmOnEnter","","matInput","","type","text","required","",3,"formControl"],[3,"cancelAction","confirmAction","confirmAddNextAction","resetAction","confirmDisabled","withConfirmAddNextButton","buttonLabelConfirmAddNext","confirmAddNextDisabled"]],template:function(i,n){i&1&&(r(0,"app-dialog-container")(1,"app-dialog-header"),l(2,"Dealing BPS"),a(),r(3,"mat-dialog-content")(4,"mat-form-field",0)(5,"mat-label"),l(6,"U\u017Cytkownik"),a(),O(7,"input",1),r(8,"mat-error"),h(9,Ji,2,0,"span"),h(10,Qi,2,0,"span"),a()()(),r(11,"app-action-buttons-panel",2),S("cancelAction",function(){return n.dismiss()})("confirmAction",function(){return n.saveUserId()})("confirmAddNextAction",function(){return n.tokenLogin()})("resetAction",function(){return n.resetValues()}),a()()),i&2&&(s(7),m("formControl",n.userIdFC),s(2),v(n.userIdFC.hasError("required")?9:-1),s(),v(n.userIdFC.hasError("incorrectId")?10:-1),s(),m("confirmDisabled",n.userIdFC.invalid)("withConfirmAddNextButton",!0)("buttonLabelConfirmAddNext",n.ButtonLabels.LOGIN)("confirmAddNextDisabled",n.userIdFC.invalid))},dependencies:[Ie,Ae,Ce,ut,Ee,de,ue,ge,_i,ne,oe,_e,re],encapsulation:2})}}return t})();var Oi=(()=>{class t{constructor(){this.http=E(H),this.ipAddressesApi=E(pt)}getIPAddressees(){return this.http.get(zt)}getLastIPAddressees(){return this.http.get(Kt)}changeIpAddressesAuthOperation(e){return{prepare:()=>this.ipAddressesApi.changePrepare(e).pipe(J(i=>i.authMethodInfo)),perform:i=>this.ipAddressesApi.changePerform(i),cancel:()=>this.ipAddressesApi.changeCancel()}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Pi="[a-fA-F\\d:]",X=t=>t&&t.includeBoundaries?`(?:(?<=\\s|^)(?=${Pi})|(?<=${Pi})(?=\\s|$))`:"",R="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",_="[a-fA-F\\d]{1,4}",Oe=` 2(?: 3(?:${_}:){7}(?:${_}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8 4(?:${_}:){6}(?:${R}|:${_}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4 5(?:${_}:){5}(?::${R}|(?::${_}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4 6(?:${_}:){4}(?:(?::${_}){0,1}:${R}|(?::${_}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4 7(?:${_}:){3}(?:(?::${_}){0,2}:${R}|(?::${_}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4 8(?:${_}:){2}(?:(?::${_}){0,3}:${R}|(?::${_}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4 9(?:${_}:){1}(?:(?::${_}){0,4}:${R}|(?::${_}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4 10(?::(?:(?::${_}){0,5}:${R}|(?::${_}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4 11)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1 12`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),tn=new RegExp(`(?:^${R}$)|(?:^${Oe}$)`),nn=new RegExp(`^${R}$`),on=new RegExp(`^${Oe}$`),ke=t=>t&&t.exact?tn:new RegExp(`(?:${X(t)}${R}${X(t)})|(?:${X(t)}${Oe}${X(t)})`,"g");ke.v4=t=>t&&t.exact?nn:new RegExp(`${X(t)}${R}${X(t)}`,"g");ke.v6=t=>t&&t.exact?on:new RegExp(`${X(t)}${Oe}${X(t)}`,"g");var Be=ke;var le=class{static isIPCorrect(c){let e=c.value;return e===""||Be({exact:!0}).test(e)||Be.v6({exact:!0}).test(e)?null:{incorrectIP:!0}}static isLocalIpAddress(c){let e=c.value.split(vt).map(i=>parseInt(i,10));return e[0]===10||e[0]===172&&(e[1]>=16||e[1]<=31)||e[0]===192&&e[1]===168?{localIp:!0}:null}};function rn(t,c){if(t&1&&(r(0,"mat-option",3),l(1),a()),t&2){let e=c.$implicit;m("value",e),s(),N(" ",e," ")}}function an(t,c){t&1&&(r(0,"span"),l(1,"Z\u0142y format adresu IP"),a())}function sn(t,c){t&1&&(r(0,"span"),l(1,"Adres IP nie mo\u017Ce by\u0107 lokalny"),a())}function cn(t,c){if(t&1){let e=$();r(0,"div",7)(1,"mat-form-field",9)(2,"mat-label"),l(3,"Adres"),a(),r(4,"input",10),S("change",function(){F(e);let n=u();return k(n.isNotReadyToAdd=!1)}),a(),r(5,"mat-error"),h(6,an,2,0,"span"),h(7,sn,2,0,"span"),a()()()}if(t&2){let e=c.$implicit,i=u();s(4),m("formControl",i.asFormControl(e)),s(2),v(e.hasError("ipAddress.incorrect")||e.hasError("incorrectIP")?6:-1),s(),v(e.hasError("localIp")?7:-1)}}var bi=15,yi=(()=>{class t{constructor(e,i,n,o,f){this.dialogRef=e,this.loginOptionService=i,this.notificationService=n,this.errorProcessingService=o,this.userFacadeService=f,this.addressesFA=new it([]),this.ButtonLabels=ie,this.ipAddresses=[],this.authFlow=E(Ct),this.isIpEditEnabled=this.userFacadeService.hasAuthorities([ct.FUNC_IP_EDIT]),this.lastIPAddressFC=new fe({value:"",disabled:!this.isIpEditEnabled}),this.addressesFG=new Qe({ipAddresses:this.addressesFA}),this.lastIpAddresses$=this.loginOptionService.getLastIPAddressees(),this.loginOptionService.getIPAddressees().subscribe(g=>{this.ipAddresses=g,this.createAddresses()})}asFormControl(e){return e}addAddress(){for(let e=0;e<bi;e++)if(this.addressesFA.at(e).value===""){this.addressesFA.at(e).patchValue(this.lastIPAddressFC.value),this.addressesFA.at(e).markAsTouched();break}}confirmAddresses(){if(this.isIpEditEnabled){let e=this.loginOptionService.changeIpAddressesAuthOperation(this.getIpAddresses());this.authFlow.run(e,[],{title:"Autoryzacja adres\xF3w IP",summary:"Potwierdzenie zmiany dozwolonej puli adres\xF3w IP."}).pipe(x(()=>{this.notificationService.success(A.CHANGE_IP_ADDRESSES_SUCCESS),this.close()}),Yt(),this.errorProcessingService.processErrorWithLocalFormError(this)).subscribe()}else this.notificationService.error(A.NO_PERMISSIONS),this.close()}clearContent(){this.createAddresses(),this.isNotReadyToAdd=!0}getFormGroup(){return this.addressesFG}close(){this.dialogRef.close()}getControlByProperty(e){let i=Number(e.replace("address",""));return this.addressesFA.controls[i-1]}createAddresses(){this.addressesFA.clear();for(let e=0;e<bi;e++){let i=new et({value:"",disabled:!this.isIpEditEnabled},{validators:[le.isIPCorrect,le.isLocalIpAddress],nonNullable:!0});this.addressesFA.push(i)}
12this.ipAddresses.forEach((e,i)=>{this.addressesFA.at(i).setValue(e)})}getIpAddresses(){return this.addressesFA.controls.map(e=>e.value)}static{this.\u0275fac=function(i){return new(i||t)(p(ee),p(Oi),p(j),p(z),p(K))}}static{this.\u0275cmp=T({type:t,selectors:[["app-login-option-dialog"]],standalone:!1,decls:20,vars:8,consts:[[1,"flex-row","justify-between","gap-10"],["appearance","outline",1,"flex-100"],["required","",3,"formControl"],[3,"value"],[1,"add-button",3,"clickAction","disabled"],["inline","true"],[1,"flex-row-wrap","gap-10",3,"formGroup"],[1,"flex-30"],[3,"cancelAction","resetAction","confirmAction","resetDisabled","confirmDisabled","buttonLabelConfirm"],["appearance","outline"],["autocomplete","off","matInput","","placeholder","Podaj IP",3,"change","formControl"]],template:function(i,n){i&1&&(r(0,"app-dialog-container")(1,"app-dialog-header"),l(2,"Opcje logowania"),a(),r(3,"app-dialog-content")(4,"div",0)(5,"mat-form-field",1)(6,"mat-label"),l(7,"Ostatnio u\u017Cywane adresy IP"),a(),r(8,"mat-select",2),B(9,rn,2,2,"mat-option",3,ae),P(11,"async"),a()(),r(12,"app-button",4),S("clickAction",function(){return n.addAddress()}),r(13,"mat-icon",5),l(14,"done"),a(),l(15," Dodaj "),a()(),r(16,"form",6),B(17,cn,8,3,"div",7,ae),a()(),r(19,"app-action-buttons-panel",8),S("cancelAction",function(){return n.close()})("resetAction",function(){return n.clearContent()})("confirmAction",function(){return n.confirmAddresses()}),a()()),i&2&&(s(8),m("formControl",n.lastIPAddressFC),s(),G(y(11,6,n.lastIpAddresses$)),s(3),m("disabled",n.lastIPAddressFC.invalid||!n.isIpEditEnabled),s(4),m("formGroup",n.addressesFG),s(),G(n.addressesFA.controls),s(2),m("resetDisabled",!n.isIpEditEnabled)("confirmDisabled",n.addressesFG.invalid||!n.isIpEditEnabled)("buttonLabelConfirm",n.ButtonLabels.SAVE))},dependencies:[Ie,Ae,Ce,St,_t,Ee,At,tt,de,ue,Je,ge,ne,oe,Jt,_e,nt,Se,re,Q],styles:[".add-button[_ngcontent-%COMP%]{padding-top:5.5px;height:50px}.flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-row-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.gap-10[_ngcontent-%COMP%]{gap:10px}.flex-30[_ngcontent-%COMP%]{flex:1 1 30%;max-width:30%;box-sizing:border-box}.flex-100[_ngcontent-%COMP%]{flex:1 1 100%;max-width:100%;box-sizing:border-box}"]})}}return t})();var Li=(()=>{class t{constructor(e,i,n){this.eximeeApiService=e,this.notificationService=i,this.errorProviderService=n}openEximee(){this.eximeeApiService.generateEximeeUrl().pipe(x(e=>{window.open(e.link),this.notificationService.default("Otwarto w nowym oknie")}),this.errorProviderService.processError(A.ERROR_OCCURED)).subscribe()}static{this.\u0275fac=function(i){return new(i||t)(D(lt),D(j),D(z))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Mi(t){return t.path!==void 0}function wi(t){return t.dialogType!==void 0}var d=(function(t){return t.ACCOUNTS="Rachunki",t.CARDS="Karty",t.STANDING_ORDERS="Zlecenia sta\u0142e",t.DEPOSITS="Lokaty",t.GSM_BOOSTS="Do\u0142adowania GSM",t.TRANSFERS="Przelewy",t.SIGNATURES="Podpisy",t.EXECUTION="Realizacja",t.BASEMENT="Kantor",t.CONTRACTORS="Kontrahenci",t.BANKS="Banki",t.FOREIGN_BANKS="Banki zagraniczne",t.TAX_OFFICE="Urz\u0105d skarbowy",t.EXCHANGE_RATE="Kursy walut",t.DEPOSIT_INTEREST_RATE="Oprocentowanie lokat",t.CHOOSE_CLIENT="Wybierz firm\u0119",t.CHANGE_PASSWORD="Zmie\u0144 has\u0142o",t.ACCOUNT_ORDER="Kolejno\u015B\u0107 rachunk\xF3w",t.LOGIN_OPTIONS="Opcje logowania",t.DEALING_BPS="Dealing BPS",t.EXIMEE_PLATFORM="Platforma Eximee",t.CREDIT_HOLIDAYS="Wakacje kredytowe",t.MOBILE_APP="Aplikacja mobilna",t})(d||{}),pe=(function(t){return t.TOP_LEVEL="Rachunki i operacje",t.SUPPORT_TABLES="Tabele pomocnicze",t.PROFILE="Profil",t.PROPOSAL="Wnioski",t.MESSAGE="Komunikaty",t})(pe||{}),C=(t,c,e,i={})=>U({path:t+"/"+c,caption:e,isActive:!0},i),me=(t,c)=>({dialogType:t,caption:c,isActive:!0}),ln=C(xe,xe,d.ACCOUNTS),pn=C(xe,xt,d.CARDS),mn=C(V,Tt,d.STANDING_ORDERS),dn=C(V,Ot,d.DEPOSITS),un=C(V,Pt,d.GSM_BOOSTS),fn=C(V,bt,d.TRANSFERS),_n=C(V,Dt,d.SIGNATURES,{aliasPaths:[V+"/"+yt]}),gn=C(V,Lt,d.EXECUTION),hn=C(V,Mt,d.BASEMENT),vn=C(q,wt,d.CONTRACTORS),Sn=C(q,Nt,d.BANKS),An=C(q,Rt,d.FOREIGN_BANKS),Cn=C(q,Ft,d.TAX_OFFICE),In=C(q,kt,d.EXCHANGE_RATE),En=C(q,Bt,d.DEPOSIT_INTEREST_RATE),xn=me(L.CHOOSE_CLIENT,d.CHOOSE_CLIENT),Tn=me(L.CHANGE_PASSWORD,d.CHANGE_PASSWORD),On=C(jt,Vt,d.MOBILE_APP),Pn=me(L.ACCOUNT_ORDER,d.ACCOUNT_ORDER),bn=me(L.LOGIN_OPTIONS,d.LOGIN_OPTIONS),Dn=me(L.DEALING_BPS,d.DEALING_BPS),yn={path:"",caption:d.EXIMEE_PLATFORM,isActive:!0,isRoutingDisabled:!0},Ln=C(Gt,$t,d.CREDIT_HOLIDAYS);function be(t){return t.filter(([,c])=>c===ce.VISIBLE||c===ce.DISABLED).map(([c,e])=>Y(U({},c),{isActive:e===ce.VISIBLE}))}var Z=t=>[t,ce.VISIBLE];function Ni(t,c){return{topLevelMenuLinks:be([[ln,t.bankAccounts],[pn,t.cards],[mn,t.standingOrders],[dn,t.deposits],[un,t.gsmTopUp],[fn,t.transfers],[_n,t.signatures],[gn,t.execution],[Y(U({},hn),{caption:c}),t.basement]]),supportTablesMenuLinks:be([Z(vn),Z(Sn),[An,t.foreignBanks],Z(Cn),[In,t.exchangeRates],Z(En)]),profileMenuLinks:be([Z(xn),Z(Tn),[On,t.mobileAp
12p],Z(Pn),[bn,t.loginOptions],[Dn,t.autoDealing]]),proposalsMenuLinks:be([[yn,t.eximee],[Ln,t.creditHolidays]])}}var Ri=(()=>{class t{constructor(){this.appStore=E(mt),this.messagesService=E(Xt),this.parameterService=E(te),this.eximeePlatformService=E(Li),this.state=He({expandedGroup:pe.TOP_LEVEL,selectedDialogType:null,unreadCount:0}),this.basementCaption=ht(this.parameterService.getParameterAsString(W.BASEMENT_EXCHANGE_NAME),{initialValue:void 0}),this.menu=se(()=>Ni(this.appStore.menuVisibility(),this.basementCaption()||d.BASEMENT)),this.expandedGroup=se(()=>this.state().expandedGroup),this.selectedDialogType=se(()=>this.state().selectedDialogType),this.unreadCount=se(()=>this.state().unreadCount)}selectGroup(e){this.state.update(i=>Y(U({},i),{expandedGroup:e,selectedDialogType:null}))}selectDialog(e,i){this.state.update(n=>Y(U({},n),{expandedGroup:e,selectedDialogType:i}))}checkUnreadMessages(){return this.messagesService.getBufferedUnreadMessageCount().pipe(x(e=>this.state.update(i=>Y(U({},i),{unreadCount:e}))))}openEximeePlatform(){this.eximeePlatformService.openEximee()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var De=class{constructor(c){this.sessionService=c}confirm(c){return this.sessionService.refreshSession()}};var Fi=(()=>{class t{constructor(e,i){this.userFacadeService=e,this.http=i,this.countdownSubject=new $e(new Date),this.resetSessionCountdown$=this.countdownSubject.asObservable().pipe(Ve())}getSessionTimeout(){return this.userFacadeService.getUser().pipe(J(e=>e.sessionTimeout))}refreshSession(){return this.http.post(Ut,null)}static{this.\u0275fac=function(i){return new(i||t)(D(K),D(H))}}static{this.\u0275prov=b({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var wn=5,ki=(()=>{class t{constructor(e,i,n,o){this.dialog=e,this.sessionService=i,this.notificationService=n,this.loginFacadeService=o,this.timeLeft="0:00:00",this.intervalId=0,this.countdownStartTime=new Date,this.sessionTimeInSeconds=0,this.sessionTime=0,this.halfOfSessionTimeInSecond=0,this.sessionConfirmationIsOpen=!1,this.subscription=new Ge}ngOnInit(){this.initData(),this.countDown(),this.resetCountDown()}ngOnDestroy(){this.clearTimer(),this.subscription.unsubscribe()}resetCountDown(){this.sessionService.resetSessionCountdown$.pipe(x(()=>{this.sessionTime=this.getSessionTime(),this.countdownStartTime=new Date,this.sessionConfirmationIsOpen=!1})).subscribe()}clearTimer(){clearInterval(this.intervalId)}countDown(){this.clearTimer(),this.intervalId=window.setInterval(()=>this.singleTick(),1e3)}singleTick(){if(this.sessionTime--,this.updateSessionTimeByClockIfNecessary(),this.isSessionEnd()){this.sessionEndAction();return}if(this.shouldPromptForRefreshWhileHalfOfTime()){this.decideAboutSessionTime();return}this.timeLeft=this.formatTimer(this.sessionTime)}formatTimer(e){let i=Math.max(0,Math.floor(e))%86400,n=Math.floor(i/3600),o=Math.floor(i%3600/60),f=i%60;return`${n}:${String(o).padStart(2,"0")}:${String(f).padStart(2,"0")}`}isSessionEnd(){return this.sessionTime<=-1}sessionEndAction(){this.notificationService.success(A.AUTO_LOGOUT_SUCCESSFUL),this.clearTimer(),this.loginFacadeService.logout("session_timeout").subscribe()}decideAboutSessionTime(){let e=new he;this.sessionConfirmationIsOpen=!0,e.data={title:"Komunikat",details:this,confirmation:new De(this.sessionService),showCancelBtn:!1,type:ui.SESSION_CONFIRM},this.dialog.open(fi,e).afterClosed().pipe(x(i=>{i&&i.state&&(this.sessionTime=this.getSessionTime(),this.sessionConfirmationIsOpen=!1)})).subscribe()}updateSessionTimeByClockIfNecessary(){let e=(new Date().getTime()-this.countdownStartTime.getTime())/1e3,i=this.getSessionTime()-e;Math.abs(this.sessionTime-i)>wn&&(this.sessionTime=i)}getSessionTime(){return this.sessionTimeInSeconds}initData(){this.subscription=this.sessionService.getSessionTimeout().subscribe(e=>{this.sessionTimeInSeconds=e,this.sessionTime=e}),this.halfOfSessionTimeInSecond=this.sessionTimeInSeconds/2}shouldPromptForRefreshWhileHalfOfTime(){return this.sessionTime<=this.halfOfSessionTimeInSecond&&!this.sessionConfirmationIsOpen}static{this.\u0275fac=function(i){return new(i||t)(p(ve),p(Fi),p(j),p(qt))}}static{this.\u0275cmp=T({type:t,selectors:[["app-countdown-timer"]],standalone:!1,decls:2,vars:1,template:function(i,n){i&1&&(r(0,"span"),l(1),a()),i&2&&(s(),N(" Wyloguj ( ",n.timeLeft," )"))},encapsulation:2})}}return t})();var ye=(t,c)=>c.caption;function Fn(t,c){if(t&1){let e=$();r(0,"a",9,1),S("click",function(){let n=F(e).$implicit,o=u();return k(o.selectPathLink(o.mainMenuCaption.TOP_LEVEL,n))}),l(2),a(),O(3,"mat-divider")}if(t&2){let e=c.$implicit,i=Le(1),n=u();m("activated",e.isActive&&(i.isActive||n.isAliasActive(e)))("disabled",!e.isActive)("routerLink",e.isActive?"/"+e.path:null),s(2),I(e.caption)}}function kn(t,c){if(t&1){let e=$();r(0,"a",10),S("click",function(){let n=F(e).$implicit,o=u();return k(o.selectPathLink(o.mainMenuCaption.SUPPORT_TABLES,n))}),l(1),a()}if(t&2){let e=c.$implicit;m("routerLinkActive",e.isActive?"is-active":"")("disabled",!e.isActive)("routerLink",e.isActive?"/"+e.path:null),s(),I(e.caption)}}function Bn(t,c){if(t&1){let e=$();r(0,"button",12),S("click",function(){let n=F(e),o=u(2);return k(o.selectDialogLink(o.mainMenuCaption.PROFILE,n))}),l(1),a()}if(t&2){let e=c,i=u(2);We("is-active",i.selectedDialogType()===e.dialogType),m("disabled",!e.isActive),s(),N(" ",e.dialogType," ")}}function Gn(t,c){if(t&1){let e=$();r(0,"a",10),S("click",function(){let n=F(e),o=u(2);return k(o.selectPathLink(o.mainMenuCaption.PROFILE,n))}),l(1),a()}if(t&2){let e=c;m("routerLinkActive",e.isActive?"is-active":"")("disabled",!e.isActive)("routerLink",e.isActive?"/"+e.path:null),s(),I(e.caption)}}function $n(t,c){if(t&1&&(h(0,Bn,2,4,"button",11),h(1,Gn,2,4,"a",6)),t&2){let e,i,n=c.$implicit,o=u();v((e=o.asDialogItem(n))?0:-1,e),s(),v((i=o.asPathItem(n))?1:-1,i)}}function jn(t,c){if(t&1){let e=$();r(0,"a",10),S("click",function(){let n=F(e).$implicit,o=u();return k(o.selectPathLink(o.mainMenuCaption.PROPOSAL,n))}),l(1),a()}if(t&2){let e=c.$implicit;m("routerLinkActive",e.isActive?"is-active":"")("disabled",!e.isActive)("routerLink",e.isActive&&!e.isRoutingDisabled?"/"+e.path:null),s(),I(e.caption)}}function Vn(t,c){t&1&&(r(0,"span"),l(1),a()),t&2&&(s(),N("(",c,")"))}var Bi=(()=>{class t{constructor(){this.dialog=E(ve),this.router=E(rt),this.destroyRef=E(Ue),this.menuService=E(Ri),this.mainMenuCaption=pe,this.menu=this.menuService.menu,this.selectedDialogType=this.menuService.selectedDialogType,this.unreadCount=this.menuService.unreadCount,this.initiallyExpandedGroup=this.menuService.expandedGroup()}ngOnInit(){this.menuService.checkUnreadMessages().pipe(je(1),gt(this.destroyRef)).subscribe()}selectGroup(e){this.menuService.selectGroup(e)}selectPathLink(e,i){this.menuService.selectGroup(e),i.caption===d.EXIMEE_PLATFORM&&this.menuService.openEximeePlatform()}selectDialogLink(e,i){this.menuService.selectDialog(e,i.dialogType);let{dialog:n,config:o}=this.getDialog(i.dialogType);this.dialog.open(n,o)}isAliasActive(e){return e.isActive&&(e.aliasPaths??[]).some(i=>this.router.isActive("/"+i,{paths:"subset",queryParams:"ignored",fragment:"ignored",matrixParams:"ignored"}))}asPathItem(e){return Mi(e)?e:null}asDialogItem(e){return wi(e)?e:null}getDialog(e){let i=new he;switch(i.panelClass=we.MEDIUM,i.data={title:e},e){case L.CHOOSE_CLIENT:return{config:i,dialog:ei};case L.CHANGE_PASSWORD:return i.panelClass=we.SMALL,{config:i,dialog:Qt};case L.ACCOUNT_ORDER:return{config:i,dialog:Ei};case L.LOGIN_OPTIONS:return{config:i,dialog:yi};case L.DEALING_BPS:return{config:i,dialog:Ti};default:throw new It(e)}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-main-menu"]],standalone:!1,decls:34,vars:9,consts:[["rlaMessages","routerLinkActive"],["rla","routerLinkActive"],[1,"side-menu-top-level"],["displayMode","flat",1,"side-menu-accordion"],[3,"expanded"],[1,"expansion-panel-content"],["mat-button","",3,"routerLinkActive","disabled","routerLink"],["mat-list-item","","routerLinkActive","","routerLink","/messages",3,"click","activated"],["mat-list-item","","routerLink","/unallocated/logout"],["mat-list-item","","routerLinkActive","",3,"click","activated","disabled","routerLink"],["mat-button","",3,"click","routerLinkActive","disabled","routerLink"],["mat-button","",3,"is-active","disabled"],["mat-button","",3,"click","disabled"]],template:function(i,n){if(i&1&&(r(0,"mat-nav-list",2),B(1,Fn,4,4,null,null,ye),a(),r(3,"mat-accordion",3)(4,"mat-expansion-panel",4)(5,"mat-expansion-panel-header")(6,"mat-panel-title"),l(7),a()(),r(8,"div",5),B(9,kn,2,4,"a",6,ye),a()(),r(11,"mat-expansion-panel",4)(12,"mat-expansion-panel-header")(13,"mat-panel-title"),l(14),a()(),r(15,"div",5),B(16,$n,2,2,null,null,ye),a()(),r(18,"mat-expansion-panel",4)(19,"mat-expansion-panel-header")(20,"mat-panel-title"),l(21),a()(),r(22,"div",5),B(23,jn,2,4,"a",6,ye),a()()(),r(25,"mat-nav-list",2)(26,"a",7,0),S("click",function(){return n.selectGroup(n.mainMenuCaption.MESSAGE)}),l(28),h(29,Vn,2,1,"span"),a(),O(30,"mat-divider"),r(31,"a",8),O(32,"app-countdown-timer"),a(),O(33,"mat-divider"),a()),i&2){let o,f=Le(27),g=n.menu();
12s(),G(g.topLevelMenuLinks),s(3),m("expanded",n.initiallyExpandedGroup===n.mainMenuCaption.SUPPORT_TABLES),s(3),N(" ",n.mainMenuCaption.SUPPORT_TABLES," "),s(2),G(g.supportTablesMenuLinks),s(2),m("expanded",n.initiallyExpandedGroup===n.mainMenuCaption.PROFILE),s(3),N(" ",n.mainMenuCaption.PROFILE," "),s(2),G(g.profileMenuLinks),s(2),m("expanded",n.initiallyExpandedGroup===n.mainMenuCaption.PROPOSAL),s(3),N(" ",n.mainMenuCaption.PROPOSAL," "),s(2),G(g.proposalsMenuLinks),s(3),m("activated",f.isActive),s(2),N("",n.mainMenuCaption.MESSAGE," "),s(),v((o=n.unreadCount())?29:-1,o)}},dependencies:[at,st,ft,ti,ri,ii,ni,oi,ci,ai,ki],styles:[`.side-menu-top-level{--mat-list-list-item-container-shape: 0;--mat-list-list-item-one-line-container-height: 48px;--mat-list-list-item-label-text-size: 14px;--mat-list-list-item-label-text-line-height: 24px;--mat-list-list-item-label-text-weight: 400;--mat-list-active-indicator-shape: 0;--mat-list-active-indicator-color: var(--color-warn)}.side-menu-top-level.mat-mdc-nav-list{padding:0}.side-menu-top-level .mat-mdc-list-item{padding:0 24px}.side-menu-top-level.mat-mdc-list-base.mat-mdc-list-base .mdc-list-item--activated .mdc-list-item__primary-text{color:#fff}.side-menu-accordion{--mat-expansion-container-elevation-shadow: none;--mat-expansion-container-shape: 0;--mat-expansion-header-collapsed-state-height: 48px;--mat-expansion-header-expanded-state-height: 48px}.side-menu-accordion .mat-expansion-panel{border-bottom:1px solid var(--mat-divider-color)}.side-menu-accordion .expansion-panel-content{display:flex;flex-direction:column;min-height:0;overflow:visible;font-family:var(--mat-expansion-container-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-expansion-container-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-expansion-container-text-weight, var(--mat-sys-body-large-weight));line-height:var(--mat-expansion-container-text-line-height, var(--mat-sys-body-large-line-height));letter-spacing:var(--mat-expansion-container-text-tracking, var(--mat-sys-body-large-tracking))}.side-menu-accordion .mat-expansion-panel-content .is-active{background-color:var(--color-warn);color:#fff;border-radius:0}.side-menu-accordion .mat-expansion-panel-content .mat-expansion-panel-body{border-left:5px solid var(--color-warn);padding:0}.side-menu-accordion .mat-expansion-panel-content .mat-expansion-panel-body .mat-mdc-button{line-height:35px}.side-menu-accordion .mat-expansion-panel-content button:focus{outline:none!important}.side-menu-accordion a{padding:0} 13`],encapsulation:2})}}return t})();function Hn(t,c){if(t&1&&(r(0,"div",2),O(1,"img",7),a()),t&2){let e=u();s(),m("ngSrc",e.imageUrl)}}var Gi=(()=>{class t{constructor(e,i,n){this.userFacadeService=e,this.logoService=i,this.sanitizer=n,this.ngOnInit(),this.user$=this.userFacadeService.getUser(),this.clientInfo$=this.userFacadeService.getClientInfo()}ngOnInit(){this.loadLogo()}loadLogo(){this.logoService.getLogoData().subscribe(e=>{this.logo=e,this.loadImageFromBytes()},()=>{})}loadImageFromBytes(){let e=this.logo.bytes;if(e){let i=new FileReader;i.onload=n=>{n.target!=null&&n.target.result!=null&&(this.imageUrl=this.sanitizer.bypassSecurityTrustUrl(n.target.result.toString()))},i.readAsDataURL(e)}}static{this.\u0275fac=function(i){return new(i||t)(p(K),p(vi),p(Ze))}}static{this.\u0275cmp=T({type:t,selectors:[["app-header"]],standalone:!1,decls:16,vars:10,consts:[[1,"custom-app-header","flex-row"],[1,"welcome-logo-wrapper","justify-center","items-center"],[1,"welcome-logo"],[1,"spacer"],[1,"user-info","flex-col","justify-center"],[1,"user-info-line"],[1,"user-info-text"],["fill","","priority","","alt","Logo",3,"ngSrc"]],template:function(i,n){if(i&1&&(r(0,"div",0)(1,"div",1),h(2,Hn,2,1,"div",2),a(),O(3,"div",3),r(4,"div",4)(5,"p",5),l(6," Firma: "),r(7,"span",6),l(8),P(9,"async"),P(10,"async"),a()(),r(11,"p",5),l(12," Zalogowany: "),r(13,"span",6),l(14),P(15,"async"),a()()()()),i&2){let o,f;s(2),v(n.imageUrl?2:-1),s(6),ze("",(o=y(9,4,n.clientInfo$))==null?null:o.companyName1," ",(o=y(10,6,n.clientInfo$))==null?null:o.companyName2),s(6),I((f=y(15,8,n.user$))==null?null:f.username)}},dependencies:[Ye,Q],styles:[".custom-app-header[_ngcontent-%COMP%]{position:fixed;width:100%;height:4rem;border-bottom:1px solid #e0e0e0;background-color:#fff;z-index:100}.custom-app-header[_ngcontent-%COMP%] .spacer[_ngcontent-%COMP%]{border-left:solid 1px rgba(0,0,0,.122)}.welcome-logo-wrapper[_ngcontent-%COMP%]{width:15rem;min-width:10rem;max-width:15rem}.welcome-logo-wrapper[_ngcontent-%COMP%] .welcome-logo[_ngcontent-%COMP%]{position:relative;width:14rem;height:4rem}.welcome-logo-wrapper[_ngcontent-%COMP%] .welcome-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{object-fit:contain}.user-info[_ngcontent-%COMP%]{padding:.75rem;font-size:13px}.user-info[_ngcontent-%COMP%] .user-info-line[_ngcontent-%COMP%]{margin:5px}.user-info[_ngcontent-%COMP%] .user-info-text[_ngcontent-%COMP%]{font-weight:700}.flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-col[_ngcontent-%COMP%]{display:flex;flex-direction:column}.justify-center[_ngcontent-%COMP%]{justify-content:center}.items-center[_ngcontent-%COMP%]{align-items:center}"]})}}return t})();function zn(t,c){if(t&1&&(r(0,"div"),l(1),P(2,"date"),a()),t&2){let e=u();s(),I(Me(2,1,c,e.dateTimeFormat))}}function Kn(t,c){t&1&&(r(0,"div"),l(1,"BRAK"),a())}function Xn(t,c){if(t&1&&(r(0,"div"),l(1),P(2,"date"),a()),t&2){let e=u();s(),I(Me(2,1,c,e.dateTimeFormat))}}function Yn(t,c){t&1&&(r(0,"div"),l(1,"BRAK"),a())}var zr=(()=>{class t{constructor(e,i){this.userFacadeService=e,this.parameterService=i,this.dateTimeFormat=Et,this.headerHeightPx=64}ngOnInit(){this.getLastLoginsInfo()}getLastLoginsInfo(){this.lastCorrectLogin$=this.parameterService.getParameter(W.LOGIN_OK_LABEL),this.lastIncorrectLogin$=this.parameterService.getParameter(W.LOGIN_NOK_LABEL),this.lastLoginsInfo$=this.userFacadeService.getUser().pipe(J(e=>e?.lastLoginsInfo||{}))}static{this.\u0275fac=function(i){return new(i||t)(p(K),p(te))}}static{this.\u0275cmp=T({type:t,selectors:[["app-main-layout"]],standalone:!1,decls:20,vars:11,consts:[[1,"custom-sidenav-container"],["opened","","mode","side","fixedInViewport","",1,"custom-sidenav",3,"fixedTopGap"],[1,"sidenav-menu-wrapper","flex-col","justify-between","items-stretch"],[1,"last-logins-info"],[1,"login-label"]],template:function(i,n){if(i&1&&(O(0,"app-header"),r(1,"mat-sidenav-container",0)(2,"mat-sidenav",1)(3,"div",2),O(4,"app-main-menu"),Ke(5),P(6,"async"),r(7,"div",3)(8,"p",4),l(9),P(10,"async"),a(),h(11,zn,3,4,"div")(12,Kn,2,0,"div"),r(13,"p",4),l(14),P(15,"async"),a(),h(16,Xn,3,4,"div")(17,Yn,2,0,"div"),a()()(),r(18,"mat-sidenav-content"),O(19,"router-outlet"),a()()),i&2){let o,f;s(2),m("fixedTopGap",n.headerHeightPx);let g=y(6,5,n.lastLoginsInfo$);s(7),I(y(10,7,n.lastCorrectLogin$)),s(2),v((o=g==null?null:g.correctLoginTime)?11:12,o),s(3),I(y(15,9,n.lastIncorrectLogin$)),s(2),v((f=g==null?null:g.failLoginTime)?16:17,f)}},dependencies:[ot,mi,di,pi,Bi,Gi,Q,Xe],styles:[".custom-sidenav-container[_ngcontent-%COMP%]{--mat-sidenav-container-width: calc(15rem + 1px) ;--mat-sidenav-container-shape: 0;--mat-sidenav-container-elevation-shadow: none;padding-top:4rem;height:100%}.custom-sidenav-container[_ngcontent-%COMP%] .sidenav-menu-wrapper[_ngcontent-%COMP%]{height:100%}.custom-sidenav-container[_ngcontent-%COMP%] .last-logins-info[_ngcontent-%COMP%]{margin:1rem .5rem 2rem;text-align:center;font-size:14px}.custom-sidenav-container[_ngcontent-%COMP%] .last-logins-info[_ngcontent-%COMP%] .login-label[_ngcontent-%COMP%]{font-weight:700}.custom-sidenav-container[_ngcontent-%COMP%] .last-logins-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .custom-sidenav-container[_ngcontent-%COMP%] .last-logins-info[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:10px 0}.flex-col[_ngcontent-%COMP%]{display:flex;flex-direction:column}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.items-stretch[_ngcontent-%COMP%]{align-items:stretch}"]})}}return t})();export{Fi as a,Ai as b,Oi as c,Ri as d,ki as e,Bi as f,Gi as g,zr as h};
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.