"use strict";(self.webpackChunkwebadmin=self.webpackChunkwebadmin||[]).push([["libs_dialogs_reset-backup_reset-backup_component_ts"],{88098:(b,c,s)=>{s.r(c),s.d(c,{ResetBackupModalContent:()=>B});var l=s(82529),_=s(60177),r=s(89417),i=s(60802),d=s(19689),u=s(58415),p=s(40221),E=s(48233),t=s(4020),m=s(39060),M=s(64147),D=s(60272);function P(n,R){if(1&n){const o=t.RV6();t.j41(0,"button",7),t.bIt("click",function(){t.eBV(o);const e=t.XpG();return t.Njj(e.close())}),t.nrm(1,"div",8),t.k0s()}}function v(n,R){1&n&&(t.j41(0,"div",9)(1,"p",10),t.EFF(2," Backup settings will be reset for all servers in this site. "),t.k0s()())}let B=(()=>{class n extends p.f{constructor(o,a,{system:e,setDefaultBackupSettings:O}){super(a),this.processService=o,this.LANG=E,this.system=e,this.resetBackupProcess=this.processService.createProcess(()=>(this.lock(),O()),{ignoreError:!0},()=>{this.close()},g=>{console.error(g),this.unlock()})}static{this.\u0275fac=function(a){return new(a||n)(t.rXU(m.z),t.rXU(l.ce),t.rXU(l.Qs))}}static{this.\u0275cmp=t.VBU({type:n,selectors:[["nx-modal-reset-backup"]],features:[t.Vt3],decls:9,vars:10,consts:[[1,"modal-header"],["translate","",1,"modal-title"],["type","button","class","close","data-dismiss","modal","aria-label","Close",3,"click",4,"ngIf"],["class","modal-body",4,"ngIf"],[1,"modal-footer"],[3,"process","actionType","buttonText"],[3,"process","discardFn","cancelFn"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],[1,"close-content"],[1,"modal-body"],["translate","",1,"paragraph","mb-0"]],template:function(a,e){1&a&&(t.j41(0,"div",0)(1,"h1",1),t.EFF(2," Reset Backup Settings to Defaults? "),t.k0s(),t.DNE(3,P,2,0,"button",2),t.k0s(),t.DNE(4,v,3,0,"div",3),t.j41(5,"div",4),t.nrm(6,"nx-process-button",5),t.nI1(7,"translate"),t.nrm(8,"nx-cancel-button",6),t.k0s()),2&a&&(t.R7$(3),t.Y8G("ngIf",e.closable),t.R7$(),t.Y8G("ngIf",(null==e.system?null:e.system.serverManager.servers.length)>1),t.R7$(2),t.Y8G("process",e.resetBackupProcess)("actionType","danger")("buttonText",t.bMT(7,8,"Reset")),t.R7$(2),t.Y8G("process",e.resetBackupProcess)("discardFn",e.close)("cancelFn",e.unlock))},dependencies:[_.MD,_.bT,r.YN,i.h,M.M,D.D,d.f,u.N],encapsulation:2})}}return n})()}}]);