import{a as K}from"./chunk-2TZTT6OS.js";import{b as C}from"./chunk-ZYFKUKWP.js";import{g as q,k as h}from"./chunk-5Z3QBZPS.js";import{t as N}from"./chunk-YAWZK65A.js";import{y as G,z as H}from"./chunk-NBWAUNUZ.js";import{c as z,f as J}from"./chunk-V2DPLVZ2.js";import"./chunk-LMJERMSP.js";import{D as L,H as P,I as A,Oa as O,Pa as F,R as D,ba as V,g as j,kb as R,p as v,s as B}from"./chunk-OGMMZFJL.js";import{Eb as y,Gc as o,Hc as f,Ic as k,Kb as u,Sc as E,Wb as l,Yc as p,Zc as g,fd as w,gc as e,hc as i,ic as b,mc as T,ob as s,rc as d,sc as m,ub as c,va as x,wa as M}from"./chunk-QVZULMP5.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(L),c(v),c(A),c(q),c(h),c(J),c(C),c(w),c(D),c(z),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:[O,F,R,H,N,P,B,j,G,V],styles:[".col-lg-4[_ngcontent-%COMP%], .col-lg-3[_ngcontent-%COMP%]{padding:5px}"]})}}return t})();export{be as M365SettingsComponent};
