PageSourceSearch

https://corp.bskw.pl/eCorpoNet/chunk-5I2H2VKI.js

js bskw.pl collected 2026-10-09 02:49:32 UTC 40,826 bytes, 2 lines download raw bytes

1import{a as Ve}from"./chunk-WBG33IXQ.js";import{$b as et,$g as ke,$k as je,Aa as A,Ac as Dt,Ak as qi,Bi as _i,Cc as ee,Ci as yi,Cj as at,Di as Ai,Dj as N,E as dt,Ea as $e,Eb as be,Ek as C,Fa as Ze,Fk as Ue,G as f,Gd as At,Gg as ei,Gl as Zi,He as Be,Hg as ti,I as g,Ia as Z,If as Ut,Ig as G,Ii as wi,Je as Ot,Jg as Ce,Ji as Ii,K as u,Ka as J,Kb as St,Ke as ge,Kg as rt,Ki as Ri,Lb as _,Le as ie,Lg as ii,Lk as Vi,M as l,Me as Le,Mg as ri,Mk as Qi,N as d,Na as we,Nd as P,Ng as oi,Nl as We,Oa as he,Od as H,Og as ni,Ok as Xi,Pa as fe,Pd as wt,Pg as ai,Qb as D,Qd as It,Qg as si,Rg as ci,S as ht,Sg as pi,Sj as se,Ta as Se,Tg as li,Tj as X,Ud as Rt,Ug as mi,Uk as Ki,Vg as ui,Wb as Ne,Wg as di,Xa as p,Xb as V,Xg as hi,Xi as bi,Xj as Gi,Xl as Ji,Ya as F,Yb as gt,Yd as bt,Yg as fi,Yi as Ni,Za as q,Zg as Si,Zl as qe,_g as gi,a as Y,ah as ot,am as er,b as pt,bj as xi,bl as He,bm as tr,ca as c,cc as U,cj as Fi,ei as re,ej as Pi,el as Yi,fj as Bi,g as lt,gc as Ct,gi as oe,gj as Li,ha as w,hi as ne,hj as ki,ia as O,ib as Ie,ie as Nt,ij as Mi,il as Ge,j as x,jc as Et,jd as Q,je as xt,ji as ae,jj as zi,kb as Re,kd as te,ke as b,kg as jt,ki as Me,kj as Oi,l as mt,ld as xe,le as Ft,lg as Ht,li as Ci,lj as Ui,m as R,md as j,me as Pt,mg as Gt,mi as Ei,mj as ji,n as Te,na as $,ng as Wt,nj as Hi,oe as Bt,og as tt,p as S,pe as Lt,qb as Je,qg as qt,r as z,ra as L,rd as M,re as kt,rg as Vt,ri as ze,rl as $i,sa as k,sg as Qt,sk as Oe,td as _t,tg as Xt,tk as st,u as ue,ua as _e,uc as vt,ud as yt,ue as Mt,ug as Kt,ui as vi,va as ye,ve as zt,vg as Yt,vi as Ti,w as de,wa as Ae,wb as ft,wc as Tt,wg as it,wi as Di,x as De,xa as m,xe as Fe,xg as $t,y as ut,ya as s,ye as Pe,yg as Zt,yj as nt,za as a,zg as Jt,zj as E,zk as Wi}from"./chunk-YMFY75IU.js";function _r(i,o){i&1&&(s(0,"mat-header-cell",9),p(1," Data podpisu"),a())}function yr(i,o){if(i&1&&(s(0,"mat-cell")(1,"span"),p(2),Ie(3,"date"),a()()),i&2){let e=o.$implicit,t=J();c(2),F(Re(3,1,e.modificationDate,t.dateFormat))}}function Ar(i,o){i&1&&(s(0,"mat-header-cell",9),p(1," Nazwa u\u017Cytkownika "),a())}function wr(i,o){if(i&1&&(s(0,"mat-cell")(1,"span"),p(2),a()()),i&2){let e=o.$implicit;c(2),F(e.name)}}function Ir(i,o){i&1&&A(0,"mat-header-row")}function Rr(i,o){i&1&&A(0,"mat-row",10)}function br(i,o){if(i&1&&(s(0,"div",7)(1,"strong")(2,"span"),p(3),a()()()),i&2){let e=J();c(3),q("Podpisy ostatnio usuni\u0119te przez: ",e.signRemovedBy)}}var ir=(()=>{class i{constructor(e,t){this.dialogRef=e,this.data=t,this.displayedColumns=["signDate","signedBy"],this.dateFormat=Ot,this.ButtonLabels=re,this.signings=this.data.details.signs,this.signRemovedBy=this.data.details.signRemovedBy,this.dataSource=new Gi(this.signings)}closeDialog(){this.dialogRef.close()}static{this.\u0275fac=function(t){return new(t||i)(w(te),w(xe))}}static{this.\u0275cmp=O({type:i,selectors:[["app-signature-list-dialog"]],standalone:!1,decls:24,vars:11,consts:[["matSort","",3,"dataSource"],["matColumnDef","signDate"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","signedBy"],[4,"matHeaderRowDef","matHeaderRowDefSticky"],["ngDefaultControl","",4,"matRowDef","matRowDefColumns"],[1,"signings-summary"],[3,"confirmAction","withCancelButton","withResetButton","focusConfirmInitially","buttonLabelConfirm"],["mat-sort-header",""],["ngDefaultControl",""]],template:function(t,r){t&1&&(s(0,"app-dialog-container"),A(1,"app-close-icon-button"),s(2,"app-dialog-header"),p(3),a(),s(4,"app-dialog-content")(5,"app-dialog-section")(6,"mat-table",0),$e(7,1),$(8,_r,2,0,"mat-header-cell",2)(9,yr,4,4,"mat-cell",3),Ze(),$e(10,4),$(11,Ar,2,0,"mat-header-cell",2)(12,wr,3,1,"mat-cell",3),Ze(),$(13,Ir,1,0,"mat-header-row",5)(14,Rr,1,0,"mat-row",6),a()(),s(15,"app-dialog-section")(16,"div",7)(17,"strong")(18,"span"),p(19,"Ilo\u015B\u0107 podpis\xF3w: "),a(),s(20,"span"),p(21),a()()(),L(22,br,4,1,"div",7),a()(),s(23,"app-action-buttons-panel",8),Z("confirmAction",function(){return r.closeDialog()}),a()()),t&2&&(c(3),F(r.data.title),c(3),m("dataSource",r.dataSource),c(7),m("matHeaderRowDef",r.displayedColumns)("matHeaderRowDefSticky",!0),c(),m("matRowDefColumns",r.dis
1playedColumns),c(7),F(r.signings.length),c(),k(r.signings.length===0&&r.signRemovedBy?22:-1),c(),m("withCancelButton",!1)("withResetButton",!1)("focusConfirmInitially",!0)("buttonLabelConfirm",r.ButtonLabels.CLOSE))},dependencies:[xi,Fi,Pi,Li,Oi,ki,Bi,Ui,Mi,zi,ji,Hi,Ne,oe,ne,ae,Me,ze,He,be],styles:[".signings-summary[_ngcontent-%COMP%]{margin-top:1rem}"]})}}return i})();function Nr(i,o){if(i&1&&(s(0,"mat-option",5),p(1),a()),i&2){let e=o.$implicit;m("value",e),c(),q(" ",e," ")}}function xr(i,o){i&1&&(s(0,"mat-error"),p(1,"Prosz\u0119 wybra\u0107 jeden z element\xF3w listy "),a())}function Fr(i,o){i&1&&(s(0,"span"),p(1,"Pole nie mo\u017Ce by\u0107 puste"),a())}function Pr(i,o){i&1&&(s(0,"span"),p(1,"Pole nie mo\u017Ce by\u0107 puste"),a())}function Br(i,o){i&1&&(s(0,"span"),p(1,"Pole nie mo\u017Ce by\u0107 puste"),a())}function Lr(i,o){if(i&1&&(s(0,"mat-form-field",13)(1,"mat-label"),p(2,"Data ost. realizacji"),a(),A(3,"input",19)(4,"mat-datepicker-toggle",15)(5,"mat-datepicker",null,1),s(7,"mat-error"),L(8,Br,2,0,"span"),a()()),i&2){let e=Se(6),t=J();c(3),m("formControl",t.lastExecutionDateFC)("matDatepicker",e)("min",t.minDate),c(),m("for",e),c(4),k(t.lastExecutionDateFC.hasError("required")?8:-1)}}function kr(i,o){if(i&1&&(s(0,"mat-option",5),p(1),Ie(2,"ibanFormatPipe"),a()),i&2){let e=o.$implicit,t=J();m("value",e.accountId),c(),q(" ",Re(2,2,e.accountNumber,t.SHORTAGE)," ")}}function Mr(i,o){i&1&&(s(0,"span"),p(1,"Pole nie mo\u017Ce by\u0107 puste"),a())}function zr(i,o){if(i&1&&(s(0,"mat-option",17),p(1),a()),i&2){let e=o.$implicit;m("value",e.id),c(),F(e.name)}}function Or(i,o){i&1&&(s(0,"span"),p(1,"Pole nie mo\u017Ce by\u0107 puste"),a())}var or=(()=>{class i{constructor(e,t,r,n,h){this.dialogRef=e,this.notificationService=t,this.transferImportService=r,this.accountService=n,this.errorProviderService=h,this.characterEncodingEnum=Object.values(nt),this.transferMode=E,this.chargeableAccounts=[],this.existingBundles=[],this.SHORTAGE=bt,this.ButtonLabels=re,this.ImportMode=E,this.FunctionalAuthority=Tt,this.modeSub=new lt,this.modeFC=new U("",[V.required]),this.newBundleNameFC=new U("",[V.required]),this.executionDateFC=new U("",[V.required]),this.characterEncodingFC=new U("",[V.required]),this.lastExecutionDateFC=new U(""),this.sourceAccountFC=new U("",[V.required]),this.existingBundleNameFC=new U("",[V.required]),this.newBundleFG=new et({lastExecutionDate:this.lastExecutionDateFC,executionDate:this.executionDateFC,newBundleName:this.newBundleNameFC,sourceAccountId:this.sourceAccountFC}),this.oldBundleFG=new et({existingBundleNameFC:this.existingBundleNameFC}),this.setupLayoutVisibility()}ngOnInit(){this.initValues(),this.importChargeableAccounts(),this.importExistingBundles()}cancel(){this.dialogRef.close()}reset(){this.newBundleFG.reset(),this.oldBundleFG.reset()}ngOnDestroy(){this.modeSub.unsubscribe()}sendReExecution(){this.returnResult()}initValues(){this.minDate=_t(new Date),this.characterEncodingFC.patchValue(nt.WINDOWS_1250),this.executionDateFC.patchValue(this.minDate),this.modeFC.patchValue(E.NEW_BUNDLE)}setupLayoutVisibility(){this.modeSub=this.modeFC.valueChanges.subscribe(e=>{switch(e){case E.EXISTING_BUNDLE:{this.existingBundleNameFC.enable(),this.newBundleFG.disable();break}case E.NEW_BUNDLE:{this.newBundleFG.enable(),this.existingBundleNameFC.disable();break}case E.WITHOUT_BUNDLE:{this.existingBundleNameFC.disable(),this.newBundleFG.disable();break}default:{this.notificationService.error("Wybierz jedn\u0105 z opcji");break}}})}importChargeableAccounts(){this.accountService.getChargeableAccounts().pipe(g(e=>this.chargeableAccounts=e),this.errorProviderService.processError(M.FETCHING_DATA_ERROR)).subscribe()}importExistingBundles(){this.accountService.getExistingBundles().pipe(g(e=>this.existingBundles=e),this.errorProviderService.processError(M.FETCHING_DATA_ERROR)).subscribe()}returnResult(){let e=new Map;switch(this.modeFC.value){case E.NEW_BUNDLE:{e.set(E.NEW_BUNDLE,this.transferImportService.prepareBundleCreateRequest(!1,ge.formatDate(this.executionDateFC.value),this.lastExecutionDateFC.value?ge.formatDate(this.lastExecutionDateFC.value):"",this.sourceAccountFC.value,this.newBundleNameFC.value));break}case E.EXISTING_BUNDLE:{e.set(E.EXISTING_BUNDLE,this.existingBundleNameFC.value);break}default:{e.set(E.WITHOUT_BUNDLE,"");break}}this.dialogRef.close(e)}static{this.\u0275fac=function(t){return new(t||i)(w(te),w(P),w($i),w(Qi),w(xt))}}static{this.\u0275cmp=O({type:i,selectors:[["app-transfers-re-execution"]],standalone:!1,decls:60,vars:23,consts:[["executionPicker",""],["lastExecutionDatePicker",""],["appearance","outlined"],[1,"flex-col","gap-20"],["required","",3,"formControl"],[3,"value"],[1,"mode-content-position"],[3,"formControl"],[1,"flex-col","gap-10"],[1,"flex-col"],["appearance","outline",1,"transfer-import-field"],["autocomplete","off","matInput","",3,"formControl"],[1,"flex-row","gap-5"],["appearance","outline"],["autocomplete","off","matInput","","readonly","",3,"formControl","matDatepicker","min"],["matSuffix","",3,"for"],["appearance","outline",4,"appShowIfHasAuthority"],[1,"custom-option",3,"value"],[3,"cancelAction","resetAction","confirmAction","confirmDisabled","buttonLabelConfirm"],["autocomplete","off","matInput","",3,"formControl","matDatepicker","min"]],template:function(t,r){if(t&1&&(s(0,"app-dialog-container")(1,"app-dialog-header"),p(2,"Ponowne wykonanie przelew\x
1F3w"),a(),s(3,"app-dialog-content")(4,"mat-card",2)(5,"mat-form-field",3)(6,"mat-label"),p(7,"Kodowanie znak\xF3w"),a(),s(8,"mat-select",4),ye(9,Nr,2,2,"mat-option",5,_e),a(),L(11,xr,2,0,"mat-error"),a(),s(12,"mat-card-subtitle"),p(13,"Wybierz tryb:"),a(),s(14,"mat-card-content",6)(15,"mat-radio-group",7)(16,"div",8)(17,"div")(18,"mat-radio-button",5),p(19),a()(),s(20,"div",9)(21,"mat-form-field",10)(22,"mat-label"),p(23,"Nazwa paczki"),a(),A(24,"input",11),s(25,"mat-error"),L(26,Fr,2,0,"span"),a()(),s(27,"div",12)(28,"mat-form-field",13)(29,"mat-label"),p(30,"Data wykonania"),a(),A(31,"input",14)(32,"mat-datepicker-toggle",15)(33,"mat-datepicker",null,0),s(35,"mat-error"),L(36,Pr,2,0,"span"),a()(),$(37,Lr,9,5,"mat-form-field",16),a(),s(38,"mat-form-field",10)(39,"mat-label"),p(40,"Rachunek \u017Ar\xF3d\u0142owy"),a(),s(41,"mat-select",7),ye(42,kr,3,5,"mat-option",5,_e),a(),s(44,"mat-error"),L(45,Mr,2,0,"span"),a()()()(),s(46,"div",8)(47,"mat-radio-button",5),p(48),a(),s(49,"mat-form-field",10)(50,"mat-label"),p(51,"Nazwa paczki"),a(),s(52,"mat-select",7),ye(53,zr,2,2,"mat-option",17,_e),a(),s(55,"mat-error"),L(56,Or,2,0,"span"),a()(),s(57,"mat-radio-button",5),p(58),a()()()()()(),s(59,"app-action-buttons-panel",18),Z("cancelAction",function(){return r.cancel()})("resetAction",function(){return r.reset()})("confirmAction",function(){return r.sendReExecution()}),a()()),t&2){let n=Se(34);c(8),m("formControl",r.characterEncodingFC),c(),Ae(r.characterEncodingEnum),c(2),k(r.characterEncodingFC.hasError("required")?11:-1),c(4),m("formControl",r.modeFC),c(3),m("value",r.transferMode.NEW_BUNDLE),c(),F(r.transferMode.NEW_BUNDLE),c(5),m("formControl",r.newBundleNameFC),c(2),k(r.newBundleNameFC.hasError("required")?26:-1),c(5),m("formControl",r.executionDateFC)("matDatepicker",n)("min",r.minDate),
1c(),m("for",n),c(4),k(r.executionDateFC.hasError("required")?36:-1),c(),m("appShowIfHasAuthority",r.FunctionalAuthority.FUNC_MLYNEK),c(4),m("formControl",r.sourceAccountFC),c(),Ae(r.chargeableAccounts),c(3),k(r.sourceAccountFC.hasError("required")?45:-1),c(2),m("value",r.transferMode.EXISTING_BUNDLE),c(),q(" ",r.transferMode.EXISTING_BUNDLE),c(4),m("formControl",r.existingBundleNameFC),c(),Ae(r.existingBundles),c(3),k(r.existingBundleNameFC.hasError("required")?56:-1),c(),m("value",r.transferMode.WITHOUT_BUNDLE),c(),q(" ",r.transferMode.WITHOUT_BUNDLE),c(),m("confirmDisabled",r.modeFC.value!==r.ImportMode.WITHOUT_BUNDLE&&(r.newBundleFG.invalid||r.oldBundleFG.invalid))("buttonLabelConfirm",r.ButtonLabels.EXECUTE)}},dependencies:[Lt,Ft,Pt,Bt,Mt,_i,yi,Ai,vi,Ti,Di,kt,bi,Ni,zt,Ne,gt,Et,Ct,Xi,oe,ne,ae,ze,se],styles:[".mode-content-position[_ngcontent-%COMP%]{margin-top:30px}.flex-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}.flex-col[_ngcontent-%COMP%]{display:flex;flex-direction:column}.gap-5[_ngcontent-%COMP%]{gap:5px}.gap-10[_ngcontent-%COMP%]{gap:10px}.gap-20[_ngcontent-%COMP%]{gap:20px}"]})}}return i})();var Qe=class{static calculate(o,e){let t=[];return o.filter(r=>!!r.currency&&!!r.amount&&!Number.isNaN(r.amount)).forEach(r=>{let n=C.isBundle(r),h=t.find(I=>I.currency===r.currency);n&&this.hasChildren(r,e)&&this.isOpened(e,r)||this.insertOrSum(h,t,r)}),t}static isOpened(o,e){return o.tableService.activeParentTracker.includes(e[o.tableConfig.collapseBy])}static insertOrSum(o,e,t){o?this.sumUpResults(o,t):this.insertNewCurrency(e,t)}static hasChildren(o,e){return o[e.tableConfig.arrayHoldingProp].length>0}static insertNewCurrency(o,e){o.push({amount:e.amount,currency:e.currency})}static sumUpResults(o,e){o.amount=Math.round((o.amount+e.amount)*100)/100}};var ce=class{constructor(o,e){this.details=o,this.exchangeRateDetails=e,this.rows=[]}prepareAuthorizationInfoSignatureDetails(){this.prepareFirstDispositionAmount();for(let o=1;o<=this.details.length-1;o++)this.prepareDispositionAmount("","",o);return this.prepareCostsConversionsAndChargesRows()}prepareFirstDispositionAmount(){this.prepareDispositionAmount("Warto\u015B\u0107 dyspozycji","Kurs waluty",0)}prepareDispositionAmount(o,e,t){let r=new st().leftCell({name:o,value:this.details[t].amount},X,[this.details[t].currency]);this.rows.push(this.prepareRateCell(t,r,e))}prepareRateCell(o,e,t){let r=this.exchangeRateDetails;return!r||!this.areRatesNotEmpty(r.rates,o)?e:this.prepareRateRightCell(t,r.rates,e,o)}areRatesNotEmpty(o,e){return Array.isArray(o)&&!!o.length&&!!o[e]}prepareRateRightCell(o,e,t,r){return t.rightCell({name:o,value:"1.00 "+e[r].currencyIn+" = "+e[r].rate+" "+e[r].currencyOut}),t}prepareCostsConversionsAndChargesRows(){let o=this.exchangeRateDetails,e=this.rows;return o&&(e=this.prepareCostsRows(o.costs),e=e.concat(this.generateSummaryCostsRows(o.conversions,"Op\u0142aty za przeliczanie waluty")),e=e.concat(this.generateSummaryCostsRows(o.charges,"Op\u0142aty transakcyjne"))),e}prepareCostsRows(o){return this.areCostsNotEmpty(o)?this.prepareCostsRightCell(o):this.rows}prepareCostsRightCell(o){let e=this.generateSummaryCostsRows(o,"Szacowana w
1arto\u015B\u0107 w walucie rachunku");return e[0].rightCell(this.generateExchangeRateInfoRow()),this.rows.concat(e)}areCostsNotEmpty(o){return Array.isArray(o)&&!!o.length}generateExchangeRateInfoRow(){return{name:"",value:M.EXCHANGE_RATE_INFO}}generateSummaryCostsRows(o,e){let t=[];t.push(this.prepareFirstSummaryCostsRightCell(e,o));for(let r=1;r<=o.length-1;r++)t.push(this.prepareSummaryCostsRightCell("",o,r));return t}prepareFirstSummaryCostsRightCell(o,e){return this.prepareSummaryCostsRightCell(o,e,0)}prepareSummaryCostsRightCell(o,e,t){return new st().leftCell({name:o,value:e[t].amount},X,[e[t].currency])}};var pe=class{static getSumOfAmountsAndCurrencyType(o){return[...o.reduce((t,r)=>t.set(r.currency,(t.get(r.currency)??0)+r.amount),new Map).entries()].map(([t,r])=>({amount:r,currency:t}))}};var Xe=(()=>{class i{constructor(e,t,r,n){this.dialog=e,this.transfersService=t,this.progressBarService=r,this.whiteListFacadeService=n}checkBundleList(e){let t=this.getTransferIdsToWhiteListVerification(e);return this.checkList(t)}isWhiteListEnabled(){return this.whiteListFacadeService.isWhiteListEnabled()}openConfirmationDialogForWhiteList(){let e=new Q;return e.data={title:"B\u0142\u0105d weryfikacji vat",message:"Nie wszystkie paczki/dyspozycje przesz\u0142y pomy\u015Blnie weryfikacj\u0119 rachunku odbiorcy. Czy chcesz zrealizowa\u0107 mimo to?"},this.dialog.open(N,e).afterClosed().pipe(S(t=>t.state))}checkList(e){return this.whiteListFacadeService.isWhiteListEnabled().pipe(f(t=>!t||e.length===0?R(!0):this.transfersService.getTransfersData(e).pipe(this.updateWhiteListStatus(),this.saveUpdatedTransfers(),this.checkCorrectness())))}updateWhiteListStatus(){return f(e=>{let r={done:0,all:e.length,active:!0,message:M.WHITE_LIST_CHECK};return mt(e).pipe(g(()=>this.progressBarService.showFullDataProgressBar(r)),z(n=>(this.progressBarService.increment(),this.whiteListFacadeService.check(n.targetAccount,n.whiteListDTO.nip)),1),ut(),S(n=>
1{for(let h=0;h<e.length;h++)e[h].whiteListDTO=n[h];return e}),dt(()=>this.progressBarService.hideProgressBar()))})}getTransferIdsToWhiteListVerification(e){return C.getAllDispositions(e).filter(t=>t.whiteListVerificationState!==qi.NO_CHECK).map(t=>t.id)}saveUpdatedTransfers(){return f(e=>{let t=[];return e.map(r=>t.push({id:r.dispositionId,whiteListData:r.whiteListDTO})),this.transfersService.saveList(t).pipe(S(()=>e))})}checkCorrectness(){return f(e=>{let t=e.filter(r=>r.whiteListDTO.state!==vt.REGISTERED);return R(t.length===0)})}static{this.\u0275fac=function(t){return new(t||i)(l(j),l(Vi),l(Ki),l(Wi))}}static{this.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var jr={headers:new St({"Content-Type":"application/json",Accept:"application/json"})},Ke=(()=>{class i{constructor(e,t,r,n,h){this.http=e,this.fileService=t,this.whiteListService=r,this.exchangeRateService=n,this.spinnerService=h}findAll(e){return this.http.post(gi,e,jr)}findSigningsForId(e){let t=new _().set("bundleId",e.toString());return this.http.get(ii,{params:t})}moveToExecutionAction(e,t){this.spinnerService.showSpinner();let r=C.mapBundlesToIdList(e),n={bundleIds:r,newExecutionDate:t};return this.exchangeRateService.getSummary(r).pipe(z(h=>
1{if(h){this.spinnerService.hideSpinner();let I=pe.getSumOfAmountsAndCurrencyType(e),me=new ce(I,h).prepareAuthorizationInfoSignatureDetails();return this.exchangeRateService.openExchangeRateDetailsDialog(me).pipe(z(Ye=>ue(()=>Ye,this.checkWhiteListAndExecute(e,n),x)))}else return this.checkWhiteListAndExecute(e,n)}))}printAction(e){let t=e.virtual?ot:ke;this.http.get(t+`/${e.id}/file`,{responseType:ee}).pipe(this.fileService.open(ie.PDF)).subscribe()}getBundleDetails(e){return this.http.get(ke+"/"+e)}getBundleListForDetails(e){return this.http.post(ke,e)}getDispositionDetails(e){return this.http.get(ot+"/"+e)}moveToSigning(e){let t=e.map(r=>r.virtual?r.bundleId:r.id);return this.http.post(ti,t)}checkWhiteListAndExecute(e,t){return this.spinnerService.showSpinner(),this.whiteListService.checkBundleList(e).pipe(f(r=>r?this.moveToExecution(t):(this.spinnerService.hideSpinner(),this.whiteListService.openConfirmationDialogForWhiteList().pipe(z(n=>ue(()=>n,this.moveToExecution(t),x))))))}moveToExecution(e){return this.http.post(li,e)}static{this.\u0275fac=function(t){return new(t||i)(l(D),l(Le),l(Xe),l(Ve),l(H))}}static{this.\u0275prov=u({token:i,factory:i.\u0275fac})}}return i})();var Wr=["detailsTreeTable"],qr=["chosenElementsTreeTable"],pr="dateOfExecution",lr=(()=>{class i{constructor(e,t,r){this.dialogRef=e,this.data=t,this.signatureService=r,this.details=new Oe,this.chosenElementsTableProperties={columnSettings:[{column:"type",caption:"Typ",pipeToken:We,headerClass:"x-center at-cell-margin-right",cellClass:"x-start at-cell-margin-right",stylePipeToken:qe,stylePipeArgs:[],styleProp:"whiteListVerificationState",styleClass:"bold red",alternativeDataSource:{whenShouldUseAlternativeValue:n=>C.isBundle(n),getAlternativeValue(n){return n.name}}},{column:"targetAccount",caption:"Rachunek beneficjenta",pipeToken:se,styleProperties:[{attribute:"min-width",value:"13.5rem"},{attribute:"max-width",value:"14rem"}],cellClass:"x-start "},{column:"amount",caption:"Kwota / Suma",pipeToken:X,pipeArgs:["row.currency"],cellClass:"x-end",styleProperties:[{attribute:"min-width",value:"9rem"},{attribute:"max-width",value:"9rem"}]},{column:"name",caption:"Nazwa",styleProperties:[{attribute:"min-width",value:"13rem"},{attribute:"max-width",value:"13rem"}],alternativeDataSource:{whenShouldUseAlternativeValue:n=>C.isBundle(n),getAlternativeValue:()=>"-"},cellClass:"x-start"},{column:"state",caption:"Stan",pipeToken:Zi,pipeArgs:["row.signState"]},{column:pr,caption:"Data wykonania",pipeToken:be,pipeArgs:[Be],styleProperties:[{attribute:"min-width",value:"6rem"},{attribute:"max-width",value:"6rem"}]}],arrayHoldingProp:"dispositions",matSortActive:pr,matSortDirection:"asc",matSortDisableClear:!0,sortParentId:"id",sortParents:!0,sortChildren:!0,tableClasses:"mat-elevation-z0",collapseBy:"id"}}ngAfterViewInit(){this.setInitialData()}receiveRowClickEvent(){let e=this.chosenElementsTreeTable.selection.selected;e.length===1?this.resolveSingleSelection(e[0]):e.length>1?this.resolveMultiSelection(e):this.details.rows=[]}closeDialog(){this.dialogRef.close()}setInitialData(){this.signatureService.getBundleListForDetails(C.mapBundlesToIdList(this.data.details)).pipe(g(e=>{e=e.map(t=>this.rewriteStateDataFromBundleToDisposition(t)),this.chosenElementsTreeTable.setDataSourceData(C.mapVirtualBundles(e,!0))})).subscribe()}resolveSingleSelection(e){this.isBundle(e)?this.fetchBundleDetailsForSelected(e.id):this.fetchDispositionDetailsForSelected(e)}isBundle(e){return!e.hasOwnProperty("bundleId")}resolveMultiSelection(e){let t={tableConfig:this.chosenElementsTableProperties,tableService:this.chosenElementsTreeTable.treeTableService};this.details.rows=Ue.prepareBundleSummary(Qe.calculate(e,t),e.length)}fetchBundleDetailsForSelected(e){this.signatureService.getBundleDetails(e).pipe(g(t=>{this.details.rows=Ue.prepareBundleSignDetails(t,this.chosenElementsTreeTable.selection.selected[0].sourceAccount)})).subscribe()}fetchDispositionDetailsForSelected(e){this.signatureService.getDispositionDetails(e.id).pipe(g(t=>{this.details.rows=Ue.prepareBundleSignDetails(t,this.chosenElementsTreeTable.selection.selected[0].sourceAccount)})).subscribe()}rewriteStateDataFromBundleToDisposition(e){return e.dispositions.forEach(t=>{t.state=e.state,t.signState=e.signState}),e}static{this.\u0275fac=function(t){return new(t||i)(w(te),w(xe),w(Ke))}}static{this.\u0275cmp=O({type:i,selectors:[["app-signature-details-dialog"]],viewQuery:function(t,r){if(t&1&&we(Wr,5)(qr,5),t&2){let n;he(n=fe())&&(r.detailsTreeTable=n.first),he(n=fe())&&(r.chosenElementsTreeTable=n.first)}},standalone:!1,decls:13,vars:3,consts:[["chosenElementsTreeTable",""],[3,"rowClickEventIndicator","tableProperties"],["appDialogDetails","","expanded","true",1,"mat-elevation-z3","flex-col"],[1,"subheader"],[3,"details","areDetailsVisible"]],template:function(t,r){if(t&1&&(s(0,"app-dialog-container"),A(1,"app-close-icon-button"),s(2,"app-dialog-header"),p(3,"Szczeg\xF3\u0142y wybranych paczek / dyspozycji"),a(),s(4,"app-dialog-content")(5,"sn-mat-tree-table",1,0),Z("rowClickEventIndicator",function(){return r.receiveRowClickEvent()}),a(),s(7,"mat-expansion-panel",2)(8,"mat-expansion-panel-header")(9,"mat-panel-title")(10,"h3",3),p(11,"Szczeg\xF3\u0142y"),a()()(),A(12,"app-details",4),a()()()),t&2){let n=Se(6);c(5),m("tableProperties",r.chosenElementsTableProperties),c(7),m("details",r.details)("areDetailsVisible",n.selection.selected.length>0)}},dependencies:[wi,Ii,Ri,oe,ne,ae,Ei,je,He,Ge],encapsulation:2})}}return i})();var ve=(function(i){return i.WITHDRAW="Czy na pewno chcesz wycofa\u0107 podpis? Spowoduje to wycofanie wszystkich z\u0142o\u017Conych podpis\xF3w.",i.WITHDRAW_FOR_EDIT="Czy na pewno chcesz wycofa\u0107 do edycji?",i.SET_NEW_DATE="Niekt\xF3re paczki maj\u0105 dat\u0119 wykonania z przesz\u0142o\u015Bci. Prosz\u0119 wybra\u0107 dla nich now\u0105 dat\u0119 wykonania",i})(ve||{});var K=(function(i){return i.DETAILS="Szczeg\xF3\u0142y",i.SMS_AUTHORIZATION="Autoryzacja SMS",i.WITHDRAWAL_CONFIRMATION="Potwierd\u017A wycofanie",i.COMPLETED_SIGNATURES="Z\u0142o\u017Cone podpisy",i.ATTENTION_CHECK_DATE="Uwaga. Sprawd\u017A dat\u
10119 wykonania.",i})(K||{});var y=(function(i){return i.WITHDRAW="Lista wybranych do wycofania podpisu paczek / dyspozycji",i.WITHDRAW_FOR_EDIT="Lista wybranych do wycofania do edycji paczek / dyspozycji",i.SIGN="Lista wybranych do podpisania paczek / dyspozycji",i.SIGN_AND_EXECUTE="Lista wybranych do podpisania i realizacji paczek / dyspozycji",i.QUICK_REALIZATION="Lista wybranych do szybkiej realizacji paczek / dyspozycji",i})(y||{});function B(i){return pt(Y({},i.authMethodInfo),{items:C.mapVirtualBundles(i.data,!0)})}var mr=(()=>{class i{constructor(){this.http=d(D)}prepare(e){return this.http.post(mi,e.map(Number)).pipe(S(B))}perform(e){return this.http.post(ui,e)}cancel(){return this.http.post(di,{})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Xr=["table"];function W(i,o){return{summary:{component:Kr,inputs:{items:i,message:o}},size:"large"}}var Kr=(()=>{class i{constructor(){this.items=Je.required(),this.message=Je.required(),this.tableProperties=Yr,this.details=new Oe,this.exchangeRateService=d(Ve),this.cdr=d(ft),this.destroyRef=d(ht),this.items$=It(this.items)}ngAfterViewInit(){this.items$.pipe(g(e=>this.showItems(e)),f(e=>this.loadCosts(e).pipe(S(t=>({items:e,costs:t})))),wt(this.destroyRef)).subscribe(e=>
1this.showDetails(e.items,e.costs))}showItems(e){this.table.setDataSourceData(e),this.cdr.detectChanges()}showDetails(e,t){let r=pe.getSumOfAmountsAndCurrencyType(e);this.details={rows:new ce(r,t).prepareAuthorizationInfoSignatureDetails()},this.cdr.detectChanges()}loadCosts(e){return(this.message()===y.SIGN_AND_EXECUTE||this.message()===y.QUICK_REALIZATION)&&e.length>0?this.exchangeRateService.getSummary(C.mapBundlesToIdList(e)):R(null)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=O({type:i,selectors:[["app-signature-summary"]],viewQuery:function(t,r){if(t&1&&we(Xr,7),t&2){let n;he(n=fe())&&(r.table=n.first)}},inputs:{items:[1,"items"],message:[1,"message"]},decls:9,vars:4,consts:[["table",""],[1,"signature-summary__list"],[3,"tableProperties"],[3,"details","areDetailsVisible"]],template:function(t,r){t&1&&(s(0,"app-dialog-section",1)(1,"app-dialog-section-header"),p(2),a(),A(3,"sn-mat-tree-table",2,0),a(),s(5,"app-dialog-section")(6,"app-dialog-section-header"),p(7,"Szczeg\xF3\u0142y"),a(),A(8,"app-details",3),a()),t&2&&(c(2),F(r.message()),c(),m("tableProperties",r.tableProperties),c(5),m("details",r.details)("areDetailsVisible",!0))},dependencies:[tr,Me,Ci,je,Ge],styles:[".signature-summary__list[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]})}}return i})(),Yr={columnSettings:[{column:"type",caption:"Typ",pipeToken:We,stylePipeToken:qe,stylePipeArgs:[],styleProp:"whiteListVerificationState",styleClass:"bold red",alternativeDataSource:{whenShouldUseAlternativeValue:i=>C.isBundle(i),getAlternativeValue(i){return i.name}},cellClass:"x-start",headerClass:"fill-arrow-space",styleProperties:[{attribute:"min-width",value:"190px"},{attribute:"max-width",value:"200px"}]},{column:"friendlyNameSourceAccount",caption:"Rachunek nadawcy",pipeToken:Ji,cellClass:"x-start",headerClass:"x-start",styleProperties:[{attribute:"min-width",value:"13.5rem"},{attribute:"max-width",value:"14.0rem"}]},{column:"targetAccount",caption:"Rachunek beneficjenta",pipeToken:se,cellClass:"x-start",headerClass:"x-start",styleProperties:[{attribute:"min-width",value:"13.5rem"},{attribute:"max-width",value:"14.0rem"}]},{column:"amount",caption:"Kwota",pipeToken:X,pipeArgs:["row.currency"],cellClass:"x-end",headerClass:"x-end",styleProperties:[{attribute:"min-width",value:"125px"},{attribute:"max-width",value:"125px"}]},{column:"name",caption:"Adresat",cellClass:"x-start",headerClass:"x-start",styleProperties:[{attribute:"min-width",value:"190px"},{attribute:"max-width",value:"200px"}]},{column:"title",caption:"Tre\u015B\u0107",cellClass:"x-start",headerClass:"x-start",styleProperties:[{attribute:"min-width",value:"190px"},{attribute:"max-width",value:"200px"}]}],arrayHoldingProp:"dispositions",matSortActive:"dateOfExecution",matSortDirection:"asc",tableClasses:"mat-elevation-z0",selectable:!1};var ur=(()=>{class i{constructor(){this.authFlow=d(Pe),this.notificationService=d(P),this.spinnerService=d(H)}authorize({operation:e,selected:t,title:r,message:n}
1){this.spinnerService.hideSpinner();let h=C.mapBundlesToIdList(t).map(String);return this.authFlow.run(e,h,Y({title:r},W(t,n))).pipe(g(()=>this.notificationService.success("Autoryzacja zako\u0144czona powodzeniem")),De(I=>I instanceof Fe?x:Te(()=>I)))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var dr=(()=>{class i{constructor(){this.http=d(D)}prepare(e){return this.http.post(hi,e.map(Number)).pipe(S(B))}perform(e){return this.http.post(fi,e)}cancel(){return this.http.post(Si,{})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var hr=(()=>{class i{constructor(){this.http=d(D)}prepare(e){return this.http.post(ri,e.map(Number)).pipe(S(B))}perform(e){return this.http.post(oi,e)}cancel(){return this.http.post(ai,{})}checkEnabled(e){return this.http.post(ni,e)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var fr=(()=>{class i{constructor(){this.http=d(D)}prepare(e){return this.http.post(si,e.map(Number)).pipe(S(B))}perform(e){return this.http.post(ci,e)}cancel(){return this.http.post(pi,{})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Ka=(()=>{class i{constructor(e,t,r,n,h,I,me,Ye,Sr,gr,Cr,Er){this.dialog=e,this.unsignService=t,this.signatureBasicService=r,this.backToEditionService=n,this.signatureSignService=h,this.notificationService=I,this.signatureService=me,this.signatureSignAndExecuteService=Ye,this.whiteListService=Sr,this.spinnerService=gr,this.sorbnetDeadlineService=Cr,this.sorbnetRequiredService=Er,this.ERROR="B\u0142\u0105d",this.CHANGE_SORBNET_TO_NORMAL_QUESTION=`
2Czy chcesz zmieni\u0107 przelew SORBNET na przelew zwyk\u0142y?`}executeAction(e){if(e.every(t=>ge.isBeforeToday(t.dateOfExecution))){let t={disableClose:!0,panelClass:b.MEDIUM,data:{title:K.ATTENTION_CHECK_DATE,message:ve.SET_NEW_DATE,details:e}};
2return this.spinnerService.hideSpinner(),this.dialog.open(Yi,t).afterClosed().pipe(f(r=>r?this.signatureService.moveToExecutionAction(e,r):x))}return this.signatureService.moveToExecutionAction(e,yt(new Date,Be))}showDetailsAction(e){let t={panelClass:b.LARGE,disableClose:!0,autoFocus:!1,data:{title:K.DETAILS,message:"",details:e}};return this.dialog.open(lr,t).afterClosed()}signAction(e){return this.signatureBasicService.authorize({operation:this.signatureSignService,selected:e,title:"Autoryzacja podpisu",message:y.SIGN})}signAndExecuteAction(e){return this.whiteListService.checkBundleList(e).pipe(f(t=>t?this.signAndExecute(e):(this.spinnerService.hideSpinner(),this.whiteListService.openConfirmationDialogForWhiteList().pipe(z(r=>ue(()=>r,this.signAndExecute(e),x))))))}withdrawAction(e){let t={panelClass:b.SMALL,disableClose:!0,data:{title:K.WITHDRAWAL_CONFIRMATION,message:ve.WITHDRAW}};return this.spinnerService.hideSpinner(),this.dialog.open(N,t).afterClosed().pipe(g(()=>this.spinnerService.showSpinner()),de(r=>r.state),f(()=>this.signatureBasicService.authorize({operation:this.unsignService,selected:e,title:"Autoryzacja wycofania podpisu",message:y.WITHDRAW})))}withdrawForEditAction(e){let t={panelClass:b.SMALL,disableClose:!0,data:{title:K.WITHDRAWAL_CONFIRMATION,message:ve.WITHDRAW_FOR_EDIT,details:e}};
2return this.spinnerService.hideSpinner(),this.dialog.open(N,t).afterClosed().pipe(g(()=>this.spinnerService.showSpinner()),de(r=>r.state),f(()=>this.signatureBasicService.authorize({operation:this.backToEditionService,selected:e,title:"Autoryzacja wycofania do edycji",message:y.WITHDRAW_FOR_EDIT})))}openAcceptSorbnetAsNormal(e,t){return this.sorbnetRequiredService.canDowngradeToDomestic(t).pipe(f(r=>r?this.confirmSorbnetAsNormal(e):this.informSorbnetRequired(e)))}openSignaturesDialog(e){let t={panelClass:e.signs?.length===0?b.SMALL:b.MEDIUM,disableClose:!0,data:{title:K.COMPLETED_SIGNATURES,details:e}};this.dialog.open(ir,t)}summaryNotification(e,t){let r=e-t;this.showNotification(t,r)}confirmSorbnetAsNormal(e){let t={panelClass:b.MEDIUM,disableClose:!0,data:{title:this.ERROR,message:this.sorbnetDeadlineService.buildOutsideHoursMessage(e)+this.CHANGE_SORBNET_TO_NORMAL_QUESTION,type:at.BASIC_YES_NO_CONFIRM}};return this.dialog.open(N,t).afterClosed().pipe(S(r=>r.state))}informSorbnetRequired(e){let t={panelClass:b.MEDIUM,disableClose:!0,data:{title:this.ERROR,message:this.sorbnetDeadlineService.buildRequiredOutsideHoursMessage(e),type:at.BASIC_CONFIRM,showCancelBtn:!1,okLabel:re.CLOSE}};return this.dialog.open(N,t).afterClosed().pipe(S(()=>!1))}signAndExecute(e){return this.signatureBasicService.authorize({operation:this.signatureSignAndExecuteService,selected:e,title:"Autoryzacja podpisu i realizacji",message:y.SIGN_AND_EXECUTE})}showNotification(e,t){if(t===0)this.notificationService.success(`Liczba element\xF3w przeniesionych do realizacji ${e}`);else{let r={title:"Podsumowanie",component:new At(er,{successCount:e,invalidCount:t})};this.notificationService.warningWithHTML(r)}}static{this.\u0275fac=function(t){return new(t||i)(l(j),l(mr),l(ur),l(dr),l(hr),l(P),l(Ke),l(fr),l(Xe),l(H),l(Rt),l(Nt))}}static{this.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var cs=(()=>{class i{constructor(e,t,r,n){this.http=e,this.fileService=t,this.dialog=r,this.spinnerService=n}getExecutions(e){return this.http.post(ei,e)}getChargeableAccounts(){return this.http.get(Ut)}getBundlesDetails(e){let t=new _().set("bundleIds",e.toString());return this.http.get(G,{params:t})}print(e){let t=e.virtual?Ce:G;this.http.get(t+`/${e.id}/file`,{responseType:ee}).pipe(this.fileService.open(ie.PDF)).subscribe()}isContractorChangedForBundle(e){let t=new _().set("bundleIds",e.toString());return this.http.get(rt,{params:t})}isContractorChangedForDisp(e){let t=new _().set("dispositionIds",e.toString());return this.http.get(rt,{params:t})}reExecuteNoBundle(e,t){let r=new _().set("dispositionIds",e.toString()).set("updateAccount",String(t));return this.http.post(Ce,r)}reExecuteToBundle(e,t,r){let n=new _().set("dispositionIds",e.toString()).set("updateAccount",String(t));return this.http.post(G+`/${r.toString()}`,n)}reExecuteNewBundle(e,t,r){let n=new _().set("dispositionIds",e.toString()).set("updateAccount",String(t));return this.http.post(G,r,{params:n})}reExecuteBundles(e,t){let r=new _().set("bundleIds",e.toString()).set("updateAccount",String(t));return this.http.post(G,r)}openExecutionForBundle(e){this.http.get(G+"/"+e+it,{responseType:ee}).pipe(this.fileService.open(ie.PDF)).subscribe()}openExecutionForDisposition(e){this.http.get(Ce+"/"+e+it,{responseType:ee}).pipe(this.fileService.open(ie.PDF)).subscribe()}getDetailsForBundle(e){let t=G,r=new _().set("id",e.toString());return this.http.get(t+"/"+e,{params:r})}getDetailsForDisposition(e){let t=Ce,r=new _().set("id",e.toString());return this.http.get(t+"/"+e,{params:r})}executeAgain(e,t,r,n){let h=this.getBundleAndDispIds(e);return(n||r)&&!t?this.isContractorChanged(h,!1).pipe(f(I=>this.reExecute(h.selectedBundleIds,I.state))):this.isContractorChanged(h,!0).pipe(f(I=>
2(this.spinnerService.hideSpinner(),this.askAboutReTransferTypeDialog().pipe(f(me=>(this.spinnerService.showSpinner(),this.invokeDispositionReExecuteQuery(h.selectedDispositionIds,me,I.state)))))))}getBundleAndDispIds(e){let t=[];e.forEach(n=>n.virtual?t.push(n.bundleId):t.push(n.id));let r=e.filter(n=>n.hasOwnProperty("bundleId")).map(n=>n.id);return{selectedBundleIds:t,selectedDispositionIds:r}}isContractorChanged(e,t){return(t?this.isContractorChangedForDisp(e.selectedDispositionIds):this.isContractorChangedForBundle(e.selectedBundleIds)).pipe(f(r=>r.length?(this.spinnerService.hideSpinner(),this.askAboutUpdateDialog(r).pipe(g(()=>this.spinnerService.showSpinner()))):R({state:!1})))}askAboutUpdateDialog(e){let t=new Q,r=e.map(n=>n.name1).join(", ");return t.data={title:"Potwierdzenie zamiany rachunk\xF3w",message:`Nast\u0119puj\u0105cy kontrahenci zmienili rachunki: ${r}. Czy zmieni\u0107 rachunki w dyspozycjach ?`},this.dialog.open(N,t).afterClosed()}askAboutReTransferTypeDialog(){let e=new Q;return e.panelClass=b.MEDIUM,this.dialog.open(or,e).afterClosed()}invokeDispositionReExecuteQuery(e,t,r){return t.has(E.NEW_BUNDLE)?this.reExecuteNewBundle(e,r,t.get(E.NEW_BUNDLE)).pipe(f(()=>R(!0))):t.has(E.EXISTING_BUNDLE)?this.reExecuteToBundle(e,r,t.get(E.EXISTING_BUNDLE)).pipe(f(()=>R(!0))):this.reExecuteNoBundle(e,r).pipe(f(()=>R(!0)))}reExecute(e,t){return this.reExecuteBundles(e,t).pipe(f(()=>R(!0)))}static{this.\u0275fac=function(t){return new(t||i)(l(D),l(Le),l(j),l(H))}}static{this.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var ds=(()=>{class i{constructor(e,t){this.http=e,this.notificationService=t}getGsmBoosts(){return this.http.get(tt)}getOperators(){return this.http.get(qt)}save(e,t){return this.http.post(t,e).pipe(S(()=>(this.notificationService.success("Zapisano"),{message:"ok",successful:!0})))}delete(e){let t=new _().set("id",e.toString());return this.http.delete(tt,{params:t})}toSign(e){let t=e.map(r=>r.id);return this.http.post(Vt,t)}getPhoneNumber(e){return e.dispositions[0].title.split(":")[1].slice(2,11)}getOperator(e){let t=e.dispositions[0].title.split(":"),r=t[2].slice(0,t[2].length-2).toLowerCase();return r.charAt(0).toUpperCase()+r.slice(1)}getEnablerConfig(e){let t=new _().set("ids",e.toString());return this.http.get(Qt,{params:t})}static{this.\u0275fac=function(t){return new(t||i)(l(D),l(P))}}static{this.\u0275prov=u({token:i,factory:i.\u0275fac})}}return i})();var le=(()=>{class i{constructor(){this.http=d(D),this.notificationService=d(P),this.dialog=d(j),this.authFlow=d(Pe)}prepare(e,t){return this.http.post(t,e.map(Number)).pipe(S(B))}perform(e,t){return this.http.post(t,e).pipe(g(()=>this.notificationService.success("Potwierdzono szybk\u0105 realizacj\u0119")))}cancel(e){return this.http.post(e,{})}checkEnabled(e,t){return this.http.post(t,e)}authorize(e,t,r,n=""){return this.confirm(t,n).pipe(de(h=>h),f(()=>this.authFlow.run(e,t,Y({title:"Autoryzacja szybkiej realizacji"},r))),g(()=>this.notificationService.success(M.QUICK_EXECUTION_STARTED)),De(h=>h instanceof Fe?x:Te(()=>h)))}confirm(e,t){let r=new Q;return r.data={title:"Potwierd\u017A szybk\u0105 realizacj\u0119",message:"Czy na pewno chcesz wykona\u0107 szybk\u0105 realizacj\u0119 ?",errorMessage:t,details:e},this.dialog.open(N,r).afterClosed().pipe(S(n=>n?.state===!0))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Ls=(()=>{class i{constructor(){this.quickRealizationService=d(le)}prepare(e){return this.quickRealizationService.prepare(e,Xt)}perform(e){return this.quickRealizationService.perform(e,Kt)}cancel(){return this.quickRealizationService.cancel(Yt)}authorize(e){let t=e.map(r=>String(r.id));return this.quickRealizationService.authorize(this,t,W(e,y.QUICK_REALIZATION))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Gs=(()=>{class i{constructor(){this.quickRealizationService=d(le)}prepare(e){return this.quickRealizationService.prepare(e,$t)}perform(e){return this.quickRealizationService.perform(e,Zt)}cancel(){return this.quickRealizationService.cancel(Jt)}authorize(e){let t=e.map(r=>String(r.id));return this.quickRealizationService.authorize(this,t,W([],y.QUICK_REALIZATION))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Js=(()=>{class i{constructor(){this.quickRealizationService=d(le),this.quickRealizationApiService=d(Dt)}validate(e){return this.quickRealizationApiService.validate(e)}prepare(e){return this.quickRealizationService.prepare(e,jt)}perform(e){return this.quickRealizationService.perform(e,Gt)}cancel(){return this.quickRealizationService.cancel(Wt)}authorize(e,t){let r=C.mapBundlesToIdList(e).map(String);return this.quickRealizationService.authorize(this,r,W(e,y.QUICK_REALIZATION),t)}checkEnabled(e){return this.quickRealizationService.checkEnabled(e,Ht)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();export{ir as a,Xe as b,Qe as c,cs as d,ds as e,Ke as f,y as g,W as h,le as i,K as j,hr as k,Ls as l,mr as m,dr as n,fr as o,Ka as p,Gs as q,Js as r};

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.