1"use strict";(self.webpackChunknx1=self.webpackChunknx1||[]).push([[3297],{53297:(Xc,W,_)=>{_.r(W),_.d(W,{TenderBuyerControlModule:()=>Gc});var ge=_(31594),g=_(51188),e=_(54438),F=_(73032),h=(_(50090),_(56206)),l=_(20730),R=_(99964),m=_(60177),S=_(85956),K=_(46879),he=_(4597),I=_(68018);const E=n=>({disabled:n});function be(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",15),e.bIt("click",function(){e.eBV(t);const o=e.XpG().ngIf,s=e.XpG();return e.Njj(s.goToRegisterForm232(o))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const t=e.XpG().ngIf;e.Y8G("ngClass",e.eq3(4,E,!t.IsProcedureTypeEligibleForControlBy232)),e.R7$(),e.SpI(" ",e.bMT(2,2,t.ControlContext232Id||t.IsTenderPublished||t.RssRegistrationFormId?"str_Control_Menu_TenderBuyer_ViewRssForm":"str_Control_Menu_TenderBuyer_RegisterInRss")," ")}}function Ce(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",15),e.bIt("click",function(){e.eBV(t);const o=e.XpG().ngIf,s=e.XpG();return e.Njj(s.goToRegisterForm232a(o))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const t=e.XpG().ngIf;e.Y8G("ngClass",e.eq3(4,E,!t.IsProcedureTypeEligibleForControlBy232a)),e.R7$(),e.SpI(" ",e.bMT(2,2,t.ControlContext232aId||t.IsTenderPublished||t.MssRegistrationFormId?"str_Control_Menu_TenderBuyer_ViewMssForm":"str_Control_Menu_TenderBuyer_RegisterInMss")," ")}}function fe(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",15),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.goToSubmitForm())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const t=e.XpG().ngIf;e.Y8G("ngClass",e.eq3(4,E,!t.IsProcedureTypeEligibleForControlBy233||!t.CanContractingAuthorityInitiateControlContextBy233||t.ControlContext233Id||!t.IsTenderPublished)),e.R7$(),e.SpI(" ",e.bMT(2,2,"str_Control_Menu_TenderBuyer_RegisterForControl233")," ")}}function ve(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",15),e.bIt("click",function(){e.eBV(t);const o=e.XpG().ngIf,s=e.XpG();return e.Njj(s.goToSubmit235Form(o.NotSubmittedControlContext235Id))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const t=e.XpG().ngIf;e.Y8G("ngClass",e.eq3(4,E,!t.IsProcedureTypeEligibleForControlBy235||!t.IsTenderPublished)),e.R7$(),e.SpI(" ",e.bMT(2,2,t.NotSubmittedControlContext235Id?"str_Control_Menu_TenderBuyer_ContinueRegistrationForControl235":"str_Control_Menu_TenderBuyer_RegisterForControl235")," ")}}function De(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",15),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.goToViewForm232())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const t=e.XpG().ngIf;e.Y8G("ngClass",e.eq3(4,E,!t.ControlContext232Id)),e.R7$(),e.SpI(" ",e.bMT(2,2,"str_Control_Menu_TenderBuyer_ViewControl232")," ")}}function Ie(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",15),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.goToViewForm232a())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const t=e.XpG().ngIf;e.Y8G("ngClass",e.eq3(4,E,!t.ControlContext232aId)),e.R7$(),e.SpI(" ",e.bMT(2,2,"str_Control_Menu_TenderBuyer_ViewControl232a")," ")}}function Se(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",15),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.goToSelected233())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const t=e.XpG().ngIf;e.Y8G("ngClass",e.eq3(4,E,!t.ControlContext233Id||!t.CanContractingAuthoritySeeControlContextBy233)),e.R7$(),e.SpI(" ",e.bMT(2,2,"str_Control_Menu_TenderBuyer_ViewControl233")," ")}}function ye(n,i){if(1&n){const t=e.RV6();e.qex(0),e.j41(1,"button",15),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.goToSelected235())}),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.bVm()}if(2&n){const t=e.XpG(2).ngIf;e.R7$(),e.Y8G("ngClass",e.eq3(4,E,!t.ControlContext235Ids.length)),e.R7$(),e.SpI(" ",e.bMT(3,2,"str_Control_Menu_TenderBuyer_ViewControl235")," ")}}function Te(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",17),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.goToControlContexts235List())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"str_Control_Menu_TenderBuyer_ViewAllControls235")," "))}function Fe(n,i){if(1&n&&(e.qex(0),e.DNE(1,ye,4,6,"ng-container",16)(2,Te,3,3,"ng-template",null,1,e.C5r),e.bVm()),2&n){const t=e.sdS(3),r=e.XpG().ngIf;e.R7$(),e.Y8G("ngIf",r.ControlContext235Ids.length<=1)("ngIfElse",t)}}function Re(n,i){if(1&n&&(e.j41(0,"div",9)(1,"button",10),e.nrm(2,"i",11),e.k0s(),e.j41(3,"mat-menu",12,0),e.DNE(5,be,3,6,"button",13)(6,Ce,3,6,"button",13)(7,fe,3,6,"button",13)(8,ve,3,6,"button",13)(9,De,3,6,"button",13)(10,Ie,3,6,"button",13)(11,Se,3,6,"button",13)(12,Fe,4,2,"ng-container",14),e.k0s()()),2&n){const t=i.ngIf,r=e.sdS(4),o=e.XpG();e.R7$(),e.Y8G("matMenuTriggerFor",r),e.R7$(2),e.Y8G("overlapTrigger",!0),e.R7$(2),e.Y8G("ngIf",o.CanManageControlSection&&(!t.IsTenderPublished||t.IsTenderPublished&&!!t.RssRegistrationFormId)||o.CanViewControlSection&&!!t.RssRegistrationFormId),e.R7$(),e.Y8G("ngIf",o.CanManageControlSection&&(!t.IsTenderPublished||t.IsTenderPublished&&!!t.MssRegistrationFormId)||o.CanViewControlSection&&!!t.MssRegistrationFormId),e.R7$(),e.Y8G("ngIf",o.CanManageControlSection),e.R7$(),e.Y8G("ngIf",o.CanManageControlSection),e.R7$(),e.Y8G("ngIf",o.CanViewControlSection),e.R7$(),e.Y8G("ngIf",o.CanViewControlSection),e.R7$(),e.Y8G("ngIf",o.CanViewControlSection),e.R7$(),e.Y8G("ngIf",o.CanViewControlSection)}}let ke=(()=>{class n extends F.$G{constructor(t,r,o,s,d,a,p,u,b,C){super(t),this.dialogService=r,this.tenderStoreService=o,this.changeDetectorRef=s,this.router=d,this.tenderGuard=a,this.routerStoreService=p,this.userStoreService=u,this.route=b,this.controlService=C,this.breadcrumbPath=[{keyword:"str_Tender_control",url:[".."]}],this.alertNotSavedDataSub=null,this.changeGroup=new e.bkB,this.actionType=NX1.Model.Enums.ActionType,this.subscriptions=[],this.tenderId$=this.routerStoreService.getIdFromParams(this.route.paramMap,"tenderId")}
1get CanViewControlSection(){return this.tenderGuard.canViewTenderControlSection}get CanManageControlSection(){return this.tenderGuard.canManageTenderControlSection}ngOnInit(){this.tender$=this.tenderStoreService.getCurrentTender();const t=this.tender$.subscribe(r=>{this.tender=r,this.tenderStoreService.loadTenderControlData(this.tender.Id),this.tenderControlData$=this.tenderStoreService.getTenderControlData()});this.subscriptions.push(t)}ngOnDestroy(){for(const t of this.subscriptions)t.unsubscribe()}hasChanges(){return!!this.groupInEdit&&this.groupInEdit.isChanged}onSaved(t){this.groupInEdit.isChanged=!1,this.groupInEdit=null,this.changeGroup.emit(this.groupInEdit),this.changeDetectorRef.markForCheck()}onEdit(t){if(this.groupInEdit){if(this.groupInEdit===t)return;this.groupInEdit.isChanged&&null===this.alertNotSavedDataSub?this.alertNotSavedData(t):(this.groupInEdit.onCancel(),this.groupInEdit=t,this.groupInEdit.isEdit=!0)}else this.groupInEdit=t,this.groupInEdit.isEdit=!0;this.changeDetectorRef.markForCheck()}onChange(){this.groupInEdit.isChanged=!0,this.changeGroup.emit(this.groupInEdit),this.changeDetectorRef.markForCheck()}onCancel(t){this.groupInEdit===t&&(this.groupInEdit=null),t.isChanged=!1,this.changeGroup.emit(this.groupInEdit),this.changeDetectorRef.markForCheck()}SendRegForm(){this.confirmSendRegForm()}confirmSendRegForm(){const t=this.dialogService.confirm({titleKeyword:"str_Common_are_you_sure",textContentKeyword:"\u0412\u0430\u0448\u0438\u044f\u0442 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u0435\u043d \u0444\u0438\u0448 \u0449\u0435 \u0431\u044a\u0434\u0435 \u0438\u0437\u043f\u0440\u0430\u0442\u0435\u043d \u043a\u044a\u043c \u0421\u0438\u0441\u0442\u0435\u043c\u0430\u0442\u0430 \u0437\u0430 \u0441\u043b\u0443\u0447\u0430\u0435\u043d \u0438\u0437\u0431\u043e\u0440",confirmationType:"alert",cancelKeyword:"str_Common_cancel",okKeyword:"str_Common_confirm",requirePassword:!1,showCheckbox:!1}).subscribe(r=>{t.unsubscribe()})}alertNotSavedData(t){this.alertNotSavedDataSub=this.dialogService.confirm({confirmationType:"alert",titleKeyword:"str_Common_warning",textContentKeyword:"str_Tender_properties_unsaved_changes",cancelKeyword:"str_Common_cancel",okKeyword:"str_Common_save",requirePassword:!1,showCheckbox:!1},!0).subscribe(r=>{this.alertNotSavedDataSub.unsubscribe(),this.alertNotSavedDataSub=null,r.confirmed&&this.groupInEdit.onSave()?(this.groupInEdit=t,this.groupInEdit.isEdit=!0,this.changeGroup.emit(this.groupInEdit),this.changeDetectorRef.markForCheck()):t.onCancel()})}goToRegisterForm232(t){this.router.navigate(!0===t?.IsRssRegistrationFormPdfGenerated?["/tender",this.tender.Id,"buyer","control","form232-document-submission"]:["/tender",this.tender.Id,"buyer","control","register"])}goToRegisterForm232a(t){this.router.navigate(!0===t?.IsMssRegistrationFormPdfGenerated?["/tender",this.tender.Id,"buyer","control","form232a-document-submission"]:["/tender",this.tender.Id,"buyer","control","register232a"])}goToSubmitForm(){this.router.navigate(["/tender",this.tender.Id,"buyer","control","submit233"])}goToSubmit235Form(t){t?this.goToSpecificContext235(t):this.router.navigate(["/tender",this.tender.Id,"buyer","control","submit235"])}goToViewForm232(){this.router.navigate(["/tender",this.tender.Id,"buyer","control","view"])}goToViewForm232a(){this.router.navigate(["/tender",this.tender.Id,"buyer","control","selected232a"])}goToSelected233(){this.router.navigate(["/tender",this.tender.Id,"buyer","control","selected233"])}goToSelected235(){this.router.navigate(["/tender",this.tender.Id,"buyer","control","selected235"])}goToDocuments(){this.router.navigate(["/tender",this.tender.Id,"buyer","control","documents"])}goToControlContexts235List(){this.router.navigate(["/tender",this.tender.Id,"buyer","control","235","list"])}goToSpecificContext235(t){this.router.navigate(["/tender",this.tender.Id,"buyer","control","selected235",t])}static{this.\u0275fac=function(r){return new(r||n)(e.rXU(e.c1b),e.rXU(h.o3),e.rXU(l.$gx),e.rXU(e.gRc),e.rXU(g.Ix),e.rXU(R.U),e.rXU(l.o9Y),e.rXU(l.wk1),e.rXU(g.nX),e.rXU(l.het))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["nx1-tender-buyer-control"]],outputs:{changeGroup:"changeGroup"},features:[e.Vt3],decls:9,vars:4,consts:[["menu","matMenu"],["multipleControl235",""],[1,"nxcard","bg--white","z1","margin--bottom-20"],[1,"nxcard__header","nxcard__header--no-border"],[1,"nxcard__header-title"],[1,"nxcard__header-title-content"],[3,"breadcrumbPath"],[1,"nxcard__header-options"],["class","display--flex flex-column content-center",4,"ngIf"],[1,"display--flex","flex-column","content-center"],["mat-icon-button","",1,"button--medium","button--table",3,"matMenuTriggerFor"],[1,"mdi","mdi-dots-vertical","text--grey40"],["xPosition","before",3,"overlapTrigger"],["class","text--bold","mat-menu-item","",3,"ngClass","click",4,"ngIf"],[4,"ngIf"],["mat-menu-item","",1,"text--bold",3,"click","ngClass"],[4,"ngIf","ngIfElse"],["mat-menu-item","",1,"text--bold",3,"click"]],template:function(r,o){1&r&&(e.j41(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5),e.nrm(4,"nx1-tool-breadcrumb",6),e.k0s()(),e.j41(5,"div",7),e.DNE(6,Re,13,10,"div",8),e.nI1(7,"async"),e.k0s()()(),e.nrm(8,"router-outlet")),2&r&&(e.R7$(4),e.Y8G("breadcrumbPath",o.breadcrumbPath),e.R7$(2),e.Y8G("ngIf",e.bMT(7,2,o.tenderControlData$)))},dependencies:[m.YU,m.bT,g.n3,S.iV,K.pI,K.gy,K.fS,he.x,m.Jj,I.D9],styles:["[_nghost-%COMP%]{display:block} .mat-menu-panel{max-width:none!important}.menu-action[_ngcontent-%COMP%]{display:flex;justify-content:center;height:11px;text-align:center;position:relative;margin:5px 0}.menu-action__line[_ngcontent-%COMP%]{display:block;position:absolute;top:50%;transform:translateY(-50%);width:100%;left:0;border-top:1px solid rgba(0,0,0,.1);opacity:0;transition:opacity .35s}.menu-action__wrapper[_ngcontent-%COMP%]{height:30px;position:relative;z-index:2;transform:translateY(-50%);top:50%;opacity:0;transition:opacity .35s}.menu-action__button[_ngcontent-%COMP%]{height:30px;line-height:30px!important}.menu-action[_ngcontent-%COMP%]:hover .menu-action__line[_ngcontent-%COMP%], .menu-action[_ngcontent-%COMP%]:hover .menu-action__wrapper[_ngcontent-%COMP%]{opacity:1}.disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}"],changeDetection:0})}}return n})();var xe=_(84412),Ee=_(11105);let ee=(()=>{class n{constructor(t,r){this.systemSettingsStoreService=t,this.tenderBuyerGuard=r,this.result=!1,this.resolved=new xe.t(!1)}canActivate(t,r){return this.resolved.next(!1),this.systemSettingsStoreService.getSystemSettings().subscribe(o=>{this.currentNX1SystemSettingsInfo=o,this.result=this.currentNX1SystemSettingsInfo.ShowControlFeature&&this.tenderBuyerGuard.canViewTenderControlSection}),this.result}static{this.\u0275fac=function(r){return new(r||n)(e.KVO(l.dqT),e.KVO(Ee.V))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac})}}return n})();var c=_(89417),X=_(45312),te=_(21894),k=_(1776),V=_(30166),T=_(54549);function Be(n,i){if(1&n&&(e.j41(0,"div",21)(1,"span"),e.EFF(2),e.k0s()()),2&n){const t=i.$implicit;e.R7$(2),e.JRh(t)}}function $e(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",42)(1,"label"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",43)(5,"div",44)(6,"input",45),e.bIt("keyup",function(o){e.eBV(t);const s=e.XpG(3);return e.Njj(s.onCheckEmail(o.target.value))}),e.k0s()(),e.j41(7,"div",46)(8,"button",27),e.bIt("click",function(){const o=e.eBV(t).index,s=e.XpG(3);return e.Njj(s.deleteEmail(o))}),e.nrm(9,"i",47),e.k0s()()()()}2&n&&(e.Y8G("formGroupName",i.index),e.R7$(2),e.SpI("",e.bMT(3,2,"str_Control_Tender_Buyer_232_Submit_Page_Emails_Additional"),":"))}
1function je(n,i){1&n&&(e.j41(0,"div",48),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"str_Control_Tender_Buyer_232_Submit_Page_Emails_Invalid")))}function Me(n,i){if(1&n&&(e.j41(0,"div",21)(1,"span"),e.EFF(2),e.k0s()()),2&n){const t=i.$implicit;e.R7$(2),e.JRh(t.Text)}}function we(n,i){if(1&n&&(e.j41(0,"div")(1,"div",17)(2,"div",18)(3,"label",49),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"div",30)(7,"div",21),e.EFF(8),e.nI1(9,"nx1EnumTranslate"),e.nI1(10,"translate"),e.k0s(),e.j41(11,"div",23),e.EFF(12),e.nI1(13,"translate"),e.k0s()()()()),2&n){let t;const r=i.$implicit,o=e.XpG().ngIf,s=e.XpG(2);e.R7$(4),e.SpI("II. ",e.bMT(5,3,"str_Control_Tender_Buyer_232_Submit_Page_TenderBuer_Type"),""),e.R7$(4),e.SpI(" ",e.bMT(10,8,e.i5U(9,5,null==(t=s.getContractingAuthorityTypeById(r,null==o||null==o.ResultObject?null:o.ResultObject.ContractingAuthorityTypeId))?null:t.ActivityTypeGroup,s.activityTypeGroupEnum))," "),e.R7$(4),e.JRh(e.bMT(13,10,null==o||null==o.ResultObject?null:o.ResultObject.ContractingAuthorityTypeIdHintKeyword))}}function Ae(n,i){if(1&n&&(e.j41(0,"option",53),e.EFF(1),e.nI1(2,"nx1EnumTranslate"),e.nI1(3,"translate"),e.k0s()),2&n){const t=i.$implicit,r=e.XpG(4);e.Y8G("value",t.value),e.R7$(),e.SpI(" ",e.bMT(3,5,e.i5U(2,2,t.value,r.fundingSourceEnum))," ")}}function Pe(n,i){1&n&&(e.j41(0,"div",48),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"str_Control_Tender_Buyer_232_Submit_Page_FundingSource_Hint")," "))}function Ge(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",30)(1,"select",50),e.bIt("change",function(o){e.eBV(t);const s=e.XpG(3);return e.Njj(s.onChangeFundingSource(o.target.value))}),e.DNE(2,Ae,4,7,"option",51),e.nI1(3,"nx1Enums"),e.k0s(),e.DNE(4,Pe,3,3,"div",29),e.nrm(5,"nx1-form-control-messages",52),e.k0s()}if(2&n){const t=e.XpG(3);e.R7$(2),e.Y8G("ngForOf",e.i5U(3,4,t.fundingSourceEnum,!0)),e.R7$(2),e.Y8G("ngIf",t.showFundingSourceValidation),e.R7$(),e.Y8G("parentId",t.getId("FundingSource"))("control",t.FundingSource)}}function Ne(n,i){if(1&n&&(e.j41(0,"div",30)(1,"div",21),e.EFF(2),e.nI1(3,"nx1EnumTranslate"),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",23),e.EFF(6),e.nI1(7,"translate"),e.k0s()()),2&n){const t=e.XpG().ngIf,r=e.XpG(2);e.R7$(2),e.SpI(" ",e.bMT(4,5,e.i5U(3,2,null==t||null==t.ResultObject?null:t.ResultObject.FundingSource,r.fundingSourceEnum))," "),e.R7$(4),e.JRh(e.bMT(7,7,null==t||null==t.ResultObject?null:t.ResultObject.FundingSourceHintKeyword))}}function Xe(n,i){if(1&n&&(e.j41(0,"option",53),e.EFF(1),e.k0s()),2&n){const t=i.$implicit;e.FS9("value",t.Id),e.R7$(),e.SpI(" ",null==t?null:t.Mnemonic," ")}}function Ve(n,i){1&n&&(e.j41(0,"div",48),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"str_Control_Tender_Buyer_232_Submit_Page_FundingProgram_Hint")," "))}function Oe(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",30)(1,"select",54),e.bIt("change",function(o){e.eBV(t);const s=e.XpG(4);return e.Njj(s.onChangeFundingProgram(o.target.value))}),e.DNE(2,Xe,2,2,"option",51),e.nI1(3,"async"),e.k0s(),e.DNE(4,Ve,3,3,"div",29),e.nrm(5,"nx1-form-control-messages",52),e.k0s()}if(2&n){const t=e.XpG(4);e.R7$(2),e.Y8G("ngForOf",e.bMT(3,4,t.fundingPrograms$)),e.R7$(2),e.Y8G("ngIf",t.showFundingProgramValidation),e.R7$(),e.Y8G("parentId",t.getId("FundingProgramId"))("control",t.FundingProgramId)}}function Le(n,i){if(1&n&&(e.j41(0,"div",30)(1,"div",21),e.EFF(2),e.k0s()()),2&n){const t=e.XpG(4);e.R7$(2),e.SpI(" ",null==t.fundingProgram?null:t.fundingProgram.Mnemonic," ")}}function Ye(n,i){if(1&n&&(e.j41(0,"div",17)(1,"div",18)(2,"label",19),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.DNE(5,Oe,6,6,"div",32)(6,Le,3,1,"ng-template",null,6,e.C5r),e.k0s()),2&n){const t=e.sdS(7),r=e.XpG().ngIf;e.R7$(3),e.SpI("VIIIa. ",e.bMT(4,3,"str_Control_funding_program"),""),e.R7$(2),e.Y8G("ngIf",null===(null==r||null==r.ResultObject?null:r.ResultObject.FundingProgramId))("ngIfElse",t)}}function Ue(n,i){if(1&n&&(e.qex(0),e.j41(1,"div",21),e.EFF(2),e.nI1(3,"nx1EnumTranslate"),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",23),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.bVm()),2&n){const t=e.XpG().ngIf,r=e.XpG(2);e.R7$(2),e.SpI(" ",e.bMT(4,5,e.i5U(3,2,null==t||null==t.ResultObject?null:t.ResultObject.AwardMethod,r.awardMethodEnum))," "),e.R7$(4),e.JRh(e.bMT(7,7,null==t||null==t.ResultObject?null:t.ResultObject.AwardMethodHintKeyword))}}function Je(n,i){if(1&n&&(e.j41(0,"option",57),e.EFF(1),e.nI1(2,"nx1EnumTranslate"),e.nI1(3,"translate"),e.k0s()),2&n){const t=i.$implicit,r=e.XpG(4);e.Y8G("value",t.value),e.R7$(),e.SpI(" ",e.bMT(3,5,e.i5U(2,2,t.value,r.awardMethodEnum))," ")}}function Ke(n,i){if(1&n&&(e.j41(0,"select",55),e.DNE(1,Je,4,7,"option",56),e.nI1(2,"nx1Enums"),e.k0s(),e.nrm(3,"nx1-form-control-messages",52)),2&n){const t=e.XpG(3);e.Y8G("formControl",t.AwardMethodControl),e.R7$(),e.Y8G("ngForOf",e.i5U(2,4,t.awardMethodEnum,!0)),e.R7$(2),e.Y8G("parentId",t.getId("AwardMethod"))("control",t.AwardMethodControl)}}function ze(n,i){if(1&n&&(e.j41(0,"div")(1,"span"),e.EFF(2),e.k0s()()),2&n){const t=i.$implicit;e.R7$(2),e.Lme("",t.CodeText," - ",t.Keyword,"")}}function Qe(n,i){if(1&n&&(e.qex(0),e.j41(1,"div",21),e.EFF(2),e.nI1(3,"nx1EnumTranslate"),e.nI1(4,"translate"),e.k0s(),e.bVm()),2&n){const t=e.XpG().ngIf,r=e.XpG(2);e.R7$(2),e.SpI(" ",e.bMT(4,4,e.i5U(3,1,null==t||null==t.ResultObject?null:t.ResultObject.Renewal,r.renewalEnum))," ")}}function He(n,i){if(1&n&&(e.j41(0,"option",57),e.EFF(1),e.nI1(2,"nx1EnumTranslate"),e.nI1(3,"translate"),e.k0s()),2&n){const t=i.$implicit,r=e.XpG(4);e.Y8G("value",t.value),e.R7$(),e.SpI(" ",e.bMT(3,5,e.i5U(2,2,t.value,r.renewalEnum))," ")}}function qe(n,i){if(1&n&&(e.j41(0,"select",55),e.DNE(1,He,4,7,"option",56),e.nI1(2,"nx1Enums"),e.k0s(),e.nrm(3,"nx1-form-control-messages",52)),2&n){const t=e.XpG(3);e.Y8G("formControl",t.RenewalControl),e.R7$(),e.Y8G("ngForOf",e.i5U(2,4,t.renewalEnum,!0)),e.R7$(2),e.Y8G("parentId",t.getId("Renewal"))("control",t.RenewalControl)}}function Ze(n,i){if(1&n&&(e.qex(0),e.j41(1,"div",21),e.EFF(2),e.nI1(3,"nx1EnumTranslate"),e.nI1(4,"translate"),e.k0s(),e.bVm()),2&n){const t=e.XpG().ngIf,r=e.XpG(2);e.R7$(2),e.SpI(" ",e.bMT(4,4,e.i5U(3,1,null==t||null==t.ResultObject?null:t.ResultObject.Options,r.optionsEnum))," ")}}function We(n,i){if(1&n&&(e.j41(0,"option",57),e.EFF(1),e.nI1(2,"nx1EnumTranslate"),e.nI1(3,"translate"),e.k0s()),2&n){const t=i.$implicit,r=e.XpG(4);e.Y8G("value",t.value),e.R7$(),e.SpI(" ",e.bMT(3,5,e.i5U(2,2,t.value,r.optionsEnum))," ")}}function et(n,i){if(1&n&&(e.j41(0,"select",55),e.DNE(1,We,4,7,"option",56),e.nI1(2,"nx1Enums"),e.k0s(),e.nrm(3,"nx1-form-control-messages",52)),2&n){const t=e.XpG(3);e.Y8G("formControl",t.OptionsControl),e.R7$(),e.Y8G("ngForOf",e.i5U(2,4,t.optionsEnum,!0)),e.R7$(2),e.Y8G("parentId",t.getId("Options"))("control",t.OptionsControl)}}function tt(n,i){if(1&n&&(e.qex(0),e.j41(1,"div",21),e.EFF(2),e.nI1(3,"nx1EnumTranslate"),e.nI1(4,"translate"),e.k0s(),e.bVm()),2&n){const t=e.XpG().ngIf,r=e.XpG(2);e.R7$(2),e.SpI(" ",e.bMT(4,4,e.i5U(3,1,null==t||null==t.ResultObject?null:t.ResultObject.Acceleration,r.accelerationEnum))," ")}}function nt(n,i){if(1&n&&(e.j41(0,"option",57),e.EFF(1),e.nI1(2,"nx1EnumTranslate"),e.nI1(3,"translate"),e.k0s()),2&n){const t=i.$implicit,r=e.XpG(4);e.Y8G("value",t.value),e.R7$(),e.SpI(" ",e.bMT(3,5,e.i5U(2,2,t.value,r.accelerationEnum))," ")}}function ot(n,i){if(1&n&&(e.j41(0,"select",55),e.DNE(1,nt,4,7,"option",56),e.nI1(2,"nx1Enums"),e.k0s(),e.nrm(3,"nx1-form-control-messages",52)),2&n){const t=e.XpG(3);e.Y8G("formControl",t.AccelerationControl),e.R7$(),e.Y8G("ngForOf",e.i5U(2,4,t.accelerationEnum,!0)),e.R7$(2),e.Y8G("parentId",t.getId("Acceleration"))("control",t.AccelerationControl)}}function rt(n,i){if(1&n&&(e.qex(0),e.j41(1,"div",21),e.EFF(2),e.nI1(3,"nx1EnumTranslate"),e.nI1(4,"translate"),e.k0s(),e.bVm()),2&n){const t=e.XpG().ngIf,r=e.XpG(2);e.R7$(2),e.SpI(" ",e.bMT(4,4,e.i5U(3,1,null==t||null==t.ResultObject?null:t.ResultObject.Duration,r.durationEnum))," ")}}function it(n,i){if(1&n&&(e.j41(0,"option",57),e.EFF(1),e.nI1(2,"nx1EnumTranslate"),e.nI1(3,"translate"),e.k0s()),2&n){const t=i.$implicit,r=e.XpG(4);e.Y8G("value",t.value),e.R7$(),e.SpI(" ",e.bMT(3,5,e.i5U(2,2,t.value,r.durationEnum))," ")}}function st(n,i){if(1&n&&(e.j41(0,"select",55),e.DNE(1,it,4,7,"option",56),e.nI1(2,"nx1Enums"),e.k0s(),e.nrm(3,"nx1-form-control-messages",52)),2&n){const t=e.XpG(3);e.Y8G("formControl",t.DurationControl),e.R7$(),e.Y8G("ngForOf",e.i5U(2,4,t.durationEnum,!0)),e.R7$(2),e.Y8G("parentId",t.getId("Duration"))("control",t.DurationControl)}}function ct(n,i){if(1&n&&(e.j41(0,"div",17)(1,"div",18)(2,"label",19),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.j41(5,"div",31),e.EFF(6),e.nI1(7,"nx1EnumTranslate"),e.nI1(8,"translate"),e.k0s()()),2&n){const t=e.XpG().ngIf,r=e.XpG(2);e.R7$(3),e.SpI("XVI. ",e.bMT(4,2,"str_Control_Tender_Buyer_232_Submit_Page_Tender_StrategicProcurement"),""),e.R7$(3),e.SpI(" ",e.bMT(8,7,e.i5U(7,4,null==t||null==t.ResultObject?null:t.ResultObject.Strategic,r.strategicProcurementEnum))," ")}}function at(n,i){if(1&n&&(e.j41(0,"div",17)(1,"div",18)(2,"label",19),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.j41(5,"div",31),e.EFF(6),e.nI1(7,"nx1EnumTranslate"),e.nI1(8,"translate"),e.k0s()()),2&n){const t=e.XpG().ngIf,r=e.XpG(2);e.R7$(3),e.SpI("XVII. ",e.bMT(4,2,"str_Control_Tender_Buyer_232_Submit_Page_Tender_OnlyOneOfferFrequency"),""),e.R7$(3),e.SpI(" ",e.bMT(8,7,e.i5U(7,4,null==t||null==t.ResultObject?null:t.ResultObject.OnlyOneOfferFrequency,r.onlyOneOfferFrequencyEnum))," ")}}function lt(n,i){if(1&n&&(e.j41(0,"div",17)(1,"div",18)(2,"label",19),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.j41(5,"div",31),e.EFF(6),e.nI1(7,"nx1EnumTranslate"),e.nI1(8,"translate"),e.k0s()()),2&n){const t=e.XpG().ngIf,r=e.XpG(2);e.R7$(3),e.SpI("XVIII. ",e.bMT(4,2,"str_Control_Tender_Buyer_232_Submit_Page_Tender_NoPublicationProceduresFrequency"),""),e.R7$(3),e.SpI(" ",e.bMT(8,7,e.i5U(7,4,null==t||null==t.ResultObject?null:t.ResultObject.NoPublicationProceduresFrequency,r.noPublicationProceduresFrequencyEnum))," ")}}function dt(n,i){if(1&n&&(e.j41(0,"div",17)(1,"div",18)(2,"label",19),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.j41(5,"div",31),e.EFF(6),e.nI1(7,"nx1EnumTranslate"),e.nI1(8,"translate"),e.k0s()()),2&n){const t=e.XpG().ngIf,r=e.XpG(2);e.R7$(3),e.SpI("XIX. ",e.bMT(4,2,"str_Control_Tender_Buyer_232_Submit_Page_Tender_HighCancellationRate"),""),e.R7$(3),e.SpI(" ",e.bMT(8,7,e.i5U(7,4,null==t||null==t.ResultObject?null:t.ResultObject.HighCancellationRate,r.highCancellationRateEnum))," ")}}function ut(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",38)(1,"button",27),e.bIt("click",function(){e.eBV(t);const o=e.XpG().ngIf,s=e.XpG(2);return e.Njj(s.sendRegForm(null==o?null:o.ResultObject))}),e.nrm(2,"i",58),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}2&n&&(e.R7$(3),e.SpI(" ",e.bMT(4,1,"str_Control_Tender_Buyer_232_Submit_Page_Button")," "))}function mt(n,i){if(1&n&&(e.j41(0,"div",59),e.nrm(1,"mat-spinner",60),e.k0s()),2&n){const t=e.XpG(3);e.AVh("overlay-loading--show",t.showOverlay),e.R7$(),e.Y8G("diameter",60)}}function _t(n,i){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",8)(2,"div",9)(3,"div",10)(4,"h2",11),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()(),e.j41(7,"form",12)(8,"div",13)(9,"div",14)(10,"div",15)(11,"div",16)(12,"span"),e.EFF(13),e.nI1(14,"translate"),e.k0s()()()(),e.j41(15,"div",17)(16,"div",18)(17,"label",19),e.EFF(18),e.nI1(19,"translate"),e.k0s()(),e.j41(20,"div",20)(21,"div",21),e.EFF(22),e.k0s(),e.j41(23,"div",22),e.EFF(24),e.nI1(25,"translate"),e.k0s()()(),e.j41(26,"div",17)(27,"div",18)(28,"label",19),e.EFF(29),e.nI1(30,"translate"),e.k0s()(),e.j41(31,"div",20)(32,"div",21),e.EFF(33),e.k0s(),e.j41(34,"div",23),e.
1EFF(35),e.nI1(36,"translate"),e.k0s()()(),e.j41(37,"div",17)(38,"div",18)(39,"label",19),e.EFF(40),e.nI1(41,"translate"),e.k0s()(),e.j41(42,"div",20)(43,"div",21),e.EFF(44),e.k0s(),e.j41(45,"div",23),e.EFF(46),e.nI1(47,"translate"),e.k0s()()(),e.j41(48,"div",17)(49,"div",18)(50,"label",19),e.EFF(51),e.nI1(52,"translate"),e.k0s()(),e.j41(53,"div",20),e.DNE(54,Be,3,1,"div",24),e.j41(55,"div",23),e.EFF(56),e.nI1(57,"translate"),e.k0s(),e.j41(58,"div",25),e.DNE(59,$e,10,4,"div",26),e.j41(60,"button",27),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.addEmail())}),e.nrm(61,"i",28),e.k0s(),e.DNE(62,je,3,3,"div",29),e.k0s()()(),e.j41(63,"div",17)(64,"div",18)(65,"label",19),e.EFF(66),e.nI1(67,"translate"),e.k0s()(),e.j41(68,"div",20),e.DNE(69,Me,3,1,"div",24),e.j41(70,"div",23),e.EFF(71),e.nI1(72,"translate"),e.k0s()()()(),e.j41(73,"div",13),e.DNE(74,we,14,12,"div",7),e.nI1(75,"async"),e.j41(76,"div",17)(77,"div",18)(78,"label",19),e.EFF(79),e.nI1(80,"translate"),e.k0s()(),e.j41(81,"div",30)(82,"div",21),e.EFF(83),e.nI1(84,"nx1EnumTranslate"),e.nI1(85,"translate"),e.k0s(),e.j41(86,"div",23),e.EFF(87),e.nI1(88,"translate"),e.k0s()()(),e.j41(89,"div",17)(90,"div",18)(91,"label",19),e.EFF(92),e.nI1(93,"translate"),e.k0s()(),e.j41(94,"div",30)(95,"div",21),e.EFF(96),e.nI1(97,"nx1EnumTranslate"),e.nI1(98,"translate"),e.k0s(),e.j41(99,"div",23),e.EFF(100),e.nI1(101,"translate"),e.k0s()()(),e.j41(102,"div",17)(103,"div",18)(104,"label",19),e.EFF(105),e.nI1(106,"translate"),e.k0s()(),e.j41(107,"div",31),e.EFF(108),e.nI1(109,"nx1EnumTranslate"),e.nI1(110,"translate"),e.k0s()(),e.j41(111,"div",17)(112,"div",18)(113,"label",19),e.EFF(114),e.nI1(115,"translate"),e.k0s()(),e.j41(116,"div",31),e.EFF(117),e.j41(118,"div",23),e.EFF(119),e.nI1(120,"translate"),e.k0s()()(),e.j41(121,"div",17)(122,"div",18)(123,"label",19),e.EFF(124),e.nI1(125,"translate"),e.k0s()(),e.j41(126,"div",31),e.EFF(127),e.nI1(128,"nx1EnumTranslate"),e.nI1(129,"translate"),e.k0s()(),e.j41(130,"div",17)(131,"div",18)(132,"label",19),e.EFF(133),e.nI1(134,"translate"),e.k0s()(),e.DNE(135,Ge,6,7,"div",32)(136,Ne,8,9,"ng-template",null,0,e.C5r),e.k0s(),e.DNE(138,Ye,8,5,"div",33),e.j41(139,"div",17)(140,"div",18)(141,"label",19),e.EFF(142),e.nI1(143,"translate"),e.k0s()(),e.j41(144,"div",30),e.DNE(145,Ue,8,9,"ng-container",34)(146,Ke,4,7,"ng-template",null,1,e.C5r),e.k0s()(),e.j41(148,"div",17)(149,"div",18)(150,"label",19),e.EFF(151),e.nI1(152,"translate"),e.k0s()(),e.j41(153,"div",30)(154,"div",21),e.DNE(155,ze,3,2,"div",35),e.k0s(),e.j41(156,"div",23),e.EFF(157),e.nI1(158,"translate"),e.k0s()()(),e.j41(159,"div",17)(160,"div",18)(161,"label",19),e.EFF(162),e.nI1(163,"translate"),e.k0s()(),e.j41(164,"div",30),e.DNE(165,Qe,5,6,"ng-container",34)(166,qe,4,7,"ng-template",null,2,e.C5r),e.k0s()(),e.j41(168,"div",17)(169,"div",18)(170,"label",19),e.EFF(171),e.nI1(172,"translate"),e.k0s()(),e.j41(173,"div",30),e.DNE(174,Ze,5,6,"ng-container",34)(175,et,4,7,"ng-template",null,3,e.C5r),e.k0s()(),e.j41(177,"div",17)(178,"div",18)(179,"label",19),e.EFF(180),e.nI1(181,"translate"),e.k0s()(),e.j41(182,"div",30),e.DNE(183,tt,5,6,"ng-container",34)(184,ot,4,7,"ng-template",null,4,e.C5r),e.k0s()(),e.j41(186,"div",17)(187,"div",18)(188,"label",19),e.EFF(189),e.nI1(190,"translate"),e.k0s()(),e.j41(191,"div",30),e.DNE(192,rt,5,6,"ng-container",36)(193,st,4,7,"ng-template",null,5,e.C5r),e.k0s()(),e.j41(195,"div",17)(196,"div",18)(197,"label",19),e.EFF(198),e.nI1(199,"translate"),e.k0s()(),e.j41(200,"div",31),e.EFF(201),e.nI1(202,"nx1EnumTranslate"),e.nI1(203,"translate"),e.k0s()(),e.DNE(204,ct,9,9,"div",33)(205,at,9,9,"div",33)(206,lt,9,9,"div",33)(207,dt,9,9,"div",33),e.j41(208,"div",37)(209,"div",38)(210,"div",39),e.EFF(211),e.nI1(212,"translate"),e.k0s()(),e.DNE(213,ut,5,3,"div",40)(214,mt,2,3,"div",41),e.k0s()()()()}if(2&n){const t=i.ngIf,r=e.sdS(137),o=e.sdS(147),s=e.sdS(167),d=e.sdS(176),a=e.sdS(185),p=e.sdS(194),u=e.XpG(2);e.R7$(5),e.SpI(" ",e.bMT(6,64,"str_Control_Tender_Buyer_232_Submit_Page_Title")," "),e.R7$(2),e.Y8G("formGroup",u.controlForm),e.R7$(6),e.SpI("I. ",e.bMT(14,66,"str_Control_registration_form_identification"),""),e.R7$(5),e.SpI("1. ",e.bMT(19,68,"str_Control_Tender_Buyer_232_Submit_Page_TenderBuyer_Name"),""),e.R7$(4),e.JRh(null==t||null==t.ResultObject?null:t.ResultObject.ContractingAuthorityName),e.R7$(2),e.JRh(e.bMT(25,70,null==t||null==t.ResultObject?null:t.ResultObject.ContractingAuthorityNameHintKeyword)),e.R7$(5),e.SpI("2. ",e.bMT(30,72,"str_Control_Tender_Buyer_232_Submit_Page_TenderBuyer_BatchNumber"),""),e.R7$(4),e.JRh(null==t||null==t.ResultObject?null:t.ResultObject.ContractingAuthorityBatchNumber),e.R7$(2),e.JRh(e.bMT(36,74,null==t||null==t.ResultObject?null:t.ResultObject.ContractingAuthorityBatchNumberHintKeyword)),e.R7$(5),e.SpI("3. ",e.bMT(41,76,"str_Control_Tender_Buyer_232_Submit_Page_Tender_Subject")," "),e.R7$(4),e.JRh(null==t||null==t.ResultObject?null:t.ResultObject.TenderSubject),e.R7$(2),e.JRh(e.bMT(47,78,null==t||null==t.ResultObject?null:t.ResultObject.TenderSubjectHintKeyword)),e.R7$(5),e.SpI("4. ",e.bMT(52,80,"str_Control_Tender_Buyer_232_Submit_Page_Emails"),""),e.R7$(3),e.Y8G("ngForOf",null==t||null==t.ResultObject?null:t.ResultObject.EmailAddressesList),e.R7$(2),e.JRh(e.bMT(57,82,null==t||null==t.ResultObject?null:t.ResultObject.EmailAddressesListHintKeyword)),e.R7$(3),e.Y8G("ngForOf",u.emails.controls),e.R7$(3),e.Y8G("ngIf",!u.emailValid||!u.checkEmailsValidation()),e.R7$(4),e.SpI("5. ",e.bMT(67,84,"str_Control_professional_fields"),""),e.R7$(3),e.Y8G("ngForOf",null==t||null==t.ResultObject?null:t.ResultObject.RegistrationFormProfessionalFields),e.R7$(2),e.JRh(e.bMT(72,86,null==t||null==t.ResultObject?null:t.ResultObject.RegistrationFormProfessionalFieldsHintKeyword)),e.R7$(3),e.Y8G("ngIf",e.bMT(75,88,u.contractingAuthorityTypes$)),e.R7$(5),e.SpI("III. ",e.bMT(80,90,"str_Control_Tender_Buyer_232_Submit_Page_Tender_ProcedureType"),""),e.R7$(4),e.SpI(" ",e.bMT(85,95,e.i5U(84,92,null==t||null==t.ResultObject?null:t.ResultObject.ProcedureType,u.procedureTypeEnum))," "),e.R7$(4),e.JRh(e.bMT(88,97,null==t||null==t.ResultObject?null:t.ResultObject.ProcedureTypeHintKeyword)),e.R7$(5),e.SpI("IV. ",e.bMT(93,99,"str_Control_rssForm_pdf_TypeOfContract"),""),e.R7$(4),e.SpI(" ",e.bMT(98,104,e.i5U(97,101,null==t||null==t.ResultObject?null:t.ResultObject.TypeOfContract,u.typeOfContractEnum))," "),e.R7$(4),e.JRh(e.bMT(101,106,null==t||null==t.ResultObject?null:t.ResultObject.TypeOfContractHintKeyword)),e.R7$(5),e.SpI("V. ",e.bMT(106,108,"str_Control_Tender_Buyer_232_Submit_Page_Tender_EstimatedValue"),""),e.R7$(3),e.SpI(" ",e.bMT(110,113,e.i5U(109,110,null==t||null==t.ResultObject?null:t.ResultObject.EstimatedValueThreshold,u.estimatedValueThresholdEnum))," "),e.R7$(6),e.SpI("VI. ",e.bMT(115,115,"str_Control_Tender_Buyer_232_Submit_Page_Tender_EstimatedValue_without_VAT"),""),e.R7$(3),e.SpI(" ",null==t||null==t.ResultObject?null:t.ResultObject.EstimatedValue," "),e.R7$(2),e.SpI(" ",e.bMT(120,117,null==t||null==t.ResultObject?null:t.ResultObject.EstimatedValueHintKeyword)," "),e.R7$(5),e.SpI("VII. ",e.bMT(125,119,"str_Control_Tender_Buyer_232_Submit_Page_Tender_Currency"),""),e.R7$(3),e.SpI(" ",e.bMT(129,124,e.i5U(128,121,null==t||null==t.ResultObject?null:t.ResultObject.CurrencyType,u.currencyType))," "),e.R7$(6),e.SpI("VIII. ",e.bMT(134,126,"str_Control_funding_source"),""),e.R7$(2),e.Y8G("ngIf",null===(null==t||null==t.ResultObject?null:t.ResultObject.FundingSource))("ngIfElse",r),e.R7$(3),e.Y8G("ngIf",1===(null==t||null==t.ResultObject?null:t.ResultObject.FundingSource)||u.showFundingPrograms),e.R7$(4),e.SpI("IX. ",e.bMT(143,128,"str_Control_award_method"),""),e.R7$(3),e.Y8G("ngIf",null==t||null==t.ResultObject?null:t.ResultObject.AwardMethod)("ngIfElse",o),e.R7$(6),e.SpI("X. ",e.bMT(152,130,"str_Control_Tender_Buyer_232_Submit_Page_Tender_CpvCodes"),""),e.R7$(4),e.Y8G("ngForOf",null==t||null==t.ResultObject?null:t.ResultObject.RegistrationFormCpvCodes),e.R7$(2),e.JRh(e.bMT(158,132,null==t||null==t.ResultObject?null:t.ResultObject.RegistrationFormCpvCodesHintKeyword)),e.R7$(5),e.SpI("XI. ",e.bMT(163,134,"str_Control_Tender_Buyer_232_Submit_Page_Tender_RenewalEnvisaged"),""),e.R7$(3),e.Y8G("ngIf",null==t||null==t.ResultObject?null:t.ResultObject.Renewal)("ngIfElse",s),e.R7$(6),e.SpI("XII. ",e.bMT(172,136,"str_Control_Tender_Buyer_232_Submit_Page_Tender_OptionsEnvisaged"),""),e.R7$(3),e.Y8G("ngIf",null==t||null==t.ResultObject?null:t.ResultObject.Options)("ngIfElse",d),e.R7$(6),e.SpI("XIII. ",e.bMT(181,138,"str_Control_Tender_Buyer_232_Submit_Page_Tender_AccelerationsEnvisaged"),""),e.R7$(3),e.Y8G("ngIf",null==t||null==t.ResultObject?null:t.ResultObject.Acceleration)("ngIfElse",a),e.R7$(6),e.SpI("XIV. ",e.bMT(190,140,"str_Control_Tender_Buyer_232_Submit_Page_Tender_HighRiskDuration"),""),e.R7$(3),e.Y8G("ngTemplateOutlet",p),e.R7$(6),e.SpI("XV. ",e.bMT(199,142,"str_Control_Tender_Buyer_232_Submit_Page_Tender_HighRiskCpv"),""),e.R7$(3),e.SpI(" ",e.bMT(203,147,e.i5U(202,144,null==t||null==t.ResultObject?null:t.ResultObject.HighRiskCpv,u.highRiskCpvEnum))," "),e.R7$(3),e.Y8G("ngIf",u.showSecondPhaseOfRiskFactors),e.R7$(),e.Y8G("ngIf",u.showSecondPhaseOfRiskFactors),e.R7$(),e.Y8G("ngIf",u.showSecondPhaseOfRiskFactors),e.R7$(),e.Y8G("ngIf",u.showSecondPhaseOfRiskFactors),e.R7$(4),e.JRh(e.bMT(212,149,"str_Control_Tender_Buyer_232_Submit_Page_Hint")),e.R7$(2),e.Y8G("ngIf",!u.isGeneratingFormPdf),e.R7$(),e.Y8G("ngIf",u.isGeneratingFormPdf)}}function pt(n,i){if(1&n&&(e.qex(0),e.DNE(1,_t,215,151,"div",7),e.nI1(2,"async"),e.bVm()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",e.bMT(2,1,t.regFormInfoResult$))}}let gt=(()=>{class n extends F.cK{constructor(t,r,o,s,d,a,p,u,b,C,v,D,x,w,H,q,Z,Nc){super(t),this.dialogService=r,this.tenderStoreService=o,this.changeDetectorRef=s,this.router=d,this.route=a,this.routerStoreService=p,this.tenderGuard=u,this.controlService=b,this.documentService=C,this.utilsService=v,this.userStoreService=D,this.organizationStoreService=x,this.fb=w,this.controlRelatedDocumentService=H,this.scrollService=q,this.notificationService=Z,this.systemSettingsStoreService=Nc,this.selectedTenderId$=this.routerStoreService.getIdFromParams(this.route.paramMap,"id"),this.isReceivedRegFormValid=!1,this.procedureTypeEnum=NX1.Model.Enums.ProcedureType,this.typeOfContractEnum=NX1.Model.Enums.TypeOfContract,this.estimatedValueThresholdEnum=NX1.Model.Enums.EstimatedValueThreshold,this.fundingSourceEnum=NX1.Model.Enums.FundingSource,this.awardMethodEnum=NX1.Model.Enums.Control232AwardMethod,this.activityTypeGroupEnum=NX1.Model.Enums.ActivityTypeGroup,this.currencyType=NX1.Model.Enums.CurrencyType,this.renewalEnum=NX1.Model.Enums.RenewalSelection,this.optionsEnum=NX1.Model.Enums.OptionsSelection,this.accelerationEnum=NX1.Model.Enums.AcceleratedSelection,this.durationEnum=NX1.Model.Enums.TenderDuration,this.highRiskCpvEnum=NX1.Model.Enums.HighRiskCpv,this.strategicProcurementEnum=NX1.Model.Enums.StrategicProcurementSelection,this.highCancellationRateEnum=NX1.Model.Enums.HighCancellationRateSelection,this.noPublicationProceduresFrequencyEnum=NX1.Model.Enums.NoPublicationProceduresFrequencySelection,this.onlyOneOfferFrequencyEnum=NX1.Model.Enums.OnlyOneOfferFrequencySelection,this.show
1FundingPrograms=!1,this.isGeneratingFormPdf=!1,this.showOverlay=!0,this.toolBreadcrumbPath=[{keyword:"str_Tender_control_232",url:[".."]}],this.canEdit=!0,this.EstimatedValue=new c.hs("",[c.k0.required]),this.FundingProgramId=new c.hs("",[c.k0.required]),this.FundingSource=new c.hs("",[c.k0.required]),this.Email=new c.hs("",[c.k0.required]),this.AwardMethodControl=new c.hs(NX1.Model.Enums.Control232AwardMethod.None),this.RenewalControl=new c.hs(NX1.Model.Enums.RenewalSelection.None),this.OptionsControl=new c.hs(NX1.Model.Enums.OptionsSelection.None),this.AccelerationControl=new c.hs(NX1.Model.Enums.AcceleratedSelection.None),this.DurationControl=new c.hs(NX1.Model.Enums.TenderDuration.None),this.controlForm=new c.J3({EstimatedValue:this.EstimatedValue,FundingProgramId:this.FundingProgramId,FundingSource:this.FundingSource,AwardMethod:this.AwardMethodControl,Renewal:this.RenewalControl,Options:this.OptionsControl,Acceleration:this.AccelerationControl,Duration:this.DurationControl}),this.showFundingSourceValidation=!0,this.showFundingProgramValidation=!0,this.emailValid=!0,this.pattern=new RegExp(X.c.regExp.email),this.showSecondPhaseOfRiskFactors=!1,this.subscriptions=[]}ngOnInit(){this.controlForm=this.fb.group({EstimatedValue:this.EstimatedValue,FundingSource:this.FundingSource,FundingProgramId:this.FundingProgramId,_Emails:this.fb.array([this.fb.group({email:""})]),AwardMethod:this.AwardMethodControl,Renewal:this.RenewalControl,Options:this.OptionsControl,Acceleration:this.AccelerationControl,Duration:this.DurationControl}),this.AwardMethodControl.setValidators([this.awardMethodControlValidatorFactory()]),this.AwardMethodControl.markAsTouched(),this.RenewalControl.setValidators([this.renewalControlValidatorFactory()]),this.RenewalControl.markAsTouched(),this.OptionsControl.setValidators([this.optionsControlValidatorFactory()]),this.OptionsControl.markAsTouched(),this.AccelerationControl.setValidators([this.accelerationControlValidatorFactory()]),this.AccelerationControl.markAsTouched(),this.DurationControl.setValidators([this.durationControlValidatorFactory()]),this.DurationControl.markAsTouched(),this.contractingAuthorityTypes$=this.utilsService.getContractingAuthorityTypes(),this.tender$=this.tenderStoreService.getCurrentTender();const t=this.tender$.subscribe(o=>{this.tender=o,this.controlService.refreshTenderControlDataInTheStore(this.tender.Id)});this.regFormInfoResult$=this.controlService.getNewRandomSelectionSystemRegistrationForm(this.tender.Id);const r=this.regFormInfoResult$.subscribe(o=>{this.regForm=this.controlService.UnwrapValidationResult(o,this.dialogService),this.isReceivedRegFormValid=o.IsValid,o.IsValid?(this.showSecondPhaseOfRiskFactors=this.regForm.RiskFactorsStage,this.fundingPrograms$=this.controlService.retrieveFundingPrograms(!0),this.subscriptions.push(this.fundingPrograms$.subscribe(s=>{this.fundingProgram=s.find(d=>d.Id===this.regForm.FundingProgramId),this.showFundingProgramValidation=!1,this.changeDetectorRef.markForCheck()})),this.controlForm=this.fb.group({EstimatedValue:this.regForm.EstimatedValue,FundingSource:this.regForm.FundingSource,FundingProgramId:this.regForm.FundingProgramId,_Emails:this.fb.array([this.fb.group({email:""})]),AwardMethod:this.AwardMethodControl,Renewal:this.RenewalControl,Options:this.OptionsControl,Acceleration:this.AccelerationControl,Duration:this.DurationControl}),this.AwardMethodControl.setValue(this.regForm.AwardMethod),this.RenewalControl.setValue(this.regForm.Renewal),this.OptionsControl.setValue(this.regForm.Options),this.AccelerationControl.setValue(this.regForm.Acceleration),this.DurationControl.setValue(this.regForm.Duration),this.onChangeFundingSource(this.regForm.FundingSource?this.regForm.FundingSource.toString():null),this.changeDetectorRef.markForCheck()):this.changeDetectorRef.markForCheck()});this.subscriptions.push(t,r)}get emails(){return this.controlForm.get("_Emails")}addEmail(){this.emails.push(this.fb.group({email:""})),this.emailValid=!1}deleteEmail(t){this.emails.removeAt(t),this.emailValid=!0}getContractingAuthorityTypeById(t,r){let o;for(const s of t)if(s.Id===r){o=s;break}return o}ngOnDestroy(){for(const t of this.subscriptions)t.unsubscribe()}onSave(){let t;if(this.controlForm.valid){const r=this.controlService.getNewRandomSelectionSystemRegistrationForm(this.tender.Id).subscribe(o=>{this.regForm=o.ResultObject,this.resultForm=Object.assign({},this.regForm,this.controlForm.value),r.unsubscribe()});this.isEdit=!1,t=!0}else this.markAsTouched(this.controlForm),t=!1;return t}onCancel(){this.isChanged?this.confirmCancel():(this.cancel.emit(this),this.toggleEdit(!1),this.controlForm.reset(this.model))}confirmCancel(){const t=this.dialogService.confirm({titleKeyword:"str_C
1ommon_are_you_sure",textContentKeyword:"str_Common_local_changes_will_be_lost",confirmationType:"alert",cancelKeyword:"str_Common_cancel",okKeyword:"str_Common_confirm",requirePassword:!1,showCheckbox:!1}).subscribe(r=>{r.confirmed&&(this.isChanged=!1,this.cancel.emit(this),this.toggleEdit(!1),this.controlForm.reset(this.model),this.changeDetectorRef.markForCheck()),t.unsubscribe()})}setInitialValue(){this.controlForm.reset(this.model)}onChangeFundingSource(t){this.controlForm.value.FundingSource?(this.showFundingSourceValidation=!1,this.changeDetectorRef.markForCheck()):this.showFundingSourceValidation=!0,"1"===t?(this.showFundingPrograms=!0,this.showFundingProgramValidation=!0,this.changeDetectorRef.markForCheck()):(this.showFundingPrograms=!1,this.controlForm.value.FundingProgramId=null,this.FundingProgramId=null,this.showFundingProgramValidation=!1,this.changeDetectorRef.markForCheck())}onChangeFundingProgram(t){this.controlForm.value.FundingSource?(this.showFundingProgramValidation=!1,this.changeDetectorRef.markForCheck()):this.showFundingProgramValidation=!0}sendRegForm(t){let r=!1;if(!this.showFundingSourceValidation&&("1"!==this.controlForm.value.FundingSource.toString()||!this.showFundingProgramValidation)&&this.checkEmailsValidation()&&(r=!0),!r||!this.AwardMethodControl.valid)return void this.notificationService.open("str_Control_ErrorDuringOperation","",{});if(!r||!this.RenewalControl.valid)return void this.notificationService.open("str_Control_ErrorDuringOperation","",{});if(!r||!this.OptionsControl.valid)return void this.notificationService.open("str_Control_ErrorDuringOperation","",{});if(!r||!this.AccelerationControl.valid)return void this.notificationService.open("str_Control_ErrorDuringOperation","",{});if(!r||!this.DurationControl.valid)return void this.notificationService.open("str_Control_ErrorDuringOperation","",{});t.FundingSource=this.controlForm.value.FundingSource,t.FundingProgramId=this.controlForm.value.FundingProgramId,t.EstimatedValue=this.controlForm.value.EstimatedValue,t.AwardMethod=this.controlForm.value.AwardMethod,t.Renewal=this.controlForm.value.Renewal,t.Options=this.controlForm.value.Options,t.Acceleration=this.controlForm.value.Acceleration,t.Duration=this.controlForm.value.Duration;for(let d=0;d<this.controlForm.value._Emails.length;d++)for(const a in this.controlForm.value._Emails[d])null!==a&&this.controlForm.value._Emails[d][a]&&this.pattern.test(this.controlForm.value._Emails[d][a])&&t.EmailAddressesList.push(this.controlForm.value._Emails[d][a]);this.isGeneratingFormPdf=!0,this.changeDetectorRef.markForCheck(),setTimeout(()=>this.scrollService.scrollToBottom());const s=this.controlService.saveRandomSelectionSystemRegistrationForm(t).subscribe(d=>{this.onAddDocument(d.SignedPdfDocumentId),s.unsubscribe()})}onChange(){this.triggerValidation()}triggerValidation(){this.EstimatedValue.markAsTouched(),this.FundingProgramId.markAsTouched(),this.FundingSource.markAsTouched()}onCheckEmail(t){this.emailValid=!!this.pattern.test(t)}checkEmailsValidation(){for(let t=0;t<this.controlForm.value._Emails.length;t++)for(const r in this.controlForm.value._Emails[t])if(null!==r&&this.controlForm.value._Emails[t][r]){if(this.pattern.test(this.controlForm.value._Emails[t][r]))return this.emailValid=!0,this.changeDetectorRef.markForCheck(),!0}else if(null!==r&&""===this.controlForm.value._Emails[t][r])return this.emailValid=!0,this.changeDetectorRef.markForCheck(),!0;return this.emailValid=!1,this.changeDetectorRef.markForCheck(),!1}onAddDocument(t){const r={},o=[],s=this.tenderStoreService.getCurrentTender().subscribe(d=>{r.ControlType=NX1.Model.Enums.ControlType.ByArticle232,r.ControlContextId=null,r.DocumentId=t,r.ControlRelatedDocumentType=NX1.Model.Enums.ControlRelatedDocumentType.ControlByArticle232RegistrationForm,r.TenderId=d.Id,o.push(r),this.controlRelatedDocumentService.createDescriptors(o).subscribe(p=>{this.router.navigate(["/tender",this.tender.Id,"buyer","control","form232-document-submission"])})});this.subscriptions.push(s)}awardMethodControlValidatorFactory(){return t=>Number(t.value)>0?null:{required:!1}}renewalControlValidatorFactory(){return t=>Number(t.value)>0?null:{required:!1}}optionsControlValidatorFactory(){return t=>Number(t.value)>0?null:{required:!1}}durationControlValidatorFactory(){return t=>Number(t.value)>0?null:{required:!1}}accelerationControlValidatorFactory(){return t=>Number(t.value)>0?null:{required:!1}}static{this.\u0275fac=function(r){return new(r||n)(e.rXU(e.c1b),e.rXU(h.o3),e.rXU(l.$gx),e.rXU(e.gRc),e.rXU(g.Ix),e.rXU(g.nX),e.rXU(l.o9Y),e.rXU(R.U),e.rXU(l.het),e.rXU(l.DKw),e.rXU(l.TJO),e.rXU(l.wk1),e.rXU(l.iB2),e.rXU(c.ze),e.rXU(l.N$f),e.rXU(l.bk9),e.rXU(te.L),e.rXU(l.dqT))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["nx1-tender-buyer-control-232"]],inputs:{canEdit:"canEdit",nameVersions:"nameVersions"},features:[e.Vt3],decls:1,vars:1,consts:[["elseBlockFunding",""],["selectAwardMethodTemplate",""],["selectRenewalTemplate",""],["selectOptionsTemplate",""],["selectAccelerationTemplate",""],["selectDurationTemplate",""],["elseBlockFundingProgram",""],[4,"ngIf"],[1,"nxcard","margin--bottom-20","bg--white","z1",2,"margin-top","10px"],[1,"nxcard__body","nxcard__body--no-scroll"],[1,"personalinfo-container","padding--20",2,"text-align","center"],[1,"text--bold",2,"margin-bottom","10px"],[3,"formGroup"],[1,"nxcard","margin--bottom-20","bg--white","z1"],[1,"nxcard__header"],[1,"nxcard__header-title"],[1,"nxcard__header-title-content"],[1,"border--bottom","nxcard__body-row"],[1,"break-word","col-md-4","col-xs-6","nxcard__body-cell","overflow-hidden"],[1,"profile-label"],[1,"col-md-8","col-xs-6","nxcard__body-cell","break-word"],[1,"text--bold","text--20px"],[1,"text--15px","text--normal","text--emerald0"],[1,"text--emerald0","text--15px","text--normal"],["class","text--bold text--20px",4,"ngFor","ngForOf"],["formArrayName","_Emails"],[3,"formGroupName",4,"ngFor","ngForOf"],["mat-button","","type","button",3,"click"],[1,"mdi","mdi-plus-circle-outline"],["class","text--rose-1 text--13px text--normal",4,"ngIf"],[1,"col-md-8","col-xs-6","nxcard__body-cell"],[1,"col-md-8","col-xs-6","nxcard__body-cell","text--bold","text--20px"],["class","col-md-8 col-xs-6 nxcard__body-cell",4,"ngIf","ngIfElse"],["class","border--bottom nxcard__body-row",4,"ngIf"],[4,"ngIf","ngIfElse"],[4,"ngFor","ngForOf"],[4,"ngTemplateOutlet"],[1,"nxcard__footer","display--flex","padding--10"],[1,"pos--relative","flex-element--right","flex-row","margin--right-10"],[1,"margin--10","text--15px","text--blueberry-1"],["class","pos--relative flex-element--right flex-row margin--right-10",4,"ngIf"],["class","overlay-loading pos--relative flex-element--right flex-row margin--right-10",3,"overlay-loading--show",4,"ngIf"],[3,"formGroupName"],[1,"nxcard__body-row"],[1,"col-md-8","col-xs-6","nxcard__body-cell","break-word","no-border"],["formControlName","email",1,"form-control",3,"keyup"],[1,"break-word","col-md-4","col-xs-6","nxcard__body-cell"],[1,"mdi","mdi-window-close"],[1,"text--rose-1","text--13px","text--normal"],[1,""],["formControlName","FundingSource",1,"form-control","input-wrapper",3,"change"],["selected","",3,"value",4,"ngFor","ngForOf"],[3,"parentId","control"],["selected","",3,"value"],["formControlName","FundingProgramId",1,"form-control",3,"change"],[1,"form-control",3,"formControl"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mdi","mdi-table-cog"],[1,"overlay-loading","pos--relative","flex-element--right","flex-row","margin--right-10"],[3,"diameter"]],template:function(r,o){1&r&&e.DNE(0,pt,3,3,"ng-container",7),2&r&&e.Y8G("ngIf",o.isReceivedRegFormValid)},dependencies:[m.Sq,m.bT,m.T3,c.qT,c.xH,c.y7,c.me,c.wz,c.BC,c.cb,c.l_,c.j4,c.JD,c.$R,c.v8,S.iV,k.wS,V.l,m.Jj,I.D9,T.MB,T.R9],styles:["[_nghost-%COMP%]{display:block}.text-crimson[_ngcontent-%COMP%]{color:#dc143c}.menu-action[_ngcontent-%COMP%]{display:flex;justify-content:center;height:11px;text-align:center;position:relative;margin:5px 0}.menu-action__line[_ngcontent-%COMP%]{display:block;position:absolute;top:50%;transform:translateY(-50%);width:100%;left:0;border-top:1px solid rgba(0,0,0,.1);opacity:0;transition:opacity .35s}.menu-action__wrapper[_ngcontent-%COMP%]{height:30px;position:relative;z-index:2;transform:translateY(-50%);top:50%;opacity:0;transition:opacity .35s}.menu-action__button[_ngcontent-%COMP%]{height:30px;line-height:30px!important}.menu-action[_ngcontent-%COMP%]:hover .menu-action__line[_ngcontent-%COMP%], .menu-action[_ngcontent-%COMP%]:hover .menu-action__wrapper[_ngcontent-%COMP%]{opacity:1}"],changeDetection:0})}}return n})();var O=_(7673),f=_(96697),ne=_(99437);function ht(n,i){if(1&n&&(e.j41(0,"option",28),e.EFF(1),e.k0s()),2&n){const t=i.$implicit;e.FS9("value",t.Id),e.R7$(),e.SpI(" ",null==t?null:t.Mnemonic," ")}}function bt(n,i){if(1&n&&(e.j41(0,"option",28),e.EFF(1),e.k0s()),2&n){const t=i.$implicit;e.FS9("value",t.Id),e.R7$(),e.SpI(" ",null==t?null:t.Mnemonic," ")}}function Ct(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",29)(1,"label"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",30)(5,"div",31)(6,"input",32),e.bIt("keyup",function(o){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onCheckEmail(o.target.value))}),e.k0s()(),e.j41(7,"div",33)(8,"button",22),e.bIt("click",function(){const o=e.eBV(t).index,s=e.XpG(2);return e.Njj(s.deleteEmail(o))}),e.nrm(9,"i",34),e.k0s()()()()}2&n&&(e.Y8G("formGroupName",i.index),e.R7$(2),e.JRh(e.bMT(3,2,"str_Control_Tender_Buyer_233_Submit_Email_Add")))}function ft(n,i){1&n&&(e.j41(0,"div",35),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"str_Control_Tender_Buyer_233_Submit_Email_Invalid")," "))}function vt(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",36)(1,"button",37),e.bIt("click",function(){e.eBV(t);const o=e.XpG().ngIf,s=e.XpG();return e.Njj(s.sendSubmitForm(o))}),e.nrm(2,"i",38),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}if(2&n){const t=e.XpG(2);e.R7$(3),e.SpI(" ",e.bMT(4,1,t.IsEditExistingForm?"str_Common_save":"str_Control_Tender_Buyer_233_Submit_Button")," ")}}function Dt(n,i){1&n&&(e.j41(0,"div",39),e.nrm(1,"mat-spinner",40),e.k0s()),2&n&&(e.R7$(),e.Y8G("diameter",60))}function It(n,i){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",5)(2,"div",6)(3,"div",7)(4,"div",8)(5,"span"),e.EFF(6),e.nI1(7,"translate"),e.k0s()()()(),e.j41(8,"div",9)(9,"div",10)(10,"label",11),e.EFF(11),e.nI1(12,"translate"),e.k0s()(),e.j41(13,"div",12)(14,"div",13),e.EFF(15),e.k0s()()(),e.j41(16,"div",9)(17,"div",10)(18,"label",11),e.EFF(19),e.nI1(20,"translate"),e.k0s()(),e.j41(21,"div",12)(22,"div",13),e.EFF(23),e.k0s()()(),e.j41(24,"div",9)(25,"div",10)(26,"label",11),e.EFF(27),e.nI1(28,"translate"),e.k0s()(),e.j41(29,"div",12)(30,"div",13),e.EFF(31),e.k0s()()(),e.j41(32,"div",9)(33,"div",10)(34,"label",11),e.EFF(35),e.nI1(36,"translate"),e.k0s()(),e.j41(37,"div",12)(38,"div",13),e.EFF(39),e.k0s()()(),e.j41(40,"div",9)(41,"div",10)(42,"label",11),e.EFF(43),e.nI1(44,"translate"),e.k0s()(),e.j41(45,"div",12)(46,"div",13),e.EFF(47),e.nI1(48,"nx1EnumTranslate"),e.nI1(49,"translate"),e.k0s()()(),e.j41(50,"div",9)(51,"div",10)(52,"label",11),e.EFF(53),e.nI1(54,"translate"),e.k0s()(),e.j41(55,"div",12)(56,"div",13),e.EFF(57),e.nI1(58,"nx1EnumTranslate"),e.nI1(59,"translate"),e.k0s()()()(),e.j41(60,"form",14)(61,"div",5)(62,"div",6)(63,"div",7)(64,"div",8)(65,"span"),e.EFF(66),e.nI1(67,"translate"),e.k0s()()()(),e.j41(68,"div",9)(69,"div",10)(70,"label",11),e.EFF(71),e.nI1(72,"translate"),e.k0s()(),e.j41(73,"div",12),e.
1EFF(74),e.nI1(75,"translate"),e.k0s()(),e.j41(76,"div",9)(77,"div",10)(78,"label",11),e.EFF(79),e.nI1(80,"translate"),e.k0s()(),e.j41(81,"div",12)(82,"select",15),e.bIt("change",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.onChange())}),e.DNE(83,ht,2,2,"option",16),e.nI1(84,"async"),e.k0s(),e.nrm(85,"nx1-form-control-messages",17),e.k0s()(),e.j41(86,"div",9)(87,"div",10)(88,"label",11),e.EFF(89),e.nI1(90,"translate"),e.k0s()(),e.j41(91,"div",12)(92,"select",18),e.bIt("change",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.onChange())}),e.j41(93,"option",19),e.EFF(94),e.nI1(95,"translate"),e.k0s(),e.DNE(96,bt,2,2,"option",16),e.nI1(97,"async"),e.k0s(),e.nrm(98,"nx1-form-control-messages",17),e.k0s()(),e.j41(99,"div",9)(100,"div",10)(101,"label",11),e.EFF(102),e.nI1(103,"translate"),e.k0s()(),e.j41(104,"div",12)(105,"div",20),e.DNE(106,Ct,10,4,"div",21),e.j41(107,"button",22),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.addEmail())}),e.nrm(108,"i",23),e.k0s(),e.DNE(109,ft,3,3,"div",24),e.k0s()()(),e.j41(110,"div",25),e.DNE(111,vt,5,3,"div",26)(112,Dt,2,1,"div",27),e.k0s()()()()}if(2&n){const t=i.ngIf,r=e.XpG();e.R7$(6),e.SpI("I. ",e.bMT(7,31,"str_Control_Tender_Buyer_233_Submit_Identification"),""),e.R7$(5),e.SpI("1. ",e.bMT(12,33,"str_Control_Tender_Buyer_233_Submit_Tender_SpecialNumber"),""),e.R7$(4),e.JRh(null==t?null:t.SpecialNumber),e.R7$(4),e.SpI("2. ",e.bMT(20,35,"str_Control_Tender_Buyer_233_Submit_TenderBuyer_Name"),""),e.R7$(4),e.JRh(null==t?null:t.ContractingAuthorityName),e.R7$(4),e.SpI("3. ",e.bMT(28,37,"str_Control_Tender_Buyer_233_Submit_TenderSubject"),""),e.R7$(4),e.JRh(null==t?null:t.TenderName),e.R7$(4),e.SpI("4. ",e.bMT(36,39,"str_Control_Tender_Buyer_233_Submit_Tender_EstimatedValue"),""),e.R7$(4),e.JRh(null==t?null:t.TenderEstimatedValue),e.R7$(4),e.SpI("5. ",e.bMT(44,41,"str_Control_Tender_Buyer_232_Submit_Page_Tender_Currency"),""),e.R7$(4),e.JRh(e.bMT(49,46,e.i5U(48,43,null==t?null:t.TenderCurrency,r.currencyType))),e.R7$(6),e.SpI("6. ",e.bMT(54,48,"str_Control_Tender_Buyer_233_Submit_Tender_TypeOfContract"),""),e.R7$(4),e.SpI(" ",e.bMT(59,53,e.i5U(58,50,null==t?null:t.TenderTypeOfContract,r.typeOfContractEnum))," "),e.R7$(3),e.Y8G("formGroup",r.submitForm),e.R7$(6),e.SpI("II.",e.bMT(67,55,"str_Control_Tender_Buyer_233_Submit_ControlData"),""),e.R7$(5),e.SpI("1. ",e.bMT(72,57,"str_Control_Tender_Buyer_233_Submit_ControlType"),""),e.R7$(3),e.SpI(" ",e.bMT(75,59,"str_Control_Tender_Buyer_233_Submit_ControlType_Value")," "),e.R7$(5),e.SpI("2. ",e.bMT(80,61,"str_Control_Tender_Buyer_233_Submit_LegalBase"),""),e.R7$(4),e.Y8G("ngForOf",e.bMT(84,63,r.legalBases233$)),e.R7$(2),e.Y8G("parentId",r.getId("LegalBaseId"))("control",r.LegalBaseId),e.R7$(4),e.SpI("3. ",e.bMT(90,65,"str_Control_Tender_Buyer_233_Submit_Tender_FundingProgram"),""),e.R7$(5),e.SpI(" ",e.bMT(95,67,"str_Control_Tender_Buyer_233_Submit_Tender_NoFundingProgram")," "),e.R7$(2),e.Y8G("ngForOf",e.bMT(97,69,r.fundingPrograms$)),e.R7$(2),e.Y8G("parentId",r.getId("FundingProgramId"))("control",r.FundingProgramId),e.R7$(4),e.SpI("4. ",e.bMT(103,71,"str_Control_Tender_Buyer_233_Submit_Email"),""),e.R7$(4),e.Y8G("ngForOf",r.emails.controls),e.R7$(3),e.Y8G("ngIf",!r.emailValid||!r.checkEmailsValidation()),e.R7$(2),e.Y8G("ngIf",!r.isSubmittingForm),e.R7$(),e.Y8G("ngIf",r.isSubmittingForm)}}var L=function(n){return n[n.CreateNewForm=0]="CreateNewForm",n[n.EditExistingForm=1]="EditExistingForm",n}(L||{});let oe=(()=>{class n extends F.$G{constructor(t,r,o,s,d,a,p,u,b,C,v,D,x,w){super(t),this.tenderStoreService=r,this.changeDetectorRef=o,this.router=s,this.route=d,this.routerStoreService=a,this.tenderGuard=p,this.controlService=u,this.controlStoreService=b,this.documentService=C,this.utilsService=v,this.userStoreService=D,this.organizationStoreService=x,this.fb=w,this.toolBreadcrumbPath=[{keyword:"str_Tender_control_232",url:[".."]}],this.fundingSourceEnum=NX1.Model.Enums.FundingSource,this.showFundingPrograms=!1,this.currencyType=NX1.Model.Enums.CurrencyType,this.controlType="233",this.typeOfContractEnum=NX1.Model.Enums.TypeOfContract,this.uploadedZipDocuments=!1,this.uploadedAccLetterDocument=!1,this.selectedTenderId$=this.routerStoreService.getIdFromParams(this.route.paramMap,"id"),this.result233={},this.LegalBaseId=new c.hs("",[c.k0.required]),this.FundingSource=new c.hs("",[c.k0.required]),this.FundingProgramId=new c.hs("",[c.k0.required]),this.submitForm=new c.J3({LegalBase:this.LegalBaseId,FundingSource:this.FundingSource,OperationalProgram:this.FundingProgramId}),this.EmailPattern=new RegExp(X.c.regExp.email),this.emailValid=!0,this.emailValidCopy=!0,this.isSubmittingForm=!1,this.subscriptions=[]}get IsEditExistingForm(){return this.mode===L.EditExistingForm}ngOnInit(){this.route.paramMap.pipe((0,f.s)(1)).subscribe(t=>{const r=parseInt(t.get("form233Id"),10);Number.isFinite(r)?this.controlService.getControl233FormById(r,!0).pipe((0,f.s)(1),(0,ne.W)(o=>(0,O.of)(null))).subscribe(o=>null!==o?this.PostInitFormEdit(o):this.NoFormRedirect()):this.PostInitNewForm()})}ngOnDestroy(){for(const t of this.subscriptions)t.unsubscribe()}get emails(){return this.submitForm.get("_Emails")}addEmail(){this.emails.push(this.fb.group({email:""})),this.emailValid=!1}deleteEmail(t){this.emails.removeAt(t),this.emailValid=!0}onChange(){this.triggerValidation()}triggerValidation(){this.LegalBaseId.markAsTouched(),this.FundingSource.markAsTouched(),this.FundingProgramId.markAsTouched()}onCheckEmail(t){this.emailValid=!!this.EmailPattern.test(t)}checkEmailsValidation(){for(let t=0;t<this.submitForm.value._Emails.length;t++)for(const r in this.submitForm.value._Emails[t])if(null!==r&&this.submitForm.value._Emails[t][r]&&this.EmailPattern.test(this.submitForm.value._Emails[t][r]))return!0;return!1}
1sendSubmitForm(t){if(this.triggerValidation(),this.submitForm.valid&&this.emailValid&&this.checkEmailsValidation()){this.result233.LegalBaseId=this.submitForm.value.LegalBaseId,this.result233.FundingProgramId="null"===this.submitForm.value.FundingProgramId?null:this.submitForm.value.FundingProgramId,this.result233.TenderId=this.tender.Id,this.result233.EmailAddressesList=[];for(let o=0;o<this.submitForm.value._Emails.length;o++)for(const s in this.submitForm.value._Emails[o])null!==s&&this.submitForm.value._Emails[o][s]&&this.EmailPattern.test(this.submitForm.value._Emails[o][s])&&this.result233.EmailAddressesList.push(this.submitForm.value._Emails[o][s]);this.result233.FormAdditionalData=t,this.result233.IsEUFunded="null"!==this.submitForm.value.FundingProgramId,this.isSubmittingForm=!0;const r=this.controlService.saveControl233Form(this.result233).subscribe(o=>{r.unsubscribe(),this.tenderStoreService.loadTenderControlData(this.tender.Id),this.isSubmittingForm=!1,this.router.navigate(["/tender",this.tender.Id,"buyer","control","selected233"])})}}PostInitFormEdit(t){t.ActivityStatus=NX1.Model.Enums.ActionStatus.Edit,this.result233=t,this.mode=L.EditExistingForm,this.LegalBaseId.setValue(t.LegalBaseId),this.FundingProgramId.setValue(Number.isFinite(t.FundingProgramId)?t.FundingProgramId:"null"),this.submitForm=this.fb.group({LegalBaseId:this.LegalBaseId,FundingProgramId:this.FundingProgramId,_Emails:this.fb.array(t.EmailAddressesList.map(r=>this.fb.group({email:r})))}),this.tender$=this.tenderStoreService.getCurrentTender(),this.tender$.pipe((0,f.s)(1)).subscribe(r=>{this.tender=r,this.controlService.refreshTenderControlDataInTheStore(this.tender.Id)}),this.additionalData$=(0,O.of)(t.FormAdditionalData),this.fundingPrograms$=this.controlService.retrieveFundingPrograms(!0),this.legalBases233$=this.controlService.retrieveLegalBasesByControlType(NX1.Model.Enums.ControlType.ByArticle233,!0),this.changeDetectorRef.markForCheck()}PostInitNewForm(){this.mode=L.CreateNewForm,this.submitForm=this.fb.group({LegalBaseId:this.LegalBaseId,FundingProgramId:this.FundingProgramId,_Emails:this.fb.array([this.fb.group({email:""})])}),this.tender$=this.tenderStoreService.getCurrentTender(),this.tender$.pipe((0,f.s)(1)).subscribe(t=>{this.tender=t,this.controlService.refreshTenderControlDataInTheStore(this.tender.Id)}),this.additionalData$=this.controlService.getControl233And235AdditionalData(this.tender.Id),this.fundingPrograms$=this.controlService.retrieveFundingPrograms(!0),this.legalBases233$=this.controlService.retrieveLegalBasesByControlType(NX1.Model.Enums.ControlType.ByArticle233,!0),this.changeDetectorRef.markForCheck()}NoFormRedirect(){this.router.navigate(["../../"],{relativeTo:this.route})}static{this.\u0275fac=function(r){return new(r||n)(e.rXU(e.c1b),e.rXU(l.$gx),e.rXU(e.gRc),e.rXU(g.Ix),e.rXU(g.nX),e.rXU(l.o9Y),e.rXU(R.U),e.rXU(l.het),e.rXU(l.CFu),e.rXU(l.DKw),e.rXU(l.TJO),e.rXU(l.wk1),e.rXU(l.iB2),e.rXU(c.ze))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["nx1-tender-buyer-control-233"]],features:[e.Vt3],decls:8,vars:6,consts:[[1,"nxcard","margin--bottom-20","bg--white","z1",2,"margin-top","10px"],[1,"nxcard__body","nxcard__body--no-scroll"],[1,"personalinfo-container","padding--20",2,"text-align","center"],[1,"text--bold",2,"margin-bottom","10px"],[4,"ngIf"],[1,"nxcard","margin--bottom-20","bg--white","z1"],[1,"nxcard__header"],[1,"nxcard__header-title"],[1,"nxcard__header-title-content"],[1,"border--bottom","nxcard__body-row"],[1,"break-word","col-md-4","col-xs-6","nxcard__body-cell","overflow-hidden"],[1,"profile-label"],[1,"col-md-8","col-xs-6","nxcard__body-cell","break-word"],[1,"text--bold","text--20px"],[3,"formGroup"],["formControlName","LegalBaseId",1,"form-control",3,"change"],["selected","",3,"value",4,"ngFor","ngForOf"],[3,"parentId","control"],["formControlName","FundingProgramId",1,"form-control",3,"change"],["value","null","selected",""],["formArrayName","_Emails"],[3,"formGroupName",4,"ngFor","ngForOf"],["mat-button","","type","button",3,"click"],[1,"mdi","mdi-plus-circle-outline"],["class","text--rose-1 text--13px text--normal",4,"ngIf"],[1,"nxcard__footer","display--flex","padding--10"],["class","pos--relative flex-element--right flex-row margin--right-10",4,"ngIf"],["class","overlay-loading pos--relative flex-element--right flex-row margin--right-10",4,"ngIf"],["selected","",3,"value"],[3,"formGroupName"],[1,"nxcard__body-row"],[1,"col-md-8","col-xs-6","nxcard__body-cell","break-word","no-border"],["formControlName","email",1,"form-control",3,"keyup"],[1,"break-word","col-md-4","col-xs-6","nxcard__body-cell"],[1,"mdi","mdi-window-close"],[1,"text--rose-1","text--13px","text--normal"],[1,"pos--relative","flex-element--right","flex-row","margin--right-10"],["mat-button","",3,"click"],[1,"mdi","mdi-table-cog"],[1,"overlay-loading","pos--relative","flex-element--right","flex-row","margin--right-10"],[3,"diameter"]],template:function(r,o){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),e.
1EFF(4),e.nI1(5,"translate"),e.k0s()()()(),e.DNE(6,It,113,73,"div",4),e.nI1(7,"async")),2&r&&(e.R7$(4),e.JRh(e.bMT(5,2,"str_Control_Tender_Buyer_233_Submit_Page_Title")),e.R7$(2),e.Y8G("ngIf",e.bMT(7,4,o.additionalData$)))},dependencies:[m.Sq,m.bT,c.qT,c.xH,c.y7,c.me,c.wz,c.BC,c.cb,c.j4,c.JD,c.$R,c.v8,S.iV,k.wS,V.l,m.Jj,I.D9,T.R9],styles:["[_nghost-%COMP%]{display:block}.text-crimson[_ngcontent-%COMP%]{color:#dc143c}.menu-action[_ngcontent-%COMP%]{display:flex;justify-content:center;height:11px;text-align:center;position:relative;margin:5px 0}.menu-action__line[_ngcontent-%COMP%]{display:block;position:absolute;top:50%;transform:translateY(-50%);width:100%;left:0;border-top:1px solid rgba(0,0,0,.1);opacity:0;transition:opacity .35s}.menu-action__wrapper[_ngcontent-%COMP%]{height:30px;position:relative;z-index:2;transform:translateY(-50%);top:50%;opacity:0;transition:opacity .35s}.menu-action__button[_ngcontent-%COMP%]{height:30px;line-height:30px!important}.menu-action[_ngcontent-%COMP%]:hover .menu-action__line[_ngcontent-%COMP%], .menu-action[_ngcontent-%COMP%]:hover .menu-action__wrapper[_ngcontent-%COMP%]{opacity:1}"],changeDetection:0})}}return n})();var St=_(53225);function yt(n,i){if(1&n&&(e.j41(0,"option",37),e.EFF(1),e.k0s()),2&n){const t=i.$implicit;e.FS9("value",t.Id),e.R7$(),e.SpI(" ",null==t?null:t.Mnemonic," ")}}function Tt(n,i){if(1&n&&(e.j41(0,"option",37),e.EFF(1),e.k0s()),2&n){const t=i.$implicit;e.FS9("value",t.Id),e.R7$(),e.SpI(" ",null==t?null:t.Mnemonic," ")}}function Ft(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",38)(1,"label"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",39)(5,"div",40)(6,"input",41),e.bIt("keyup",function(o){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onCheckEmail(o.target.value))}),e.k0s()(),e.j41(7,"div",42)(8,"button",22),e.bIt("click",function(){const o=e.eBV(t).index,s=e.XpG(2);return e.Njj(s.deleteEmail(o))}),e.nrm(9,"i",43),e.k0s()()()()}2&n&&(e.Y8G("formGroupName",i.index),e.R7$(2),e.JRh(e.bMT(3,2,"str_Control_Tender_Buyer_235_Submit_Email_Add")))}function Rt(n,i){1&n&&(e.j41(0,"div",44),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"str_Control_Tender_Buyer_235_Submit_Email_Invalid")," "))}function kt(n,i){if(1&n&&(e.j41(0,"option",45),e.EFF(1),e.nI1(2,"nx1EnumTranslate"),e.nI1(3,"translate"),e.k0s()),2&n){const t=i.$implicit,r=e.XpG(2);e.Y8G("value",t.value),e.R7$(),e.SpI(" ",e.bMT(3,5,e.i5U(2,2,t.value,r.currencyType))," ")}}function xt(n,i){if(1&n&&(e.j41(0,"option",45),e.EFF(1),e.nI1(2,"nx1EnumTranslate"),e.nI1(3,"translate"),e.k0s()),2&n){const t=i.$implicit,r=e.XpG(2);e.Y8G("value",t.value),e.R7$(),e.SpI(" ",e.bMT(3,5,e.i5U(2,2,t.value,r.currencyType))," ")}}function Et(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",46)(1,"button",47),e.bIt("click",function(){e.eBV(t);const o=e.XpG().ngIf,s=e.XpG();return e.Njj(s.sendSubmitForm(o))}),e.nrm(2,"i",48),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}if(2&n){const t=e.XpG(2);e.R7$(3),e.SpI(" ",e.bMT(4,1,t.IsEditExistingForm?"str_Common_save":"str_Control_Tender_Buyer_235_Submit_Button")," ")}}function Bt(n,i){1&n&&(e.j41(0,"div",49),e.nrm(1,"mat-spinner",50),e.k0s()),2&n&&(e.R7$(),e.Y8G("diameter",60))}function $t(n,i){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",5)(2,"div",6)(3,"div",7)(4,"div",8)(5,"span"),e.EFF(6),e.nI1(7,"translate"),e.k0s()()()(),e.j41(8,"div",9)(9,"div",10)(10,"label",11),e.EFF(11),e.nI1(12,"translate"),e.k0s()(),e.j41(13,"div",12)(14,"div",13),e.EFF(15),e.k0s()()(),e.j41(16,"div",9)(17,"div",10)(18,"label",11),e.EFF(19),e.nI1(20,"translate"),e.k0s()(),e.j41(21,"div",12)(22,"div",13),e.EFF(23),e.k0s()()(),e.j41(24,"div",9)(25,"div",10)(26,"label",11),e.EFF(27),e.nI1(28,"translate"),e.k0s()(),e.j41(29,"div",12)(30,"div",13),e.EFF(31),e.k0s()()(),e.j41(32,"div",9)(33,"div",10)(34,"label",11),e.EFF(35),e.nI1(36,"translate"),e.k0s()(),e.j41(37,"div",12)(38,"div",13),e.EFF(39),e.k0s()()(),e.j41(40,"div",9)(41,"div",10)(42,"label",11),e.EFF(43),e.nI1(44,"translate"),e.k0s()(),e.j41(45,"div",12)(46,"div",13),e.EFF(47),e.nI1(48,"nx1EnumTranslate"),e.nI1(49,"translate"),e.k0s()()(),e.j41(50,"div",9)(51,"div",10)(52,"label",11),e.EFF(53),e.nI1(54,"translate"),e.k0s()(),e.j41(55,"div",12)(56,"div",13),e.EFF(57),e.nI1(58,"nx1EnumTranslate"),e.nI1(59,"translate"),e.k0s()()()(),e.j41(60,"form",14)(61,"div",5)(62,"div",6)(63,"div",7)(64,"div",8)(65,"span"),e.EFF(66),e.nI1(67,"translate"),e.k0s()()()(),e.j41(68,"div",9)(69,"div",10)(70,"label",11),e.EFF(71),e.nI1(72,"translate"),e.k0s()(),e.j41(73,"div",12),e.
1EFF(74),e.nI1(75,"translate"),e.k0s()(),e.j41(76,"div",9)(77,"div",10)(78,"label",11),e.EFF(79),e.nI1(80,"translate"),e.k0s()(),e.j41(81,"div",12)(82,"select",15),e.bIt("change",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.onChange())}),e.DNE(83,yt,2,2,"option",16),e.nI1(84,"async"),e.k0s(),e.nrm(85,"nx1-form-control-messages",17),e.k0s()(),e.j41(86,"div",9)(87,"div",10)(88,"label",11),e.EFF(89),e.nI1(90,"translate"),e.k0s()(),e.j41(91,"div",12)(92,"select",18),e.bIt("change",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.onChange())}),e.j41(93,"option",19),e.EFF(94),e.nI1(95,"translate"),e.k0s(),e.DNE(96,Tt,2,2,"option",16),e.nI1(97,"async"),e.k0s(),e.nrm(98,"nx1-form-control-messages",17),e.k0s()(),e.j41(99,"div",9)(100,"div",10)(101,"label",11),e.EFF(102),e.nI1(103,"translate"),e.k0s()(),e.j41(104,"div",12)(105,"div",20),e.DNE(106,Ft,10,4,"div",21),e.j41(107,"button",22),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.addEmail())}),e.nrm(108,"i",23),e.k0s(),e.DNE(109,Rt,3,3,"div",24),e.k0s()()(),e.j41(110,"div",9)(111,"div",10)(112,"label",11),e.EFF(113),e.nI1(114,"translate"),e.k0s()(),e.j41(115,"div",12),e.nrm(116,"input",25)(117,"nx1-form-control-messages",17),e.k0s()(),e.j41(118,"div",9)(119,"div",26)(120,"label",11),e.EFF(121),e.nI1(122,"translate"),e.k0s()(),e.j41(123,"div",27),e.nrm(124,"input",28)(125,"nx1-form-control-messages",29),e.k0s(),e.j41(126,"div",30)(127,"select",31),e.DNE(128,kt,4,7,"option",32),e.nI1(129,"nx1Enums"),e.k0s()()(),e.j41(130,"div",9)(131,"div",26)(132,"label",11),e.EFF(133),e.nI1(134,"translate"),e.k0s()(),e.j41(135,"div",27),e.nrm(136,"input",28)(137,"nx1-form-control-messages",29),e.k0s(),e.j41(138,"div",30)(139,"select",33),e.DNE(140,xt,4,7,"option",32),e.nI1(141,"nx1Enums"),e.k0s()()(),e.j41(142,"div",34),e.DNE(143,Et,5,3,"div",35)(144,Bt,2,1,"div",36),e.k0s()()()()}if(2&n){const t=i.ngIf,r=e.XpG();e.R7$(6),e.SpI("I. ",e.bMT(7,52,"str_Control_Tender_Buyer_235_Submit_Identification"),""),e.R7$(5),e.SpI("1. ",e.bMT(12,54,"str_Control_Tender_Buyer_235_Submit_Tender_SpecialNumber"),""),e.R7$(4),e.JRh(null==t?null:t.SpecialNumber),e.R7$(4),e.SpI("2. ",e.bMT(20,56,"str_Control_Tender_Buyer_235_Submit_TenderBuyer_Name"),""),e.R7$(4),e.JRh(null==t?null:t.ContractingAuthorityName),e.R7$(4),e.SpI("3. ",e.bMT(28,58,"str_Control_Tender_Buyer_235_Submit_TenderSubject"),""),e.R7$(4),e.JRh(null==t?null:t.TenderName),e.R7$(4),e.SpI("4. ",e.bMT(36,60,"str_Control_Tender_Buyer_235_Submit_Tender_EstimatedValue"),""),e.R7$(4),e.SpI(" ",null==t?null:t.TenderEstimatedValue," "),e.R7$(4),e.SpI("5. ",e.bMT(44,62,"str_Control_Tender_Buyer_232_Submit_Page_Tender_Currency"),""),e.R7$(4),e.JRh(e.bMT(49,67,e.i5U(48,64,null==t?null:t.TenderCurrency,r.currencyType))),e.R7$(6),e.SpI("6. ",e.bMT(54,69,"str_Control_Tender_Buyer_235_Submit_Tender_TypeOfContract"),""),e.R7$(4),e.SpI(" ",e.bMT(59,74,e.i5U(58,71,null==t?null:t.TenderTypeOfContract,r.typeOfContractEnum))," "),e.R7$(3),e.Y8G("formGroup",r.submitForm),e.R7$(6),e.SpI("II. ",e.bMT(67,76,"str_Control_Tender_Buyer_235_Submit_ControlData"),""),e.R7$(5),e.SpI("1. ",e.bMT(72,78,"str_Control_Tender_Buyer_235_Submit_ControlType"),""),e.R7$(3),e.SpI(" ",e.bMT(75,80,"str_Control_Tender_Buyer_235_Submit_ControlType_Value")," "),e.R7$(5),e.SpI("2. ",e.bMT(80,82,"str_Control_Tender_Buyer_235_Submit_LegalBase"),""),e.R7$(4),e.Y8G("ngForOf",e.bMT(84,84,r.legalBases235$)),e.R7$(2),e.Y8G("parentId",r.getId("LegalBaseId"))("control",r.LegalBaseId),e.R7$(4),e.SpI("3. ",e.bMT(90,86,"str_Control_Tender_Buyer_235_Submit_Tender_FundingProgram"),""),e.R7$(5),e.SpI(" ",e.bMT(95,88,"str_Control_Tender_Buyer_235_Submit_Tender_NoFundingProgram")," "),e.R7$(2),e.Y8G("ngForOf",e.bMT(97,90,r.fundingPrograms$)),e.R7$(2),e.Y8G("parentId",r.getId("FundingProgramId"))("control",r.FundingProgramId),e.R7$(4),e.SpI("4. ",e.bMT(103,92,"str_Control_Tender_Buyer_235_Submit_Email"),""),e.R7$(4),e.Y8G("ngForOf",r.emails.controls),e.R7$(3),e.Y8G("ngIf",!r.emailValid||!r.checkEmailsValidation()),e.R7$(4),e.SpI("5. ",e.bMT(114,94,"str_Control_Tender_Buyer_235_Submit_SubjectOfTheAmendment"),""),e.R7$(4),e.Y8G("parentId",r.getId("SubjectOfTheAmendment"))("control",r.SubjectOfTheAmendment),e.R7$(4),e.SpI("6. ",e.bMT(122,96,"str_Control_Tender_Buyer_235_Submit_ContractValue"),""),e.R7$(3),e.Y8G("decimalLimit",2)("allowDecimal",!0)("allowNegative",!1)("formControl",r.ContractValue),e.BMQ("id",r.getInputId("ContractValue")),e.R7$(),e.Y8G("control",r.ContractValue),e.R7$(2),e.BMQ("id",r.getInputId("ContractCurrency")),e.R7$(),e.Y8G("ngForOf",e.i5U(129,98,r.currencyType,!0)),e.R7$(5),e.SpI("7. ",e.bMT(134,101,"str_Control_Tender_Buyer_235_Submit_EstimatedValueOfTheChange"),""),e.R7$(3),e.Y8G("decimalLimit",2)("allowDecimal",!0)("allowNegative",!1)("formControl",r.EstimatedValueOfTheChange),e.BMQ("id",r.getInputId("EstimatedValueOfTheChange")),e.R7$(),e.Y8G("control",r.EstimatedValueOfTheChange),e.R7$(2),e.BMQ("id",r.getInputId("AnnexCurrency")),e.R7$(),e.Y8G("ngForOf",e.i5U(141,103,r.currencyType,!0)),e.R7$(3),e.Y8G("ngIf",!r.isSubmittingForm),e.R7$(),e.Y8G("ngIf",r.isSubmittingForm)}}var Y=function(n){return n[n.CreateNewForm=0]="CreateNewForm",n[n.EditExistingForm=1]="EditExistingForm",n}(Y||{});let re=(()=>{class n extends F.$G{constructor(t,r,o,s,d,a,p,u,b,C,v,D,x,w){super(t),this.tenderStoreService=r,this.changeDetectorRef=o,this.router=s,this.route=d,this.routerStoreService=a,this.tenderGuard=p,this.controlService=u,this.controlStoreService=b,this.documentService=C,this.utilsService=v,this.userStoreService=D,this.organizationStoreService=x,this.fb=w,this.toolBreadcrumbPath=[{keyword:"str_Tender_control_232",url:[".."]}],this.fundingSourceEnum=NX1.Model.Enums.FundingSource,this.show
1FundingPrograms=!1,this.currencyType=NX1.Model.Enums.CurrencyType,this.controlType="235",this.typeOfContractEnum=NX1.Model.Enums.TypeOfContract,this.uploadedZipDocuments=!1,this.uploadedAccLetterDocument=!1,this.selectedTenderId$=this.routerStoreService.getIdFromParams(this.route.paramMap,"id"),this.result235={},this.EmailPattern=new RegExp(X.c.regExp.email),this.decimalPattern=/^-?\d*[.,]?\d{0,2}$/,this.emailValid=!0,this.emailValidCopy=!0,this.LegalBaseId=new c.hs("",[c.k0.required]),this.FundingSource=new c.hs("",[c.k0.required]),this.FundingProgramId=new c.hs("",[c.k0.required]),this.SubjectOfTheAmendment=new c.hs("",[c.k0.required]),this.ContractValue=new c.hs("",[c.k0.required]),this.ContractCurrency=new c.hs("",[c.k0.required]),this.EstimatedValueOfTheChange=new c.hs("",[c.k0.required]),this.AnnexCurrency=new c.hs("",[c.k0.required]),this.submitForm=new c.J3({LegalBase:this.LegalBaseId,FundingSource:this.FundingSource,OperationalProgram:this.FundingProgramId,SubjectOfTheAmendment:this.SubjectOfTheAmendment,ContractValue:this.ContractValue,ContractCurrency:this.ContractCurrency,EstimatedValueOfTheChange:this.EstimatedValueOfTheChange,AnnexCurrency:this.AnnexCurrency}),this.isSubmittingForm=!1,this.subscriptions=[]}get IsEditExistingForm(){return this.mode===Y.EditExistingForm}ngOnInit(){this.route.paramMap.pipe((0,f.s)(1)).subscribe(t=>{const r=parseInt(t.get("form235Id"),10);Number.isFinite(r)?this.controlService.getControl235FormById(r,!0).pipe((0,ne.W)(()=>(0,O.of)(null)),(0,f.s)(1)).subscribe(o=>null!==o?this.PostInitEditExistingForm(o):this.NoFormRedirect()):this.PostInitCreateForm()})}ngOnDestroy(){for(const t of this.subscriptions)t.unsubscribe()}get emails(){return this.submitForm.get("_Emails")}addEmail(){this.emails.push(this.fb.group({email:""})),this.emailValid=!1}deleteEmail(t){this.emails.removeAt(t),this.emailValid=!0}onChangeControlType(t){this.currentControlType=t,this.changeDetectorRef.markForCheck()}onChange(){this.triggerValidation()}triggerValidation(){this.LegalBaseId.markAsTouched(),this.FundingSource.markAsTouched(),this.FundingProgramId.markAsTouched(),this.SubjectOfTheAmendment.markAsTouched(),this.ContractValue.markAsTouched(),this.ContractCurrency.markAsTouched(),this.EstimatedValueOfTheChange.markAsTouched(),this.AnnexCurrency.markAsTouched()}onCheckEmail(t){this.emailValid=!!this.EmailPattern.test(t)}onAddDocumentsZip(t){this.zipDocuments=Object.assign({},this.zipDocuments,t),this.zipDocumentsName=t[0].Name,this.uploadedZipDocuments=!0,this.changeDetectorRef.markForCheck()}onDeleteZipDocuments(){this.zipDocuments=null,this.zipDocumentsName=null,this.uploadedZipDocuments=!1,this.changeDetectorRef.markForCheck()}onAddAccompanyingLetter(t){this.accLetterDocument=Object.assign({},this.accLetterDocument,t),this.accLetterDocumentName=t[0].Name,this.uploadedAccLetterDocument=!0,this.changeDetectorRef.markForCheck()}onDeleteAccompanyingLetter(){this.accLetterDocument=null,this.accLetterDocumentName=null,this.uploadedAccLetterDocument=!1,this.changeDetectorRef.markForCheck()}checkEmailsValidation(){for(let t=0;t<this.submitForm.value._Emails.length;t++)for(const r in this.submitForm.value._Emails[t])if(null!==r&&this.submitForm.value._Emails[t][r]&&this.EmailPattern.test(this.submitForm.value._Emails[t][r]))return!0;return!1}sendSubmitForm(t){if(this.triggerValidation(),this.submitForm.valid&&this.emailValid&&this.checkEmailsValidation()){this.result235.LegalBaseId=this.submitForm.value.LegalBaseId,this.result235.FundingProgramId="null"===this.submitForm.value.FundingProgramId?null:this.submitForm.value.FundingProgramId,this.result235.SubjectOfTheAmendment=this.submitForm.value.SubjectOfTheAmendment,this.result235.ContractValue=this.submitForm.value.ContractValue,this.result235.ContractCurrency=this.submitForm.value.ContractCurrency,this.result235.EstimatedValueOfTheChange=this.submitForm.value.EstimatedValueOfTheChange,this.result235.AnnexCurrency=this.submitForm.value.AnnexCurrency,this.result235.TenderId=this.tender.Id,this.result235.EmailAddressesList=[];for(let o=0;o<this.submitForm.value._Emails.length;o++)for(const s in this.submitForm.value._Emails[o])null!==s&&this.submitForm.value._Emails[o][s]&&this.EmailPattern.test(this.submitForm.value._Emails[o][s])&&this.result235.EmailAddressesList.push(this.submitForm.value._Emails[o][s]);this.result235.FormAdditionalData=t,this.result235.IsEUFunded="null"!==this.submitForm.value.FundingProgramId,this.isSubmittingForm=!0;const r=this.controlService.saveControl235Form(this.result235).subscribe(o=>{r.unsubscribe(),this.isSubmittingForm=!1,this.tenderStoreService.loadTenderControlData(this.tender.Id),this.router.navigate(["/tender",this.tender.Id,"buyer","control","selected235"])})}}PostInitEditExistingForm(t){this.mode=Y.EditExistingForm,t.ActivityStatus=NX1.Model.Enums.ActionStatus.Edit,this.result235=t,this.LegalBaseId.setValue(t.LegalBaseId),this.FundingProgramId.setValue(Number.isFinite(t.FundingProgramId)?t.FundingProgramId:"null"),this.SubjectOfTheAmendment.setValue(t.SubjectOfTheAmendment),this.ContractValue.setValue(t.ContractValue),this.ContractCurrency.setValue(t.ContractCurrency),this.EstimatedValueOfTheChange.setValue(t.EstimatedValueOfTheChange),this.AnnexCurrency.setValue(t.AnnexCurrency),this.submitForm=this.fb.group({LegalBaseId:this.LegalBaseId,FundingProgramId:this.FundingProgramId,SubjectOfTheAmendment:this.SubjectOfTheAmendment,ContractValue:this.ContractValue,ContractCurrency:this.ContractCurrency,EstimatedValueOfTheChange:this.EstimatedValueOfTheChange,AnnexCurrency:this.AnnexCurrency,_Emails:this.fb.array(t.EmailAddressesList.map(r=>this.fb.group({email:r})))}),this.tender$=this.tenderStoreService.getCurrentTender(),this.tender$.pipe((0,f.s)(1)).subscribe(r=>{this.tender=r,this.controlService.refreshTenderControlDataInTheStore(this.tender.Id)}),this.additionalData$=(0,O.of)(t.FormAdditionalData),this.fundingPrograms$=this.controlService.retrieveFundingPrograms(!0),this.legalBases235$=this.controlService.retrieveLegalBasesByControlType(NX1.Model.Enums.ControlType.ByArticle235,!0),this.changeDetectorRef.markForCheck()}PostInitCreateForm(){this.mode=Y.CreateNewForm,this.submitForm=this.fb.group({LegalBaseId:this.LegalBaseId,FundingProgramId:this.FundingProgramId,SubjectOfTheAmendment:this.SubjectOfTheAmendment,ContractValue:this.ContractValue,ContractCurrency:this.ContractCurrency,EstimatedValueOfTheChange:this.EstimatedValueOfTheChange,AnnexCurrency:this.AnnexCurrency,_Emails:this.fb.array([this.fb.group({email:""})])}),this.tender$=this.tenderStoreService.getCurrentTender(),this.tender$.pipe((0,f.s)(1)).subscribe(t=>{this.tender=t,this.controlService.refreshTenderControlDataInTheStore(this.tender.Id)}),this.additionalData$=this.controlService.getControl233And235AdditionalData(this.tender.Id),this.fundingPrograms$=this.controlService.retrieveFundingPrograms(!0),this.legalBases235$=this.controlService.retrieveLegalBasesByControlType(NX1.Model.Enums.ControlType.ByArticle235,!0),this.changeDetectorRef.markForCheck()}NoFormRedirect(){this.router.navigate(["../../"],{relativeTo:this.route})}static{this.\u0275fac=function(r){return new(r||n)(e.rXU(e.c1b),e.rXU(l.$gx),e.rXU(e.gRc),e.rXU(g.Ix),e.rXU(g.nX),e.rXU(l.o9Y),e.rXU(R.U),e.rXU(l.het),e.rXU(l.CFu),e.rXU(l.DKw),e.rXU(l.TJO),e.rXU(l.wk1),e.rXU(l.iB2),e.rXU(c.ze))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["nx1-tender-buyer-control-235"]],features:[e.Vt3],decls:8,vars:6,consts:[[1,"nxcard","margin--bottom-20","bg--white","z1",2,"margin-top","10px"],[1,"nxcard__body","nxcard__body--no-scroll"],[1,"personalinfo-container","padding--20",2,"text-align","center"],[1,"text--bold",2,"margin-bottom","10px"],[4,"ngIf"],[1,"nxcard","margin--bottom-20","bg--white","z1"],[1,"nxcard__header"],[1,"nxcard__header-title"],[1,"nxcard__header-title-content"],[1,"border--bottom","nxcard__body-row"],[1,"break-word","col-md-4","col-xs-6","nxcard__body-cell","overflow-hidden"],[1,"profile-label"],[1,"col-md-8","col-xs-6","nxcard__body-cell","break-word"],[1,"text--bold","text--20px"],[3,"formGroup"],["formControlName","LegalBaseId",1,"form-control",3,"change"],["selected","",3,"value",4,"ngFor","ngForOf"],[3,"parentId","control"],["formControlName","FundingProgramId",1,"form-control",3,"change"],["value","null","selected",""],["formArrayName","_Emails"],[3,"formGroupName",4,"ngFor","ngForOf"],["mat-button","","type","button",3,"click"],[1,"mdi","mdi-plus-circle-outline"],["class","text--rose-1 text--13px text--normal",4,"ngIf"],["formControlName","SubjectOfTheAmendment",1,"form-control"],[1,"break-word","col-md-4","col-xs-4","nxcard__body-cell","overflow-hidden"],[1,"col-md-6","col-xs-5","nxcard__body-cell","break-word"],["type","text","nx1NumberInput","",1,"form-control",3,"decimalLimit","allowDecimal","allowNegative","formControl"],[3,"control"],[1,"break-word","col-md-2","col-xs-3","nxcard__body-cell","overflow-hidden"],["formControlName","ContractCurrency",1,"form-control","input-wrapper"],[3,"value",4,"ngFor","ngForOf"],["formControlName","AnnexCurrency",1,"form-control","input-wrapper"],[1,"nxcard__footer","display--flex","padding--10"],["class","pos--relative flex-element--right flex-row margin--right-10",4,"ngIf"],["class","overlay-loading pos--relative flex-element--right flex-row margin--right-10",4,"ngIf"],["selected","",3,"value"],[3,"formGroupName"],[1,"nxcard__body-row"],[1,"col-md-8","col-xs-6","nxcard__body-cell","break-word","no-border"],["formControlName","email",1,"form-control",3,"keyup"],[1,"break-word","col-md-4","col-xs-6","nxcard__body-cell"],[1,"mdi","mdi-window-close"],[1,"text--rose-1","text--13px","text--normal"],[3,"value"],[1,"pos--relative","flex-element--right","flex-row","margin--right-10"],["mat-button","",3,"click"],[1,"mdi","mdi-table-cog"],[1,"overlay-loading","pos--relative","flex-element--right","flex-row","margin--right-10"],[3,"diameter"]],template:function(r,o){1&r&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),e.
1EFF(4),e.nI1(5,"translate"),e.k0s()()()(),e.DNE(6,$t,145,106,"div",4),e.nI1(7,"async")),2&r&&(e.R7$(4),e.SpI(" ",e.bMT(5,2,"str_Control_Tender_Buyer_235_Submit_Page_Title")," "),e.R7$(2),e.Y8G("ngIf",e.bMT(7,4,o.additionalData$)))},dependencies:[m.Sq,m.bT,c.qT,c.xH,c.y7,c.me,c.wz,c.BC,c.cb,c.l_,c.j4,c.JD,c.$R,c.v8,S.iV,k.wS,V.l,St.p,m.Jj,I.D9,T.MB,T.R9],styles:["[_nghost-%COMP%]{display:block}.text-crimson[_ngcontent-%COMP%]{color:#dc143c}.menu-action[_ngcontent-%COMP%]{display:flex;justify-content:center;height:11px;text-align:center;position:relative;margin:5px 0}.menu-action__line[_ngcontent-%COMP%]{display:block;position:absolute;top:50%;transform:translateY(-50%);width:100%;left:0;border-top:1px solid rgba(0,0,0,.1);opacity:0;transition:opacity .35s}.menu-action__wrapper[_ngcontent-%COMP%]{height:30px;position:relative;z-index:2;transform:translateY(-50%);top:50%;opacity:0;transition:opacity .35s}.menu-action__button[_ngcontent-%COMP%]{height:30px;line-height:30px!important}.menu-action[_ngcontent-%COMP%]:hover .menu-action__line[_ngcontent-%COMP%], .menu-action[_ngcontent-%COMP%]:hover .menu-action__wrapper[_ngcontent-%COMP%]{opacity:1}"],changeDetection:0})}}return n})();var U=_(74854),jt=_(87163),G=_(68892);function Mt(n,i){if(1&n&&(e.j41(0,"div",17)(1,"span",24),e.EFF(2),e.k0s()()),2&n){const t=i.$implicit,r=e.XpG();e.BMQ("id",r.getLabelId("emailAddresses")),e.R7$(2),e.JRh(t)}}function wt(n,i){if(1&n&&(e.j41(0,"div",17)(1,"div",24),e.EFF(2),e.k0s()()),2&n){const t=i.$implicit,r=e.XpG();e.BMQ("id",r.getLabelId("professionalFields")),e.R7$(2),e.JRh(t.Text)}}function At(n,i){if(1&n&&(e.j41(0,"div")(1,"div",10)(2,"div",11),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",21),e.EFF(6),e.nI1(7,"nx1EnumTranslate"),e.nI1(8,"translate"),e.k0s()()()),2&n){let t;const r=i.$implicit,o=e.XpG();e.R7$(3),e.SpI(" II. ",e.bMT(4,2,"str_Control_Tender_Buyer_232_Submit_Page_TenderBuer_Type")," "),e.R7$(3),e.SpI(" ",e.bMT(8,7,e.i5U(7,4,null==(t=o.getContractingAuthorityTypeById(r,null==o.regFInfo?null:o.regFInfo.ContractingAuthorityTypeId))?null:t.ActivityTypeGroup,o.activityTypeGroupEnum))," ")}}function Pt(n,i){if(1&n&&(e.j41(0,"div",10)(1,"div",11),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",21),e.EFF(5),e.k0s()()),2&n){const t=i.$implicit,r=e.XpG();e.R7$(2),e.SpI(" VIIIa. ",e.bMT(3,2,"str_Control_funding_program")," "),e.R7$(3),e.SpI(" ",r.getFundingProgramMnemonicById(t,null==r.regFInfo?null:r.regFInfo.FundingProgramId)," ")}}function Gt(n,i){if(1&n&&(e.j41(0,"div")(1,"span"),e.EFF(2),e.k0s()()),2&n){const t=i.$implicit;e.R7$(2),e.Lme("",t.CodeText," - ",t.Keyword,"")}}function Nt(n,i){if(1&n&&(e.j41(0,"div",10)(1,"div",11),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",21),e.EFF(5),e.nI1(6,"nx1EnumTranslate"),e.nI1(7,"translate"),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.SpI(" XVI. ",e.bMT(3,2,"str_Control_Tender_Buyer_232_Submit_Page_Tender_StrategicProcurement")," "),e.R7$(3),e.SpI(" ",e.bMT(7,7,e.i5U(6,4,null==t.regFInfo?null:t.regFInfo.Strategic,t.strategicProcurementEnum))," ")}}function Xt(n,i){if(1&n&&(e.j41(0,"div",10)(1,"div",11),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",21),e.EFF(5),e.nI1(6,"nx1EnumTranslate"),e.nI1(7,"translate"),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.SpI(" XVII. ",e.bMT(3,2,"str_Control_Tender_Buyer_232_Submit_Page_Tender_OnlyOneOfferFrequency")," "),e.R7$(3),e.SpI(" ",e.bMT(7,7,e.i5U(6,4,null==t.regFInfo?null:t.regFInfo.OnlyOneOfferFrequency,t.onlyOneOfferFrequencyEnum))," ")}}function Vt(n,i){if(1&n&&(e.j41(0,"div",10)(1,"div",11),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",21),e.EFF(5),e.nI1(6,"nx1EnumTranslate"),e.nI1(7,"translate"),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.SpI(" XVIII. ",e.bMT(3,2,"str_Control_Tender_Buyer_232_Submit_Page_Tender_NoPublicationProceduresFrequency")," "),e.R7$(3),e.SpI(" ",e.bMT(7,7,e.i5U(6,4,null==t.regFInfo?null:t.regFInfo.NoPublicationProceduresFrequency,t.noPublicationProceduresFrequencyEnum))," ")}}function Ot(n,i){if(1&n&&(e.j41(0,"div",10)(1,"div",11),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",21),e.EFF(5),e.nI1(6,"nx1EnumTranslate"),e.nI1(7,"translate"),e.k0s()()),2&n){const t=e.XpG();e.R7$(2),e.SpI(" XIX. ",e.bMT(3,2,"str_Control_Tender_Buyer_232_Submit_Page_Tender_HighCancellationRate")," "),e.R7$(3),e.SpI(" ",e.bMT(7,7,e.i5U(6,4,null==t.regFInfo?null:t.regFInfo.HighCancellationRate,t.highCancellationRateSelectionEnum))," ")}}let ie=(()=>{class n extends F.$G{constructor(t,r,o,s,d,a,p){super(t),this.utilsService=r,this.controlRegFormViewRef=o,this.controlService=s,this.defaultDocumentService=d,this.loaderService=a,this.systemSettingsStoreService=p,this.submit=new e.bkB(!1),this.procedureTypeEnum=NX1.Model.Enums.ProcedureType,this.typeOfContractEnum=NX1.Model.Enums.TypeOfContract,this.estimatedValueThresholdEnum=NX1.Model.Enums.EstimatedValueThreshold,this.fundingSourceEnum=NX1.Model.Enums.FundingSource,this.awardMethodEnum=NX1.Model.Enums.Control232AwardMethod,this.activityTypeGroupEnum=NX1.Model.Enums.ActivityTypeGroup,this.currencyType=NX1.Model.Enums.CurrencyType,this.expertStatusType=NX1.Model.Enums.RandomSelectionSystemRegistrationFormStatus,this.renewalEnum=NX1.Model.Enums.RenewalSelection,this.optionsEnum=NX1.Model.Enums.OptionsSelection,this.accelerationEnum=NX1.Model.Enums.AcceleratedSelection,this.durationEnum=NX1.Model.Enums.TenderDuration,this.highRiskCpvEnum=NX1.Model.Enums.HighRiskCpv,this.strategicProcurementEnum=NX1.Model.Enums.StrategicProcurementSelection,this.highCancellationRateSelectionEnum=NX1.Model.Enums.HighCancellationRateSelection,this.noPublicationProceduresFrequencyEnum=NX1.Model.Enums.NoPublicationProceduresFrequencySelection,this.onlyOneOfferFrequencyEnum=NX1.Model.Enums.OnlyOneOfferFrequencySelection,this.showSecondPhaseOfRiskFactors=!1}ngOnInit(){this.contractingAuthorityTypes$=this.utilsService.getContractingAuthorityTypes(),this.fundingPrograms$=this.controlService.retrieveFundingPrograms(!1),this.showSecondPhaseOfRiskFactors=this.regFInfo.RiskFactorsStage}close(){this.controlRegFormViewRef.close()}onCancel(){this.close()}downloadPdf(){this.openLoader(null),this.controlService.generateRssReg
1istrationFormTicketPdf(this.regFInfo.Id).subscribe(t=>this.downloadDocument(t.Id))}downloadDocument(t){this.defaultDocumentService.getSignedUrlByDocumentId(t).subscribe(r=>{this.defaultDocumentService.downloadDocumentBySignedUrl(r),this.closeLoader()})}getContractingAuthorityTypeById(t,r){let o;for(const s of t)if(s.Id===r){o=s;break}return o}getFundingProgramMnemonicById(t,r){return t.find(o=>o.Id===r).Mnemonic}openLoader(t){this.loaderInstance=this.loaderService.openLoader(),this.loaderInstance.instance.type="spinner",this.loaderInstance.instance.keyword=t,this.loaderInstance.changeDetectorRef.detectChanges()}closeLoader(){this.loaderService.close(),this.loaderInstance=null}static{this.\u0275fac=function(r){return new(r||n)(e.rXU(e.c1b),e.rXU(l.TJO),e.rXU(U.RN),e.rXU(l.het),e.rXU(l.sO9),e.rXU(jt.Z),e.rXU(l.dqT))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["nx1-control-buyer-regform-view"]],inputs:{stringEx:"stringEx",regFInfo:"regFInfo",parentId:"parentId",currentName:"currentName"},outputs:{submit:"submit"},features:[e.Vt3],decls:179,vars:162,consts:[[1,"nxcard","z1","bg--white","overflow-hidden"],[1,"nxcard__header"],[1,"nxcard__header-title"],[1,"nxcard__header-title-content"],[1,"text--uppercase"],[1,"nxcard__header-options"],["mat-icon-button","",3,"click"],[1,"mdi","mdi-download"],[1,"mdi","mdi-close"],[1,"nxcard__body","nxcard__body--no-scroll"],[1,"border--bottom","nxcard__body-row"],[1,"col-md-4","col-xs-6","nxcard__body-cell","overflow-hidden"],[1,"col-md-8","col-xs-6","nxcard__body-cell","overflow-hidden","text--bold","text--15px"],[1,"col-md-8","nxcard__body-cell"],[1,"break-word","col-md-4","col-xs-6","nxcard__body-cell","overflow-hidden"],[1,"profile-label"],[1,"col-md-8","col-xs-6","nxcard__body-cell","profile-value","break-word"],[1,"organizaion-name-text"],["class","organizaion-name-text",4,"ngFor","ngForOf"],[1,"nxcard__body-row"],[4,"ngIf"],[1,"col-md-8","col-xs-6","nxcard__body-cell","text--bold","text--15px"],["class","border--bottom nxcard__body-row",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"margin--5"]],template:function(r,o){1&r&&(e.j41(0,"ng-scrollbar",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span",4),e.EFF(5),e.nI1(6,"translate"),e.k0s()()(),e.j41(7,"div",5)(8,"button",6),e.bIt("click",function(){return o.downloadPdf()}),e.nrm(9,"i",7),e.k0s(),e.j41(10,"button",6),e.bIt("click",function(){return o.close()}),e.nrm(11,"i",8),e.k0s()()(),e.j41(12,"ng-scrollbar",9)(13,"div",10)(14,"div",11),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"div",12),e.EFF(18),e.k0s()(),e.j41(19,"div",10)(20,"div",11),e.EFF(21),e.nI1(22,"translate"),e.k0s(),e.j41(23,"div",12),e.EFF(24),e.nI1(25,"nx1EnumTranslate"),e.nI1(26,"translate"),e.k0s()(),e.j41(27,"div",10)(28,"div",11),e.EFF(29),e.nI1(30,"translate"),e.k0s(),e.j41(31,"div",13)(32,"div",10)(33,"div",14)(34,"label",15),e.EFF(35),e.nI1(36,"translate"),e.k0s()(),e.j41(37,"div",16)(38,"span",17),e.EFF(39),e.k0s()()(),e.j41(40,"div",10)(41,"div",14)(42,"label",15),e.EFF(43),e.nI1(44,"translate"),e.k0s()(),e.j41(45,"div",16)(46,"span",17),e.EFF(47),e.k0s()()(),e.j41(48,"div",10)(49,"div",14)(50,"label",15),e.EFF(51),e.nI1(52,"translate"),e.k0s()(),e.j41(53,"div",16)(54,"span",17),e.EFF(55),e.k0s()()(),e.j41(56,"div",10)(57,"div",14)(58,"label",15),e.EFF(59),e.nI1(60,"translate"),e.k0s()(),e.j41(61,"div",16),e.DNE(62,Mt,3,2,"div",18),e.k0s()(),e.j41(63,"div",19)(64,"div",14)(65,"label",15),e.EFF(66),e.nI1(67,"translate"),e.k0s()(),e.j41(68,"div",16),e.DNE(69,wt,3,2,"div",18),e.k0s()()()(),e.DNE(70,At,9,9,"div",20),e.nI1(71,"async"),e.j41(72,"div",10)(73,"div",11),e.EFF(74),e.nI1(75,"translate"),e.k0s(),e.j41(76,"div",21),e.EFF(77),e.nI1(78,"nx1EnumTranslate"),e.nI1(79,"translate"),e.k0s()(),e.j41(80,"div",10)(81,"div",11),e.EFF(82),e.nI1(83,"translate"),e.k0s(),e.j41(84,"div",21),e.EFF(85),e.nI1(86,"nx1EnumTranslate"),e.nI1(87,"translate"),e.k0s()(),e.j41(88,"div",10)(89,"div",11),e.EFF(90),e.nI1(91,"translate"),e.k0s(),e.j41(92,"div",21),e.EFF(93),e.nI1(94,"nx1EnumTranslate"),e.nI1(95,"translate"),e.k0s()(),e.j41(96,"div",10)(97,"div",11),e.EFF(98),e.nI1(99,"translate"),e.k0s(),e.j41(100,"div",21),e.EFF(101),e.k0s()(),e.j41(102,"div",10)(103,"div",14)(104,"label",15),e.EFF(105),e.nI1(106,"translate"),e.k0s()(),e.j41(107,"div",21),e.EFF(108),e.nI1(109,"nx1EnumTranslate"),e.nI1(110,"translate"),e.k0s()(),e.j41(111,"div",10)(112,"div",11),e.EFF(113),e.nI1(114,"translate"),e.k0s(),e.j41(115,"div",21),e.EFF(116),e.nI1(117,"nx1EnumTranslate"),e.nI1(118,"translate"),e.k0s()(),e.DNE(119,Pt,6,4,"div",22),e.nI1(120,"async"),e.j41(121,"div",10)(122,"div",11),e.EFF(123),e.nI1(124,"translate"),e.k0s(),e.j41(125,"div",21),e.EFF(126),e.nI1(127,"nx1EnumTranslate"),e.nI1(128,"translate"),e.k0s()(),e.j41(129,"div",10)(130,"div",11),e.EFF(131),e.nI1(132,"translate"),e.k0s(),e.j41(133,"div",21),e.DNE(134,Gt,3,2,"div",23),e.k0s()(),e.j41(135,"div",10)(136,"div",11),e.EFF(137),e.nI1(138,"translate"),e.k0s(),e.j41(139,"div",21),e.EFF(140),e.nI1(141,"nx1EnumTranslate"),e.nI1(142,"translate"),e.k0s()(),e.j41(143,"div",10)(144,"div",11),e.EFF(145),e.nI1(146,"translate"),e.k0s(),e.j41(147,"div",21),e.EFF(148),e.nI1(149,"nx1EnumTranslate"),e.nI1(150,"translate"),e.k0s()(),e.j41(151,"div",10)(152,"div",11),e.EFF(153),e.nI1(154,"translate"),e.k0s(),e.j41(155,"div",21),e.EFF(156),e.nI1(157,"nx1EnumTranslate"),e.nI1(158,"translate"),e.k0s()(),e.j41(159,"div",10)(160,"div",11),e.EFF(161),e.nI1(162,"translate"),e.k0s(),e.j41(163,"div",21),e.EFF(164),e.nI1(165,"nx1EnumTranslate"),e.nI1(166,"translate"),e.k0s()(),e.j41(167,"div",10)(168,"div",11),e.EFF(169),e.nI1(170,"translate"),e.k0s(),e.j41(171,"div",21),e.EFF(172),e.nI1(173,"nx1EnumTranslate"),e.nI1(174,"translate"),e.k0s()(),e.DNE(175,Nt,8,9,"div",22)(176,Xt,8,9,"div",22)(177,Vt,8,9,"div",22)(178,Ot,8,9,"div",22),e.k0s()()),2&r&&(e.R7$(5),e.JRh(e.bMT(6,54,"str_Control_reg_form_data")),e.R7$(3),e.BMQ("id",o.getButtonId("downloadPdf")),e.R7$(2),e.BMQ("id",o.getButtonId("close")),e.R7$(5),e.SpI(" ",e.bMT(16,56,"str_Control_Tender_Buyer_232_Form_Dialog_Number")," "),e.R7$(3),e.SpI(" ",null==o.regFInfo?null:o.regFInfo.RegistrationFormNumber," "),e.R7$(3),e.SpI(" ",e.bMT(22,58,"str_Control_Tender_Buyer_232_Form_Dialog_Status")," "),e.R7$(3),e.SpI(" ",e.bMT(26,63,e.i5U(25,60,null==o.regFInfo?null:o.regFInfo.Status,o.expertStatusType))," "),e.R7$(5),e.SpI(" I. ",e.bMT(30,65,"str_Control_registration_form_identification")," "),e.R7$(2),e.BMQ("id",o.getLabelId("name")),e.R7$(4),e.SpI("1. ",e.bMT(36,67,"str_Control_Tender_Buyer_232_Submit_Page_TenderBuyer_Name")," "),e.R7$(3),e.BMQ("id",o.getLabelId("organizationName")),e.R7$(),e.JRh(null==o.regFInfo?null:o.regFInfo.ContractingAuthorityName),e.R7$(4),e.SpI("2. ",e.bMT(44,69,"str_Control_Tender_Buyer_232_Submit_Page_TenderBuyer_BatchNumber")," "),e.R7$(3),e.BMQ("id",o.getLabelId("organizationBatchNumber")),e.R7$(),e.JRh(null==o.regFInfo?null:o.regFInfo.ContractingAuthorityBatchNumber),e.R7$(4),e.SpI("3. ",e.bMT(52,71,"str_Control_Tender_Buyer_232_Submit_Page_Tender_Subject")," "),e.R7$(3),e.BMQ("id",o.getLabelId("tender
1Subject")),e.R7$(),e.JRh(null==o.regFInfo?null:o.regFInfo.TenderSubject),e.R7$(4),e.SpI("4. ",e.bMT(60,73,"str_Control_Tender_Buyer_232_Submit_Page_Emails")," "),e.R7$(3),e.Y8G("ngForOf",null==o.regFInfo?null:o.regFInfo.EmailAddressesList),e.R7$(4),e.SpI("5. ",e.bMT(67,75,"str_Control_professional_fields")," "),e.R7$(3),e.Y8G("ngForOf",null==o.regFInfo?null:o.regFInfo.RegistrationFormProfessionalFields),e.R7$(),e.Y8G("ngIf",e.bMT(71,77,o.contractingAuthorityTypes$)),e.R7$(4),e.SpI(" III. ",e.bMT(75,79,"str_Control_Tender_Buyer_232_Submit_Page_Tender_ProcedureType")," "),e.R7$(3),e.SpI(" ",e.bMT(79,84,e.i5U(78,81,null==o.regFInfo?null:o.regFInfo.ProcedureType,o.procedureTypeEnum))," "),e.R7$(5),e.SpI(" IV. ",e.bMT(83,86,"str_Control_rssForm_pdf_TypeOfContract")," "),e.R7$(3),e.SpI(" ",e.bMT(87,91,e.i5U(86,88,null==o.regFInfo?null:o.regFInfo.TypeOfContract,o.typeOfContractEnum))," "),e.R7$(5),e.SpI(" V. ",e.bMT(91,93,"str_Control_Tender_Buyer_232_Submit_Page_Tender_EstimatedValue")," "),e.R7$(3),e.SpI(" ",e.bMT(95,98,e.i5U(94,95,null==o.regFInfo?null:o.regFInfo.EstimatedValueThreshold,o.estimatedValueThresholdEnum))," "),e.R7$(5),e.SpI(" VI. ",e.bMT(99,100,"str_Control_Tender_Buyer_232_Submit_Page_Tender_EstimatedValue_without_VAT")," "),e.R7$(3),e.SpI(" ",null==o.regFInfo?null:o.regFInfo.EstimatedValue," "),e.R7$(4),e.SpI("VII. ",e.bMT(106,102,"str_Control_Tender_Buyer_232_Submit_Page_Tender_Currency"),""),e.R7$(3),e.SpI(" ",e.bMT(110,107,e.i5U(109,104,null==o.regFInfo?null:o.regFInfo.CurrencyType,o.currencyType))," "),e.R7$(5),e.SpI(" VIII. ",e.bMT(114,109,"str_Control_funding_source")," "),e.R7$(3),e.SpI(" ",e.bMT(118,114,e.i5U(117,111,null==o.regFInfo?null:o.regFInfo.FundingSource,o.fundingSourceEnum))," "),e.R7$(3),e.Y8G("ngIf",e.bMT(120,116,1===(null==o.regFInfo?null:o.regFInfo.FundingSource)&&o.fundingPrograms$)),e.R7$(4),e.SpI(" IX. ",e.bMT(124,118,"str_Control_award_method")," "),e.R7$(3),e.SpI(" ",e.bMT(128,123,e.i5U(127,120,null==o.regFInfo?null:o.regFInfo.AwardMethod,o.awardMethodEnum))," "),e.R7$(5),e.SpI(" X. ",e.bMT(132,125,"str_Control_Tender_Buyer_232_Submit_Page_Tender_CpvCodes")," "),e.R7$(3),e.Y8G("ngForOf",null==o.regFInfo?null:o.regFInfo.RegistrationFormCpvCodes),e.R7$(3),e.SpI(" XI. ",e.bMT(138,127,"str_Control_Tender_Buyer_232_Submit_Page_Tender_RenewalEnvisaged")," "),e.R7$(3),e.SpI(" ",e.bMT(142,132,e.i5U(141,129,null==o.regFInfo?null:o.regFInfo.Renewal,o.renewalEnum))," "),e.R7$(5),e.SpI(" XII. ",e.bMT(146,134,"str_Control_Tender_Buyer_232_Submit_Page_Tender_OptionsEnvisaged")," "),e.R7$(3),e.SpI(" ",e.bMT(150,139,e.i5U(149,136,null==o.regFInfo?null:o.regFInfo.Options,o.optionsEnum))," "),e.R7$(5),e.SpI(" XIII. ",e.bMT(154,141,"str_Control_Tender_Buyer_232_Submit_Page_Tender_AccelerationsEnvisaged")," "),e.R7$(3),e.SpI(" ",e.bMT(158,146,e.i5U(157,143,null==o.regFInfo?null:o.regFInfo.Acceleration,o.accelerationEnum))," "),e.R7$(5),e.SpI(" XIV. ",e.bMT(162,148,"str_Control_Tender_Buyer_232_Submit_Page_Tender_HighRiskDuration")," "),e.R7$(3),e.SpI(" ",e.bMT(166,153,e.i5U(165,150,null==o.regFInfo?null:o.regFInfo.Duration,o.durationEnum))," "),e.R7$(5),e.SpI(" XV. ",e.bMT(170,155,"str_Control_Tender_Buyer_232_Submit_Page_Tender_HighRiskCpv")," "),e.R7$(3),e.SpI(" ",e.bMT(174,160,e.i5U(173,157,null==o.regFInfo?null:o.regFInfo.HighRiskCpv,o.highRiskCpvEnum))," "),e.R7$(3),e.Y8G("ngIf",o.showSecondPhaseOfRiskFactors),e.R7$(),e.Y8G("ngIf",o.showSecondPhaseOfRiskFactors),e.R7$(),e.Y8G("ngIf",o.showSecondPhaseOfRiskFactors),e.R7$(),e.Y8G("ngIf",o.showSecondPhaseOfRiskFactors))},dependencies:[m.Sq,m.bT,S.iV,G.Yh,m.Jj,I.D9,T.R9],styles:["[_nghost-%COMP%]{display:block;width:800px}"],changeDetection:0})}}return n})();var B=_(93714),$=_(74941),j=_(87885),y=_(88141),N=_(43684),A=_(61918),M=_(21666);const z=n=>({"nxcard margin--bottom-20 bg--white z1":!0,disabled:n}),Lt=n=>({disabled:n});function Yt(n,i){1&n&&e.eu8(0)}function Ut(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",31)(1,"label",33),e.EFF(2),e.k0s(),e.j41(3,"button",34),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.downloadRegistrationFormDocument())}),e.nrm(4,"i",35),e.k0s(),e.j41(5,"span",36),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.openSignaturesDialog(o.selectedRssFormDocument,o.selectedRssFormDocumentDescriptor,!1))}),e.EFF(6),e.nI1(7,"translate"),e.k0s()()}if(2&n){const t=e.XpG(3);e.R7$(2),e.SpI(" ",null==t.selectedRssFormDocument?null:t.selectedRssFormDocument.Name," "),e.R7$(4),e.JRh(e.bMT(7,2,"str_Control_Tender_Buyer_232_SelectedControl_RssForm_Sign"))}}function Jt(n,i){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",19)(2,"div",20)(3,"div",21)(4,"label",22),e.EFF(5),e.nI1(6,"translate"),e.k0s()()(),e.j41(7,"div",20)(8,"div",28)(9,"label",29),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.j41(12,"label",30),e.bIt("click",function(){const o=e.eBV(t).ngIf,s=e.XpG(2);return e.Njj(s.openRegFormDialog(o))}),e.EFF(13),e.k0s()(),e.j41(14,"div",31)(15,"div",29),e.EFF(16),e.nI1(17,"translate"),e.k0s(),e.j41(18,"div",22),e.EFF(19),e.nI1(20,"nx1date"),e.k0s()(),e.DNE(21,Ut,8,4,"div",32),e.k0s()()()}if(2&n){const t=i.ngIf,r=e.XpG(2);e.R7$(5),e.JRh(e.bMT(6,8,"str_Control_Tender_Buyer_232_SelectedControl_RssData")),e.R7$(5),e.JRh(e.bMT(11,10,"str_Control_Tender_Buyer_232_SelectedControl_RssFormNumber")),e.R7$(3),e.JRh(null==t?null:t.RegistrationFormNumber),e.R7$(2),e.BMQ("id",r.getLabelId("organizationType")),e.R7$(),e.SpI("",e.bMT(17,12,"str_Control_Tender_Buyer_232_SelectedControl_RssFormChosenDate")," "),e.R7$(2),e.BMQ("id",r.getLabelId("organizationType")),e.R7$(),e.JRh(e.i5U(20,14,null==t?null:t.SelectionDate,"ShortDateTime")),e.R7$(2),e.Y8G("ngIf",r.selectedRssFormDocument)}}function Kt(n,i){1&n&&(e.j41(0,"div")(1,"div",20)(2,"label",37),e.EFF(3),e.nI1(4,"translate"),e.k0s()()()),2&n&&(e.R7$(3),e.SpI(" ",e.bMT(4,1,"str_Control_Tender_Buyer_232_SelectedControl_NoDocuments")," "))}function zt(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",28)(1,"label",39),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",33),e.EFF(5),e.k0s(),e.j41(6,"button",34),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.downloadDocumentPackage())}),e.nrm(7,"i",35),e.k0s()()}if(2&n){const t=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,2,"str_Control_Tender_Buyer_232_SelectedControl_PreliminaryControlDocuments")),e.R7$(3),e.SpI(" ",null==t.documentPackageDocument?null:t.documentPackageDocument.Name," ")}}function Qt(n,i){if(1&n&&(e.j41(0,"label",33),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.SpI(" ",null==t.documentPackageAccompanyingLetterDocument?null:t.documentPackageAccompanyingLetterDocument.Name," ")}}function Ht(n,i){if(1&n){const t=e.RV6();e.j41(0,"span",43),e.bIt("click",function(){e.eBV(t);const o=e.XpG(4);return e.Njj(o.openSignaturesDialog(o.documentPackageAccompanyingLetterDocument,o.documentPackageAccompanyingLetterDocumentDescriptor,!1))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"str_Control_Tender_Buyer_232_SelectedControl_AccompanyingLetter_Signed")))}function qt(n,i){1&n&&(e.j41(0,"span",44),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"str_Control_Tender_Buyer_232_SelectedControl_AccompanyingLetter_ManuallySigned")))}function Zt(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",28)(1,"label",39),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,Qt,2,1,"label",40),e.j41(5,"button",34),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.downloadDocumentPackageAccompanyingLetter())}),e.nrm(6,"i",35),e.k0s(),e.DNE(7,Ht,3,3,"span",41)(8,qt,3,3,"span",42),e.k0s()}if(2&n){const t=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,4,"str_Control_Tender_Buyer_232_SelectedControl_AccompanyingLetter")),e.R7$(2),e.Y8G("ngIf",t.documentPackageAccompanyingLetterDocument),e.R7$(3),e.Y8G("ngIf",t.documentPackageAccompanyingLetterDocumentDescriptor&&t.documentPackageAccompanyingLetterDocumentDescriptor.IsSubmitted&&!t.documentPackageAccompanyingLetterDocumentDescriptor.IsManuallySigned),e.R7$(),e.Y8G("ngIf",t.documentPackageAccompanyingLetterDocumentDescriptor&&t.documentPackageAccompanyingLetterDocumentDescriptor.IsSubmitted&&t.documentPackageAccompanyingLetterDocumentDescriptor.IsManuallySigned)}}function Wt(n,i){if(1&n&&(e.j41(0,"div",31)(1,"div",29),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",45),e.EFF(5),e.nI1(6,"nx1date"),e.k0s()()),2&n){const t=e.XpG(3);e.R7$(),e.BMQ("id",t.getLabelId("organizationType")),e.R7$(),e.SpI("",e.bMT(3,4,"str_Control_Tender_Buyer_232_SelectedControl_Documents_SubmissionDate")," "),e.R7$(2),e.BMQ("id",t.getLabelId("organizationType")),e.R7$(),e.SpI(" ",e.i5U(6,6,t.documentPackageDocumentDescriptor.SubmissionDateTime,"ShortDateTime")," ")}}
1function en(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",31)(1,"button",46),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.goToDocuments())}),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"str_Control_Tender_Buyer_232_SelectedControl_Documents_Edit")," "))}function tn(n,i){if(1&n&&(e.j41(0,"div",20),e.DNE(1,zt,8,4,"div",38)(2,Zt,9,6,"div",38)(3,Wt,7,9,"div",32)(4,en,4,3,"div",32),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.documentPackageDocumentDescriptor&&t.documentPackageDocumentDescriptor.IsSubmitted),e.R7$(),e.Y8G("ngIf",t.documentPackageAccompanyingLetterDocumentDescriptor&&t.documentPackageAccompanyingLetterDocumentDescriptor.IsSubmitted),e.R7$(),e.Y8G("ngIf",t.documentPackageDocumentDescriptor&&t.documentPackageDocumentDescriptor.IsSubmitted),e.R7$(),e.Y8G("ngIf",t.CanManageControlSection&&(!t.documentPackageDocumentDescriptor||!t.documentPackageDocumentDescriptor.IsSubmitted))}}function nn(n,i){if(1&n&&(e.j41(0,"label",33),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI(" ",t.selectedStatementStage1.Number," ")}}function on(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",34),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.downloadStatenentStage1Document())}),e.nrm(1,"i",35),e.k0s()}}
1function rn(n,i){if(1&n&&(e.j41(0,"div",45),e.EFF(1),e.nI1(2,"nx1date"),e.k0s()),2&n){const t=e.XpG(3);e.BMQ("id",t.getLabelId("organizationType")),e.R7$(),e.SpI(" ",e.i5U(2,2,t.statementStage1DocumentDescriptor.SubmissionDateTime,"ShortDateTime")," ")}}function sn(n,i){if(1&n&&(e.j41(0,"div",20)(1,"div",47),e.DNE(2,nn,2,1,"label",40)(3,on,2,0,"button",48),e.k0s(),e.j41(4,"div",49)(5,"div",29),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.DNE(8,rn,3,5,"div",50),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngIf",t.statementStage1Document),e.R7$(),e.Y8G("ngIf",t.statementStage1Document),e.R7$(2),e.BMQ("id",t.getLabelId("organizationType")),e.R7$(),e.SpI("",e.bMT(7,5,"str_Control_Tender_Buyer_232_SelectedControl_StatementSendOn")," "),e.R7$(2),e.Y8G("ngIf",t.statementStage1DocumentDescriptor)}}function cn(n,i){1&n&&(e.j41(0,"div",20)(1,"label",51),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"str_Control_Tender_Buyer_232_SelectedControl_NoSendStatement")," "))}function an(n,i){if(1&n){const t=e.RV6();e.j41(0,"tr")(1,"td")(2,"span",57),e.bIt("click",function(){const o=e.eBV(t).index,s=e.XpG(3);return e.Njj(s.downloadDocument(s.previousStatementsDocuments1[o].Id))}),e.EFF(3),e.k0s()(),e.j41(4,"td")(5,"span",58),e.EFF(6),e.nI1(7,"nx1date"),e.k0s()()()}if(2&n){const t=i.$implicit;e.R7$(3),e.JRh(t.Number),e.R7$(3),e.JRh(e.i5U(7,2,t.SubmissionDateTime,"ShortDateTime"))}}function ln(n,i){if(1&n&&(e.j41(0,"div",52)(1,"div",53)(2,"table")(3,"tr")(4,"td")(5,"label",54),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.j41(8,"td")(9,"label",55),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.DNE(12,an,8,5,"tr",56),e.k0s()()()),2&n){const t=e.XpG(2);e.R7$(6),e.JRh(e.bMT(7,3,"str_Control_232_PreviousStatements")),e.R7$(4),e.JRh(e.bMT(11,5,"str_Control_Tender_Buyer_232_SelectedControl_StatementSendOn")),e.R7$(2),e.Y8G("ngForOf",t.previousStatements1)}}function dn(n,i){1&n&&(e.j41(0,"div",20)(1,"div",28)(2,"label",29),e.EFF(3),e.nI1(4,"translate"),e.k0s()()()),2&n&&(e.R7$(3),e.SpI(" ",e.bMT(4,1,"str_Control_Tender_Buyer_232_SelectedControl_NoMotives")," "))}function un(n,i){if(1&n&&(e.j41(0,"label",33),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI(" ",null==t.motivesDocument?null:t.motivesDocument.Name," ")}}function mn(n,i){if(1&n){const t=e.RV6();e.j41(0,"nx1-documents-upload",64),e.bIt("save",function(o){e.eBV(t);const s=e.XpG(3);return e.Njj(s.onAddMotivesDocuments(o))}),e.k0s()}2&n&&e.Y8G("keyword","str_Common_add")("showConsentCheckbox",!1)("multiple",!1)}function _n(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",34),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.downloadMotives())}),e.nrm(1,"i",35),e.k0s()}}function pn(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",34),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.deleteMotivesDescriptor())}),e.nrm(1,"i",65),e.k0s()}}function gn(n,i){if(1&n&&(e.j41(0,"label",33),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI(" ",null==t.motivesAccompanyingLetterDocument?null:t.motivesAccompanyingLetterDocument.Name," ")}}function hn(n,i){if(1&n){const t=e.RV6();e.j41(0,"nx1-documents-upload",66),e.bIt("save",function(o){e.eBV(t);const s=e.XpG(3);return e.Njj(s.onAddMotivesAccompanyingLetterDocuments(o))}),e.k0s()}if(2&n){const t=e.XpG(3);e.Y8G("keyword","str_Common_add")("showConsentCheckbox",!1)("multiple",!1)("ngClass",e.eq3(4,Lt,!t.motivesDocument))}}function bn(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",34),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.downloadMotivesAccompanyingLetter())}),e.nrm(1,"i",35),e.k0s()}}function Cn(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",34),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.deleteMotivesAccompanyingLetterDescriptor())}),e.nrm(1,"i",65),e.k0s()}}function fn(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",67),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.openSignaturesDialog(o.motivesAccompanyingLetterDocument,o.motivesAccompanyingLetterDocumentDescriptor,!0))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const t=e.XpG(3);e.Y8G("disabled",!t.motivesAccompanyingLetterDocument||t.motivesAccompanyingLetterDocumentDescriptor&&t.motivesAccompanyingLetterDocumentDescriptor.IsManuallySigned),e.R7$(),e.SpI(" ",e.bMT(2,2,"str_Control_Tender_Buyer_232_DocumentSubmission_Sign")," ")}}
1function vn(n,i){if(1&n){const t=e.RV6();e.j41(0,"mat-checkbox",68),e.bIt("change",function(o){e.eBV(t);const s=e.XpG(3);return e.Njj(s.onMotivesAccompanyingLetterManuallySignedChanged(o))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const t=e.XpG(3);e.Y8G("checked",t.motivesAccompanyingLetterDocumentDescriptor.IsManuallySigned)("disabled",t.isMotivesAccompanyingLetterDigitallySigned||t.motivesDocumentDescriptor&&t.motivesDocumentDescriptor.IsSubmitted),e.R7$(),e.SpI(" ",e.bMT(2,3,"str_Control_Tender_Buyer_232_SelectedControl_AccompanyingLetter_ManuallySigned")," ")}}function Dn(n,i){if(1&n){const t=e.RV6();e.j41(0,"span",43),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.openSignaturesDialog(o.motivesAccompanyingLetterDocument,o.motivesAccompanyingLetterDocumentDescriptor,!1))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"str_Control_Tender_Buyer_232_SelectedControl_RssForm_Sign")))}function In(n,i){1&n&&(e.j41(0,"span",44),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"str_Control_Tender_Buyer_232_SelectedControl_AccompanyingLetter_ManuallySigned")))}function Sn(n,i){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"button",71),e.bIt("click",function(){e.eBV(t);const o=e.XpG(4);return e.Njj(o.submitMotives())}),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}if(2&n){const t=e.XpG(4);e.R7$(),e.Y8G("disabled",!t.motivesAccompanyingLetterDocumentDescriptor||!t.isMotivesAccompanyingLetterDigitallySigned&&t.motivesAccompanyingLetterDocumentDescriptor&&!t.motivesAccompanyingLetterDocumentDescriptor.IsManuallySigned),e.R7$(),e.SpI(" ",e.bMT(3,2,"str_Control_Tender_Buyer_232_SelectedControl_SendButtton")," ")}}function yn(n,i){1&n&&(e.j41(0,"div",72)(1,"div",73),e.nrm(2,"mat-spinner",74),e.k0s()()),2&n&&(e.R7$(2),e.Y8G("diameter",60))}function Tn(n,i){if(1&n&&(e.j41(0,"div",69),e.DNE(1,Sn,4,4,"div",4)(2,yn,3,1,"div",70),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",!t.showMotivesSpinner),e.R7$(),e.Y8G("ngIf",t.showMotivesSpinner)}}function Fn(n,i){if(1&n&&(e.j41(0,"div",31)(1,"div",29),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",45),e.EFF(5),e.nI1(6,"nx1date"),e.k0s()()),2&n){const t=e.XpG(3);e.R7$(2),e.SpI("",e.bMT(3,3,"str_Control_Tender_Buyer_232_SelectedControl_Documents_SubmissionDate")," "),e.R7$(2),e.BMQ("id",t.getLabelId("organizationType")),e.R7$(),e.SpI(" ",e.i5U(6,5,t.motivesAccompanyingLetterDocumentDescriptor.SubmissionDateTime,"ShortDateTime")," ")}}function Rn(n,i){if(1&n&&(e.j41(0,"div",20)(1,"div",28)(2,"label",39),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.DNE(5,un,2,1,"label",40)(6,mn,1,3,"nx1-documents-upload",59)(7,_n,2,0,"button",48)(8,pn,2,0,"button",48),e.k0s(),e.j41(9,"div",28)(10,"label",39),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.DNE(13,gn,2,1,"label",40)(14,hn,1,6,"nx1-documents-upload",60)(15,bn,2,0,"button",48)(16,Cn,2,0,"button",48)(17,fn,3,4,"button",61)(18,vn,3,5,"mat-checkbox",62)(19,Dn,3,3,"span",41)(20,In,3,3,"span",42),e.k0s(),e.DNE(21,Tn,3,2,"div",63)(22,Fn,7,8,"div",32),e.k0s()),2&n){const t=e.XpG(2);e.R7$(3),e.JRh(e.bMT(4,16,"str_Control_Tender_Buyer_232_SelectedControl_MotivesSection")),e.R7$(2),e.Y8G("ngIf",t.motivesDocument),e.R7$(),e.Y8G("ngIf",t.CanManageControlSection&&!t.motivesDocument),e.R7$(),e.Y8G("ngIf",t.motivesDocument),e.R7$(),e.Y8G("ngIf",t.CanManageControlSection&&t.motivesDocumentDescriptor&&!t.motivesDocumentDescriptor.IsSubmitted&&!t.motivesAccompanyingLetterDocument),e.R7$(3),e.JRh(e.bMT(12,18,"str_Control_Tender_Buyer_232_SelectedControl_AccompanyingLetter")),e.R7$(2),e.Y8G("ngIf",t.motivesAccompanyingLetterDocument),e.R7$(),e.Y8G("ngIf",t.CanManageControlSection&&!t.motivesAccompanyingLetterDocument),e.R7$(),e.Y8G("ngIf",t.motivesAccompanyingLetterDocument),e.R7$(),e.Y8G("ngIf",t.CanManageControlSection&&t.motivesAccompanyingLetterDocumentDescriptor&&!t.motivesAccompanyingLetterDocumentDescriptor.IsSubmitted),e.R7$(),e.Y8G("ngIf",t.CanManageControlSection&&t.motivesAccompanyingLetterDocumentDescriptor&&!t.motivesAccompanyingLetterDocumentDescriptor.IsSubmitted),e.R7$(),e.Y8G("ngIf",t.CanManageControlSection&&t.motivesAccompanyingLetterDocumentDescriptor&&!t.motivesAccompanyingLetterDocumentDescriptor.IsSubmitted),e.R7$(),e.Y8G("ngIf",t.CanManageControlSection&&t.motivesAccompanyingLetterDocumentDescriptor&&t.motivesAccompanyingLetterDocumentDescriptor.IsSubmitted&&!t.motivesAccompanyingLetterDocumentDescriptor.IsManuallySigned),e.R7$(),e.Y8G("ngIf",t.CanManageControlSection&&t.motivesAccompanyingLetterDocumentDescriptor&&t.motivesAccompanyingLetterDocumentDescriptor.IsSubmitted&&t.motivesAccompanyingLetterDocumentDescriptor.IsManuallySigned),e.R7$(),e.Y8G("ngIf",t.CanManageControlSection&&(!t.motivesAccompanyingLetterDocumentDescriptor||!t.motivesAccompanyingLetterDocumentDescriptor.IsSubmitted)),e.R7$(),e.Y8G("ngIf",t.motivesAccompanyingLetterDocumentDescriptor&&t.motivesAccompanyingLetterDocumentDescriptor.IsSubmitted&&t.motivesAccompanyingLetterDocumentDescriptor.SubmissionDateTime)}}
1function kn(n,i){if(1&n&&(e.j41(0,"label",33),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI(" ",t.selectedStatementStage2.Number," ")}}function xn(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",34),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.downloadStatenentStage2Document())}),e.nrm(1,"i",35),e.k0s()}}function En(n,i){if(1&n&&(e.j41(0,"div",45),e.EFF(1),e.nI1(2,"nx1date"),e.k0s()),2&n){const t=e.XpG(3);e.BMQ("id",t.getLabelId("organizationType")),e.R7$(),e.SpI(" ",e.i5U(2,2,t.statementStage2DocumentDescriptor.SubmissionDateTime,"ShortDateTime")," ")}}function Bn(n,i){if(1&n&&(e.j41(0,"div",20)(1,"div",47),e.DNE(2,kn,2,1,"label",40)(3,xn,2,0,"button",48),e.k0s(),e.j41(4,"div",49)(5,"div",29),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.DNE(8,En,3,5,"div",50),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngIf",t.statementStage2Document),e.R7$(),e.Y8G("ngIf",t.statementStage2Document),e.R7$(2),e.BMQ("id",t.getLabelId("organizationType")),e.R7$(),e.SpI("",e.bMT(7,5,"str_Control_Tender_Buyer_232_SelectedControl_StatementSendOn")," "),e.R7$(2),e.Y8G("ngIf",t.statementStage2DocumentDescriptor)}}function $n(n,i){1&n&&(e.j41(0,"div",20)(1,"label",51),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"str_Control_Tender_Buyer_232_SelectedControl_NoSendStatement")," "))}function jn(n,i){if(1&n){const t=e.RV6();e.j41(0,"tr")(1,"td")(2,"span",57),e.bIt("click",function(){const o=e.eBV(t).index,s=e.XpG(3);return e.Njj(s.downloadDocument(s.previousStatementsDocuments2[o].Id))}),e.EFF(3),e.k0s()(),e.j41(4,"td")(5,"span",58),e.EFF(6),e.nI1(7,"nx1date"),e.k0s()()()}if(2&n){const t=i.$implicit;e.R7$(3),e.JRh(t.Number),e.R7$(3),e.JRh(e.i5U(7,2,t.SubmissionDateTime,"ShortDateTime"))}}function Mn(n,i){if(1&n&&(e.j41(0,"div",52)(1,"div",75)(2,"table")(3,"tr")(4,"td")(5,"label",54),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.j41(8,"td")(9,"label",55),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.DNE(12,jn,8,5,"tr",56),e.k0s()()()),2&n){const t=e.XpG(2);e.R7$(6),e.JRh(e.bMT(7,3,"str_Control_232_PreviousStatements")),e.R7$(4),e.JRh(e.bMT(11,5,"str_Control_Tender_Buyer_232_SelectedControl_StatementSendOn")),e.R7$(2),e.Y8G("ngForOf",t.previousStatements2)}}function wn(n,i){if(1&n&&(e.j41(0,"div",6)(1,"div",7)(2,"div",8)(3,"div",9)(4,"div",10)(5,"span"),e.EFF(6),e.k0s()()(),e.j41(7,"div",11)(8,"div",12)(9,"div",13)(10,"div",14),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"div",14),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"div",15),e.EFF(17),e.nI1(18,"translate"),e.k0s()(),e.j41(19,"div",16)(20,"div",17),e.EFF(21),e.nI1(22,"nx1EnumTranslate"),e.nI1(23,"translate"),e.k0s(),e.j41(24,"div",17),e.EFF(25),e.nI1(26,"nx1EnumTranslate"),e.nI1(27,"translate"),e.k0s(),e.j41(28,"div",18),e.EFF(29," --- "),e.k0s()()()()()(),e.DNE(30,Jt,22,17,"div",4),e.nI1(31,"async"),e.j41(32,"div")(33,"div",19)(34,"div",20)(35,"div",21)(36,"label",22),e.EFF(37),e.nI1(38,"translate"),e.k0s()()(),e.DNE(39,Kt,5,3,"div",23)(40,tn,5,4,"ng-template",null,0,e.C5r),e.k0s()(),e.j41(42,"div",24)(43,"div",20)(44,"div",21)(45,"label",22),e.EFF(46),e.nI1(47,"translate"),e.k0s()()(),e.DNE(48,sn,9,7,"div",25)(49,cn,4,3,"ng-template",null,1,e.C5r),e.j41(51,"div",26),e.DNE(52,ln,13,7,"div",27),e.k0s()(),e.j41(53,"div",24)(54,"div",20)(55,"div",21)(56,"label",22),e.EFF(57),e.nI1(58,"translate"),e.k0s()()(),e.DNE(59,dn,5,3,"div",25)(60,Rn,23,20,"ng-template",null,2,e.C5r),e.k0s(),e.j41(62,"div",24)(63,"div",20)(64,"div",21)(65,"label",22),e.EFF(66),e.nI1(67,"translate"),e.k0s()()(),e.DNE(68,Bn,9,7,"div",25)(69,$n,4,3,"ng-template",null,3,e.C5r),e.j41(71,"div",26),e.DNE(72,Mn,13,7,"div",27),e.k0s()()()),2&n){const t=i.ngIf,r=e.sdS(41),o=e.sdS(50),s=e.sdS(61),d=e.sdS(70),a=e.XpG();e.R7$(6),e.JRh(t.Number),e.R7$(5),e.JRh(e.bMT(12,27,"str_Control_Tender_Buyer_232_SelectedControl_Status")),e.R7$(3),e.JRh(e.bMT(15,29,"str_Control_Tender_Buyer_232_SelectedControl_Phase")),e.R7$(3),e.JRh(e.bMT(18,31,"str_Control_Tender_Buyer_232_SelectedControl_To")),e.R7$(3),e.BMQ("id",a.getId("start-date")),e.R7$(),e.SpI(" ",e.bMT(23,36,e.i5U(22,33,t.Status,a.statusEnum))," "),e.R7$(3),e.BMQ("id",a.getId("start-date")),e.R7$(),e.SpI(" ",e.bMT(27,41,e.i5U(26,38,a.getControlContextPhase232EnumValue(t.Phase232),a.phase232Enum))," "),e.R7$(3),e.BMQ("id",a.getId("start-date")),e.R7$(2),e.Y8G("ngIf",e.bMT(31,43,a.selectedRssForm$)),e.R7$(7),e.JRh(e.bMT(38,45,"str_Control_Tender_Buyer_232_SelectedControl_DocumentsSectionTitle")),e.R7$(2),e.Y8G("ngIf",a.areDocumentProjectsOverdue)("ngIfElse",r),e.R7$(3),e.Y8G("ngClass",e.eq3(53,z,!a.isStatement1PanelEnabled)),e.R7$(4),e.JRh(e.bMT(47,47,"str_Control_Tender_Buyer_232_SelectedControl_StatementStage1")),e.R7$(2),e.Y8G("ngIf",a.statementStage1DocumentDescriptor&&a.statementStage1DocumentDescriptor.IsSubmitted)("ngIfElse",o),e.R7$(4),e.Y8G("ngIf",a.previousStatements1.length>0),e.R7$(),e.Y8G("ngClass",e.eq3(55,z,!a.isMotivesPanelEnabled)),e.R7$(4),e.JRh(e.bMT(58,49,"str_Control_Tender_Buyer_232_SelectedControl_MotivesSection")),e.R7$(2),e.Y8G("ngIf",(!a.motivesDocumentDescriptor||!a.motivesDocumentDescriptor.IsSubmitted)&&a.selectedControlContext232.MotivesSubmissionDeadline&&!a.selectedControlContext232.IsMotivesSubmissionDeadlineInTheFuture)("ngIfElse",s),e.R7$(3),e.Y8G("ngClass",e.eq3(57,z,!a.isStatement2PanelEnabled)),e.R7$(4),e.JRh(e.bMT(67,51,"str_Control_Tender_Buyer_232_SelectedControl_StatementStage2")),e.R7$(2),e.Y8G("ngIf",a.selectedStatementStage2&&a.selectedStatementStage2.SubmissionDateTime)("ngIfElse",d),e.R7$(4),e.Y8G("ngIf",a.previousStatements2.length>0)}}let An=(()=>{class n extends F.$G{constructor(t,r,o,s,d,a,p,u,b,C,v,D){super(t),this.viewContainerRef
1=t,this.dialogService=r,this.changeDetectorRef=o,this.documentService=s,this.tenderStoreService=d,this.route=a,this.router=p,this.routerStoreService=u,this.controlService=b,this.controlStoreService=C,this.controlRelatedDocumentService=v,this.tenderGuard=D,this.phase232Enum=NX1.Model.Enums.ControlContext232Phase,this.statusEnum=NX1.Model.Enums.ControlContextStatus,this.selectedControlContext232TenderId$=this.routerStoreService.getIdFromParams(this.route.paramMap,"id"),this.isStatement1PanelEnabled=!1,this.isMotivesPanelEnabled=!1,this.isStatement2PanelEnabled=!1,this.areDocumentProjectsOverdue=!1,this.showMotivesSpinner=!1,this.subscriptions=[]}get CanViewControlSection(){return this.tenderGuard.canViewTenderControlSection}get CanManageControlSection(){return this.tenderGuard.canManageTenderControlSection}ngOnInit(){this.tender$=this.tenderStoreService.getCurrentTender();const t=this.tender$.subscribe(r=>{this.tender=r,this.controlService.refreshTenderControlDataInTheStore(this.tender.Id)});this.selectedControlContext232$=this.controlService.getControlContext232ByTenderId(this.tender.Id),this.isMotivesAccompanyingLetterDigitallySigned$=this.controlStoreService.getIsControlDocumentAlreadySignedByCurrentUser().pipe((0,y.M)(r=>{this.changeDetectorRef.markForCheck()})),this.subscriptions.push(this.selectedControlContext232$.subscribe(r=>{this.selectedControlContext232=r,this.areDocumentProjectsOverdue=this.selectedControlContext232.Phase232===NX1.Model.Enums.ControlContext232Phase.AwaitingDelayHandling,this.selectedRssForm$=this.controlService.getRandomSelectionSystemRegistrationFormById(r.RegistrationFormId),this.selectedStatementStage1=this.selectedControlContext232.StatementsForStage1.find(o=>o.Id===this.selectedControlContext232.StatementStage1Id),this.selectedStatementStage2=this.selectedControlContext232.StatementsForStage2.find(o=>o.Id===this.selectedControlContext232.StatementStage2Id),this.selectedRssFormDocumentDescriptor=this.controlService.findDocumentDecriptorInArray(this.selectedControlContext232.AssociatedDocumentDescriptors,NX1.Model.Enums.ControlRelatedDocumentType.ControlByArticle232RegistrationForm),this.selectedRssFormDocumentDescriptor&&this.selectedRssFormDocumentDescriptor.IsSubmitted&&(this.selectedRssFormDocument$=this.documentService.getDocumentById(this.selectedRssFormDocumentDescriptor.DocumentId),this.subscriptions.push(this.selectedRssFormDocument$.subscribe(o=>{this.selectedRssFormDocument=o,this.changeDetectorRef.markForCheck()}))),this.documentPackageDocumentDescriptor=this.controlService.findDocumentDecriptorInArray(this.selectedControlContext232.AssociatedDocumentDescriptors,NX1.Model.Enums.ControlRelatedDocumentType.ControlByArticle232DocumentPackage),this.documentPackageDocumentDescriptor&&this.documentPackageDocumentDescriptor.IsSubmitted&&(this.documentPackageDocument$=this.documentService.getDocumentById(this.documentPackageDocumentDescriptor.DocumentId),this.subscriptions.push(this.documentPackageDocument$.subscribe(o=>{this.documentPackageDocument=o,this.changeDetectorRef.markForCheck(),this.documentPackageAccompanyingLetterDocumentDescriptor=this.controlService.findDocumentDecriptorInArray(this.selectedControlContext232.AssociatedDocumentDescriptors,NX1.Model.Enums.ControlRelatedDocumentType.AccompanyingLetter,this.documentPackageDocumentDescriptor.Id),this.documentPackageAccompanyingLetterDocumentDescriptor&&this.documentPackageAccompanyingLetterDocumentDescriptor.IsSubmitted&&(this.documentPackageAccompanyingLetterDocument$=this.documentService.getDocumentById(this.documentPackageAccompanyingLetterDocumentDescriptor.DocumentId),this.subscriptions.push(this.documentPackageAccompanyingLetterDocument$.subscribe(s=>{this.documentPackageAccompanyingLetterDocument=s,this.changeDetectorRef.markForCheck()})))}))),this.loadMotivesSection(),this.selectedStatementStage1&&(this.statementStage1DocumentDescriptor=this.controlService.findDocumentDecriptorInArrayByDescriptorId(this.selectedControlContext232.AssociatedDocumentDescriptors,this.selectedStatementStage1.ControlRelatedDocumentDescriptorId),this.statementStage1DocumentDescriptor&&this.statementStage1DocumentDescriptor.IsSubmitted&&(this.statementStage1Document$=this.documentService.getDocumentById(this.statementStage1DocumentDescriptor.DocumentId),this.subscriptions.push(this.statementStage1Document$.subscribe(o=>{this.statementStage1Document=o,this.changeDetectorRef.markForCheck()})))),this.selectedStatementStage2&&(this.statementStage2DocumentDescriptor=this.controlService.findDocumentDecriptorInArrayByDescriptorId(this.selectedControlContext232.AssociatedDocumentDescriptors,this.selectedStatementStage2.ControlRelatedDocumentDescriptorId),this.statementStage2DocumentDescriptor&&this.statementStage2DocumentDescriptor.IsSubmitted&&(this.statementStage2Document$=this.documentService.getDocumentById(this.statementStage2DocumentDescriptor.DocumentId),this.subscriptions.push(this.statementStage2Document$.subscribe(o=>{this.statementStage2Document=o,this.changeDetectorRef.markForCheck()})))),this.updateSectionsEnabledDisabledStatus(),this.loadPreviousStatementsDataForBothStages()})),this.subscriptions.push(t)}ngOnDestroy(){for(const t of this.subscriptions)t.unsubscribe()}goToDocuments(){this.router.navigate(["/tender",this.tender.Id,"buyer","control","documents"])}openRegFormDialog(t){const r=new h.Pe;
1r.viewContainerRef=this.viewContainerRef,this.controlRegFormViewRef=this.dialogService.open(ie,r),this.controlRegFormViewRef.componentInstance.regFInfo=t}onAddMotivesDocuments(t){const r=this.controlService.generateDescriptorInfoObjectsInFrontEnd(t,NX1.Model.Enums.ControlType.ByArticle232,this.selectedControlContext232.Id,NX1.Model.Enums.ControlRelatedDocumentType.RefusalOfAmendmentMotive),o=this.controlRelatedDocumentService.createDescriptors(r);this.subscriptions.push(o.subscribe(s=>{this.motivesDocument=null,this.motivesDocument$=null,this.motivesDocumentDescriptor=s[0],this.selectedControlContext232.AssociatedDocumentDescriptors.push(this.motivesDocumentDescriptor),this.loadMotivesSection()}))}onAddMotivesAccompanyingLetterDocuments(t){const r=this.controlService.generateDescriptorInfoObjectsInFrontEnd(t,NX1.Model.Enums.ControlType.ByArticle232,this.selectedControlContext232.Id,NX1.Model.Enums.ControlRelatedDocumentType.AccompanyingLetter,this.motivesDocumentDescriptor.Id),o=this.controlRelatedDocumentService.createDescriptors(r);this.subscriptions.push(o.subscribe(s=>{this.motivesAccompanyingLetterDocument=null,this.motivesAccompanyingLetterDocument$=null,this.motivesAccompanyingLetterDocumentDescriptor=s[0],this.selectedControlContext232.AssociatedDocumentDescriptors.push(this.motivesAccompanyingLetterDocumentDescriptor),this.loadMotivesSection()}))}deleteMotivesDescriptor(){this.motivesDocumentDescriptor&&this.motivesDocumentDescriptor.Id&&this.controlRelatedDocumentService.deleteDescriptor(this.motivesDocumentDescriptor.Id).subscribe(()=>{const t=this.selectedControlContext232.AssociatedDocumentDescriptors.findIndex(r=>r.Id===this.motivesDocumentDescriptor.Id);this.selectedControlContext232.AssociatedDocumentDescriptors.splice(t,1),this.motivesDocument=null,this.motivesDocument$=null,this.motivesDocumentDescriptor=null,this.motivesDocumentDescriptor$=null,this.changeDetectorRef.markForCheck()})}deleteMotivesAccompanyingLetterDescriptor(){this.motivesAccompanyingLetterDocumentDescriptor&&this.motivesAccompanyingLetterDocumentDescriptor.Id&&this.controlRelatedDocumentService.deleteDescriptor(this.motivesAccompanyingLetterDocumentDescriptor.Id).subscribe(()=>{const t=this.selectedControlContext232.AssociatedDocumentDescriptors.findIndex(r=>r.Id===this.motivesAccompanyingLetterDocumentDescriptor.Id);this.selectedControlContext232.AssociatedDocumentDescriptors.splice(t,1),this.motivesAccompanyingLetterDocument=null,this.motivesAccompanyingLetterDocument$=null,this.motivesAccompanyingLetterDocumentDescriptor=null,this.motivesAccompanyingLetterDocumentDescriptor$=null,this.changeDetectorRef.markForCheck()})}downloadRegistrationFormDocument(){const t=this.documentService.downloadDocumentById(this.selectedRssFormDocument.Id).subscribe(()=>{t.unsubscribe()})}downloadDocumentPackage(){const t=this.documentService.downloadDocumentById(this.documentPackageDocument.Id).subscribe(()=>{t.unsubscribe()})}downloadDocumentPackageAccompanyingLetter(){const t=this.documentService.downloadDocumentById(this.documentPackageAccompanyingLetterDocument.Id).subscribe(()=>{t.unsubscribe()})}downloadStatenentStage1Document(){const t=this.documentService.downloadDocumentById(this.statementStage1Document.Id).subscribe(()=>{t.unsubscribe()})}downloadMotives(){const t=this.documentService.downloadDocumentById(this.motivesDocument.Id).subscribe(()=>{t.unsubscribe()})}downloadMotivesAccompanyingLetter(){const t=this.documentService.downloadDocumentById(this.motivesAccompanyingLetterDocument.Id).subscribe(()=>{t.unsubscribe()})}downloadStatenentStage2Document(){const t=this.documentService.downloadDocumentById(this.statementStage2Document.Id).subscribe(()=>{t.unsubscribe()})}downloadDocument(t){this.subscriptions.push(this.documentService.downloadDocumentById(t).subscribe())}openSignaturesDialog(t,r,o){this.destroySignDocumentRef(),this.controlStoreService.loadControlDocumentSignatures(t.Id);const s=new h.Pe;s.viewContainerRef=this.viewContainerRef,this.digitalSignaturesDialogComponent=this.dialogService.open(B.m,s),this.digitalSignaturesDialogComponent.componentInstance.pdfDocument=t,this.digitalSignaturesDialogComponent.componentInstance.digitalSignaturesList$=this.controlStoreService.getCurrentControlDocumentDigitalSignatures(),this.digitalSignaturesDialogComponent.componentInstance.canManageSignatures=o,this.digitalSignaturesDialogComponent.componentInstance.isAlreadySigned$=this.controlStoreService.getIsControlDocumentAlreadySignedByCurrentUser(),this.digitalSignaturesDialogComponent.componentInstance.isLoadingSignatures$=this.controlStoreService.getIsLoadingSignatures(),this.digitalSignaturesDialogComponent.componentInstance.objectId=r.Id,this.digitalSignaturesDialogComponent.componentInstance.objectGuid=r.Guid,this.digitalSignaturesDialogComponent.componentInstance.entityId=r.EntityId,this.digitalSignaturesDialogComponent.componentInstance.deleteConfirmationContentKeyword="str_DocumentEditor_delete_signature_confirmation_message",this.digitalSignaturesDialogComponent.componentInstance.signTitleKeyword="str_C
1ommon_sign",this.changeDetectorRef.markForCheck()}onMotivesAccompanyingLetterManuallySignedChanged(t){this.motivesAccompanyingLetterDocumentDescriptor.IsManuallySigned=t.checked;const r=this.controlRelatedDocumentService.updateDescriptor(this.motivesAccompanyingLetterDocumentDescriptor).subscribe(o=>{this.motivesAccompanyingLetterDocumentDescriptor=o,r.unsubscribe(),this.changeDetectorRef.markForCheck()})}submitMotives(){this.showMotivesSpinner=!0;const t=this.controlService.submitMotivesForControlBy232(this.selectedControlContext232.Id).subscribe(()=>{this.motivesDocumentDescriptor.IsSubmitted=!0,this.motivesDocumentDescriptor.SubmissionDateTime=new Date,this.controlService.addOrReplaceDocumentDecriptorInArray(this.selectedControlContext232.AssociatedDocumentDescriptors,this.motivesDocumentDescriptor),this.motivesAccompanyingLetterDocumentDescriptor.IsSubmitted=!0,this.motivesAccompanyingLetterDocumentDescriptor.SubmissionDateTime=new Date,this.controlService.addOrReplaceDocumentDecriptorInArray(this.selectedControlContext232.AssociatedDocumentDescriptors,this.motivesAccompanyingLetterDocumentDescriptor),this.showMotivesSpinner=!1,this.changeDetectorRef.markForCheck(),t.unsubscribe()})}getControlContextPhase232EnumValue(t){let r;try{r=t}catch{r=NX1.Model.Enums.ControlContext232Phase.None}return r}updateSectionsEnabledDisabledStatus(){const t=this.selectedControlContext232.Phase232;this.isStatement1PanelEnabled=t>=NX1.Model.Enums.ControlContext232Phase.AwaitingExpertAssignmentForStage1,this.isMotivesPanelEnabled=t>NX1.Model.Enums.ControlContext232Phase.AwaitingStatementFromPpaForStage1,this.isStatement2PanelEnabled=t>=NX1.Model.Enums.ControlContext232Phase.AwaitingExpertAssignmentForStage2}loadPreviousStatementsDataForBothStages(){this.previousStatements1=this.selectedControlContext232.StatementsForStage1.filter(t=>t.Id!==this.selectedControlContext232.StatementStage1Id),this.previousStatements1.sort((t,r)=>this.comparingFunction(t.SubmissionDateTime,r.SubmissionDateTime,!1)),this.previousStatementsDocumentDescriptors1=[],this.previousStatementsDocuments1=[];for(let t=0;t<this.previousStatements1.length;t++){const r=this.previousStatements1[t],o=this.selectedControlContext232.AssociatedDocumentDescriptors.find(s=>s.Id===r.ControlRelatedDocumentDescriptorId);this.previousStatementsDocumentDescriptors1.push(o),this.subscriptions.push(this.documentService.getDocumentById(o.DocumentId).subscribe(s=>{this.previousStatementsDocuments1.push(s),this.previousStatementsDocuments1.sort((d,a)=>this.comparingFunction(d.CreatedDate,a.CreatedDate,!1)),this.changeDetectorRef.markForCheck()}))}this.previousStatements2=this.selectedControlContext232.StatementsForStage2.filter(t=>t.Id!==this.selectedControlContext232.StatementStage2Id),this.previousStatements2.sort((t,r)=>this.comparingFunction(t.SubmissionDateTime,r.SubmissionDateTime,!1)),this.previousStatementsDocumentDescriptors2=[],this.previousStatementsDocuments2=[];for(let t=0;t<this.previousStatements2.length;t++){const r=this.previousStatements2[t],o=this.selectedControlContext232.AssociatedDocumentDescriptors.find(s=>s.Id===r.ControlRelatedDocumentDescriptorId);this.previousStatementsDocumentDescriptors2.push(o),this.subscriptions.push(this.documentService.getDocumentById(o.DocumentId).subscribe(s=>{this.previousStatementsDocuments2.push(s),this.previousStatementsDocuments2.sort((d,a)=>this.comparingFunction(d.CreatedDate,a.CreatedDate,!1)),this.changeDetectorRef.markForCheck()}))}}comparingFunction(t,r,o){typeof o>"u"&&(o=!0);let s=1;return o||(s=-1),t>r?1*s:t<r?-1*s:0}destroySignDocumentRef(){this.digitalSignaturesDialogComponent&&(this.digitalSignaturesDialogComponent.close(),this.digitalSignaturesDialogComponent=null)}loadMotivesSection(){this.motivesDocumentDescriptor=this.controlService.findDocumentDecriptorInArray(this.selectedControlContext232.AssociatedDocumentDescriptors,NX1.Model.Enums.ControlRelatedDocumentType.RefusalOfAmendmentMotive),this.motivesDocumentDescriptor&&(this.motivesDocument$=this.documentService.getDocumentById(this.motivesDocumentDescriptor.DocumentId),this.subscriptions.push(this.motivesDocument$.subscribe(t=>{this.motivesDocument=t,this.changeDetectorRef.markForCheck(),this.motivesAccompanyingLetterDocumentDescriptor=this.controlService.findDocumentDecriptorInArray(this.selectedControlContext232.AssociatedDocumentDescriptors,NX1.Model.Enums.ControlRelatedDocumentType.AccompanyingLetter,this.motivesDocumentDescriptor.Id),this.motivesAccompanyingLetterDocumentDescriptor&&(this.motivesAccompanyingLetterDocument$=this.documentService.getDocumentById(this.motivesAccompanyingLetterDocumentDescriptor.DocumentId),this.subscriptions.push(this.motivesAccompanyingLetterDocument$.subscribe(r=>{this.motivesAccompanyingLetterDocument=r,this.changeDetectorRef.markForCheck(),this.controlStoreService.loadControlDocumentSignatures(this.motivesAccompanyingLetterDocument.Id),this.isMotivesAccompanyingLetterDigitallySigned$=this.controlStoreService.getIsControlDocumentAlreadySignedByCurrentUser().pipe((0,y.M)(o=>{this.isMotivesAccompanyingLetterDigitallySigned=o,this.changeDetectorRef.markForCheck()}))})))})))}static{this.\u0275fac=function(r){return new(r||n)(e.rXU(e.c1b),e.rXU(h.o3),e.rXU(e.gRc),e.rXU(l.DKw),e.rXU(l.$gx),e.rXU(g.nX),e.rXU(g.Ix),e.rXU(l.o9Y),e.rXU(l.het),e.rXU(l.CFu),e.rXU(l.N$f),e.rXU(R.U))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["nx1-tender-buyer-control-selected"]],features:[e.Jv_([{provide:$.Q,useClass:j.Q}]),e.Vt3],decls:4,vars:6,consts:[["elseBlockDocumentPackage",""],["noStatementStage1Block",""],["elseBlockMotives",""],["noStatementStage2Block",""],[4,"ngIf"],["class","min--width-600",4,"ngIf"],[1,"min--width-600"],[1,"nxcard","bg--white","z1","margin--bottom-20","margin--top-20"],[1,"nxcard__header"],[1,"nxcard__header-title"],[1,"nxcard__header-title-content"],[1,"pos--relative","flex-element--right","flex-row"],[1,"flex-row","padding--8","padding--left-15","align--center","margin--5"],[1,""],[1,"margin--bottom-5","text--14px","text--bold","text--grey25","text--uppercase"],[1,"text--14px","text--bold","text--grey25","text--uppercase"],[1,"text--bold","text--left"],[1,"margin--bottom-5","padding--left-10","text--14px","text--bold","text--grey55","text--uppercase"],[1,"padding--left-10","text--14px","text--bold","text--grey55","text--uppercase"],[1,"nxcard","margin--bottom-20","bg--white","z1"],[1,"border--bottom","nxcard__body-row"],[1,"break-word","col-md-12","col-xs-12","nxcard__body-cell","overflow-hidden"],[1,"profile-value"],[4,"ngIf","ngIfElse"],[3,"ngClass"],["class","border--bottom nxcard__body-row",4,"ngIf","ngIfElse"],[1,"nxcard__body-row"],["class","margin--top-10 col-md-12",4,"ngIf"],[1,"break-word","col-md-4","col-xs-4","nxcard__body-cell","overflow-hidden"],[1,"profile-label"],[1,"pointer","text--bold","text--20px","link-text",3,"click"],[1,"col-md-4","col-xs-4","nxcard__body-cell"],["class","col-md-4 col-xs-4 nxcard__body-cell",4,"ngIf"],[1,"profile-value","margin--bottom-5"],["mat-button","","color","primary",1,"margin--left-10",3,"click"],[1,"mdi","mdi-download"],[1,"margin--left-10","link-text","text--bold","text--20px","pointer",3,"click"],[1,"margin--10"],["class","break-word col-md-4 col-xs-4 nxcard__body-cell overflow-hidden",4,"ngIf"],[1,"profile-label","margin--bottom-5"],["class","profile-value margin--bottom-5",4,"ngIf"],["class","margin--left-10 link-text text--bold text--20px",3,"click",4,"ngIf"],["class","margin--left-10 text--bold text--20px",4,"ngIf"],[1,"margin--left-10","link-text","text--bold","text--20px",3,"click"],[1,"margin--left-10","text--bold","text--20px"],[1,"text--bold","text--20px"],["mat-button","","color","primary",1,"margin--top-5","margin--right-5",3,"click"],[1,"break-word","col-md-6","col-xs-6","nxcard__body-cell","overflow-hidden"],["mat-button","","color","primary","class","margin--left-10",3,"click",4,"ngIf"],[1,"col-md-6","col-xs-6","nxcard__body-cell"],["class","text--bold text--20px",4,"ngIf"],[1,"margin--20"],[1,"margin--top-10","col-md-12"],[1,"col-md-12","col-xs-12","nxcard__body-cell","padding--left-0","padding--top-0"],[1,"text--bold","text--15px"],[1,"text--bold","text--15px","margin--left-5"],[4,"ngFor","ngForOf"],[1,"link-text","text--bold","text--15px",3,"click"],[1,"margin--left-5"],[3,"keyword","showConsentCheckbox","multiple","save",4,"ngIf"],[3,"keyword","showConsentCheckbox","multiple","ngClass","save",4,"ngIf"],["mat-button","","color","primary","class","margin--left-10",3,"disabled","click",4,"ngIf"],["class","margin--left-10",3,"checked","disabled","change",4,"ngIf"],["class","break-word col-md-4 col-xs-6 nxcard__body-cell overflow-hidden",4,"ngIf"],[3,"save","keyword","showConsentCheckbox","multiple"],[1,"mdi","mdi-window-close"],[3,"save","keyword","showConsentCheckbox","multiple","ngClass"],["mat-button","","color","primary",1,"margin--left-10",3,"click","disabled"],[1,"margin--left-10",3,"change","checked","disabled"],[1,"break-word","col-md-4","col-xs-6","nxcard__body-cell","overflow-hidden"],["class","display--flex","style","height: 100%;",4,"ngIf"],["mat-button","","color","primary",1,"margin--left-10","mat-warn",3,"click","disabled"],[1,"display--flex",2,"height","100%"],[2,"margin","auto"],[3,"diameter"],[1,"col-md-12","col-xs-12","nxcard__body-cell","padding--left-0","padding--right-0","padding--top-0"]],template:function(r,o){1&r&&(e.DNE(0,Yt,1,0,"ng-container",4),e.nI1(1,"async"),e.DNE(2,wn,73,59,"div",5),e.nI1(3,"async")),2&r&&(e.Y8G("ngIf",e.bMT(1,2,o.isMotivesAccompanyingLetterDigitallySigned$)),e.R7$(2),e.Y8G("ngIf",e.bMT(3,4,o.selectedControlContext232$)))},dependencies:[m.YU,m.Sq,m.bT,S.iV,N.NZ,k.wS,A.p,m.Jj,I.D9,T.R9,M.O],styles:[".link-text[_ngcontent-%COMP%]{text-decoration:underline;color:#47abcc;cursor:pointer}.link-text[_ngcontent-%COMP%]:hover, .link-text[_ngcontent-%COMP%]:active, .link-text[_ngcontent-%COMP%]:focus{text-decoration:underline}.disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}.min--width-600[_ngcontent-%COMP%]{min-width:600px}"],changeDetection:0})}}return n})();
1function Pn(n,i){if(1&n&&(e.j41(0,"div")(1,"div",11)(2,"div",15),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",16)(6,"div",11)(7,"div",17)(8,"label",18),e.EFF(9),e.nI1(10,"translate"),e.k0s()(),e.j41(11,"div",19)(12,"span",20),e.EFF(13),e.k0s()()(),e.j41(14,"div",11)(15,"div",17)(16,"label",18),e.EFF(17),e.nI1(18,"translate"),e.k0s()(),e.j41(19,"div",19)(20,"span",20),e.EFF(21),e.k0s()()(),e.j41(22,"div",11)(23,"div",17)(24,"label",18),e.EFF(25),e.nI1(26,"translate"),e.k0s()(),e.j41(27,"div",19)(28,"span",20),e.EFF(29),e.k0s()()(),e.j41(30,"div",11)(31,"div",17)(32,"label",18),e.EFF(33),e.nI1(34,"translate"),e.k0s()(),e.j41(35,"div",19)(36,"span",20),e.EFF(37),e.k0s()()(),e.j41(38,"div",11)(39,"div",17)(40,"label",18),e.EFF(41),e.nI1(42,"translate"),e.k0s()(),e.j41(43,"div",19)(44,"span",20),e.EFF(45),e.nI1(46,"nx1EnumTranslate"),e.nI1(47,"translate"),e.k0s()()(),e.j41(48,"div",21)(49,"div",17)(50,"label",18),e.EFF(51),e.nI1(52,"translate"),e.k0s()(),e.j41(53,"div",19)(54,"span",20),e.EFF(55),e.nI1(56,"nx1EnumTranslate"),e.nI1(57,"translate"),e.k0s()()()()()()),2&n){const t=i.ngIf,r=e.XpG();e.R7$(3),e.SpI(" I. ",e.bMT(4,14,"str_Control_Tender_Buyer_233_Submit_Identification")," "),e.R7$(2),e.BMQ("id",r.getLabelId("name")),e.R7$(4),e.SpI("1. ",e.bMT(10,16,"str_Control_Tender_Buyer_233_Submit_Tender_SpecialNumber"),""),e.R7$(4),e.JRh(t.SpecialNumber),e.R7$(4),e.SpI("2. ",e.bMT(18,18,"str_Control_Tender_Buyer_233_Submit_TenderBuyer_Name"),""),e.R7$(4),e.JRh(t.ContractingAuthorityName),e.R7$(4),e.SpI("3. ",e.bMT(26,20,"str_Control_Tender_Buyer_233_Submit_TenderSubject"),""),e.R7$(4),e.JRh(t.TenderName),e.R7$(4),e.SpI("4. ",e.bMT(34,22,"str_Control_Tender_Buyer_233_Submit_Tender_EstimatedValue"),""),e.R7$(4),e.JRh(t.TenderEstimatedValue),e.R7$(4),e.SpI("5. ",e.bMT(42,24,"str_Control_Tender_Buyer_232_Submit_Page_Tender_Currency"),""),e.R7$(4),e.JRh(e.bMT(47,29,e.i5U(46,26,null==t?null:t.TenderCurrency,r.currencyType))),e.R7$(6),e.SpI("6. ",e.bMT(52,31,"str_Control_Tender_Buyer_233_Submit_Tender_TypeOfContract"),""),e.R7$(4),e.JRh(e.bMT(57,36,e.i5U(56,33,t.TenderTypeOfContract,r.typeOfContractEnum)))}}function Gn(n,i){if(1&n&&(e.j41(0,"div")(1,"div",11)(2,"div",12),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",13),e.EFF(6),e.k0s()()()),2&n){let t;const r=i.$implicit,o=e.XpG();e.R7$(3),e.SpI(" II. ",e.bMT(4,2,"str_Control_Tender_Buyer_233_Submit_LegalBase")," "),e.R7$(3),e.SpI(" ",null==(t=o.getLegalBaseById(r,null==o.formInfo?null:o.formInfo.LegalBaseId))?null:t.Mnemonic," ")}}function Nn(n,i){1&n&&(e.j41(0,"div",13),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"str_Control_Tender_Buyer_233_Submit_Tender_NoFundingProgram")," "))}function Xn(n,i){if(1&n&&(e.j41(0,"div",13),e.EFF(1),e.k0s()),2&n){let t;const r=e.XpG().$implicit,o=e.XpG();e.R7$(),e.SpI(" ",null==(t=o.getFundingProgramById(r,null==o.formInfo?null:o.formInfo.FundingProgramId))?null:t.Mnemonic," ")}}function Vn(n,i){if(1&n&&(e.j41(0,"div")(1,"div",11)(2,"div",12),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.DNE(5,Nn,3,3,"div",22)(6,Xn,2,1,"ng-template",null,0,e.C5r),e.k0s()()),2&n){const t=e.sdS(7),r=e.XpG();e.R7$(3),e.SpI(" III. ",e.bMT(4,3,"str_Control_Tender_Buyer_233_Submit_Tender_FundingProgram")," "),e.R7$(2),e.Y8G("ngIf",0===r.formInfo.FundingProgramId)("ngIfElse",t)}}
1function On(n,i){if(1&n&&(e.j41(0,"div",20)(1,"span",23),e.EFF(2),e.k0s()()),2&n){const t=i.$implicit,r=e.XpG();e.BMQ("id",r.getLabelId("emailAddresses")),e.R7$(2),e.JRh(t)}}let Ln=(()=>{class n extends F.$G{constructor(t,r,o,s){super(t),this.controlService=r,this.utilsService=o,this.control233FormViewRef=s,this.submit=new e.bkB(!1),this.procedureTypeEnum=NX1.Model.Enums.ProcedureType,this.typeOfContractEnum=NX1.Model.Enums.TypeOfContract,this.estimatedValueThresholdEnum=NX1.Model.Enums.EstimatedValueThreshold,this.fundingSourceEnum=NX1.Model.Enums.FundingSource,this.activityTypeGroupEnum=NX1.Model.Enums.ActivityTypeGroup,this.currencyType=NX1.Model.Enums.CurrencyType}ngOnInit(){this.additionalData$=this.controlService.getControl233And235AdditionalData(this.formInfo.TenderId),this.fundingPrograms$=this.controlService.retrieveFundingPrograms(!0),this.legalBases$=this.controlService.retrieveLegalBasesByControlType(NX1.Model.Enums.ControlType.ByArticle233,!1)}close(){this.control233FormViewRef.close()}onCancel(){this.close()}getFundingProgramById(t,r){let o;for(const s of t)if(s.Id===r){o=s;break}return o}getLegalBaseById(t,r){let o;for(const s of t)if(s.Id===r){o=s;break}return o}static{this.\u0275fac=function(r){return new(r||n)(e.rXU(e.c1b),e.rXU(l.het),e.rXU(l.TJO),e.rXU(U.RN))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["nx1-control-buyer-233-form-view"]],inputs:{formInfo:"formInfo",parentId:"parentId",currentName:"currentName"},outputs:{submit:"submit"},features:[e.Vt3],decls:24,vars:17,consts:[["elseBlockFundingProgram",""],[1,"nxcard","z1","bg--white","overflow-hidden"],[1,"nxcard__header"],[1,"nxcard__header-title"],[1,"nxcard__header-title-content"],[1,"text--uppercase"],[1,"nxcard__header-options"],["mat-icon-button","",3,"click"],[1,"mdi","mdi-close"],[1,"nxcard__body","nxcard__body--no-scroll"],[4,"ngIf"],[1,"border--bottom","nxcard__body-row"],[1,"col-md-4","col-xs-6","nxcard__body-cell","overflow-hidden"],[1,"col-md-8","col-xs-6","nxcard__body-cell","text--bold","text--15px"],["class","organizaion-name-text",4,"ngFor","ngForOf"],[1,"col-md-4","nxcard__body-cell","overflow-hidden"],[1,"col-md-8","nxcard__body-cell"],[1,"break-word","col-md-4","col-xs-6","nxcard__body-cell","overflow-hidden"],[1,"profile-label"],[1,"col-md-8","col-xs-6","nxcard__body-cell","profile-value","break-word"],[1,"organizaion-name-text"],[1,"nxcard__body-row"],["class","col-md-8 col-xs-6 nxcard__body-cell text--bold text--15px",4,"ngIf","ngIfElse"],[1,"margin--5"]],template:function(r,o){1&r&&(e.j41(0,"ng-scrollbar",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"span",5),e.EFF(5),e.nI1(6,"translate"),e.k0s()()(),e.j41(7,"div",6)(8,"button",7),e.bIt("click",function(){return o.close()}),e.nrm(9,"i",8),e.k0s()()(),e.j41(10,"ng-scrollbar",9),e.DNE(11,Pn,58,38,"div",10),e.nI1(12,"async"),e.j41(13,"div"),e.DNE(14,Gn,7,4,"div",10),e.nI1(15,"async"),e.DNE(16,Vn,8,5,"div",10),e.nI1(17,"async"),e.k0s(),e.j41(18,"div",11)(19,"div",12),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"div",13),e.DNE(23,On,3,2,"div",14),e.k0s()()()()),2&r&&(e.R7$(5),e.JRh(e.bMT(6,7,"str_Control_Tender_Buyer_233_Form_Dialog_Title")),e.R7$(3),e.BMQ("id",o.getButtonId("close")),e.R7$(3),e.Y8G("ngIf",e.bMT(12,9,o.additionalData$)),e.R7$(3),e.Y8G("ngIf",e.bMT(15,11,o.legalBases$)),e.R7$(2),e.Y8G("ngIf",e.bMT(17,13,o.fundingPrograms$)),e.R7$(4),e.SpI(" IV. ",e.bMT(21,15,"str_Control_Tender_Buyer_233_Submit_Email")," "),e.R7$(3),e.Y8G("ngForOf",null==o.formInfo?null:o.formInfo.EmailAddressesList))},dependencies:[m.Sq,m.bT,S.iV,G.Yh,m.Jj,I.D9,T.R9],styles:["[_nghost-%COMP%]{display:block;width:800px}"],changeDetection:0})}}return n})();const Yn=n=>({"border--bottom":!0,"nxcard__body-row":!0,disabled:n}),Un=n=>({disabled:n});function Jn(n,i){1&n&&e.eu8(0)}function Kn(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",40),e.bIt("click",function(){e.eBV(t);const o=e.XpG().ngIf,s=e.XpG(2);return e.Njj(s.OnEditForm(o))}),e.nrm(1,"i",41),e.k0s()}}function zn(n,i){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",17)(2,"div",18)(3,"div",19)(4,"label",33),e.EFF(5),e.nI1(6,"translate"),e.k0s()()(),e.j41(7,"div",34)(8,"div",35)(9,"button",36),e.bIt("click",function(){const o=e.eBV(t).ngIf,s=e.XpG(2);return e.Njj(s.openFormDialog(o))}),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.DNE(12,Kn,2,0,"button",37),e.k0s(),e.j41(13,"div",38)(14,"div",39),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"div",33),e.EFF(18),e.nI1(19,"nx1date"),e.k0s()()()()()}if(2&n){const t=i.ngIf,r=e.XpG(2);e.R7$(5),e.JRh(e.bMT(6,6,"str_Control_Tender_Buyer_233_SelectedControl_ControlData")),e.R7$(5),e.SpI(" ",e.bMT(11,8,"str_Control_Tender_Buyer_233_SelectedControl_View")," "),e.R7$(2),e.Y8G("ngIf",r.IsControlContextDraft),e.R7$(2),e.BMQ("id",r.getLabelId("organizationType")),e.R7$(),e.JRh(e.bMT(16,10,"str_Control_233_FormSubmissionDate")),e.R7$(3),e.JRh(e.i5U(19,12,t.CreatedDate,"ShortDateTime"))}}
1function Qn(n,i){if(1&n&&(e.j41(0,"label",42),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.documentPackageDocument.Name," ")}}function Hn(n,i){if(1&n){const t=e.RV6();e.j41(0,"nx1-documents-upload",43),e.bIt("save",function(o){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onAddDocumentPackageDocuments(o))}),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("keyword","str_Common_add")("showConsentCheckbox",!1)("multiple",!1)("ngClass",e.eq3(4,Un,t.selectedControlContext233.IsDocumentPackageSkipped))}}function qn(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",44),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.downloadDocumentPackage())}),e.nrm(1,"i",45),e.k0s()}}function Zn(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",44),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.deleteDocumentPackageDescriptor())}),e.nrm(1,"i",46),e.k0s()}}function Wn(n,i){if(1&n){const t=e.RV6();e.j41(0,"mat-checkbox",47),e.bIt("change",function(o){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onIsDocumentPackageSkippedChanged(o))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const t=e.XpG().ngIf,r=e.XpG();e.Y8G("checked",t.IsDocumentPackageSkipped)("disabled",r.documentPackageDocumentDescriptor),e.R7$(),e.SpI(" ",e.bMT(2,3,"str_Control_Tender_Buyer_233_SelectedControl_DocumentsSkipped")," ")}}function eo(n,i){1&n&&(e.j41(0,"label",42),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"str_Control_Tender_Buyer_233_SelectedControl_NoNotification")," "))}function to(n,i){if(1&n&&(e.j41(0,"label",42),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI(" ",t.documentPackageAccompanyingLetterDocument.Name," ")}}function no(n,i){if(1&n){const t=e.RV6();e.j41(0,"nx1-documents-upload",52),e.bIt("save",function(o){e.eBV(t);const s=e.XpG(3);return e.Njj(s.onAddDocumentPackageAccompanyingLetterDocuments(o))}),e.k0s()}2&n&&e.Y8G("keyword","str_Common_add")("showConsentCheckbox",!1)("multiple",!1)}function oo(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",44),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.downloadDocumentPackageAccompanyingLetter())}),e.nrm(1,"i",45),e.k0s()}}function ro(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",44),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.deleteDocumentPackageAccompanyingLetterDescriptor())}),e.nrm(1,"i",46),e.k0s()}}function io(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",53),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.openSignaturesDialog(o.documentPackageAccompanyingLetterDocument,o.documentPackageAccompanyingLetterDocumentDescriptor,!0))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const t=e.XpG(3);e.Y8G("disabled",!t.documentPackageAccompanyingLetterDocument||t.documentPackageAccompanyingLetterDocumentDescriptor&&t.documentPackageAccompanyingLetterDocumentDescriptor.IsManuallySigned),e.R7$(),e.SpI(" ",e.bMT(2,2,"str_Control_Tender_Buyer_233_SelectedControl_Sign")," ")}}function so(n,i){if(1&n){const t=e.RV6();e.j41(0,"mat-checkbox",47),e.bIt("change",function(o){e.eBV(t);const s=e.XpG(3);return e.Njj(s.onDocumentPackageAccompanyingLetterManuallySignedChanged(o))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const t=e.XpG(3);e.Y8G("checked",t.documentPackageAccompanyingLetterDocumentDescriptor.IsManuallySigned)("disabled",0!==t.selectedControlContext233.Phase233||t.isDocumentPackageAccompanyingLetterDigitallySigned||t.documentPackageDocumentDescriptor&&t.documentPackageDocumentDescriptor.IsSubmitted),e.R7$(),e.SpI(" ",e.bMT(2,3,"str_Control_Tender_Buyer_233_SelectedControl_HanfSigned")," ")}}
1function co(n,i){if(1&n){const t=e.RV6();e.j41(0,"span",54),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.openSignaturesDialog(o.documentPackageAccompanyingLetterDocument,o.documentPackageAccompanyingLetterDocumentDescriptor,!1))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"str_Control_Tender_Buyer_233_SelectedControl_Sign")))}function ao(n,i){1&n&&(e.j41(0,"span",55),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"str_Control_Tender_Buyer_233_SelectedControl_HanfSigned")))}function lo(n,i){if(1&n&&e.DNE(0,to,2,1,"label",24)(1,no,1,3,"nx1-documents-upload",48)(2,oo,2,0,"button",26)(3,ro,2,0,"button",26)(4,io,3,4,"button",49)(5,so,3,5,"mat-checkbox",27)(6,co,3,3,"span",50)(7,ao,3,3,"span",51),2&n){const t=e.XpG(2);e.Y8G("ngIf",t.documentPackageAccompanyingLetterDocument),e.R7$(),e.Y8G("ngIf",t.CanManageControlSection&&!t.documentPackageAccompanyingLetterDocument),e.R7$(),e.Y8G("ngIf",t.documentPackageAccompanyingLetterDocument),e.R7$(),e.Y8G("ngIf",t.CanManageControlSection&&0===t.selectedControlContext233.Phase233&&t.documentPackageAccompanyingLetterDocumentDescriptor&&!t.documentPackageAccompanyingLetterDocumentDescriptor.IsSubmitted),e.R7$(),e.Y8G("ngIf",t.CanManageControlSection&&t.documentPackageAccompanyingLetterDocumentDescriptor&&!t.documentPackageAccompanyingLetterDocumentDescriptor.IsSubmitted),e.R7$(),e.Y8G("ngIf",t.CanManageControlSection&&t.documentPackageAccompanyingLetterDocumentDescriptor&&!t.documentPackageAccompanyingLetterDocumentDescriptor.IsSubmitted),e.R7$(),e.Y8G("ngIf",t.CanManageControlSection&&t.documentPackageAccompanyingLetterDocumentDescriptor&&t.documentPackageAccompanyingLetterDocumentDescriptor.IsSubmitted&&!t.documentPackageAccompanyingLetterDocumentDescriptor.IsManuallySigned),e.R7$(),e.Y8G("ngIf",t.documentPackageAccompanyingLetterDocumentDescriptor&&t.documentPackageAccompanyingLetterDocumentDescriptor.IsSubmitted&&t.documentPackageAccompanyingLetterDocumentDescriptor.IsManuallySigned)}}function uo(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",59),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.submitDocumentPackage())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const t=e.XpG(3);e.Y8G("disabled",!t.documentPackageDocumentDescriptor&&!t.documentPackageAccompanyingLetterDocumentDescriptor&&!t.selectedControlContext233.IsDocumentPackageSkipped||t.documentPackageAccompanyingLetterDocumentDescriptor&&!t.isDocumentPackageAccompanyingLetterDigitallySigned&&!t.documentPackageAccompanyingLetterDocumentDescriptor.IsManuallySigned),e.R7$(),e.SpI(" ",e.bMT(2,2,"str_Control_Tender_Buyer_233_SelectedControl_Send")," ")}}function mo(n,i){1&n&&(e.j41(0,"div",60),e.nrm(1,"mat-spinner",61),e.k0s()),2&n&&(e.R7$(),e.Y8G("diameter",60))}function _o(n,i){if(1&n&&(e.j41(0,"div",56),e.DNE(1,uo,3,4,"button",57)(2,mo,2,1,"div",58),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",!t.isSubmitting),e.R7$(),e.Y8G("ngIf",t.isSubmitting)}}function po(n,i){if(1&n&&(e.j41(0,"div",62)(1,"div",39),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",33),e.EFF(5),e.nI1(6,"nx1date"),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(2),e.SpI("",e.bMT(3,3,"str_Control_Tender_Buyer_233_SelectedControl_SendOn")," "),e.R7$(2),e.BMQ("id",t.getLabelId("organizationType")),e.R7$(),e.SpI(" ",e.i5U(6,5,t.documentPackageDocumentDescriptor.SubmissionDateTime,"ShortDateTime")," ")}}function go(n,i){if(1&n&&(e.j41(0,"label",42),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI(" ",t.selectedStatement.Number," ")}}function ho(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",44),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.downloadStatementDocument())}),e.nrm(1,"i",45),e.k0s()}}function bo(n,i){if(1&n&&(e.j41(0,"div",18)(1,"div",63),e.DNE(2,go,2,1,"label",24)(3,ho,2,0,"button",26),e.k0s(),e.j41(4,"div",38)(5,"div",39),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"div",33),e.EFF(9),e.nI1(10,"nx1date"),e.k0s()()()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngIf",t.statementDocument),e.R7$(),e.Y8G("ngIf",t.statementDocument),e.R7$(2),e.BMQ("id",t.getLabelId("organizationType")),e.R7$(),e.SpI("",e.bMT(7,6,"str_Control_Tender_Buyer_233_SelectedControl_StatementSendOn")," "),e.R7$(2),e.BMQ("id",t.getLabelId("organizationType")),e.R7$(),e.SpI(" ",e.i5U(10,8,t.statementDocumentDescriptor.SubmissionDateTime,"ShortDateTime")," ")}}function Co(n,i){1&n&&(e.j41(0,"div",18)(1,"label",64),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"str_Control_Tender_Buyer_232_SelectedControl_NoSendStatement")," "))}
1function fo(n,i){if(1&n){const t=e.RV6();e.j41(0,"tr")(1,"td")(2,"span",70),e.bIt("click",function(){const o=e.eBV(t).index,s=e.XpG(3);return e.Njj(s.downloadDocument(s.previousStatementsDocuments[o].Id))}),e.EFF(3),e.k0s()(),e.j41(4,"td")(5,"span",71),e.EFF(6),e.nI1(7,"nx1date"),e.k0s()()()}if(2&n){const t=i.$implicit;e.R7$(3),e.JRh(t.Number),e.R7$(3),e.JRh(e.i5U(7,2,t.SubmissionDateTime,"ShortDateTime"))}}function vo(n,i){if(1&n&&(e.j41(0,"div",65)(1,"div",66)(2,"table")(3,"tr")(4,"td")(5,"label",67),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.j41(8,"td")(9,"label",68),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.DNE(12,fo,8,5,"tr",69),e.k0s()()()),2&n){const t=e.XpG(2);e.R7$(6),e.JRh(e.bMT(7,3,"str_Control_233_PreviousStatements")),e.R7$(4),e.JRh(e.bMT(11,5,"str_Control_Tender_Buyer_233_SelectedControl_StatementSendOn")),e.R7$(2),e.Y8G("ngForOf",t.previousStatements)}}function Do(n,i){if(1&n&&(e.j41(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7)(4,"div",8)(5,"span"),e.EFF(6),e.k0s()()(),e.j41(7,"div",9)(8,"div",10)(9,"div",11)(10,"div",12),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"div",12),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"div",13),e.EFF(17),e.nI1(18,"translate"),e.k0s()(),e.j41(19,"div",14)(20,"div",15),e.EFF(21),e.nI1(22,"nx1EnumTranslate"),e.nI1(23,"translate"),e.k0s(),e.j41(24,"div",15),e.EFF(25),e.nI1(26,"nx1EnumTranslate"),e.nI1(27,"translate"),e.k0s(),e.j41(28,"div",16),e.EFF(29," --- "),e.k0s()()()()()(),e.DNE(30,zn,20,15,"div",2),e.nI1(31,"async"),e.j41(32,"div",17)(33,"div",18)(34,"div",19)(35,"label",20),e.EFF(36),e.nI1(37,"translate"),e.k0s()()(),e.j41(38,"div",21)(39,"div",22)(40,"label",23),e.EFF(41),e.nI1(42,"translate"),e.k0s(),e.DNE(43,Qn,2,1,"label",24)(44,Hn,1,6,"nx1-documents-upload",25)(45,qn,2,0,"button",26)(46,Zn,2,0,"button",26)(47,Wn,3,5,"mat-checkbox",27),e.k0s(),e.j41(48,"div",22)(49,"label",23),e.EFF(50),e.nI1(51,"translate"),e.k0s(),e.DNE(52,eo,3,3,"label",28)(53,lo,8,8,"ng-template",null,0,e.C5r),e.k0s(),e.DNE(55,_o,3,2,"div",29)(56,po,7,8,"div",30),e.k0s()(),e.j41(57,"div",17)(58,"div",18)(59,"div",19)(60,"label",20),e.EFF(61),e.nI1(62,"translate"),e.k0s()()(),e.DNE(63,bo,11,11,"div",31)(64,Co,4,3,"ng-template",null,1,e.C5r)(66,vo,13,7,"div",32),e.k0s()()),2&n){const t=i.ngIf,r=e.sdS(54),o=e.sdS(65),s=e.XpG();e.R7$(6),e.JRh(t.Number),e.R7$(5),e.JRh(e.bMT(12,27,"str_Control_Tender_Buyer_233_SelectedControl_Status")),e.R7$(3),e.JRh(e.bMT(15,29,"str_Control_Tender_Buyer_233_SelectedControl_Phase")),e.R7$(3),e.JRh(e.bMT(18,31,"str_Control_Tender_Buyer_233_SelectedControl_To")),e.R7$(3),e.BMQ("id",s.getId("start-date")),e.R7$(),e.SpI(" ",e.bMT(23,36,e.i5U(22,33,t.Status,s.statusEnum))," "),e.R7$(3),e.BMQ("id",s.getId("start-date")),e.R7$(),e.SpI(" ",e.bMT(27,41,e.i5U(26,38,s.getControlContextPhase233EnumValue(t.Phase233),s.phase233Enum))," "),e.R7$(3),e.BMQ("id",s.getId("start-date")),e.R7$(2),e.Y8G("ngIf",e.bMT(31,43,s.selectedForm$)),e.R7$(6),e.JRh(e.bMT(37,45,"str_Control_Tender_Buyer_233_SelectedControl_DocumentsPackage")),e.R7$(2),e.Y8G("ngClass",e.eq3(53,Yn,s.isSubmitting)),e.R7$(3),e.JRh(e.bMT(42,47,"str_Control_Tender_Buyer_233_SelectedControl_DocumentsPackage")),e.R7$(2),e.Y8G("ngIf",s.documentPackageDocument),e.R7$(),e.Y8G("ngIf",s.CanManageControlSection&&!s.documentPackageDocument),e.R7$(),e.Y8G("ngIf",s.documentPackageDocument),e.R7$(),e.Y8G("ngIf",s.CanManageControlSection&&s.documentPackageDocumentDescriptor&&!s.documentPackageDocumentDescriptor.IsSubmitted),e.R7$(),e.Y8G("ngIf",s.CanManageControlSection),e.R7$(3),e.JRh(e.bMT(51,49,"str_Control_233_AccompanyingLetter")),e.R7$(2),e.Y8G("ngIf",0!==s.selectedControlContext233.Phase233&&!s.documentPackageAccompanyingLetterDocument)("ngIfElse",r),e.R7$(3),e.Y8G("ngIf",s.CanManageControlSection&&0===s.selectedControlContext233.Phase233),e.R7$(),e.Y8G("ngIf",s.documentPackageDocumentDescriptor&&s.documentPackageDocumentDescriptor.IsSubmitted&&s.documentPackageDocumentDescriptor.SubmissionDateTime),e.R7$(5),e.JRh(e.bMT(62,51,"str_Control_Tender_Buyer_233_SelectedControl_Statement")),e.R7$(2),e.Y8G("ngIf",s.selectedStatement&&s.selectedStatement.SubmissionDateTime)("ngIfElse",o),e.R7$(3),e.Y8G("ngIf",s.previousStatements.length>0)}}let Io=(()=>{class n extends F.$G{constructor(t,r,o,s,d,a,p,u,b,C,v,D){super(t),this.viewContainerRef
1=t,this.dialogService=r,this.changeDetectorRef=o,this.documentService=s,this.tenderStoreService=d,this.route=a,this.routerStoreService=p,this.controlService=u,this.controlStoreService=b,this.controlRelatedDocumentService=C,this.tenderGuard=v,this.router=D,this.phase233Enum=NX1.Model.Enums.ControlContext233Phase,this.statusEnum=NX1.Model.Enums.ControlContextStatus,this.selectedControlContext233TenderId$=this.routerStoreService.getIdFromParams(this.route.paramMap,"id"),this.subscriptions=[]}get IsControlContextDraft(){return this.selectedControlContext233.Phase233===NX1.Model.Enums.ControlContext233Phase.None}get CanViewControlSection(){return this.tenderGuard.canViewTenderControlSection}get CanManageControlSection(){return this.tenderGuard.canManageTenderControlSection}ngOnInit(){this.tender$=this.tenderStoreService.getCurrentTender();const t=this.tender$.subscribe(r=>{this.tender=r,this.controlService.refreshTenderControlDataInTheStore(this.tender.Id)});this.selectedControlContext233$=this.controlService.getControlContext233ByTenderId(this.tender.Id),this.subscriptions.push(this.selectedControlContext233$.subscribe(r=>{this.selectedControlContext233=r,this.selectedForm$=this.controlService.getControl233FormById(r.RegistrationFormId),this.selectedStatement=this.selectedControlContext233.Statements.find(o=>o.Id===this.selectedControlContext233.StatementId),this.selectedStatement&&(this.statementDocumentDescriptor=this.controlService.findDocumentDecriptorInArrayByDescriptorId(this.selectedControlContext233.AssociatedDocumentDescriptors,this.selectedStatement.ControlRelatedDocumentDescriptorId)),this.statementDocumentDescriptor&&this.statementDocumentDescriptor.IsSubmitted&&(this.statementDocument$=this.documentService.getDocumentById(this.statementDocumentDescriptor.DocumentId),this.subscriptions.push(this.statementDocument$.subscribe(o=>{this.statementDocument=o,this.changeDetectorRef.markForCheck()}))),this.loadDocumentPackageSection(),this.loadPreviousStatementsData()})),this.subscriptions.push(t),this.isSubmitting=!1}ngOnDestroy(){for(const t of this.subscriptions)t.unsubscribe()}downloadStatementDocument(){const t=this.documentService.downloadDocumentById(this.statementDocument.Id).subscribe(()=>{t.unsubscribe()})}downloadDocumentPackage(){const t=this.documentService.downloadDocumentById(this.documentPackageDocument.Id).subscribe(()=>{t.unsubscribe()})}downloadDocumentPackageAccompanyingLetter(){const t=this.documentService.downloadDocumentById(this.documentPackageAccompanyingLetterDocument.Id).subscribe(()=>{t.unsubscribe()})}downloadDocument(t){this.subscriptions.push(this.documentService.downloadDocumentById(t).subscribe())}deleteDocumentPackageDescriptor(){this.documentPackageDocumentDescriptor&&this.documentPackageDocumentDescriptor.Id&&this.controlRelatedDocumentService.deleteDescriptor(this.documentPackageDocumentDescriptor.Id).subscribe(()=>{const t=this.selectedControlContext233.AssociatedDocumentDescriptors.findIndex(r=>r.Id===this.documentPackageDocumentDescriptor.Id);this.selectedControlContext233.AssociatedDocumentDescriptors.splice(t,1),this.documentPackageDocument=null,this.documentPackageDocument$=null,this.documentPackageDocumentDescriptor=null,this.documentPackageDocumentDescriptor$=null,this.changeDetectorRef.markForCheck()})}deleteDocumentPackageAccompanyingLetterDescriptor(){this.documentPackageAccompanyingLetterDocumentDescriptor&&this.documentPackageAccompanyingLetterDocumentDescriptor.Id&&this.controlRelatedDocumentService.deleteDescriptor(this.documentPackageAccompanyingLetterDocumentDescriptor.Id).subscribe(()=>{const t=this.selectedControlContext233.AssociatedDocumentDescriptors.findIndex(r=>r.Id===this.documentPackageAccompanyingLetterDocumentDescriptor.Id);this.selectedControlContext233.AssociatedDocumentDescriptors.splice(t,1),this.documentPackageAccompanyingLetterDocument=null,this.documentPackageAccompanyingLetterDocument$=null,this.documentPackageAccompanyingLetterDocumentDescriptor=null,this.documentPackageAccompanyingLetterDocumentDescriptor$=null,this.changeDetectorRef.markForCheck()})}getControlContextPhase233EnumValue(t){let r;try{r=t}catch{r=NX1.Model.Enums.ControlContext233Phase.None}return r}OnEditForm(t){this.router.navigate(["../submit233",t.Id],{relativeTo:this.route})}openFormDialog(t){const r=new h.Pe;
1r.viewContainerRef=this.viewContainerRef,this.controlFormViewRef=this.dialogService.open(Ln,r),this.controlFormViewRef.componentInstance.formInfo=t}openSignaturesDialog(t,r,o){this.destroySignDocumentRef(),this.controlStoreService.loadControlDocumentSignatures(t.Id);const s=new h.Pe;s.viewContainerRef=this.viewContainerRef,this.digitalSignaturesDialogComponent=this.dialogService.open(B.m,s),this.digitalSignaturesDialogComponent.componentInstance.pdfDocument=t,this.digitalSignaturesDialogComponent.componentInstance.digitalSignaturesList$=this.controlStoreService.getCurrentControlDocumentDigitalSignatures(),this.digitalSignaturesDialogComponent.componentInstance.canManageSignatures=o,this.digitalSignaturesDialogComponent.componentInstance.isAlreadySigned$=this.controlStoreService.getIsControlDocumentAlreadySignedByCurrentUser(),this.digitalSignaturesDialogComponent.componentInstance.isLoadingSignatures$=this.controlStoreService.getIsLoadingSignatures(),this.digitalSignaturesDialogComponent.componentInstance.objectId=r.Id,this.digitalSignaturesDialogComponent.componentInstance.objectGuid=r.Guid,this.digitalSignaturesDialogComponent.componentInstance.entityId=r.EntityId,this.digitalSignaturesDialogComponent.componentInstance.deleteConfirmationContentKeyword="str_DocumentEditor_delete_signature_confirmation_message",this.digitalSignaturesDialogComponent.componentInstance.signTitleKeyword="str_Common_sign",this.changeDetectorRef.markForCheck()}submitDocumentPackage(){this.isSubmitting=!0,this.changeDetectorRef.markForCheck(),this.controlService.submitDocumentPackageForControlBy233(this.selectedControlContext233.Id).subscribe(()=>{this.ngOnInit()})}onAddDocumentPackageDocuments(t){const r=this.controlService.generateDescriptorInfoObjectsInFrontEnd(t,NX1.Model.Enums.ControlType.ByArticle233,this.selectedControlContext233.Id,NX1.Model.Enums.ControlRelatedDocumentType.ControlByArticle233ContractingAuthorityDocument),o=this.controlRelatedDocumentService.createDescriptors(r);this.subscriptions.push(o.subscribe(s=>{this.documentPackageDocument=null,this.documentPackageDocument$=null,this.documentPackageDocumentDescriptor=s[0],this.selectedControlContext233.AssociatedDocumentDescriptors.push(this.documentPackageDocumentDescriptor),this.loadDocumentPackageSection()}))}onAddDocumentPackageAccompanyingLetterDocuments(t){const r=this.controlService.generateDescriptorInfoObjectsInFrontEnd(t,NX1.Model.Enums.ControlType.ByArticle233,this.selectedControlContext233.Id,NX1.Model.Enums.ControlRelatedDocumentType.AccompanyingLetter),o=this.controlRelatedDocumentService.createDescriptors(r);this.subscriptions.push(o.subscribe(s=>{this.documentPackageAccompanyingLetterDocument=null,this.documentPackageAccompanyingLetterDocument$=null,this.documentPackageAccompanyingLetterDocumentDescriptor=s[0],this.selectedControlContext233.AssociatedDocumentDescriptors.push(this.documentPackageAccompanyingLetterDocumentDescriptor),this.loadDocumentPackageSection()}))}onDocumentPackageAccompanyingLetterManuallySignedChanged(t){this.documentPackageAccompanyingLetterDocumentDescriptor.IsManuallySigned=t.checked;const r=this.controlRelatedDocumentService.updateDescriptor(this.documentPackageAccompanyingLetterDocumentDescriptor).subscribe(o=>{this.documentPackageAccompanyingLetterDocumentDescriptor=o,r.unsubscribe(),this.changeDetectorRef.markForCheck()})}onIsDocumentPackageSkippedChanged(t){this.selectedControlContext233.IsDocumentPackageSkipped=t.checked;const r=this.controlService.updateControlContext233IsDocumentPackageSkipped(this.selectedControlContext233.Id,t.checked).subscribe(o=>{r.unsubscribe(),this.changeDetectorRef.markForCheck()})}destroySignDocumentRef(){this.digitalSignaturesDialogComponent&&(this.digitalSignaturesDialogComponent.close(),this.digitalSignaturesDialogComponent=null)}loadDocumentPackageSection(){this.documentPackageDocumentDescriptor=this.controlService.findDocumentDecriptorInArray(this.selectedControlContext233.AssociatedDocumentDescriptors,NX1.Model.Enums.ControlRelatedDocumentType.ControlByArticle233ContractingAuthorityDocument),this.documentPackageDocumentDescriptor&&(this.documentPackageDocument$=this.documentService.getDocumentById(this.documentPackageDocumentDescriptor.DocumentId),this.subscriptions.push(this.documentPackageDocument$.subscribe(t=>{this.documentPackageDocument=t,this.changeDetectorRef.markForCheck()}))),this.documentPackageAccompanyingLetterDocumentDescriptor=this.controlService.findDocumentDecriptorInArray(this.selectedControlContext233.AssociatedDocumentDescriptors,NX1.Model.Enums.ControlRelatedDocumentType.AccompanyingLetter),this.documentPackageAccompanyingLetterDocumentDescriptor&&(this.documentPackageAccompanyingLetterDocument$=this.documentService.getDocumentById(this.documentPackageAccompanyingLetterDocumentDescriptor.DocumentId),this.subscriptions.push(this.documentPackageAccompanyingLetterDocument$.subscribe(t=>{this.documentPackageAccompanyingLetterDocument=t,this.changeDetectorRef.markForCheck(),this.controlStoreService.loadControlDocumentSignatures(this.documentPackageAccompanyingLetterDocument.Id),this.isDocumentPackageAccompanyingLetterDigitallySigned$=this.controlStoreService.getIsControlDocumentAlreadySignedByCurrentUser().pipe((0,y.M)(r=>{this.isDocumentPackageAccompanyingLetterDigitallySigned=r,this.changeDetectorRef.markForCheck()}))})))}loadPreviousStatementsData(){this.previousStatements=this.selectedControlContext233.Statements.filter(t=>t.Id!==this.selectedControlContext233.StatementId),this.previousStatements.sort((t,r)=>this.comparingFunction(t.SubmissionDateTime,r.SubmissionDateTime,!1)),this.previousStatementsDocumentDescriptors=[],this.previousStatementsDocuments=[];for(let t=0;t<this.previousStatements.length;t++){const r=this.previousStatements[t],o=this.selectedControlContext233.AssociatedDocumentDescriptors.find(s=>s.Id===r.ControlRelatedDocumentDescriptorId);this.previousStatementsDocumentDescriptors.push(o),this.subscriptions.push(this.documentService.getDocumentById(o.DocumentId).subscribe(s=>{this.previousStatementsDocuments.push(s),this.previousStatementsDocuments.sort((d,a)=>this.comparingFunction(d.CreatedDate,a.CreatedDate,!1)),this.changeDetectorRef.markForCheck()}))}}comparingFunction(t,r,o){typeof o>"u"&&(o=!0);let s=1;return o||(s=-1),t>r?1*s:t<r?-1*s:0}static{this.\u0275fac=function(r){return new(r||n)(e.rXU(e.c1b),e.rXU(h.o3),e.rXU(e.gRc),e.rXU(l.DKw),e.rXU(l.$gx),e.rXU(g.nX),e.rXU(l.o9Y),e.rXU(l.het),e.rXU(l.CFu),e.rXU(l.N$f),e.rXU(R.U),e.rXU(g.Ix))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["nx1-tender-buyer-control-selected-233"]],features:[e.Jv_([{provide:$.Q,useClass:j.Q}]),e.Vt3],decls:4,vars:6,consts:[["elseBlockAccompanyingLetter",""],["noStatementBlock",""],[4,"ngIf"],["class","min--width-600",4,"ngIf"],[1,"min--width-600"],[1,"nxcard","bg--white","z1","margin--bottom-20","margin--top-20"],[1,"nxcard__header"],[1,"nxcard__header-title"],[1,"nxcard__header-title-content"],[1,"pos--relative","flex-element--right","flex-row"],[1,"flex-row","padding--8","padding--left-15","align--center","margin--5"],[1,""],[1,"margin--bottom-5","text--14px","text--bold","text--grey25","text--uppercase"],[1,"text--14px","text--bold","text--grey25","text--uppercase"],[1,"text--bold","text--left"],[1,"margin--bottom-5","padding--left-10","text--14px","text--bold","text--grey55","text--uppercase"],[1,"padding--left-10","text--14px","text--bold","text--grey55","text--uppercase"],[1,"nxcard","margin--bottom-20","bg--white","z1"],[1,"border--bottom","nxcard__body-row"],[1,"break-word","col-md-12","col-xs-12","nxcard__body-cell","overflow-hidden"],[1,"profile-value"],[1,"",3,"ngClass"],[1,"break-word","col-md-4","col-xs-4","nxcard__body-cell","overflow-hidden"],[1,"profile-label","margin--bottom-5"],["class","profile-value margin--bottom-5",4,"ngIf"],[3,"keyword","showConsentCheckbox","multiple","ngClass","save",4,"ngIf"],["mat-button","","color","primary","class","margin--left-10",3,"click",4,"ngIf"],["class","margin--left-10",3,"checked","disabled","change",4,"ngIf"],["class","profile-value margin--bottom-5",4,"ngIf","ngIfElse"],["class","break-word col-md-4 col-xs-4 nxcard__body-cell overflow-hidden display--flex",4,"ngIf"],["class","col-md-4 col-xs-4 nxcard__body-cell",4,"ngIf"],["class","border--bottom nxcard__body-row",4,"ngIf","ngIfElse"],["class","nxcard__body-row",4,"ngIf"],[1,"text--bold","text--20px"],[1,"border--bottom","nxcard__body-row","display--flex"],[1,"break-word","col-md-6","col-xs-6","nxcard__body-cell","overflow-hidden","display--flex"],["mat-button","","color","primary",1,"margin--top-5","margin--right-5",3,"click"],["mat-icon-button","","color","primary","class","margin--top-5 margin--right-5",3,"click",4,"ngIf"],[1,"col-md-6","col-xs-6","nxcard__body-cell"],[1,"profile-label"],["mat-icon-button","","color","primary",1,"margin--top-5","margin--right-5",3,"click"],[1,"mdi","mdi-lead-pencil"],[1,"profile-value","margin--bottom-5"],[3,"save","keyword","showConsentCheckbox","multiple","ngClass"],["mat-button","","color","primary",1,"margin--left-10",3,"click"],[1,"mdi","mdi-download"],[1,"mdi","mdi-window-close"],[1,"margin--left-10",3,"change","checked","disabled"],[3,"keyword","showConsentCheckbox","multiple","save",4,"ngIf"],["mat-button","","color","primary","class","margin--left-10",3,"disabled","click",4,"ngIf"],["class","margin--left-10 link-text text--bold text--20px",3,"click",4,"ngIf"],["class","margin--left-10 text--bold text--20px",4,"ngIf"],[3,"save","keyword","showConsentCheckbox","multiple"],["mat-button","","color","primary",1,"margin--left-10",3,"click","disabled"],[1,"margin--left-10","link-text","text--bold","text--20px",3,"click"],[1,"margin--left-10","text--bold","text--20px"],[1,"break-word","col-md-4","col-xs-4","nxcard__body-cell","overflow-hidden","display--flex"],["mat-button","","color","primary","class","margin--left-10 mat-warn",3,"disabled","click",4,"ngIf"],["style","margin: auto;",4,"ngIf"],["mat-button","","color","primary",1,"margin--left-10","mat-warn",3,"click","disabled"],[2,"margin","auto"],[3,"diameter"],[1,"col-md-4","col-xs-4","nxcard__body-cell"],[1,"break-word","col-md-6","col-xs-6","nxcard__body-cell","overflow-hidden"],[1,"margin--20"],[1,"nxcard__body-row"],[1,"col-md-12","col-xs-12","nxcard__body-cell"],[1,"text--bold","text--15px"],[1,"text--bold","text--15px","margin--left-5"],[4,"ngFor","ngForOf"],[1,"link-text","text--bold","text--15px",3,"click"],[1,"margin--left-5"]],template:function(r,o){1&r&&(e.DNE(0,Jn,1,0,"ng-container",2),e.nI1(1,"async"),e.DNE(2,Do,67,55,"div",3),e.nI1(3,"async")),2&r&&(e.Y8G("ngIf",e.bMT(1,2,o.isDocumentPackageAccompanyingLetterDigitallySigned$)),e.R7$(2),e.Y8G("ngIf",e.bMT(3,4,o.selectedControlContext233$)))},dependencies:[m.YU,m.Sq,m.bT,S.iV,N.NZ,k.wS,A.p,m.Jj,I.D9,T.R9,M.O],styles:[".link-text[_ngcontent-%COMP%]{text-decoration:underline;color:#47abcc;cursor:pointer}.link-text[_ngcontent-%COMP%]:hover, .link-text[_ngcontent-%COMP%]:active, .link-text[_ngcontent-%COMP%]:focus{text-decoration:underline}.disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}.min--width-600[_ngcontent-%COMP%]{min-width:600px}.no-bullets[_ngcontent-%COMP%]{list-style-type:none}"],changeDetection:0})}}return n})();var So=_(70980);
1function yo(n,i){if(1&n&&(e.j41(0,"div")(1,"div",11)(2,"div",15),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",16)(6,"div",11)(7,"div",17)(8,"label",18),e.EFF(9),e.nI1(10,"translate"),e.k0s()(),e.j41(11,"div",19)(12,"span",20),e.EFF(13),e.k0s()()(),e.j41(14,"div",11)(15,"div",17)(16,"label",18),e.EFF(17),e.nI1(18,"translate"),e.k0s()(),e.j41(19,"div",19)(20,"span",20),e.EFF(21),e.k0s()()(),e.j41(22,"div",11)(23,"div",17)(24,"label",18),e.EFF(25),e.nI1(26,"translate"),e.k0s()(),e.j41(27,"div",19)(28,"span",20),e.EFF(29),e.k0s()()(),e.j41(30,"div",11)(31,"div",17)(32,"label",18),e.EFF(33),e.nI1(34,"translate"),e.k0s()(),e.j41(35,"div",19)(36,"span",20),e.EFF(37),e.k0s()()(),e.j41(38,"div",11)(39,"div",17)(40,"label",18),e.EFF(41),e.nI1(42,"translate"),e.k0s()(),e.j41(43,"div",19)(44,"span",20),e.EFF(45),e.nI1(46,"nx1EnumTranslate"),e.nI1(47,"translate"),e.k0s()()(),e.j41(48,"div",21)(49,"div",17)(50,"label",18),e.EFF(51),e.nI1(52,"translate"),e.k0s()(),e.j41(53,"div",19)(54,"span",20),e.EFF(55),e.nI1(56,"nx1EnumTranslate"),e.nI1(57,"translate"),e.k0s()()()()()()),2&n){const t=i.ngIf,r=e.XpG();e.R7$(3),e.SpI(" I. ",e.bMT(4,14,"str_Control_Tender_Buyer_235_Submit_Identification")," "),e.R7$(2),e.BMQ("id",r.getLabelId("name")),e.R7$(4),e.SpI("1. ",e.bMT(10,16,"str_Control_Tender_Buyer_235_Submit_Tender_SpecialNumber"),""),e.R7$(4),e.JRh(t.SpecialNumber),e.R7$(4),e.SpI("2. ",e.bMT(18,18,"str_Control_Tender_Buyer_235_Submit_TenderBuyer_Name"),""),e.R7$(4),e.JRh(t.ContractingAuthorityName),e.R7$(4),e.SpI("3. ",e.bMT(26,20,"str_Control_Tender_Buyer_235_Submit_TenderSubject"),""),e.R7$(4),e.JRh(t.TenderName),e.R7$(4),e.SpI("4. ",e.bMT(34,22,"str_Control_Tender_Buyer_235_Submit_Tender_EstimatedValue"),""),e.R7$(4),e.SpI(" ",null==t?null:t.TenderEstimatedValue," "),e.R7$(4),e.SpI("5. ",e.bMT(42,24,"str_Control_Tender_Buyer_232_Submit_Page_Tender_Currency"),""),e.R7$(4),e.JRh(e.bMT(47,29,e.i5U(46,26,null==t?null:t.TenderCurrency,r.currencyType))),e.R7$(6),e.SpI("6. ",e.bMT(52,31,"str_Control_Tender_Buyer_235_Submit_Tender_TypeOfContract"),""),e.R7$(4),e.JRh(e.bMT(57,36,e.i5U(56,33,t.TenderTypeOfContract,r.typeOfContractEnum)))}}function To(n,i){if(1&n&&(e.j41(0,"div")(1,"div",11)(2,"div",12),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",13),e.EFF(6),e.k0s()()()),2&n){let t;const r=i.$implicit,o=e.XpG();e.R7$(3),e.SpI(" II. ",e.bMT(4,2,"str_Control_Tender_Buyer_235_Submit_LegalBase")," "),e.R7$(3),e.SpI(" ",null==(t=o.getLegalBaseById(r,null==o.formInfo?null:o.formInfo.LegalBaseId))?null:t.Mnemonic," ")}}function Fo(n,i){1&n&&(e.j41(0,"div",13),e.EFF(1," \u0411\u0435\u0437 \u0435\u0432\u0440\u043e\u043f\u0435\u0439\u0441\u043a\u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 "),e.k0s())}function Ro(n,i){if(1&n&&(e.j41(0,"div",13),e.EFF(1),e.k0s()),2&n){let t;const r=e.XpG().$implicit,o=e.XpG();e.R7$(),e.SpI(" ",null==(t=o.getFundingProgramById(r,null==o.formInfo?null:o.formInfo.FundingProgramId))?null:t.Mnemonic," ")}}function ko(n,i){if(1&n&&(e.j41(0,"div")(1,"div",11)(2,"div",12),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.DNE(5,Fo,2,0,"div",22)(6,Ro,2,1,"ng-template",null,0,e.C5r),e.k0s()()),2&n){const t=e.sdS(7),r=e.XpG();e.R7$(3),e.SpI(" III. ",e.bMT(4,3,"str_Control_Tender_Buyer_235_Submit_Tender_FundingProgram")," "),e.R7$(2),e.Y8G("ngIf",0===r.formInfo.FundingProgramId)("ngIfElse",t)}}function xo(n,i){if(1&n&&(e.j41(0,"div",20)(1,"span",23),e.EFF(2),e.k0s()()),2&n){const t=i.$implicit,r=e.XpG();e.BMQ("id",r.getLabelId("emailAddresses")),e.R7$(2),e.JRh(t)}}let Eo=(()=>{class n extends F.$G{constructor(t,r,o){super(t),this.controlService=r,this.control235FormViewRef=o,this.submit=new e.bkB(!1),this.procedureTypeEnum=NX1.Model.Enums.ProcedureType,this.typeOfContractEnum=NX1.Model.Enums.TypeOfContract,this.estimatedValueThresholdEnum=NX1.Model.Enums.EstimatedValueThreshold,this.fundingSourceEnum=NX1.Model.Enums.FundingSource,this.activityTypeGroupEnum=NX1.Model.Enums.ActivityTypeGroup,this.currencyType=NX1.Model.Enums.CurrencyType}
1ngOnInit(){this.additionalData$=this.controlService.getControl233And235AdditionalData(this.formInfo.TenderId),this.fundingPrograms$=this.controlService.retrieveFundingPrograms(!0),this.legalBases$=this.controlService.retrieveLegalBasesByControlType(NX1.Model.Enums.ControlType.ByArticle235,!1)}close(){this.control235FormViewRef.close()}onCancel(){this.close()}getFundingProgramById(t,r){let o;for(const s of t)if(s.Id===r){o=s;break}return o}getLegalBaseById(t,r){let o;for(const s of t)if(s.Id===r){o=s;break}return o}static{this.\u0275fac=function(r){return new(r||n)(e.rXU(e.c1b),e.rXU(l.het),e.rXU(U.RN))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["nx1-control-buyer-235-form-view"]],inputs:{formInfo:"formInfo",parentId:"parentId",currentName:"currentName"},outputs:{submit:"submit"},features:[e.Vt3],decls:50,vars:41,consts:[["elseBlockFundingProgram",""],[1,"nxcard","z1","bg--white","overflow-hidden"],[1,"nxcard__header"],[1,"nxcard__header-title"],[1,"nxcard__header-title-content"],[1,"text--uppercase"],[1,"nxcard__header-options"],["mat-icon-button","",3,"click"],[1,"mdi","mdi-close"],[1,"nxcard__body","nxcard__body--no-scroll"],[4,"ngIf"],[1,"border--bottom","nxcard__body-row"],[1,"col-md-4","col-xs-6","nxcard__body-cell","overflow-hidden"],[1,"col-md-8","col-xs-6","nxcard__body-cell","text--bold","text--15px"],["class","organizaion-name-text",4,"ngFor","ngForOf"],[1,"col-md-4","nxcard__body-cell","overflow-hidden"],[1,"col-md-8","nxcard__body-cell"],[1,"break-word","col-md-4","col-xs-6","nxcard__body-cell","overflow-hidden"],[1,"profile-label"],[1,"col-md-8","col-xs-6","nxcard__body-cell","profile-value","break-word"],[1,"organizaion-name-text"],[1,"nxcard__body-row"],["class","col-md-8 col-xs-6 nxcard__body-cell text--bold text--15px",4,"ngIf","ngIfElse"],[1,"margin--5"]],template:function(r,o){1&r&&(e.j41(0,"ng-scrollbar",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"span",5),e.EFF(5),e.nI1(6,"translate"),e.k0s()()(),e.j41(7,"div",6)(8,"button",7),e.bIt("click",function(){return o.close()}),e.nrm(9,"i",8),e.k0s()()(),e.j41(10,"ng-scrollbar",9),e.DNE(11,yo,58,38,"div",10),e.nI1(12,"async"),e.j41(13,"div"),e.DNE(14,To,7,4,"div",10),e.nI1(15,"async"),e.DNE(16,ko,8,5,"div",10),e.nI1(17,"async"),e.k0s(),e.j41(18,"div",11)(19,"div",12),e.EFF(20),e.nI1(21,"translate"),e.k0s(),e.j41(22,"div",13),e.DNE(23,xo,3,2,"div",14),e.k0s()(),e.j41(24,"div",11)(25,"div",12),e.EFF(26),e.nI1(27,"translate"),e.k0s(),e.j41(28,"div",13),e.EFF(29),e.k0s()(),e.j41(30,"div",11)(31,"div",12),e.EFF(32),e.nI1(33,"translate"),e.k0s(),e.j41(34,"div",13),e.EFF(35),e.j41(36,"span"),e.EFF(37),e.nI1(38,"nx1EnumTranslate"),e.nI1(39,"translate"),e.k0s()()(),e.j41(40,"div",11)(41,"div",12),e.EFF(42),e.nI1(43,"translate"),e.k0s(),e.j41(44,"div",13),e.EFF(45),e.j41(46,"span"),e.EFF(47),e.nI1(48,"nx1EnumTranslate"),e.nI1(49,"translate"),e.k0s()()()()()),2&r&&(e.R7$(5),e.JRh(e.bMT(6,15,"str_Control_Tender_Buyer_235_Form_Dialog_Title")),e.R7$(3),e.BMQ("id",o.getButtonId("close")),e.R7$(3),e.Y8G("ngIf",e.bMT(12,17,o.additionalData$)),e.R7$(3),e.Y8G("ngIf",e.bMT(15,19,o.legalBases$)),e.R7$(2),e.Y8G("ngIf",e.bMT(17,21,o.fundingPrograms$)),e.R7$(4),e.SpI(" IV. ",e.bMT(21,23,"str_Control_Tender_Buyer_235_Submit_Email")," "),e.R7$(3),e.Y8G("ngForOf",null==o.formInfo?null:o.formInfo.EmailAddressesList),e.R7$(3),e.SpI(" V. ",e.bMT(27,25,"str_Control_Tender_Buyer_235_Submit_SubjectOfTheAmendment")," "),e.R7$(3),e.SpI(" ",o.formInfo.SubjectOfTheAmendment," "),e.R7$(3),e.SpI(" VI. ",e.bMT(33,27,"str_Control_Tender_Buyer_235_Submit_ContractValue")," "),e.R7$(3),e.SpI(" ",o.formInfo.ContractValue," "),e.R7$(2),e.JRh(e.bMT(39,32,e.i5U(38,29,o.formInfo.ContractCurrency,o.currencyType))),e.R7$(5),e.SpI(" VII. ",e.bMT(43,34,"str_Control_Tender_Buyer_235_Submit_EstimatedValueOfTheChange")," "),e.R7$(3),e.SpI(" ",o.formInfo.EstimatedValueOfTheChange," "),e.R7$(2),e.JRh(e.bMT(49,39,e.i5U(48,36,o.formInfo.AnnexCurrency,o.currencyType))))},dependencies:[m.Sq,m.bT,S.iV,G.Yh,m.Jj,I.D9,T.R9],styles:["[_nghost-%COMP%]{display:block;width:800px}"],changeDetection:0})}}return n})();const Bo=n=>({disabled:n});function $o(n,i){1&n&&e.eu8(0)}
1function jo(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",41),e.bIt("click",function(){e.eBV(t);const o=e.XpG().ngIf,s=e.XpG(2);return e.Njj(s.OnEditForm(o))}),e.nrm(1,"i",42),e.k0s()}}function Mo(n,i){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",16)(2,"div",17)(3,"div",18)(4,"label",34),e.EFF(5),e.nI1(6,"translate"),e.k0s()()(),e.j41(7,"div",35)(8,"div",36)(9,"button",37),e.bIt("click",function(){const o=e.eBV(t).ngIf,s=e.XpG(2);return e.Njj(s.openFormDialog(o))}),e.EFF(10),e.nI1(11,"translate"),e.k0s(),e.DNE(12,jo,2,0,"button",38),e.k0s(),e.j41(13,"div",39)(14,"div",40),e.EFF(15),e.nI1(16,"translate"),e.k0s(),e.j41(17,"div",34),e.EFF(18),e.nI1(19,"nx1date"),e.k0s()()()()()}if(2&n){const t=i.ngIf,r=e.XpG(2);e.R7$(5),e.JRh(e.bMT(6,6,"str_Control_Tender_Buyer_235_SelectedControl_ControlData")),e.R7$(5),e.SpI(" ",e.bMT(11,8,"str_Control_Tender_Buyer_235_SelectedControl_View")," "),e.R7$(2),e.Y8G("ngIf",r.IsControlContextDraft),e.R7$(2),e.BMQ("id",r.getLabelId("organizationType")),e.R7$(),e.JRh(e.bMT(16,10,"str_Control_235_FormSubmissionDate")),e.R7$(3),e.JRh(e.i5U(19,12,t.CreatedDate,"ShortDateTime"))}}function wo(n,i){if(1&n&&(e.j41(0,"label",43),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.documentPackageDocument.Name," ")}}function Ao(n,i){if(1&n){const t=e.RV6();e.j41(0,"nx1-documents-upload",44),e.bIt("save",function(o){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onAddDocumentPackageDocuments(o))}),e.k0s()}2&n&&e.Y8G("keyword","str_Common_add")("showConsentCheckbox",!1)("multiple",!1)}function Po(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",45),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.downloadDocumentPackage())}),e.nrm(1,"i",46),e.k0s()}}function Go(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",45),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.deleteDocumentPackageDescriptor())}),e.nrm(1,"i",47),e.k0s()}}function No(n,i){if(1&n&&(e.j41(0,"label",43),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.documentPackageAccompanyingLetterDocument.Name," ")}}
1function Xo(n,i){if(1&n){const t=e.RV6();e.j41(0,"nx1-documents-upload",48),e.bIt("save",function(o){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onAddDocumentPackageAccompanyingLetterDocuments(o))}),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("keyword","str_Common_add")("showConsentCheckbox",!1)("multiple",!1)("ngClass",e.eq3(4,Bo,!t.documentPackageDocument))}}function Vo(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",45),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.downloadDocumentPackageAccompanyingLetter())}),e.nrm(1,"i",46),e.k0s()}}function Oo(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",45),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.deleteDocumentPackageAccompanyingLetterDescriptor())}),e.nrm(1,"i",47),e.k0s()}}function Lo(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",49),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.openSignaturesDialog(o.documentPackageAccompanyingLetterDocument,o.documentPackageAccompanyingLetterDocumentDescriptor,!0))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("disabled",!t.documentPackageAccompanyingLetterDocument||t.documentPackageAccompanyingLetterDocumentDescriptor&&t.documentPackageAccompanyingLetterDocumentDescriptor.IsManuallySigned),e.R7$(),e.SpI(" ",e.bMT(2,2,"str_Control_Tender_Buyer_235_SelectedControl_Sign")," ")}}function Yo(n,i){if(1&n){const t=e.RV6();e.j41(0,"mat-checkbox",50),e.bIt("change",function(o){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onDocumentPackageAccompanyingLetterManuallySignedChanged(o))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("checked",t.documentPackageAccompanyingLetterDocumentDescriptor.IsManuallySigned)("disabled",t.isDocumentPackageAccompanyingLetterDigitallySigned||t.documentPackageDocumentDescriptor&&t.documentPackageDocumentDescriptor.IsSubmitted),e.R7$(),e.SpI(" ",e.bMT(2,3,"str_Control_Tender_Buyer_235_SelectedControl_HanfSigned")," ")}}function Uo(n,i){if(1&n){const t=e.RV6();e.j41(0,"span",51),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.openSignaturesDialog(o.documentPackageAccompanyingLetterDocument,o.documentPackageAccompanyingLetterDocumentDescriptor,!1))}),e.EFF(1,"\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u043e"),e.k0s()}}function Jo(n,i){1&n&&(e.j41(0,"span",52),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"str_Control_Tender_Buyer_235_SelectedControl_HanfSigned")))}function Ko(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",56),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.submitDocumentPackage())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const t=e.XpG(3);e.Y8G("disabled",!t.documentPackageAccompanyingLetterDocumentDescriptor||!t.isDocumentPackageAccompanyingLetterDigitallySigned&&t.documentPackageAccompanyingLetterDocumentDescriptor&&!t.documentPackageAccompanyingLetterDocumentDescriptor.IsManuallySigned),e.R7$(),e.SpI(" ",e.bMT(2,2,"str_Control_Tender_Buyer_235_SelectedControl_Send")," ")}}function zo(n,i){1&n&&(e.j41(0,"div",57),e.nrm(1,"mat-spinner",58),e.k0s()),2&n&&(e.R7$(),e.Y8G("diameter",60))}function Qo(n,i){if(1&n&&(e.j41(0,"div",53),e.DNE(1,Ko,3,4,"button",54)(2,zo,2,1,"div",55),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",!t.isSubmitting),e.R7$(),e.Y8G("ngIf",t.isSubmitting)}}function Ho(n,i){if(1&n&&(e.j41(0,"div",59)(1,"div",40),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",34),e.EFF(5),e.nI1(6,"nx1date"),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(2),e.SpI("",e.bMT(3,3,"str_Control_Tender_Buyer_235_SelectedControl_SendOn")," "),e.R7$(2),e.BMQ("id",t.getLabelId("organizationType")),e.R7$(),e.SpI(" ",e.i5U(6,5,t.documentPackageAccompanyingLetterDocumentDescriptor.SubmissionDateTime,"ShortDateTime")," ")}}function qo(n,i){if(1&n&&(e.j41(0,"label",43),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI(" ",t.selectedStatement.Number," ")}}function Zo(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",45),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.downloadStatementDocument())}),e.nrm(1,"i",46),e.k0s()}}
1function Wo(n,i){if(1&n&&(e.j41(0,"div",17)(1,"div",60),e.DNE(2,qo,2,1,"label",22)(3,Zo,2,0,"button",24),e.k0s(),e.j41(4,"div",39)(5,"div",40),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.j41(8,"div",34),e.EFF(9),e.nI1(10,"nx1date"),e.k0s()()()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngIf",t.statementDocument),e.R7$(),e.Y8G("ngIf",t.statementDocument),e.R7$(3),e.SpI("",e.bMT(7,4,"str_Control_Tender_Buyer_235_SelectedControl_StatementSendOn")," "),e.R7$(3),e.SpI(" ",e.i5U(10,6,t.statementDocumentDescriptor.SubmissionDateTime,"ShortDateTime")," ")}}function er(n,i){1&n&&(e.j41(0,"div",17)(1,"label",61),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"str_Control_Tender_Buyer_232_SelectedControl_NoSendStatement")," "))}function tr(n,i){if(1&n){const t=e.RV6();e.j41(0,"tr")(1,"td")(2,"span",67),e.bIt("click",function(){const o=e.eBV(t).index,s=e.XpG(3);return e.Njj(s.downloadDocument(s.previousStatementsDocuments[o].Id))}),e.EFF(3),e.k0s()(),e.j41(4,"td")(5,"span",68),e.EFF(6),e.nI1(7,"nx1date"),e.k0s()()()}if(2&n){const t=i.$implicit;e.R7$(3),e.JRh(t.Number),e.R7$(3),e.JRh(e.i5U(7,2,t.SubmissionDateTime,"ShortDateTime"))}}function nr(n,i){if(1&n&&(e.j41(0,"div",62)(1,"div",63)(2,"table")(3,"tr")(4,"td")(5,"label",64),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.j41(8,"td")(9,"label",65),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.DNE(12,tr,8,5,"tr",66),e.k0s()()()),2&n){const t=e.XpG(2);e.R7$(6),e.JRh(e.bMT(7,3,"str_Control_235_PreviousStatements")),e.R7$(4),e.JRh(e.bMT(11,5,"str_Control_Tender_Buyer_235_SelectedControl_StatementSendOn")),e.R7$(2),e.Y8G("ngForOf",t.previousStatements)}}function or(n,i){if(1&n&&(e.j41(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6)(4,"div",7)(5,"span"),e.EFF(6),e.k0s()()(),e.j41(7,"div",8)(8,"div",9)(9,"div",10)(10,"div",11),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"div",11),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"div",12),e.EFF(17),e.nI1(18,"translate"),e.k0s()(),e.j41(19,"div",13)(20,"div",14),e.EFF(21),e.nI1(22,"nx1EnumTranslate"),e.nI1(23,"translate"),e.k0s(),e.j41(24,"div",14),e.EFF(25),e.nI1(26,"nx1EnumTranslate"),e.nI1(27,"translate"),e.k0s(),e.j41(28,"div",15),e.EFF(29," --- "),e.k0s()()()()()(),e.DNE(30,Mo,20,15,"div",1),e.nI1(31,"async"),e.j41(32,"div",16)(33,"div",17)(34,"div",18)(35,"label",19),e.EFF(36),e.nI1(37,"translate"),e.k0s()()(),e.j41(38,"div",17)(39,"div",20)(40,"label",21),e.EFF(41),e.nI1(42,"translate"),e.k0s(),e.DNE(43,wo,2,1,"label",22)(44,Ao,1,3,"nx1-documents-upload",23)(45,Po,2,0,"button",24)(46,Go,2,0,"button",24),e.k0s(),e.j41(47,"div",20)(48,"label",21),e.EFF(49),e.nI1(50,"translate"),e.k0s(),e.DNE(51,No,2,1,"label",22)(52,Xo,1,6,"nx1-documents-upload",25)(53,Vo,2,0,"button",24)(54,Oo,2,0,"button",24)(55,Lo,3,4,"button",26)(56,Yo,3,5,"mat-checkbox",27)(57,Uo,2,0,"span",28)(58,Jo,3,3,"span",29),e.k0s(),e.DNE(59,Qo,3,2,"div",30)(60,Ho,7,8,"div",31),e.k0s()(),e.j41(61,"div",16)(62,"div",17)(63,"div",18)(64,"label",19),e.EFF(65),e.nI1(66,"translate"),e.k0s()()(),e.DNE(67,Wo,11,9,"div",32)(68,er,4,3,"ng-template",null,0,e.C5r)(70,nr,13,7,"div",33),e.k0s()()),2&n){const t=i.ngIf,r=e.sdS(69),o=e.XpG();e.R7$(6),e.JRh(t.Number),e.R7$(5),e.JRh(e.bMT(12,31,"str_Control_Tender_Buyer_235_SelectedControl_Status")),e.R7$(3),e.JRh(e.bMT(15,33,"str_Control_Tender_Buyer_235_SelectedControl_Phase")),e.R7$(3),e.JRh(e.bMT(18,35,"str_Control_Tender_Buyer_235_SelectedControl_To")),e.R7$(3),e.BMQ("id",o.getId("start-date")),e.R7$(),e.SpI(" ",e.bMT(23,40,e.i5U(22,37,t.Status,o.statusEnum))," "),e.R7$(3),e.BMQ("id",o.getId("start-date")),e.R7$(),e.SpI(" ",e.bMT(27,45,e.i5U(26,42,o.getControlContextPhase235EnumValue(t.Phase235),o.phase235Enum))," "),e.R7$(3),e.BMQ("id",o.getId("start-date")),e.R7$(2),e.Y8G("ngIf",e.bMT(31,47,o.selectedForm$)),e.R7$(6),e.JRh(e.bMT(37,49,"str_Control_Tender_Buyer_235_SelectedControl_DocumentsPackage")),e.R7$(5),e.JRh(e.bMT(42,51,"str_Control_Tender_Buyer_235_SelectedControl_DocumentsPackage")),e.R7$(2),e.Y8G("ngIf",o.documentPackageDocument),e.R7$(),e.Y8G("ngIf",o.CanManageControlSection&&!o.documentPackageDocument),e.R7$(),e.Y8G("ngIf",o.documentPackageDocument),e.R7$(),e.Y8G("ngIf",o.CanManageControlSection&&o.documentPackageDocumentDescriptor&&!o.documentPackageDocumentDescriptor.IsSubmitted&&!o.documentPackageAccompanyingLetterDocument),e.R7$(3),e.JRh(e.bMT(50,53,"str_Control_235_AccompanyingLetter")),e.R7$(2),e.Y8G("ngIf",o.documentPackageAccompanyingLetterDocument),e.R7$(),e.Y8G("ngIf",o.CanManageControlSection&&!o.documentPackageAccompanyingLetterDocument),e.R7$(),e.Y8G("ngIf",o.documentPackageAccompanyingLetterDocument),e.R7$(),e.Y8G("ngIf",o.CanManageControlSection&&o.documentPackageAccompanyingLetterDocumentDescriptor&&!o.documentPackageAccompanyingLetterDocumentDescriptor.IsSubmitted),e.R7$(),e.Y8G("ngIf",o.CanManageControlSection&&o.documentPackageAccompanyingLetterDocumentDescriptor&&!o.documentPackageAccompanyingLetterDocumentDescriptor.IsSubmitted),e.R7$(),e.Y8G("ngIf",o.CanManageControlSection&&o.documentPackageAccompanyingLetterDocumentDescriptor&&!o.documentPackageAccompanyingLetterDocumentDescriptor.IsSubmitted),e.R7$(),e.Y8G("ngIf",o.CanManageControlSection&&o.documentPackageAccompanyingLetterDocumentDescriptor&&o.documentPackageAccompanyingLetterDocumentDescriptor.IsSubmitted&&!o.documentPackageAccompanyingLetterDocumentDescriptor.IsManuallySigned),e.R7$(),e.Y8G("ngIf",o.documentPackageAccompanyingLetterDocumentDescriptor&&o.documentPackageAccompanyingLetterDocumentDescriptor.IsSubmitted&&o.documentPackageAccompanyingLetterDocumentDescriptor.IsManuallySigned),e.R7$(),e.Y8G("ngIf",o.CanManageControlSection&&(!o.documentPackageAccompanyingLetterDocumentDescriptor||!o.documentPackageAccompanyingLetterDocumentDescriptor.IsSubmitted)),e.R7$(),e.Y8G("ngIf",o.documentPackageAccompanyingLetterDocumentDescriptor&&o.documentPackageAccompanyingLetterDocumentDescriptor.IsSubmitted&&o.documentPackageAccompanyingLetterDocumentDescriptor.SubmissionDateTime),e.R7$(5),e.JRh(e.bMT(66,55,"str_Control_Tender_Buyer_235_SelectedControl_Statement")),e.R7$(2),e.Y8G("ngIf",o.selectedStatement&&o.selectedStatement.SubmissionDateTime)("ngIfElse",r),e.R7$(3),e.Y8G("ngIf",o.previousStatements.length>0)}}let se=(()=>{class n extends F.$G{constructor(t,r,o,s,d,a,p,u,b,C,v,D,x){super(t),this.viewContainerRef
1=t,this.dialogService=r,this.changeDetectorRef=o,this.documentService=s,this.defaultDocumentService=d,this.tenderStoreService=a,this.route=p,this.router=u,this.routerStoreService=b,this.controlService=C,this.controlStoreService=v,this.controlRelatedDocumentService=D,this.tenderGuard=x,this.phase235Enum=NX1.Model.Enums.ControlContext235Phase,this.statusEnum=NX1.Model.Enums.ControlContextStatus,this.selectedControlContext235TenderId$=this.routerStoreService.getIdFromParams(this.route.paramMap,"id"),this.subscriptions=[]}get IsControlContextDraft(){return this.selectedControlContext235.Phase235===NX1.Model.Enums.ControlContext235Phase.None}get CanViewControlSection(){return this.tenderGuard.canViewTenderControlSection}get CanManageControlSection(){return this.tenderGuard.canManageTenderControlSection}ngOnInit(){this.isSubmitting=!1;const t=this.route.snapshot.paramMap,r=t.get("context235Id")?Number(t.get("context235Id")):null;Number.isFinite(r)&&(this.routeControlContext235Id=r),this.tender$=this.tenderStoreService.getCurrentTender();const o=this.tender$.subscribe(s=>{this.tender=s,this.controlService.refreshTenderControlDataInTheStore(this.tender.Id)});this.selectedControlContext235$=this.routeControlContext235Id?this.controlService.getControlContext235ById(this.routeControlContext235Id):this.controlService.getControlContext235ByTenderId(this.tender.Id),this.subscriptions.push(this.selectedControlContext235$.subscribe(s=>{this.selectedControlContext235=s,this.selectedForm$=this.controlService.getControl235FormById(s.RegistrationFormId),this.selectedStatement=this.selectedControlContext235.Statements.find(d=>d.Id===this.selectedControlContext235.StatementId),this.selectedStatement&&(this.statementDocumentDescriptor=this.controlService.findDocumentDecriptorInArrayByDescriptorId(this.selectedControlContext235.AssociatedDocumentDescriptors,this.selectedStatement.ControlRelatedDocumentDescriptorId)),this.statementDocumentDescriptor&&this.statementDocumentDescriptor.IsSubmitted&&(this.statementDocument$=this.documentService.getDocumentById(this.statementDocumentDescriptor.DocumentId),this.subscriptions.push(this.statementDocument$.subscribe(d=>{this.statementDocument=d,this.changeDetectorRef.markForCheck()}))),this.loadDocumentPackageSection(),this.loadPreviousStatementsData()})),this.subscriptions.push(o)}ngOnDestroy(){for(const t of this.subscriptions)t.unsubscribe()}downloadStatementDocument(){const t=this.documentService.downloadDocumentById(this.statementDocument.Id).subscribe(()=>{t.unsubscribe()})}downloadDocumentPackage(){const t=this.documentService.downloadDocumentById(this.documentPackageDocument.Id).subscribe(()=>{t.unsubscribe()})}downloadDocumentPackageAccompanyingLetter(){const t=this.documentService.downloadDocumentById(this.documentPackageAccompanyingLetterDocument.Id).subscribe(()=>{t.unsubscribe()})}downloadDocument(t){this.subscriptions.push(this.documentService.downloadDocumentById(t).subscribe())}deleteDocumentPackageDescriptor(){this.documentPackageDocumentDescriptor&&this.documentPackageDocumentDescriptor.Id&&this.controlRelatedDocumentService.deleteDescriptor(this.documentPackageDocumentDescriptor.Id).subscribe(()=>{const t=this.selectedControlContext235.AssociatedDocumentDescriptors.findIndex(r=>r.Id===this.documentPackageDocumentDescriptor.Id);this.selectedControlContext235.AssociatedDocumentDescriptors.splice(t,1),this.documentPackageDocument=null,this.documentPackageDocument$=null,this.documentPackageDocumentDescriptor=null,this.documentPackageDocumentDescriptor$=null,this.changeDetectorRef.markForCheck()})}deleteDocumentPackageAccompanyingLetterDescriptor(){this.documentPackageAccompanyingLetterDocumentDescriptor&&this.documentPackageAccompanyingLetterDocumentDescriptor.Id&&this.controlRelatedDocumentService.deleteDescriptor(this.documentPackageAccompanyingLetterDocumentDescriptor.Id).subscribe(()=>{const t=this.selectedControlContext235.AssociatedDocumentDescriptors.findIndex(r=>r.Id===this.documentPackageAccompanyingLetterDocumentDescriptor.Id);this.selectedControlContext235.AssociatedDocumentDescriptors.splice(t,1),this.documentPackageAccompanyingLetterDocument=null,this.documentPackageAccompanyingLetterDocument$=null,this.documentPackageAccompanyingLetterDocumentDescriptor=null,this.documentPackageAccompanyingLetterDocumentDescriptor$=null,this.changeDetectorRef.markForCheck()})}getControlContextPhase235EnumValue(t){let r;try{r=t}catch{r=NX1.Model.Enums.ControlContext235Phase.None}return r}OnEditForm(t){const r=Number.isFinite(this.routeControlContext235Id)?"../../submit235":"../submit235";this.router.navigate([r,t.Id],{relativeTo:this.route})}openFormDialog(t){const r=new h.Pe;
1r.viewContainerRef=this.viewContainerRef,this.controlFormViewRef=this.dialogService.open(Eo,r),this.controlFormViewRef.componentInstance.formInfo=t}openSignaturesDialog(t,r,o){this.destroySignDocumentRef(),this.controlStoreService.loadControlDocumentSignatures(t.Id);const s=new h.Pe;s.viewContainerRef=this.viewContainerRef,this.digitalSignaturesDialogComponent=this.dialogService.open(B.m,s),this.digitalSignaturesDialogComponent.componentInstance.pdfDocument=t,this.digitalSignaturesDialogComponent.componentInstance.digitalSignaturesList$=this.controlStoreService.getCurrentControlDocumentDigitalSignatures(),this.digitalSignaturesDialogComponent.componentInstance.canManageSignatures=o,this.digitalSignaturesDialogComponent.componentInstance.isAlreadySigned$=this.controlStoreService.getIsControlDocumentAlreadySignedByCurrentUser(),this.digitalSignaturesDialogComponent.componentInstance.isLoadingSignatures$=this.controlStoreService.getIsLoadingSignatures(),this.digitalSignaturesDialogComponent.componentInstance.objectId=r.Id,this.digitalSignaturesDialogComponent.componentInstance.objectGuid=r.Guid,this.digitalSignaturesDialogComponent.componentInstance.entityId=r.EntityId,this.digitalSignaturesDialogComponent.componentInstance.deleteConfirmationContentKeyword="str_DocumentEditor_delete_signature_confirmation_message",this.digitalSignaturesDialogComponent.componentInstance.signTitleKeyword="str_Common_sign",this.changeDetectorRef.markForCheck()}submitDocumentPackage(){this.isSubmitting=!0;const t=this.controlService.submitDocumentPackageForControlBy235(this.selectedControlContext235.Id).pipe((0,So.j)(()=>{this.tender&&this.tender.Id&&this.controlService.refreshTenderControlDataInTheStore(this.tender.Id)})).subscribe(()=>{t.unsubscribe(),this.ngOnDestroy(),this.ngOnInit()})}onAddDocumentPackageDocuments(t){const r=this.controlService.generateDescriptorInfoObjectsInFrontEnd(t,NX1.Model.Enums.ControlType.ByArticle235,this.selectedControlContext235.Id,NX1.Model.Enums.ControlRelatedDocumentType.ControlByArticle235ContractingAuthorityDocument),o=this.controlRelatedDocumentService.createDescriptors(r);this.subscriptions.push(o.subscribe(s=>{this.documentPackageDocument=null,this.documentPackageDocument$=null,this.documentPackageDocumentDescriptor=s[0],this.selectedControlContext235.AssociatedDocumentDescriptors.push(this.documentPackageDocumentDescriptor),this.loadDocumentPackageSection()}))}onAddDocumentPackageAccompanyingLetterDocuments(t){const r=this.controlService.generateDescriptorInfoObjectsInFrontEnd(t,NX1.Model.Enums.ControlType.ByArticle235,this.selectedControlContext235.Id,NX1.Model.Enums.ControlRelatedDocumentType.AccompanyingLetter,this.documentPackageDocumentDescriptor.Id),o=this.controlRelatedDocumentService.createDescriptors(r);this.subscriptions.push(o.subscribe(s=>{this.documentPackageAccompanyingLetterDocument=null,this.documentPackageAccompanyingLetterDocument$=null,this.documentPackageAccompanyingLetterDocumentDescriptor=s[0],this.selectedControlContext235.AssociatedDocumentDescriptors.push(this.documentPackageAccompanyingLetterDocumentDescriptor),this.loadDocumentPackageSection()}))}onDocumentPackageAccompanyingLetterManuallySignedChanged(t){this.documentPackageAccompanyingLetterDocumentDescriptor.IsManuallySigned=t.checked;const r=this.controlRelatedDocumentService.updateDescriptor(this.documentPackageAccompanyingLetterDocumentDescriptor).subscribe(o=>{this.documentPackageAccompanyingLetterDocumentDescriptor=o,r.unsubscribe(),this.changeDetectorRef.markForCheck()})}loadDocumentPackageSection(){this.documentPackageDocumentDescriptor=this.controlService.findDocumentDecriptorInArray(this.selectedControlContext235.AssociatedDocumentDescriptors,NX1.Model.Enums.ControlRelatedDocumentType.ControlByArticle235ContractingAuthorityDocument),this.documentPackageDocumentDescriptor&&(this.documentPackageDocument$=this.documentService.getDocumentById(this.documentPackageDocumentDescriptor.DocumentId),this.subscriptions.push(this.documentPackageDocument$.subscribe(t=>{this.documentPackageDocument=t,this.changeDetectorRef.markForCheck(),this.documentPackageAccompanyingLetterDocumentDescriptor=this.controlService.findDocumentDecriptorInArray(this.selectedControlContext235.AssociatedDocumentDescriptors,NX1.Model.Enums.ControlRelatedDocumentType.AccompanyingLetter,this.documentPackageDocumentDescriptor.Id),this.documentPackageAccompanyingLetterDocumentDescriptor&&(this.documentPackageAccompanyingLetterDocument$=this.documentService.getDocumentById(this.documentPackageAccompanyingLetterDocumentDescriptor.DocumentId),this.subscriptions.push(this.documentPackageAccompanyingLetterDocument$.subscribe(r=>{this.documentPackageAccompanyingLetterDocument=r,this.changeDetectorRef.markForCheck(),this.controlStoreService.loadControlDocumentSignatures(this.documentPackageAccompanyingLetterDocument.Id),this.isDocumentPackageAccompanyingLetterDigitallySigned$=this.controlStoreService.getIsControlDocumentAlreadySignedByCurrentUser().pipe((0,y.M)(o=>{this.isDocumentPackageAccompanyingLetterDigitallySigned=o,this.changeDetectorRef.markForCheck()}))})))})))}destroySignDocumentRef(){this.digitalSignaturesDialogComponent&&(this.digitalSignaturesDialogComponent.close(),this.digitalSignaturesDialogComponent=null)}loadPreviousStatementsData(){this.previousStatements=this.selectedControlContext235.Statements.filter(t=>t.Id!==this.selectedControlContext235.StatementId),this.previousStatements.sort((t,r)=>this.comparingFunction(t.SubmissionDateTime,r.SubmissionDateTime,!1)),this.previousStatementsDocumentDescriptors=[],this.previousStatementsDocuments=[];for(let t=0;t<this.previousStatements.length;t++){const r=this.previousStatements[t],o=this.selectedControlContext235.AssociatedDocumentDescriptors.find(s=>s.Id===r.ControlRelatedDocumentDescriptorId);this.previousStatementsDocumentDescriptors.push(o),this.subscriptions.push(this.documentService.getDocumentById(o.DocumentId).subscribe(s=>{this.previousStatementsDocuments.push(s),this.previousStatementsDocuments.sort((d,a)=>this.comparingFunction(d.CreatedDate,a.CreatedDate,!1)),this.changeDetectorRef.markForCheck()}))}}comparingFunction(t,r,o){typeof o>"u"&&(o=!0);let s=1;return o||(s=-1),t>r?1*s:t<r?-1*s:0}static{this.\u0275fac=function(r){return new(r||n)(e.rXU(e.c1b),e.rXU(h.o3),e.rXU(e.gRc),e.rXU(l.DKw),e.rXU(l.sO9),e.rXU(l.$gx),e.rXU(g.nX),e.rXU(g.Ix),e.rXU(l.o9Y),e.rXU(l.het),e.rXU(l.CFu),e.rXU(l.N$f),e.rXU(R.U))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["nx1-tender-buyer-control-selected-235"]],features:[e.Jv_([{provide:$.Q,useClass:j.Q}]),e.Vt3],decls:4,vars:6,consts:[["noStatementBlock",""],[4,"ngIf"],["class","min--width-600",4,"ngIf"],[1,"min--width-600"],[1,"nxcard","bg--white","z1","margin--bottom-20","margin--top-20"],[1,"nxcard__header"],[1,"nxcard__header-title"],[1,"nxcard__header-title-content"],[1,"pos--relative","flex-element--right","flex-row"],[1,"flex-row","padding--8","padding--left-15","align--center","margin--5"],[1,""],[1,"margin--bottom-5","text--14px","text--bold","text--grey25","text--uppercase"],[1,"text--14px","text--bold","text--grey25","text--uppercase"],[1,"text--bold","text--left"],[1,"margin--bottom-5","padding--left-10","text--14px","text--bold","text--grey55","text--uppercase"],[1,"padding--left-10","text--14px","text--bold","text--grey55","text--uppercase"],[1,"nxcard","margin--bottom-20","bg--white","z1"],[1,"border--bottom","nxcard__body-row"],[1,"break-word","col-md-12","col-xs-12","nxcard__body-cell","overflow-hidden"],[1,"profile-value"],[1,"break-word","col-md-4","col-xs-4","nxcard__body-cell","overflow-hidden"],[1,"profile-label","margin--bottom-5"],["class","profile-value margin--bottom-5",4,"ngIf"],[3,"keyword","showConsentCheckbox","multiple","save",4,"ngIf"],["mat-button","","color","primary","class","margin--left-10",3,"click",4,"ngIf"],[3,"keyword","showConsentCheckbox","multiple","ngClass","save",4,"ngIf"],["mat-button","","color","primary","class","margin--left-10",3,"disabled","click",4,"ngIf"],["class","margin--left-10",3,"checked","disabled","change",4,"ngIf"],["class","margin--left-10 link-text text--bold text--20px",3,"click",4,"ngIf"],["class","margin--left-10 text--bold text--20px",4,"ngIf"],["class","break-word col-md-4 col-xs-4 nxcard__body-cell overflow-hidden display--flex",4,"ngIf"],["class","col-md-4 col-xs-4 nxcard__body-cell",4,"ngIf"],["class","border--bottom nxcard__body-row",4,"ngIf","ngIfElse"],["class","nxcard__body-row",4,"ngIf"],[1,"text--bold","text--20px"],[1,"border--bottom","nxcard__body-row","display--flex"],[1,"break-word","col-md-6","col-xs-6","nxcard__body-cell","overflow-hidden","display--flex"],["mat-button","","color","primary",1,"margin--top-5","margin--right-5",3,"click"],["mat-icon-button","","color","primary","class","margin--top-5 margin--right-5",3,"click",4,"ngIf"],[1,"col-md-6","col-xs-6","nxcard__body-cell"],[1,"profile-label"],["mat-icon-button","","color","primary",1,"margin--top-5","margin--right-5",3,"click"],[1,"mdi","mdi-lead-pencil"],[1,"profile-value","margin--bottom-5"],[3,"save","keyword","showConsentCheckbox","multiple"],["mat-button","","color","primary",1,"margin--left-10",3,"click"],[1,"mdi","mdi-download"],[1,"mdi","mdi-window-close"],[3,"save","keyword","showConsentCheckbox","multiple","ngClass"],["mat-button","","color","primary",1,"margin--left-10",3,"click","disabled"],[1,"margin--left-10",3,"change","checked","disabled"],[1,"margin--left-10","link-text","text--bold","text--20px",3,"click"],[1,"margin--left-10","text--bold","text--20px"],[1,"break-word","col-md-4","col-xs-4","nxcard__body-cell","overflow-hidden","display--flex"],["mat-button","","color","primary","class","margin--left-10 mat-warn",3,"disabled","click",4,"ngIf"],["style","margin: auto;",4,"ngIf"],["mat-button","","color","primary",1,"margin--left-10","mat-warn",3,"click","disabled"],[2,"margin","auto"],[3,"diameter"],[1,"col-md-4","col-xs-4","nxcard__body-cell"],[1,"break-word","col-md-6","col-xs-6","nxcard__body-cell","overflow-hidden"],[1,"margin--20"],[1,"nxcard__body-row"],[1,"col-md-12","col-xs-12","nxcard__body-cell"],[1,"text--bold","text--15px"],[1,"text--bold","text--15px","margin--left-5"],[4,"ngFor","ngForOf"],[1,"link-text","text--bold","text--15px",3,"click"],[1,"margin--left-5"]],template:function(r,o){1&r&&(e.DNE(0,$o,1,0,"ng-container",1),e.nI1(1,"async"),e.DNE(2,or,71,57,"div",2),e.nI1(3,"async")),2&r&&(e.Y8G("ngIf",e.bMT(1,2,o.isDocumentPackageAccompanyingLetterDigitallySigned$)),e.R7$(2),e.Y8G("ngIf",e.bMT(3,4,o.selectedControlContext235$)))},dependencies:[m.YU,m.Sq,m.bT,S.iV,N.NZ,k.wS,A.p,m.Jj,I.D9,T.R9,M.O],styles:[".link-text[_ngcontent-%COMP%]{text-decoration:underline;color:#47abcc;cursor:pointer}.link-text[_ngcontent-%COMP%]:hover, .link-text[_ngcontent-%COMP%]:active, .link-text[_ngcontent-%COMP%]:focus{text-decoration:underline}.disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}.min--width-600[_ngcontent-%COMP%]{min-width:600px}.no-bullets[_ngcontent-%COMP%]{list-style-type:none}"],changeDetection:0})}}return n})();var ce=_(16790);const rr=n=>({disabled:n});function ir(n,i){1&n&&e.eu8(0)}function sr(n,i){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(t.controlContext.Number)}}function cr(n,i){if(1&n&&(e.j41(0,"label",32),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.priorInformationNoticeDocument.Name," ")}}function ar(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);
1return e.Njj(o.downloadPriorInformationNotice())}),e.nrm(1,"i",34),e.k0s()}}function lr(n,i){if(1&n&&(e.j41(0,"div"),e.DNE(1,cr,2,1,"label",21)(2,ar,2,0,"button",19),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.priorInformationNoticeDocument),e.R7$(),e.Y8G("ngIf",t.priorInformationNoticeDocument)}}function dr(n,i){if(1&n&&(e.j41(0,"div",35),e.nrm(1,"mat-spinner",36),e.k0s()),2&n){const t=e.XpG();e.AVh("overlay-loading--show",t.showOverlay),e.R7$(),e.Y8G("diameter",60)}}function ur(n,i){if(1&n&&(e.j41(0,"label",32),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.decisionForStartingATenderingProcedureDocument.Name," ")}}function mr(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.downloadDecisionForStartingATenderingProcedure())}),e.nrm(1,"i",34),e.k0s()}}function _r(n,i){if(1&n&&(e.j41(0,"div"),e.DNE(1,ur,2,1,"label",21)(2,mr,2,0,"button",19),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.decisionForStartingATenderingProcedureDocument),e.R7$(),e.Y8G("ngIf",t.decisionForStartingATenderingProcedureDocument)}}function pr(n,i){if(1&n&&(e.j41(0,"div",35),e.nrm(1,"mat-spinner",36),e.k0s()),2&n){const t=e.XpG();e.AVh("overlay-loading--show",t.showOverlay),e.R7$(),e.Y8G("diameter",60)}}function gr(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.generateDecisionAndNoticePdfs())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"str_Control_Tender_Buyer_232_DocumentSubmission_Generate")," "))}function hr(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.deleteDecisionAndNoticeDocumentDescriptors())}),e.nrm(1,"i",37),e.EFF(2),e.nI1(3,"translate"),e.k0s()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"str_Control_Tender_Buyer_232_DocumentSubmission_Remove")," "))}function br(n,i){if(1&n&&(e.j41(0,"label",32),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.SpI(" ",t.technicalSpecificationDocument.Name," ")}}function Cr(n,i){if(1&n){const t=e.RV6();e.j41(0,"nx1-documents-upload",38),e.bIt("save",function(o){e.eBV(t);const s=e.XpG();return e.Njj(s.onAddTechnicalSpecificationDocuments(o))}),e.k0s()}2&n&&e.Y8G("keyword","str_Common_add")("showConsentCheckbox",!1)("multiple",!1)}function fr(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.downloadTechnicalSpecification())}),e.nrm(1,"i",34),e.k0s()}}function vr(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.deleteTechnicalSpecificationDescriptor())}),e.nrm(1,"i",37),e.k0s()}}function Dr(n,i){if(1&n&&(e.j41(0,"label",32),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.SpI(" ",t.awardMethodDocument.Name," ")}}function Ir(n,i){if(1&n){const t=e.RV6();e.j41(0,"nx1-documents-upload",38),e.bIt("save",function(o){e.eBV(t);const s=e.XpG();return e.Njj(s.onAddAwardMethodDocuments(o))}),e.k0s()}2&n&&e.Y8G("keyword","str_Common_add")("showConsentCheckbox",!1)("multiple",!1)}function Sr(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.downloadAwardMethod())}),e.nrm(1,"i",34),e.k0s()}}function yr(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.deleteAwardMethodDescriptor())}),e.nrm(1,"i",37),e.k0s()}}function Tr(n,i){if(1&n&&(e.j41(0,"label",32),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.archiveDocument.Name," ")}}function Fr(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",25),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.generateArchive())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("disabled",!(t.priorInformationNoticeDocument&&t.decisionForStartingATenderingProcedureDocument&&t.technicalSpecificationDocument&&t.awardMethodDocument)),e.R7$(),e.SpI(" ",e.bMT(2,2,"str_Control_Tender_Buyer_232_DocumentSubmission_Generate")," ")}}function Rr(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.downloadArchive())}),e.nrm(1,"i",34),e.k0s()}}function kr(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.deleteArchiveDescriptor())}),e.nrm(1,"i",37),e.k0s()}}function xr(n,i){if(1&n&&(e.j41(0,"div"),e.DNE(1,Tr,2,1,"label",21)(2,Fr,3,4,"button",39)(3,Rr,2,0,"button",19)(4,kr,2,0,"button",19),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.archiveDocument),e.R7$(),e.Y8G("ngIf",!t.archiveDocument),e.R7$(),e.Y8G("ngIf",t.archiveDocument),e.R7$(),e.Y8G("ngIf",t.archiveDocument&&!t.accompanyingLetterDocument)}}function Er(n,i){if(1&n&&(e.j41(0,"div",35),e.nrm(1,"mat-spinner",36),e.k0s()),2&n){const t=e.XpG();e.AVh("overlay-loading--show",t.showOverlay),e.R7$(),e.Y8G("diameter",60)}}function Br(n,i){if(1&n&&(e.j41(0,"label",32),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.SpI(" ",t.accompanyingLetterDocument.Name," ")}}function $r(n,i){if(1&n){const t=e.RV6();e.j41(0,"nx1-documents-upload",40),e.bIt("save",function(o){e.eBV(t);const s=e.XpG();return e.Njj(s.onAddAccompanyingLetterDocument(o))}),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("keyword","str_Common_add")("showConsentCheckbox",!1)("multiple",!1)("ngClass",e.eq3(4,rr,!t.archiveDocument))}}function jr(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.downloadAccompanyingLetter())}),e.nrm(1,"i",34),e.k0s()}}function Mr(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.deleteAccompanyingLetterDescriptor())}),e.nrm(1,"i",37),e.k0s()}}function wr(n,i){1&n&&(e.j41(0,"mat-checkbox",41),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.Y8G("disabled",!0),e.R7$(),e.SpI(" ",e.bMT(2,2,"str_Control_Tender_Buyer_232_DocumentSubmission_HandSigned")," "))}function Ar(n,i){if(1&n){const t=e.RV6();e.j41(0,"mat-checkbox",42),e.bIt("change",function(o){e.eBV(t);const s=e.XpG();return e.Njj(s.onAccompanyingLetterManuallySignedChanged(o))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("checked",t.accompanyingLetterDocumentDescriptor.IsManuallySigned)("disabled",t.isArchiveAccompanyingLetterDigitallySigned||t.archiveDocumentDescriptor&&t.archiveDocumentDescriptor.IsSubmitted),e.R7$(),e.SpI(" ",e.bMT(2,3,"str_Control_Tender_Buyer_232_DocumentSubmission_HandSigned")," ")}}function Pr(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",43),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.submit())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("disabled",!t.accompanyingLetterDocumentDescriptor||!t.isArchiveAccompanyingLetterDigitallySigned&&!t.accompanyingLetterDocumentDescriptor.IsManuallySigned||t.accompanyingLetterDocumentDescriptor.IsSubmitted),e.R7$(),e.SpI(" ",e.bMT(2,2,"str_Control_Tender_Buyer_232_DocumentSubmission_Send")," ")}}function Gr(n,i){1&n&&e.nrm(0,"mat-spinner",44),2&n&&e.Y8G("diameter",60)}let Nr=(()=>{class n extends ce.$G{constructor(t,r,o,s,d,a,p,u,b){super(t),this.controlRelatedDocumentService=r,this.controlService=o,this.tenderStoreService=s,this.documentService=d,this.changeDetectorRef=a,this.dialogService=p,this.controlStoreService=u,this.router=b,this.ControlRelatedDocumentType=NX1.Model.Enums.ControlRelatedDocumentType,this.showOverlay=!0,this.showSubmissionLoader=!1}ngOnInit(){this.loadControlContext(),this.isDecisionAndNoticeGenerating=!1,this.isArchiveGenerating=!1}onAddTechnicalSpecificationDocuments(t){const r=this.controlService.generateDescriptorInfoObjectsInFrontEnd(t,NX1.Model.Enums.ControlType.ByArticle232,this.controlContext.Id,NX1.Model.Enums.ControlRelatedDocumentType.TechnicalSpecification);this.technicalSpecificationDocumentDecriptors$=this.controlRelatedDocumentService.createDescriptors(r),this.technicalSpecificationDocumentDecriptors$.subscribe(o=>{this.loadControlContext()})}onAddAwardMethodDocuments(t){const r=this.controlService.generateDescriptorInfoObjectsInFrontEnd(t,NX1.Model.Enums.ControlType.ByArticle232,this.controlContext.Id,NX1.Model.Enums.ControlRelatedDocumentType.AwardMethod);this.awardMethodDocumentDecriptors$=this.controlRelatedDocumentService.createDescriptors(r),this.awardMethodDocumentDecriptors$.subscribe(o=>{this.loadControlContext()})}onAddAccompanyingLetterDocument(t){const r=this.controlService.generateDescriptorInfoObjectsInFrontEnd(t,NX1.Model.Enums.ControlType.ByArticle232,this.controlContext.Id,NX1.Model.Enums.ControlRelatedDocumentType.AccompanyingLetter,this.archiveDocumentDescriptor.Id);this.accompanyingLetterDocumentDescriptors$=this.controlRelatedDocumentService.createDescriptors(r),this.accompanyingLetterDocumentDescriptors$.subscribe(o=>{this.loadControlContext()})}loadControlContext(){this.tender$=this.tenderStoreService.getCurrentTender(),this.tender$.pipe((0,f.s)(1)).subscribe(t=>{this.tender=t,this.controlService.refreshTenderControlDataInTheStore(this.tender.Id),this.controlContext$=this.controlService.getControlContext232ByTenderId(this.tender.Id),this.controlContext$.subscribe(r=>{this.controlContext=r;const o=this.controlContext.AssociatedDocumentDescriptors;this.priorInformationNoticeDocumentDescriptor=this.controlService.findDocumentDecriptorInArray(o,NX1.Model.Enums.ControlRelatedDocumentType.PriorInformationNotice),this.priorInformationNoticeDocument$=null,this.priorInformationNoticeDocument=null,this.priorInformationNoticeDocumentDescriptor&&(this.priorInformationNoticeDocument$=this.documentService.getDocumentById(this.priorInformationNoticeDocumentDescriptor.DocumentId),this.priorInformationNoticeDocument$.subscribe(s=>{this.priorInformationNoticeDocument=s,this.changeDetectorRef.markForCheck()})),this.decisionForStartingATenderingProcedureDocumentDescriptor=this.controlService.findDocumentDecriptorInArray(o,NX1.Model.Enums.ControlRelatedDocumentType.DecisionForStartingATenderingProcedure),this.decisionForStartingATenderingProcedureDocument$=null,this.decisionForStartingATenderingProcedureDocument=null,this.decisionForStartingATenderingProcedureDocumentDescriptor&&(this.decisionForStartingATenderingProcedureDocument$=this.documentService.getDocumentById(this.decisionForStartingATenderingProcedureDocumentDescriptor.DocumentId),this.decisionForStartingATenderingProcedureDocument$.subscribe(s=>{this.decisionForStartingATenderingProcedureDocument=s,this.changeDetectorRef.markForCheck()})),this.technicalSpecificationDocumentDescriptor=this.controlService.findDocumentDecriptorInArray(o,NX1.Model.Enums.ControlRelatedDocumentType.TechnicalSpecification),this.technicalSpecificationDocument$=null,this.technicalSpecificationDocument=null,this.technicalSpecificationDocumentDescriptor&&(this.technicalSpecificationDocument$=this.documentService.getDocumentById(this.technicalSpecificationDocumentDescriptor.DocumentId),this.technicalSpecificationDocument$.subscribe(s=>{this.technicalSpecificationDocument=s,this.changeDetectorRef.markForCheck()})),this.awardMethodDocumentDescriptor=this.controlService.findDocumentDecriptorInArray(o,NX1.Model.Enums.ControlRelatedDocumentType.AwardMethod),this.awardMethodDocument$=null,this.awardMethodDocument=null,this.awardMethodDocumentDescriptor&&(this.awardMethodDocument$=this.documentService.getDocumentById(this.awardMethodDocumentDescriptor.DocumentId),this.awardMethodDocument$.subscribe(s=>{this.awardMethodDocument=s,this.changeDetectorRef.markForCheck()})),this.archiveDocumentDescriptor=this.controlService.findDocumentDecriptorInArray(o,NX1.Model.Enums.ControlRelatedDocumentType.ControlByArticle232DocumentPackage),this.archiveDocument$=null,this.archiveDocument=null,this.archiveDocumentDescriptor&&(this.archiveDocument$=this.documentService.getDocumentById(this.archiveDocumentDescriptor.DocumentId),this.archiveDocument$.subscribe(s=>{this.archiveDocument=s,this.changeDetectorRef.markForCheck()}),this.accompanyingLetterDocumentDescriptor=this.controlService.findDocumentDecriptorInArray(o,NX1.Model.Enums.ControlRelatedDocumentType.AccompanyingLetter,this.archiveDocumentDescriptor.Id),this.accompanyingLetterDocument$=null,this.accompanyingLetterDocument=null,this.accompanyingLetterDocumentDescriptor&&(this.accompanyingLetterDocument$=this.documentService.getDocumentById(this.accompanyingLetterDocumentDescriptor.DocumentId),this.accompanyingLetterDocument$.subscribe(s=>{this.accompanyingLetterDocument=s,this.changeDetectorRef.markForCheck(),this.controlStoreService.loadControlDocumentSignatures(this.accompanyingLetterDocument.Id),this.isArchiveAccompanyingLetterDigitallySigned$=this.controlStoreService.getIsControlDocumentAlreadySignedByCurrentUser().pipe((0,y.M)(d=>{this.changeDetectorRef.markForCheck(),this.isArchiveAccompanyingLetterDigitallySigned=d}))}))),this.changeDetectorRef.markForCheck()})})}deleteDecisionAndNoticeDocumentDescriptors(){this.priorInformationNoticeDocumentDescriptor&&this.priorInformationNoticeDocumentDescriptor.Id&&this.deleteDocumentDescriptorById(this.priorInformationNoticeDocumentDescriptor.Id),this.decisionForStartingATenderingProcedureDocumentDescriptor&&this.decisionForStartingATenderingProcedureDocumentDescriptor.Id&&this.deleteDocumentDescriptorById(this.decisionForStartingATenderingProcedureDocumentDescriptor.Id)}deleteTechnicalSpecificationDescriptor(){this.technicalSpecificationDocumentDescriptor&&this.technicalSpecificationDocumentDescriptor.Id&&this.deleteDocumentDescriptorById(this.technicalSpecificationDocumentDescriptor.Id)}deleteAwardMethodDescriptor(){this.awardMethodDocumentDescriptor&&this.awardMethodDocumentDescriptor.Id&&this.deleteDocumentDescriptorById(this.awardMethodDocumentDescriptor.Id)}deleteAccompanyingLetterDescriptor(){this.accompanyingLetterDocumentDescriptor&&this.accompanyingLetterDocumentDescriptor.Id&&this.deleteDocumentDescriptorById(this.accompanyingLetterDocumentDescriptor.Id)}deleteArchiveDescriptor(){this.archiveDocumentDescriptor&&this.archiveDocumentDescriptor.Id&&this.deleteDocumentDescriptorById(this.archiveDocumentDescriptor.Id)}deleteDocumentDescriptorById(t){this.controlRelatedDocumentService.deleteDescriptor(t).subscribe(()=>{this.loadControlContext()})}generateDecisionAndNoticePdfs(){this.isDecisionAndNoticeGenerating=!0;const t=this.controlService.generateDecisionAndNoticePdfs(this.controlContext.Id).subscribe(r=>{t.unsubscribe(),this.controlService.UnwrapValidationResult(r,this.dialogService),this.loadControlContext(),this.isDecisionAndNoticeGenerating=!1})}generateArchive(){this.isArchiveGenerating=!0;const t=this.controlService.generateDocumentProjectsArchive(this.controlContext.Id).subscribe(()=>{t.unsubscribe(),this.loadControlContext(),this.isArchiveGenerating=!1})}downloadPriorInformationNotice(){const t=this.documentService.downloadDocumentById(this.priorInformationNoticeDocument.Id).subscribe(()=>{t.unsubscribe()})}downloadDecisionForStartingATenderingProcedure(){const t=this.documentService.downloadDocumentById(this.decisionForStartingATenderingProcedureDocument.Id).subscribe(()=>{t.unsubscribe()})}downloadTechnicalSpecification(){const t=this.documentService.downloadDocumentById(this.technicalSpecificationDocument.Id).subscribe(()=>{t.unsubscribe()})}downloadAwardMethod(){const t=this.documentService.downloadDocumentById(this.awardMethodDocument.Id).subscribe(()=>{t.unsubscribe()})}downloadAccompanyingLetter(){const t=this.documentService.downloadDocumentById(this.accompanyingLetterDocument.Id).subscribe(()=>{t.unsubscribe()})}downloadArchive(){const t=this.documentService.downloadDocumentById(this.archiveDocument.Id).subscribe(()=>{t.unsubscribe()})}submit(){this.showSubmissionLoader=!0,this.changeDetectorRef.markForCheck();const t=this.controlService.submitDocumentProjectsForControlBy232(this.controlContext.Id).subscribe(()=>{t.unsubscribe(),this.router.navigate(["/tender",this.tender.Id,"buyer","control","view"])})}signLetter(){this.destroySignDocumentRef(),this.controlStoreService.loadControlDocumentSignatures(this.accompanyingLetterDocument.Id);const t=new h.Pe;
1t.viewContainerRef=this.viewContainerRef,this.digitalSignaturesDialogComponent=this.dialogService.open(B.m,t),this.digitalSignaturesDialogComponent.componentInstance.pdfDocument=this.accompanyingLetterDocument,this.digitalSignaturesDialogComponent.componentInstance.digitalSignaturesList$=this.controlStoreService.getCurrentControlDocumentDigitalSignatures(),this.digitalSignaturesDialogComponent.componentInstance.canManageSignatures=!this.accompanyingLetterDocumentDescriptor.IsSubmitted,this.digitalSignaturesDialogComponent.componentInstance.isAlreadySigned$=this.controlStoreService.getIsControlDocumentAlreadySignedByCurrentUser(),this.digitalSignaturesDialogComponent.componentInstance.isLoadingSignatures$=this.controlStoreService.getIsLoadingSignatures(),this.digitalSignaturesDialogComponent.componentInstance.objectId=this.accompanyingLetterDocumentDescriptor.Id,this.digitalSignaturesDialogComponent.componentInstance.objectGuid=this.accompanyingLetterDocumentDescriptor.Guid,this.digitalSignaturesDialogComponent.componentInstance.entityId=this.accompanyingLetterDocumentDescriptor.EntityId,this.digitalSignaturesDialogComponent.componentInstance.deleteConfirmationContentKeyword="str_DocumentEditor_delete_signature_confirmation_message",this.digitalSignaturesDialogComponent.componentInstance.signTitleKeyword="str_Common_sign",this.changeDetectorRef.markForCheck()}onAccompanyingLetterManuallySignedChanged(t){this.accompanyingLetterDocumentDescriptor.IsManuallySigned=t.checked;const r=this.controlRelatedDocumentService.updateDescriptor(this.accompanyingLetterDocumentDescriptor).subscribe(o=>{this.accompanyingLetterDocumentDescriptor=o,r.unsubscribe(),this.changeDetectorRef.markForCheck()})}destroySignDocumentRef(){this.digitalSignaturesDialogComponent&&(this.digitalSignaturesDialogComponent.close(),this.digitalSignaturesDialogComponent=null)}static{this.\u0275fac=function(r){return new(r||n)(e.rXU(e.c1b),e.rXU(l.N$f),e.rXU(l.het),e.rXU(l.$gx),e.rXU(l.DKw),e.rXU(e.gRc),e.rXU(h.o3),e.rXU(l.CFu),e.rXU(g.Ix))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["nx1-tender-buyer-control232-document-submission"]],features:[e.Jv_([{provide:$.Q,useClass:j.Q}]),e.Vt3],decls:111,vars:77,consts:[[4,"ngIf"],[1,"margin-top--20"],[1,"nxcard","bg--white","z1","margin--bottom-20","margin-top--20"],[1,"nxcard__header"],[1,"nxcard__header-title"],[1,"nxcard__header-title-content"],[1,"pos--relative","flex-element--right","flex-row","display--flex"],[1,"pos--relative","flex-column","content-center","text--bold"],[1,"margin--right-20","text--20px","text--black"],[1,"nxcard","margin--bottom-20","bg--white","z1"],[1,"border--bottom","nxcard__body-row"],[1,"break-word","nxcard__body-cell","overflow-hidden"],[1,"profile-value"],[1,"text--grey40"],[1,"break-wordcol","col-xs-5","nxcard__body-cell","overflow-hidden"],[1,"profile-label","margin--bottom-5"],["class","overlay-loading",3,"overlay-loading--show",4,"ngIf"],[1,"col-xs-5","nxcard__body-cell"],[1,"col-xs-2","nxcard__body-cell"],["mat-button","","color","primary","class","margin--left-10",3,"click",4,"ngIf"],[1,"break-wordcol","col-xs-6","nxcard__body-cell","overflow-hidden"],["class","profile-value margin--bottom-5",4,"ngIf"],[3,"keyword","showConsentCheckbox","multiple","save",4,"ngIf"],[1,"col-xs-6","nxcard__body-cell"],[3,"keyword","showConsentCheckbox","multiple","ngClass","save",4,"ngIf"],["mat-button","","color","primary",1,"margin--left-10",3,"click","disabled"],["class","margin--left-10",3,"disabled",4,"ngIf"],["class","margin--left-10",3,"checked","disabled","change",4,"ngIf"],[1,"nxcard__footer","no-border","display--flex","right"],[1,"pos--relative","flex-element--right","flex-row","margin--right-10"],["mat-button","","color","primary","class","margin--left-10 mat-warn",3,"disabled","click",4,"ngIf"],["class","margin--10",3,"diameter",4,"ngIf"],[1,"profile-value","margin--bottom-5"],["mat-button","","color","primary",1,"margin--left-10",3,"click"],[1,"mdi","mdi-download"],[1,"overlay-loading"],[3,"diameter"],[1,"mdi","mdi-window-close"],[3,"save","keyword","showConsentCheckbox","multiple"],["mat-button","","color","primary","class","margin--left-10",3,"disabled","click",4,"ngIf"],[3,"save","keyword","showConsentCheckbox","multiple","ngClass"],[1,"margin--left-10",3,"disabled"],[1,"margin--left-10",3,"change","checked","disabled"],["mat-button","","color","primary",1,"margin--left-10","mat-warn",3,"click","disabled"],[1,"margin--10",3,"diameter"]],template:function(r,o){1&r&&(e.DNE(0,ir,1,0,"ng-container",0),e.nI1(1,"async"),e.j41(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5),e.DNE(7,sr,2,1,"span",0),e.k0s()(),e.j41(8,"div",6)(9,"div",7)(10,"div",8),e.
1EFF(11),e.nI1(12,"translate"),e.k0s()()()()(),e.j41(13,"div")(14,"div",9)(15,"div",10)(16,"div",11)(17,"label",12),e.EFF(18),e.nI1(19,"translate"),e.k0s(),e.j41(20,"div",13),e.EFF(21),e.nI1(22,"translate"),e.k0s()()(),e.j41(23,"div",10)(24,"div",14)(25,"label",15),e.EFF(26),e.nI1(27,"translate"),e.k0s(),e.DNE(28,lr,3,2,"div",0)(29,dr,2,3,"div",16),e.k0s(),e.j41(30,"div",17)(31,"label",15),e.EFF(32),e.nI1(33,"translate"),e.k0s(),e.DNE(34,_r,3,2,"div",0)(35,pr,2,3,"div",16),e.k0s(),e.j41(36,"div",18),e.DNE(37,gr,3,3,"button",19)(38,hr,4,3,"button",19),e.k0s()()()(),e.j41(39,"div")(40,"div",9)(41,"div",10)(42,"div",11)(43,"label",12),e.EFF(44),e.nI1(45,"translate"),e.k0s(),e.j41(46,"div",13),e.EFF(47),e.nI1(48,"translate"),e.k0s()()(),e.j41(49,"div",10)(50,"div",20)(51,"label",15),e.EFF(52),e.nI1(53,"translate"),e.k0s(),e.DNE(54,br,2,1,"label",21)(55,Cr,1,3,"nx1-documents-upload",22)(56,fr,2,0,"button",19)(57,vr,2,0,"button",19),e.k0s(),e.j41(58,"div",23)(59,"label",15),e.EFF(60),e.nI1(61,"translate"),e.k0s(),e.DNE(62,Dr,2,1,"label",21)(63,Ir,1,3,"nx1-documents-upload",22)(64,Sr,2,0,"button",19)(65,yr,2,0,"button",19),e.k0s()()()(),e.j41(66,"div")(67,"div",9)(68,"div",10)(69,"div",11)(70,"label",12),e.EFF(71),e.nI1(72,"translate"),e.k0s(),e.j41(73,"div",13),e.EFF(74),e.nI1(75,"translate"),e.k0s()()(),e.j41(76,"div",10)(77,"div",20)(78,"label",15),e.EFF(79),e.nI1(80,"translate"),e.k0s(),e.DNE(81,xr,5,4,"div",0)(82,Er,2,3,"div",16),e.k0s()()()(),e.j41(83,"div")(84,"div",9)(85,"div",10)(86,"div",11)(87,"label",12),e.EFF(88),e.nI1(89,"translate"),e.k0s(),e.j41(90,"div",13),e.EFF(91),e.nI1(92,"translate"),e.k0s()()(),e.j41(93,"div",10)(94,"div",20)(95,"label",15),e.EFF(96),e.nI1(97,"translate"),e.k0s(),e.DNE(98,Br,2,1,"label",21)(99,$r,1,6,"nx1-documents-upload",24)(100,jr,2,0,"button",19)(101,Mr,2,0,"button",19),e.j41(102,"button",25),e.bIt("click",function(){return o.signLetter()}),e.EFF(103),e.nI1(104,"translate"),e.k0s(),e.DNE(105,wr,3,4,"mat-checkbox",26)(106,Ar,3,5,"mat-checkbox",27),e.k0s()(),e.j41(107,"div",28)(108,"div",29),e.DNE(109,Pr,3,4,"button",30)(110,Gr,1,1,"mat-spinner",31),e.k0s()()()()()),2&r&&(e.Y8G("ngIf",e.bMT(1,43,o.isArchiveAccompanyingLetterDigitallySigned$)),e.R7$(7),e.Y8G("ngIf",o.controlContext),e.R7$(4),e.JRh(e.bMT(12,45,"str_Control_Tender_Buyer_232_DocumentSubmission_Title")),e.R7$(7),e.JRh(e.bMT(19,47,"str_Control_Tender_Buyer_232_DocumentSubmission_TenderDocuments")),e.R7$(3),e.SpI(" ",e.bMT(22,49,"str_Control_Tender_Buyer_232_DocumentSubmission_TenderDocuments_Hint")," "),e.R7$(5),e.JRh(e.bMT(27,51,"str_Control_Tender_Buyer_232_DocumentSubmission_Notice")),e.R7$(2),e.Y8G("ngIf",!o.isDecisionAndNoticeGenerating),e.R7$(),e.Y8G("ngIf",o.isDecisionAndNoticeGenerating),e.R7$(3),e.JRh(e.bMT(33,53,"str_Control_Tender_Buyer_232_DocumentSubmission_Decision")),e.R7$(2),e.Y8G("ngIf",!o.isDecisionAndNoticeGenerating),e.R7$(),e.Y8G("ngIf",o.isDecisionAndNoticeGenerating),e.R7$(2),e.Y8G("ngIf",!o.priorInformationNoticeDocument&&!o.decisionForStartingATenderingProcedureDocument),e.R7$(),e.Y8G("ngIf",(o.priorInformationNoticeDocument||o.decisionForStartingATenderingProcedureDocument)&&!o.archiveDocument),e.R7$(6),e.JRh(e.bMT(45,55,"str_Control_Tender_Buyer_232_DocumentSubmission_AdditionalDocuments")),e.R7$(3),e.SpI(" ",e.bMT(48,57,"str_Control_Tender_Buyer_232_DocumentSubmission_NoDocuments")," "),e.R7$(5),e.JRh(e.bMT(53,59,"str_Control_Tender_Buyer_232_DocumentSubmission_TechnicalSpecification")),e.R7$(2),e.Y8G("ngIf",o.technicalSpecificationDocument),e.R7$(),e.Y8G("ngIf",!o.technicalSpecificationDocument),e.R7$(),e.Y8G("ngIf",o.technicalSpecificationDocument),e.R7$(),e.Y8G("ngIf",o.technicalSpecificationDocument&&!o.archiveDocument),e.R7$(3),e.JRh(e.bMT(61,61,"str_Control_Tender_Buyer_232_DocumentSubmission_AwardMethod")),e.R7$(2),e.Y8G("ngIf",o.awardMethodDocument),e.R7$(),e.Y8G("ngIf",!o.awardMethodDocument),e.R7$(),e.Y8G("ngIf",o.awardMethodDocument),e.R7$(),e.Y8G("ngIf",o.awardMethodDocument&&!o.archiveDocument),e.R7$(6),e.JRh(e.bMT(72,63,"str_Control_Tender_Buyer_232_DocumentSubmission_DocumentsPackage")),e.R7$(3),e.SpI(" ",e.bMT(75,65,"str_Control_Tender_Buyer_232_DocumentSubmission_DocumentsPackage_Hint")," "),e.R7$(5),e.JRh(e.bMT(80,67,"str_Control_Tender_Buyer_232_DocumentSubmission_DocumentsPackage")),e.R7$(2),e.Y8G("ngIf",!o.isArchiveGenerating),e.R7$(),e.Y8G("ngIf",o.isArchiveGenerating),e.R7$(6),e.JRh(e.bMT(89,69,"str_Control_Tender_Buyer_232_DocumentSubmission_AccompanyingLetter")),e.R7$(3),e.SpI(" ",e.bMT(92,71,"str_Control_Tender_Buyer_232_DocumentSubmission_AccompanyingLetter_Hint")," "),e.R7$(5),e.JRh(e.bMT(97,73,"str_Control_Tender_Buyer_232_DocumentSubmission_AccompanyingLetter")),e.R7$(2),e.Y8G("ngIf",o.accompanyingLetterDocument),e.R7$(),e.Y8G("ngIf",!o.accompanyingLetterDocument),e.R7$(),e.Y8G("ngIf",o.accompanyingLetterDocument),e.R7$(),e.Y8G("ngIf",o.accompanyingLetterDocument&&o.accompanyingLetterDocumentDescriptor&&!o.accompanyingLetterDocumentDescriptor.IsSubmitted),e.R7$(),e.Y8G("disabled",!o.accompanyingLetterDocumentDescriptor||o.accompanyingLetterDocumentDescriptor&&o.accompanyingLetterDocumentDescriptor.IsManuallySigned),e.R7$(),e.SpI(" ",e.bMT(104,75,"str_Control_Tender_Buyer_232_DocumentSubmission_Sign")," "),e.R7$(2),e.Y8G("ngIf",!o.accompanyingLetterDocumentDescriptor),e.R7$(),e.Y8G("ngIf",o.accompanyingLetterDocumentDescriptor),e.R7$(3),e.Y8G("ngIf",!o.showSubmissionLoader),e.R7$(),e.Y8G("ngIf",o.showSubmissionLoader))},dependencies:[m.YU,m.bT,S.iV,N.NZ,k.wS,A.p,m.Jj,I.D9],styles:[".disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}"],changeDetection:0})}}return n})();var ae=_(97724);function Xr(n,i){1&n&&e.eu8(0)}function Vr(n,i){if(1&n&&(e.j41(0,"label",13),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" ",null==t.formDocument?null:t.formDocument.Name," ")}}function Or(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",14),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.downloadDocument())}),e.nrm(1,"i",15),e.k0s()}}function Lr(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",14),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.openSignaturesDialog())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"str_Control_Tender_Buyer_232_DocumentSubmit_Sign")," "))}function Yr(n,i){if(1&n){const t=e.RV6();e.j41(0,"span",16),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.openSignaturesDialog())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"str_Control_Tender_Buyer_232_DocumentSubmit_Signed")))}function Ur(n,i){if(1&n&&(e.j41(0,"div"),e.DNE(1,Vr,2,1,"label",10)(2,Or,2,0,"button",11)(3,Lr,3,3,"button",11)(4,Yr,3,3,"span",12),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.formDocument),e.R7$(),e.Y8G("ngIf",t.formDocument),e.R7$(),e.Y8G("ngIf",t.CanManage&&t.formDocumentDescriptor&&!t.formDocumentDescriptor.IsSubmitted),e.R7$(),e.Y8G("ngIf",t.CanManage&&t.formDocumentDescriptor&&t.formDocumentDescriptor.IsSubmitted&&!t.formDocumentDescriptor.IsManuallySigned)}}function Jr(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",20),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);
1return e.Njj(o.submitForm())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("disabled",!t.isFormDocumentDigitallySigned),e.R7$(),e.SpI(" ",e.bMT(2,2,"str_Control_Tender_Buyer_232_DocumentSubmit_Send")," ")}}function Kr(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",21),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.removeDocument())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"str_Control_Tender_Buyer_232_DocumentSubmit_Remove")," "))}function zr(n,i){1&n&&(e.j41(0,"div",22),e.nrm(1,"mat-spinner",23),e.k0s()),2&n&&(e.AVh("overlay-loading--show",!0),e.R7$(),e.Y8G("diameter",60))}function Qr(n,i){if(1&n&&(e.j41(0,"div",6),e.DNE(1,Jr,3,4,"button",17)(2,Kr,3,3,"button",18)(3,zr,2,3,"div",19),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",!t.isSubmitting),e.R7$(),e.Y8G("ngIf",!t.isSubmitting),e.R7$(),e.Y8G("ngIf",t.isSubmitting)}}function Hr(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",6)(1,"div",7),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",4),e.EFF(5),e.nI1(6,"nx1date"),e.k0s(),e.j41(7,"div",24),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.onCancelRegistrationForm())}),e.EFF(8),e.nI1(9,"translate"),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(2),e.SpI("",e.bMT(3,3,"str_Control_Tender_Buyer_232_DocumentSubmit_SubmittedOn")," "),e.R7$(3),e.SpI("",e.i5U(6,5,t.formDocumentDescriptor.SubmissionDateTime,"ShortDateTime")," "),e.R7$(3),e.SpI(" ",e.bMT(9,8,"str_Control_Tender_Buyer_232_DocumentSubmit_CancelRegistration")," ")}}function qr(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",5)(1,"label",7),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",25),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.openRegFormDialog(o.form))}),e.EFF(5),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(2),e.JRh(e.bMT(3,2,"str_Control_Tender_Buyer_232_DocumentSubmit_RssNumber")),e.R7$(3),e.JRh(t.form.RegistrationFormNumber)}}let Zr=(()=>{class n{constructor(t,r,o,s,d,a,p,u,b,C,v,D,x){this.controlService=t,this.documentService=r,this.viewContainerRef=o,this.dialogService=s,this.tenderStoreService=d,this.changeDetectorRef=a,this.router=p,this.route=u,this.routerStoreService=b,this.controlRelatedDocumentService=C,this.controlStoreService=v,this.notificationsService=D,this.tenderGuard=x,this.subscriptions=[]}get CanViewControlSection(){return this.tenderGuard.canViewTenderControlSection}get CanManage(){return this.tenderGuard.canManageTenderControlSection&&!!this.tenderControlData&&!1===this.tenderControlData.IsTenderPublished&&!this.tenderControlData.ControlContext232Id}ngOnInit(){this.isSubmitting=!1,this.subscriptions.push(this.tenderStoreService.getTenderControlData().subscribe(t=>this.tenderControlData=t)),this.loadData()}ngOnDestroy(){for(const t of this.subscriptions)t.unsubscribe()}downloadDocument(){const t=this.documentService.downloadDocumentById(this.formDocument.Id).subscribe(()=>{t.unsubscribe()})}removeDocument(){const t=this.controlService.removeRandomSelectionSystemRegistrationFormPdf(this.form.Id).subscribe(()=>{t.unsubscribe(),this.router.navigate(["/tender",this.tender.Id,"buyer","control","register"])})}onCancelRegistrationForm(){this.dialogService.confirm({confirmationType:"exclamation",titleKeyword:"str_Common_warning",textContentKeyword:"str_Control_232_Alert_DoYouWantToCancelRegistrationForm",cancelKeyword:"str_Common_cancel",okKeyword:"str_Common_yes",requirePassword:!1,showCheckbox:!1},!0).pipe((0,f.s)(1)).subscribe(t=>{t&&t.confirmed&&this.cancelRegistrationForm()})}openSignaturesDialog(){this.destroySignDocumentRef(),this.controlStoreService.loadControlDocumentSignatures(this.formDocument.Id);const t=new h.Pe;t.viewContainerRef=this.viewContainerRef,this.digitalSignaturesDialogComponent=this.dialogService.open(B.m,t),this.digitalSignaturesDialogComponent.componentInstance.pdfDocument=this.formDocument,this.digitalSignaturesDialogComponent.componentInstance.digitalSignaturesList$=this.controlStoreService.getCurrentControlDocumentDigitalSignatures(),this.digitalSignaturesDialogComponent.componentInstance.canManageSignatures=!this.formDocumentDescriptor.IsSubmitted,this.digitalSignaturesDialogComponent.componentInstance.isAlreadySigned$=this.controlStoreService.getIsControlDocumentAlreadySignedByCurrentUser(),this.digitalSignaturesDialogComponent.componentInstance.isLoadingSignatures$=this.controlStoreService.getIsLoadingSignatures(),this.digitalSignaturesDialogComponent.componentInstance.objectId=this.formDocumentDescriptor.Id,this.digitalSignaturesDialogComponent.componentInstance.objectGuid=this.formDocumentDescriptor.Guid,this.digitalSignaturesDialogComponent.componentInstance.entityId=this.formDocumentDescriptor.EntityId,this.digitalSignaturesDialogComponent.componentInstance.deleteConfirmationContentKeyword="str_DocumentEditor_delete_signature_confirmation_message",this.digitalSignaturesDialogComponent.componentInstance.signTitleKeyword="str_C
1ommon_sign",this.changeDetectorRef.markForCheck()}destroySignDocumentRef(){this.digitalSignaturesDialogComponent&&(this.digitalSignaturesDialogComponent.close(),this.digitalSignaturesDialogComponent=null)}submitForm(){this.isSubmitting=!0;const t=this.controlService.registerRandomSelectionSystemRegistrationForm(this.tender.Id).subscribe(r=>{t.unsubscribe(),this.loadData(),this.changeDetectorRef.markForCheck()})}loadData(){const t=this.tenderStoreService.getCurrentTender().subscribe(r=>{this.isSubmitting=!1,this.tender=r,this.tenderStoreService.loadTenderControlData(this.tender.Id),this.controlService.refreshTenderControlDataInTheStore(this.tender.Id);const o=this.controlService.getRandomSelectionSystemRegistrationFormByTenderId(this.tender.Id).subscribe(s=>{o.unsubscribe(),this.form=s;const d=this.documentService.getDocumentById(this.form.SignedPdfDocumentId).subscribe(a=>{d.unsubscribe(),this.formDocument=a;const p=this.controlRelatedDocumentService.getDescriptorByDocumentId(this.formDocument.Id).subscribe(u=>{p.unsubscribe(),this.formDocumentDescriptor=u,this.changeDetectorRef.markForCheck()});this.controlStoreService.loadControlDocumentSignatures(this.formDocument.Id),this.isFormDocumentDigitallySigned$=this.controlStoreService.getIsControlDocumentAlreadySignedByCurrentUser().pipe((0,y.M)(u=>{this.isFormDocumentDigitallySigned=u,this.changeDetectorRef.markForCheck()}))})})});this.subscriptions.push(t)}openRegFormDialog(t){const r=new h.Pe;r.viewContainerRef=this.viewContainerRef,this.controlRegFormViewRef=this.dialogService.open(ie,r),this.controlRegFormViewRef.componentInstance.regFInfo=t}isFormStatusAllowRegistrationCancellation(){return this.form?.Status===NX1.Model.Enums.RandomSelectionSystemRegistrationFormStatus.ParticipateForSelection}cancelRegistrationForm(){this.controlService.cancelRandomSelectionSystemRegistrationForm(this.tender.Id).pipe((0,f.s)(1)).subscribe(t=>{!0===t&&(this.notificationsService.open("str_Control_232_Message_RegistrationForControlIsCanceled"),this.tenderStoreService.loadTenderControlData(this.tender.Id),this.tenderStoreService.getTenderControlData().pipe((0,f.s)(1)).subscribe(r=>this.router.navigate(["/tender",this.tender.Id,"buyer","control"])))},t=>this.notificationsService.open("str_Control_ErrorDuringOperation"))}static{this.\u0275fac=function(r){return new(r||n)(e.rXU(l.het),e.rXU(l.DKw),e.rXU(e.c1b),e.rXU(h.o3),e.rXU(l.$gx),e.rXU(e.gRc),e.rXU(g.Ix),e.rXU(g.nX),e.rXU(l.o9Y),e.rXU(l.N$f),e.rXU(l.CFu),e.rXU(ae.I),e.rXU(R.U))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["nx1-tender-buyer-control232-form-document-submission"]],features:[e.Jv_([{provide:$.Q,useClass:j.Q}])],decls:21,vars:17,consts:[[4,"ngIf"],[1,"nxcard","margin--bottom-20","bg--white","z1"],[1,"border--bottom","nxcard__body-row"],[1,"break-word","nxcard__body-cell","overflow-hidden"],[1,"text--bold","text--20px"],[1,"break-word","col-md-4","col-xs-4","nxcard__body-cell","overflow-hidden"],[1,"col-md-4","col-xs-4","nxcard__body-cell"],[1,"profile-label"],["class","col-md-4 col-xs-4 nxcard__body-cell",4,"ngIf"],["class","break-word col-md-4 col-xs-4 nxcard__body-cell overflow-hidden",4,"ngIf"],["class","profile-value margin--bottom-5",4,"ngIf"],["mat-button","","color","primary","class","margin--left-10",3,"click",4,"ngIf"],["class","margin--left-10 link-text text--bold text--20px pointer",3,"click",4,"ngIf"],[1,"profile-value","margin--bottom-5"],["mat-button","","color","primary",1,"margin--left-10",3,"click"],[1,"mdi","mdi-download"],[1,"margin--left-10","link-text","text--bold","text--20px","pointer",3,"click"],["mat-button","","color","warn","class","margin--top-5",3,"disabled","click",4,"ngIf"],["mat-button","","color","primary","class","margin--top-5 margin--left-10",3,"click",4,"ngIf"],["class","overlay-loading",3,"overlay-loading--show",4,"ngIf"],["mat-button","","color","warn",1,"margin--top-5",3,"click","disabled"],["mat-button","","color","primary",1,"margin--top-5","margin--left-10",3,"click"],[1,"overlay-loading"],[3,"diameter"],[1,"common-link-button","text--rose-1","text--20px",3,"click"],[1,"text--bold","text--20px","link-text","pointer",3,"click"]],template:function(r,o){1&r&&(e.DNE(0,Xr,1,0,"ng-container",0),e.nI1(1,"async"),e.j41(2,"div",1)(3,"div",2)(4,"div",3)(5,"label",4),e.EFF(6),e.nI1(7,"translate"),e.k0s()()(),e.j41(8,"div",2)(9,"div",5),e.DNE(10,Ur,5,4,"div",0),e.k0s(),e.j41(11,"div",6)(12,"div",7),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"div",4),e.EFF(16),e.nI1(17,"nx1date"),e.k0s()(),e.DNE(18,Qr,4,3,"div",8)(19,Hr,10,10,"div",8)(20,qr,6,4,"div",9),e.k0s()()),2&r&&(e.Y8G("ngIf",e.bMT(1,8,o.isFormDocumentDigitallySigned$)),e.R7$(6),e.JRh(e.bMT(7,10,"str_Control_Tender_Buyer_232_DocumentSubmit_Page_Title")),e.R7$(4),e.Y8G("ngIf",o.formDocument),e.R7$(3),e.SpI("",e.bMT(14,12,"str_Control_Tender_Buyer_232_DocumentSubmit_GeneratedOn")," "),e.R7$(3),e.SpI("",e.i5U(17,14,null==o.formDocument?null:o.formDocument.CreatedDate,"ShortDateTime")," "),e.R7$(2),e.Y8G("ngIf",o.CanManage&&o.formDocumentDescriptor&&!o.formDocumentDescriptor.IsSubmitted),e.R7$(),e.Y8G("ngIf",o.CanManage&&o.formDocumentDescriptor&&o.formDocumentDescriptor.IsSubmitted&&o.isFormStatusAllowRegistrationCancellation()),e.R7$(),e.Y8G("ngIf",o.formDocumentDescriptor&&o.formDocumentDescriptor.IsSubmitted))},dependencies:[m.bT,S.iV,k.wS,m.Jj,I.D9,M.O],styles:["[_nghost-%COMP%]{display:block}.link-text[_ngcontent-%COMP%]{text-decoration:underline;color:#47abcc}.link-text[_ngcontent-%COMP%]:hover, .link-text[_ngcontent-%COMP%]:active, .link-text[_ngcontent-%COMP%]:focus{text-decoration:underline}.common-link-button[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;font-weight:400}.common-link-button[_ngcontent-%COMP%]:hover{font-weight:700}.disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}"],changeDetection:0})}}return n})();var Wr=_(25881),ei=_(53395);const J=(n,i)=>({"mdi-chevron-down":n,"mdi-chevron-up":i});
1function ti(n,i){if(1&n){const t=e.RV6();e.j41(0,"tr",19),e.bIt("click",function(){const o=e.eBV(t).$implicit,s=e.XpG(4);return e.Njj(s.redirectToSelectedControlContext235(o.Id))}),e.j41(1,"td",20),e.nrm(2,"div",21),e.k0s(),e.j41(3,"td",20),e.nrm(4,"div",21),e.nI1(5,"nx1EnumTranslate"),e.nI1(6,"translate"),e.k0s(),e.j41(7,"td",20),e.nrm(8,"div",21),e.nI1(9,"nx1EnumTranslate"),e.nI1(10,"translate"),e.k0s(),e.j41(11,"td",20)(12,"div"),e.EFF(13),e.nI1(14,"nx1date"),e.k0s()()()}if(2&n){const t=i.$implicit,r=i.index,o=i.last,s=e.XpG(4);e.AVh("no-border",o),e.R7$(2),e.Y8G("innerHTML",null==t?null:t.Number,e.npT),e.BMQ("id",s.getLabelId("Number",r)),e.R7$(2),e.Y8G("innerHTML",e.bMT(6,13,e.i5U(5,10,t.Phase,s.phase235Enum)),e.npT),e.BMQ("id",s.getLabelId("Phase",r)),e.R7$(4),e.Y8G("innerHTML",e.bMT(10,18,e.i5U(9,15,t.Status,s.statusEnum)),e.npT),e.BMQ("id",s.getLabelId("Stage",r)),e.R7$(4),e.BMQ("id",s.getLabelId("createdDate",r)),e.R7$(),e.SpI(" ",e.i5U(14,20,t.CreatedDate,"ShortDateTime")," ")}}function ni(n,i){if(1&n&&(e.j41(0,"tbody",17),e.DNE(1,ti,15,23,"tr",18),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("ngForOf",null==t.searchResult?null:t.searchResult.CurrentPageResults)}}function oi(n,i){if(1&n&&(e.qex(0),e.DNE(1,ni,2,1,"tbody",16),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.searchResult)}}function ri(n,i){1&n&&(e.j41(0,"div",22),e.nrm(1,"mat-spinner",23),e.k0s()),2&n&&(e.R7$(),e.Y8G("diameter",60))}function ii(n,i){if(1&n&&(e.j41(0,"div",25)(1,"div",26)(2,"figure",27),e.qSk(),e.j41(3,"svg",28),e.nrm(4,"circle",29),e.k0s(),e.joV(),e.nrm(5,"i",30),e.k0s(),e.j41(6,"h2",31),e.EFF(7),e.nI1(8,"translate"),e.k0s()()()),2&n){const t=e.XpG(3);e.R7$(6),e.BMQ("id",t.getLabelId("noResults")),e.R7$(),e.SpI(" ",e.bMT(8,2,"str_Admin_no_results")," ")}}function si(n,i){if(1&n&&(e.qex(0),e.DNE(1,ii,9,4,"div",24),e.bVm()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",0===(null==t.searchResult?null:t.searchResult.ResultsCount))}}function ci(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",32)(1,"div",33)(2,"div",34)(3,"div",35)(4,"nx1-pagination-counter-wrapper",36),e.bIt("pageChanged",function(o){e.eBV(t);const s=e.XpG(2);return e.Njj(s.onPaginationChanged(o))}),e.k0s()()()()()}if(2&n){const t=e.XpG(2);e.R7$(4),e.Y8G("startIndex",null==t.searchParameters?null:t.searchParameters.StartIndex)("endIndex",null==t.searchParameters?null:t.searchParameters.EndIndex)("totalItems",null==t.searchResult?null:t.searchResult.ResultsCount)}}function ai(n,i){if(1&n){const t=e.RV6();e.qex(0),e.nrm(1,"div",1),e.j41(2,"ng-scrollbar",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div")(7,"span",5),e.EFF(8),e.nI1(9,"translate"),e.k0s()()(),e.nrm(10,"div",6),e.k0s()(),e.j41(11,"div",7)(12,"table",8)(13,"thead",9)(14,"tr",10)(15,"th",11),e.nI1(16,"translate"),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.sort("Number"))}),e.j41(17,"a"),e.EFF(18),e.nI1(19,"translate"),e.k0s(),e.nrm(20,"i",12),e.k0s(),e.j41(21,"th",11),e.nI1(22,"translate"),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.sort("Phase"))}),e.j41(23,"a"),e.EFF(24),e.nI1(25,"translate"),e.k0s(),e.nrm(26,"i",12),e.k0s(),e.j41(27,"th",11),e.nI1(28,"translate"),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.sort("Status"))}),e.j41(29,"a"),e.EFF(30),e.nI1(31,"translate"),e.k0s(),e.nrm(32,"i",12),e.k0s(),e.j41(33,"th",13),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.sort("CreatedDate"))}),e.j41(34,"a"),e.EFF(35),e.nI1(36,"translate"),e.k0s(),e.nrm(37,"i",12),e.k0s()()(),e.DNE(38,oi,2,1,"ng-container",0),e.k0s(),e.DNE(39,ri,2,1,"div",14)(40,si,2,1,"ng-container",0),e.k0s(),e.DNE(41,ci,5,3,"div",15),e.k0s(),e.bVm()}if(2&n){const t=e.XpG();e.R7$(8),e.JRh(e.bMT(9,28,"str_Control_235_TenderBuyerList")),e.R7$(7),e.AVh("nxtable__header-title--selected",t.isSortActive("Number")),e.FS9("title",e.bMT(16,30,"str_Control_procedure_number")),e.BMQ("id",t.getLabelId("sortNumber")),e.R7$(3),e.JRh(e.bMT(19,32,"str_Control_procedure_number")),e.R7$(2),e.Y8G("ngClass",e.l_i(44,J,t.isSortActive("Number","desc"),t.isSortActive("Number","asc"))),e.R7$(),e.AVh("nxtable__header-title--selected",t.isSortActive("Phase")),e.FS9("title",e.bMT(22,34,"str_Control_Phase")),e.BMQ("id",t.getLabelId("sortPhase")),e.R7$(3),e.JRh(e.bMT(25,36,"str_Control_Phase")),e.R7$(2),e.Y8G("ngClass",e.l_i(47,J,t.isSortActive("Phase","desc"),t.isSortActive("Phase","asc"))),e.R7$(),e.AVh("nxtable__header-title--selected",t.isSortActive("Status")),e.FS9("title",e.bMT(28,38,"str_Common_status")),e.BMQ("id",t.getLabelId("Status")),e.R7$(3),e.JRh(e.bMT(31,40,"str_Common_status")),e.R7$(2),e.Y8G("ngClass",e.l_i(50,J,t.isSortActive("Status","de
1sc"),t.isSortActive("Status","asc"))),e.R7$(),e.AVh("nxtable__header-title--selected",t.isSortActive("CreatedDate")),e.BMQ("id",t.getLabelId("CreatedDate")),e.R7$(2),e.JRh(e.bMT(36,42,"str_Control_created_date")),e.R7$(2),e.Y8G("ngClass",e.l_i(53,J,t.isSortActive("CreatedDate","desc"),t.isSortActive("CreatedDate","asc"))),e.R7$(),e.Y8G("ngIf",!t.loading),e.R7$(),e.Y8G("ngIf",t.loading),e.R7$(),e.Y8G("ngIf",!t.loading),e.R7$(),e.Y8G("ngIf",!t.loading)}}let li=(()=>{class n extends F.$G{constructor(t,r,o,s,d,a,p){super(t),this.systemSettingsStoreService=r,this.changeDetectorRef=o,this.controlService=s,this.tenderStoreService=d,this.router=a,this.route=p,this.phase235Enum=NX1.Model.Enums.ControlContext235Phase,this.statusEnum=NX1.Model.Enums.ControlContextStatus,this.isInitialFilteringApplied=!1,this.loading=!0,this.searchParameters={StartIndex:1,OrderAscending:!1,OrderColumn:"CreatedDate",Filters:{}},this.searchResult=null,this.subscriptions=[],this.defaultEndIndex=10,this.initData={SystemSettings:null,TenderId:null}}ngOnInit(){this.direction=!0===this.searchParameters.OrderAscending?"asc":"desc",this.systemSettingsStoreService.getSystemSettings().pipe((0,f.s)(1)).subscribe(t=>{this.initData.SystemSettings=t,this.tryInitializeWithInitData()}),this.subscriptions.push(this.tenderStoreService.getCurrentTender().subscribe(t=>{this.initData.TenderId=t.Id,this.tryInitializeWithInitData()}))}ngOnDestroy(){for(const t of this.subscriptions)t.unsubscribe()}sort(t){this.direction=t&&t!==this.searchParameters.OrderColumn?!0===this.searchParameters.OrderAscending?"asc":"desc":"asc"===this.direction?"desc":"asc",this.searchParameters.OrderColumn=t,this.searchParameters.OrderAscending="asc"===this.direction,this.reloadSearchResult()}isSortActive(t,r){return r?this.searchParameters.OrderColumn===t&&this.direction===r:this.searchParameters.OrderColumn===t}onPaginationChanged(t){this.searchParameters.StartIndex=t.StartIndex,this.searchParameters.EndIndex=t.EndIndex,this.reloadSearchResult(!1)}onApplyFilters(t){this.searchParameters.Filters=t,this.reloadSearchResult()}onApplyInitialFilters(t){this.isInitialFilteringApplied=!0,this.onApplyFilters(t)}isInitDataLoaded(){for(const t of Object.keys(this.initData))if(null==this.initData[t])return!1;return!0}redirectToSelectedControlContext235(t){this.router.navigate(["/tender",this.searchParameters.Filters.TenderId,"buyer","control","selected235",t])}reloadSearchResult(t=!0){this.loading=!0,!0===t&&this.resetSearchParametersPageSize(),this.controlService.getTenderBuyerControlContext235GridData(this.searchParameters).pipe((0,f.s)(1)).subscribe(r=>{this.searchResult=r},r=>{},()=>{this.loading=!1,this.changeDetectorRef.markForCheck()})}tryInitializeWithInitData(){this.isInitDataLoaded()&&(this.searchParameters.Filters.TenderId=this.initData.TenderId,this.resetSearchParametersPageSize(),this.onApplyInitialFilters(this.searchParameters.Filters),this.changeDetectorRef.markForCheck())}resetSearchParametersPageSize(){this.searchParameters.StartIndex=1,this.searchParameters.EndIndex=this.initData.SystemSettings.TenderBuyerControlContexts235GridPageSize??this.defaultEndIndex}static{this.\u0275fac=function(r){return new(r||n)(e.rXU(e.c1b),e.rXU(Wr.d),e.rXU(e.gRc),e.rXU(l.het),e.rXU(l.$gx),e.rXU(g.Ix),e.rXU(g.nX))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["nx1-tender-buyer-control-235-list"]],features:[e.Vt3],decls:1,vars:1,consts:[[4,"ngIf"],[1,"nxcard","z1","bg--white","overflow-hidden","margin--bottom-20"],[1,"nxcard__header"],[1,"nxcard__header-title"],[1,"nxcard__header-title-content"],[1,"text--uppercase"],[1,"nxcard__header-options"],[1,"nxcard__body","nxcard__body--no-scroll"],[1,"nxtable","nxtable--scroll"],[1,"nxtable__header"],[1,"nxtable__header-row"],[1,"nxtable__header-title","nxtable__header-title--sortable","col-xs-2",3,"click","title"],[1,"mdi",3,"ngClass"],["title","\u0414\u0430\u0442\u0430 \u043d\u0430 \u0441\u044a\u0437\u0434\u0430\u0432\u0430\u043d\u0435",1,"nxtable__header-title","nxtable__header-title--sortable","col-xs-2",3,"click"],["class","display--flex content-center","style","padding: 60px;",4,"ngIf"],["class","nxcard__footer nxcard__body-row",4,"ngIf"],["class","nxtable__body nxtable__body--no-scroll",4,"ngIf"],[1,"nxtable__body","nxtable__body--no-scroll"],["class","nxtable__body-row pointer",3,"no-border","click",4,"ngFor","ngForOf"],[1,"nxtable__body-row","pointer",3,"click"],[1,"nxtable__body-cell","col-xs-2"],[3,"innerHTML"],[1,"display--flex","content-center",2,"padding","60px"],[3,"diameter"],["class","no-contents-container text--center text--grey30 no-contents--animate",4,"ngIf"],[1,"no-contents-container","text--center","text--grey30","no-contents--animate"],[1,"align--center","display--flex","flex-column"],["data-percent","100",1,"chart"],["width","110","height","110"],["cx","55","cy","55","r","50","transform","rotate(-90 55 55)",1,"outer"],[1,"mdi","mdi-domain"],[1,"text--bold","margin--bottom-10"],[1,"nxcard__footer","nxcard__body-row"],[1,"col-xs-12","nxcard__body-cell","no-border","padding--0"],[1,"nxcard__body-row"],[1,"col-xs-12","nxcard__body-cell","no-border","display--flex","content-center","padding--0"],[1,"display--flex","margin--top-10","margin--bottom-5","col","bg--white",3,"pageChanged","startIndex","endIndex","totalItems"]],template:function(r,o){1&r&&e.DNE(0,ai,42,56,"ng-container",0),2&r&&e.Y8G("ngIf",o.isInitDataLoaded())},dependencies:[m.YU,m.Sq,m.bT,k.wS,G.Yh,ei.X,I.D9,T.R9,M.O]})}}return n})();var P=_(25558),le=_(96354),de=_(64913),ue=_(44758);let me=(()=>
1{class n{static{this.UpdateControl233FormTenderBuyerMnemonic="UpdateControl233FormTenderBuyer"}constructor(t,r,o,s){this.controlService=t,this.tenderGuard=r,this.principalPermissionService=o,this.router=s}canActivate(t,r){return this.controlService.getControlContext233ByTenderId(this.tenderGuard.tenderId).pipe((0,f.s)(1),(0,P.n)(o=>this.principalPermissionService.hasPermissions(this.principalPermissionService.getActionsToCheck([n.UpdateControl233FormTenderBuyerMnemonic],o.EntityId,o.Guid))),(0,y.M)(o=>{this.canUpdateControl233FormTenderbuyer=o[n.UpdateControl233FormTenderBuyerMnemonic]}),(0,le.T)(()=>this.canUpdateControl233FormTenderbuyer),(0,y.M)(o=>{o||this.router.navigate([""])}))}static{this.\u0275fac=function(r){return new(r||n)(e.KVO(de.h),e.KVO(R.U),e.KVO(ue.N),e.KVO(g.Ix))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac})}}return n})(),_e=(()=>{class n{static{this.UpdateControl235FormTenderBuyerMnemonic="UpdateControl235FormTenderBuyer"}constructor(t,r,o,s){this.controlService=t,this.tenderGuard=r,this.principalPermissionService=o,this.router=s}canActivate(t,r){return this.controlService.getControlContext235ByTenderId(this.tenderGuard.tenderId).pipe((0,f.s)(1),(0,P.n)(o=>this.principalPermissionService.hasPermissions(this.principalPermissionService.getActionsToCheck([n.UpdateControl235FormTenderBuyerMnemonic],o.EntityId,o.Guid))),(0,y.M)(o=>{this.canUpdateControl235FormTenderbuyer=o[n.UpdateControl235FormTenderBuyerMnemonic]}),(0,le.T)(()=>this.canUpdateControl235FormTenderbuyer),(0,y.M)(o=>{o||this.router.navigate([""])}))}static{this.\u0275fac=function(r){return new(r||n)(e.KVO(de.h),e.KVO(R.U),e.KVO(ue.N),e.KVO(g.Ix))}}static{this.\u0275prov=e.jDH({token:n,factory:n.\u0275fac})}}return n})();function di(n,i){if(1&n&&(e.j41(0,"div",21)(1,"span"),e.EFF(2),e.k0s()()),2&n){const t=i.$implicit;e.R7$(2),e.JRh(t)}}function ui(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",42)(1,"label"),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",43)(5,"div",44)(6,"input",45),e.bIt("keyup",function(o){e.eBV(t);const s=e.XpG(3);return e.Njj(s.onCheckEmail(o.target.value))}),e.k0s()(),e.j41(7,"div",46)(8,"button",27),e.bIt("click",function(){const o=e.eBV(t).index,s=e.XpG(3);return e.Njj(s.deleteEmail(o))}),e.nrm(9,"i",47),e.k0s()()()()}2&n&&(e.Y8G("formGroupName",i.index),e.R7$(2),e.SpI("",e.bMT(3,2,"str_Control_Tender_Buyer_232_Submit_Page_Emails_Additional"),":"))}function mi(n,i){1&n&&(e.j41(0,"div",48),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"str_Control_Tender_Buyer_232_Submit_Page_Emails_Invalid")))}function _i(n,i){if(1&n&&(e.j41(0,"div",21)(1,"span"),e.EFF(2),e.k0s()()),2&n){const t=i.$implicit;e.R7$(2),e.JRh(t.Text)}}function pi(n,i){if(1&n&&(e.j41(0,"div")(1,"div",17)(2,"div",18)(3,"label",49),e.EFF(4),e.nI1(5,"translate"),e.k0s()(),e.j41(6,"div",30)(7,"div",21),e.EFF(8),e.nI1(9,"nx1EnumTranslate"),e.nI1(10,"translate"),e.k0s(),e.j41(11,"div",23),e.EFF(12),e.nI1(13,"translate"),e.k0s()()(),e.j41(14,"div",17)(15,"div",18)(16,"label",19),e.EFF(17),e.nI1(18,"translate"),e.k0s()(),e.j41(19,"div",30)(20,"div",21),e.EFF(21),e.nI1(22,"lowercase"),e.nI1(23,"translate"),e.k0s(),e.j41(24,"div",23),e.EFF(25),e.nI1(26,"translate"),e.k0s()()()()),2&n){let t,r;const o=i.$implicit,s=e.XpG().ngIf,d=e.XpG(2);e.R7$(4),e.SpI("II. ",e.bMT(5,6,"str_Control_Tender_Buyer_232_Submit_Page_TenderBuer_Type"),""),e.R7$(4),e.SpI(" ",e.bMT(10,11,e.i5U(9,8,null==(t=d.getContractingAuthorityTypeById(o,null==s||null==s.ResultObject?null:s.ResultObject.ContractingAuthorityTypeId))?null:t.ActivityTypeGroup,d.activityTypeGroupEnum))," "),e.R7$(4),e.JRh(e.bMT(13,13,null==s||null==s.ResultObject?null:s.ResultObject.ContractingAuthorityTypeIdHintKeyword)),e.R7$(5),e.SpI("III. ",e.bMT(18,15,"str_Control_registration_form_contracting_authority_status"),""),e.R7$(4),e.SpI(" ",e.bMT(23,19,"str_Contractingauthoritytypes_"+e.bMT(22,17,null==(r=d.getContractingAuthorityTypeById(o,null==s||null==s.ResultObject?null:s.ResultObject.ContractingAuthorityTypeId))?null:r.Mnemonic))," "),e.R7$(4),e.JRh(e.bMT(26,21,null==s||null==s.ResultObject?null:s.ResultObject.ContractingAuthorityTypeIdHintKeyword))}}
1function gi(n,i){if(1&n&&(e.j41(0,"option",53),e.EFF(1),e.nI1(2,"nx1EnumTranslate"),e.nI1(3,"translate"),e.k0s()),2&n){const t=i.$implicit,r=e.XpG(4);e.Y8G("value",t.value),e.R7$(),e.SpI(" ",e.bMT(3,5,e.i5U(2,2,t.value,r.fundingSourceEnum))," ")}}function hi(n,i){1&n&&(e.j41(0,"div",48),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"str_Control_Tender_Buyer_232_Submit_Page_FundingSource_Hint")," "))}function bi(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",30)(1,"select",50),e.bIt("change",function(o){e.eBV(t);const s=e.XpG(3);return e.Njj(s.onChangeFundingSource(o.target.value))}),e.DNE(2,gi,4,7,"option",51),e.nI1(3,"nx1Enums"),e.k0s(),e.DNE(4,hi,3,3,"div",29),e.nrm(5,"nx1-form-control-messages",52),e.k0s()}if(2&n){const t=e.XpG(3);e.R7$(2),e.Y8G("ngForOf",e.i5U(3,4,t.fundingSourceEnum,!0)),e.R7$(2),e.Y8G("ngIf",t.showFundingSourceValidation),e.R7$(),e.Y8G("parentId",t.getId("FundingSource"))("control",t.FundingSource)}}function Ci(n,i){if(1&n&&(e.j41(0,"div",30)(1,"div",21),e.EFF(2),e.nI1(3,"nx1EnumTranslate"),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",23),e.EFF(6),e.nI1(7,"translate"),e.k0s()()),2&n){const t=e.XpG().ngIf,r=e.XpG(2);e.R7$(2),e.SpI(" ",e.bMT(4,5,e.i5U(3,2,null==t||null==t.ResultObject?null:t.ResultObject.FundingSource,r.fundingSourceEnum))," "),e.R7$(4),e.JRh(e.bMT(7,7,null==t||null==t.ResultObject?null:t.ResultObject.FundingSourceHintKeyword))}}function fi(n,i){if(1&n&&(e.j41(0,"option",53),e.EFF(1),e.k0s()),2&n){const t=i.$implicit;e.FS9("value",t.Id),e.R7$(),e.SpI(" ",null==t?null:t.Mnemonic," ")}}function vi(n,i){1&n&&(e.j41(0,"div",48),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"str_Control_Tender_Buyer_232_Submit_Page_FundingProgram_Hint")," "))}function Di(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",30)(1,"select",54),e.bIt("change",function(o){e.eBV(t);const s=e.XpG(4);return e.Njj(s.onChangeFundingProgram(o.target.value))}),e.DNE(2,fi,2,2,"option",51),e.nI1(3,"async"),e.k0s(),e.DNE(4,vi,3,3,"div",29),e.nrm(5,"nx1-form-control-messages",52),e.k0s()}if(2&n){const t=e.XpG(4);e.R7$(2),e.Y8G("ngForOf",e.bMT(3,4,t.fundingPrograms$)),e.R7$(2),e.Y8G("ngIf",t.showFundingProgramValidation),e.R7$(),e.Y8G("parentId",t.getId("FundingProgramId"))("control",t.FundingProgramId)}}function Ii(n,i){if(1&n&&(e.j41(0,"div",30)(1,"div",21),e.EFF(2),e.k0s()()),2&n){const t=e.XpG(4);e.R7$(2),e.SpI(" ",null==t.fundingProgram?null:t.fundingProgram.Mnemonic," ")}}function Si(n,i){if(1&n&&(e.j41(0,"div",17)(1,"div",18)(2,"label",19),e.EFF(3),e.nI1(4,"translate"),e.k0s()(),e.DNE(5,Di,6,6,"div",32)(6,Ii,3,1,"ng-template",null,6,e.C5r),e.k0s()),2&n){const t=e.sdS(7),r=e.XpG().ngIf;e.R7$(3),e.SpI("IXa. ",e.bMT(4,3,"str_Control_funding_program"),""),e.R7$(2),e.Y8G("ngIf",null===(null==r||null==r.ResultObject?null:r.ResultObject.FundingProgramId))("ngIfElse",t)}}function yi(n,i){if(1&n&&(e.qex(0),e.j41(1,"div",21),e.EFF(2),e.nI1(3,"nx1EnumTranslate"),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",23),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.bVm()),2&n){const t=e.XpG().ngIf,r=e.XpG(2);e.R7$(2),e.SpI(" ",e.bMT(4,5,e.i5U(3,2,null==t||null==t.ResultObject?null:t.ResultObject.AwardMethod,r.awardMethodEnum))," "),e.R7$(4),e.JRh(e.bMT(7,7,null==t||null==t.ResultObject?null:t.ResultObject.AwardMethodHintKeyword))}}function Ti(n,i){if(1&n&&(e.j41(0,"option",57),e.EFF(1),e.nI1(2,"nx1EnumTranslate"),e.nI1(3,"translate"),e.k0s()),2&n){const t=i.$implicit,r=e.XpG(4);e.Y8G("value",t.value),e.R7$(),e.SpI(" ",e.bMT(3,5,e.i5U(2,2,t.value,r.awardMethodEnum))," ")}}function Fi(n,i){if(1&n&&(e.j41(0,"select",55),e.DNE(1,Ti,4,7,"option",56),e.nI1(2,"nx1Enums"),e.k0s(),e.nrm(3,"nx1-form-control-messages",52)),2&n){const t=e.XpG(3);e.Y8G("formControl",t.AwardMethodControl),e.R7$(),e.Y8G("ngForOf",e.i5U(2,4,t.awardMethodEnum,!0)),e.R7$(2),e.Y8G("parentId",t.getId("AwardMethod"))("control",t.AwardMethodControl)}}function Ri(n,i){if(1&n&&(e.j41(0,"div")(1,"span"),e.EFF(2),e.k0s()()),2&n){const t=i.$implicit;e.R7$(2),e.JRh(t.Keyword)}}function ki(n,i){if(1&n&&(e.qex(0),e.j41(1,"div",21),e.EFF(2),e.nI1(3,"nx1EnumTranslate"),e.nI1(4,"translate"),e.k0s(),e.bVm()),2&n){const t=e.XpG().ngIf,r=e.XpG(2);e.R7$(2),e.SpI(" ",e.bMT(4,4,e.i5U(3,1,null==t||null==t.ResultObject?null:t.ResultObject.Renewal,r.renewalEnum))," ")}}
1function xi(n,i){if(1&n&&(e.j41(0,"option",57),e.EFF(1),e.nI1(2,"nx1EnumTranslate"),e.nI1(3,"translate"),e.k0s()),2&n){const t=i.$implicit,r=e.XpG(4);e.Y8G("value",t.value),e.R7$(),e.SpI(" ",e.bMT(3,5,e.i5U(2,2,t.value,r.renewalEnum))," ")}}function Ei(n,i){if(1&n&&(e.j41(0,"select",55),e.DNE(1,xi,4,7,"option",56),e.nI1(2,"nx1Enums"),e.k0s(),e.nrm(3,"nx1-form-control-messages",52)),2&n){const t=e.XpG(3);e.Y8G("formControl",t.RenewalControl),e.R7$(),e.Y8G("ngForOf",e.i5U(2,4,t.renewalEnum,!0)),e.R7$(2),e.Y8G("parentId",t.getId("Renewal"))("control",t.RenewalControl)}}function Bi(n,i){if(1&n&&(e.qex(0),e.j41(1,"div",21),e.EFF(2),e.nI1(3,"nx1EnumTranslate"),e.nI1(4,"translate"),e.k0s(),e.bVm()),2&n){const t=e.XpG().ngIf,r=e.XpG(2);e.R7$(2),e.SpI(" ",e.bMT(4,4,e.i5U(3,1,null==t||null==t.ResultObject?null:t.ResultObject.Options,r.optionsEnum))," ")}}function $i(n,i){if(1&n&&(e.j41(0,"option",57),e.EFF(1),e.nI1(2,"nx1EnumTranslate"),e.nI1(3,"translate"),e.k0s()),2&n){const t=i.$implicit,r=e.XpG(4);e.Y8G("value",t.value),e.R7$(),e.SpI(" ",e.bMT(3,5,e.i5U(2,2,t.value,r.optionsEnum))," ")}}function ji(n,i){if(1&n&&(e.j41(0,"select",55),e.DNE(1,$i,4,7,"option",56),e.nI1(2,"nx1Enums"),e.k0s(),e.nrm(3,"nx1-form-control-messages",52)),2&n){const t=e.XpG(3);e.Y8G("formControl",t.OptionsControl),e.R7$(),e.Y8G("ngForOf",e.i5U(2,4,t.optionsEnum,!0)),e.R7$(2),e.Y8G("parentId",t.getId("Options"))("control",t.OptionsControl)}}function Mi(n,i){if(1&n&&(e.qex(0),e.j41(1,"div",21),e.EFF(2),e.nI1(3,"nx1EnumTranslate"),e.nI1(4,"translate"),e.k0s(),e.bVm()),2&n){const t=e.XpG().ngIf,r=e.XpG(2);e.R7$(2),e.SpI(" ",e.bMT(4,4,e.i5U(3,1,null==t||null==t.ResultObject?null:t.ResultObject.Acceleration,r.accelerationEnum))," ")}}function wi(n,i){if(1&n&&(e.j41(0,"option",57),e.EFF(1),e.nI1(2,"nx1EnumTranslate"),e.nI1(3,"translate"),e.k0s()),2&n){const t=i.$implicit,r=e.XpG(4);e.Y8G("value",t.value),e.R7$(),e.SpI(" ",e.bMT(3,5,e.i5U(2,2,t.value,r.accelerationEnum))," ")}}function Ai(n,i){if(1&n&&(e.j41(0,"select",55),e.DNE(1,wi,4,7,"option",56),e.nI1(2,"nx1Enums"),e.k0s(),e.nrm(3,"nx1-form-control-messages",52)),2&n){const t=e.XpG(3);e.Y8G("formControl",t.AccelerationControl),e.R7$(),e.Y8G("ngForOf",e.i5U(2,4,t.accelerationEnum,!0)),e.R7$(2),e.Y8G("parentId",t.getId("Acceleration"))("control",t.AccelerationControl)}}function Pi(n,i){if(1&n&&(e.qex(0),e.j41(1,"div",21),e.EFF(2),e.nI1(3,"nx1EnumTranslate"),e.nI1(4,"translate"),e.k0s(),e.bVm()),2&n){const t=e.XpG().ngIf,r=e.XpG(2);e.R7$(2),e.SpI(" ",e.bMT(4,4,e.i5U(3,1,null==t||null==t.ResultObject?null:t.ResultObject.Duration,r.durationEnum))," ")}}function Gi(n,i){if(1&n&&(e.j41(0,"option",57),e.EFF(1),e.nI1(2,"nx1EnumTranslate"),e.nI1(3,"translate"),e.k0s()),2&n){const t=i.$implicit,r=e.XpG(4);e.Y8G("value",t.value),e.R7$(),e.SpI(" ",e.bMT(3,5,e.i5U(2,2,t.value,r.durationEnum))," ")}}function Ni(n,i){if(1&n&&(e.j41(0,"select",55),e.DNE(1,Gi,4,7,"option",56),e.nI1(2,"nx1Enums"),e.k0s(),e.nrm(3,"nx1-form-control-messages",52)),2&n){const t=e.XpG(3);e.Y8G("formControl",t.DurationControl),e.R7$(),e.Y8G("ngForOf",e.i5U(2,4,t.durationEnum,!0)),e.R7$(2),e.Y8G("parentId",t.getId("Duration"))("control",t.DurationControl)}}function Xi(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",38)(1,"button",27),e.bIt("click",function(){e.eBV(t);const o=e.XpG().ngIf,s=e.XpG(2);return e.Njj(s.sendRegForm(null==o?null:o.ResultObject))}),e.nrm(2,"i",58),e.EFF(3),e.nI1(4,"translate"),e.k0s()()}2&n&&(e.R7$(3),e.SpI(" ",e.bMT(4,1,"str_Control_Tender_Buyer_232_Submit_Page_Button")," "))}function Vi(n,i){if(1&n&&(e.j41(0,"div",59),e.nrm(1,"mat-spinner",60),e.k0s()),2&n){const t=e.XpG(3);e.AVh("overlay-loading--show",t.showOverlay),e.R7$(),e.Y8G("diameter",60)}}function Oi(n,i){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"div",8)(2,"div",9)(3,"div",10)(4,"h2",11),e.EFF(5),e.nI1(6,"translate"),e.k0s()()()(),e.j41(7,"form",12)(8,"div",13)(9,"div",14)(10,"div",15)(11,"div",16)(12,"span"),e.EFF(13),e.nI1(14,"translate"),e.k0s()()()(),e.j41(15,"div",17)(16,"div",18)(17,"label",19),e.EFF(18),e.nI1(19,"translate"),e.k0s()(),e.j41(20,"div",20)(21,"div",21),e.EFF(22),e.k0s(),e.j41(23,"div",22),e.EFF(24),e.nI1(25,"translate"),e.k0s()()(),e.j41(26,"div",17)(27,"div",18)(28,"label",19),e.EFF(29),e.nI1(30,"translate"),e.k0s()(),e.j41(31,"div",20)(32,"div",21),e.EFF(33),e.k0s(),e.j41(34,"div",23),e.
1EFF(35),e.nI1(36,"translate"),e.k0s()()(),e.j41(37,"div",17)(38,"div",18)(39,"label",19),e.EFF(40),e.nI1(41,"translate"),e.k0s()(),e.j41(42,"div",20)(43,"div",21),e.EFF(44),e.k0s(),e.j41(45,"div",23),e.EFF(46),e.nI1(47,"translate"),e.k0s()()(),e.j41(48,"div",17)(49,"div",18)(50,"label",19),e.EFF(51),e.nI1(52,"translate"),e.k0s()(),e.j41(53,"div",20),e.DNE(54,di,3,1,"div",24),e.j41(55,"div",23),e.EFF(56),e.nI1(57,"translate"),e.k0s(),e.j41(58,"div",25),e.DNE(59,ui,10,4,"div",26),e.j41(60,"button",27),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.addEmail())}),e.nrm(61,"i",28),e.k0s(),e.DNE(62,mi,3,3,"div",29),e.k0s()()(),e.j41(63,"div",17)(64,"div",18)(65,"label",19),e.EFF(66),e.nI1(67,"translate"),e.k0s()(),e.j41(68,"div",20),e.DNE(69,_i,3,1,"div",24),e.j41(70,"div",23),e.EFF(71),e.nI1(72,"translate"),e.k0s()()()(),e.j41(73,"div",13),e.DNE(74,pi,27,23,"div",7),e.nI1(75,"async"),e.j41(76,"div",17)(77,"div",18)(78,"label",19),e.EFF(79),e.nI1(80,"translate"),e.k0s()(),e.j41(81,"div",30)(82,"div",21),e.EFF(83),e.nI1(84,"nx1EnumTranslate"),e.nI1(85,"translate"),e.k0s(),e.j41(86,"div",23),e.EFF(87),e.nI1(88,"translate"),e.k0s()()(),e.j41(89,"div",17)(90,"div",18)(91,"label",19),e.EFF(92),e.nI1(93,"translate"),e.k0s()(),e.j41(94,"div",30)(95,"div",21),e.EFF(96),e.nI1(97,"nx1EnumTranslate"),e.nI1(98,"translate"),e.k0s(),e.j41(99,"div",23),e.EFF(100),e.nI1(101,"translate"),e.k0s()()(),e.j41(102,"div",17)(103,"div",18)(104,"label",19),e.EFF(105),e.nI1(106,"translate"),e.k0s()(),e.j41(107,"div",31),e.EFF(108),e.nI1(109,"nx1EnumTranslate"),e.nI1(110,"translate"),e.k0s()(),e.j41(111,"div",17)(112,"div",18)(113,"label",19),e.EFF(114),e.nI1(115,"translate"),e.k0s()(),e.j41(116,"div",31),e.EFF(117),e.j41(118,"div",23),e.EFF(119),e.nI1(120,"translate"),e.k0s()()(),e.j41(121,"div",17)(122,"div",18)(123,"label",19),e.EFF(124),e.nI1(125,"translate"),e.k0s()(),e.j41(126,"div",31),e.EFF(127),e.nI1(128,"nx1EnumTranslate"),e.nI1(129,"translate"),e.k0s()(),e.j41(130,"div",17)(131,"div",18)(132,"label",19),e.EFF(133),e.nI1(134,"translate"),e.k0s()(),e.DNE(135,bi,6,7,"div",32)(136,Ci,8,9,"ng-template",null,0,e.C5r),e.k0s(),e.DNE(138,Si,8,5,"div",33),e.j41(139,"div",17)(140,"div",18)(141,"label",19),e.EFF(142),e.nI1(143,"translate"),e.k0s()(),e.j41(144,"div",30),e.DNE(145,yi,8,9,"ng-container",34)(146,Fi,4,7,"ng-template",null,1,e.C5r),e.k0s()(),e.j41(148,"div",17)(149,"div",18)(150,"label",19),e.EFF(151),e.nI1(152,"translate"),e.k0s()(),e.j41(153,"div",30)(154,"div",21),e.DNE(155,Ri,3,1,"div",35),e.k0s(),e.j41(156,"div",23),e.EFF(157),e.nI1(158,"translate"),e.k0s()()(),e.j41(159,"div",17)(160,"div",18)(161,"label",19),e.EFF(162),e.nI1(163,"translate"),e.k0s()(),e.j41(164,"div",30),e.DNE(165,ki,5,6,"ng-container",34)(166,Ei,4,7,"ng-template",null,2,e.C5r),e.k0s()(),e.j41(168,"div",17)(169,"div",18)(170,"label",19),e.EFF(171),e.nI1(172,"translate"),e.k0s()(),e.j41(173,"div",30),e.DNE(174,Bi,5,6,"ng-container",34)(175,ji,4,7,"ng-template",null,3,e.C5r),e.k0s()(),e.j41(177,"div",17)(178,"div",18)(179,"label",19),e.EFF(180),e.nI1(181,"translate"),e.k0s()(),e.j41(182,"div",30),e.DNE(183,Mi,5,6,"ng-container",34)(184,Ai,4,7,"ng-template",null,4,e.C5r),e.k0s()(),e.j41(186,"div",17)(187,"div",18)(188,"label",19),e.EFF(189),e.nI1(190,"translate"),e.k0s()(),e.j41(191,"div",30),e.DNE(192,Pi,5,6,"ng-container",36)(193,Ni,4,7,"ng-template",null,5,e.C5r),e.k0s()(),e.j41(195,"div",17)(196,"div",18)(197,"label",19),e.EFF(198),e.nI1(199,"translate"),e.k0s()(),e.j41(200,"div",31),e.EFF(201),e.nI1(202,"nx1EnumTranslate"),e.nI1(203,"translate"),e.k0s()(),e.j41(204,"div",37)(205,"div",38)(206,"div",39),e.EFF(207),e.nI1(208,"translate"),e.k0s()(),e.DNE(209,Xi,5,3,"div",40)(210,Vi,2,3,"div",41),e.k0s()()()()}if(2&n){const t=i.ngIf,r=e.sdS(137),o=e.sdS(147),s=e.sdS(167),d=e.sdS(176),a=e.sdS(185),p=e.sdS(194),u=e.XpG(2);e.R7$(5),e.SpI(" ",e.bMT(6,60,"str_Control_Tender_Buyer_232a_Submit_Page_Title")," "),e.R7$(2),e.Y8G("formGroup",u.controlForm),e.R7$(6),e.SpI("I. ",e.bMT(14,62,"str_Control_registration_form_identification"),""),e.R7$(5),e.SpI("1. ",e.bMT(19,64,"str_Control_Tender_Buyer_232_Submit_Page_TenderBuyer_Name"),""),e.R7$(4),e.JRh(null==t||null==t.ResultObject?null:t.ResultObject.ContractingAuthorityName),e.R7$(2),e.JRh(e.bMT(25,66,null==t||null==t.ResultObject?null:t.ResultObject.ContractingAuthorityNameHintKeyword)),e.R7$(5),e.SpI("2. ",e.bMT(30,68,"str_Control_Tender_Buyer_232_Submit_Page_TenderBuyer_BatchNumber"),""),e.R7$(4),e.JRh(null==t||null==t.ResultObject?null:t.ResultObject.ContractingAuthorityBatchNumber),e.R7$(2),e.JRh(e.bMT(36,70,null==t||null==t.ResultObject?null:t.ResultObject.ContractingAuthorityBatchNumberHintKeyword)),e.R7$(5),e.SpI("3. ",e.bMT(41,72,"str_Control_Tender_Buyer_232_Submit_Page_Tender_Subject")," "),e.R7$(4),e.JRh(null==t||null==t.ResultObject?null:t.ResultObject.TenderSubject),e.R7$(2),e.JRh(e.bMT(47,74,null==t||null==t.ResultObject?null:t.ResultObject.TenderSubjectHintKeyword)),e.R7$(5),e.SpI("4. ",e.bMT(52,76,"str_Control_Tender_Buyer_232_Submit_Page_Emails"),""),e.R7$(3),e.Y8G("ngForOf",null==t||null==t.ResultObject?null:t.ResultObject.EmailAddressesList),e.R7$(2),e.JRh(e.bMT(57,78,null==t||null==t.ResultObject?null:t.ResultObject.EmailAddressesListHintKeyword)),e.R7$(3),e.Y8G("ngForOf",u.emails.controls),e.R7$(3),e.Y8G("ngIf",!u.emailValid||!u.checkEmailsValidation()),e.R7$(4),e.SpI("5. ",e.bMT(67,80,"str_Control_professional_fields"),""),e.R7$(3),e.Y8G("ngForOf",null==t||null==t.ResultObject?null:t.ResultObject.RegistrationFormProfessionalFields),e.R7$(2),e.JRh(e.bMT(72,82,null==t||null==t.ResultObject?null:t.ResultObject.RegistrationFormProfessionalFieldsHintKeyword)),e.R7$(3),e.Y8G("ngIf",e.bMT(75,84,u.contractingAuthorityTypes$)),e.R7$(5),e.SpI("IV. ",e.bMT(80,86,"str_Control_Tender_Buyer_232_Submit_Page_Tender_ProcedureType"),""),e.R7$(4),e.SpI(" ",e.bMT(85,91,e.i5U(84,88,null==t||null==t.ResultObject?null:t.ResultObject.ProcedureType,u.procedureTypeEnum))," "),e.R7$(4),e.JRh(e.bMT(88,93,null==t||null==t.ResultObject?null:t.ResultObject.ProcedureTypeHintKeyword)),e.R7$(5),e.SpI("V. ",e.bMT(93,95,"str_Control_rssForm_pdf_TypeOfContract"),""),e.R7$(4),e.SpI(" ",e.bMT(98,100,e.i5U(97,97,null==t||null==t.ResultObject?null:t.ResultObject.TypeOfContract,u.typeOfContractEnum))," "),e.R7$(4),e.JRh(e.bMT(101,102,null==t||null==t.ResultObject?null:t.ResultObject.TypeOfContractHintKeyword)),e.R7$(5),e.SpI("VI. ",e.bMT(106,104,"str_Control_Tender_Buyer_232_Submit_Page_Tender_EstimatedValue"),""),e.R7$(3),e.SpI(" ",e.bMT(110,109,e.i5U(109,106,null==t||null==t.ResultObject?null:t.ResultObject.EstimatedValueThreshold,u.estimatedValueThresholdEnum))," "),e.R7$(6),e.SpI("VII. ",e.bMT(115,111,"str_Control_Tender_Buyer_232_Submit_Page_Tender_EstimatedValue"),""),e.R7$(3),e.SpI(" ",null==t||null==t.ResultObject?null:t.ResultObject.EstimatedValue," "),e.R7$(2),e.SpI(" ",e.bMT(120,113,null==t||null==t.ResultObject?null:t.ResultObject.EstimatedValueHintKeyword)," "),e.R7$(5),e.SpI("VIII. ",e.bMT(125,115,"str_Control_Tender_Buyer_232_Submit_Page_Tender_Currency"),""),e.R7$(3),e.SpI(" ",e.bMT(129,120,e.i5U(128,117,null==t||null==t.ResultObject?null:t.ResultObject.CurrencyType,u.currencyType))," "),e.R7$(6),e.SpI("IX. ",e.bMT(134,122,"str_Control_funding_source"),""),e.R7$(2),e.Y8G("ngIf",null===(null==t||null==t.ResultObject?null:t.ResultObject.FundingSource))("ngIfElse",r),e.R7$(3),e.Y8G("ngIf",1===(null==t||null==t.ResultObject?null:t.ResultObject.FundingSource)||u.showFundingPrograms),e.R7$(4),e.SpI("X. ",e.bMT(143,124,"str_Control_award_method"),""),e.R7$(3),e.Y8G("ngIf",null==t||null==t.ResultObject?null:t.ResultObject.AwardMethod)("ngIfElse",o),e.R7$(6),e.SpI("XI. ",e.bMT(152,12
16,"str_Control_Tender_Buyer_232_Submit_Page_Tender_CpvCodes"),""),e.R7$(4),e.Y8G("ngForOf",null==t||null==t.ResultObject?null:t.ResultObject.RegistrationFormCpvCodes),e.R7$(2),e.JRh(e.bMT(158,128,null==t||null==t.ResultObject?null:t.ResultObject.RegistrationFormCpvCodesHintKeyword)),e.R7$(5),e.SpI("XII. ",e.bMT(163,130,"str_Control_Tender_Buyer_232_Submit_Page_Tender_RenewalEnvisaged"),""),e.R7$(3),e.Y8G("ngIf",null==t||null==t.ResultObject?null:t.ResultObject.Renewal)("ngIfElse",s),e.R7$(6),e.SpI("XIII. ",e.bMT(172,132,"str_Control_Tender_Buyer_232_Submit_Page_Tender_OptionsEnvisaged"),""),e.R7$(3),e.Y8G("ngIf",null==t||null==t.ResultObject?null:t.ResultObject.Options)("ngIfElse",d),e.R7$(6),e.SpI("XIV. ",e.bMT(181,134,"str_Control_Tender_Buyer_232_Submit_Page_Tender_AccelerationsEnvisaged"),""),e.R7$(3),e.Y8G("ngIf",null==t||null==t.ResultObject?null:t.ResultObject.Acceleration)("ngIfElse",a),e.R7$(6),e.SpI("XV. ",e.bMT(190,136,"str_Control_Tender_Buyer_232_Submit_Page_Tender_HighRiskDuration"),""),e.R7$(3),e.Y8G("ngTemplateOutlet",p),e.R7$(6),e.SpI("XVI. ",e.bMT(199,138,"str_Control_Tender_Buyer_232_Submit_Page_Tender_HighRiskCpv"),""),e.R7$(3),e.SpI(" ",e.bMT(203,143,e.i5U(202,140,null==t||null==t.ResultObject?null:t.ResultObject.HighRiskCpv,u.highRiskCpvEnum))," "),e.R7$(6),e.JRh(e.bMT(208,145,"str_Control_Tender_Buyer_232a_Submit_Page_Hint")),e.R7$(2),e.Y8G("ngIf",!u.isGeneratingFormPdf),e.R7$(),e.Y8G("ngIf",u.isGeneratingFormPdf)}}function Li(n,i){if(1&n&&(e.qex(0),e.DNE(1,Oi,211,147,"div",7),e.nI1(2,"async"),e.bVm()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",e.bMT(2,1,t.regFormInfoResult$))}}let Yi=(()=>{class n extends F.cK{constructor(t,r,o,s,d,a,p,u,b,C,v,D,x,w,H,q,Z){super(t),this.dialogService=r,this.tenderStoreService=o,this.changeDetectorRef=s,this.router=d,this.route=a,this.routerStoreService=p,this.tenderGuard=u,this.controlService=b,this.documentService=C,this.utilsService=v,this.userStoreService=D,this.organizationStoreService=x,this.fb=w,this.controlRelatedDocumentService=H,this.scrollService=q,this.notificationService=Z,this.selectedTenderId$=this.routerStoreService.getIdFromParams(this.route.paramMap,"id"),this.isReceivedRegFormValid=!1,this.procedureTypeEnum=NX1.Model.Enums.ProcedureType,this.typeOfContractEnum=NX1.Model.Enums.TypeOfContract,this.estimatedValueThresholdEnum=NX1.Model.Enums.EstimatedValueThreshold,this.fundingSourceEnum=NX1.Model.Enums.FundingSource,this.awardMethodEnum=NX1.Model.Enums.Control232AwardMethod,this.activityTypeGroupEnum=NX1.Model.Enums.ActivityTypeGroup,this.currencyType=NX1.Model.Enums.CurrencyType,this.renewalEnum=NX1.Model.Enums.RenewalSelection,this.optionsEnum=NX1.Model.Enums.OptionsSelection,this.accelerationEnum=NX1.Model.Enums.AcceleratedSelection,this.durationEnum=NX1.Model.Enums.TenderDuration,this.highRiskCpvEnum=NX1.Model.Enums.HighRiskCpv,this.showFundingPrograms=!1,this.isGeneratingFormPdf=!1,this.showOverlay=!0,this.toolBreadcrumbPath=[{keyword:"str_Tender_control_232a",url:[".."]}],this.canEdit=!0,this.EstimatedValue=new c.hs("",[c.k0.required]),this.FundingProgramId=new c.hs("",[c.k0.required]),this.FundingSource=new c.hs("",[c.k0.required]),this.Email=new c.hs("",[c.k0.required]),this.AwardMethodControl=new c.hs(NX1.Model.Enums.Control232AwardMethod.None),this.RenewalControl=new c.hs(NX1.Model.Enums.RenewalSelection.None),this.OptionsControl=new c.hs(NX1.Model.Enums.OptionsSelection.None),this.AccelerationControl=new c.hs(NX1.Model.Enums.AcceleratedSelection.None),this.DurationControl=new c.hs(NX1.Model.Enums.TenderDuration.None),this.controlForm=new c.J3({EstimatedValue:this.EstimatedValue,FundingProgramId:this.FundingProgramId,FundingSource:this.FundingSource,AwardMethod:this.AwardMethodControl,Renewal:this.RenewalControl,Options:this.OptionsControl,Acceleration:this.AccelerationControl,Duration:this.DurationControl}),this.showFundingSourceValidation=!0,this.showFundingProgramValidation=!0,this.emailValid=!0,this.pattern=new RegExp(X.c.regExp.email),this.subscriptions=[]}ngOnInit(){this.controlForm=this.fb.group({EstimatedValue:this.EstimatedValue,FundingSource:this.FundingSource,FundingProgramId:this.FundingProgramId,_Emails:this.fb.array([this.fb.group({email:""})]),AwardMethod:this.AwardMethodControl,Renewal:this.RenewalControl,Options:this.OptionsControl,Acceleration:this.AccelerationControl,Duration:this.DurationControl}),this.AwardMethodControl.setValidators([this.awardMethodControlValidatorFactory()]),this.AwardMethodControl.markAsTouched(),this.RenewalControl.setValidators([this.renewalControlValidatorFactory()]),this.RenewalControl.markAsTouched(),this.OptionsControl.setValidators([this.optionsControlValidatorFactory()]),this.OptionsControl.markAsTouched(),this.AccelerationControl.setValidators([this.accelerationControlValidatorFactory()]),this.AccelerationControl.markAsTouched(),this.DurationControl.setValidators([this.durationControlValidatorFactory()]),this.DurationControl.markAsTouched(),this.contractingAuthorityTypes$=this.utilsService.getContractingAuthorityTypes(),this.tender$=this.tenderStoreService.getCurrentTender();const t=this.tender$.subscribe(o=>{this.tender=o,this.controlService.refreshTenderControlDataInTheStore(this.tender.Id)});this.regFormInfoResult$=this.controlService.getNewControl232aForm(this.tender.Id);const r=this.regFormInfoResult$.subscribe(o=>{this.regForm=this.controlService.UnwrapValidationResult(o,this.dialogService),this.isReceivedRegFormValid=o.IsValid,o.IsValid?(this.fundingPrograms$=this.controlService.retrieveFundingPrograms(!0),this.subscriptions.push(this.fundingPrograms$.subscribe(s=>{this.fundingProgram=s.find(d=>d.Id===this.regForm.FundingProgramId),null!==this.fundingProgram&&(this.show
1FundingProgramValidation=!1,this.changeDetectorRef.markForCheck())})),this.controlForm=this.fb.group({EstimatedValue:this.regForm.EstimatedValue,FundingSource:this.regForm.FundingSource,FundingProgramId:this.regForm.FundingProgramId,_Emails:this.fb.array([this.fb.group({email:""})]),AwardMethod:this.AwardMethodControl,Renewal:this.RenewalControl,Options:this.OptionsControl,Acceleration:this.AccelerationControl,Duration:this.DurationControl}),this.AwardMethodControl.setValue(this.regForm.AwardMethod),this.RenewalControl.setValue(this.regForm.Renewal),this.OptionsControl.setValue(this.regForm.Options),this.AccelerationControl.setValue(this.regForm.Acceleration),this.DurationControl.setValue(this.regForm.Duration),this.onChangeFundingSource(this.regForm.FundingSource?this.regForm.FundingSource.toString():null),this.changeDetectorRef.markForCheck()):this.changeDetectorRef.markForCheck()});this.subscriptions.push(t,r)}get emails(){return this.controlForm.get("_Emails")}addEmail(){this.emails.push(this.fb.group({email:""})),this.emailValid=!1}deleteEmail(t){this.emails.removeAt(t),this.emailValid=!0}getContractingAuthorityTypeById(t,r){let o;for(const s of t)if(s.Id===r){o=s;break}return o}ngOnDestroy(){for(const t of this.subscriptions)t.unsubscribe()}onSave(){let t;if(this.controlForm.valid){const r=this.controlService.getNewControl232aForm(this.tender.Id).subscribe(o=>{this.regForm=o.ResultObject,this.resultForm=Object.assign({},this.regForm,this.controlForm.value),r.unsubscribe()});this.isEdit=!1,t=!0}else this.markAsTouched(this.controlForm),t=!1;return t}onCancel(){this.isChanged?this.confirmCancel():(this.cancel.emit(this),this.toggleEdit(!1),this.controlForm.reset(this.model))}confirmCancel(){const t=this.dialogService.confirm({titleKeyword:"str_Common_are_you_sure",textContentKeyword:"str_Common_local_changes_will_be_lost",confirmationType:"alert",cancelKeyword:"str_Common_cancel",okKeyword:"str_Common_confirm",requirePassword:!1,showCheckbox:!1}).subscribe(r=>{r.confirmed&&(this.isChanged=!1,this.cancel.emit(this),this.toggleEdit(!1),this.controlForm.reset(this.model),this.changeDetectorRef.markForCheck()),t.unsubscribe()})}setInitialValue(){this.controlForm.reset(this.model)}onChangeFundingSource(t){this.controlForm.value.FundingSource?(this.showFundingSourceValidation=!1,this.changeDetectorRef.markForCheck()):this.showFundingSourceValidation=!0,"1"===t?(this.show
1FundingPrograms=!0,this.showFundingProgramValidation=!0,this.changeDetectorRef.markForCheck()):(this.showFundingPrograms=!1,this.controlForm.value.FundingProgramId=null,this.FundingProgramId=null,this.showFundingProgramValidation=!1,this.changeDetectorRef.markForCheck())}onChangeFundingProgram(t){this.controlForm.value.FundingSource?(this.showFundingProgramValidation=!1,this.changeDetectorRef.markForCheck()):this.showFundingProgramValidation=!0}sendRegForm(t){let r=!1;if(!this.showFundingSourceValidation&&("1"!==this.controlForm.value.FundingSource.toString()||!this.showFundingProgramValidation)&&this.checkEmailsValidation()&&(r=!0),!r||!this.AwardMethodControl.valid)return void this.notificationService.open("str_Control_ErrorDuringOperation","",{});if(!r||!this.RenewalControl.valid)return void this.notificationService.open("str_Control_ErrorDuringOperation","",{});if(!r||!this.OptionsControl.valid)return void this.notificationService.open("str_Control_ErrorDuringOperation","",{});if(!r||!this.AccelerationControl.valid)return void this.notificationService.open("str_Control_ErrorDuringOperation","",{});if(!r||!this.DurationControl.valid)return void this.notificationService.open("str_Control_ErrorDuringOperation","",{});t.FundingSource=this.controlForm.value.FundingSource,t.FundingProgramId=this.controlForm.value.FundingProgramId,t.EstimatedValue=this.controlForm.value.EstimatedValue,t.AwardMethod=this.controlForm.value.AwardMethod,t.Renewal=this.controlForm.value.Renewal,t.Options=this.controlForm.value.Options,t.Acceleration=this.controlForm.value.Acceleration,t.Duration=this.controlForm.value.Duration;for(let d=0;d<this.controlForm.value._Emails.length;d++)for(const a in this.controlForm.value._Emails[d])null!==a&&this.controlForm.value._Emails[d][a]&&this.pattern.test(this.controlForm.value._Emails[d][a])&&t.EmailAddressesList.push(this.controlForm.value._Emails[d][a]);this.isGeneratingFormPdf=!0,this.changeDetectorRef.markForCheck(),setTimeout(()=>this.scrollService.scrollToBottom());const s=this.controlService.saveControl232aForm(t).subscribe(d=>{this.onAddDocument(d.SignedPdfDocumentId),s.unsubscribe()})}onChange(){this.triggerValidation()}triggerValidation(){this.EstimatedValue.markAsTouched(),this.FundingProgramId.markAsTouched(),this.FundingSource.markAsTouched()}onCheckEmail(t){this.emailValid=!!this.pattern.test(t)}checkEmailsValidation(){for(let t=0;t<this.controlForm.value._Emails.length;t++)for(const r in this.controlForm.value._Emails[t])if(null!==r&&this.controlForm.value._Emails[t][r]){if(this.pattern.test(this.controlForm.value._Emails[t][r]))return this.emailValid=!0,this.changeDetectorRef.markForCheck(),!0}else if(null!==r&&""===this.controlForm.value._Emails[t][r])return this.emailValid=!0,this.changeDetectorRef.markForCheck(),!0;return this.emailValid=!1,this.changeDetectorRef.markForCheck(),!1}onAddDocument(t){const r={},o=[],s=this.tenderStoreService.getCurrentTender().subscribe(d=>{r.ControlType=NX1.Model.Enums.ControlType.ByArticle232a,r.ControlContextId=null,r.DocumentId=t,r.ControlRelatedDocumentType=NX1.Model.Enums.ControlRelatedDocumentType.ControlByArticle232aRegistrationForm,r.TenderId=d.Id,o.push(r),this.controlRelatedDocumentService.createDescriptors(o).subscribe(p=>{this.router.navigate(["/tender",this.tender.Id,"buyer","control","form232a-document-submission"])})});this.subscriptions.push(s)}awardMethodControlValidatorFactory(){return t=>Number(t.value)>0?null:{required:!1}}renewalControlValidatorFactory(){return t=>Number(t.value)>0?null:{required:!1}}optionsControlValidatorFactory(){return t=>Number(t.value)>0?null:{required:!1}}durationControlValidatorFactory(){return t=>Number(t.value)>0?null:{required:!1}}accelerationControlValidatorFactory(){return t=>Number(t.value)>0?null:{required:!1}}static{this.\u0275fac=function(r){return new(r||n)(e.rXU(e.c1b),e.rXU(h.o3),e.rXU(l.$gx),e.rXU(e.gRc),e.rXU(g.Ix),e.rXU(g.nX),e.rXU(l.o9Y),e.rXU(R.U),e.rXU(l.het),e.rXU(l.DKw),e.rXU(l.TJO),e.rXU(l.wk1),e.rXU(l.iB2),e.rXU(c.ze),e.rXU(l.N$f),e.rXU(l.bk9),e.rXU(te.L))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["nx1-tender-buyer-control-232a"]],inputs:{canEdit:"canEdit",nameVersions:"nameVersions"},features:[e.Vt3],decls:1,vars:1,consts:[["elseBlockFunding",""],["selectAwardMethodTemplate",""],["selectRenewalTemplate",""],["selectOptionsTemplate",""],["selectAccelerationTemplate",""],["selectDurationTemplate",""],["elseBlockFundingProgram",""],[4,"ngIf"],[1,"nxcard","margin--bottom-20","bg--white","z1",2,"margin-top","10px"],[1,"nxcard__body","nxcard__body--no-scroll"],[1,"personalinfo-container","padding--20",2,"text-align","center"],[1,"text--bold",2,"margin-bottom","10px"],[3,"formGroup"],[1,"nxcard","margin--bottom-20","bg--white","z1"],[1,"nxcard__header"],[1,"nxcard__header-title"],[1,"nxcard__header-title-content"],[1,"border--bottom","nxcard__body-row"],[1,"break-word","col-md-4","col-xs-6","nxcard__body-cell","overflow-hidden"],[1,"profile-label"],[1,"col-md-8","col-xs-6","nxcard__body-cell","break-word"],[1,"text--bold","text--20px"],[1,"text--15px","text--normal","text--emerald0"],[1,"text--emerald0","text--15px","text--normal"],["class","text--bold text--20px",4,"ngFor","ngForOf"],["formArrayName","_Emails"],[3,"formGroupName",4,"ngFor","ngForOf"],["mat-button","","type","button",3,"click"],[1,"mdi","mdi-plus-circle-outline"],["class","text--rose-1 text--13px text--normal",4,"ngIf"],[1,"col-md-8","col-xs-6","nxcard__body-cell"],[1,"col-md-8","col-xs-6","nxcard__body-cell","text--bold","text--20px"],["class","col-md-8 col-xs-6 nxcard__body-cell",4,"ngIf","ngIfElse"],["class","border--bottom nxcard__body-row",4,"ngIf"],[4,"ngIf","ngIfElse"],[4,"ngFor","ngForOf"],[4,"ngTemplateOutlet"],[1,"nxcard__footer","display--flex","padding--10"],[1,"pos--relative","flex-element--right","flex-row","margin--right-10"],[1,"margin--10","text--15px","text--blueberry-1"],["class","pos--relative flex-element--right flex-row margin--right-10",4,"ngIf"],["class","overlay-loading pos--relative flex-element--right flex-row margin--right-10",3,"overlay-loading--show",4,"ngIf"],[3,"formGroupName"],[1,"nxcard__body-row"],[1,"col-md-8","col-xs-6","nxcard__body-cell","break-word","no-border"],["formControlName","email",1,"form-control",3,"keyup"],[1,"break-word","col-md-4","col-xs-6","nxcard__body-cell"],[1,"mdi","mdi-window-close"],[1,"text--rose-1","text--13px","text--normal"],[1,""],["formControlName","FundingSource",1,"form-control","input-wrapper",3,"change"],["selected","",3,"value",4,"ngFor","ngForOf"],[3,"parentId","control"],["selected","",3,"value"],["formControlName","FundingProgramId",1,"form-control",3,"change"],[1,"form-control",3,"formControl"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[1,"mdi","mdi-table-cog"],[1,"overlay-loading","pos--relative","flex-element--right","flex-row","margin--right-10"],[3,"diameter"]],template:function(r,o){1&r&&e.DNE(0,Li,3,3,"ng-container",7),2&r&&e.Y8G("ngIf",o.isReceivedRegFormValid)},dependencies:[m.Sq,m.bT,m.T3,c.qT,c.xH,c.y7,c.me,c.wz,c.BC,c.cb,c.l_,c.j4,c.JD,c.$R,c.v8,S.iV,k.wS,V.l,m.Jj,m.GH,I.D9,T.MB,T.R9],styles:["[_nghost-%COMP%]{display:block}.text-crimson[_ngcontent-%COMP%]{color:#dc143c}.menu-action[_ngcontent-%COMP%]{display:flex;justify-content:center;height:11px;text-align:center;position:relative;margin:5px 0}.menu-action__line[_ngcontent-%COMP%]{display:block;position:absolute;top:50%;transform:translateY(-50%);width:100%;left:0;border-top:1px solid rgba(0,0,0,.1);opacity:0;transition:opacity .35s}.menu-action__wrapper[_ngcontent-%COMP%]{height:30px;position:relative;z-index:2;transform:translateY(-50%);top:50%;opacity:0;transition:opacity .35s}.menu-action__button[_ngcontent-%COMP%]{height:30px;line-height:30px!important}.menu-action[_ngcontent-%COMP%]:hover .menu-action__line[_ngcontent-%COMP%], .menu-action[_ngcontent-%COMP%]:hover .menu-action__wrapper[_ngcontent-%COMP%]{opacity:1}"],changeDetection:0})}}return n})();
1function Ui(n,i){if(1&n&&(e.j41(0,"div",15)(1,"span",22),e.EFF(2),e.k0s()()),2&n){const t=i.$implicit,r=e.XpG();e.BMQ("id",r.getLabelId("emailAddresses")),e.R7$(2),e.JRh(t)}}function Ji(n,i){if(1&n&&(e.j41(0,"div",15)(1,"div",22),e.EFF(2),e.k0s()()),2&n){const t=i.$implicit,r=e.XpG();e.BMQ("id",r.getLabelId("professionalFields")),e.R7$(2),e.JRh(t.Text)}}function Ki(n,i){if(1&n&&(e.j41(0,"div")(1,"div",9)(2,"div",10),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.j41(5,"div",19),e.EFF(6),e.nI1(7,"nx1EnumTranslate"),e.nI1(8,"translate"),e.k0s()(),e.j41(9,"div",9)(10,"div",10),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"div",19),e.EFF(14),e.nI1(15,"lowercase"),e.nI1(16,"translate"),e.k0s()()()),2&n){let t,r;const o=i.$implicit,s=e.XpG();e.R7$(3),e.SpI(" II. ",e.bMT(4,4,"str_Control_Tender_Buyer_232_Submit_Page_TenderBuer_Type")," "),e.R7$(3),e.SpI(" ",e.bMT(8,9,e.i5U(7,6,null==(t=s.getContractingAuthorityTypeById(o,null==s.regFInfo?null:s.regFInfo.ContractingAuthorityTypeId))?null:t.ActivityTypeGroup,s.activityTypeGroupEnum))," "),e.R7$(5),e.SpI(" III. ",e.bMT(12,11,"str_Control_registration_form_contracting_authority_status")," "),e.R7$(3),e.SpI(" ",e.bMT(16,15,"str_Contractingauthoritytypes_"+e.bMT(15,13,null==(r=s.getContractingAuthorityTypeById(o,null==s.regFInfo?null:s.regFInfo.ContractingAuthorityTypeId))?null:r.Mnemonic))," ")}}function zi(n,i){if(1&n&&(e.j41(0,"div",9)(1,"div",10),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",19),e.EFF(5),e.k0s()()),2&n){const t=i.$implicit,r=e.XpG();e.R7$(2),e.SpI(" IXa. ",e.bMT(3,2,"str_Control_funding_program")," "),e.R7$(3),e.SpI(" ",r.getFundingProgramMnemonicById(t,null==r.regFInfo?null:r.regFInfo.FundingProgramId)," ")}}function Qi(n,i){if(1&n&&(e.j41(0,"div")(1,"span",22),e.EFF(2),e.k0s()()),2&n){const t=i.$implicit;e.R7$(2),e.JRh(t.Keyword)}}let pe=(()=>{class n extends F.$G{constructor(t,r,o,s){super(t),this.utilsService=r,this.controlRegFormViewRef=o,this.controlService=s,this.submit=new e.bkB(!1),this.procedureTypeEnum=NX1.Model.Enums.ProcedureType,this.typeOfContractEnum=NX1.Model.Enums.TypeOfContract,this.estimatedValueThresholdEnum=NX1.Model.Enums.EstimatedValueThreshold,this.fundingSourceEnum=NX1.Model.Enums.FundingSource,this.awardMethodEnum=NX1.Model.Enums.Control232AwardMethod,this.activityTypeGroupEnum=NX1.Model.Enums.ActivityTypeGroup,this.currencyType=NX1.Model.Enums.CurrencyType,this.expertStatusType=NX1.Model.Enums.RandomSelectionSystemRegistrationFormStatus,this.renewalEnum=NX1.Model.Enums.RenewalSelection,this.optionsEnum=NX1.Model.Enums.OptionsSelection,this.accelerationEnum=NX1.Model.Enums.AcceleratedSelection,this.durationEnum=NX1.Model.Enums.TenderDuration,this.highRiskCpvEnum=NX1.Model.Enums.HighRiskCpv}ngOnInit(){this.contractingAuthorityTypes$=this.utilsService.getContractingAuthorityTypes(),this.fundingPrograms$=this.controlService.retrieveFundingPrograms(!1)}close(){this.controlRegFormViewRef.close()}onCancel(){this.close()}getContractingAuthorityTypeById(t,r){let o;for(const s of t)if(s.Id===r){o=s;break}return o}getFundingProgramMnemonicById(t,r){return t.find(o=>o.Id===r).Mnemonic}static{this.\u0275fac=function(r){return new(r||n)(e.rXU(e.c1b),e.rXU(l.TJO),e.rXU(U.RN),e.rXU(l.het))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["nx1-control-buyer-232a-form-view"]],inputs:{stringEx:"stringEx",regFInfo:"regFInfo",parentId:"parentId",currentName:"currentName"},outputs:{submit:"submit"},features:[e.Vt3],decls:159,vars:144,consts:[[1,"nxcard","z1","bg--white","overflow-hidden"],[1,"nxcard__header"],[1,"nxcard__header-title"],[1,"nxcard__header-title-content"],[1,"text--uppercase"],[1,"nxcard__header-options"],["mat-icon-button","",3,"click"],[1,"mdi","mdi-close"],[1,"nxcard__body","nxcard__body--no-scroll"],[1,"border--bottom","nxcard__body-row"],[1,"col-md-4","col-xs-6","nxcard__body-cell","overflow-hidden"],[1,"col-md-8","nxcard__body-cell"],[1,"break-word","col-md-4","col-xs-6","nxcard__body-cell","overflow-hidden"],[1,"profile-label"],[1,"col-md-8","col-xs-6","nxcard__body-cell","profile-value","break-word"],[1,"organizaion-name-text"],["class","organizaion-name-text",4,"ngFor","ngForOf"],[1,"nxcard__body-row"],[4,"ngIf"],[1,"col-md-8","col-xs-6","nxcard__body-cell","text--bold","text--15px"],["class","border--bottom nxcard__body-row",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"margin--5"]],template:function(r,o){1&r&&(e.j41(0,"ng-scrollbar",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span",4),e.EFF(5),e.nI1(6,"translate"),e.k0s()()(),e.j41(7,"div",5)(8,"button",6),e.bIt("click",function(){return o.close()}),e.nrm(9,"i",7),e.k0s()()(),e.j41(10,"ng-scrollbar",8)(11,"div",9)(12,"div",10),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"div",11)(16,"div",9)(17,"div",12)(18,"label",13),e.EFF(19),e.nI1(20,"translate"),e.k0s()(),e.j41(21,"div",14)(22,"span",15),e.EFF(23),e.k0s()()(),e.j41(24,"div",9)(25,"div",12)(26,"label",13),e.EFF(27),e.nI1(28,"translate"),e.k0s()(),e.j41(29,"div",14)(30,"span",15),e.EFF(31),e.k0s()()(),e.j41(32,"div",9)(33,"div",12)(34,"label",13),e.EFF(35),e.nI1(36,"translate"),e.k0s()(),e.j41(37,"div",14)(38,"span",15),e.EFF(39),e.k0s()()(),e.j41(40,"div",9)(41,"div",12)(42,"label",13),e.EFF(43),e.nI1(44,"translate"),e.k0s()(),e.j41(45,"div",14),e.DNE(46,Ui,3,2,"div",16),e.k0s()(),e.j41(47,"div",17)(48,"div",12)(49,"label",13),e.EFF(50),e.nI1(51,"translate"),e.k0s()(),e.j41(52,"div",14),e.DNE(
153,Ji,3,2,"div",16),e.k0s()()()(),e.DNE(54,Ki,17,17,"div",18),e.nI1(55,"async"),e.j41(56,"div",9)(57,"div",10),e.EFF(58),e.nI1(59,"translate"),e.k0s(),e.j41(60,"div",19),e.EFF(61),e.nI1(62,"nx1EnumTranslate"),e.nI1(63,"translate"),e.k0s()(),e.j41(64,"div",9)(65,"div",10),e.EFF(66),e.nI1(67,"translate"),e.k0s(),e.j41(68,"div",19),e.EFF(69),e.nI1(70,"nx1EnumTranslate"),e.nI1(71,"translate"),e.k0s()(),e.j41(72,"div",9)(73,"div",10),e.EFF(74),e.nI1(75,"translate"),e.k0s(),e.j41(76,"div",19),e.EFF(77),e.nI1(78,"nx1EnumTranslate"),e.nI1(79,"translate"),e.k0s()(),e.j41(80,"div",9)(81,"div",10),e.EFF(82),e.nI1(83,"translate"),e.k0s(),e.j41(84,"div",19),e.EFF(85),e.k0s()(),e.j41(86,"div",9)(87,"div",12)(88,"label",13),e.EFF(89),e.nI1(90,"translate"),e.k0s()(),e.j41(91,"div",19),e.EFF(92),e.nI1(93,"nx1EnumTranslate"),e.nI1(94,"translate"),e.k0s()(),e.j41(95,"div",9)(96,"div",10),e.EFF(97),e.nI1(98,"translate"),e.k0s(),e.j41(99,"div",19),e.EFF(100),e.nI1(101,"nx1EnumTranslate"),e.nI1(102,"translate"),e.k0s()(),e.DNE(103,zi,6,4,"div",20),e.nI1(104,"async"),e.j41(105,"div",9)(106,"div",10),e.EFF(107),e.nI1(108,"translate"),e.k0s(),e.j41(109,"div",19),e.EFF(110),e.nI1(111,"nx1EnumTranslate"),e.nI1(112,"translate"),e.k0s()(),e.j41(113,"div",9)(114,"div",10),e.EFF(115),e.nI1(116,"translate"),e.k0s(),e.j41(117,"div",19),e.DNE(118,Qi,3,1,"div",21),e.k0s()(),e.j41(119,"div",9)(120,"div",10),e.EFF(121),e.nI1(122,"translate"),e.k0s(),e.j41(123,"div",19),e.EFF(124),e.nI1(125,"nx1EnumTranslate"),e.nI1(126,"translate"),e.k0s()(),e.j41(127,"div",9)(128,"div",10),e.EFF(129),e.nI1(130,"translate"),e.k0s(),e.j41(131,"div",19),e.EFF(132),e.nI1(133,"nx1EnumTranslate"),e.nI1(134,"translate"),e.k0s()(),e.j41(135,"div",9)(136,"div",10),e.EFF(137),e.nI1(138,"translate"),e.k0s(),e.j41(139,"div",19),e.EFF(140),e.nI1(141,"nx1EnumTranslate"),e.nI1(142,"translate"),e.k0s()(),e.j41(143,"div",9)(144,"div",10),e.EFF(145),e.nI1(146,"translate"),e.k0s(),e.j41(147,"div",19),e.EFF(148),e.nI1(149,"nx1EnumTranslate"),e.nI1(150,"translate"),e.k0s()(),e.j41(151,"div",9)(152,"div",10),e.EFF(153),e.nI1(154,"translate"),e.k0s(),e.j41(155,"div",19),e.EFF(156),e.nI1(157,"nx1EnumTranslate"),e.nI1(158,"translate"),e.k0s()()()()),2&r&&(e.R7$(5),e.JRh(e.bMT(6,45,"str_Control_Tender_Buyer_232a_Submit_Page_Title")),e.R7$(3),e.BMQ("id",o.getButtonId("close")),e.R7$(5),e.SpI(" I. ",e.bMT(14,47,"str_Control_registration_form_identification")," "),e.R7$(2),e.BMQ("id",o.getLabelId("name")),e.R7$(4),e.SpI("1. ",e.bMT(20,49,"str_Control_Tender_Buyer_232_Submit_Page_TenderBuyer_Name")," "),e.R7$(3),e.BMQ("id",o.getLabelId("organizationName")),e.R7$(),e.JRh(null==o.regFInfo?null:o.regFInfo.ContractingAuthorityName),e.R7$(4),e.SpI("2. ",e.bMT(28,51,"str_Control_Tender_Buyer_232_Submit_Page_TenderBuyer_BatchNumber")," "),e.R7$(3),e.BMQ("id",o.getLabelId("organizationBatchNumber")),e.R7$(),e.JRh(null==o.regFInfo?null:o.regFInfo.ContractingAuthorityBatchNumber),e.R7$(4),e.SpI("3. ",e.bMT(36,53,"str_Control_Tender_Buyer_232_Submit_Page_Tender_Subject")," "),e.R7$(3),e.BMQ("id",o.getLabelId("tenderSubject")),e.R7$(),e.JRh(null==o.regFInfo?null:o.regFInfo.TenderSubject),e.R7$(4),e.SpI("4. ",e.bMT(44,55,"str_Control_Tender_Buyer_232_Submit_Page_Emails")," "),e.R7$(3),e.Y8G("ngForOf",null==o.regFInfo?null:o.regFInfo.EmailAddressesList),e.R7$(4),e.SpI("5. ",e.bMT(51,57,"str_Control_professional_fields")," "),e.R7$(3),e.Y8G("ngForOf",null==o.regFInfo?null:o.regFInfo.RegistrationFormProfessionalFields),e.R7$(),e.Y8G("ngIf",e.bMT(55,59,o.contractingAuthorityTypes$)),e.R7$(4),e.SpI(" IV. ",e.bMT(59,61,"str_Control_Tender_Buyer_232_Submit_Page_Tender_ProcedureType")," "),e.R7$(3),e.SpI(" ",e.bMT(63,66,e.i5U(62,63,null==o.regFInfo?null:o.regFInfo.ProcedureType,o.procedureTypeEnum))," "),e.R7$(5),e.SpI(" V. ",e.bMT(67,68,"str_Control_rssForm_pdf_TypeOfContract")," "),e.R7$(3),e.SpI(" ",e.bMT(71,73,e.i5U(70,70,null==o.regFInfo?null:o.regFInfo.TypeOfContract,o.typeOfContractEnum))," "),e.R7$(5),e.SpI(" VI. ",e.bMT(75,75,"str_Control_Tender_Buyer_232_Submit_Page_Tender_EstimatedValueThreshold")," "),e.R7$(3),e.SpI(" ",e.bMT(79,80,e.i5U(78,77,null==o.regFInfo?null:o.regFInfo.EstimatedValueThreshold,o.estimatedValueThresholdEnum))," "),e.R7$(5),e.SpI(" VII. ",e.bMT(83,82,"str_Control_Tender_Buyer_232_Submit_Page_Tender_EstimatedValue")," "),e.R7$(3),e.SpI(" ",null==o.regFInfo?null:o.regFInfo.EstimatedValue," "),e.R7$(4),e.SpI("VIII. ",e.bMT(90,84,"str_Control_Tender_Buyer_232_Submit_Page_Tender_Currency"),""),e.R7$(3),e.SpI(" ",e.bMT(94,89,e.i5U(93,86,null==o.regFInfo?null:o.regFInfo.CurrencyType,o.currencyType))," "),e.R7$(5),e.SpI(" IX. ",e.bMT(98,91,"str_Control_funding_source")," "),e.R7$(3),e.SpI(" ",e.bMT(102,96,e.
1i5U(101,93,null==o.regFInfo?null:o.regFInfo.FundingSource,o.fundingSourceEnum))," "),e.R7$(3),e.Y8G("ngIf",e.bMT(104,98,1===(null==o.regFInfo?null:o.regFInfo.FundingSource)&&o.fundingPrograms$)),e.R7$(4),e.SpI(" X. ",e.bMT(108,100,"str_Control_award_method")," "),e.R7$(3),e.SpI(" ",e.bMT(112,105,e.i5U(111,102,null==o.regFInfo?null:o.regFInfo.AwardMethod,o.awardMethodEnum))," "),e.R7$(5),e.SpI(" XI. ",e.bMT(116,107,"str_Control_Tender_Buyer_232_Submit_Page_Tender_CpvCodes")," "),e.R7$(3),e.Y8G("ngForOf",null==o.regFInfo?null:o.regFInfo.RegistrationFormCpvCodes),e.R7$(3),e.SpI(" XII. ",e.bMT(122,109,"str_Control_renewal")," "),e.R7$(3),e.SpI(" ",e.bMT(126,114,e.i5U(125,111,null==o.regFInfo?null:o.regFInfo.Renewal,o.renewalEnum))," "),e.R7$(5),e.SpI(" XIII. ",e.bMT(130,116,"str_Control_options")," "),e.R7$(3),e.SpI(" ",e.bMT(134,121,e.i5U(133,118,null==o.regFInfo?null:o.regFInfo.Options,o.optionsEnum))," "),e.R7$(5),e.SpI(" XIV. ",e.bMT(138,123,"str_Control_acceleration")," "),e.R7$(3),e.SpI(" ",e.bMT(142,128,e.i5U(141,125,null==o.regFInfo?null:o.regFInfo.Acceleration,o.accelerationEnum))," "),e.R7$(5),e.SpI(" XV. ",e.bMT(146,130,"str_Control_duration")," "),e.R7$(3),e.SpI(" ",e.bMT(150,135,e.i5U(149,132,null==o.regFInfo?null:o.regFInfo.Duration,o.durationEnum))," "),e.R7$(5),e.SpI(" XVI. ",e.bMT(154,137,"str_Control_highRiskCpv")," "),e.R7$(3),e.SpI(" ",e.bMT(158,142,e.i5U(157,139,null==o.regFInfo?null:o.regFInfo.HighRiskCpv,o.highRiskCpvEnum))," "))},dependencies:[m.Sq,m.bT,S.iV,G.Yh,m.Jj,m.GH,I.D9,T.R9],styles:["[_nghost-%COMP%]{display:block;width:800px}"],changeDetection:0})}}return n})();function Hi(n,i){1&n&&e.eu8(0)}function qi(n,i){if(1&n&&(e.j41(0,"label",13),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" ",null==t.formDocument?null:t.formDocument.Name," ")}}function Zi(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",14),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.downloadDocument())}),e.nrm(1,"i",15),e.k0s()}}function Wi(n,i){if(1&n){const t=e.RV6();e.j41(0,"span",16),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.openSignaturesDialog())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&n&&(e.R7$(),e.SpI("",e.bMT(2,1,"str_Control_Tender_Buyer_232_DocumentSubmit_Signed")," "))}function es(n,i){if(1&n&&(e.j41(0,"div"),e.DNE(1,qi,2,1,"label",10)(2,Zi,2,0,"button",11)(3,Wi,3,3,"span",12),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.formDocument),e.R7$(),e.Y8G("ngIf",t.formDocument),e.R7$(),e.Y8G("ngIf",t.CanManage&&t.formDocumentDescriptor&&t.formDocumentDescriptor.IsSubmitted)}}function ts(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",20),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.attachFormDocuments())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"str_Control_Tender_Buyer_232a_DocumentSubmit_Next")," "))}function ns(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",21),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.removeDocument())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"str_Control_Tender_Buyer_232_DocumentSubmit_Remove")," "))}function os(n,i){1&n&&(e.j41(0,"div",22),e.nrm(1,"mat-spinner",23),e.k0s()),2&n&&(e.AVh("overlay-loading--show",!0),e.R7$(),e.Y8G("diameter",60))}
1function rs(n,i){if(1&n&&(e.j41(0,"div",6),e.DNE(1,ts,3,3,"button",17)(2,ns,3,3,"button",18)(3,os,2,3,"div",19),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",!t.isSubmitting),e.R7$(),e.Y8G("ngIf",!t.isSubmitting),e.R7$(),e.Y8G("ngIf",t.isSubmitting)}}function is(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",5)(1,"label",7),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",24),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.openRegFormDialog(o.form))}),e.EFF(5),e.k0s()()}if(2&n){const t=e.XpG();e.R7$(2),e.JRh(e.bMT(3,2,"str_Control_Tender_Buyer_232a_DocumentSubmit_MssNumber")),e.R7$(3),e.JRh(null==t.controlContext?null:t.controlContext.Number)}}function ss(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",21),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.removeContextWithDocuments())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"str_Control_Tender_Buyer_232_DocumentSubmit_Remove")," "))}function cs(n,i){if(1&n&&(e.j41(0,"div",6),e.DNE(1,ss,3,3,"button",18),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",!t.isSubmitting)}}let as=(()=>{class n{constructor(t,r,o,s,d,a,p,u,b,C,v,D,x){this.controlService=t,this.documentService=r,this.viewContainerRef=o,this.dialogService=s,this.tenderStoreService=d,this.changeDetectorRef=a,this.router=p,this.route=u,this.routerStoreService=b,this.controlRelatedDocumentService=C,this.controlStoreService=v,this.notificationsService=D,this.tenderGuard=x,this.subscriptions=[]}get CanViewControlSection(){return this.tenderGuard.canViewTenderControlSection}get CanManage(){return this.tenderGuard.canManageTenderControlSection&&!!this.tenderControlData&&!1===this.tenderControlData.IsTenderPublished&&!this.tenderControlData.ControlContext232Id}ngOnInit(){this.isSubmitting=!1,this.subscriptions.push(this.tenderStoreService.getTenderControlData().subscribe(t=>this.tenderControlData=t)),this.loadData()}ngOnDestroy(){for(const t of this.subscriptions)t.unsubscribe()}downloadDocument(){const t=this.documentService.downloadDocumentById(this.formDocument.Id).subscribe(()=>{t.unsubscribe()})}removeDocument(){const t=this.controlService.removeControl232aForm(this.form.Id).subscribe(()=>{t.unsubscribe(),this.router.navigate(["/tender",this.tender.Id,"buyer","control","register232a"])})}removeContextWithDocuments(){let t;t=this.dialogService.confirm({titleKeyword:"str_Common_are_you_sure",textContentKeyword:"str_Control_Tender_Buyer_232a_Delete_Context_Message",confirmationType:"delete",cancelKeyword:"str_Common_cancel",okKeyword:"str_Common_confirm",requirePassword:!1,showCheckbox:!1}).subscribe(r=>{if(r.confirmed){const o=this.controlService.removeControl232aContext(this.controlContext.Id).subscribe(()=>{o.unsubscribe(),this.router.navigate(["/tender",this.tender.Id,"buyer","control","register232a"])})}t.unsubscribe()})}attachFormDocuments(){this.isSubmitting=!0;const t=this.controlService.generateControlContext232aRelatedObjects(this.form.Id).subscribe(()=>{t.unsubscribe(),this.router.navigate(["/tender",this.tender.Id,"buyer","control","selected232a"])})}loadData(){const t=this.tenderStoreService.getCurrentTender().pipe((0,y.M)(r=>{this.isSubmitting=!1,this.tender=r,this.tenderStoreService.loadTenderControlData(this.tender.Id),this.controlService.refreshTenderControlDataInTheStore(this.tender.Id)}),(0,P.n)(r=>this.controlService.getControl232aFormByTenderId(r.Id)),(0,P.n)(r=>(this.form=r,this.documentService.getDocumentById(this.form.SignedPdfDocumentId))),(0,P.n)(r=>(this.formDocument=r,this.controlRelatedDocumentService.getDescriptorByDocumentId(this.formDocument.Id))),(0,y.M)(r=>{this.formDocumentDescriptor=r,this.changeDetectorRef.markForCheck()}),(0,P.n)(()=>this.controlService.getControlContext232aByTenderId(this.tender.Id)),(0,y.M)(r=>{this.controlContext=r,this.changeDetectorRef.markForCheck()})).subscribe(()=>{this.controlStoreService.loadControlDocumentSignatures(this.formDocument.Id),this.isFormDocumentDigitallySigned$=this.controlStoreService.getIsControlDocumentAlreadySignedByCurrentUser().pipe((0,y.M)(r=>{this.isFormDocumentDigitallySigned=r,this.changeDetectorRef.markForCheck()}))});this.subscriptions.push(t)}openRegFormDialog(t){const r=new h.Pe;
1r.viewContainerRef=this.viewContainerRef,this.controlRegFormViewRef=this.dialogService.open(pe,r),this.controlRegFormViewRef.componentInstance.regFInfo=t}openSignaturesDialog(){this.destroySignDocumentRef(),this.controlStoreService.loadControlDocumentSignatures(this.formDocument.Id);const t=new h.Pe;t.viewContainerRef=this.viewContainerRef,this.digitalSignaturesDialogComponent=this.dialogService.open(B.m,t),this.digitalSignaturesDialogComponent.componentInstance.pdfDocument=this.formDocument,this.digitalSignaturesDialogComponent.componentInstance.digitalSignaturesList$=this.controlStoreService.getCurrentControlDocumentDigitalSignatures(),this.digitalSignaturesDialogComponent.componentInstance.canManageSignatures=!this.formDocumentDescriptor.IsSubmitted,this.digitalSignaturesDialogComponent.componentInstance.isAlreadySigned$=this.controlStoreService.getIsControlDocumentAlreadySignedByCurrentUser(),this.digitalSignaturesDialogComponent.componentInstance.isLoadingSignatures$=this.controlStoreService.getIsLoadingSignatures(),this.digitalSignaturesDialogComponent.componentInstance.objectId=this.formDocumentDescriptor.Id,this.digitalSignaturesDialogComponent.componentInstance.objectGuid=this.formDocumentDescriptor.Guid,this.digitalSignaturesDialogComponent.componentInstance.entityId=this.formDocumentDescriptor.EntityId,this.digitalSignaturesDialogComponent.componentInstance.deleteConfirmationContentKeyword="str_DocumentEditor_delete_signature_confirmation_message",this.digitalSignaturesDialogComponent.componentInstance.signTitleKeyword="str_Common_sign",this.changeDetectorRef.markForCheck()}destroySignDocumentRef(){this.digitalSignaturesDialogComponent&&(this.digitalSignaturesDialogComponent.close(),this.digitalSignaturesDialogComponent=null)}static{this.\u0275fac=function(r){return new(r||n)(e.rXU(l.het),e.rXU(l.DKw),e.rXU(e.c1b),e.rXU(h.o3),e.rXU(l.$gx),e.rXU(e.gRc),e.rXU(g.Ix),e.rXU(g.nX),e.rXU(l.o9Y),e.rXU(l.N$f),e.rXU(l.CFu),e.rXU(ae.I),e.rXU(R.U))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["nx1-tender-buyer-control232a-form-document-submission"]],features:[e.Jv_([{provide:$.Q,useClass:j.Q}])],decls:21,vars:17,consts:[[4,"ngIf"],[1,"nxcard","margin--bottom-20","bg--white","z1"],[1,"border--bottom","nxcard__body-row"],[1,"break-word","nxcard__body-cell","overflow-hidden"],[1,"text--bold","text--20px"],[1,"break-word","col-md-4","col-xs-4","nxcard__body-cell","overflow-hidden"],[1,"col-md-4","col-xs-4","nxcard__body-cell"],[1,"profile-label"],["class","col-md-4 col-xs-4 nxcard__body-cell",4,"ngIf"],["class","break-word col-md-4 col-xs-4 nxcard__body-cell overflow-hidden",4,"ngIf"],["class","profile-value margin--bottom-5",4,"ngIf"],["mat-button","","color","primary","class","margin--left-10",3,"click",4,"ngIf"],["class","margin--left-10 link-text text--bold text--20px pointer",3,"click",4,"ngIf"],[1,"profile-value","margin--bottom-5"],["mat-button","","color","primary",1,"margin--left-10",3,"click"],[1,"mdi","mdi-download"],[1,"margin--left-10","link-text","text--bold","text--20px","pointer",3,"click"],["mat-button","","color","warn","class","margin--top-5",3,"click",4,"ngIf"],["mat-button","","color","primary","class","margin--top-5 margin--left-10",3,"click",4,"ngIf"],["class","overlay-loading",3,"overlay-loading--show",4,"ngIf"],["mat-button","","color","warn",1,"margin--top-5",3,"click"],["mat-button","","color","primary",1,"margin--top-5","margin--left-10",3,"click"],[1,"overlay-loading"],[3,"diameter"],[1,"text--bold","text--20px","link-text","pointer",3,"click"]],template:function(r,o){1&r&&(e.DNE(0,Hi,1,0,"ng-container",0),e.nI1(1,"async"),e.j41(2,"div",1)(3,"div",2)(4,"div",3)(5,"label",4),e.EFF(6),e.nI1(7,"translate"),e.k0s()()(),e.j41(8,"div",2)(9,"div",5),e.DNE(10,es,4,3,"div",0),e.k0s(),e.j41(11,"div",6)(12,"div",7),e.EFF(13),e.nI1(14,"translate"),e.k0s(),e.j41(15,"div",4),e.EFF(16),e.nI1(17,"nx1date"),e.k0s()(),e.DNE(18,rs,4,3,"div",8)(19,is,6,4,"div",9)(20,cs,2,1,"div",8),e.k0s()()),2&r&&(e.Y8G("ngIf",e.bMT(1,8,o.isFormDocumentDigitallySigned$)),e.R7$(6),e.JRh(e.bMT(7,10,"str_Control_Tender_Buyer_232a_DocumentSubmit_Page_Title")),e.R7$(4),e.Y8G("ngIf",o.formDocument),e.R7$(3),e.SpI("",e.bMT(14,12,"str_Control_Tender_Buyer_232_DocumentSubmit_GeneratedOn")," "),e.R7$(3),e.SpI("",e.i5U(17,14,null==o.formDocument?null:o.formDocument.CreatedDate,"ShortDateTime")," "),e.R7$(2),e.Y8G("ngIf",o.CanManage&&o.formDocumentDescriptor&&!o.formDocumentDescriptor.IsSubmitted&&null===o.formDocumentDescriptor.ControlContextId),e.R7$(),e.Y8G("ngIf",o.formDocumentDescriptor&&o.formDocumentDescriptor.IsSubmitted),e.R7$(),e.Y8G("ngIf",o.CanManage&&o.formDocumentDescriptor&&!o.formDocumentDescriptor.IsSubmitted&&null!==o.formDocumentDescriptor.ControlContextId))},dependencies:[m.bT,S.iV,k.wS,m.Jj,I.D9,M.O],styles:["[_nghost-%COMP%]{display:block}.link-text[_ngcontent-%COMP%]{text-decoration:underline;color:#47abcc}.link-text[_ngcontent-%COMP%]:hover, .link-text[_ngcontent-%COMP%]:active, .link-text[_ngcontent-%COMP%]:focus{text-decoration:underline}.common-link-button[_ngcontent-%COMP%]{cursor:pointer;text-decoration:underline;font-weight:400}.common-link-button[_ngcontent-%COMP%]:hover{font-weight:700}.disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}"],changeDetection:0})}}return n})();const Q=n=>({"nxcard margin--bottom-20 bg--white z1":!0,disabled:n}),ls=n=>({disabled:n});function ds(n,i){1&n&&e.eu8(0)}function us(n,i){1&n&&(e.j41(0,"div")(1,"div",20)(2,"label",28),e.EFF(3),e.nI1(4,"translate"),e.k0s()()()),2&n&&(e.R7$(3),e.SpI(" ",e.bMT(4,1,"str_Control_Tender_Buyer_232_SelectedControl_NoDocuments")," "))}
1function ms(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",31)(1,"label",32),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"label",33),e.EFF(5),e.k0s(),e.j41(6,"button",34),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.downloadDocumentPackage())}),e.nrm(7,"i",35),e.k0s()()}if(2&n){const t=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,2,"str_Control_Tender_Buyer_232_SelectedControl_PreliminaryControlDocuments")),e.R7$(3),e.SpI(" ",null==t.documentPackageDocument?null:t.documentPackageDocument.Name," ")}}function _s(n,i){if(1&n&&(e.j41(0,"label",33),e.EFF(1),e.k0s()),2&n){const t=e.XpG(4);e.R7$(),e.SpI(" ",null==t.documentPackageAccompanyingLetterDocument?null:t.documentPackageAccompanyingLetterDocument.Name," ")}}function ps(n,i){if(1&n){const t=e.RV6();e.j41(0,"span",38),e.bIt("click",function(){e.eBV(t);const o=e.XpG(4);return e.Njj(o.openSignaturesDialog(o.documentPackageAccompanyingLetterDocument,o.documentPackageAccompanyingLetterDocumentDescriptor,!1))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"str_Control_Tender_Buyer_232_SelectedControl_AccompanyingLetter_Signed")))}function gs(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",31)(1,"label",32),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.DNE(4,_s,2,1,"label",36),e.j41(5,"button",34),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.downloadDocumentPackageAccompanyingLetter())}),e.nrm(6,"i",35),e.k0s(),e.DNE(7,ps,3,3,"span",37),e.k0s()}if(2&n){const t=e.XpG(3);e.R7$(2),e.JRh(e.bMT(3,3,"str_Control_Tender_Buyer_232_SelectedControl_AccompanyingLetter")),e.R7$(2),e.Y8G("ngIf",t.documentPackageAccompanyingLetterDocument),e.R7$(3),e.Y8G("ngIf",t.documentPackageAccompanyingLetterDocumentDescriptor&&t.documentPackageAccompanyingLetterDocumentDescriptor.IsSubmitted)}}function hs(n,i){if(1&n&&(e.j41(0,"div",39)(1,"div",40),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",41),e.EFF(5),e.nI1(6,"nx1date"),e.k0s()()),2&n){const t=e.XpG(3);e.R7$(),e.BMQ("id",t.getLabelId("organizationType")),e.R7$(),e.SpI("",e.bMT(3,4,"str_Control_Tender_Buyer_232_SelectedControl_Documents_SubmissionDate")," "),e.R7$(2),e.BMQ("id",t.getLabelId("organizationType")),e.R7$(),e.SpI(" ",e.i5U(6,6,t.documentPackageDocumentDescriptor.SubmissionDateTime,"ShortDateTime")," ")}}function bs(n,i){if(1&n){const t=e.RV6();e.j41(0,"div",39)(1,"button",42),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.goToDocuments())}),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"str_Control_Tender_Buyer_232_SelectedControl_Documents_Edit")," "))}function Cs(n,i){if(1&n&&(e.j41(0,"div",20),e.DNE(1,ms,8,4,"div",29)(2,gs,8,5,"div",29)(3,hs,7,9,"div",30)(4,bs,4,3,"div",30),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.Y8G("ngIf",t.documentPackageDocumentDescriptor&&t.documentPackageDocumentDescriptor.IsSubmitted),e.R7$(),e.Y8G("ngIf",t.documentPackageAccompanyingLetterDocumentDescriptor&&t.documentPackageAccompanyingLetterDocumentDescriptor.IsSubmitted),e.R7$(),e.Y8G("ngIf",t.documentPackageDocumentDescriptor&&t.documentPackageDocumentDescriptor.IsSubmitted),e.R7$(),e.Y8G("ngIf",t.CanManageControlSection&&(!t.documentPackageDocumentDescriptor||!t.documentPackageDocumentDescriptor.IsSubmitted))}}function fs(n,i){if(1&n&&(e.j41(0,"label",33),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI(" ",t.selectedStatementStage1.Number," ")}}function vs(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",34),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.downloadStatenentStage1Document())}),e.nrm(1,"i",35),e.k0s()}}function Ds(n,i){if(1&n&&(e.j41(0,"div",41),e.EFF(1),e.nI1(2,"nx1date"),e.k0s()),2&n){const t=e.XpG(3);e.BMQ("id",t.getLabelId("organizationType")),e.R7$(),e.SpI(" ",e.i5U(2,2,t.statementStage1DocumentDescriptor.SubmissionDateTime,"ShortDateTime")," ")}}function Is(n,i){if(1&n&&(e.j41(0,"div",20)(1,"div",43),e.DNE(2,f
1s,2,1,"label",36)(3,vs,2,0,"button",44),e.k0s(),e.j41(4,"div",45)(5,"div",40),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.DNE(8,Ds,3,5,"div",46),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngIf",t.statementStage1Document),e.R7$(),e.Y8G("ngIf",t.statementStage1Document),e.R7$(2),e.BMQ("id",t.getLabelId("organizationType")),e.R7$(),e.SpI("",e.bMT(7,5,"str_Control_Tender_Buyer_232_SelectedControl_StatementSendOn")," "),e.R7$(2),e.Y8G("ngIf",t.statementStage1DocumentDescriptor)}}function Ss(n,i){1&n&&(e.j41(0,"div",20)(1,"label",47),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"str_Control_Tender_Buyer_232_SelectedControl_NoSendStatement")," "))}function ys(n,i){if(1&n){const t=e.RV6();e.j41(0,"tr")(1,"td")(2,"span",53),e.bIt("click",function(){const o=e.eBV(t).index,s=e.XpG(3);return e.Njj(s.downloadDocument(s.previousStatementsDocuments1[o].Id))}),e.EFF(3),e.k0s()(),e.j41(4,"td")(5,"span",54),e.EFF(6),e.nI1(7,"nx1date"),e.k0s()()()}if(2&n){const t=i.$implicit;e.R7$(3),e.JRh(t.Number),e.R7$(3),e.JRh(e.i5U(7,2,t.SubmissionDateTime,"ShortDateTime"))}}function Ts(n,i){if(1&n&&(e.j41(0,"div",48)(1,"div",49)(2,"table")(3,"tr")(4,"td")(5,"label",50),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.j41(8,"td")(9,"label",51),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.DNE(12,ys,8,5,"tr",52),e.k0s()()()),2&n){const t=e.XpG(2);e.R7$(6),e.JRh(e.bMT(7,3,"str_Control_232_PreviousStatements")),e.R7$(4),e.JRh(e.bMT(11,5,"str_Control_Tender_Buyer_232_SelectedControl_StatementSendOn")),e.R7$(2),e.Y8G("ngForOf",t.previousStatements1)}}function Fs(n,i){1&n&&(e.j41(0,"div",20)(1,"div",31)(2,"label",40),e.EFF(3),e.nI1(4,"translate"),e.k0s()()()),2&n&&(e.R7$(3),e.SpI(" ",e.bMT(4,1,"str_Control_Tender_Buyer_232_SelectedControl_NoMotives")," "))}function Rs(n,i){if(1&n&&(e.j41(0,"label",33),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI(" ",null==t.motivesDocument?null:t.motivesDocument.Name," ")}}function ks(n,i){if(1&n){const t=e.RV6();e.j41(0,"nx1-documents-upload",61),e.bIt("save",function(o){e.eBV(t);const s=e.XpG(3);return e.Njj(s.onAddMotivesDocuments(o))}),e.k0s()}2&n&&e.Y8G("keyword","str_Common_add")("showConsentCheckbox",!1)("multiple",!1)}function xs(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",34),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.downloadMotives())}),e.nrm(1,"i",35),e.k0s()}}function Es(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",34),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.deleteMotivesDescriptor())}),e.nrm(1,"i",62),e.k0s()}}function Bs(n,i){if(1&n&&(e.j41(0,"label",33),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI(" ",null==t.motivesAccompanyingLetterDocument?null:t.motivesAccompanyingLetterDocument.Name," ")}}function $s(n,i){if(1&n){const t=e.RV6();e.j41(0,"nx1-documents-upload",63),e.bIt("save",function(o){e.eBV(t);const s=e.XpG(3);return e.Njj(s.onAddMotivesAccompanyingLetterDocuments(o))}),e.k0s()}if(2&n){const t=e.XpG(3);e.Y8G("keyword","str_Common_add")("showConsentCheckbox",!1)("multiple",!1)("ngClass",e.eq3(4,ls,!t.motivesDocument))}}function js(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",34),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.downloadMotivesAccompanyingLetter())}),e.nrm(1,"i",35),e.k0s()}}function Ms(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",34),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.deleteMotivesAccompanyingLetterDescriptor())}),e.nrm(1,"i",62),e.k0s()}}function ws(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",64),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.openSignaturesDialog(o.motivesAccompanyingLetterDocument,o.motivesAccompanyingLetterDocumentDescriptor,!0))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const t=e.XpG(3);e.Y8G("disabled",!t.motivesAccompanyingLetterDocument||t.motivesAccompanyingLetterDocumentDescriptor&&t.motivesAccompanyingLetterDocumentDescriptor.IsManuallySigned),e.R7$(),e.SpI(" ",e.bMT(2,2,"str_Control_Tender_Buyer_232_DocumentSubmission_Sign")," ")}}function As(n,i){if(1&n){const t=e.RV6();e.j41(0,"mat-checkbox",65),e.bIt("change",function(o){e.eBV(t);const s=e.XpG(3);return e.Njj(s.onMotivesAccompanyingLetterManuallySignedChanged(o))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const t=e.XpG(3);e.Y8G("checked",t.motivesAccompanyingLetterDocumentDescriptor.IsManuallySigned)("disabled",t.isMotivesAccompanyingLetterDigitallySigned||t.motivesDocumentDescriptor&&t.motivesDocumentDescriptor.IsSubmitted),e.R7$(),e.SpI(" ",e.bMT(2,3,"str_Control_Tender_Buyer_232_SelectedControl_AccompanyingLetter_ManuallySigned")," ")}}
1function Ps(n,i){if(1&n){const t=e.RV6();e.j41(0,"span",38),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.openSignaturesDialog(o.motivesAccompanyingLetterDocument,o.motivesAccompanyingLetterDocumentDescriptor,!1))}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"str_Control_Tender_Buyer_232_SelectedControl_RssForm_Sign")))}function Gs(n,i){1&n&&(e.j41(0,"span",66),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.JRh(e.bMT(2,1,"str_Control_Tender_Buyer_232_SelectedControl_AccompanyingLetter_ManuallySigned")))}function Ns(n,i){if(1&n){const t=e.RV6();e.j41(0,"div")(1,"button",69),e.bIt("click",function(){e.eBV(t);const o=e.XpG(4);return e.Njj(o.submitMotives())}),e.EFF(2),e.nI1(3,"translate"),e.k0s()()}if(2&n){const t=e.XpG(4);e.R7$(),e.Y8G("disabled",!t.motivesAccompanyingLetterDocumentDescriptor||!t.isMotivesAccompanyingLetterDigitallySigned&&t.motivesAccompanyingLetterDocumentDescriptor&&!t.motivesAccompanyingLetterDocumentDescriptor.IsManuallySigned),e.R7$(),e.SpI(" ",e.bMT(3,2,"str_Control_Tender_Buyer_232_SelectedControl_SendButtton")," ")}}function Xs(n,i){1&n&&(e.j41(0,"div",70)(1,"div",71),e.nrm(2,"mat-spinner",72),e.k0s()()),2&n&&(e.R7$(2),e.Y8G("diameter",60))}function Vs(n,i){if(1&n&&(e.j41(0,"div",67),e.DNE(1,Ns,4,4,"div",4)(2,Xs,3,1,"div",68),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.Y8G("ngIf",!t.showMotivesSpinner),e.R7$(),e.Y8G("ngIf",t.showMotivesSpinner)}}
1function Os(n,i){if(1&n&&(e.j41(0,"div",39)(1,"div",40),e.EFF(2),e.nI1(3,"translate"),e.k0s(),e.j41(4,"div",41),e.EFF(5),e.nI1(6,"nx1date"),e.k0s()()),2&n){const t=e.XpG(3);e.R7$(2),e.SpI("",e.bMT(3,3,"str_Control_Tender_Buyer_232_SelectedControl_Documents_SubmissionDate")," "),e.R7$(2),e.BMQ("id",t.getLabelId("organizationType")),e.R7$(),e.SpI(" ",e.i5U(6,5,t.motivesAccompanyingLetterDocumentDescriptor.SubmissionDateTime,"ShortDateTime")," ")}}function Ls(n,i){if(1&n&&(e.j41(0,"div",20)(1,"div",31)(2,"label",32),e.EFF(3),e.nI1(4,"translate"),e.k0s(),e.DNE(5,Rs,2,1,"label",36)(6,ks,1,3,"nx1-documents-upload",55)(7,xs,2,0,"button",44)(8,Es,2,0,"button",44),e.k0s(),e.j41(9,"div",31)(10,"label",32),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.DNE(13,Bs,2,1,"label",36)(14,$s,1,6,"nx1-documents-upload",56)(15,js,2,0,"button",44)(16,Ms,2,0,"button",44)(17,ws,3,4,"button",57)(18,As,3,5,"mat-checkbox",58)(19,Ps,3,3,"span",37)(20,Gs,3,3,"span",59),e.k0s(),e.DNE(21,Vs,3,2,"div",60)(22,Os,7,8,"div",30),e.k0s()),2&n){const t=e.XpG(2);e.R7$(3),e.JRh(e.bMT(4,16,"str_Control_Tender_Buyer_232_SelectedControl_MotivesSection")),e.R7$(2),e.Y8G("ngIf",t.motivesDocument),e.R7$(),e.Y8G("ngIf",t.CanManageControlSection&&!t.motivesDocument),e.R7$(),e.Y8G("ngIf",t.motivesDocument),e.R7$(),e.Y8G("ngIf",t.CanManageControlSection&&t.motivesDocumentDescriptor&&!t.motivesDocumentDescriptor.IsSubmitted&&!t.motivesAccompanyingLetterDocument),e.R7$(3),e.JRh(e.bMT(12,18,"str_Control_Tender_Buyer_232_SelectedControl_AccompanyingLetter")),e.R7$(2),e.Y8G("ngIf",t.motivesAccompanyingLetterDocument),e.R7$(),e.Y8G("ngIf",t.CanManageControlSection&&!t.motivesAccompanyingLetterDocument),e.R7$(),e.Y8G("ngIf",t.motivesAccompanyingLetterDocument),e.R7$(),e.Y8G("ngIf",t.CanManageControlSection&&t.motivesAccompanyingLetterDocumentDescriptor&&!t.motivesAccompanyingLetterDocumentDescriptor.IsSubmitted),e.R7$(),e.Y8G("ngIf",t.CanManageControlSection&&t.motivesAccompanyingLetterDocumentDescriptor&&!t.motivesAccompanyingLetterDocumentDescriptor.IsSubmitted),e.R7$(),e.Y8G("ngIf",t.CanManageControlSection&&t.motivesAccompanyingLetterDocumentDescriptor&&!t.motivesAccompanyingLetterDocumentDescriptor.IsSubmitted),e.R7$(),e.Y8G("ngIf",t.CanManageControlSection&&t.motivesAccompanyingLetterDocumentDescriptor&&t.motivesAccompanyingLetterDocumentDescriptor.IsSubmitted&&!t.motivesAccompanyingLetterDocumentDescriptor.IsManuallySigned),e.R7$(),e.Y8G("ngIf",t.CanManageControlSection&&t.motivesAccompanyingLetterDocumentDescriptor&&t.motivesAccompanyingLetterDocumentDescriptor.IsSubmitted&&t.motivesAccompanyingLetterDocumentDescriptor.IsManuallySigned),e.R7$(),e.Y8G("ngIf",t.CanManageControlSection&&(!t.motivesAccompanyingLetterDocumentDescriptor||!t.motivesAccompanyingLetterDocumentDescriptor.IsSubmitted)),e.R7$(),e.Y8G("ngIf",t.motivesAccompanyingLetterDocumentDescriptor&&t.motivesAccompanyingLetterDocumentDescriptor.IsSubmitted&&t.motivesAccompanyingLetterDocumentDescriptor.SubmissionDateTime)}}function Ys(n,i){if(1&n&&(e.j41(0,"label",33),e.EFF(1),e.k0s()),2&n){const t=e.XpG(3);e.R7$(),e.SpI(" ",t.selectedStatementStage2.Number," ")}}function Us(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",34),e.bIt("click",function(){e.eBV(t);const o=e.XpG(3);return e.Njj(o.downloadStatenentStage2Document())}),e.nrm(1,"i",35),e.k0s()}}function Js(n,i){if(1&n&&(e.j41(0,"div",41),e.EFF(1),e.nI1(2,"nx1date"),e.k0s()),2&n){const t=e.XpG(3);e.BMQ("id",t.getLabelId("organizationType")),e.R7$(),e.SpI(" ",e.i5U(2,2,t.statementStage2DocumentDescriptor.SubmissionDateTime,"ShortDateTime")," ")}}function Ks(n,i){if(1&n&&(e.j41(0,"div",20)(1,"div",43),e.DNE(2,Ys,2,1,"label",36)(3,Us,2,0,"button",44),e.k0s(),e.j41(4,"div",45)(5,"div",40),e.EFF(6),e.nI1(7,"translate"),e.k0s(),e.DNE(8,Js,3,5,"div",46),e.k0s()()),2&n){const t=e.XpG(2);e.R7$(2),e.Y8G("ngIf",t.statementStage2Document),e.R7$(),e.Y8G("ngIf",t.statementStage2Document),e.R7$(2),e.BMQ("id",t.getLabelId("organizationType")),e.R7$(),e.SpI("",e.bMT(7,5,"str_Control_Tender_Buyer_232_SelectedControl_StatementSendOn")," "),e.R7$(2),e.Y8G("ngIf",t.statementStage2DocumentDescriptor)}}function zs(n,i){1&n&&(e.j41(0,"div",20)(1,"label",47),e.EFF(2),e.nI1(3,"translate"),e.k0s()()),2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"str_Control_Tender_Buyer_232_SelectedControl_NoSendStatement")," "))}
1function Qs(n,i){if(1&n){const t=e.RV6();e.j41(0,"tr")(1,"td")(2,"span",53),e.bIt("click",function(){const o=e.eBV(t).index,s=e.XpG(3);return e.Njj(s.downloadDocument(s.previousStatementsDocuments2[o].Id))}),e.EFF(3),e.k0s()(),e.j41(4,"td")(5,"span",54),e.EFF(6),e.nI1(7,"nx1date"),e.k0s()()()}if(2&n){const t=i.$implicit;e.R7$(3),e.JRh(t.Number),e.R7$(3),e.JRh(e.i5U(7,2,t.SubmissionDateTime,"ShortDateTime"))}}function Hs(n,i){if(1&n&&(e.j41(0,"div",48)(1,"div",73)(2,"table")(3,"tr")(4,"td")(5,"label",50),e.EFF(6),e.nI1(7,"translate"),e.k0s()(),e.j41(8,"td")(9,"label",51),e.EFF(10),e.nI1(11,"translate"),e.k0s()()(),e.DNE(12,Qs,8,5,"tr",52),e.k0s()()()),2&n){const t=e.XpG(2);e.R7$(6),e.JRh(e.bMT(7,3,"str_Control_232_PreviousStatements")),e.R7$(4),e.JRh(e.bMT(11,5,"str_Control_Tender_Buyer_232_SelectedControl_StatementSendOn")),e.R7$(2),e.Y8G("ngForOf",t.previousStatements2)}}function qs(n,i){if(1&n&&(e.j41(0,"div",6)(1,"div",7)(2,"div",8)(3,"div",9)(4,"div",10)(5,"span"),e.EFF(6),e.k0s()()(),e.j41(7,"div",11)(8,"div",12)(9,"div",13)(10,"div",14),e.EFF(11),e.nI1(12,"translate"),e.k0s(),e.j41(13,"div",14),e.EFF(14),e.nI1(15,"translate"),e.k0s(),e.j41(16,"div",15),e.EFF(17),e.nI1(18,"translate"),e.k0s()(),e.j41(19,"div",16)(20,"div",17),e.EFF(21),e.nI1(22,"nx1EnumTranslate"),e.nI1(23,"translate"),e.k0s(),e.j41(24,"div",17),e.EFF(25),e.nI1(26,"nx1EnumTranslate"),e.nI1(27,"translate"),e.k0s(),e.j41(28,"div",18),e.EFF(29," --- "),e.k0s()()()()()(),e.j41(30,"div")(31,"div",19)(32,"div",20)(33,"div",21)(34,"label",22),e.EFF(35),e.nI1(36,"translate"),e.k0s()()(),e.DNE(37,us,5,3,"div",23)(38,Cs,5,4,"ng-template",null,0,e.C5r),e.k0s()(),e.j41(40,"div",24)(41,"div",20)(42,"div",21)(43,"label",22),e.EFF(44),e.nI1(45,"translate"),e.k0s()()(),e.DNE(46,Is,9,7,"div",25)(47,Ss,4,3,"ng-template",null,1,e.C5r),e.j41(49,"div",26),e.DNE(50,Ts,13,7,"div",27),e.k0s()(),e.j41(51,"div",24)(52,"div",20)(53,"div",21)(54,"label",22),e.EFF(55),e.nI1(56,"translate"),e.k0s()()(),e.DNE(57,Fs,5,3,"div",25)(58,Ls,23,20,"ng-template",null,2,e.C5r),e.k0s(),e.j41(60,"div",24)(61,"div",20)(62,"div",21)(63,"label",22),e.EFF(64),e.nI1(65,"translate"),e.k0s()()(),e.DNE(66,Ks,9,7,"div",25)(67,zs,4,3,"ng-template",null,3,e.C5r),e.j41(69,"div",26),e.DNE(70,Hs,13,7,"div",27),e.k0s()()()),2&n){const t=i.ngIf,r=e.sdS(39),o=e.sdS(48),s=e.sdS(59),d=e.sdS(68),a=e.XpG();e.R7$(6),e.SpI(" ",t.Number?t.Number:"T"+a.tender.Id," "),e.R7$(5),e.JRh(e.bMT(12,26,"str_Control_Tender_Buyer_232_SelectedControl_Status")),e.R7$(3),e.JRh(e.bMT(15,28,"str_Control_Tender_Buyer_232_SelectedControl_Phase")),e.R7$(3),e.JRh(e.bMT(18,30,"str_Control_Tender_Buyer_232_SelectedControl_To")),e.R7$(3),e.BMQ("id",a.getId("start-date")),e.R7$(),e.SpI(" ",e.bMT(23,35,e.i5U(22,32,t.Status,a.statusEnum))," "),e.R7$(3),e.BMQ("id",a.getId("start-date")),e.R7$(),e.SpI(" ",e.bMT(27,40,e.i5U(26,37,a.getControlContextPhase232EnumValue(t.Phase232),a.phase232Enum))," "),e.R7$(3),e.BMQ("id",a.getId("start-date")),e.R7$(7),e.JRh(e.bMT(36,42,"str_Control_Tender_Buyer_232a_DocumentsSectionTitle")),e.R7$(2),e.Y8G("ngIf",a.areDocumentProjectsOverdue)("ngIfElse",r),e.R7$(3),e.Y8G("ngClass",e.eq3(50,Q,!a.isStatement1PanelEnabled)),e.R7$(4),e.JRh(e.bMT(45,44,"str_Control_Tender_Buyer_232_SelectedControl_StatementStage1")),e.R7$(2),e.Y8G("ngIf",a.statementStage1DocumentDescriptor&&a.statementStage1DocumentDescriptor.IsSubmitted)("ngIfElse",o),e.R7$(4),e.Y8G("ngIf",a.previousStatements1.length>0),e.R7$(),e.Y8G("ngClass",e.eq3(52,Q,!a.isMotivesPanelEnabled)),e.R7$(4),e.JRh(e.bMT(56,46,"str_Control_Tender_Buyer_232_SelectedControl_MotivesSection")),e.R7$(2),e.Y8G("ngIf",(!a.motivesDocumentDescriptor||!a.motivesDocumentDescriptor.IsSubmitted)&&a.selectedControlContext232a.MotivesSubmissionDeadline&&!a.selectedControlContext232a.IsMotivesSubmissionDeadlineInTheFuture)("ngIfElse",s),e.R7$(3),e.Y8G("ngClass",e.eq3(54,Q,!a.isStatement2PanelEnabled)),e.R7$(4),e.JRh(e.bMT(65,48,"str_Control_Tender_Buyer_232_SelectedControl_StatementStage2")),e.R7$(2),e.Y8G("ngIf",a.selectedStatementStage2&&a.selectedStatementStage2.SubmissionDateTime)("ngIfElse",d),e.R7$(4),e.Y8G("ngIf",a.previousStatements2.length>0)}}function Ws(n,i){1&n&&e.eu8(0)}
1function ec(n,i){if(1&n&&(e.j41(0,"span"),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.JRh(t.controlContext.Number)}}function tc(n,i){if(1&n&&(e.j41(0,"label",32),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.priorInformationNoticeDocument.Name," ")}}function nc(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.downloadPriorInformationNotice())}),e.nrm(1,"i",34),e.k0s()}}function oc(n,i){if(1&n&&(e.j41(0,"div"),e.DNE(1,tc,2,1,"label",21)(2,nc,2,0,"button",19),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.priorInformationNoticeDocument),e.R7$(),e.Y8G("ngIf",t.priorInformationNoticeDocument)}}function rc(n,i){if(1&n&&(e.j41(0,"div",35),e.nrm(1,"mat-spinner",36),e.k0s()),2&n){const t=e.XpG();e.AVh("overlay-loading--show",t.showOverlay),e.R7$(),e.Y8G("diameter",60)}}function ic(n,i){if(1&n&&(e.j41(0,"label",32),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.decisionForStartingATenderingProcedureDocument.Name," ")}}function sc(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.downloadDecisionForStartingATenderingProcedure())}),e.nrm(1,"i",34),e.k0s()}}function cc(n,i){if(1&n&&(e.j41(0,"div"),e.DNE(1,ic,2,1,"label",21)(2,sc,2,0,"button",19),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.decisionForStartingATenderingProcedureDocument),e.R7$(),e.Y8G("ngIf",t.decisionForStartingATenderingProcedureDocument)}}function ac(n,i){if(1&n&&(e.j41(0,"div",35),e.nrm(1,"mat-spinner",36),e.k0s()),2&n){const t=e.XpG();e.AVh("overlay-loading--show",t.showOverlay),e.R7$(),e.Y8G("diameter",60)}}function lc(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.generateDecisionAndNoticePdfs())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"str_Control_Tender_Buyer_232_DocumentSubmission_Generate")," "))}function dc(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.deleteDecisionAndNoticeDocumentDescriptors())}),e.nrm(1,"i",37),e.EFF(2),e.nI1(3,"translate"),e.k0s()}2&n&&(e.R7$(2),e.SpI(" ",e.bMT(3,1,"str_Control_Tender_Buyer_232_DocumentSubmission_Remove")," "))}function uc(n,i){if(1&n&&(e.j41(0,"label",32),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.SpI(" ",t.technicalSpecificationDocument.Name," ")}}function mc(n,i){if(1&n){const t=e.RV6();e.j41(0,"nx1-documents-upload",38),e.bIt("save",function(o){e.eBV(t);const s=e.XpG();return e.Njj(s.onAddTechnicalSpecificationDocuments(o))}),e.k0s()}2&n&&e.Y8G("keyword","str_Common_add")("showConsentCheckbox",!1)("multiple",!1)}function _c(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.downloadTechnicalSpecification())}),e.nrm(1,"i",34),e.k0s()}}function pc(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.deleteTechnicalSpecificationDescriptor())}),e.nrm(1,"i",37),e.k0s()}}function gc(n,i){if(1&n&&(e.j41(0,"label",32),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.SpI(" ",t.awardMethodDocument.Name," ")}}function hc(n,i){if(1&n){const t=e.RV6();e.j41(0,"nx1-documents-upload",39),e.bIt("save",function(o){e.eBV(t);const s=e.XpG();return e.Njj(s.onAddAwardMethodDocuments(o))}),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("keyword","str_Common_add")("showConsentCheckbox",!1)("isDisabled",t.archiveDocument)("multiple",!1)}}function bc(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.downloadAwardMethod())}),e.nrm(1,"i",34),e.k0s()}}function Cc(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.deleteAwardMethodDescriptor())}),e.nrm(1,"i",37),e.k0s()}}function fc(n,i){if(1&n&&(e.j41(0,"label",32),e.EFF(1),e.k0s()),2&n){const t=e.XpG(2);e.R7$(),e.SpI(" ",t.archiveDocument.Name," ")}}function vc(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",26),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.generateArchive())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const t=e.XpG(2);e.Y8G("disabled",!t.priorInformationNoticeDocument||!t.decisionForStartingATenderingProcedureDocument||!t.technicalSpecificationDocument),e.R7$(),e.SpI(" ",e.bMT(2,2,"str_Control_Tender_Buyer_232_DocumentSubmission_Generate")," ")}}
1function Dc(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.downloadArchive())}),e.nrm(1,"i",34),e.k0s()}}function Ic(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG(2);return e.Njj(o.deleteArchiveDescriptor())}),e.nrm(1,"i",37),e.k0s()}}function Sc(n,i){if(1&n&&(e.j41(0,"div"),e.DNE(1,fc,2,1,"label",21)(2,vc,3,4,"button",29)(3,Dc,2,0,"button",19)(4,Ic,2,0,"button",19),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.Y8G("ngIf",t.archiveDocument),e.R7$(),e.Y8G("ngIf",!t.archiveDocument),e.R7$(),e.Y8G("ngIf",t.archiveDocument),e.R7$(),e.Y8G("ngIf",t.archiveDocument&&!t.isArchiveAccompanyingLetterDigitallySigned)}}function yc(n,i){if(1&n&&(e.j41(0,"div",35),e.nrm(1,"mat-spinner",36),e.k0s()),2&n){const t=e.XpG();e.AVh("overlay-loading--show",t.showOverlay),e.R7$(),e.Y8G("diameter",60)}}function Tc(n,i){1&n&&(e.j41(0,"div",13),e.EFF(1),e.nI1(2,"translate"),e.k0s()),2&n&&(e.R7$(),e.SpI(" ",e.bMT(2,1,"str_Control_Tender_Buyer_232a_DocumentSubmission_AccompanyingLetter_Hint")," "))}function Fc(n,i){if(1&n&&(e.j41(0,"label",32),e.EFF(1),e.k0s()),2&n){const t=e.XpG();e.R7$(),e.SpI(" ",t.accompanyingLetterDocument.Name," ")}}function Rc(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",33),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.downloadAccompanyingLetter())}),e.nrm(1,"i",34),e.k0s()}}function kc(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",26),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.removeContextWithAllRelatedDocuments())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("disabled",null==t.accompanyingLetterDocumentDescriptor?null:t.accompanyingLetterDocumentDescriptor.IsSubmitted),e.R7$(),e.SpI(" ",e.bMT(2,2,"str_Control_Tender_Buyer_232_DocumentSubmit_Remove")," ")}}function xc(n,i){if(1&n){const t=e.RV6();e.j41(0,"button",40),e.bIt("click",function(){e.eBV(t);const o=e.XpG();return e.Njj(o.submit())}),e.EFF(1),e.nI1(2,"translate"),e.k0s()}if(2&n){const t=e.XpG();e.Y8G("disabled",!t.accompanyingLetterDocumentDescriptor||!t.isArchiveAccompanyingLetterDigitallySigned&&!t.accompanyingLetterDocumentDescriptor.IsManuallySigned||t.accompanyingLetterDocumentDescriptor.IsSubmitted),e.R7$(),e.SpI(" ",e.bMT(2,2,"str_Control_Tender_Buyer_232_DocumentSubmission_Send")," ")}}function Ec(n,i){1&n&&e.nrm(0,"mat-spinner",41),2&n&&e.Y8G("diameter",60)}const Bc=[{path:"",component:ke,canActivate:[ee],data:{title:"str_Control"},children:[{path:"register",component:gt,data:{title:"str_Control_art232"}},{path:"register232a",component:Yi,data:{title:"str_Control_art232"}},{path:"submit233",component:oe,data:{title:"str_Control_art232"}},{path:"submit233/:form233Id",pathMatch:"full",canActivate:[me],component:oe,data:{title:"str_Control_art232"}},{path:"submit235",component:re,data:{title:"str_Control_art232"}},{path:"submit235/:form235Id",pathMatch:"full",canActivate:[_e],component:re,data:{title:"str_Control_art232"}},{path:"view",component:An,data:{title:"str_Control_art232"}},{path:"selected232a",component:(()=>{class n extends F.$G{constructor(t,r,o,s,d,a,p,u,b,C,v,D){super(t),this.viewContainerRef=t,this.dialogService=r,this.changeDetectorRef=o,this.documentService=s,this.tenderStoreService=d,this.route=a,this.router=p,this.routerStoreService=u,this.controlService=b,this.controlStoreService=C,this.controlRelatedDocumentService=v,this.tenderGuard=D,this.phase232Enum=NX1.Model.Enums.ControlContext232Phase,this.statusEnum=NX1.Model.Enums.ControlContextStatus,this.selectedControlContext232aTenderId$=this.routerStoreService.getIdFromParams(this.route.paramMap,"id"),this.isStatement1PanelEnabled=!1,this.isMotivesPanelEnabled=!1,this.isStatement2PanelEnabled=!1,this.areDocumentProjectsOverdue=!1,this.showMotivesSpinner=!1,this.subscriptions=[]}get CanViewControlSection(){return this.tenderGuard.canViewTenderControlSection}get CanManageControlSection(){return this.tenderGuard.canManageTenderControlSection}ngOnInit(){this.tender$=this.tenderStoreService.getCurrentTender();const t=this.tender$.subscribe(r=>{this.tender=r,this.controlService.refreshTenderControlDataInTheStore(this.tender.Id)});this.selectedControlContext232a$=this.controlService.getControlContext232aByTenderId(this.tender.Id),this.isMotivesAccompanyingLetterDigitallySigned$=this.controlStoreService.getIsControlDocumentAlreadySignedByCurrentUser().pipe((0,y.M)(r=>{this.changeDetectorRef.markForCheck()})),this.subscriptions.push(this.selectedControlContext232a$.subscribe(r=>{this.selectedControlContext232a=r,this.selectedControlContext232a.Status===NX1.Model.Enums.ControlContextStatus.CreatedControl&&this.selectedControlContext232a.AssociatedDocumentDescriptors.length>1&&this.goToDocuments(),this.areDocumentProjectsOverdue=this.selectedControlContext232a.Phase232===NX1.Model.Enums.ControlContext232Phase.AwaitingDelayHandling,this.selectedMssForm$=this.controlService.getControl232aFormByTenderId(this.tender.Id),this.selectedStatementStage1=this.selectedControlContext232a.StatementsForStage1.find(o=>o.Id===this.selectedControlContext232a.StatementStage1Id),this.selectedStatementStage2=this.selectedControlContext232a.StatementsForStage2.find(o=>o.Id===this.selectedControlContext232a.StatementStage2Id),this.selectedMssFormDocumentDescriptor=this.controlService.findDocumentDecriptorInArray(this.selectedControlContext232a.AssociatedDocumentDescriptors,NX1.Model.Enums.ControlRelatedDocumentType.ControlByArticle232aRegistrationForm),this.selectedMssFormDocumentDescriptor&&this.selectedMssFormDocumentDescriptor.IsSubmitted&&(this.selectedMssFormDocument$=this.documentService.getDocumentById(this.selectedMssFormDocumentDescriptor.DocumentId),this.subscriptions.push(this.selectedMssFormDocument$.subscribe(o=>{this.selectedMssFormDocument=o,this.changeDetectorRef.markForCheck()}))),this.documentPackageDocumentDescriptor=this.controlService.findDocumentDecriptorInArray(this.selectedControlContext232a.AssociatedDocumentDescriptors,NX1.Model.Enums.ControlRelatedDocumentType.ControlByArticle232aDocumentPackage),this.documentPackageDocumentDescriptor&&this.documentPackageDocumentDescriptor.IsSubmitted&&(this.documentPackageDocument$=this.documentService.getDocumentById(this.documentPackageDocumentDescriptor.DocumentId),this.subscriptions.push(this.documentPackageDocument$.subscribe(o=>{this.documentPackageDocument=o,this.changeDetectorRef.markForCheck(),this.documentPackageAccompanyingLetterDocumentDescriptor=this.controlService.findDocumentDecriptorInArray(this.selectedControlContext232a.AssociatedDocumentDescriptors,NX1.Model.Enums.ControlRelatedDocumentType.AccompanyingLetter,this.documentPackageDocumentDescriptor.Id),this.documentPackageAccompanyingLetterDocumentDescriptor&&this.documentPackageAccompanyingLetterDocumentDescriptor.IsSubmitted&&(this.documentPackageAccompanyingLetterDocument$=this.documentService.getDocumentById(this.documentPackageAccompanyingLetterDocumentDescriptor.DocumentId),this.subscriptions.push(this.documentPackageAccompanyingLetterDocument$.subscribe(s=>{this.documentPackageAccompanyingLetterDocument=s,this.changeDetectorRef.markForCheck()})))}))),this.loadMotivesSection(),this.selectedStatementStage1&&(this.statementStage1DocumentDescriptor=this.controlService.findDocumentDecriptorInArrayByDescriptorId(this.selectedControlContext232a.AssociatedDocumentDescriptors,this.selectedStatementStage1.ControlRelatedDocumentDescriptorId),this.statementStage1DocumentDescriptor&&this.statementStage1DocumentDescriptor.IsSubmitted&&(this.statementStage1Document$=this.documentService.getDocumentById(this.statementStage1DocumentDescriptor.DocumentId),this.subscriptions.push(this.statementStage1Document$.subscribe(o=>{this.statementStage1Document=o,this.changeDetectorRef.markForCheck()})))),this.selectedStatementStage2&&(this.statementStage2DocumentDescriptor=this.controlService.findDocumentDecriptorInArrayByDescriptorId(this.selectedControlContext232a.AssociatedDocumentDescriptors,this.selectedStatementStage2.ControlRelatedDocumentDescriptorId),this.statementStage2DocumentDescriptor&&this.statementStage2DocumentDescriptor.IsSubmitted&&(this.statementStage2Document$=this.documentService.getDocumentById(this.statementStage2DocumentDescriptor.DocumentId),this.subscriptions.push(this.statementStage2Document$.subscribe(o=>{this.statementStage2Document=o,this.changeDetectorRef.markForCheck()})))),this.updateSectionsEnabledDisabledStatus(),this.loadPreviousStatementsDataForBothStages()})),this.subscriptions.push(t)}ngOnDestroy(){for(const t of this.subscriptions)t.unsubscribe()}goToDocuments(){this.router.navigate(["/tender",this.tender.Id,"buyer","control","documents-mss"])}openRegFormDialog(t){const r=new h.Pe;
1r.viewContainerRef=this.viewContainerRef,this.controlRegFormViewRef=this.dialogService.open(pe,r),this.controlRegFormViewRef.componentInstance.regFInfo=t}onAddMotivesDocuments(t){const r=this.controlService.generateDescriptorInfoObjectsInFrontEnd(t,NX1.Model.Enums.ControlType.ByArticle232a,this.selectedControlContext232a.Id,NX1.Model.Enums.ControlRelatedDocumentType.RefusalOfAmendmentMotive),o=this.controlRelatedDocumentService.createDescriptors(r);this.subscriptions.push(o.subscribe(s=>{this.motivesDocument=null,this.motivesDocument$=null,this.motivesDocumentDescriptor=s[0],this.selectedControlContext232a.AssociatedDocumentDescriptors.push(this.motivesDocumentDescriptor),this.loadMotivesSection()}))}onAddMotivesAccompanyingLetterDocuments(t){const r=this.controlService.generateDescriptorInfoObjectsInFrontEnd(t,NX1.Model.Enums.ControlType.ByArticle232a,this.selectedControlContext232a.Id,NX1.Model.Enums.ControlRelatedDocumentType.AccompanyingLetter,this.motivesDocumentDescriptor.Id),o=this.controlRelatedDocumentService.createDescriptors(r);this.subscriptions.push(o.subscribe(s=>{this.motivesAccompanyingLetterDocument=null,this.motivesAccompanyingLetterDocument$=null,this.motivesAccompanyingLetterDocumentDescriptor=s[0],this.selectedControlContext232a.AssociatedDocumentDescriptors.push(this.motivesAccompanyingLetterDocumentDescriptor),this.loadMotivesSection()}))}deleteMotivesDescriptor(){this.motivesDocumentDescriptor&&this.motivesDocumentDescriptor.Id&&this.controlRelatedDocumentService.deleteDescriptor(this.motivesDocumentDescriptor.Id).subscribe(()=>{const t=this.selectedControlContext232a.AssociatedDocumentDescriptors.findIndex(r=>r.Id===this.motivesDocumentDescriptor.Id);this.selectedControlContext232a.AssociatedDocumentDescriptors.splice(t,1),this.motivesDocument=null,this.motivesDocument$=null,this.motivesDocumentDescriptor=null,this.motivesDocumentDescriptor$=null,this.changeDetectorRef.markForCheck()})}deleteMotivesAccompanyingLetterDescriptor(){this.motivesAccompanyingLetterDocumentDescriptor&&this.motivesAccompanyingLetterDocumentDescriptor.Id&&this.controlRelatedDocumentService.deleteDescriptor(this.motivesAccompanyingLetterDocumentDescriptor.Id).subscribe(()=>{const t=this.selectedControlContext232a.AssociatedDocumentDescriptors.findIndex(r=>r.Id===this.motivesAccompanyingLetterDocumentDescriptor.Id);this.selectedControlContext232a.AssociatedDocumentDescriptors.splice(t,1),this.motivesAccompanyingLetterDocument=null,this.motivesAccompanyingLetterDocument$=null,this.motivesAccompanyingLetterDocumentDescriptor=null,this.motivesAccompanyingLetterDocumentDescriptor$=null,this.changeDetectorRef.markForCheck()})}downloadRegistrationFormDocument(){const t=this.documentService.downloadDocumentById(this.selectedMssFormDocument.Id).subscribe(()=>{t.unsubscribe()})}downloadDocumentPackage(){const t=this.documentService.downloadDocumentById(this.documentPackageDocument.Id).subscribe(()=>{t.unsubscribe()})}downloadDocumentPackageAccompanyingLetter(){const t=this.documentService.downloadDocumentById(this.documentPackageAccompanyingLetterDocument.Id).subscribe(()=>{t.unsubscribe()})}downloadStatenentStage1Document(){const t=this.documentService.downloadDocumentById(this.statementStage1Document.Id).subscribe(()=>{t.unsubscribe()})}downloadMotives(){const t=this.documentService.downloadDocumentById(this.motivesDocument.Id).subscribe(()=>{t.unsubscribe()})}downloadMotivesAccompanyingLetter(){const t=this.documentService.downloadDocumentById(this.motivesAccompanyingLetterDocument.Id).subscribe(()=>{t.unsubscribe()})}downloadStatenentStage2Document(){const t=this.documentService.downloadDocumentById(this.statementStage2Document.Id).subscribe(()=>{t.unsubscribe()})}downloadDocument(t){this.subscriptions.push(this.documentService.downloadDocumentById(t).subscribe())}openSignaturesDialog(t,r,o){this.destroySignDocumentRef(),this.controlStoreService.loadControlDocumentSignatures(t.Id);const s=new h.Pe;s.viewContainerRef=this.viewContainerRef,this.digitalSignaturesDialogComponent=this.dialogService.open(B.m,s),this.digitalSignaturesDialogComponent.componentInstance.pdfDocument=t,this.digitalSignaturesDialogComponent.componentInstance.digitalSignaturesList$=this.controlStoreService.getCurrentControlDocumentDigitalSignatures(),this.digitalSignaturesDialogComponent.componentInstance.canManageSignatures=o,this.digitalSignaturesDialogComponent.componentInstance.isAlreadySigned$=this.controlStoreService.getIsControlDocumentAlreadySignedByCurrentUser(),this.digitalSignaturesDialogComponent.componentInstance.isLoadingSignatures$=this.controlStoreService.getIsLoadingSignatures(),this.digitalSignaturesDialogComponent.componentInstance.objectId=r.Id,this.digitalSignaturesDialogComponent.componentInstance.objectGuid=r.Guid,this.digitalSignaturesDialogComponent.componentInstance.entityId=r.EntityId,this.digitalSignaturesDialogComponent.componentInstance.deleteConfirmationContentKeyword="str_DocumentEditor_delete_signature_confirmation_message",this.digitalSignaturesDialogComponent.componentInstance.signTitleKeyword="str_C
1ommon_sign",this.changeDetectorRef.markForCheck()}onMotivesAccompanyingLetterManuallySignedChanged(t){this.motivesAccompanyingLetterDocumentDescriptor.IsManuallySigned=t.checked;const r=this.controlRelatedDocumentService.updateDescriptor(this.motivesAccompanyingLetterDocumentDescriptor).subscribe(o=>{this.motivesAccompanyingLetterDocumentDescriptor=o,r.unsubscribe(),this.changeDetectorRef.markForCheck()})}submitMotives(){this.showMotivesSpinner=!0;const t=this.controlService.submitMotivesForControlBy232a(this.selectedControlContext232a.Id).subscribe(()=>{this.motivesDocumentDescriptor.IsSubmitted=!0,this.motivesDocumentDescriptor.SubmissionDateTime=new Date,this.controlService.addOrReplaceDocumentDecriptorInArray(this.selectedControlContext232a.AssociatedDocumentDescriptors,this.motivesDocumentDescriptor),this.motivesAccompanyingLetterDocumentDescriptor.IsSubmitted=!0,this.motivesAccompanyingLetterDocumentDescriptor.SubmissionDateTime=new Date,this.controlService.addOrReplaceDocumentDecriptorInArray(this.selectedControlContext232a.AssociatedDocumentDescriptors,this.motivesAccompanyingLetterDocumentDescriptor),this.showMotivesSpinner=!1,this.changeDetectorRef.markForCheck(),t.unsubscribe()})}getControlContextPhase232EnumValue(t){let r;try{r=t}catch{r=NX1.Model.Enums.ControlContext232Phase.None}return r}updateSectionsEnabledDisabledStatus(){const t=this.selectedControlContext232a.Phase232;this.isStatement1PanelEnabled=t>=NX1.Model.Enums.ControlContext232Phase.AwaitingExpertAssignmentForStage1,this.isMotivesPanelEnabled=t>NX1.Model.Enums.ControlContext232Phase.AwaitingStatementFromPpaForStage1,this.isStatement2PanelEnabled=t>=NX1.Model.Enums.ControlContext232Phase.AwaitingExpertAssignmentForStage2}loadPreviousStatementsDataForBothStages(){this.previousStatements1=this.selectedControlContext232a.StatementsForStage1.filter(t=>t.Id!==this.selectedControlContext232a.StatementStage1Id),this.previousStatements1.sort((t,r)=>this.comparingFunction(t.SubmissionDateTime,r.SubmissionDateTime,!1)),this.previousStatementsDocumentDescriptors1=[],this.previousStatementsDocuments1=[];for(let t=0;t<this.previousStatements1.length;t++){const r=this.previousStatements1[t],o=this.selectedControlContext232a.AssociatedDocumentDescriptors.find(s=>s.Id===r.ControlRelatedDocumentDescriptorId);this.previousStatementsDocumentDescriptors1.push(o),this.subscriptions.push(this.documentService.getDocumentById(o.DocumentId).subscribe(s=>{this.previousStatementsDocuments1.push(s),this.previousStatementsDocuments1.sort((d,a)=>this.comparingFunction(d.CreatedDate,a.CreatedDate,!1)),this.changeDetectorRef.markForCheck()}))}this.previousStatements2=this.selectedControlContext232a.StatementsForStage2.filter(t=>t.Id!==this.selectedControlContext232a.StatementStage2Id),this.previousStatements2.sort((t,r)=>this.comparingFunction(t.SubmissionDateTime,r.SubmissionDateTime,!1)),this.previousStatementsDocumentDescriptors2=[],this.previousStatementsDocuments2=[];for(let t=0;t<this.previousStatements2.length;t++){const r=this.previousStatements2[t],o=this.selectedControlContext232a.AssociatedDocumentDescriptors.find(s=>s.Id===r.ControlRelatedDocumentDescriptorId);this.previousStatementsDocumentDescriptors2.push(o),this.subscriptions.push(this.documentService.getDocumentById(o.DocumentId).subscribe(s=>{this.previousStatementsDocuments2.push(s),this.previousStatementsDocuments2.sort((d,a)=>this.comparingFunction(d.CreatedDate,a.CreatedDate,!1)),this.changeDetectorRef.markForCheck()}))}}comparingFunction(t,r,o){typeof o>"u"&&(o=!0);let s=1;return o||(s=-1),t>r?1*s:t<r?-1*s:0}destroySignDocumentRef(){this.digitalSignaturesDialogComponent&&(this.digitalSignaturesDialogComponent.close(),this.digitalSignaturesDialogComponent=null)}loadMotivesSection(){this.motivesDocumentDescriptor=this.controlService.findDocumentDecriptorInArray(this.selectedControlContext232a.AssociatedDocumentDescriptors,NX1.Model.Enums.ControlRelatedDocumentType.RefusalOfAmendmentMotive),this.motivesDocumentDescriptor&&(this.motivesDocument$=this.documentService.getDocumentById(this.motivesDocumentDescriptor.DocumentId),this.subscriptions.push(this.motivesDocument$.subscribe(t=>{this.motivesDocument=t,this.changeDetectorRef.markForCheck(),this.motivesAccompanyingLetterDocumentDescriptor=this.controlService.findDocumentDecriptorInArray(this.selectedControlContext232a.AssociatedDocumentDescriptors,NX1.Model.Enums.ControlRelatedDocumentType.AccompanyingLetter,this.motivesDocumentDescriptor.Id),this.motivesAccompanyingLetterDocumentDescriptor&&(this.motivesAccompanyingLetterDocument$=this.documentService.getDocumentById(this.motivesAccompanyingLetterDocumentDescriptor.DocumentId),this.subscriptions.push(this.motivesAccompanyingLetterDocument$.subscribe(r=>{this.motivesAccompanyingLetterDocument=r,this.changeDetectorRef.markForCheck(),this.controlStoreService.loadControlDocumentSignatures(this.motivesAccompanyingLetterDocument.Id),this.isMotivesAccompanyingLetterDigitallySigned$=this.controlStoreService.getIsControlDocumentAlreadySignedByCurrentUser().pipe((0,y.M)(o=>{this.isMotivesAccompanyingLetterDigitallySigned=o,this.changeDetectorRef.markForCheck()}))})))})))}static{this.\u0275fac=function(r){return new(r||n)(e.rXU(e.c1b),e.rXU(h.o3),e.rXU(e.gRc),e.rXU(l.DKw),e.rXU(l.$gx),e.rXU(g.nX),e.rXU(g.Ix),e.rXU(l.o9Y),e.rXU(l.het),e.rXU(l.CFu),e.rXU(l.N$f),e.rXU(R.U))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["nx1-tender-buyer-control-selected-232a"]],features:[e.Jv_([{provide:$.Q,useClass:j.Q}]),e.Vt3],decls:4,vars:6,consts:[["elseBlockDocumentPackage",""],["noStatementStage1Block",""],["elseBlockMotives",""],["noStatementStage2Block",""],[4,"ngIf"],["class","min--width-600",4,"ngIf"],[1,"min--width-600"],[1,"nxcard","bg--white","z1","margin--bottom-20","margin--top-20"],[1,"nxcard__header"],[1,"nxcard__header-title"],[1,"nxcard__header-title-content"],[1,"pos--relative","flex-element--right","flex-row"],[1,"flex-row","padding--8","padding--left-15","align--center","margin--5"],[1,""],[1,"margin--bottom-5","text--14px","text--bold","text--grey25","text--uppercase"],[1,"text--14px","text--bold","text--grey25","text--uppercase"],[1,"text--bold","text--left"],[1,"margin--bottom-5","padding--left-10","text--14px","text--bold","text--grey55","text--uppercase"],[1,"padding--left-10","text--14px","text--bold","text--grey55","text--uppercase"],[1,"nxcard","margin--bottom-20","bg--white","z1"],[1,"border--bottom","nxcard__body-row"],[1,"break-word","col-md-12","col-xs-12","nxcard__body-cell","overflow-hidden"],[1,"profile-value"],[4,"ngIf","ngIfElse"],[3,"ngClass"],["class","border--bottom nxcard__body-row",4,"ngIf","ngIfElse"],[1,"nxcard__body-row"],["class","margin--top-10 col-md-12",4,"ngIf"],[1,"margin--10"],["class","break-word col-md-4 col-xs-4 nxcard__body-cell overflow-hidden",4,"ngIf"],["class","col-md-4 col-xs-4 nxcard__body-cell",4,"ngIf"],[1,"break-word","col-md-4","col-xs-4","nxcard__body-cell","overflow-hidden"],[1,"profile-label","margin--bottom-5"],[1,"profile-value","margin--bottom-5"],["mat-button","","color","primary",1,"margin--left-10",3,"click"],[1,"mdi","mdi-download"],["class","profile-value margin--bottom-5",4,"ngIf"],["class","margin--left-10 link-text text--bold text--20px",3,"click",4,"ngIf"],[1,"margin--left-10","link-text","text--bold","text--20px",3,"click"],[1,"col-md-4","col-xs-4","nxcard__body-cell"],[1,"profile-label"],[1,"text--bold","text--20px"],["mat-button","","color","primary",1,"margin--top-5","margin--right-5",3,"click"],[1,"break-word","col-md-6","col-xs-6","nxcard__body-cell","overflow-hidden"],["mat-button","","color","primary","class","margin--left-10",3,"click",4,"ngIf"],[1,"col-md-6","col-xs-6","nxcard__body-cell"],["class","text--bold text--20px",4,"ngIf"],[1,"margin--20"],[1,"margin--top-10","col-md-12"],[1,"col-md-12","col-xs-12","nxcard__body-cell","padding--left-0","padding--top-0"],[1,"text--bold","text--15px"],[1,"text--bold","text--15px","margin--left-5"],[4,"ngFor","ngForOf"],[1,"link-text","text--bold","text--15px",3,"click"],[1,"margin--left-5"],[3,"keyword","showConsentCheckbox","multiple","save",4,"ngIf"],[3,"keyword","showConsentCheckbox","multiple","ngClass","save",4,"ngIf"],["mat-button","","color","primary","class","margin--left-10",3,"disabled","click",4,"ngIf"],["class","margin--left-10",3,"checked","disabled","change",4,"ngIf"],["class","margin--left-10 text--bold text--20px",4,"ngIf"],["class","break-word col-md-4 col-xs-6 nxcard__body-cell overflow-hidden",4,"ngIf"],[3,"save","keyword","showConsentCheckbox","multiple"],[1,"mdi","mdi-window-close"],[3,"save","keyword","showConsentCheckbox","multiple","ngClass"],["mat-button","","color","primary",1,"margin--left-10",3,"click","disabled"],[1,"margin--left-10",3,"change","checked","disabled"],[1,"margin--left-10","text--bold","text--20px"],[1,"break-word","col-md-4","col-xs-6","nxcard__body-cell","overflow-hidden"],["class","display--flex","style","height: 100%;",4,"ngIf"],["mat-button","","color","primary",1,"margin--left-10","mat-warn",3,"click","disabled"],[1,"display--flex",2,"height","100%"],[2,"margin","auto"],[3,"diameter"],[1,"col-md-12","col-xs-12","nxcard__body-cell","padding--left-0","padding--right-0","padding--top-0"]],template:function(r,o){1&r&&(e.DNE(0,ds,1,0,"ng-container",4),e.nI1(1,"async"),e.DNE(2,qs,71,56,"div",5),e.nI1(3,"async")),2&r&&(e.Y8G("ngIf",e.bMT(1,2,o.isMotivesAccompanyingLetterDigitallySigned$)),e.R7$(2),e.Y8G("ngIf",e.bMT(3,4,o.selectedControlContext232a$)))},dependencies:[m.YU,m.Sq,m.bT,S.iV,N.NZ,k.wS,A.p,m.Jj,I.D9,T.R9,M.O],styles:[".link-text[_ngcontent-%COMP%]{text-decoration:underline;color:#47abcc;cursor:pointer}.link-text[_ngcontent-%COMP%]:hover, .link-text[_ngcontent-%COMP%]:active, .link-text[_ngcontent-%COMP%]:focus{text-decoration:underline}.disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}.min--width-600[_ngcontent-%COMP%]{min-width:600px}"],changeDetection:0})}}return n})(),data:{title:"str_Control_art232"}},{path:"selected233",component:Io,data:{title:"str_Control_art232"}},{path:"selected235",component:se,data:{title:"str_Control_art232"}},{path:"selected235/:context235Id",component:se,data:{title:"str_Control_art232"}},{path:"235/list",component:li,data:{title:"str_Control_art232"}},{path:"documents",component:Nr,data:{title:"str_Control_art232"}},{path:"documents-mss",component:(()=>{class n extends ce.$G{constructor(t,r,o,s,d,a,p,u,b){super(t),this.controlRelatedDocumentService=r,this.controlService=o,this.tenderStoreService=s,this.documentService=d,this.changeDetectorRef=a,this.dialogService=p,this.controlStoreService=u,this.router=b,this.ControlRelatedDocumentType=NX1.Model.Enums.ControlRelatedDocumentType,this.showOverlay=!0,this.showSubmissionLoader=!1}ngOnInit(){this.loadControlContext(),this.isDecisionAndNoticeGenerating=!1,this.isArchiveGenerating=!1}onAddTechnicalSpecificationDocuments(t){const r=this.controlService.generateDescriptorInfoObjectsInFrontEnd(t,NX1.Model.Enums.ControlType.ByArticle232a,this.controlContext.Id,NX1.Model.Enums.ControlRelatedDocumentType.TechnicalSpecification);this.technicalSpecificationDocumentDecriptors$=this.controlRelatedDocumentService.createDescriptors(r),this.technicalSpecificationDocumentDecriptors$.subscribe(o=>{this.loadControlContext()})}onAddAwardMethodDocuments(t){const r=this.controlService.generateDescriptorInfoObjectsInFrontEnd(t,NX1.Model.Enums.ControlType.ByArticle232a,this.controlContext.Id,NX1.Model.Enums.ControlRelatedDocumentType.AwardMethod);this.awardMethodDocumentDecriptors$=this.controlRelatedDocumentService.createDescriptors(r),this.awardMethodDocumentDecriptors$.subscribe(o=>{this.loadControlContext()})}loadControlContext(){this.tender$=this.tenderStoreService.getCurrentTender(),this.tender$.pipe((0,f.s)(1)).subscribe(t=>{this.tender=t,this.controlService.refreshTenderControlDataInTheStore(this.tender.Id),this.controlContext$=this.controlService.getControlContext232aByTenderId(this.tender.Id),this.controlContext$.subscribe(r=>{this.controlContext=r;const o=this.controlContext.AssociatedDocumentDescriptors;this.priorInformationNoticeDocumentDescriptor=this.controlService.findDocumentDecriptorInArray(o,NX1.Model.Enums.ControlRelatedDocumentType.PriorInformationNotice),this.priorInformationNoticeDocument$=null,this.priorInformationNoticeDocument=null,this.priorInformationNoticeDocumentDescriptor&&(this.priorInformationNoticeDocument$=this.documentService.getDocumentById(this.priorInformationNoticeDocumentDescriptor.DocumentId),this.priorInformationNoticeDocument$.subscribe(s=>{this.priorInformationNoticeDocument=s,this.changeDetectorRef.markForCheck()})),this.decisionForStartingATenderingProcedureDocumentDescriptor=this.controlService.findDocumentDecriptorInArray(o,NX1.Model.Enums.ControlRelatedDocumentType.DecisionForStartingATenderingProcedure),this.decisionForStartingATenderingProcedureDocument$=null,this.decisionForStartingATenderingProcedureDocument=null,this.decisionForStartingATenderingProcedureDocumentDescriptor&&(this.decisionForStartingATenderingProcedureDocument$=this.documentService.getDocumentById(this.decisionForStartingATenderingProcedureDocumentDescriptor.DocumentId),this.decisionForStartingATenderingProcedureDocument$.subscribe(s=>{this.decisionForStartingATenderingProcedureDocument=s,this.changeDetectorRef.markForCheck()})),this.technicalSpecificationDocumentDescriptor=this.controlService.findDocumentDecriptorInArray(o,NX1.Model.Enums.ControlRelatedDocumentType.TechnicalSpecification),this.technicalSpecificationDocument$=null,this.technicalSpecificationDocument=null,this.technicalSpecificationDocumentDescriptor&&(this.technicalSpecificationDocument$=this.documentService.getDocumentById(this.technicalSpecificationDocumentDescriptor.DocumentId),this.technicalSpecificationDocument$.subscribe(s=>{this.technicalSpecificationDocument=s,this.changeDetectorRef.markForCheck()})),this.awardMethodDocumentDescriptor=this.controlService.findDocumentDecriptorInArray(o,NX1.Model.Enums.ControlRelatedDocumentType.AwardMethod),this.awardMethodDocument$=null,this.awardMethodDocument=null,this.awardMethodDocumentDescriptor&&(this.awardMethodDocument$=this.documentService.getDocumentById(this.awardMethodDocumentDescriptor.DocumentId),this.awardMethodDocument$.subscribe(s=>{this.awardMethodDocument=s,this.changeDetectorRef.markForCheck()})),this.archiveDocumentDescriptor=this.controlService.findDocumentDecriptorInArray(o,NX1.Model.Enums.ControlRelatedDocumentType.ControlByArticle232aDocumentPackage),this.archiveDocument$=null,this.archiveDocument=null,this.archiveDocumentDescriptor&&(this.archiveDocument$=this.documentService.getDocumentById(this.archiveDocumentDescriptor.DocumentId),this.archiveDocument$.subscribe(s=>{this.archiveDocument=s,this.changeDetectorRef.markForCheck()})),this.accompanyingLetterDocumentDescriptor=this.controlService.findDocumentDecriptorInArray(o,NX1.Model.Enums.ControlRelatedDocumentType.AccompanyingLetter),this.accompanyingLetterDocument$=null,this.accompanyingLetterDocument=null,this.accompanyingLetterDocumentDescriptor&&(this.accompanyingLetterDocument$=this.documentService.getDocumentById(this.accompanyingLetterDocumentDescriptor.DocumentId),this.accompanyingLetterDocument$.subscribe(s=>{this.accompanyingLetterDocument=s,this.changeDetectorRef.markForCheck(),this.controlStoreService.loadControlDocumentSignatures(this.accompanyingLetterDocument.Id),this.isArchiveAccompanyingLetterDigitallySigned$=this.controlStoreService.getIsControlDocumentAlreadySignedByCurrentUser().pipe((0,y.M)(d=>{this.changeDetectorRef.markForCheck(),this.isArchiveAccompanyingLetterDigitallySigned=d}))})),this.changeDetectorRef.markForCheck()})})}deleteDecisionAndNoticeDocumentDescriptors(){this.priorInformationNoticeDocumentDescriptor&&this.priorInformationNoticeDocumentDescriptor.Id&&this.deleteDocumentDescriptorById(this.priorInformationNoticeDocumentDescriptor.Id),this.decisionForStartingATenderingProcedureDocumentDescriptor&&this.decisionForStartingATenderingProcedureDocumentDescriptor.Id&&this.deleteDocumentDescriptorById(this.decisionForStartingATenderingProcedureDocumentDescriptor.Id)}deleteTechnicalSpecificationDescriptor(){this.technicalSpecificationDocumentDescriptor&&this.technicalSpecificationDocumentDescriptor.Id&&this.deleteDocumentDescriptorById(this.technicalSpecificationDocumentDescriptor.Id)}deleteAwardMethod
1Descriptor(){this.awardMethodDocumentDescriptor&&this.awardMethodDocumentDescriptor.Id&&this.deleteDocumentDescriptorById(this.awardMethodDocumentDescriptor.Id)}deleteArchiveDescriptor(){this.archiveDocumentDescriptor&&this.archiveDocumentDescriptor.Id&&this.deleteDocumentDescriptorById(this.archiveDocumentDescriptor.Id)}deleteDocumentDescriptorById(t){this.controlRelatedDocumentService.deleteDescriptor(t).subscribe(()=>{this.loadControlContext()})}generateDecisionAndNoticePdfs(){this.isDecisionAndNoticeGenerating=!0,this.controlService.generateControlContext232aTenderPublicationDocuments(this.controlContext.Id).pipe((0,f.s)(1)).subscribe(t=>{!0===t&&this.loadControlContext(),this.isDecisionAndNoticeGenerating=!1})}generateArchive(){this.isArchiveGenerating=!0,this.controlService.generateControl232aProjectsArchive(this.controlContext.Id).pipe((0,f.s)(1)).subscribe(t=>{!0===t&&(this.loadControlContext(),this.isArchiveGenerating=!1)})}downloadPriorInformationNotice(){const t=this.documentService.downloadDocumentById(this.priorInformationNoticeDocument.Id).subscribe(()=>{t.unsubscribe()})}downloadDecisionForStartingATenderingProcedure(){const t=this.documentService.downloadDocumentById(this.decisionForStartingATenderingProcedureDocument.Id).subscribe(()=>{t.unsubscribe()})}downloadTechnicalSpecification(){const t=this.documentService.downloadDocumentById(this.technicalSpecificationDocument.Id).subscribe(()=>{t.unsubscribe()})}downloadAwardMethod(){const t=this.documentService.downloadDocumentById(this.awardMethodDocument.Id).subscribe(()=>{t.unsubscribe()})}downloadAccompanyingLetter(){const t=this.documentService.downloadDocumentById(this.accompanyingLetterDocument.Id).subscribe(()=>{t.unsubscribe()})}downloadArchive(){const t=this.documentService.downloadDocumentById(this.archiveDocument.Id).subscribe(()=>{t.unsubscribe()})}submit(){this.showSubmissionLoader=!0,this.changeDetectorRef.markForCheck();const t=this.controlService.submitDocumentProjectsForControlBy232a(this.controlContext.Id).subscribe(()=>{t.unsubscribe(),this.router.navigate(["/tender",this.tender.Id,"buyer","control","selected232a"])})}removeContextWithAllRelatedDocuments(){let t;t=this.dialogService.confirm({titleKeyword:"str_Common_are_you_sure",textContentKeyword:"str_Control_Tender_Buyer_232a_Delete_Context_Message",confirmationType:"delete",cancelKeyword:"str_Common_cancel",okKeyword:"str_Common_confirm",requirePassword:!1,showCheckbox:!1}).subscribe(r=>{if(r.confirmed){const o=this.controlService.removeControl232aContext(this.controlContext.Id).subscribe(()=>{o.unsubscribe(),this.router.navigate(["/tender",this.tender.Id,"buyer","control","register232a"])})}t.unsubscribe()})}signLetter(){this.destroySignDocumentRef(),this.controlStoreService.loadControlDocumentSignatures(this.accompanyingLetterDocument.Id);const t=new h.Pe;t.viewContainerRef=this.viewContainerRef,this.digitalSignaturesDialogComponent=this.dialogService.open(B.m,t),this.digitalSignaturesDialogComponent.componentInstance.pdfDocument=this.accompanyingLetterDocument,this.digitalSignaturesDialogComponent.componentInstance.digitalSignaturesList$=this.controlStoreService.getCurrentControlDocumentDigitalSignatures(),this.digitalSignaturesDialogComponent.componentInstance.canManageSignatures=!this.accompanyingLetterDocumentDescriptor.IsSubmitted,this.digitalSignaturesDialogComponent.componentInstance.isAlreadySigned$=this.controlStoreService.getIsControlDocumentAlreadySignedByCurrentUser(),this.digitalSignaturesDialogComponent.componentInstance.isLoadingSignatures$=this.controlStoreService.getIsLoadingSignatures(),this.digitalSignaturesDialogComponent.componentInstance.objectId=this.accompanyingLetterDocumentDescriptor.Id,this.digitalSignaturesDialogComponent.componentInstance.objectGuid=this.accompanyingLetterDocumentDescriptor.Guid,this.digitalSignaturesDialogComponent.componentInstance.entityId=this.accompanyingLetterDocumentDescriptor.EntityId,this.digitalSignaturesDialogComponent.componentInstance.deleteConfirmationContentKeyword="str_DocumentEditor_delete_signature_confirmation_message",this.digitalSignaturesDialogComponent.componentInstance.signTitleKeyword="str_C
1ommon_sign",this.changeDetectorRef.markForCheck()}onAccompanyingLetterManuallySignedChanged(t){this.accompanyingLetterDocumentDescriptor.IsManuallySigned=t.checked;const r=this.controlRelatedDocumentService.updateDescriptor(this.accompanyingLetterDocumentDescriptor).subscribe(o=>{this.accompanyingLetterDocumentDescriptor=o,r.unsubscribe(),this.changeDetectorRef.markForCheck()})}destroySignDocumentRef(){this.digitalSignaturesDialogComponent&&(this.digitalSignaturesDialogComponent.close(),this.digitalSignaturesDialogComponent=null)}static{this.\u0275fac=function(r){return new(r||n)(e.rXU(e.c1b),e.rXU(l.N$f),e.rXU(l.het),e.rXU(l.$gx),e.rXU(l.DKw),e.rXU(e.gRc),e.rXU(h.o3),e.rXU(l.CFu),e.rXU(g.Ix))}}static{this.\u0275cmp=e.VBU({type:n,selectors:[["nx1-tender-buyer-control232a-document-submission"]],features:[e.Jv_([{provide:$.Q,useClass:j.Q}]),e.Vt3],decls:106,vars:72,consts:[[4,"ngIf"],[1,"margin-top--20"],[1,"nxcard","bg--white","z1","margin--bottom-20","margin-top--20"],[1,"nxcard__header"],[1,"nxcard__header-title"],[1,"nxcard__header-title-content"],[1,"pos--relative","flex-element--right","flex-row","display--flex"],[1,"pos--relative","flex-column","content-center","text--bold"],[1,"margin--right-20","text--20px","text--black"],[1,"nxcard","margin--bottom-20","bg--white","z1"],[1,"border--bottom","nxcard__body-row"],[1,"break-word","nxcard__body-cell","overflow-hidden"],[1,"profile-value"],[1,"text--grey40"],[1,"break-wordcol","col-xs-5","nxcard__body-cell","overflow-hidden"],[1,"profile-label","margin--bottom-5"],["class","overlay-loading",3,"overlay-loading--show",4,"ngIf"],[1,"col-xs-5","nxcard__body-cell"],[1,"col-xs-2","nxcard__body-cell"],["mat-button","","color","primary","class","margin--left-10",3,"click",4,"ngIf"],[1,"break-wordcol","col-xs-6","nxcard__body-cell","overflow-hidden"],["class","profile-value margin--bottom-5",4,"ngIf"],[3,"keyword","showConsentCheckbox","multiple","save",4,"ngIf"],[1,"col-xs-6","nxcard__body-cell"],[3,"keyword","showConsentCheckbox","isDisabled","multiple","save",4,"ngIf"],["class","text--grey40",4,"ngIf"],["mat-button","","color","primary",1,"margin--left-10",3,"click","disabled"],[1,"nxcard__footer","no-border","display--flex","right"],[1,"pos--relative","flex-element--right","flex-row","margin--right-10"],["mat-button","","color","primary","class","margin--left-10",3,"disabled","click",4,"ngIf"],["mat-button","","color","primary","class","margin--left-10 mat-warn",3,"disabled","click",4,"ngIf"],["class","margin--10",3,"diameter",4,"ngIf"],[1,"profile-value","margin--bottom-5"],["mat-button","","color","primary",1,"margin--left-10",3,"click"],[1,"mdi","mdi-download"],[1,"overlay-loading"],[3,"diameter"],[1,"mdi","mdi-window-close"],[3,"save","keyword","showConsentCheckbox","multiple"],[3,"save","keyword","showConsentCheckbox","isDisabled","multiple"],["mat-button","","color","primary",1,"margin--left-10","mat-warn",3,"click","disabled"],[1,"margin--10",3,"diameter"]],template:function(r,o){1&r&&(e.DNE(0,Ws,1,0,"ng-container",0),e.nI1(1,"async"),e.j41(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5),e.DNE(7,ec,2,1,"span",0),e.k0s()(),e.j41(8,"div",6)(9,"div",7)(10,"div",8),e.EFF(11),e.nI1(12,"translate"),e.k0s()()()()(),e.j41(13,"div")(14,"div",9)(15,"div",10)(16,"div",11)(17,"label",12),e.EFF(18),e.nI1(19,"translate"),e.k0s(),e.j41(20,"div",13),e.EFF(21),e.nI1(22,"translate"),e.k0s()()(),e.j41(23,"div",10)(24,"div",14)(25,"label",15),e.EFF(26),e.nI1(27,"translate"),e.k0s(),e.DNE(28,oc,3,2,"div",0)(29,rc,2,3,"div",16),e.k0s(),e.j41(30,"div",17)(31,"label",15),e.EFF(32),e.nI1(33,"translate"),e.k0s(),e.DNE(34,cc,3,2,"div",0)(35,ac,2,3,"div",16),e.k0s(),e.j41(36,"div",18),e.DNE(37,lc,3,3,"button",19)(38,dc,4,3,"button",19),e.k0s()()()(),e.j41(39,"div")(40,"div",9)(41,"div",10)(42,"div",11)(43,"label",12),e.EFF(44),e.nI1(45,"translate"),e.k0s(),e.j41(46,"div",13),e.EFF(47),e.nI1(48,"translate"),e.k0s()()(),e.j41(49,"div",10)(50,"div",20)(51,"label",15),e.EFF(52),e.nI1(53,"translate"),e.k0s(),e.DNE(54,uc,2,1,"label",21)(55,mc,1,3,"nx1-documents-upload",22)(56,_c,2,0,"button",19)(57,pc,2,0,"button",19),e.k0s(),e.j41(58,"div",23)(59,"label",15),e.EFF(60),e.nI1(61,"translate"),e.k0s(),e.DNE(62,gc,2,1,"label",21)(63,hc,1,4,"nx1-documents-upload",24)(64,bc,2,0,"button",19)(65,Cc,2,0,"button",19),e.k0s()()()(),e.j41(66,"div")(67,"div",9)(68,"div",10)(69,"div",11)(70,"label",12),e.
1EFF(71),e.nI1(72,"translate"),e.k0s(),e.j41(73,"div",13),e.EFF(74),e.nI1(75,"translate"),e.k0s()()(),e.j41(76,"div",10)(77,"div",20)(78,"label",15),e.EFF(79),e.nI1(80,"translate"),e.k0s(),e.DNE(81,Sc,5,4,"div",0)(82,yc,2,3,"div",16),e.k0s()()()(),e.j41(83,"div")(84,"div",9)(85,"div",10)(86,"div",11)(87,"label",12),e.EFF(88),e.nI1(89,"translate"),e.k0s(),e.DNE(90,Tc,3,3,"div",25),e.k0s()(),e.j41(91,"div",10)(92,"div",20)(93,"label",15),e.EFF(94),e.nI1(95,"translate"),e.k0s(),e.DNE(96,Fc,2,1,"label",21)(97,Rc,2,0,"button",19),e.j41(98,"button",26),e.bIt("click",function(){return o.signLetter()}),e.EFF(99),e.nI1(100,"translate"),e.k0s()()(),e.j41(101,"div",27)(102,"div",28),e.DNE(103,kc,3,4,"button",29)(104,xc,3,4,"button",30)(105,Ec,1,1,"mat-spinner",31),e.k0s()()()()()),2&r&&(e.Y8G("ngIf",e.bMT(1,40,o.isArchiveAccompanyingLetterDigitallySigned$)),e.R7$(7),e.Y8G("ngIf",o.controlContext),e.R7$(4),e.JRh(e.bMT(12,42,"str_Control_Tender_Buyer_232_DocumentSubmission_Title")),e.R7$(7),e.JRh(e.bMT(19,44,"str_Control_Tender_Buyer_232_DocumentSubmission_TenderDocuments")),e.R7$(3),e.SpI(" ",e.bMT(22,46,"str_Control_Tender_Buyer_232_DocumentSubmission_TenderDocuments_Hint")," "),e.R7$(5),e.JRh(e.bMT(27,48,"str_Control_Tender_Buyer_232_DocumentSubmission_Notice")),e.R7$(2),e.Y8G("ngIf",!o.isDecisionAndNoticeGenerating),e.R7$(),e.Y8G("ngIf",o.isDecisionAndNoticeGenerating),e.R7$(3),e.JRh(e.bMT(33,50,"str_Control_Tender_Buyer_232_DocumentSubmission_Decision")),e.R7$(2),e.Y8G("ngIf",!o.isDecisionAndNoticeGenerating),e.R7$(),e.Y8G("ngIf",o.isDecisionAndNoticeGenerating),e.R7$(2),e.Y8G("ngIf",!o.priorInformationNoticeDocument&&!o.decisionForStartingATenderingProcedureDocument),e.R7$(),e.Y8G("ngIf",(o.priorInformationNoticeDocument||o.decisionForStartingATenderingProcedureDocument)&&!o.archiveDocument),e.R7$(6),e.JRh(e.bMT(45,52,"str_Control_Tender_Buyer_232_DocumentSubmission_AdditionalDocuments")),e.R7$(3),e.SpI(" ",e.bMT(48,54,"str_Control_Tender_Buyer_232_DocumentSubmission_NoDocuments")," "),e.R7$(5),e.JRh(e.bMT(53,56,"str_Control_Tender_Buyer_232_DocumentSubmission_TechnicalSpecification")),e.R7$(2),e.Y8G("ngIf",o.technicalSpecificationDocument),e.R7$(),e.Y8G("ngIf",!o.technicalSpecificationDocument),e.R7$(),e.Y8G("ngIf",o.technicalSpecificationDocument),e.R7$(),e.Y8G("ngIf",o.technicalSpecificationDocument&&!o.archiveDocument),e.R7$(3),e.JRh(e.bMT(61,58,"str_Control_Tender_Buyer_232_DocumentSubmission_AwardMethod")),e.R7$(2),e.Y8G("ngIf",o.awardMethodDocument),e.R7$(),e.Y8G("ngIf",!o.awardMethodDocument),e.R7$(),e.Y8G("ngIf",o.awardMethodDocument),e.R7$(),e.Y8G("ngIf",o.awardMethodDocument&&!o.archiveDocument),e.R7$(6),e.JRh(e.bMT(72,60,"str_Control_Tender_Buyer_232_DocumentSubmission_DocumentsPackage")),e.R7$(3),e.SpI(" ",e.bMT(75,62,"str_Control_Tender_Buyer_232_DocumentSubmission_DocumentsPackage_Hint")," "),e.R7$(5),e.JRh(e.bMT(80,64,"str_Control_Tender_Buyer_232_DocumentSubmission_DocumentsPackage")),e.R7$(2),e.Y8G("ngIf",!o.isArchiveGenerating),e.R7$(),e.Y8G("ngIf",o.isArchiveGenerating),e.R7$(6),e.JRh(e.bMT(89,66,"str_Control_Tender_Buyer_232_DocumentSubmission_AccompanyingLetter")),e.R7$(2),e.Y8G("ngIf",!o.archiveDocumentDescriptor),e.R7$(4),e.JRh(e.bMT(95,68,"str_Control_Tender_Buyer_232_DocumentSubmission_AccompanyingLetter")),e.R7$(2),e.Y8G("ngIf",o.accompanyingLetterDocument),e.R7$(),e.Y8G("ngIf",o.accompanyingLetterDocument),e.R7$(),e.Y8G("disabled",!o.accompanyingLetterDocumentDescriptor||!o.archiveDocumentDescriptor),e.R7$(),e.SpI(" ",e.bMT(100,70,"str_Control_Tender_Buyer_232_DocumentSubmission_Sign")," "),e.R7$(4),e.Y8G("ngIf",!o.showSubmissionLoader),e.R7$(),e.Y8G("ngIf",!o.showSubmissionLoader),e.R7$(),e.Y8G("ngIf",o.showSubmissionLoader))},dependencies:[m.bT,S.iV,k.wS,A.p,m.Jj,I.D9],styles:[".disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}"],changeDetection:0})}}return n})(),data:{title:"str_Control_art232"}},{path:"form232-document-submission",component:Zr,data:{title:"str_Control_art232"}},{path:"form232a-document-submission",component:as,data:{title:"str_Control_art232"}}]}];let $c=(()=>{class n{static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({imports:[g.iI.forChild(Bc),g.iI]})}}return n})();var jc=_(54285),Mc=_(14525),wc=_(1547),Ac=_(88881),Pc=_(65049);let Gc=(()=>{class n{static{this.\u0275fac=function(r){return new(r||n)}}static{this.\u0275mod=e.$C({type:n})}static{this.\u0275inj=e.G2t({providers:[wc.F,ee,me,_e],imports:[jc.G,Mc.Y,$c,ge.CR,Ac.v,Pc.x]})}}return n})()}}]);
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.