"use strict";(self.webpackChunkvlcm_ui=self.webpackChunkvlcm_ui||[]).push([[850],{73850:(F,c,l)=>{l.r(c),l.d(c,{ModalsModule:()=>h});var i=l(32881),a=l(37303),r=(l(37482),l(80685),l(89417)),d=l(25207),m=l(47907),u=l(95783),t=l(41360);function g(n,M){if(1&n){const e=t.RV6();t.qex(0),t.j41(1,"button",6),t.bIt("click",function(){t.eBV(e);const s=t.XpG();return t.Njj(s.onClose())}),t.EFF(2),t.k0s(),t.j41(3,"button",7),t.bIt("click",function(){t.eBV(e);const s=t.XpG();return t.Njj(s.onDiscard())}),t.EFF(4),t.k0s(),t.bVm()}if(2&n){const e=t.XpG();t.R7$(2),t.SpI(" ",e.i18n("vlcm.common.no")," "),t.R7$(2),t.SpI(" ",e.i18n("vlcm.common.yes")," ")}}function v(n,M){if(1&n){const e=t.RV6();t.j41(0,"button",7),t.bIt("click",function(){t.eBV(e);const s=t.XpG();return t.Njj(s.onClose())}),t.EFF(1),t.k0s()}if(2&n){const e=t.XpG();t.R7$(),t.SpI(" ",e.i18n("rdu.workflowStep.modal.ok")," ")}}let f=(()=>{class n{constructor(e,o){this.modalService=e,this.i18nService=o,this.i18n=o.getString.bind(o)}ngOnInit(){this.message=this.modalService.getCustomData()?.message,this.isModalYesNoButtonVisible=this.modalService.getCustomData()?.isModalYesNoButtonVisible}onDiscard(){this.modalService.close({isDiscarded:!0})}onClose(){this.modalService.close(void 0)}static{this.\u0275fac=function(o){return new(o||n)(t.rXU(u.I),t.rXU(m.W))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["full-screen-overlay-modal"]],standalone:!1,decls:10,vars:3,consts:[["okButton",""],[1,"modal-content"],[1,"icon-holder"],["shape","warning-standard","status","warning"],[1,"modal-footer"],[4,"ngIf","ngIfElse"],["type","button",1,"btn","btn-outline",3,"click"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(o,s){if(1&o&&(t.j41(0,"div",1)(1,"div")(2,"span",2),t.nrm(3,"cds-icon",3),t.k0s(),t.j41(4,"span"),t.EFF(5),t.k0s()(),t.j41(6,"div",4),t.DNE(7,g,5,2,"ng-container",5)(8,v,2,1,"ng-template",null,0,t.C5r),t.k0s()()),2&o){const y=t.sdS(9);t.R7$(5),t.JRh(s.message),t.R7$(2),t.Y8G("ngIf",s.isModalYesNoButtonVisible)("ngIfElse",y)}},dependencies:[i.bT,a.BlU],styles:[".modal-content[_ngcontent-%COMP%]{padding:.6rem 0 .6rem 1.2rem}.modal-footer[_ngcontent-%COMP%]{padding:.6rem 1.2rem 0 0}.icon-holder[_ngcontent-%COMP%]{margin-right:.5rem}"]})}}return n})(),p=(()=>{class n{static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=t.G2t({imports:[d.iI.forChild([{path:"",component:f}]),d.iI]})}}return n})(),h=(()=>{class n{static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275mod=t.$C({type:n})}static{this.\u0275inj=t.G2t({imports:[i.MD,p,a.PuD,r.YN,r.X1]})}}return n})()}}]);