1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[991],{18309:(M,C,u)=>{u.r(C),u.d(C,{DLG_EXPENDITURE_DECLARATION_REVIEW_NOTE_COMPONENT_BASE_IMPORTS:()=>ft,DlgExpenditureDeclarationReviewNoteComponent:()=>j});var g=u(62501),h=u(17489),A=u(4707),T=u(60515),D=u(39841),v=u(71884),L=u(63900),i=u(70262),t=u(13099),d=u(96284),O=u(28778),k=u(32945),Y=u(95075),q=u(21604),R=u(24006),m=u(82649),w=u(182),V=u(39481),W=u(54708),P=u(26823),S=u(82594),z=u(89556),H=u(3826),B=u(58962),G=u(69362),_=u(25539),x=u(58505),a=u(74980),p=u(64709),f=u(82484),y=u(10805),E=u(32137),e=u(94650);const F=[m.dN,V.r,W.b,P.q,E.D,m.wj,B.a,S.e,G.t,_.m,a.i,m.QK,p.N,m.Yw,O.y,z.B,k.B,m._I,q.m,H.U$,x.R,f.X],Z=class extends m.au{constructor(n){super(n),this.knownLocalContextObjectNames=["activityId","notes","isIntern","operation","activity","possibleSignersList","selectedNextSigner","actualUserId","isActiveSigner","canFinishPV","isApvFinish","expenditureDeclaration","isAe","canCusoryExam","isMa","canFinishMaPv","operationName","activityIdString","parentDlg","canSave","canPass","isCusoryChecked","isJrlAe","isDbAe","isSae","archivedNotes","isNotMf","fieldsOfActionForConfig","validateMandatoryFields"],this.generateNotesIterationArchivedRowKey=(new K).generateNotesIterationArchivedRowKey,this.generateTblTableNoteFilesArchivedRowKey=(new K).generateTblTableNoteFilesArchivedRowKey,this.generateNotesIterationRowKey=(new K).generateNotesIterationRowKey,this.generateTblFilesRowKey=(new K).generateTblFilesRowKey,this.appMsgService=this.injector.get(d.g),this.confirmationService=n.get(y.YP),this.setTitle({de:"Pr\xfcfvermerk"}),this.name="DlgExpenditureDeclarationReviewNote",this.initDialog(()=>this.createDlgExpenditureDeclarationReviewNoteForm()),this.subscribeToQueryParamsChange()}reloadByUrl(n,s){this.vsfForm.markAsPristine(),this.dialogService.reloadByUrl(Z.urlPath,n,s)}ngOnInit(){this.mapContextToForm(),this.conversationService.findCurrentConversation().ifPresent(n=>n.triggerAfterDialogInitialization())}triggerPopupFinishPV(n,s){this.confirmationService.confirm({key:"finishPV",accept:()=>{null!=n?n():this.executeCallbackAndCheckBlockUi(window.event,()=>this.completeReviewNotes())},reject:()=>{s?.()}})}completeReviewNotes(){}triggerPopupMaReleasePV(n,s){this.confirmationService.confirm({key:"maReleasePV",accept:()=>{null!=n?n():this.executeCallbackAndCheckBlockUi(window.event,()=>this.releaseFundsRequest())},reject:()=>{s?.()}})}releaseFundsRequest(){}triggerPopupMaDeclinePV(n,s){this.confirmationService.confirm({key:"maDeclinePV",accept:()=>{null!=n?n():this.executeCallbackAndCheckBlockUi(window.event,()=>this.declineFundsRequest())},reject:()=>{s?.()}})}declineFundsRequest(){}btnTabAEAction(n,s,c,l){this.router.navigateByUrl("/expenditure_declaration/dlgexpendituredeclaration?activityid="+n+"&parentdlg="+s+"&rootactivityid="+c+"&activitytype="+l)}btnTabAE2Action(n,s,c,l){this.router.navigateByUrl("/expenditure_declaration/dlgexpendituredeclaration?activityid="+n+"&parentdlg="+s+"&rootactivityid="+c+"&activitytype="+l)}btnTabJrlAEAction(n,s,c,l){this.router.navigateByUrl("/expenditure_declaration/dlgexpendituredeclaration?activityid="+n+"&parentdlg="+s+"&rootactivityid="+c+"&activitytype="+l)}btnTabDbAEAction(n,s,c,l){this.router.navigateByUrl("/expenditure_declaration/dlgexpendituredeclaration?activityid="+n+"&parentdlg="+s+"&rootactivityid="+c+"&activitytype="+l)}btnTabMAAction(n,s){this.router.navigateByUrl("/expenditure_declaration/dlgfundsrequest?activityid="+n+"&parentdlg="+s)}btnTabReviewNotesAction(n,s){this.router.navigateByUrl("/expenditure_declaration/dlgexpendituredeclarationreviewnote?activityid="+n+"&parentdlg="+s)}btnTabProcessNotesAction(n,s){this.router.navigateByUrl("/expenditure_declaration/dlgexpendituredeclarationprocessnotes?activityid="+n+"&parentdlg="+s)}btnTabDocumentsCheckAction(n,s){this.router.navigateByUrl("/expenditure_declaration/dlgexpendituredeclarationdocumentschecks?activityid="+n+"&parentdlg="+s)}btnLnkReviewNoteDissent2Action(n,s){this.router.navigateByUrl("/expenditure_declaration/dlgexpendituredeclarationadmin?activityid="+n+"&parentdlg="+s)}chkCheckboxArchivedChange(n){}lnkDownloadFileArchivedAction(n){}btnUploadAction(n,s){}lnkFilenameAction(n){}lnkDeleteFileAction(n,s,c){}btnOpenPassingOverlayAction(n,s){s.show(n)}btnSaveAction(){}btnCompleteAction(){this.triggerPopupFinishPV()}btnCusoryProofedAction(){}btnReleaseAction(){this.triggerPopupMaReleasePV()}btnDeclineAction(){this.triggerPopupMaDeclinePV()}btnPassForSigningAction(){}btnCancelPassingAction(n,s){s.hide(n)}createDlgExpenditureDeclarationReviewNoteForm(){return function oe(){return new m.A0({sdlgSDlgActivityHeaderAeVnZn:(0,Y.Lm)(),fldFNotesArchived:new S.t({notesIterationArchived:new m.dn([],{mapping:"archivedNotes",keyGenerator:(new K).generateNotesIterationArchivedRowKey,creator:()=>new m.d6({fldFieldsetArchived:new S.t({chkCheckboxArchived:new m.H0(!1,{mapping:"item.z146HasSigned"}),txtTextfield2Archived:new m.H0("",{mapping:"item.note"}),tblTableNoteFilesArchived:new w.iy({filter:new m._Z({txtFilterTblTableNoteFilesArchivedColumn0:new m.H0("",{ignoreDirty:!0,ignoreDisable:!0})})},{state:{filters:[{column:"filename",control:"txtFilterTblTableNoteFilesArchivedColumn0",filtering:"LIKE"}]}})})})})}),notesIteration:new m.dn([],{mapping:"notes",keyGenerator:(new K).generateNotesIterationRowKey,creator:()=>new m.d6({fldReviewNote:new S.t({chkHasSinged:new m.H0(!1,{mapping:"item.z146HasSigned"}
1),txtReviewNote:new m.H0("",{validators:[m.ZE.requiredNotBlank,R.kI.maxLength(5e3)],mapping:"item.note"}),ctrlGridRow1:new B.d({uplUploadfield:new m.H0(null,{})}),tblFiles:new w.iy({filter:new m._Z({txtFilterTblFilesColumn0:new m.H0("",{ignoreDirty:!0,ignoreDisable:!0})})},{state:{filters:[{column:"filename",control:"txtFilterTblFilesColumn0",filtering:"LIKE"}]}})})})}),cmbPossibleSigners:new m.H0(null,{mapping:"selectedNextSigner"})},{dialogName:"DlgExpenditureDeclarationReviewNote"})}()}subscribeToQueryParamsChange(){this.subscriptions.push(this.activeRoute.queryParams.subscribe(n=>{setTimeout(()=>this.initByUrlParams(n.activityId||n.activityid,n.parentDlg||n.parentdlg),1)}))}initByUrlParams(n,s){}getRelatedMenuItemId(){return null}};let X=Z;Z.urlPathName="dlgexpendituredeclarationreviewnote",Z.urlPath="/expenditure_declaration/dlgexpendituredeclarationreviewnote",Z.\u0275fac=function(s){return new(s||Z)(e.Y36(e.zs3))},Z.\u0275dir=e.lG2({type:Z,features:[e.qOj]});class K{generateNotesIterationArchivedRowKey(n){return null==n.id?(m.ed.staticlogger.logDebug("PROBLEM: no id Attribute on table row data (type Note) found in default keygenerator implementation. Overwrite keygenerator -generateNotesIterationArchivedRowKey- in dialog component subclass to implement returning a proper ID per data row there. Otherwise certain aspects of table like expansion row handling may not work properly!JSON.stringify(item) is used as fallback now to generate unique row key.",!0),JSON.stringify(n)):""+n.id}generateTblTableNoteFilesArchivedRowKey(n){return null==n.id?(m.ed.staticlogger.logDebug("PROBLEM: no id Attribute on table row data (type any) found in default keygenerator implementation. Overwrite keygenerator -generateTblTableNoteFilesArchivedRowKey- in dialog component subclass to implement returning a proper ID per data row there. Otherwise certain aspects of table like expansion row handling may not work properly!JSON.stringify(item) is used as fallback now to generate unique row key.",!0),JSON.stringify(n)):""+n.id}generateNotesIterationRowKey(n){return null==n.id?(m.ed.staticlogger.logDebug("PROBLEM: no id Attribute on table row data (type Note) found in default keygenerator implementation. Overwrite keygenerator -generateNotesIterationRowKey- in dialog component subclass to implement returning a proper ID per data row there. Otherwise certain aspects of table like expansion row handling may not work properly!JSON.stringify(item) is used as fallback now to generate unique row key.",!0),JSON.stringify(n)):""+n.id}generateTblFilesRowKey(n){return null==n.id?(m.ed.staticlogger.logDebug("PROBLEM: no id Attribute on table row data (type Files) found in default keygenerator implementation. Overwrite keygenerator -generateTblFilesRowKey- in dialog component subclass to implement returning a proper ID per data row there. Otherwise certain aspects of table like expansion row handling may not work properly!JSON.stringify(item) is used as fallback now to generate unique row key.",!0),JSON.stringify(n)):""+n.id}}var N=u(94209),ee=u(89668),re=u(27909),le=u(93297),ce=u(92820),ue=u(31270),pe=u(73205),de=u(29784),fe=u(8614),ve=u(41262),ge=u(81813),te=u(36895),he=u(4705),me=u(65648),_e=u(48751),ie=u(55186),Ae=u(13444),ye=u(23038),be=u(12102);function De(o,n){if(1&o){const s=e.EpF();e.TgZ(0,"vsf-button",32,33),e.NdJ("vsfClick",function(l){e.CHM(s);const r=e.oxw(3);return e.KtG(r.executeCallbackAndCheckBlockUi(l,r.btnTabAEAction,r.activityId,r.parentDlg,null==r.activity||null==r.activity.activity?null:r.activity.activity.id,null==r.activity||null==r.activity.ktActivityTypeBase?null:r.activity.ktActivityTypeBase.baseId))}),e.qZA()}2&o&&e.Q6J("vsfLabel","Ausgabenerkl\xe4rung")}function xe(o,n){if(1&o&&(e.TgZ(0,"li",28),e._uU(1,"\n "),e.YNc(2,De,2,1,"vsf-button",31),e._uU(3,"\n "),e.qZA()),2&o){const s=e.oxw(2);e.xp6(2),e.Q6J("ngIf",s.isAe)}}function Te(o,n){if(1&o){const s=e.EpF();e.TgZ(0,"vsf-button",32,34),e.NdJ("vsfClick",function(l){e.CHM(s);const r=e.oxw(3);return e.KtG(r.executeCallbackAndCheckBlockUi(l,r.btnTabAE2Action,r.activityId,r.parentDlg,null==r.activity||null==r.activity.activity?null:r.activity.activity.id,null==r.activity||null==r.activity.ktActivityTypeBase?null:r.activity.ktActivityTypeBase.baseId))}),e.qZA()}2&o&&e.Q6J("vsfLabel","Schluss-Ausgabenerkl\xe4rung")}function Ue(o,n){if(1&o&&(e.TgZ(0,"li",28),e._uU(1,"\n "),e.YNc(2,Te,2,1,"vsf-button",31),e._uU(3,"\n "),e.qZA()),2&o){const s=e.oxw(2);e.xp6(2),e.Q6J("ngIf",s.isSae)}}function Ce(o,n){if(1&o){const s=e.EpF();e.TgZ(0,"vsf-button",32,35),e.NdJ("vsfClick",function(l){e.CHM(s);const r=e.oxw(3);
1return e.KtG(r.executeCallbackAndCheckBlockUi(l,r.btnTabJrlAEAction,r.activityId,r.parentDlg,null==r.activity||null==r.activity.activity?null:r.activity.activity.id,null==r.activity||null==r.activity.ktActivityTypeBase?null:r.activity.ktActivityTypeBase.baseId))}),e.qZA()}2&o&&e.Q6J("vsfLabel","JRL-Ausgabenerkl\xe4rung")}function Ee(o,n){if(1&o&&(e.TgZ(0,"li",28),e._uU(1,"\n "),e.YNc(2,Ce,2,1,"vsf-button",31),e._uU(3,"\n "),e.qZA()),2&o){const s=e.oxw(2);e.xp6(2),e.Q6J("ngIf",s.isJrlAe)}}function Ne(o,n){if(1&o){const s=e.EpF();e.TgZ(0,"vsf-button",32,36),e.NdJ("vsfClick",function(l){e.CHM(s);const r=e.oxw(3);return e.KtG(r.executeCallbackAndCheckBlockUi(l,r.btnTabDbAEAction,r.activityId,r.parentDlg,null==r.activity||null==r.activity.activity?null:r.activity.activity.id,null==r.activity||null==r.activity.ktActivityTypeBase?null:r.activity.ktActivityTypeBase.baseId))}),e.qZA()}2&o&&e.Q6J("vsfLabel","DB-Ausgabenerkl\xe4rung")}function Le(o,n){if(1&o&&(e.TgZ(0,"li",28),e._uU(1,"\n "),e.YNc(2,Ne,2,1,"vsf-button",31),e._uU(3,"\n "),e.qZA()),2&o){const s=e.oxw(2);e.xp6(2),e.Q6J("ngIf",s.isDbAe)}}function ke(o,n){if(1&o){const s=e.EpF();e.TgZ(0,"vsf-button",32,37),e.NdJ("vsfClick",function(l){e.CHM(s);const r=e.oxw(3);return e.KtG(r.executeCallbackAndCheckBlockUi(l,r.btnTabMAAction,r.activityId,r.parentDlg))}),e.qZA()}2&o&&e.Q6J("vsfLabel","Mittelanforderung")}function we(o,n){if(1&o&&(e.TgZ(0,"li",28),e._uU(1,"\n "),e.YNc(2,ke,2,1,"vsf-button",31),e._uU(3,"\n "),e.qZA()),2&o){const s=e.oxw(2);e.xp6(2),e.Q6J("ngIf",s.isMa)}}function Oe(o,n){if(1&o){const s=e.EpF();e.TgZ(0,"vsf-button",32,38),e.NdJ("vsfClick",function(l){e.CHM(s);const r=e.oxw(3);return e.KtG(r.executeCallbackAndCheckBlockUi(l,r.btnTabProcessNotesAction,r.activityId,r.parentDlg))}),e.qZA()}2&o&&e.Q6J("vsfLabel","Bearbeitungshinweise")}function Re(o,n){if(1&o&&(e.TgZ(0,"li",28),e._uU(1,"\n "),e.YNc(2,Oe,2,1,"vsf-button",31),e._uU(3,"\n "),e.qZA()),2&o){const s=e.oxw(2);e.xp6(2),e.Q6J("ngIf",!s.isMa)}}function Fe(o,n){if(1&o){const s=e.EpF();e.TgZ(0,"vsf-button",32,39),e.NdJ("vsfClick",function(l){e.CHM(s);const r=e.oxw(3);return e.KtG(r.executeCallbackAndCheckBlockUi(l,r.btnTabDocumentsCheckAction,r.activityId,r.parentDlg))}),e.qZA()}2&o&&e.Q6J("vsfLabel","Dokumente & Pr\xfcfungen")}function Ze(o,n){if(1&o&&(e.TgZ(0,"li",28),e._uU(1,"\n "),e.YNc(2,Fe,2,1,"vsf-button",31),e._uU(3,"\n "),e.qZA()),2&o){const s=e.oxw(2);e.xp6(2),e.Q6J("ngIf",s.isIntern)}}function Ie(o,n){if(1&o){const s=e.EpF();e.TgZ(0,"li",28),e._uU(1,"\n "),e.TgZ(2,"vsf-button",32,40),e.NdJ("vsfClick",function(l){e.CHM(s);const r=e.oxw(2);return r.messageService.clear(),e.KtG(r.executeCallbackAndCheckBlockUi(l,r.btnLnkReviewNoteDissent2Action,r.activityId,r.parentDlg))}),e.qZA(),e._uU(4,"\n "),e.qZA()}2&o&&(e.xp6(2),e.Q6J("vsfLabel","Verwaltung"))}function Se(o,n){if(1&o){const s=e.EpF();e._uU(0,"\n "),e.TgZ(1,"ul",26),e._uU(2,"\n "),e.YNc(3,xe,4,1,"li",27),e._uU(4,"\n "),e.YNc(5,Ue,4,1,"li",27),e._uU(6,"\n "),e.YNc(7,Ee,4,1,"li",27),e._uU(8,"\n "),e.YNc(9,Le,4,1,"li",27),e._uU(10,"\n "),e.YNc(11,we,4,1,"li",27),e._uU(12,"\n "),e.TgZ(13,"li",28),e._uU(14,"\n "),e.TgZ(15,"vsf-button",29,30),e.NdJ("vsfClick",function(l){e.CHM(s);const r=e.oxw();return e.KtG(r.executeCallbackAndCheckBlockUi(l,r.btnTabReviewNotesAction,r.activityId,r.parentDlg))}),e.qZA(),e._uU(17,"\n "),e.qZA(),e._uU(18,"\n "),e.YNc(19,Re,4,1,"li",27),e._uU(20,"\n "),e.YNc(21,Ze,4,1,"li",27),e._uU(22,"\n "),e.YNc(23,Ie,5,1,"li",27),e._uU(24,"\n "),e.qZA(),e._uU(25,"\n ")}if(2&o){const s=e.oxw();e.xp6(3),e.Q6J("ngIf",s.isAe),e.xp6(2),e.Q6J("ngIf",s.isSae),e.xp6(2),e.Q6J("ngIf",s.isJrlAe),e.xp6(2),e.Q6J("ngIf",s.isDbAe),e.xp6(2),e.Q6J("ngIf",s.isMa),e.xp6(4),e.Q6J("vsfLabel","Pr\xfcfvermerk"),e.xp6(4),e.Q6J("ngIf",!s.isMa),e.xp6(2),e.Q6J("ngIf",s.isIntern),e.xp6(2),e.Q6J("ngIf",s.isNotMf&&!s.isJrlAe&&!s.isDbAe)}}function Be(o,n){if(1&o&&(e.TgZ(0,"h1")(1,"label",41,42),e._uU(3),e.qZA()()),2&o){const s=e.oxw();e.xp6(1),e.Q6J("id",s.vsfForm.pathName+".lblTitleAe"),e.xp6(2),e.Oqu("Pr\xfcfvermerk")}}function Me(o,n){if(1&o&&(e._uU(0,"\n "),e.TgZ(1,"label",41,70),e._uU(3),e.qZA(),e._uU(4,"\n ")),2&o){const s=e.oxw().associatedFormRow;e.xp6(1),e.Q6J("id",s.pathName+".lblLabel32Archived"),e.xp6(2),e.Oqu("Datei")}}function Pe(o,n){1&o&&(e._uU(0,"\n "),e.ynx(1,71),e._uU(2,"\n "),e.TgZ(3,"vsf-text",72,73),e._uU(5,"\n "),e.qZA(),e._uU(6,"\n "),e.BQk(),e._uU(7,"\n ")),2&o&&(e.xp6(3),e.Q6J("vsfAriaLabel","Datei"))}function Ke(o,n){if(1&o){const s=e.EpF();e._uU(0,"\n "),e.TgZ(1,"vsf-link",74,75),e.NdJ("vsfClick",function(l){const b=e.CHM(s).associatedObject,U=e.oxw(4);
1return e.KtG(U.executeCallbackAndCheckBlockUi(l,U.lnkDownloadFileArchivedAction,b))}),e.qZA(),e._uU(3,"\n ")}if(2&o){const s=n.associatedObject;e.xp6(1),e.Q6J("vsfLabel",s.filename)}}function Je(o,n){if(1&o){const s=e.EpF();e._uU(0,"\n "),e.ynx(1,50),e._uU(2,"\n "),e.TgZ(3,"vsf-fieldset",51,52),e.ALo(5,"noteHeader"),e._uU(6,"\n "),e.TgZ(7,"div",15),e._uU(8,"\n "),e.TgZ(9,"div",7),e._uU(10,"\n "),e.TgZ(11,"div",6),e._uU(12,"\n "),e.TgZ(13,"div",7),e._uU(14,"\n "),e.TgZ(15,"div",6),e._uU(16,"\n "),e.TgZ(17,"div",53),e._uU(18,"\n "),e.TgZ(19,"label",54,55),e._uU(21),e.qZA(),e._uU(22,"\n "),e.TgZ(23,"label",17,56),e._uU(25),e.qZA(),e._uU(26,"\n "),e.qZA(),e._uU(27,"\n "),e.TgZ(28,"div",57),e._uU(29,"\n "),e.TgZ(30,"vsf-checkbox",58,59),e.NdJ("change",function(l){e.CHM(s);const r=e.oxw(3);return e.KtG(r.executeCallbackAndCheckBlockUi(l,r.chkCheckboxArchivedChange,l))}),e._uU(32,"\n "),e.qZA(),e._uU(33,"\n "),e.qZA(),e._uU(34,"\n "),e.qZA(),e._uU(35,"\n "),e.qZA(),e._uU(36,"\n "),e.qZA(),e._uU(37,"\n "),e.TgZ(38,"div",6),e._uU(39,"\n "),e.TgZ(40,"div",7),e._uU(41,"\n "),e.TgZ(42,"div",6),e._uU(43,"\n "),e.TgZ(44,"div",53),e._uU(45,"\n "),e.TgZ(46,"label",54,60),e._uU(48),e.qZA(),e._uU(49,"\n "),e.TgZ(50,"label",41,61),e._uU(52),e.qZA(),e._uU(53,"\n "),e.qZA(),e._uU(54,"\n "),e.TgZ(55,"div",57),e._uU(56,"\n "),e.TgZ(57,"vsf-textarea",62,63),e._uU(59,"\n "),e.qZA(),e._uU(60,"\n "),e.qZA(),e._uU(61,"\n "),e.qZA(),e._uU(62,"\n "),e.qZA(),e._uU(63,"\n "),e.qZA(),e._uU(64,"\n "),e.TgZ(65,"vsf-table",64,65),e._uU(67,"\n "),e.TgZ(68,"vsf-table-column",66),e._uU(69,"\n "),e.YNc(70,Me,5,2,"ng-template",67),e._uU(71,"\n "),e.YNc(72,Pe,8,1,"ng-template",68),e._uU(73,"\n "),e.YNc(74,Ke,4,1,"ng-template",69),e._uU(75,"\n "),e.qZA(),e._uU(76,"\n "),e.qZA(),e._uU(77,"\n "),e.qZA(),e._uU(78,"\n "),e.qZA(),e._uU(79,"\n "),e.qZA(),e._uU(80,"\n "),e.BQk(),e._uU(81,"\n ")}if(2&o){const s=n.associatedFormRow,c=n.index,l=n.associatedObject,r=n.associatedKey,b=e.MAs(31),U=e.oxw(3);e.xp6(1),e.Q6J("formGroupName",c)("vsfKey",r),e.xp6(2),e.Q6J("vsfLegend",e.lcZ(5,28,l))("vsfOpen",!1)("vsfToggable",!0),e.xp6(16),e.Q6J("id",s.pathName+".lblLabel53Archived"),e.xp6(2),e.Oqu("Z146"),e.xp6(2),e.Q6J("for",b.vsfId)("id",s.pathName+".lblLabel7Archived"),e.xp6(2),e.Oqu("Mitgezeichnet"),e.xp6(5),e.Q6J("vsfAriaLabel","Z146 Mitgezeichnet")("vsfDisabled",!0)("vsfHasTriState",!1),e.xp6(16),e.Q6J("id",s.pathName+".lblLabel5Archived"),e.xp6(2),e.Oqu("Z139"),e.xp6(2),e.Q6J("id",s.pathName+".lblLabel4Archived"),e.xp6(2),e.Oqu("Pr\xfcfvermerk"),e.xp6(5),e.Q6J("vsfAriaLabel","Z139 Pr\xfcfvermerk")("vsfDisabled",!0),e.xp6(8),e.Q6J("vsfArrayTable",l.filesList)("vsfEmptyMessage","Keine Anlagen gefunden")("vsfKeyGenerator",U.generateTblTableNoteFilesArchivedRowKey)("vsfReorderableColumns",!1)("vsfResizableColumns",!1)("vsfResponsive",!0),e.xp6(3),e.s9C("label","Datei"),e.Q6J("vsfFilter",!0)("vsfSort",!0)}}function Qe(o,n){if(1&o&&(e.TgZ(0,"vsf-fieldset",45,46),e._uU(2,"\n "),e.TgZ(3,"vsf-iteration",47,48),e._uU(5,"\n "),e.YNc(6,Je,82,30,"ng-template",null,49,e.W1O),e._uU(8,"\n "),e.qZA(),e._uU(9,"\n "),e.qZA()),2&o){const s=e.MAs(7);e.Q6J("vsfLegend","Archivierte Mitzeichnungen")("vsfOpen",!1)("vsfToggable",!0),e.xp6(3),e.Q6J("vsfIterationTemplate",s)}}function qe(o,n){if(1&o&&(e.TgZ(0,"div",43),e._uU(1,"\n "),e.TgZ(2,"div",6),e._uU(3,"\n "),e.TgZ(4,"div",7),e._uU(5,"\n "),e.YNc(6,Qe,10,4,"vsf-fieldset",44),e._uU(7,"\n "),e.qZA(),e._uU(8,"\n "),e.qZA(),e._uU(9,"\n "),e.qZA()),2&o){const s=e.oxw();e.xp6(6),e.Q6J("ngIf",s.archivedNotes.length>0)}}function Ve(o,n){if(1&o&&(e.TgZ(0,"div",6),e._uU(1,"\n "),e.TgZ(2,"div",7),e._uU(3,"\n "),e.TgZ(4,"div",6),e._uU(5,"\n "),e.TgZ(6,"div",53),e._uU(7,"\n "),e.TgZ(8,"label",54,88),e._uU(10),e.qZA(),e._uU(11,"\n "),e.TgZ(12,"label",17,89),e._uU(14),e.qZA(),e._uU(15,"\n "),e.qZA(),e._uU(16,"\n "),e.TgZ(17,"div",57),e._uU(18,"\n "),e.TgZ(19,"vsf-checkbox",90,91),e._uU(21,"\n "),e.qZA(),e._uU(22,"\n "),e.qZA(),e._uU(23,"\n "),e.qZA(),e._uU(24,"\n "),e.qZA(),e._uU(25,"\n "),e.qZA()),2&o){const s=e.MAs(20),c=e.oxw(),l=c.associatedFormRow,r=c.associatedObject,b=e.oxw(2);e.xp6(8),e.Q6J("id",l.pathName+".lblLabel554"),e.xp6(2),e.Oqu("Z146"),e.xp6(2),e.Q6J("for",s.vsfId)("id",l.pathName+".lblLabel"),e.xp6(2),e.Oqu("Mitgezeichnet"),e.xp6(5),e.Q6J("vsfAriaLabel","Z146 Mitgezeichnet")("vsfDisabled",!(r.user.id==b.actualUserId&&!r.finish))("vsfHasTriState",!1)}}function He(o,n){if(1&o&&(e.TgZ(0,"div",6),e._uU(1,"\n "),e.TgZ(2,"div",7),e._uU(3,"\n "),e.TgZ(4,"div",6),e._uU(5,"\n "),e.TgZ(6,"div",53),e._uU(7,"\n "),e.TgZ(8,"label",54,92),e._uU(10),e.qZA(),e._uU(11,"\n "),e.TgZ(12,"label",41,93),e._uU(14),e.qZA(),e._uU(15,"\n "),e.qZA(),e._uU(16,"\n "),e.TgZ(17,"div",57),e._uU(18,"\n "),e.TgZ(19,"vsf-textarea",94,95),e._uU(21,"\n "),e.qZA(),e._uU(22,"\n "),e.qZA(),e._uU(23,"\n "),e.qZA(),e._uU(24,"\n "),e.qZA(),e._uU(25,"\n "),e.qZA()),2&o){const s=e.oxw(),c=s.associatedFormRow,l=s.associatedObject,r=e.oxw(2);e.xp6(8),e.Q6J("id",c.pathName+".lblLabel54"),e.xp6(2),e.Oqu("Z139"),e.xp6(2),e.Q6J("id",c.pathName+".lblLabel432"),e.xp6(2),e.Oqu("Pr\xfcfvermerk"),e.xp6(5),e.Q6J("vsfAriaLabel","Z139 Pr\xfcfvermerk")("vsfDisabled",!(l.user.id==r.actualUserId&&!l.finish))("vsfMaxCharForRemainingDisplay",5e3)}}function Ye(o,n){if(1&o){const s=e.EpF();e.TgZ(0,"vsf-div-formbound",97,98),e._uU(2,"\n "),e.TgZ(3,"div",7),e._uU(4,"\n "),e.TgZ(5,"div",6),e._uU(6,"\n "),e.TgZ(7,"div",53),e._uU(8,"\n "),e.TgZ(9,"label",54,99),e._uU(11),e.qZA(),e._uU(12,"\n "),e.TgZ(13,"label",41,100),e._uU(15),e.qZA(),e._uU(16,"\n "),e.qZA(),e._uU(17,"\n "),e.TgZ(18,"div",57),e._uU(19,"\n "),e.TgZ(20,"vsf-file",101,102),e._uU(22,"\n "),e.qZA(),e._uU(23,"\n "),e.TgZ(24,"vsf-button",103,104),e.NdJ("vsfClick",function(l){e.CHM(s);const r=e.oxw(2),b=r.associatedObject,U=r.index,Q=e.oxw(2);
1return e.KtG(Q.executeCallbackAndCheckBlockUi(l,Q.btnUploadAction,b,U))}),e.qZA(),e._uU(26,"\n "),e.qZA(),e._uU(27,"\n "),e.qZA(),e._uU(28,"\n "),e.qZA(),e._uU(29,"\n "),e.qZA()}if(2&o){const s=e.oxw(2).associatedFormRow;e.xp6(9),e.Q6J("id",s.pathName+".lblLabel553"),e.xp6(2),e.Oqu("Z140"),e.xp6(2),e.Q6J("id",s.pathName+".lblFileUploadAePv"),e.xp6(2),e.Oqu("Dateiupload"),e.xp6(5),e.Q6J("vsfAriaLabel","Z140 Dateiupload")("vsfBindingType","JSON")("vsfMaxFileSize",10485760)("vsfMultiple",!1),e.xp6(4),e.Q6J("vsfLabel","Hochladen")}}function We(o,n){if(1&o&&(e.TgZ(0,"div",6),e._uU(1,"\n "),e.TgZ(2,"div",7),e._uU(3,"\n "),e.YNc(4,Ye,30,9,"vsf-div-formbound",96),e._uU(5,"\n "),e.qZA(),e._uU(6,"\n "),e.qZA()),2&o){const s=e.oxw().associatedObject,c=e.oxw(2);e.xp6(4),e.Q6J("ngIf",s.user.id==c.actualUserId&&!s.finish)}}function ze(o,n){if(1&o&&(e._uU(0,"\n "),e.TgZ(1,"label",41,105),e._uU(3),e.qZA(),e._uU(4,"\n ")),2&o){const s=e.oxw().associatedFormRow;e.xp6(1),e.Q6J("id",s.pathName+".lblLabel3232"),e.xp6(2),e.Oqu("Datei")}}function Ge(o,n){1&o&&(e._uU(0,"\n "),e.ynx(1,71),e._uU(2,"\n "),e.TgZ(3,"vsf-text",106,107),e._uU(5,"\n "),e.qZA(),e._uU(6,"\n "),e.BQk(),e._uU(7,"\n ")),2&o&&(e.xp6(3),e.Q6J("vsfAriaLabel","Datei"))}function $e(o,n){if(1&o){const s=e.EpF();e._uU(0,"\n "),e.TgZ(1,"vsf-link",74,108),e.NdJ("vsfClick",function(l){const b=e.CHM(s).associatedObject,U=e.oxw(3);return e.KtG(U.executeCallbackAndCheckBlockUi(l,U.lnkFilenameAction,b))}),e.qZA(),e._uU(3,"\n ")}if(2&o){const s=n.associatedObject;e.xp6(1),e.Q6J("vsfLabel",s.filename)}}function Xe(o,n){if(1&o&&(e._uU(0,"\n "),e.TgZ(1,"label",41,109),e._uU(3),e.qZA(),e._uU(4,"\n ")),2&o){const s=e.oxw().associatedFormRow;e.xp6(1),e.Q6J("id",s.pathName+".lblLabel523"),e.xp6(2),e.Oqu("L\xf6schen")}}function je(o,n){if(1&o){const s=e.EpF();e._uU(0,"\n "),e.TgZ(1,"vsf-link",110,111),e.NdJ("vsfClick",function(l){const r=e.CHM(s),b=r.associatedObject,U=r.index,Q=e.oxw().associatedKey,$=e.oxw(2);return e.KtG($.executeCallbackAndCheckBlockUi(l,$.lnkDeleteFileAction,b,U,Q))}),e.qZA(),e._uU(3,"\n ")}2&o&&(e.xp6(1),e.Q6J("vsfLabel",""))}function et(o,n){if(1&o&&(e._uU(0,"\n "),e.ynx(1,50),e._uU(2,"\n "),e.TgZ(3,"vsf-fieldset",79,80),e._uU(5,"\n "),e.TgZ(6,"span",81),e._uU(7,"\n "),e.TgZ(8,"h2",82,83),e._uU(10),e.ALo(11,"noteHeader"),e.qZA(),e._uU(12,"\n \n "),e.qZA(),e._uU(13,"\n "),e.TgZ(14,"div",15),e._uU(15,"\n "),e.TgZ(16,"div",7),e._uU(17,"\n "),e.YNc(18,Ve,26,8,"div",84),e._uU(19,"\n "),e.YNc(20,He,26,7,"div",84),e._uU(21,"\n "),e.YNc(22,We,7,1,"div",84),e._uU(23,"\n "),e.TgZ(24,"vsf-table",85,86),e._uU(26,"\n "),e.TgZ(27,"vsf-table-column",66),e._uU(28,"\n "),e.YNc(29,ze,5,2,"ng-template",67),e._uU(30,"\n "),e.YNc(31,Ge,8,1,"ng-template",68),e._uU(32,"\n "),e.YNc(33,$e,4,1,"ng-template",69),e._uU(34,"\n "),e.qZA(),e._uU(35,"\n "),e.TgZ(36,"vsf-table-column",87),e._uU(37,"\n "),e.YNc(38,Xe,5,2,"ng-template",67),e._uU(39,"\n "),e.YNc(40,je,4,1,"ng-template",69),e._uU(41,"\n "),e.qZA(),e._uU(42,"\n "),e.qZA(),e._uU(43,"\n "),e.qZA(),e._uU(44,"\n "),e.qZA(),e._uU(45,"\n "),e.qZA(),e._uU(46,"\n "),e.BQk(),e._uU(47,"\n ")),2&o){const s=n.index,c=n.associatedObject,l=n.associatedKey,r=e.oxw(2);e.xp6(1),e.Q6J("formGroupName",s)("vsfKey",l),e.xp6(2),e.Q6J("vsfOpen",!1)("vsfToggable",!0),e.xp6(7),e.Oqu(e.l
1cZ(11,18,c)),e.xp6(8),e.Q6J("zeusFormConfig","chkHasSinged"),e.xp6(2),e.Q6J("zeusFormConfig","txtReviewNote"),e.xp6(2),e.Q6J("zeusFormConfig","lblFileUploadAePv"),e.xp6(2),e.Q6J("vsfArrayTable",c.filesList)("vsfEmptyMessage","Keine Anlagen gefunden")("vsfKeyGenerator",r.generateTblFilesRowKey)("vsfReorderableColumns",!1)("vsfResizableColumns",!1)("vsfResponsive",!0),e.xp6(3),e.s9C("label","Datei"),e.Q6J("vsfFilter",!0)("vsfSort",!0),e.xp6(9),e.s9C("label","L\xf6schen")}}function tt(o,n){if(1&o&&(e.TgZ(0,"div",43),e._uU(1,"\n "),e.TgZ(2,"vsf-iteration",76,77),e._uU(4,"\n "),e.YNc(5,et,48,20,"ng-template",null,78,e.W1O),e._uU(7,"\n "),e.qZA(),e._uU(8,"\n "),e.qZA()),2&o){const s=e.MAs(6);e.xp6(2),e.Q6J("vsfIterationTemplate",s)}}function it(o,n){if(1&o){const s=e.EpF();e.TgZ(0,"vsf-button",22,114),e.NdJ("vsfClick",function(l){e.CHM(s);const r=e.oxw(2),b=e.MAs(47);return e.KtG(r.executeCallbackAndCheckBlockUi(l,r.btnOpenPassingOverlayAction,l,b))}),e.qZA()}2&o&&e.Q6J("vsfLabel","Zur Mitzeichnung weiterreichen")}function nt(o,n){if(1&o){const s=e.EpF();e.TgZ(0,"vsf-button",24,115),e.NdJ("vsfClick",function(l){e.CHM(s);const r=e.oxw(2);return e.KtG(r.executeCallbackAndCheckBlockUi(l,r.btnSaveAction))}),e.qZA()}2&o&&e.Q6J("vsfLabel","Speichern")}function st(o,n){if(1&o){const s=e.EpF();e.TgZ(0,"vsf-button",24,116),e.NdJ("vsfClick",function(l){e.CHM(s);const r=e.oxw(2);return e.KtG(r.executeCallbackAndCheckBlockUi(l,r.btnCompleteAction))}),e.qZA()}2&o&&e.Q6J("vsfLabel","Abschlie\xdfen")}function at(o,n){if(1&o){const s=e.EpF();e.TgZ(0,"vsf-button",24,117),e.NdJ("vsfClick",function(l){e.CHM(s);const r=e.oxw(2);return e.KtG(r.executeCallbackAndCheckBlockUi(l,r.btnCusoryProofedAction))}),e.qZA()}2&o&&e.Q6J("vsfLabel","Kursorisch gepr\xfcft")}function ot(o,n){if(1&o){const s=e.EpF();e.TgZ(0,"vsf-button",24,118),e.NdJ("vsfClick",function(l){e.CHM(s);const r=e.oxw(2);return e.KtG(r.executeCallbackAndCheckBlockUi(l,r.btnReleaseAction))}),e.qZA()}2&o&&e.Q6J("vsfLabel","Freigeben")}function rt(o,n){if(1&o){const s=e.EpF();e.TgZ(0,"vsf-button",24,119),e.NdJ("vsfClick",function(l){e.CHM(s);const r=e.oxw(2);return e.KtG(r.executeCallbackAndCheckBlockUi(l,r.btnDeclineAction))}),e.qZA()}2&o&&e.Q6J("vsfLabel","Ablehnen")}function lt(o,n){if(1&o&&(e._uU(0,"\n "),e.TgZ(1,"ul",26),e._uU(2,"\n "),e.TgZ(3,"li",28),e._uU(4,"\n "),e.YNc(5,it,2,1,"vsf-button",112),e._uU(6,"\n "),e.qZA(),e._uU(7,"\n "),e.TgZ(8,"li",28),e._uU(9,"\n "),e.YNc(10,nt,2,1,"vsf-button",113),e._uU(11,"\n "),e.qZA(),e._uU(12,"\n "),e.TgZ(13,"li",28),e._uU(14,"\n "),e.YNc(15,st,2,1,"vsf-button",113),e._uU(16,"\n "),e.qZA(),e._uU(17,"\n "),e.TgZ(18,"li",28),e._uU(19,"\n "),e.YNc(20,at,2,1,"vsf-button",113),e._uU(21,"\n "),e.qZA(),e._uU(22,"\n "),e.TgZ(23,"li",28),e._uU(24,"\n "),e.YNc(25,ot,2,1,"vsf-button",113),e._uU(26,"\n "),e.qZA(),e._uU(27,"\n "),e.TgZ(28,"li",28),e._uU(29,"\n "),e.YNc(30,rt,2,1,"vsf-button",113),e._uU(31,"\n "),e.qZA(),e._uU(32,"\n "),e.qZA(),e._uU(33,"\n ")),2&o){const s=e.oxw();e.xp6(5),e.Q6J("ngIf",s.canPass),e.xp6(5),e.Q6J("ngIf",s.canSave),e.xp6(5),e.Q6J("ngIf",s.canFinishPV),e.xp6(5),e.Q6J("ngIf",s.canCusoryExam),e.xp6(5),e.Q6J("ngIf",s.canFinishMaPv),e.xp6(5),e.Q6J("ngIf",s.canFinishMaPv)}}const ct=function(){return{de:"M\xf6chten Sie die Mittelanforderung freigeben?",en:"..."}},J=function(){return[]},ne=function(){return{de:"Ja",en:"Ok"}},se=function(){return{de:"Abbrechen",en:"Cancel"}},ut=function(){return{de:"M\xf6chten Sie die Mittelanforderung ablehnen?",en:"..."}},ae=function(o,n){return[o,n]},pt=function(o){return[o]},dt=function(){return{autofocus:"autofocus"}},ft=[...F],I=class extends X{constructor(n,s,c,l,r,b,U,Q,$,vt,gt){super(n),this.userService=s,this.rightService=c,this.boWriteActivityNotesService=l,this.boReadActivityOperationService=r,this.boActivityDelegateService=b,this.boStoreExpenditureDeclarationService=U,this.boFundsRequestService=Q,this.documentUploadHelper=$,this.documentDownloadHelper=vt,this.breadcrumbHelper=gt,this.activityId$=new A.t,this.clerks=[],this.lastNoteIsCancelNotice=!1,this.archivedNotes=[]}ngOnInit(){super.ngOnInit()}initByUrlParams(n,s){this.operation=null,this.activity=null,this.parentDlg=s,this.actualUserId=this.userService.getUserId(),this.isIntern=this.userService.isInternal(),null!=n&&this.isIntern?(this.activityId=n,this.activityId$.next(n),this.initObservables()):(this.isIntern||(0,N.showErrorMsg)(this.messageService,this.changeDetector,"Dieser Dialog ist nur f\xfcr interne Nutzer sichtbar"),null===n&&(0,N.showErrorMsg)(this.messageService,this.changeDetector,"Ausgabenerkl\xe4rung kann nicht angezeigt werden, Programm-/Vorgangskontext nicht bekannt"))}initObservables(){const n=this.activityId$.pipe((0,v.x)(),(0,L.w)(l=>this.boReadActivityOperationService.findById(l).pipe((0,i.K)(r=>((0,N.showErrorMsg)(this.messageService,this.changeDetector,"Error while Reading from Database"),console.error(r),T.E)))),(0,t.B)());n.subscribe(l=>{this.isNotMf="Mittelanforderung"!==l.ktActivityTypeBase?.key},l=>{console.error("Subscription error:",l)});const s=n.pipe((0,L.w)(l=>this.rightService.findSubjectsWithAnyRightOnOperation(l.operation.id,[I.getRightsByActivityType(l)]))),c=n.pipe((0,L.w)(l=>this.rightService.findSubjectsWithAnyRightOnOperation(l.operation.id,[I.getReadRightsByActivityType(l)])));this.subscriptions.push((0,D.a)([n,s,c]).subscribe(([l,r,b])=>this.doInit(l,r,b)))}static getRightsByActivityType(n){return 10==n.ktActivityTypeBase?.baseId?g.L.J25:12==n.ktActivityTypeBase?.baseId?g.L.K23:g.L.J22}static getReadRightsByActivityType(n){return 10==n.ktActivityTypeBase?.baseId?g.L.J24:12==n.ktActivityTypeBase?.baseId?g.L.K21:g.L.J22}doInit(n,s,c){this.initActivityData(n),this.initNotes(),this.initSignerData(s,c),this.showButtonsByRights(),this.breadcrumbHelper.initBreadCrumbs(this.activity.activity,this.parentDlg,this.activity.ktActivityTypeBase?.baseId),this.mapContextToForm(),this.hideDeleteColumn(),this.fieldsOfActionForConfig=n?.activity?.operation?.operationFieldsOfActionAssignmentList?.map(l=>{if(null!=l.fieldsOfAction?.name)return l.fieldsOfAction?.name})??[],console.log({"apv abgeschlossen":this.isApvFinish,"aktiver Mitzeichnen
1der":(0,h.last)(this.notes)?.user?.z85Username,"Anzahl APV Notes":this.notes.length,"Anzahl bereits mitgezeichnet":this.getNumberOfSignedNotes()})}initActivityData(n){switch(this.activity=n,this.operation=n.operation,this.activity.ktActivityTypeBase?.baseId){case 7:this.isAe=!0,this.noteBaseId=7;break;case 8:this.isJrlAe=!0,this.noteBaseId=10,this.validateMandatoryFields=!0;break;case 9:this.isDbAe=!0,this.noteBaseId=9,this.validateMandatoryFields=!0;break;case 20:this.isSae=!0,this.noteBaseId=12;break;default:this.isMa=!0,this.noteBaseId=8}null!=n.expenditureDeclarationList&&n.expenditureDeclarationList.length>0&&(this.expenditureDeclaration=n.expenditureDeclarationList[0]),console.log(n)}initNotes(){this.notes=this.operation.operationBase?.noteList?.filter(s=>s.ktNoteTypeBase?.baseId==this.noteBaseId&&!s.historized)??[],this.archivedNotes=this.operation.operationBase?.noteList?.filter(s=>s.ktNoteTypeBase?.baseId==this.noteBaseId&&s.historized)??[];const n=(0,h.last)(this.notes);null!=n&&(this.isActiveSigner=n.user.id===this.actualUserId&&"IN_REVISION"!==this.activity.ktActivityStatusBase?.key,this.lastNoteIsCancelNotice=-1==n.signinglevel),this.isApvFinish=this.operation.reviewnotecomplete??!1}initSignerData(n,s){const c=s.map(l=>l.id);(0,h.remove)(n,l=>l.id===this.actualUserId||!c.includes(l.id)),this.clerks=[...n],this.possibleSignersList=n.map(l=>({value:l.id,label:l.d84Firstname+" "+l.d85Lastname}))}showButtonsByRights(){this.canPass=!1,this.canSave=!1,this.canFinishPV=!1,this.canCusoryExam=!1,this.canFinishMaPv=!1,this.isCurrentEditor()&&this.isIntern&&(this.isAe||this.isDbAe||this.isJrlAe||this.isSae?this.isActiveSigner&&!this.lastNoteIsCancelNotice&&!this.isApvFinish&&this.hasRight(g.L.J22)&&this.isActivityInExamination()&&(this.canSave=!0,this.canPass=!0,this.getNumberOfSignedNotes()>=2&&(this.canFinishPV=!0)):this.isMa&&this.isActiveSigner&&!this.lastNoteIsCancelNotice&&!this.isApvFinish&&this.hasRight(g.L.K23)&&this.isActivityInExamination()&&(this.canSave=!0,this.canPass=!0,this.getNumberOfSignedNotes()>=2&&this.hasCurrentUserSigned()&&(this.canFinishMaPv=!0)))}btnUploadAction(n,s){const c=this.vsfForm.controls.notesIteration.controls[s].controls.fldReviewNote.controls.ctrlGridRow1.controls.uplUploadfield;if(this.messageService.clear(),c.value){const l=c.value[0];if(!this.documentUploadHelper.isAllowedDocument(l.name))return void this.messageService.error(this.appMsgService.dlg_document_edit_file_upload_error);const r={filename:l.name,title:l.name,filesData:{id:this.uidService.uidNegNumber,filedata:l.content}};null==n.filesList&&(n.filesList=[]),n.filesList=[...n.filesList,r]}else this.messageService.warn(this.appMsgService.missing_upload_document_warning)}lnkFilenameAction(n){this.documentDownloadHelper.downloadDocumentWithContent(n,ee.e.FILES)}btnOpenPassingOverlayAction(n,s){s.toggle(n),this.overlay=s}btnSaveAction(){if(this.messageService.clear(),this.vsfForm.pristine)return void this.messageService.info(this.appMsgService.no_changes_no_save);this.mapFormToContext();const n=(0,h.last)(this.notes);!n?.z146HasSigned||null!=n.note&&""!=n.note&&null!=n.note?this.saveNotes(!0,"Pr\xfcfvermerk gespeichert"):(0,N.showErrorMsg)(this.messageService,this.changeDetector,"Bitte f\xfcllen Sie das Feld Pr\xfcfvermerk (Z139) aus, bevor Sie den Vorgang als mitgezeichnet markieren")}btnPassForSigningAction(){this.mapFormToContext();const n=(0,h.last)(this.notes);if(null!=n.note&&""!=n.note)if(this.isActivityInStateForPassing()){const s=this.clerks.find(c=>c.id==this.selectedNextSigner)??{};null!=s.id&&this.passReviewNote(s)}else(0,N.showErrorMsg)(this.messageService,this.changeDetector,"Beim Weiterreichen ist ein Problem aufgetreten (Vorgang ist nicht im richtigen Status)");else(0,N.showErrorMsg)(this.messageService,this.changeDetector,"Bitte f\xfcllen Sie das Feld Pr\xfcfvermerk (Z139) aus bevor Sie den Vorgang zur Mitzeichnung weiterreichen")}passReviewNote(n){this.operation.operationBase.noteList=this.mergeNotesToCompleteNotesList(),this.activity.operation=this.operation;const c=this.createActivityHistoryEvent(n);this.subscriptions.push(this.boWriteActivityNotesService.saveActivityAndNotes(this.activity).subscribe(()=>{this.subscriptions.push(this.boActivityDelegateService.passReviewNotes(c).subscribe(()=>{this.messageService.clear(),this.vsfForm.markAsPristine(),this.overlay.hide(),this.messageService.success("Pr\xfcfvermerk weitergereicht"),this.reloadDialog()},l=>{console.error(l),(0,N.showErrorMsg)(this.messageService,this.changeDetector,"Fehler beim Speichern des Pr\xfcfvermerks",l)}))},l=>{console.error(l),(0,N.showErrorMsg)(this.messageService,this.changeDetector,"Fehler beim Speichern des Pr\xfcfvermerks",l)}))}completeReviewNotes(){this.messageService.clear(),console.log("Closing the APV"),this.canFinishPV&&this.subscriptions.push(this.boWriteActivityNotesService.finishAeReviewNotes(this.activity).subscribe(()=>{this.messageService.clear(),this.messageService.success("Pr\xfcfvermerk abgeschlossen"),this.reloadDialog()},n=>{console.error(n),(0,N.showErrorMsg)(this.messageService,this.changeDetector,"Fehler beim Speichern des Pr\xfcfvermerks",n)}))}lnkDeleteFileAction(n,s,c){const l=this.operation.operationBase?.noteList?.find(b=>""+b.id===c);if(null==l)return;const r=l?.filesList??[];r.length>=s&&(r.splice(s,1),l.filesList=[...r])}get Math(){return Math}get last(){return h.last}resetReviewNotes(){this.subscriptions.push(this.boWriteActivityNotesService.cancelReviewNotes(this.activity).subscribe(()=>{this.messageService.clear(),this.messageService.success("Pr\xfcfvermerk abgebrochen"),this.reloadDialog()},n=>{console.error(n),(0,N.showErrorMsg)(this.messageService,this.changeDetector,"Fehler beim Speichern des Pr\xfcfvermerks",n)}))}releaseFundsRequest(){this.subscriptions.push(this.boFundsRequestService.releaseFundsRequest(this.activity).subscribe(()=>{this.messageService.clear(),this.messageService.success(this.appMsgService.dlg_expenditure_declaration_review_notes_release_funds_request),this.reloadDialog()},n=>{console.error(n),(0,N.showErrorMsg)(this.messageService,this.changeDetector,this.appMsgService.dlg_expenditure_declaration_review_notes_release_funds_request_error,n)}
1))}declineFundsRequest(){console.log("Mittelanforderung ablehnen"),this.subscriptions.push(this.boFundsRequestService.declineFundsRequest(this.activity).subscribe(()=>{this.messageService.clear(),this.messageService.success(this.appMsgService.dlg_expenditure_declaration_review_notes_decline_funds_request),this.reloadDialog()},n=>{console.error(n),(0,N.showErrorMsg)(this.messageService,this.changeDetector,this.appMsgService.dlg_expenditure_declaration_review_notes_decline_funds_request_error,n)}))}saveNotes(n=!1,s=""){this.operation.operationBase.noteList=this.mergeNotesToCompleteNotesList(),this.activity.operation=this.operation,this.subscriptions.push(this.boWriteActivityNotesService.saveActivityAndNotes(this.activity).subscribe(()=>{this.vsfForm.markAsPristine(),this.untouchForm(),""!==s&&(this.messageService.clear(),this.messageService.success(s)),n&&(this.initByUrlParams(this.activity.id,this.parentDlg),this.reloadDialog())},l=>{console.error(l),(0,N.showErrorMsg)(this.messageService,this.changeDetector,"Fehler beim Speichern des Pr\xfcfvermerks",l)}))}mergeNotesToCompleteNotesList(){let n=this.operation.operationBase.noteList;return null!=n&&((0,h.remove)(n,s=>s.ktNoteTypeBase?.baseId===this.getNoteTypeBaseIdByActivityType()&&!0!==s.historized),n=[...n,...this.notes]),n}getNumberOfSignedNotes(){let n=0;const s=[];for(let c of this.notes)c.z146HasSigned&&!c.historized&&c.user?.id&&!s.includes(c.user?.id)&&(s.push(0|c.user?.id),n++);return n}hasCurrentUserSigned(){for(let n of this.notes)if(n.z146HasSigned&&!n.historized&&n.user?.id==this.actualUserId)return!0;return!1}isActivityInExamination(){return 26===this.activity.ktActivityStatusBase?.baseId}isActivityInStateForPassing(){return this.isActivityInExamination()}getNoteTypeBaseIdByActivityType(){return this.isAe?7:this.isMa?8:-1}hideDeleteColumn(){const n=this.notes;
1null!=n&&[...Array(n.length)].forEach((s,c)=>{this.vsfForm.controls.notesIteration.controls[c].controls.fldReviewNote.controls.tblFiles.changeState(r=>{r.columns=n[c].user.id!==this.actualUserId||n[c].finish?["nameColumn"]:["nameColumn","deleteColumn"]})})}createActivityHistoryEvent(n){let s=new Date;return s=new Date(s.getTime()-6e4*s.getTimezoneOffset()),{id:this.uidService.uidNegNumber,fkUserFromUser:{id:this.userService.getUserId()},fkUserToUser:n,fkUserTrigger:{id:this.userService.getUserId()},ktEventHistoryBase:{active:!0,key:"COSIGNATURE",baseId:16},statusChangeDate:s.toJSON(),activity:{id:this.activity.id,z172StatusLight:!1}}}reloadDialog(){this.untouchForm(),this.reloadByUrl({activityId:this.activityId,parentDlg:this.parentDlg})}isCurrentEditor(){return this.activity.user?.id===this.userService.getUserId()}hasRight(n){return this.userService.getUserRights()?.includes(n)??!1}};let j=I;I.\u0275fac=function(s){return new(s||I)(e.Y36(e.zs3),e.Y36(re.Cx),e.Y36(le.K),e.Y36(ce.S),e.Y36(ue.p),e.Y36(pe.I),e.Y36(de.e),e.Y36(fe._),e.Y36(ve.F),e.Y36(ee.O),e.Y36(ge.H))},I.\u0275cmp=e.Xpm({type:I,selectors:[["ng-component"]],standalone:!0,features:[e.qOj,e.jDz],decls:86,vars:101,consts:[["id","formDlgExpenditureDeclarationReviewNote","action","javascript:void(0);",3,"formGroup"],["key","finishPV","icon","pi pi-info-circle",3,"closable","closeOnEscape","header","message","acceptLabel","rejectLabel"],["key","maReleasePV","icon","pi pi-info-circle",3,"closable","closeOnEscape","header","message","acceptLabel","rejectLabel"],["key","maDeclinePV","icon","pi pi-info-circle",3,"closable","closeOnEscape","header","message","acceptLabel","rejectLabel"],[3,"level1","level2","level3","level4"],["vsfContentTabs",""],[1,"gridrow"],[1,"gridcell",2,"flex","100 100 0px"],[4,"ngIf"],["formGroupName","sdlgSDlgActivityHeaderAeVnZn",3,"activity","hasId","isAE","isExternal","isSae","opName","refNr"],["sdlgSDlgActivityHeaderAeVnZn",""],["class","area",4,"vsfConfigService","vsfConfigServiceActivityType","vsfConfigServiceEditable","vsfConfigServiceVisible","vsfConfigServiceFieldsOfAction","vsfConfigServiceValidateMandatoryFields"],["vsfButtonBar",""],[3,"vsfDismissable","vsfShowIconClose"],["opOverlayPanel",""],[1,"form_box","gridrow"],[1,"gridcell",2,"flex","40 40 0px"],[3,"for","id"],["lblLabel3",""],[1,"gridcell",2,"flex","60 60 0px"],["formControlName","cmbPossibleSigners",1,"",3,"additionalAttributes","vsfSelectItems"],["cmbPossibleSigners",""],["vsfStyleClass","button default","vsfType","button",3,"vsfLabel","vsfClick"],["btnPassForSigning",""],["vsfStyleClass","button","vsfType","button",3,"vsfLabel","vsfClick"],["btnCancelPassing",""],[1,"ulNoStyle"],["class","liNoStyle",4,"ngIf"],[1,"liNoStyle"],["vsfStyleClass","tab_button active","vsfType","button",3,"vsfLabel","vsfClick"],["btnTabReviewNotes",""],["vsfStyleClass","tab_button","vsfType","button",3,"vsfLabel","vsfClick",4,"ngIf"],["vsfStyleClass","tab_button","vsfType","button",3,"vsfLabel","vsfClick"],["btnTabAE",""],["btnTabAE2",""],["btnTabJrlAE",""],["btnTabDbAE",""],["btnTabMA",""],["btnTabProcessNotes",""],["btnTabDocumentsCheck",""],["btnLnkReviewNoteDissent2",""],[3,"id"],["lblTitleAe",""],[1,"area"],["formGroupName","fldFNotesArchived","vsfName","fldFNotesArchived",3,"vsfLegend","vsfOpen","vsfToggable",4,"ngIf"],["formGroupName","fldFNotesArchived","vsfName","fldFNotesArchived",3,"vsfLegend","vsfOpen","vsfToggable"],["fldFNotesArchived",""],["formArrayName","notesIterationArchived","vsfName","notesIterationArchived",3,"vsfIterationTemplate"],["notesIterationArchived",""],["notesIterationArchivedTemplate",""],[3,"formGroupName","vsfKey"],["formGroupName","fldFieldsetArchived","vsfName","fldFieldsetArchived",3,"vsfLegend","vsfOpen","vsfToggable"],["fldFieldsetArchived",""],[1,"gridcell",2,"flex","30 30 0px"],[1,"field_num",3,"id"],["lblLabel53Archived",""],["lblLabel7Archived",""],[1,"gridcell",2,"flex","70 70 0px"],["formControlName","chkCheckboxArchived",3,"vsfAriaLabel","vsfDisabled","vsfHasTriState","change"],["chkCheckboxArchived",""],["lblLabel5Archived",""],["lblLabel4Archived",""],["formControlName","txtTextfield2Archived",1,"txt_xlarge","pflichtfeld",3,"vsfAriaLabel","vsfDisabled"],["txtTextfield2Archived",""],["formGroupName","tblTableNoteFilesArchived","vsfName","tblTableNoteFilesArchived",3,"vsfArrayTable","vsfEmptyMessage","vsfKeyGenerator","vsfReorderableColumns","vsfResizableColumns","vsfResponsive"],["tblTableNoteFilesArchived",""],["attribute","nameColumn","colId","0","width","75%",3,"vsfFilter","vsfSort","label"],["vsfTableColumnLabel",""],["vsfTableColumnFilter",""],["vsfTableColumnRow",""],["lblLabel32Archived",""],["formGroupName","filter"],["formControlName","txtFilterTblTableNoteFilesArchivedColumn0",3,"vsfAriaLabel"],["txtFilterTblTableNoteFilesArchivedColumn0",""],[3,"vsfLabel","vsfClick"],["lnkDownloadFileArchived",""],["formArrayName","notesIteration","vsfName","notesIteration",3,"vsfIterationTemplate"],["notesIteration",""],["notesIterationTemplate",""],["formGroupName","fldReviewNote","vsfName","fldReviewNote",3,"vsfOpen","vsfToggable"],["fldReviewNote",""],[1,"p_fieldset_custom_legend_content"],[1,"h2HeaderFieldset"],["disitemNoteHeader",""],["class","gridrow",4,"zeusFormConfig"],["formGroupName","tblFiles","vsfName","tblFiles",3,"vsfArrayTable","vsfEmptyMessage","vsfKeyGenerator","vsfReorderableColumns","vsfResizableColumns","vsfResponsive"],["tblFiles",""],["attribute","deleteColumn","colId","1","width","25%",3,"label"],["lblLabel554",""],["lblLabel",""],["formControlName","chkHasSinged",3,"vsfAriaLabel","vsfDisabled","vsfHasTriState"],["chkHasSinged",""],["lblLabel54",""],["lblLabel432",""],["formControlName","txtReviewNote",1,"txt_xlarge","pflichtfeld",3,"vsfAriaLabel","vsfDisabled","vsfMaxCharForRemainingDisplay"],["txtReviewNote",""],["formGroupName","ctrlGridRow1","vsfStyleClass"," gridrow ",4,"ngIf"],["formGroupName","ctrlGridRow1","vsfStyleClass"," gridrow "],["ctrlGridRow1",""],["lblLabel553",""],["lblFileUploadAePv",""],["formControlName","uplUploadfield","vsfAccept","application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/pdf,application/mspowerpoint,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/msexcel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/zip",1,"pamgd_inlineBlock",3,"vsfAriaLabel","vsfBindingType","vsfMaxFileSize","vsfMultiple"],["uplUploadfield",""],["vsfStyleClass","button flat fa-upload mleft10","vsfType","button",3,"vsfLabel","vsfClick"],["btnUpload",""],["lblLabel3232",""],["formControlName","txtFilterTblFilesColumn0",3,"vsfAriaLabel"],["txtFilterTblFilesColumn0",""],["lnkFilename",""],["lblLabel523",""],["vsfStyleClass","fa fa-tras
1h center-link-in-table-cell",3,"vsfLabel","vsfClick"],["lnkDeleteFile",""],["vsfStyleClass","button default","vsfType","button",3,"vsfLabel","vsfClick",4,"ngIf"],["vsfStyleClass","button","vsfType","button",3,"vsfLabel","vsfClick",4,"ngIf"],["btnOpenPassingOverlay",""],["btnSave",""],["btnComplete",""],["btnCusoryProofed",""],["btnRelease",""],["btnDecline",""]],template:function(s,c){if(1&s){const l=e.EpF();e._uU(0,"\n"),e.TgZ(1,"form",0),e._uU(2,"\n "),e.TgZ(3,"p-confirmDialog",1),e._uU(4,"\n "),e.qZA(),e._uU(5,"\n "),e.TgZ(6,"p-confirmDialog",2),e.ALo(7,"msgPipe"),e.ALo(8,"msgPipe"),e.ALo(9,"msgPipe"),e._uU(10,"\n "),e.qZA(),e._uU(11,"\n "),e.TgZ(12,"p-confirmDialog",3),e.ALo(13,"msgPipe"),e.ALo(14,"msgPipe"),e.ALo(15,"msgPipe"),e._uU(16,"\n "),e.qZA(),e._uU(17,"\n "),e.TgZ(18,"vsfBreadCrumb",4),e.ALo(19,"async"),e.ALo(20,"async"),e.ALo(21,"async"),e.ALo(22,"async"),e.ALo(23,"async"),e._uU(24,"\n "),e.qZA(),e._uU(25,"\n "),e.YNc(26,Se,26,9,"ng-template",5),e._uU(27,"\n "),e.TgZ(28,"div",6),e._uU(29,"\n "),e.TgZ(30,"div",7),e._uU(31,"\n "),e.YNc(32,Be,4,2,"h1",8),e._uU(33,"\n "),e.qZA(),e._uU(34,"\n "),e.qZA(),e._uU(35,"\n "),e.TgZ(36,"sdlg-activity-header-ae-vn-zn_overwrite",9,10),e._uU(38,"\n "),e.qZA(),e._uU(39,"\n "),e.YNc(40,qe,10,1,"div",11),e._uU(41,"\n "),e.YNc(42,tt,9,1,"div",11),e._uU(43,"\n "),e.YNc(44,lt,34,6,"ng-template",12),e._uU(45,"\n "),e.TgZ(46,"vsf-overlay",13,14),e._uU(48,"\n "),e.TgZ(49,"div",15),e._uU(50,"\n "),e.TgZ(51,"div",7),e._uU(52,"\n "),e.TgZ(53,"div",6),e._uU(54,"\n "),e.TgZ(55,"div",16),e._uU(56,"\n "),e.TgZ(57,"label",17,18),e._uU(59),e.qZA(),e._uU(60,"\n "),e.qZA(),e._uU(61,"\n "),e.TgZ(62,"div",19),e._uU(63,"\n "),e.TgZ(64,"vsf-combo",20,21),e._uU(66,"\n "),e.qZA(),e._uU(67,"\n "),e.qZA(),e._uU(68,"\n "),e.qZA(),e._uU(69,"\n "),e.qZA(),e._uU(70,"\n "),e.qZA(),e._uU(71,"\n "),e.TgZ(72,"div",6),e._uU(73,"\n "),e.TgZ(74,"div",7),e._uU(75,"\n "),e.TgZ(76,"vsf-button",22,23),e.NdJ("vsfClick",function(b){return c.executeCallbackAndCheckBlockUi(b,c.btnPassForSigningAction)}),e.qZA(),e._uU(78,"\n "),e.TgZ(79,"vsf-button",24,25),e.NdJ("vsfClick",function(b){e.CHM(l);const U=e.MAs(47);return e.KtG(c.executeCallbackAndCheckBlockUi(b,c.btnCancelPassingAction,b,U))}),e.qZA(),e._uU(81,"\n "),e.qZA(),e._uU(82,"\n "),e.qZA(),e._uU(83,"\n "),e.qZA(),e._uU(84,"\n"),e.qZA(),e._uU(85,"\n")}if(2&s){const l=e.MAs(65);e.xp6(1),e.Q6J("formGroup",c.vsfForm),e.xp6(2),e.Q6J("closable",!1)("closeOnEscape",!1)("header","Information!")("message","Soll das Mitzeichnungsverfahren abgeschlossen werden? Es kann anschlie\xdfend nicht wieder aufgenommen werden.")("acceptLabel","Abschlie\xdfen")("rejectLabel","Abbrechen"),e.xp6(3),e.Q6J("closable",!1)("closeOnEscape",!1)("header","Information!")("message",e.xi3(7,52,e.DdM(80,ct),e.DdM(81,J)))("acceptLabel",e.xi3(8,55,e.DdM(82,ne),e.DdM(83,J)))("rejectLabel",e.xi3(9,58,e.DdM(84,se),e.DdM(85,J))),e.xp6(6),e.Q6J("closable",!1)("closeOnEscape",!1)("header","Information!")("message",e.xi3(13,61,e.DdM(86,ut),e.DdM(87,J)))("acceptLabel",e.xi3(14,64,e.DdM(88,ne),e.DdM(89,J)))("rejectLabel",e.xi3(15,67,e.DdM(90,se),e.DdM(91,J))),e.xp6(6),e.Q6J("level1",e.WLB(92,ae,e.lcZ(19,70,c.breadcrumbHelper.level1Text$),e.lcZ(20,72,c.breadcrumbHelper.level1Link$)))("level2","vorgang"===c.parentDlg?void 0:e.WLB(95,ae,e.lcZ(21,74,c.breadcrumbHelper.level2Text$),e.lcZ(22,76,c.breadcrumbHelper.level2Link$)))("level3",e.VKq(98,pt,e.lcZ(23,78,c.breadcrumbHelper.level3Text$)))("level4","Pr\xfcfvermerk"),e.xp6(14),e.Q6J("ngIf",c.isAe),e.xp6(4),e.Q6J("activity",c.activity)("hasId",!0)("isAE",null)("isExternal",null)("isSae",null)("opName",null==c.activity||null==c.activity.activity||null==c.activity.activity.operation?null:c.activity.activity.operation.d37Shortname)("refNr",null==c.activity||null==c.activity.activity||null==c.activity.activity.operation?null:c.activity.activity.operation.d34ReferenceNumber),e.xp6(4),e.Q6J("vsfConfigService",null==c.operation||null==c.operation.programme?null:c.operation.programme.id)("vsfConfigServiceActivityType",null==c.activity||null==c.activity.ktActivityTypeBase?null:c.activity.ktActivityTypeBase.baseId)("vsfConfigServiceE
1ditable",!0)("vsfConfigServiceVisible",null!=c.operation)("vsfConfigServiceFieldsOfAction",c.fieldsOfActionForConfig)("vsfConfigServiceValidateMandatoryFields",c.validateMandatoryFields),e.xp6(2),e.Q6J("vsfConfigService",null==c.activity||null==c.activity.operation||null==c.activity.operation.programme?null:c.activity.operation.programme.id)("vsfConfigServiceActivityType",4)("vsfConfigServiceEditable",!0)("vsfConfigServiceVisible",null!=c.activity)("vsfConfigServiceFieldsOfAction",c.fieldsOfActionForConfig)("vsfConfigServiceValidateMandatoryFields",c.validateMandatoryFields),e.xp6(4),e.Q6J("vsfDismissable",!0)("vsfShowIconClose",!1),e.xp6(11),e.Q6J("for",l.vsfId)("id",c.vsfForm.pathName+".lblLabel3"),e.xp6(2),e.Oqu("Nutzer"),e.xp6(5),e.Q6J("additionalAttributes",e.DdM(100,dt))("vsfSelectItems",c.possibleSignersList),e.xp6(12),e.Q6J("vsfLabel","Weiterreichen"),e.xp6(3),e.Q6J("vsfLabel","Abbrechen")}},dependencies:[m.dN,V.r,W.b,P.q,E.D,E.Q,m.wj,B.a,S.e,G.t,_.m,a.i,m.QK,p.N,m.Yw,O.y,z.B,k.B,m._I,q.m,te.O5,R._Y,R.JJ,R.JL,R.sg,R.u,R.x0,R.CE,he.N,me.R,_e.p,ie.Kk,ie.dB,Ae.o,ye.z,be.H,te.Ov,m.kl,H.U$,w.Z8,w.Xd,w.wE,w.J$,w.Tj,H.ac,x.R,f.X],encapsulation:2})},81813:(M,C,u)=>{u.d(C,{H:()=>A});var g=u(61135),h=u(94650);const T=class{constructor(){this.level1Text$=new g.X(""),this.level1Link$=new g.X(""),this.level2Text$=new g.X(""),this.level2Link$=new g.X(""),this.level3Text$=new g.X(""),this.level3Link$=new g.X(""),this.level4Text$=new g.X("")}resetBreadCrumbs(){this.level1Text$.next(""),this.level1Link$.next(""),this.level2Text$.next(""),this.level2Link$.next(""),this.level3Text$.next(""),this.level3Link$.next(""),this.level4Text$.next("")}initBreadCrumbs(v,L,i){if("vorgang"===L)this.level1Text$.next("Vorg\xe4nge"),this.level1Link$.next("/process/dlgworkbasketex"),this.level2Text$.next("Vorgang"),this.level2Link$.next("/process/dlgworkbasketex");else{if(!v?.operation)return;const t=v.operation.id;if(22==i)return this.level1Text$.next("Technische Hilfe"),this.level1Link$.next(null),this.level2Text$.next("Vorhaben"),this.level2Link$.next("/th/dlgoperationoverviewth"),this.level3Text$.next(v.operation?.d36Name),this.level3Link$.next(`/th/dlgoperationth?operationid=${t}`),void this.level4Text$.next("TH-Ausgabenerkl\xe4rung");this.level1Text$.next("Vorhaben"),this.level1Link$.next("/operation/dlgoperationoverview"),this.level2Text$.next(v.operation?.d36Name),this.level2Link$.next(`/operation/dlgoperationedit?operationid=${t}`)}switch(this.level3Link$.next(null),this.level4Text$.next(null),i){case 7:this.level3Text$.next("Ausgabenerkl\xe4rung");break;case 8:this.level3Text$.next("JRL-Ausgabenerkl\xe4rung");break;case 9:this.level3Text$.next("DB-Ausgabenerkl\xe4rung");break;case 10:this.level3Text$.next("Zwischennachweis");break;case 11:this.level3Text$.next("Verwendungsnachweis");break;case 12:this.level3Text$.next("Mittelanforderung");break;case 19:this.level3Text$.next("Schlussbescheid");break;case 20:this.level3Text$.next("Schluss-Ausgabenerkl\xe4rung");break;default:this.level3Text$.next(null)}}};let A=T;T.\u0275fac=function(L){return new(L||T)},T.\u0275prov=h.Yz7({token:T,factory:T.\u0275fac,providedIn:"root"})},8614:(M,C,u)=>{u.d(C,{_:()=>D});var g=u(82649),h=u(54004),A=u(94650),T=u(80529);const v=class extends g.nb{constructor(i){super("/fundsrequest",t=>`${t.id}`,i)}create(i){return super.create(i)}findById(i){return super.findById(i)}update(i){return super.update(i)}delete(i){return super.delete(i)}releaseFundsRequest(i){return this.http.post(this.path+"/releaseFundsRequest",this.toDto(i),this.httpOptions).pipe((0,h.U)(t=>this.fromDto(t)))}declineFundsRequest(i){return this.http.post(this.path+"/declineFundsRequest",this.toDto(i),this.httpOptions).pipe((0,h.U)(t=>this.fromDto(t)))}handInFundsRequestWithEid(i,t){return this.http.post(this.path+"/handInFundsRequestWithEid",this.toDto(i),{...this.httpOptions,params:{signatureType:t}}).pipe((0,h.U)(d=>this.fromDto(d)))}handInFundsRequestWithoutEid(i,t){return this.http.post(this.path+"/handInFundsRequestWithoutEid",this.toDto(i),{...this.httpOptions,params:{signatureType:t}}).pipe((0,h.U)(d=>this.fromDto(d)))}handInFundsRequestWithTan(i,t,d){return this.http.post(this.path+"/handInFundsRequestWithTan",this.toDto(i),{...this.httpOptions,params:{signatureType:t,token:d}}).pipe((0,h.U)(O=>this.fromDto(O)))}
1checkFederalFunds(i){let t;if("number"==typeof i)t=this.path+"/"+i.toString()+"/checkFederalFunds";else{if(null==i.id)throw new Error("missing id");t=this.path+"/"+i.id+"/checkFederalFunds"}return this.http.post(t,null,{...this.httpOptions,responseType:"text"}).pipe((0,h.U)(d=>"true"==d))}clearContainer(i){delete i["#accountinfo"],delete i["#fieldsofaction"],delete i["#user"],delete i["#ktactivitystatusbase"],delete i["#ktactivitytypebase"],delete i["#operation"],delete i["#operationbase"],delete i["#operationorganisation"],delete i["#activity"],delete i["#programme"],delete i["#programmebase"],delete i["#programmedeclaration"]}mapToDto(i,t){return this.toActivityDto(i,t),t}mapFromDto(i,t){return this.toActivityEntity(i,t),t}toActivityDto(i,t){t.operation&&this.toOperationDto(i,t.operation),t.activity&&(this.toParentDto(i,t.activity),this.mapAggregation(i,"#activity",t,"activity",["id"])),t.user&&this.mapAggregation(i,"#user",t,"user",["id"]),t.fkActivityClerkUser&&this.mapAggregation(i,"#user",t,"fkActivityClerkUser",["id"]),t.fkActivityOwnerUser&&this.mapAggregation(i,"#user",t,"fkActivityOwnerUser",["id"]),t.ktActivityStatusBase&&this.mapAggregation(i,"#ktactivitystatusbase",t,"ktActivityStatusBase",["baseId"]),t.ktActivityTypeBase&&this.mapAggregation(i,"#ktactivitytypebase",t,"ktActivityTypeBase",["baseId"])}toActivityEntity(i,t){t.operation&&this.toOperationEntity(i,t.operation),t.activity&&(this.unmapAggregation(i,"#activity",t,"activity",["id"]),this.toParentEntity(i,t.activity)),t.user&&this.unmapAggregation(i,"#user",t,"user",["id"]),t.fkActivityClerkUser&&this.unmapAggregation(i,"#user",t,"fkActivityClerkUser",["id"]),t.fkActivityOwnerUser&&this.unmapAggregation(i,"#user",t,"fkActivityOwnerUser",["id"]),t.ktActivityStatusBase&&this.unmapAggregation(i,"#ktactivitystatusbase",t,"ktActivityStatusBase",["baseId"]),t.ktActivityTypeBase&&this.unmapAggregation(i,"#ktactivitytypebase",t,"ktActivityTypeBase",["baseId"])}toNoteListDto(i,t){t.user&&this.mapAggregation(i,"#user",t,"user",["id"])}toNoteListEntity(i,t){t.user&&this.unmapAggregation(i,"#user",t,"user",["id"])}toOperationDto(i,t){if(t.operationBase&&(this.toOperationBase2Dto(i,t.operationBase),this.mapAggregation(i,"#operationbase",t,"operationBase",["id"])),t.programme&&(this.toProgramme2Dto(i,t.programme),this.mapAggregation(i,"#programme",t,"programme",["id"])),t.operationOrganisationOperationAssignmentList)for(const d of t.operationOrganisationOperationAssignmentList)this.toOperationOrganisationOperationAssignmentListDto(i,d);if(t.operationDeclarationAgreementList)for(const d of t.operationDeclarationAgreementList)this.toOperationDeclarationAgreementListDto(i,d)}toOperationEntity(i,t){if(t.operationBase&&(this.unmapAggregation(i,"#operationbase",t,"operationBase",["id"]),this.toOperationBase2Entity(i,t.operationBase)),t.programme&&(this.unmapAggregation(i,"#programme",t,"programme",["id"]),this.toProgramme2Entity(i,t.programme)),t.operationOrganisationOperationAssignmentList)for(const d of t.operationOrganisationOperationAssignmentList)this.toOperationOrganisationOperationAssignmentListEntity(i,d);if(t.operationDeclarationAgreementList)for(const d of t.operationDeclarationAgreementList)this.toOperationDeclarationAgreementListEntity(i,d)}toOperation3Dto(i,t){if(t.programme&&this.mapAggregation(i,"#programme",t,"programme",["id"]),t.operationBase&&this.mapAggregation(i,"#operationbase",t,"operationBase",["id"]),t.accountinfo&&this.mapAggregation(i,"#accountinfo",t,"accountinfo",["id"]),t.operationFieldsOfActionAssignmentList)for(const d of t.operationFieldsOfActionAssignmentList)this.toOperationFieldsOfActionAssignmentListDto(i,d)}toOperation3Entity(i,t){if(t.programme&&this.unmapAggregation(i,"#programme",t,"programme",["id"]),t.operationBase&&this.unmapAggregation(i,"#operationbase",t,"operationBase",["id"]),t.accountinfo&&this.unmapAggregation(i,"#accountinfo",t,"accountinfo",["id"]),t.operationFieldsOfActionAssignmentList)for(const d of t.operationFieldsOfActionAssignmentList)this.toOperationFieldsOfActionAssignmentListEntity(i,d)}toOperationBase2Dto(i,t){if(t.noteList)for(const d of t.noteList)this.toNoteListDto(i,d)}toOperationBase2Entity(i,t){if(t.noteList)for(const d of t.noteList)this.toNoteListEntity(i,d)}toOperationDeclarationAgreementListDto(i,t){t.programmeDeclaration&&this.mapAggregation(i,"#programmedeclaration",t,"programmeDeclaration",["id"])}toOperationDeclarationAgreementListEntity(i,t){t.programmeDeclaration&&this.unmapAggregation(i,"#programmedeclaration",t,"programmeDeclaration",["id"])}toOperationFieldsOfActionAssignmentListDto(i,t){t.fieldsOfAction&&this.mapAggregation(i,"#fieldsofaction",t,"fieldsOfAction",["id"])}toOperationFieldsOfActionAssignmentListEntity(i,t){t.fieldsOfAction&&this.unmapAggregation(i,"#fieldsofaction",t,"fieldsOfAction",["id"])}toOperationOrganisationOperationAssignmentListDto(i,t){t.operationOrganisation&&this.mapAggregation(i,"#operationorganisation",t,"operationOrganisation",["id"]),t.operation&&this.mapAggregation(i,"#operation",t,"operation",["id"])}toOperationOrganisationOperationAssignmentListEntity(i,t){t.operationOrganisation&&this.unmapAggregation(i,"#operationorganisation",t,"operationOrganisation",["id"]),t.operation&&this.unmapAggregation(i,"#operation",t,"operation",["id"])}toParentDto(i,t){if(t.operation&&this.toOperation3Dto(i,t.operation),t.selectedRepresentativeList)for(const d of t.selectedRepresentativeList)this.toSelectedRepresentativeListDto(i,d)}toParentEntity(i,t){if(t.operation&&this.toOperation3Entity(i,t.operation),t.selectedRepresentativeList)for(const d of t.selectedRepresentativeList)this.toSelectedRepresentativeListEntity(i,d)}toProgramme2Dto(i,t){t.programmeBase&&this.mapAggregation(i,"#programmebase",t,"programmeBase",["id"])}toProgramme2Entity(i,t){t.programmeBase&&this.unmapAggregation(i,"#programmebase",t,"programmeBase",["id"])}toSelectedRepresentativeListDto(i,t){t.user&&this.mapAggregation(i,"#user",t,"user",["id"])}toSelectedRepresentativeListEntity(i,t){t.user&&this.unmapAggregation(i,"#user",t,"user",["id"])}};let D=v;v.\u0275fac=function(t){return new(t||v)(A.LFG(T.eN))},v.\u0275prov=A.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"})},29784:(M,C,u)=>{u.d(C,{e:()=>D});var g=u(82649),h=u(54004),A=u(94650),T=u(80529);const v=class extends g.nb{constructor(i){super("/storeexpendituredeclaration",t=>`${t.id}`,i)}delete(i){return super.delete(i)}fixationExpenditureDeclaration(i){return this.http.post(this.path+"/fixationExpenditureDeclaration",this.toDto(i),this.httpOptions).pipe((0,h.U)(t=>this.fromDto(t)))}handInAeWithEid(i){return this.http.post(this.path+"/handInAeWithEid",this.toDto(i),this.httpOptions).pipe((0,h.U)(t=>this.fromDto(t)))}handInAeWithoutEid(i){return this.http.post(this.path+"/handInAeWithoutEid",this.toDto(i),this.httpOptions).pipe((0,h.U)(t=>this.fromDto(t)))}storeAeIncomeData(i){return this.http.post(this.path+"/storeAeIncomeData",this.toDto(i),this.httpOptions).pipe((0,h.U)(t=>this.fromDto(t)))}
1storeCusoryExamination(i){return this.http.post(this.path+"/storeCusoryExamination",this.toDto(i),this.httpOptions).pipe((0,h.U)(t=>this.fromDto(t)))}finishCusoryExamination(i){return this.http.post(this.path+"/finishCusoryExamination",this.toDto(i),this.httpOptions).pipe((0,h.U)(t=>this.fromDto(t)))}deleteAeOrZn(i){return this.http.post(this.path+"/deleteAeOrZn",this.toDto(i),this.httpOptions)}undoFixation(i){return this.http.post(this.path+"/undoFixation",this.toDto(i),this.httpOptions).pipe((0,h.U)(t=>this.fromDto(t)))}clearContainer(i){delete i["#activity"],delete i["#filesdata"],delete i["#ktattachmenttypebase"],delete i["#user"],delete i["#operationbase"],delete i["#operationfiledata"],delete i["#programme"],delete i["#programmebase"],delete i["#programmedeclaration"],delete i["#receipt"],delete i["#operation"]}mapToDto(i,t){return this.toActivityDto(i,t),t}mapFromDto(i,t){return this.toActivityEntity(i,t),t}toActivityDto(i,t){if(t.operation&&this.toOperationDto(i,t.operation),t.expenditureDeclarationList)for(const d of t.expenditureDeclarationList)this.toExpenditureDeclarationListDto(i,d);t.activity&&(this.toParentActivityDto(i,t.activity),this.mapAggregation(i,"#activity",t,"activity",["id"]))}toActivityEntity(i,t){if(t.operation&&this.toOperationEntity(i,t.operation),t.expenditureDeclarationList)for(const d of t.expenditureDeclarationList)this.toExpenditureDeclarationListEntity(i,d);t.activity&&(this.unmapAggregation(i,"#activity",t,"activity",["id"]),this.toParentActivityEntity(i,t.activity))}toAssignedReceiptListDto(i,t){t.receipt&&this.mapAggregation(i,"#receipt",t,"receipt",["id"])}toAssignedReceiptListEntity(i,t){t.receipt&&this.unmapAggregation(i,"#receipt",t,"receipt",["id"])}toExpenditureDeclarationListDto(i,t){if(t.user&&this.mapAggregation(i,"#user",t,"user",["id"]),t.receiptsAssignementList)for(const d of t.receiptsAssignementList)this.toAssignedReceiptListDto(i,d)}toExpenditureDeclarationListEntity(i,t){if(t.user&&this.unmapAggregation(i,"#user",t,"user",["id"]),t.receiptsAssignementList)for(const d of t.receiptsAssignementList)this.toAssignedReceiptListEntity(i,d)}toFilesListDto(i,t){t.filesData&&this.mapAggregation(i,"#filesdata",t,"filesData",["id"])}toFilesListEntity(i,t){t.filesData&&this.unmapAggregation(i,"#filesdata",t,"filesData",["id"])}toNoteListDto(i,t){if(t.filesList)for(const d of t.filesList)this.toFilesListDto(i,d);t.user&&this.mapAggregation(i,"#user",t,"user",["id"])}toNoteListEntity(i,t){if(t.filesList)for(const d of t.filesList)this.toFilesListEntity(i,d);t.user&&this.unmapAggregation(i,"#user",t,"user",["id"])}toOperationDto(i,t){if(t.operationBase&&(this.toOperationBaseDto(i,t.operationBase),this.mapAggregation(i,"#operationbase",t,"operationBase",["id"])),t.operationDeclarationAgreementList)for(const d of t.operationDeclarationAgreementList)this.toOperationDeclarationAgreementListDto(i,d)}toOperationEntity(i,t){if(t.operationBase&&(this.unmapAggregation(i,"#operationbase",t,"operationBase",["id"]),this.toOperationBaseEntity(i,t.operationBase)),t.operationDeclarationAgreementList)for(const d of t.operationDeclarationAgreementList)this.toOperationDeclarationAgreementListEntity(i,d)}toOperation2Dto(i,t){t.operationBase&&this.mapAggregation(i,"#operationbase",t,"operationBase",["id"]),t.programme&&(this.toProgrammeDto(i,t.programme),this.mapAggregation(i,"#programme",t,"programme",["id"])),t.activityList&&this.mapAggregationList(i,"#activity",t,"activityList",["id"])}toOperation2Entity(i,t){t.operationBase&&this.unmapAggregation(i,"#operationbase",t,"operationBase",["id"]),t.programme&&(this.unmapAggregation(i,"#programme",t,"programme",["id"]),this.toProgrammeEntity(i,t.programme)),t.activityList&&this.unmapAggregationList(i,"#activity",t,"activityList",["id"])}toOperationBaseDto(i,t){if(t.noteList)for(const d of t.noteList)this.toNoteListDto(i,d);if(t.operationFileList)for(const d of t.operationFileList)this.toOperationFileListDto(i,d)}toOperationBaseEntity(i,t){if(t.noteList)for(const d of t.noteList)this.toNoteListEntity(i,d);if(t.operationFileList)for(const d of t.operationFileList)this.toOperationFileListEntity(i,d)}toOperationDeclarationAgreementListDto(i,t){t.programmeDeclaration&&this.mapAggregation(i,"#programmedeclaration",t,"programmeDeclaration",["id"])}toOperationDeclarationAgreementListEntity(i,t){t.programmeDeclaration&&this.unmapAggregation(i,"#programmedeclaration",t,"programmeDeclaration",["id"])}toOperationFileListDto(i,t){t.operationFileData&&this.mapAggregation(i,"#operationfiledata",t,"operationFileData",["id"]),t.ktAttachmentTypeBase&&this.mapAggregation(i,"#ktattachmenttypebase",t,"ktAttachmentTypeBase",["baseId"])}toOperationFileListEntity(i,t){t.operationFileData&&this.unmapAggregation(i,"#operationfiledata",t,"operationFileData",["id"]),t.ktAttachmentTypeBase&&this.unmapAggregation(i,"#ktattachmenttypebase",t,"ktAttachmentTypeBase",["baseId"])}toProgrammeDto(i,t){t.programmeBase&&this.mapAggregation(i,"#programmebase",t,"programmeBase",["id"])}toProgrammeEntity(i,t){t.programmeBase&&this.unmapAggregation(i,"#programmebase",t,"programmeBase",["id"])}toParentActivityDto(i,t){t.operation&&this.toOperation2Dto(i,t.operation)}toParentActivityEntity(i,t){t.operation&&this.toOperation2Entity(i,t.operation)}};let D=v;v.\u0275fac=function(t){return new(t||v)(A.LFG(T.eN))},v.\u0275prov=A.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"})},92820:(M,C,u)=>{u.d(C,{S:()=>D});var g=u(82649),h=u(54004),A=u(94650),T=u(80529);const v=class extends g.nb{constructor(i){super("/writeactivitynotes",t=>`${t.id}`,i)}search(i,t,d,O){return super.search(i,t,d,O)}findIds(i){return super.findIds(i).pipe((0,h.U)(t=>t))}count(i){return super.count(i)}findById(i){return super.findById(i)}update(i){return super.update(i)}delete(i){return super.delete(i)}beginAeReviewNotes(i){return this.http.post(this.path+"/beginAeReviewNotes",this.toDto(i),this.httpOptions).pipe((0,h.U)(t=>this.fromDto(t)))}saveActivityAndNotes(i){return this.http.post(this.path+"/saveActivityAndNotes",this.toDto(i),this.httpOptions).pipe((0,h.U)(t=>this.fromDto(t)))}finishReviewNotes(i){return this.http.post(this.path+"/finishReviewNotes",this.toDto(i),this.httpOptions).pipe((0,h.U)(t=>this.fromDto(t)))}finishAeReviewNotes(i){return this.http.post(this.path+"/finishAeReviewNotes",this.toDto(i),this.httpOptions).pipe((0,h.U)(t=>this.fromDto(t)))}beginMaReviewNotes(i){return this.http.post(this.path+"/beginMaReviewNotes",this.toDto(i),this.httpOptions).pipe((0,h.U)(t=>this.fromDto(t)))}cancelReviewNotes(i){return this.http.post(this.path+"/cancelReviewNotes",this.toDto(i),this.httpOptions).pipe((0,h.U)(t=>this.fromDto(t)))}finishZnVnReviewNotes(i){return this.http.post(this.path+"/finishZnVnReviewNotes",this.toDto(i),this.httpOptions).pipe((0,h.U)(t=>this.fromDto(t)))}validateUniqueWidNr(i){let t;if("number"==typeof i)t=this.path+"/"+i.toString()+"/validateUniqueWidNr";else{if(null==i.id)throw new Error("missing id");t=this.path+"/"+i.id+"/validateUniqueWidNr"}return this.http.post(t,null,{...this.httpOptions,responseType:"text"})}clearContainer(i){delete i["#activity"],delete i["#user"],delete i["#filesdata"],delete i["#operationbase"],delete i["#operation"],delete i["#files"]}mapToDto(i,t){return this.toActivityDto(i,t),t}mapFromDto(i,t){return this.toActivityEntity(i,t),t}toActivityDto(i,t){if(t.operation&&this.toOperationDto(i,t.operation),t.activityHistoryList)for(const d of t.activityHistoryList)this.toActivityHistoryListDto(i,d);t.user&&this.mapAggregation(i,"#user",t,"user",["id"]),t.fkActivityClerkUser&&this.mapAggregation(i,"#user",t,"fkActivityClerkUser",["id"]),t.applicationReviewNote&&this.toApplicationReviewNoteDto(i,t.applicationReviewNote),t.activity&&this.mapAggregation(i,"#activity",t,"activity",["id"])}toActivityEntity(i,t){if(t.operation&&this.toOperationEntity(i,t.operation),t.activityHistoryList)for(const d of t.activityHistoryList)this.toActivityHistoryListEntity(i,d);t.user&&this.unmapAggregation(i,"#user",t,"user",["id"]),t.fkActivityClerkUser&&this.unmapAggregation(i,"#user",t,"fkActivityClerkUser",["id"]),t.applicationReviewNote&&this.toApplicationReviewNoteEntity(i,t.applicationReviewNote),t.activity&&this.unmapAggregation(i,"#activity",t,"activity",["id"])}toActivityHistoryListDto(i,t){t.fkUserFromUser&&this.mapAggregation(i,"#user",t,"fkUserFromUser",["id"]),t.fkUserToUser&&this.mapAggregation(i,"#user",t,"fkUserToUser",["id"]),t.fkUserTrigger&&this.mapAggregation(i,"#user",t,"fkUserTrigger",["id"])}toActivityHistoryListEntity(i,t){t.fkUserFromUser&&this.unmapAggregation(i,"#user",t,"fkUserFromUser",["id"]),t.fkUserToUser&&this.unmapAggregation(i,"#user",t,"fkUserToUser",["id"]),t.fkUserTrigger&&this.unmapAggregation(i,"#user",t,"fkUserTrigger",["id"])}toApplicationReviewNoteDto(i,t){if(t.filesList)for(const d of t.filesList)this.toFilesList2Dto(i,d);t.initiator&&this.mapAggregation(i,"#user",t,"initiator",["id"])}toApplicationReviewNoteEntity(i,t){if(t.filesList)for(const d of t.filesList)this.toFilesList2Entity(i,d);t.initiator&&this.unmapAggregation(i,"#user",t,"initiator",["id"])}toFilesListDto(i,t){t.filesData&&this.mapAggregation(i,"#filesdata",t,"filesData",["id"])}toFilesListEntity(i,t){t.filesData&&this.unmapAggregation(i,"#filesdata",t,"filesData",["id"])}toFilesList2Dto(i,t){t.filesData&&this.mapAggregation(i,"#filesdata",t,"filesData",["id"])}toFilesList2Entity(i,t){t.filesData&&this.unmapAggregation(i,"#filesdata",t,"filesData",["id"])}toNoteListDto(i,t){if(t.user&&this.mapAggregation(i,"#user",t,"user",["id"]),t.filesList)for(const d of t.filesList)this.toFilesListDto(i,d)}toNoteListEntity(i,t){if(t.user&&this.unmapAggregation(i,"#user",t,"user",["id"]),t.filesList)for(const d of t.filesList)this.toFilesListEntity(i,d)}toOperationDto(i,t){t.operationBase&&(this.toOperationBaseDto(i,t.operationBase),this.mapAggregation(i,"#operationbase",t,"operationBase",["id"]))}toOperationEntity(i,t){t.operationBase&&(this.unmapAggregation(i,"#operationbase",t,"operationBase",["id"]),this.toOperationBaseEntity(i,t.operationBase))}toOperationBaseDto(i,t){if(t.noteList)for(const d of t.noteList)this.toNoteListDto(i,d)}toOperationBaseEntity(i,t){if(t.noteList)for(const d of t.noteList)this.toNoteListEntity(i,d)}};let D=v;v.\u0275fac=function(t){return new(t||v)(A.LFG(T.eN))},v.\u0275prov=A.Yz7({token:v,factory:v.\u0275fac,providedIn:"root"})},41262:(M,C,u)=>{u.d(C,{F:()=>h});var g=u(94650);const A=class{getExtension(D){let v=D.split(".");return v[v.length-1]}isDocumentOfType(D,v){return this.getExtension(D).toLowerCase()===v.toLowerCase()}isAllowedDocument(D){switch(this.getExtension(D).toLowerCase()){case"doc":case"docx":case"pdf":case"ppt":case"pptx":case"xls":case"xlsx":case"zip":return!0;default:return!1}}};let h=A;A.\u0275fac=function(v){return new(v||A)},A.\u0275prov=g.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"})},48761:(M,C,u)=>{u.d(C,{lp:()=>z,uV:()=>G});var g=u(94650),h=u(77579),A=u(39646),T=u(4707),D=u(97272),v=u(62843),L=u(61135),i=u(69751),t=u(39841),d=u(39300),O=u(63900),k=u(54004),Y=u(75625),q=u(70262),R=u(71884),m=u(82649),w=u(80529),V=u(17489),W=u(26823);let P=(()=>{class _{constructor(a){this.http=a,this.cache={}
1,this.refreshSubject=new h.x}loadKeyTab(a){if(null==a)return(0,A.of)({});const p=this.cache[a]?.values;if(null!=p)return p;let f=new w.LE;f=f.set("type",a);const y=new T.t(1);return this.cache[a]={values:y,sortedValues:this.cache[a]?.sortedValues},(0,D.z)((0,A.of)(a),this.refreshSubject.pipe((0,d.h)(e=>e===a))).pipe((0,O.w)(e=>this.http.get(this.resolveCatalogListRestPath(e),{responseType:"json"}).pipe((0,k.U)(F=>this.convert(F)),(0,Y.X)(2),(0,q.K)(F=>(this.invalidate(a),(0,v._)(F)))))).subscribe(y),y}resolveCatalogListRestPath(a){return"/catalog/"+a+"/list"}loadKeyTabSorted(a){if(null==a)return(0,A.of)([]);const p=this.cache?.[a]?.sortedValues;if(null!=p)return p;const f=new T.t(1);let y=new w.LE;return y=y.set("type",a),this.cache[a]={values:this.cache[a]?.values,sortedValues:f},(0,D.z)((0,A.of)(a),this.refreshSubject.pipe((0,d.h)(e=>e===a))).pipe((0,O.w)(e=>this.http.get(this.resolveCatalogListRestPath(e),{responseType:"json"}).pipe((0,k.U)(F=>this.convertSorted(F)),(0,Y.X)(2),(0,q.K)(F=>(this.invalidate(a),(0,v._)(F)))))).subscribe(f),f}loadKeyTabForKey(a,p){return this.loadKeyTabSorted(a).pipe((0,k.U)(f=>this.getKeyTabForKey(p,f)))}loadKeyTabBaseObjectForKey(a,p){return this.loadKeyTabForKey(a,p).pipe((0,k.U)(f=>({baseId:f.id,key:f.key})))}getKeyTabForKey(a,p){let f=null;return p.forEach(y=>{y.key===a&&(f=y)}),f}checkKey(a,p,f){return a.key?(0,A.of)(this.keyMatches(a.key,f)):this.loadKeyTabSorted(p).pipe((0,k.U)(y=>this.checkKeySync(a,y,f)))}checkKeySync(a,p,f){if(!a.baseId)throw'parameter keytabBase must be a keytab entity, but misses property "baseId"';if(a.key)return this.keyMatches(a.key,f);let y=!1;return f instanceof Array?p.forEach(E=>{f.includes(E.key)&&E.id===a.baseId&&(y=!0)}):y=this.getKeyTabForKey(f,p).id===a.baseId,y}keyMatches(a,p){let f=!1;return f=p instanceof Array?p.includes(a):p===a,f}convert(a){const p={};for(const f of a)p[f.id]=f,p[f.id].active=!0===f.active;return p}convertSorted(a){for(const p of a)p.active=!0===p.active;return a}invalidate(a){null==a||null==this.cache[a]||(this.cache[a].values?.unsubscribe(),this.cache[a].sortedValues?.unsubscribe(),delete this.cache[a])}invalidateAll(){for(const a of(0,V.keys)(this.cache))this.invalidate(a)}refresh(a){this.refreshSubject.next(a)}refreshAll(){for(const a of(0,V.keys)(this.cache))this.refresh(a)}defineItemValueBindingResolver(a){switch(a||""){case"ktId":return p=>p.id;case"ktKey":return p=>p.key;case"ktValue":return p=>p.value;case"ktShortValue":return p=>p.shortValue;default:return p=>({baseId:p.id,key:p.key})}}defineItemLabelBindingResolver(a){switch(a||""){case"ktKey":return p=>p.key;case"ktShortValue":return p=>p.shortValue;case"ktDescr":return p=>p.description;case"ktShortValueAndValue":return p=>p.shortValue+" "+p.value;case"ktValueAndDesc":return p=>p.value+" "+p.description;default:return p=>p.value}}}return _.\u0275fac=function(a){return new(a||_)(g.LFG(w.eN))},_.\u0275prov=g.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})(),S=(()=>{class _ extends m.F{constructor(a){super(),this.keytab=a,this.ktName=new L.X(void 0),this.itemsSubject=new L.X([]),this.subscriptions=[],this.refreshTrigger=new L.X(0),this.subscriptions.push(this.ktName.pipe((0,R.x)(),(0,m.EF)(this.refreshTrigger),(0,O.w)(p=>null==p?(0,A.of)([]):a.loadKeyTabSorted(p)),(0,k.U)(p=>this.convert(p))).subscribe(this.itemsSubject))}convert(a){null!=this.filter&&(a=a.filter(f=>this.filter(f))),null!=this.sortComparator&&(a=[...a].sort(this.sortComparator));const p=[];return a.forEach(f=>{p.push({value:this.valueBindingResolver(f),label:this.labelBindingResolver(f),disabled:!f.active})}),p}setKeyTabName(a){this.ktName.next(a)}setValueBindingResolver(a){this.valueBindingResolver=a}setLabelBindingResolver(a){this.labelBindingResolver=a}setFilter(a){this.filter=a}setSortComparator(a){this.sortComparator=a}ngOnDestroy(){this.subscriptions.forEach(a=>a.unsubscribe())}observeSelectItems(){return this.itemsSubject}refresh(){null!=this.ktName.value&&this.keytab.invalidate(this.ktName.value),this.refreshTrigger.next(0)}}return _.\u0275fac=function(a){return new(a||_)(g.LFG(P))},_.\u0275prov=g.Yz7({token:_,factory:_.\u0275fac}),_})(),z=(()=>{class _{constructor(a,p,f){this.keytabService=a,this.provider=p,this.cmbInput=f}ngOnChanges(){const a=this.provider;null!=this.vsfKeyTabFilter&&a.setFilter(p=>this.vsfKeyTabFilter(p,this.cmbInput?.ngControl?.control)),null!=this.vsfSortComparator&&a.setSortComparator(this.vsfSortComparator),null!=this.vsfKeyTabSelectItems&&(a.setValueBindingResolver(this.keytabService.defineItemValueBindingResolver(this.vsfKeyTabSelectItemValueBinding||"")),a.setLabelBindingResolver(this.keytabService.defineItemLabelBindingResolver(this.vsfKeyTabSelectItemLabelBinding||"")),a.setKeyTabName(this.vsfKeyTabSelectItems))}}return _.\u0275fac=function(a){return new(a||_)(g.Y36(P),g.Y36(m.F,2),g.Y36(W.q,9))},_.\u0275dir=g.lG2({type:_,selectors:[["","vsfKeyTabSelectItems",""]],inputs:{vsfKeyTabSelectItems:"vsfKeyTabSelectItems",vsfKeyTabSelectItemValueBinding:"vsfKeyTabSelectItemValueBinding",vsfKeyTabSelectItemLabelBinding:"vsfKeyTabSelectItemLabelBinding",vsfKeyTabFilter:"vsfKeyTabFilter",vsfSortComparator:"vsfSortComparator"},standalone:!0,features:[g._Bn([{provide:m.F,useClass:S}]),g.TTD]}),_})(),H=(()=>{class _{constructor(a,p){this.keytab=a,this.localeService=p}transform(a,...p){if(null==a)return null;const f=p.length>=2?p[1]:"value";if("object"==typeof a){if(null!=a.values&&a.values instanceof Array){const y=this.localeService.getLocale(),E=a.values.filter(e=>e.language===y);if(null!=E&&1===E.length&&null!=E[0][f])return(0,A.of)(E[0][f])}a=null!=a.baseId?a.baseId:null!=a.id?a.id:a}return this.keytab.loadKeyTab(p[0]).pipe((0,k.U)(y=>((y||{})[a]||{})[f]))}transformAfterPreload(a,...p){return this.transform(a,p).value}preload(a){const p=new Array;
1return(a instanceof String?[a]:a).forEach(f=>{const y=this.keytab.loadKeyTab(f);y instanceof i.y&&p.push(y)}),(0,t.a)(p).pipe((0,k.U)(f=>B.build(f)))}}return _.\u0275fac=function(a){return new(a||_)(g.Y36(P,16),g.Y36(m.OL,16))},_.\u0275pipe=g.Yjl({name:"vsfKeyTab",type:_,pure:!0,standalone:!0}),_})();class B{constructor(x){this.keyTabValues=x}getByBase(x){return null!=x?.baseId?this.keyTabValues[x.baseId]:{}}getById(x){return this.keyTabValues[x]}getByKey(x){let a;return Object.keys(this.keyTabValues).forEach(p=>{this.keyTabValues[p].key===x&&(a=this.keyTabValues[p])}),a}static build(x){const a=new Array;return x.forEach(p=>a.push(new B(p))),a}}let G=(()=>{class _{}return _.\u0275fac=function(a){return new(a||_)},_.\u0275mod=g.oAB({type:_}),_.\u0275inj=g.cJS({providers:[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.