import{a as K}from"./chunk-GYQLHFPW.js";import{b as C}from"./chunk-NI4GN2IE.js";import{e as V,j as h}from"./chunk-37RFF4OK.js";import{s as z}from"./chunk-DPK5ARAN.js";import{y as N,z as q}from"./chunk-YI6NKOYD.js";import{c as F,f as J}from"./chunk-Q5J24B22.js";import"./chunk-2HBJZCGQ.js";import{$ as O,C as v,F as P,I as A,Na as R,Oa as G,R as D,j,jb as H,n as B,t as L}from"./chunk-IOUPS7SC.js";import{Bb as y,Dc as o,Ec as f,Fc as k,Hb as u,Oc as E,Tb as l,Uc as p,Vc as g,bd as w,dc as e,ec as i,fc as b,jc as T,lb as s,oc as d,pc as m,rb as c,sa as x,ta as M}from"./chunk-2BMUMDG3.js";import{i as I}from"./chunk-2AVGQ2MQ.js";function ee(t,S){if(t&1&&(e(0,"li")(1,"h3")(2,"a",11),o(3),p(4,"translate"),i()()()),t&2){let n=m();s(3),f(g(4,1,n.parent))}}function te(t,S){if(t&1&&(e(0,"li")(1,"a",12),o(2),p(3,"translate"),i()()),t&2){let n=m();s(2),f(g(3,1,n.child))}}function ie(t,S){if(t&1&&(e(0,"li")(1,"span"),o(2),p(3,"translate"),i()()),t&2){let n=m();s(2),f(g(3,1,n.subchild))}}function ne(t,S){if(t&1){let n=T();e(0,"div",13)(1,"c-card",6)(2,"c-card-body",7),d("click",function(){x(n);let r=m();return M(r.sendMeTo("/settings/m365Settings/m365Consent"))}),e(3,"div")(4,"h5",8),b(5,"i",14),o(6),p(7,"translate"),i(),e(8,"p",9),o(9),p(10,"translate"),i()()()()()}t&2&&(s(6),k(" ",g(7,2,"Microsoft 365 Consent"),""),s(3),f(g(10,4,"Consent for Microsoft 365 Apps")))}function re(t,S){if(t&1){let n=T();e(0,"div",13)(1,"c-card",6)(2,"c-card-body",7),d("click",function(){x(n);let r=m();return M(r.sendMeTo("/settings/m365BackupStorage"))}),e(3,"h5",8),o(4," M365 Backup Storage Settings"),i(),e(5,"p",9),o(6," Change your M365 Backup Storage Settings "),i()()()()}}var be=(()=>{class t{constructor(n,a,r,_,Q,U,W,X,Y,Z,$){this.http=n,this.datePipe=a,this.titleService=r,this.toastr=_,this.apiService=Q,this.AuthService=U,this.globalConstantsService=W,this.cdr=X,this.router=Y,this.sharedService=Z,this.licenseCheckService=$,this.title="Settings",this.parent="Settings",this.child="Microsoft 365 Settings",this.subchild="",this.inclusionLicenses=[],this.exclusionLicenses=[]}ngOnInit(){return I(this,null,function*(){this.inclusionLicenses=yield this.licenseCheckService.getInclusionLicensesNew()})}sendMeTo(n){this.router.navigate([n])}static{this.\u0275fac=function(a){return new(a||t)(c(j),c(v),c(A),c(V),c(h),c(J),c(C),c(w),c(D),c(F),c(K))}}static{this.\u0275cmp=y({type:t,selectors:[["app-m365Settings"]],features:[E([v,h,C])],decls:31,vars:5,consts:[[1,"container"],[1,"row"],[1,"col-lg-6"],[1,"breadcrumb"],[4,"ngIf"],[1,"col-lg-4","d-none"],[1,"tile","flex-fill"],[2,"cursor","pointer",3,"click"],["cCardTitle",""],["cCardText",""],["class","col-lg-4 d-flex",4,"ngIf"],["href","settings"],["href","settings/m365Settings"],[1,"col-lg-4","d-flex"],[1,"fa","fa-cloud","fa-1x"]],template:function(a,r){a&1&&(e(0,"div",0)(1,"div",1)(2,"div",2)(3,"ol",3),u(4,ee,5,3,"li",4)(5,te,4,3,"li",4)(6,ie,4,3,"li",4),i()()()(),e(7,"c-row")(8,"div",5)(9,"c-card",6)(10,"c-card-body",7),d("click",function(){return r.sendMeTo("/settings/m365Settings/m365TenantSettings")}),e(11,"h5",8),o(12," Microsoft 365 Tenant Settings"),i(),e(13,"p",9),o(14," Change your Microsoft 365 Tenant Settings "),i()()()(),u(15,ne,11,6,"div",10),e(16,"div",5)(17,"c-card",6)(18,"c-card-body",7),d("click",function(){return r.sendMeTo("/settings/m365Settings/exchangeSettings")}),e(19,"h5",8),o(20," Microsoft Exchange Online Settings"),i(),e(21,"p",9),o(22," Change your Exchange Online Tenant Settings "),i()()()(),e(23,"div",5)(24,"c-card",6)(25,"c-card-body",7),d("click",function(){return r.sendMeTo("/settings/m365Settings/m365BackupAgentSettings")}),e(26,"h5",8),o(27," Microsoft 365 backup agent settings"),i(),e(28,"p",9),o(29," Change your Microsoft 365 backup agent settings "),i()()()(),u(30,re,7,0,"div",10),i()),a&2&&(s(4),l("ngIf",r.parent!=""),s(),l("ngIf",r.child!=""),s(),l("ngIf",r.subchild!=""),s(9),l("ngIf",!r.inclusionLicenses.includes("issmblicenseenabled")),s(15),l("ngIf",r.inclusionLicenses.includes("ismsstorageapienabled")))},dependencies:[R,G,H,q,z,B,P,L,N,O],styles:[".col-lg-4[_ngcontent-%COMP%], .col-lg-3[_ngcontent-%COMP%]{padding:5px}"]})}}return t})();export{be as M365SettingsComponent};
