import{a as ft,b as _t}from"./chunk-CRN4SFUD.js";import{d as gt}from"./chunk-24YAMP2Q.js";import{a as mt,b as pt,f as ut}from"./chunk-MQ533ZKO.js";import{a as $}from"./chunk-Z62JHEOH.js";import"./chunk-5L7ZGGVS.js";import"./chunk-NQ5TANTH.js";import{c as Z,d as ht}from"./chunk-33U2WDYB.js";import{a as Re}from"./chunk-HF23TE3C.js";import{o as st,t as dt}from"./chunk-22K55EK3.js";import{a as ct}from"./chunk-HM5ONTSA.js";import{A as it,B as nt,C as lt,D as rt,F as ot,G as at,b as Ke,c as ze,g as Ge,h as qe,k as He,n as Ye,o as Je,p as je,r as Xe,v as Qe,w as Ze,x as $e,y as et,z as tt}from"./chunk-U5M2WPEX.js";import{Qb as Oe,Ra as Te,Rb as Ue,Sa as ke,Sb as Ne,T as Se,Ta as Fe,V as ye,Va as De,Wa as Pe,X as we,Xa as Le,_ as Ce,ab as Ve,bb as Ae,c as ge,dc as We,e as fe,h as _e,ib as Be,jb as xe,kb as Ie,m as Ee,qa as be,ra as ve,ua as Me}from"./chunk-RIXYHOD2.js";import{Aa as d,Ac as h,Bc as g,Cc as f,Cd as he,Fb as w,Gc as ae,Hc as se,Ia as B,Ic as b,Jc as F,Kc as K,Mb as _,Nb as re,Vb as te,Wb as W,Xb as R,Yb as t,Yc as de,Zb as i,_b as E,cc as k,fc as u,hc as y,kb as a,kc as L,lb as P,lc as oe,oa as le,oc as H,pc as Y,pd as ce,qc as J,qd as me,rd as pe,uc as x,ud as ue,vc as l,wc as C,xc as D,xd as Q,z as ne,za as s}from"./chunk-7RF4FE4V.js";import{a as V,b as A}from"./chunk-WWX6BADO.js";var St=["matSelectEdit"],yt=["matSelectCreate"],wt=["matSelectCreateFilter"],Ct=["matSelectEditFilter"],bt=(p,S)=>S.scheduleName,Et=(p,S)=>S.filterName,v=()=>({standalone:!0}),I=p=>({display:p}),j=(p,S)=>({"pointer-events":p,opacity:S}),X=p=>({hide:p});function vt(p,S){if(p&1&&(t(0,"li")(1,"h3")(2,"a",388),l(3),i()()()),p&2){let r=y();a(3),C(r.parent)}}function Mt(p,S){if(p&1&&(t(0,"li")(1,"a",389),l(2),i()()),p&2){let r=y();a(2),C(r.child)}}function Tt(p,S){if(p&1&&(t(0,"li")(1,"span"),l(2),i()()),p&2){let r=y();a(2),C(r.subchild)}}function kt(p,S){p&1&&(t(0,"small"),l(1,`
                            Policy Name is required.
                        `),i())}function Ft(p,S){if(p&1&&(t(0,"small"),l(1),i()),p&2){let r=y(2);a(),D(`
                            `,r.errortext,`
                        `)}}function Dt(p,S){p&1&&(t(0,"small"),l(1,`
                            Policy Name must be at least 3 characters long.
                        `),i())}function Pt(p,S){if(p&1&&(t(0,"div",390),l(1,`
                        `),w(2,kt,2,0,"small",15),l(3,`
                        `),w(4,Ft,2,1,"small",15),l(5,`
                        `),w(6,Dt,2,0,"small",15),l(7,`
                    `),i()),p&2){y();let r=x(25);a(2),_("ngIf",r.errors==null?null:r.errors.required),a(2),_("ngIf",r.errors&&r.errors.pattern),a(2),_("ngIf",r.errors&&r.errors.minlength)}}function Lt(p,S){if(p&1&&(t(0,"mat-option",364),l(1),i()),p&2){let r=S.$implicit;L("value",r.scheduleName),a(),C(r.scheduleName)}}function Vt(p,S){if(p&1){let r=k();t(0,"tr")(1,"td"),l(2),i(),t(3,"td"),l(4),i(),t(5,"td")(6,"button",394),u("click",function(){let e=s(r).$implicit,o=y(2);return d(o.editSchedule(e.scheduleName))}),l(7," Edit"),i()()()}if(p&2){let r=S.$implicit;a(2),C(r.scheduleName),a(2),D("",r.time," hrs")}}function At(p,S){if(p&1&&(t(0,"div",12)(1,"div",83)(2,"div",391)(3,"div",86)(4,"h5"),E(5,"i",392),l(6," Schedule Details"),i()(),t(7,"div",88)(8,"div",89)(9,"table",393)(10,"tbody"),W(11,Vt,8,2,"tr",null,bt),i()()()()()()()),p&2){let r=y();a(11),R(r.defaultSchedules)}}function Bt(p,S){if(p&1&&(t(0,"option",364),l(1),i()),p&2){let r=S.$implicit;L("value",r.host),a(),C(r.host)}}function xt(p,S){if(p&1){let r=k();t(0,"legend",395),u("click",function(){s(r);let e=y();return d(e.toggleAccordion(0))}),l(1,"Archive files from OneDrive if"),i(),t(2,"c-form-check",46)(3,"input",396),f("ngModelChange",function(e){s(r);let o=y();return g(o.createLinkEnabled,e)||(o.createLinkEnabled=e),d(e)}),u("change",function(){s(r);let e=y();return d(e.toggleAccordion(0))}),i()()}if(p&2){let r=y();a(2),_("switch",!0),a(),h("ngModel",r.createLinkEnabled),_("ngModelOptions",b(3,v))}}function It(p,S){if(p&1){let r=k();E(0,"br"),t(1,"div",397)(2,"c-row")(3,"c-col",398)(4,"c-card",399)(5,"c-card-body")(6,"div",21)(7,"label",400),l(8,"OneDrive consumption is higher than (%)"),i(),t(9,"div",401)(10,"input",402),f("ngModelChange",function(e){s(r);let o=y();return g(o.includethreshholdLimitCheck,e)||(o.includethreshholdLimitCheck=e),d(e)}),u("change",function(){s(r);let e=y();return d(e.includethreshholdLimitChange())}),i(),t(11,"label",403),l(12,"Include Site consumption limit"),i()(),t(13,"input",404),f("ngModelChange",function(e){s(r);let o=y();return g(o.threshholdLimit,e)||(o.threshholdLimit=e),d(e)}),i()(),t(14,"div",405)(15,"span"),l(16,"AND"),i()(),t(17,"div",21)(18,"label",406),l(19,"Files have not been modified in (days)"),i(),t(20,"div",401)(21,"input",407),f("ngModelChange",function(e){s(r);let o=y();return g(o.includepurgeFilesOlderThanCheck,e)||(o.includepurgeFilesOlderThanCheck=e),d(e)}),u("change",function(){s(r);let e=y();return d(e.includepurgeFilesOlderThanChange())}),i(),t(22,"label",408),l(23,"Include days"),i()(),t(24,"input",409),f("ngModelChange",function(e){s(r);let o=y();return g(o.purgeFilesOlderThan,e)||(o.purgeFilesOlderThan=e),d(e)}),i()(),t(25,"div",405)(26,"span"),l(27,"AND"),i()(),t(28,"div",21)(29,"label",410),l(30,"Files are of size greater than (MB)"),i(),t(31,"div",401)(32,"input",411),f("ngModelChange",function(e){s(r);let o=y();return g(o.includepurgeFilesSizeGTThanCheck,e)||(o.includepurgeFilesSizeGTThanCheck=e),d(e)}),u("change",function(){s(r);let e=y();return d(e.includepurgeFilesSizeGTThanChange())}),i(),t(33,"label",412),l(34,"Include size"),i()(),t(35,"input",413),f("ngModelChange",function(e){s(r);let o=y();return g(o.purgeFilesSizeGTThan,e)||(o.purgeFilesSizeGTThan=e),d(e)}),i()()()()()()()}if(p&2){let r=y();a(10),h("ngModel",r.includethreshholdLimitCheck),a(3),h("ngModel",r.threshholdLimit),_("disabled",!r.includethreshholdLimitCheck),a(8),h("ngModel",r.includepurgeFilesOlderThanCheck),a(3),h("ngModel",r.purgeFilesOlderThan),_("disabled",!r.includepurgeFilesOlderThanCheck),a(8),h("ngModel",r.includepurgeFilesSizeGTThanCheck),a(3),h("ngModel",r.purgeFilesSizeGTThan),_("disabled",!r.includepurgeFilesSizeGTThanCheck)}}function Ot(p,S){if(p&1){let r=k();t(0,"li",415),l(1),t(2,"a",416),u("click",function(){let e=s(r).$implicit,o=y(2);return d(o.removeDefaultFolder(e))}),E(3,"i",417),i()()}if(p&2){let r=S.$implicit;a(),D(" ",r," ")}}function Ut(p,S){if(p&1&&(t(0,"ul",414),W(1,Ot,4,1,"li",415,te),i()),p&2){let r=y();a(),R(r.defaultUniversalFolders)}}function Nt(p,S){p&1&&(t(0,"span"),l(1,"There are no default folders to backup"),i())}function Wt(p,S){if(p&1){let r=k();t(0,"li",415),l(1),t(2,"a",416),u("click",function(){let e=s(r).$implicit,o=y(2);return d(o.removeExclusionFolder(e))}),E(3,"i",417),i()()}if(p&2){let r=S.$implicit;a(),D(" ",r," ")}}function Rt(p,S){if(p&1&&(t(0,"ul",414),W(1,Wt,4,1,"li",415,te),i()),p&2){let r=y();a(),R(r.userExcludedFoldersUniversal)}}function Kt(p,S){p&1&&(t(0,"span"),l(1,"These folders will be excluded"),i())}function zt(p,S){p&1&&(t(0,"h5",418)(1,"label",419),E(2,"i",420),i()())}function Gt(p,S){p&1&&(t(0,"h5",421)(1,"label",422),E(2,"i",423),i()())}function qt(p,S){if(p&1&&(t(0,"mat-option",364),l(1),i()),p&2){let r=S.$implicit;L("value",r.filterName),a(),C(r.filterName)}}function Ht(p,S){if(p&1){let r=k();t(0,"tr",427)(1,"td",428)(2,"p")(3,"b"),l(4),i()(),t(5,"span",429),l(6),i()(),t(7,"td",430)(8,"button",431),u("click",function(){let e=s(r).$implicit,o=y(2);return d(o.editFilter(e.filterName))}),l(9," Edit"),i()()()}if(p&2){let r=S.$implicit;a(4),D("",r.filterName," :"),a(2),C(r.filters),a(2),_("disabled",r.filterName==="all_files")}}function Yt(p,S){if(p&1&&(t(0,"div",424)(1,"div",83)(2,"div",85)(3,"div",86)(4,"h5"),E(5,"i",425),l(6," Filters "),i()(),t(7,"div",426)(8,"div",89)(9,"table",393)(10,"tbody"),W(11,Ht,10,3,"tr",427,Et),i()()()()()()()),p&2){let r=y();a(11),R(r.defaultFilters)}}function Jt(p,S){p&1&&(t(0,"h5",432)(1,"label",419),E(2,"i",420),i()())}function jt(p,S){p&1&&(t(0,"h5",433)(1,"label",422),E(2,"i",423),i()())}function Xt(p,S){if(p&1&&(t(0,"mat-option",364),l(1),i()),p&2){let r=S.$implicit;L("value",r.filterName),a(),C(r.filterName)}}function Qt(p,S){if(p&1){let r=k();t(0,"tr")(1,"td",428)(2,"p")(3,"b"),l(4),i()(),t(5,"span",429),l(6),i()(),t(7,"td",430)(8,"button",431),u("click",function(){let e=s(r).$implicit,o=y(2);return d(o.newFilterEdit(e.filterName))}),l(9," Edit"),i()()()}if(p&2){let r=S.$implicit;a(4),D("",r.filterName," :"),a(2),C(r.filters),a(2),_("disabled",r.filterName==="all_files")}}function Zt(p,S){if(p&1&&(t(0,"div",424)(1,"div",83)(2,"div",85)(3,"div",86)(4,"h5"),E(5,"i",425),l(6," Filters "),i()(),t(7,"div",426)(8,"div",89)(9,"table",393)(10,"tbody"),W(11,Qt,10,3,"tr",null,Et),i()()()()()()()),p&2){let r=y();a(11),R(r.defaultSearchFilters)}}function $t(p,S){p&1&&(t(0,"span"),l(1,"Select"),i())}function ei(p,S){if(p&1&&(t(0,"span"),l(1),i()),p&2){let r=y(2);a(),C(r.checkedListPg.join(", "))}}function ti(p,S){if(p&1){let r=k();t(0,"span",442)(1,"input",443),f("ngModelChange",function(e){let o=s(r).$implicit;return g(o.checked,e)||(o.checked=e),d(e)}),u("change",function(){let e=s(r).$implicit,o=y(3);return d(o.getSelectedValuePg(e.checked,e.gatewayName))}),i(),t(2,"span",444),l(3),i()()}if(p&2){let r=S.$implicit,m=S.index;a(),oe("id","selectLeftPg",m,""),L("value",r.gatewayName),h("ngModel",r.checked),a(2),C(r.gatewayName)}}function ii(p,S){if(p&1&&(t(0,"div",440),w(1,ti,4,5,"span",441),i()),p&2){let r=y(2);a(),_("ngForOf",r.pgs)}}function ni(p,S){if(p&1){let r=k();t(0,"div",434)(1,"label",435),l(2,"Preferred BluKrypt Hostnames"),i(),t(3,"div")(4,"div",436),u("mouseleave",function(){s(r);let e=y();return d(e.showDropDownPg=!1)}),t(5,"button",437),u("click",function(){s(r);let e=y();return d(e.showDropDownPg=!e.showDropDownPg)}),w(6,$t,2,0,"span",15)(7,ei,2,1,"span",15),E(8,"i",438),i(),w(9,ii,2,1,"div",439),i()()()}if(p&2){let r=y();a(6),_("ngIf",r.checkedListPg.length<=0),a(),_("ngIf",r.checkedListPg.length>0),a(2),_("ngIf",r.showDropDownPg)}}function li(p,S){p&1&&(t(0,"small"),l(1," Schedule Name is required. "),i())}function ri(p,S){if(p&1&&(t(0,"small"),l(1),i()),p&2){let r=y(2);a(),D(" ",r.errortext," ")}}function oi(p,S){if(p&1&&(t(0,"div",390),w(1,li,2,0,"small",15)(2,ri,2,1,"small",15),i()),p&2){y();let r=x(1185);a(),_("ngIf",r.errors==null?null:r.errors.required),a(),_("ngIf",r.errors&&r.errors.pattern)}}function ai(p,S){if(p&1&&(t(0,"mat-option",364),l(1),i()),p&2){let r=S.$implicit;L("value",r.extensionName),a(),C(r.filterName)}}function si(p,S){if(p&1){let r=k();t(0,"span",445),l(1),t(2,"a",446),u("click",function(){let e=s(r).$implicit,o=y();return d(o.removeExtensionCreate(e))}),E(3,"i",417),i()()}if(p&2){let r=S.$implicit;a(),D("",r," ")}}function di(p,S){if(p&1&&(t(0,"mat-option",364),l(1),i()),p&2){let r=S.$implicit;L("value",r.extensionName),a(),C(r.filterName)}}function ci(p,S){if(p&1){let r=k();t(0,"span",447),l(1),t(2,"a",446),u("click",function(){let e=s(r).$implicit,o=y();return d(o.removeExtension(e))}),E(3,"i",417),i()()}if(p&2){let r=S.$implicit;a(),D("",r," ")}}var _n=(()=>{class p{constructor(r,m,e,o,c,n,z,M,O,G){this.http=r,this.datePipe=m,this.titleService=e,this.toastr=o,this.apiService=c,this.AuthService=n,this.globalConstantsService=z,this.cdr=M,this.router=O,this.sharedService=G,this.parent="Policy Management",this.child="OneDrive for Business Policies",this.subchild="Edit Policy",this.title="Edit OneDrive Policy",this.errortext="Only letters, numbers, and @, -, _, . are allowed.",this.menuOptionsEdit={open:!0,view:!0,versions:!0,share:!0,download:!0,restore:!0},this.policygroupName="",this.description="",this.policyStorageSizeAllowed="0",this.policyUsersAllowed="0",this.osType="universal",this.defaultUniversalFolders=["/"],this.userExcludedFoldersUniversal=[],this.noOfDevicesAllowed="1",this.deviceAllowedError="",this.noOfDevicesAllowedCloud="3",this.canUserChangePassword=!0,this.canAdminChangeUserPassword=!0,this.passwordChangeEnforce=!0,this.canAdminRestoreAll=!0,this.isAdminDeleteBackupFile=!1,this.searchEnabled=!1,this.overridePolicySettings=!0,this.showUserConsentFieldInPolicies=!1,this.storageProvider="ParaBlu",this.hostedSetup=!0,this.allowEndUserTocontrolRestore=!1,this.showDropDownSchedule=!1,this.checkedListSchedule=[],this.currentSelectedSchedule={},this.schedules=[],this.shareCheckedList=new B,this.shareIndividualCheckedList=new B,this.showDropDownFilter=!1,this.checkedListFilter=[],this.currentSelectedFilter={},this.shareCheckedListFilter=new B,this.shareIndividualCheckedListFilter=new B,this.showDropDownSearchFilter=!1,this.checkedListSearchFilter=[],this.currentSelectedSearchFilter={},this.shareCheckedListSearchFilter=new B,this.shareIndividualCheckedListSearchFilter=new B,this.searchAlgorithm="NEAREST",this.showDropDownPg=!1,this.checkedListPg=[],this.currentSelectedPg={},this.pgs=[],this.shareCheckedListPg=new B,this.shareIndividualCheckedListPg=new B,this.filters=[{filterName:"Filter1",checked:!1},{filterName:"Filter2",checked:!1},{filterName:"Filter3",checked:!1}],this.searchfilters=[{filterName:"Filter1",checked:!1},{filterName:"Filter2",checked:!1},{filterName:"Filter3",checked:!1}],this.defaultSchedules=[],this.defaultFilters=[],this.defaultSearchFilters=[],this.inclusionFilter=!0,this.exclusionFilter=!1,this.inclusionSearchFilter=!0,this.exclusionSearchFilter=!1,this.isThrottleEnabled=!1,this.nwFromClientToPGMB="UNLIMITED",this.networkThrottlingUnit="mbps",this.nwFromClientToPGMBFinal="",this.switchError="",this.switchWarning="",this.isVersionEnabled=!0,this.versions="3",this.verError="",this.isSizeEnabled=!1,this.maxPermissibleFileSize="UNLIMITED",this.sizeError="",this.isLimitEnabled=!0,this.perUserBackupStorageLimit="250",this.limitError="",this.cpuThrottling="5",this.defaultFoldersBackup="",this.exclusionFolderName="",this.legalHold=!1,this.rwDetectionEnabled=!1,this.deviceNotHeardError="",this.deletedFilesError="",this.switchnoOfDaysToKeepDeletedFiles=!1,this.noOfDaysToKeepDeletedFiles="UNLIMITED",this.createUserAdmins="admins",this.createUserReadonlyadmins="readonlyadmins",this.createUserUsers="",this.userDeletedAdmins="admins",this.userDeletedReadonlyadmins="readonlyadmins",this.userDeletedUsers="",this.userBlockedAdmins="admins",this.userBlockedReadonlyadmins="readonlyadmins",this.userBlockedUsers="",this.userLimitReachedAdmins="admins",this.userLimitReachedReadonlyadmins="readonlyadmins",this.userLimitReachedUsers="",this.deviceDeletedAdmins="admins",this.deviceDeletedReadonlyadmins="readonlyadmins",this.deviceDeletedUsers="",this.deviceBlockedAdmins="admins",this.deviceBlockedReadonlyadmins="readonlyadmins",this.deviceBlockedUsers="",this.deviceDecoupledAdmins="admins",this.deviceDecoupledReadonlyadmins="readonlyadmins",this.deviceDecoupledUsers="",this.deviceLimitReachedAdmins="admins",this.deviceLimitReachedReadonlyadmins="readonlyadmins",this.deviceLimitReachedUsers="",this.weeklyBkpreportAdmins="admins",this.weeklyBkpreportReadonlyadmins="readonlyadmins",this.weeklyBkpreportUsers="",this.firstBkpCompletedAdmins="admins",this.firstBkpCompletedReadonlyadmins="readonlyadmins",this.firstBkpCompletedUsers="",this.restoreInitiatedAdmins="admins",this.restoreInitiatedReadonlyadmins="readonlyadmins",this.restoreInitiatedUsers="",this.storageLimitReachedAdmins="admins",this.storageLimitReachedReadonlyadmins="readonlyadmins",this.storageLimitReachedUsers="",this.endpointUiPreferences=[],this.endpointDisabledUiPreferences=[],this.menuOptions={},this.webBasedLogin="true",this.numberOfThreadsAllowedForBackup="1",this.dedup="true",this.vssEnabled="false",this.compEnabled="true",this.privacyGatewayMappingElement={},this.policyRefresh="4",this.switchlogUnaccessedFiles="true",this.canBackupHiddenFiles="true",this.createLinkEnabled=!1,this.includethreshholdLimit=!1,this.threshholdLimit="80",this.includepurgeFilesOlderThan=!1,this.purgeFilesOlderThan="365",this.includepurgeFilesSizeGTThan=!1,this.purgeFilesSizeGTThan="5",this.itemVisible=[!1,!1,!1,!1,!1,!1,!1,!1],this.displayOnedriveArchiving="none",this.includethreshholdLimitCheck=!0,this.includepurgeFilesOlderThanCheck=!0,this.includepurgeFilesSizeGTThanCheck=!0,this.switchnoOfDaysToKeepUserDeviceNotActive=!1,this.noOfDaysToKeepUserDeviceNotActive="UNLIMITED",this.deletedAssetsError="",this.switchpurgeDeletedFilesOlderThan=!1,this.purgeDeletedFilesOlderThan="UNLIMITED",this.msAppBluKrypt="",this.msAppAgentList=[],this.endpointUiPreferencesEdit=["DECOUPLE","SUPPORT","INTIATE_BACKUP","RESTORE","BACKUP_SETTINGS","BACKUP_FILES","REFRESH_BACKUP_POLICY","PAUSE_BACKUP","ABOUT","SYSTRAYICON","EXIT","STOP_BACKUP","UPDATE_AGENT"],this.endpointDisabledUiPreferencesEdit=["DISALLOW_ADMIN_RESTORES","BLOCK_NOTIFICATIONS"],this.preferencesEdit={DECOUPLE:!0,SUPPORT:!0,INTIATE_BACKUP:!0,RESTORE:!0,BACKUP_SETTINGS:!0,BACKUP_FILES:!0,REFRESH_BACKUP_POLICY:!0,PAUSE_BACKUP:!0,ABOUT:!0,SYSTRAYICON:!0,EXIT:!0,UPDATE_AGENT:!0,STOP_BACKUP:!0,DISALLOW_ADMIN_RESTORES:!1,BLOCK_NOTIFICATIONS:!1},this.displayScheduleConfStyle="none",this.displaySchEditStyle="none",this.scheduleNameToEdit="",this.scheduleElement={},this.scheduleDaysListEdit=[],this.myTime=new Date,this.myDate=new Date,this.allDays=["1","2","3","4","5","6","7"],this.showDailyEdit=!0,this.displaySchCreateStyle="none",this.scheduleDaysList=[],this.showDaily=!0,this.scheduleModel={scheduleName:"",time:"",timezone:"IST",backupType:"INCR",dayArray:[]},this.scheduleEditModel={scheduleName:"",time:"",timezone:"IST",backupType:"INCR",dayArray:[]},this.displayFilterConfStyle="none",this.displayFilterCreateStyle="none",this.displayFilterEditStyle="none",this.filterModel={filterName:"",filterType:"inclusion",filters:""},this.filterEditModel={filterName:"",filterType:"inclusion",filters:""},this.filterToEdit="",this.extensionsVisible=!1,this.filterElement={},this.checkedList=[],this.cannedFiltersCreate=[],this.checkedListExtensionCreate=[],this.cannedFilters=[],this.checkedListExtensionEdit=[],this.userDefinedExtensionsCreate=[],this.userDefinedExtensionsEdit=[],this.cannedFiltersTemplateCreate=[],this.cannedFiltersTemplateEdit=[],this.newFilterExtensionCreate="",this.newFilterExtensionEdit="",this.checkedListExtension=[],this.contentIndexEnabled="true",this.searchFilterType="inclusion",this.policyModel={backupSystemFilesEnabled:"false",legalHoldEnabled:"false",shareEnabled:"false",highSecureShareEnabled:"true",complexPassword:!0,allowDownload:!1,shareExpireDateEnable:!0,googleAuth:!0,policygroupName:"test123",description:"",destination:"",backupFolderPaths:["/"],maxVersions:"-1",backupAllVersions:!1,maxFileSize:"1048576",osType:"universal",pftEnabled:"true",pftSize:"9",dedup:"User",fullBackupEnabled:"false",fullBackupStartDate:"",fileChunkableSize:"8",nwFromPGToCloud:"4",nwFromClientToPG:1e4,nwFromClientToPGMB:1e4,filterInclusionName:["all_files"],searchFilterInclusionName:["all_files"],vssEnabled:"false",networkThrottlingNames:["DEFAULT_NETWORK_THROTTLE"],scheduleNames:[],userSizeAllowed:"250",fullBackupSchedule:"",compressionEnabled:"true",privacyGatewayMappingElement:{gatewayNwThrottlingName:"Default",privacyGatewayNames:[]},endpointUiPreferences:["EXIT","DECOUPLE","SUPPORT","INTIATE_BACKUP","RESTORE","STOP_BACKUP","BACKUP_SETTINGS","BACKUP_FILES","REFRESH_BACKUP_POLICY","PAUSE_BACKUP","ABOUT","UPDATE_AGENT","SYSTRAYICON"],endpointDisabledUiPreferences:["DISALLOW_ADMIN_RESTORES","BLOCK_NOTIFICATIONS"],menuOptions:{open:"true",view:"true",versions:"true",share:"false",download:"true",restore:"true"},calloutScripts:[],crawlLimit:"500",policyRefresh:"4:00",canUserChangePassword:!1,canAdminChangeUserPassword:!1,canBackupHiddenFiles:"true",searchAlgoForPg:"NEAREST",cpuThrottling:"5",daysToWaitForNextBackup:0,noOfDevicesAllowed:"1",endpointDomainCheck:"false",webBasedLogin:"true",canAdminRestore:"true",canAdminDelete:"true",contentIndexEnabled:"true",noOfDaysToKeepDeletedFiles:"-1",filterType:"inclusion",searchFilterType:"inclusion",shareDomainType:"Share only with these Email domains",shareDomainIncExclusions:[""],allowEndUserTocontrolRestore:"false",showShareLink:"false",numberOfThreadsAllowedForBackup:"1",shareDomainsEnabled:"false",logUnaccessedFiles:"false",rwDetectionEnabled:"false",policyStorageSizeAllowed:"0",policyUsersAllowed:"0",excludedFolderpaths:[],emailsRestriction:{createUser:"admins,readonlyadmins,users",userDeleted:"admins,readonlyadmins,users",userBlocked:"admins,readonlyadmins,users",userLimitReached:"admins,readonlyadmins",deviceDeleted:"admins,readonlyadmins,users",deviceBlocked:"admins,readonlyadmins,users",deviceDecoupled:"admins,readonlyadmins",deviceLimitReached:"admins,readonlyadmins,users",weeklyBkpreport:"admins,readonlyadmins",firstBkpCompleted:"admins,readonlyadmins",restoreInitiated:"admins,readonlyadmins,users",storageLimitReached:"admins,readonlyadmins"},policyType:"ODB",createMailLinkEnabled:!1,createLinkEnabled:!1,threshholdLimit:80,purgeFilesOlderThan:365,purgeFilesSizeGTThan:5,outlookFilters:{from:"",to:"",subject:""},msAppBluKrypt:"",noOfDaysToKeepUserDeviceNotActive:"-1",purgeDeletedFilesOlderThan:-1},this.output={createUser:"",userDeleted:"",userBlocked:"",userLimitReached:"",deviceDeleted:"",deviceBlocked:"",deviceDecoupled:"",deviceLimitReached:"",weeklyBkpreport:"",firstBkpCompleted:"",restoreInitiated:"",storageLimitReached:""}}ngOnInit(){console.log("currentPolicyName from editpolicy component : "+this.sharedService.getDataByKey("currentPolicyName")),console.log("key1 from editpolicy component : "+this.sharedService.getDataByKey("key1")),this.callApis();let r=localStorage.getItem("envDetails");r&&(JSON.parse(r).onedrivearchivingenabled=="true"?this.displayOnedriveArchiving="block":this.displayOnedriveArchiving="none")}sendMeTo(r){console.log("path : "+r),this.router.navigate([r])}onSelectChangeFilterType(r){let e=r.target.value;e==="inclusion"?(this.inclusionFilter=!0,this.exclusionFilter=!1):e==="exclusion"&&(this.inclusionFilter=!1,this.exclusionFilter=!0)}onSelectChangeSearchFilterType(r){let e=r.target.value;e==="inclusion"?(this.inclusionSearchFilter=!0,this.exclusionSearchFilter=!1):e==="exclusion"&&(this.inclusionSearchFilter=!1,this.exclusionSearchFilter=!0)}onSliderChange(r){this.cpuThrottling=r.target.value}toggleThrottle(){this.isThrottleEnabled?this.nwFromClientToPGMB="4":(this.nwFromClientToPGMB="UNLIMITED",this.networkThrottlingUnit="mbps"),this.validateInput()}validateInput(){this.switchError="",this.switchWarning="";let r=Number(this.nwFromClientToPGMB);isNaN(r)?this.nwFromClientToPGMB!=="UNLIMITED"&&(this.switchError="Input can be any integer"):r>9999?this.switchError="Network Throttle Setting from Client to BluKrypt Allowed is 9999":this.nwFromClientToPGMB.includes(".")?this.switchError="Please enter an integral value":r<256&&this.networkThrottlingUnit==="kbps"&&(this.switchWarning="Recommended value is 1Mbps or greater. You should consider increasing this value to at least 256kbps")}toggleVersion(){this.isVersionEnabled?this.versions="3":this.versions="UNLIMITED",this.myFunctionVer()}myFunctionVer(){console.log("versions : "+this.versions),this.verError="";let r=Number(this.versions);console.log("inputValue : "+r),isNaN(r)?this.versions!=="UNLIMITED"&&(this.verError="Input can be any integer"):r>1e7?this.verError="Maximum number of Versions Allowed is 1 Crore":this.versions.includes(".")?this.verError="Please enter an integral value":r<1&&!isNaN(r)?this.verError="Minimum number of Versions Allowed is 1":this.verError=""}toggleSize(){this.isSizeEnabled?this.maxPermissibleFileSize="":this.maxPermissibleFileSize="UNLIMITED",this.myFunctionMPS()}myFunctionMPS(){console.log("maxPermissibleFileSize : "+this.maxPermissibleFileSize),this.sizeError="";let r=Number(this.maxPermissibleFileSize);console.log("inputValue : "+r),isNaN(r)?this.maxPermissibleFileSize!=="UNLIMITED"&&(this.sizeError='Input can be either "UNLIMITED" or any integer'):r>999999?this.sizeError="Maximum Permissible File Size Allowed is 999999":this.maxPermissibleFileSize.includes(".")?this.sizeError="Please enter an integral value":r<1&&!isNaN(r)?this.sizeError="Minimum File Size Allowed is 1":this.sizeError=""}toggleLimit(){this.isLimitEnabled?this.perUserBackupStorageLimit="":this.perUserBackupStorageLimit="UNLIMITED",this.myFunctionUBS()}myFunctionUBS(){console.log("perUserBackupStorageLimit : "+this.perUserBackupStorageLimit),this.limitError="";let r=Number(this.perUserBackupStorageLimit);console.log("inputValue : "+r),isNaN(r)?this.perUserBackupStorageLimit!=="UNLIMITED"&&(this.limitError='Input can be either "UNLIMITED" or any integer'):r>99999?this.limitError="Maximum Per User Backup Storage Limit Allowed is 99999":this.perUserBackupStorageLimit.includes(".")?this.limitError="Please enter an integral value":r<1&&!isNaN(r)?this.limitError="Minimum Per User Backup Storage Limit Allowed is 1":this.limitError=""}myFunctionDevice(){this.noOfDevicesAllowed>this.noOfDevicesAllowedCloud?this.deviceAllowedError="This value exceeds the number of devices licensable per user. Please enter a value lower than or equal to "+this.noOfDevicesAllowedCloud:this.deviceAllowedError=""}togglePurgeDeletedFilesOlderThan(){this.switchpurgeDeletedFilesOlderThan?(console.log("iffffffffffff"),this.purgeDeletedFilesOlderThan="90"):(console.log("elseeeeeee"),this.purgeDeletedFilesOlderThan="UNLIMITED"),this.myFunctionpurgeDeletedFilesOlderThan()}myFunctionpurgeDeletedFilesOlderThan(){console.log("purgeDeletedFilesOlderThan : "+this.purgeDeletedFilesOlderThan),this.deletedFilesError="";let r=Number(this.purgeDeletedFilesOlderThan);console.log("inputValue : "+r),isNaN(r)?this.purgeDeletedFilesOlderThan!=="UNLIMITED"&&(this.deletedFilesError='Input can be either "UNLIMITED" or any integer'):this.purgeDeletedFilesOlderThan.includes(".")?this.deletedFilesError="Please enter an integral value":r<1&&!isNaN(r)?this.deletedFilesError="Minimum number of Versions Allowed is 1":this.deletedFilesError=""}updateOutput(){this.output.createUser=this.getEnabledOptions(["createUserAdmins","createUserReadonlyadmins","createUserUsers"]),this.output.userDeleted=this.getEnabledOptions(["userDeletedAdmins","userDeletedReadonlyadmins","userDeletedUsers"]),this.output.userBlocked=this.getEnabledOptions(["userBlockedAdmins","userBlockedReadonlyadmins","userBlockedUsers"]),this.output.userLimitReached=this.getEnabledOptions(["userLimitReachedAdmins","userLimitReachedReadonlyadmins","userLimitReachedUsers"]),this.output.deviceDeleted=this.getEnabledOptions(["deviceDeletedAdmins","deviceDeletedReadonlyadmins","deviceDeletedUsers"]),this.output.deviceBlocked=this.getEnabledOptions(["deviceBlockedAdmins","deviceBlockedReadonlyadmins","deviceBlockedUsers"]),this.output.deviceDecoupled=this.getEnabledOptions(["deviceDecoupledAdmins","deviceDecoupledReadonlyadmins","deviceDecoupledUsers"]),this.output.deviceLimitReached=this.getEnabledOptions(["deviceLimitReachedAdmins","deviceLimitReachedReadonlyadmins","deviceLimitReachedUsers"]),this.output.weeklyBkpreport=this.getEnabledOptions(["weeklyBkpreportAdmins","weeklyBkpreportReadonlyadmins","weeklyBkpreportUsers"]),this.output.firstBkpCompleted=this.getEnabledOptions(["firstBkpCompletedAdmins","firstBkpCompletedReadonlyadmins","firstBkpCompletedUsers"]),this.output.restoreInitiated=this.getEnabledOptions(["restoreInitiatedAdmins","restoreInitiatedReadonlyadmins","restoreInitiatedUsers"]),this.output.storageLimitReached=this.getEnabledOptions(["storageLimitReachedAdmins","storageLimitReachedReadonlyadmins","storageLimitReachedUsers"])}getEnabledOptions(r){return r.map(m=>this[m]).filter(m=>m!=="").join(",")}updatePreferences(){let r=["bkpfiles","bkpsettings","initiatebackup","stopbackup","support","about","systrayIcon","restore","refbkppolicy","pauseBackup","updateAgent","decouple","exitt","disallowAdminRestores","blockNotifications"];this.endpointUiPreferences=[],this.endpointDisabledUiPreferences=[],this.getSelectedValues(r),console.log("Enabled Preferences:",this.endpointUiPreferences),console.log("Disabled Preferences:",this.endpointDisabledUiPreferences)}getSelectedValues(r){r.forEach(m=>{let e=document.getElementById(m);if(e){let o=this.mapIdToPreference(m);e.value==="true"?this.endpointUiPreferences.push(o):this.endpointDisabledUiPreferences.push(o)}})}mapIdToPreference(r){switch(r){case"pauseBackup":return"PAUSE_BACKUP";case"stopbackup":return"STOP_BACKUP";case"initiatebackup":return"INITIATE_BACKUP";case"updateAgent":return"UPDATE_AGENT";case"systrayIcon":return"SYSTRAYICON";case"bkpfiles":return"BACKUP_FILES";case"bkpsettings":return"BACKUP_SETTINGS";case"refbkppolicy":return"REFRESH_BACKUP_POLICY";case"blockNotifications":return"BLOCK_NOTIFICATIONS";case"disallowAdminRestores":return"DISALLOW_ADMIN_RESTORES";case"exitt":return"EXIT";default:return r.toUpperCase()}}updateMenuOptions(){let r=["Open","View","Versions","Share","Download","portalRestore"];this.menuOptions=this.getSelectedMenuOptions(r),console.log("Menu Options:",this.menuOptions)}getSelectedMenuOptions(r){let m={};return r.forEach(e=>{let o=document.getElementById(e);o&&(console.log("element : "+o.getAttribute("id")),o.getAttribute("id")=="portalRestore"?m.restore=o.value:m[e.toLowerCase()]=o.value)}),m}getprivacyElement(){let r={};return r.gatewayNwThrottlingName="Default",r.privacyGatewayNames=this.checkedListPg,r}flipAllowEndUserTocontrolRestore(){this.canAdminRestoreAll?(this.allowEndUserTocontrolRestore=!0,this.isAdminDeleteBackupFile=!0):(this.allowEndUserTocontrolRestore=!1,this.isAdminDeleteBackupFile=!1)}toggleDeletedFiles(){this.switchnoOfDaysToKeepDeletedFiles?(console.log("iffffffffffff"),this.noOfDaysToKeepDeletedFiles="90"):(console.log("elseeeeeee"),this.noOfDaysToKeepDeletedFiles="UNLIMITED"),this.myFunctionnoOfDaysToKeepDeletedFiles()}myFunctionnoOfDaysToKeepDeletedFiles(){console.log("noOfDaysToKeepDeletedFiles : "+this.noOfDaysToKeepDeletedFiles),this.deletedFilesError="";let r=Number(this.noOfDaysToKeepDeletedFiles);console.log("inputValue : "+r),isNaN(r)?this.noOfDaysToKeepDeletedFiles!=="UNLIMITED"&&(this.deletedFilesError='Input can be either "UNLIMITED" or any integer'):this.noOfDaysToKeepDeletedFiles.includes(".")?this.deletedFilesError="Please enter an integral value":r<1&&!isNaN(r)?this.deletedFilesError="Minimum number of Versions Allowed is 1":this.deletedFilesError=""}toggleNoOfDaysToKeepUserDeviceNotActive(){this.switchnoOfDaysToKeepUserDeviceNotActive?(console.log("iffffffffffff"),this.noOfDaysToKeepUserDeviceNotActive="60"):(console.log("elseeeeeee"),this.noOfDaysToKeepUserDeviceNotActive="UNLIMITED"),this.myFunctionnoOfDaysToKeepUserDeviceNotActive()}myFunctionnoOfDaysToKeepUserDeviceNotActive(){console.log("noOfDaysToKeepUserDeviceNotActive : "+this.noOfDaysToKeepUserDeviceNotActive),this.deletedAssetsError="";let r=Number(this.noOfDaysToKeepUserDeviceNotActive);console.log("inputValue : "+r),isNaN(r)?this.noOfDaysToKeepUserDeviceNotActive!=="UNLIMITED"&&(this.deletedAssetsError='Input can be either "UNLIMITED" or any integer'):this.noOfDaysToKeepUserDeviceNotActive.includes(".")?this.deletedAssetsError="Please enter an integral value":r<1&&!isNaN(r)?this.deletedAssetsError="Minimum number of Versions Allowed is 1":this.deletedAssetsError=""}addDefaultFolder(){this.defaultFoldersBackup!=""&&(this.defaultUniversalFolders.push(this.defaultFoldersBackup),this.defaultFoldersBackup="",console.log("this.defaultUniversalFolders : "+JSON.stringify(this.defaultUniversalFolders)))}removeDefaultFolder(r){var m=this.defaultUniversalFolders.indexOf(r);m>-1&&this.defaultUniversalFolders.splice(m,1)}addExclusionFolder(){this.exclusionFolderName!=""&&(this.userExcludedFoldersUniversal.reverse(),this.userExcludedFoldersUniversal.push(this.exclusionFolderName),this.userExcludedFoldersUniversal.reverse(),this.exclusionFolderName="",console.log("this.userExcludedFoldersUniversal : "+JSON.stringify(this.userExcludedFoldersUniversal)))}removeExclusionFolder(r){var m=this.userExcludedFoldersUniversal.indexOf(r);m>-1&&this.userExcludedFoldersUniversal.splice(m,1)}callApis(){let r=this.apiService.getAllSchedules(),m=this.apiService.getAllFilters(),e=this.apiService.getPgs(),o=this.apiService.cloudProperties(),c=this.apiService.getGlobalExclusion(),n=this.apiService.getOfficePolicy(this.sharedService.getDataByKey("currentPolicyName"),"ODB"),z=this.apiService.getMSAgentSettings();ne([r,m,e,o,c,n,z]).subscribe(([M,O,G,T,U,N,mi])=>{console.log("API 1 response status:",M.status),console.log("API 1 response body:",M.body.scheduleElementList),console.log("API 1 response headers:",M.headers),console.log("API 2 response body:",O.body.inclusionFilterElementList),console.log("API 2 response headers:",O.headers),console.log("API 3 response body:",G.body.privacyGatewayElementList),console.log("API 3 response headers:",G.headers),console.log("API 4 response body:",T.body),console.log("API 4 response headers:",T.headers),console.log("API 5 response body:",U.body),console.log("API 5 response headers:",U.headers),console.log("API 6 response body:",N.body.officeBackupPolicyElement),console.log("API 6 response headers:",N.headers),console.log("API 7 response body:",N.body.MSAppBluKryptElementList),console.log("API 7 response headers:",N.headers);let ie=G.body.privacyGatewayElementList.map(q=>({gatewayName:q.gatewayName,status:!1}));console.log("Transformed Data:",ie),this.msAppAgentList=N.body.MSAppBluKryptElementList,this.schedules=M.body.scheduleElementList,this.filters=O.body.inclusionFilterElementList.map(q=>A(V({},q),{status:!1})),console.log("filterssssssssss : "+JSON.stringify(this.filters)),this.searchfilters=O.body.inclusionFilterElementList.map(q=>A(V({},q),{status:!1})),this.pgs=ie,console.log("API 5 response body:",JSON.stringify(U.body.globalExcludedFoldersElement.globalExcludedFoldersList.win));let ee=[...new Set([...U.body.globalExcludedFoldersElement.globalExcludedFoldersList.win,...U.body.globalExcludedFoldersElement.globalExcludedFoldersList.mac])];ee=[...new Set([...ee,...U.body.globalExcludedFoldersElement.globalExcludedFoldersList.linux])],console.log("CombinedExclusions :",JSON.stringify(ee)),this.noOfDevicesAllowedCloud=T.body.cloudPropertyElement.noOfDevicesAllowed,this.canUserChangePassword=T.body.cloudPropertyElement.canUserChangePassword,this.canAdminChangeUserPassword=T.body.cloudPropertyElement.canAdminChangeUserPassword,this.passwordChangeEnforce=T.body.cloudPropertyElement.passwordChangeEnforce,this.canAdminRestoreAll=T.body.cloudPropertyElement.canAdminRestoreAll,this.isAdminDeleteBackupFile=T.body.cloudPropertyElement.isAdminDeleteBackupFile,this.searchEnabled=T.body.cloudPropertyElement.searchEnabled,this.overridePolicySettings=T.body.cloudPropertyElement.overridePolicySettings,this.showUserConsentFieldInPolicies=T.body.cloudPropertyElement.showUserConsentFieldInPolicies,this.storageProvider=T.body.cloudPropertyElement.storageProvider,this.hostedSetup=T.body.cloudPropertyElement.hostedSetup,this.getPolicy(N.body.officeBackupPolicyElement)},M=>{switch(console.error("Error from Api's call: ",M),M.status){case 400:console.error("Bad Request: ",M.message);break;case 401:console.error("Unauthorized: ",M.message),this.toastr.info("Token expired, navigating to logout page.","Info"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",M.message);break;case 404:console.error("Not Found: ",M.message);break;case 500:console.error("Internal Server Error: ",M.message);break;case 503:console.error("Internal Server Error: ",M.message);break;default:console.error("Unknown Error: ",M.message);break}})}getSelectedValueSchedule(r,m){if(r)this.checkedListSchedule.push(m),console.log("this.checkedList1 : "+this.checkedListSchedule);else{var e=this.checkedListSchedule.indexOf(m);this.checkedListSchedule.splice(e,1)}this.getMultipleSchedules(this.checkedListSchedule.toString()),this.currentSelectedSchedule={checked:r,name:m},this.shareCheckedlistCreate(),this.shareIndividualStatusCreate()}shareCheckedlistCreate(){this.shareCheckedList.emit(this.checkedListSchedule)}shareIndividualStatusCreate(){this.shareIndividualCheckedList.emit(this.currentSelectedSchedule)}getMultipleSchedules(r){this.apiService.getMultipleSchedules(r).subscribe(m=>{var e=JSON.stringify(m.body),o=JSON.parse(e);console.log("scheduleElementList from  getMultipleSchedules: "+JSON.stringify(o.scheduleElementList)),this.defaultSchedules=o.scheduleElementList,this.cdr.detectChanges()},m=>{switch(console.error("Error from getMultipleSchedules: ",m),m.status){case 400:console.error("Bad Request: ",m.message);break;case 401:console.error("Unauthorized: ",m.message),this.toastr.info("Token expired, navigating to logout page.","Info"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",m.message);break;case 404:console.error("Not Found: ",m.message);break;case 500:console.error("Internal Server Error: ",m.message);break;case 503:console.error("Internal Server Error: ",m.message);break;default:console.error("Unknown Error: ",m.message);break}})}getSelectedValueFilter(r,m){if(r)this.checkedListFilter.push(m),console.log("this.checkedList1 : "+this.checkedListFilter);else{var e=this.checkedListFilter.indexOf(m);e>-1&&this.checkedListFilter.splice(e,1)}this.getMultipleFilters(this.checkedListFilter.toString()),this.currentSelectedFilter={checked:r,name:m},this.shareCheckedlistFilter(),this.shareIndividualStatusFilter()}shareCheckedlistFilter(){this.shareCheckedListFilter.emit(this.checkedListFilter)}shareIndividualStatusFilter(){this.shareIndividualCheckedListFilter.emit(this.currentSelectedFilter)}getMultipleFilters(r){this.apiService.getMultipleFilters(r).subscribe(m=>{var e=JSON.stringify(m.body),o=JSON.parse(e);console.log("inclusionFilterElementList from  getMultipleFilters: "+JSON.stringify(o.inclusionFilterElementList)),this.defaultFilters=o.inclusionFilterElementList,this.cdr.detectChanges()},m=>{switch(console.error("Error from getMultipleFilters: ",m),m.status){case 400:console.error("Bad Request: ",m.message);break;case 401:console.error("Unauthorized: ",m.message),this.toastr.info("Token expired, navigating to logout page.","Info"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",m.message);break;case 404:console.error("Not Found: ",m.message);break;case 500:console.error("Internal Server Error: ",m.message);break;case 503:console.error("Internal Server Error: ",m.message);break;default:console.error("Unknown Error: ",m.message);break}})}getSelectedValueSearchFilter(r,m){if(r)this.checkedListSearchFilter.push(m),console.log("this.checkedList1Search : "+this.checkedListSearchFilter);else{var e=this.checkedListSearchFilter.indexOf(m);e>-1&&this.checkedListSearchFilter.splice(e,1)}this.getMultipleSearchFilters(this.checkedListSearchFilter.toString()),this.currentSelectedSearchFilter={checked:r,name:m},this.shareCheckedlistSearchFilter(),this.shareIndividualStatusSearchFilter()}shareCheckedlistSearchFilter(){this.shareCheckedListSearchFilter.emit(this.checkedListSearchFilter)}shareIndividualStatusSearchFilter(){this.shareIndividualCheckedListSearchFilter.emit(this.currentSelectedSearchFilter)}getMultipleSearchFilters(r){this.apiService.getMultipleFilters(r).subscribe(m=>{var e=JSON.stringify(m.body),o=JSON.parse(e);console.log("inclusionFilterElementList from  getMultipleFilters: "+JSON.stringify(o.inclusionFilterElementList)),this.defaultSearchFilters=o.inclusionFilterElementList,this.cdr.detectChanges()},m=>{switch(console.error("Error from getMultipleFilters: ",m),m.status){case 400:console.error("Bad Request: ",m.message);break;case 401:console.error("Unauthorized: ",m.message),this.toastr.info("Token expired, navigating to logout page.","Info"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",m.message);break;case 404:console.error("Not Found: ",m.message);break;case 500:console.error("Internal Server Error: ",m.message);break;case 503:console.error("Internal Server Error: ",m.message);break;default:console.error("Unknown Error: ",m.message);break}})}getSelectedValuePg(r,m){if(r)this.checkedListPg.push(m),console.log("this.checkedListPg : "+this.checkedListPg);else{var e=this.checkedListPg.indexOf(m);this.checkedListPg.splice(e,1),console.log("this.checkedListPg : "+this.checkedListPg)}this.currentSelectedPg={checked:r,name:m},this.shareCheckedlistCreatePg(),this.shareIndividualStatusCreatePg()}shareCheckedlistCreatePg(){this.shareCheckedListPg.emit(this.checkedListPg)}shareIndividualStatusCreatePg(){this.shareIndividualCheckedListPg.emit(this.currentSelectedSchedule)}onSearchAlgorithmChange(){this.searchAlgorithm==="NEAREST"&&(this.checkedListPg=[],this.pgs.forEach(r=>r.checked=!1))}submitEditPolicy(r){if(r.invalid){r.control.markAllAsTouched(),this.toastr.error("Please fill in all required fields.");return}if(this.checkedListSchedule.length<=0||this.checkedListFilter.length<=0){this.checkedListSchedule.length<=0&&this.toastr.error("Please select at least one schedule."),this.checkedListFilter.length<=0&&this.toastr.error("Please select at least one filter.");return}if(this.limitError!=""){this.toastr.error("Please check the value for Per Asset Backup Storage Limit.");return}this.updateOutput(),this.updatePreferences(),this.updateMenuOptions(),this.policyModel.policygroupName=this.policygroupName,this.policyModel.description=this.description,this.policyModel.maxVersions=this.versions==="UNLIMITED"?"-1":this.versions,this.policyModel.maxFileSize=this.maxPermissibleFileSize==="UNLIMITED"?"1048576":this.maxPermissibleFileSize,this.policyModel.userSizeAllowed=this.perUserBackupStorageLimit==="UNLIMITED"?"102400":this.perUserBackupStorageLimit,this.policyModel.noOfDevicesAllowed=this.noOfDevicesAllowedCloud.toString(),this.policyModel.osType="universal",this.policyModel.backupFolderPaths=this.defaultUniversalFolders,this.policyModel.excludedFolderpaths=this.userExcludedFoldersUniversal,this.policyModel.filterType=this.inclusionFilter?"inclusion":"exclusion",this.policyModel.searchFilterType=this.inclusionSearchFilter?"inclusion":"exclusion",this.policyModel.emailsRestriction=this.output,this.policyModel.endpointUiPreferences=this.endpointUiPreferences,this.policyModel.endpointDisabledUiPreferences=this.endpointDisabledUiPreferences,this.policyModel.menuOptions=this.menuOptions,this.policyModel.cpuThrottling=this.cpuThrottling.toString(),this.policyModel.legalHoldEnabled=this.legalHold?"true":"false",this.policyModel.rwDetectionEnabled=this.rwDetectionEnabled?"true":"false",this.policyModel.webBasedLogin=this.webBasedLogin.toString(),this.policyModel.compressionEnabled=this.compEnabled.toString(),this.policyModel.vssEnabled=this.vssEnabled.toString(),this.policyModel.searchAlgoForPg=this.searchAlgorithm,this.policyModel.privacyGatewayMappingElement=this.getprivacyElement(),this.policyModel.policyRefresh=this.policyRefresh+":00",this.policyModel.logUnaccessedFiles=this.switchlogUnaccessedFiles?"true":"false",this.policyModel.canBackupHiddenFiles=this.canBackupHiddenFiles?"true":"false",this.policyModel.noOfDaysToKeepDeletedFiles=this.noOfDaysToKeepDeletedFiles==="UNLIMITED"?"-1":this.noOfDaysToKeepDeletedFiles.toString(),this.policyModel.canUserChangePassword=this.canUserChangePassword,this.policyModel.canAdminChangeUserPassword=this.canAdminChangeUserPassword,this.policyModel.filterInclusionName=this.checkedListFilter,this.policyModel.scheduleNames=this.checkedListSchedule,this.policyModel.searchFilterInclusionName=this.checkedListSearchFilter.length>0?this.checkedListSearchFilter:["all_files"],this.policyModel.backupFolderPaths=this.defaultUniversalFolders,this.policyModel.excludedFolderpaths=this.userExcludedFoldersUniversal,this.policyModel.nwFromClientToPGMB=parseFloat(this.nwFromClientToPGMB),this.onUnitChange(),this.policyModel.noOfDaysToKeepUserDeviceNotActive=this.noOfDaysToKeepUserDeviceNotActive==="UNLIMITED"?"-1":this.noOfDaysToKeepUserDeviceNotActive,this.policyModel.purgeDeletedFilesOlderThan=this.purgeDeletedFilesOlderThan==="UNLIMITED"?-1:parseInt(this.purgeDeletedFilesOlderThan),this.policyModel.msAppBluKrypt=this.msAppBluKrypt,this.policyModel.contentIndexEnabled=this.contentIndexEnabled,console.log("Policy Details : "+JSON.stringify(this.policyModel)),this.apiService.editOfficePolicy(this.policyModel).subscribe(m=>{console.log("Policy edited successfully:",m),this.toastr.success("Policy edited successfully.","Info"),setTimeout(()=>{this.router.navigate(["/pms/oneDrivePolicy"])},5e3)},m=>{console.error("Error editing policy:",m)})}onUnitChange(){let r=Number(this.nwFromClientToPGMB);if(console.log("nwvalue : "+this.nwFromClientToPGMB),this.nwFromClientToPGMB=="UNLIMITED")this.policyModel.nwFromClientToPG=1e4,this.policyModel.nwFromClientToPGMB=1e4;else switch(this.networkThrottlingUnit){case"kbps":this.policyModel.nwFromClientToPG=parseFloat((r/1024).toFixed(4)),this.policyModel.nwFromClientToPGMB=parseFloat((r/1024).toFixed(4));break;case"mbps":this.policyModel.nwFromClientToPG=parseFloat(r.toFixed(4)),this.policyModel.nwFromClientToPGMB=parseFloat(r.toFixed(4)),console.log("123 : "+parseFloat(r.toFixed(4)));break;case"gbps":this.policyModel.nwFromClientToPG=parseFloat((r*1024).toFixed(4)),this.policyModel.nwFromClientToPGMB=parseFloat((r*1024).toFixed(4));break;default:break}}getPolicy(r){this.policygroupName=r.policygroupName,this.description=r.description,this.checkedListSchedule=r.scheduleNames,this.schedules=this.schedules.map(o=>A(V({},o),{checked:this.checkedListSchedule.includes(o.scheduleName)})),this.getMultipleSchedules(this.checkedListSchedule.toString()),this.versions=r.maxVersions,r.maxVersions=="-1"?(this.isVersionEnabled=!1,this.versions="UNLIMITED"):this.isVersionEnabled=!0,this.maxPermissibleFileSize=r.maxFileSize,r.maxFileSize=="1048576"||r.maxFileSize=="-1"?(this.isSizeEnabled=!1,this.maxPermissibleFileSize="UNLIMITED"):this.isSizeEnabled=!0,this.perUserBackupStorageLimit=r.userSizeAllowed,r.userSizeAllowed=="102400"?(this.isLimitEnabled=!1,this.perUserBackupStorageLimit="UNLIMITED"):this.isLimitEnabled=!0,this.noOfDevicesAllowed=r.noOfDevicesAllowed,this.defaultUniversalFolders=r.backupFolderPaths,this.userExcludedFoldersUniversal=r.excludedFolderpaths?r.excludedFolderpaths:[],this.inclusionFilter=r.filterType,this.checkedListFilter=r.filterInclusionName,this.filters=this.filters.map(o=>A(V({},o),{checked:this.checkedListFilter.includes(o.filterName)})),this.getMultipleFilters(this.checkedListFilter.toString()),r.searchFilterType=="inclusion"?(this.inclusionSearchFilter=!0,this.exclusionSearchFilter=!1):(this.inclusionSearchFilter=!1,this.exclusionSearchFilter=!0),this.searchFilterType=r.searchFilterType,this.checkedListSearchFilter=r.searchFilterInclusionName,this.filters=this.filters.map(o=>A(V({},o),{checked:this.checkedListSearchFilter.includes(o.filterName)})),this.getMultipleSearchFilters(this.checkedListSearchFilter.toString()),this.nwFromClientToPGMB=r.nwFromClientToPGMB;let m=Math.round(r.nwFromClientToPGMB*1e4)/1e4,e="mbps";m<1?(m=Math.round(m*1024),e="kbps"):m>1024&&m===1e4?(m=-1,e="mbps"):m>1024?(m=Math.round(m/1024),e="gbps"):m=Math.round(m),m==-1?(this.nwFromClientToPGMB="UNLIMITED",this.networkThrottlingUnit="mbps",this.isThrottleEnabled=!1):(this.nwFromClientToPGMB=m.toString(),this.networkThrottlingUnit=e,this.isThrottleEnabled=!0),this.contentIndexEnabled=r.contentIndexEnabled,this.cpuThrottling=r.cpuThrottling,this.legalHold=r.legalHoldEnabled,this.rwDetectionEnabled=r.rwDetectionEnabled,this.numberOfThreadsAllowedForBackup=r.numberOfThreadsAllowedForBackup,this.webBasedLogin=r.webBasedLogin,this.compEnabled=r.compressionEnabled,this.vssEnabled=r.vssEnabled,this.policyRefresh=r.policyRefresh.split(":")[0],this.switchlogUnaccessedFiles=r.logUnaccessedFiles,this.canBackupHiddenFiles=r.canBackupHiddenFiles,r.purgeDeletedFilesOlderThan==-1?(this.switchpurgeDeletedFilesOlderThan=!1,this.purgeDeletedFilesOlderThan="UNLIMITED"):(this.switchpurgeDeletedFilesOlderThan=!0,this.purgeDeletedFilesOlderThan=r.purgeDeletedFilesOlderThan),r.noOfDaysToKeepDeletedFiles=="-1"?(this.switchnoOfDaysToKeepDeletedFiles=!1,this.noOfDaysToKeepDeletedFiles="UNLIMITED"):(this.switchnoOfDaysToKeepDeletedFiles=!0,this.noOfDaysToKeepDeletedFiles=r.noOfDaysToKeepDeletedFiles),r.noOfDaysToKeepUserDeviceNotActive==-1?(this.switchnoOfDaysToKeepUserDeviceNotActive=!1,this.noOfDaysToKeepUserDeviceNotActive="UNLIMITED"):(this.switchnoOfDaysToKeepUserDeviceNotActive=!0,this.noOfDaysToKeepUserDeviceNotActive=r.noOfDaysToKeepUserDeviceNotActive),this.canUserChangePassword=r.canUserChangePassword,this.canAdminChangeUserPassword=r.canAdminChangeUserPassword,this.searchAlgorithm=r.searchAlgoForPg,this.checkedListPg=r.privacyGatewayMappingElement.privacyGatewayNames,this.pgs=this.pgs.map(o=>A(V({},o),{checked:this.checkedListPg.includes(o.gatewayName)})),console.log("policyElement.privacyGatewayMappingElement.privacyGatewayNames : "+r.privacyGatewayMappingElement.privacyGatewayNames),this.endpointUiPreferencesEdit=r.endpointUiPreferences?r.endpointUiPreferences:[],this.endpointDisabledUiPreferencesEdit=r.endpointDisabledUiPreferences?r.endpointDisabledUiPreferences:[],this.updatePreferencesEdit(),this.menuOptionsEdit=r.menuOptions,this.createUserAdmins=r.emailsRestriction.createUser.includes("admins")?"admins":"",this.createUserReadonlyadmins=r.emailsRestriction.createUser.includes("readonlyadmins")?"readonlyadmins":"",this.createUserUsers=r.emailsRestriction.createUser.includes("users")?"users":"",this.userDeletedAdmins=r.emailsRestriction.userDeleted.includes("admins")?"admins":"",this.userDeletedReadonlyadmins=r.emailsRestriction.userDeleted.includes("readonlyadmins")?"readonlyadmins":"",this.userDeletedUsers=r.emailsRestriction.userDeleted.includes("users")?"users":"",this.userBlockedAdmins=r.emailsRestriction.userBlocked.includes("admins")?"admins":"",this.userBlockedReadonlyadmins=r.emailsRestriction.userBlocked.includes("readonlyadmins")?"readonlyadmins":"",this.userBlockedUsers=r.emailsRestriction.userBlocked.includes("users")?"users":"",this.userLimitReachedAdmins=r.emailsRestriction.userLimitReached.includes("admins")?"admins":"",this.userLimitReachedReadonlyadmins=r.emailsRestriction.userLimitReached.includes("readonlyadmins")?"readonlyadmins":"",this.userLimitReachedUsers=r.emailsRestriction.userLimitReached.includes("users")?"users":"",this.deviceDeletedAdmins=r.emailsRestriction.deviceDeleted.includes("admins")?"admins":"",this.deviceDeletedReadonlyadmins=r.emailsRestriction.deviceDeleted.includes("readonlyadmins")?"readonlyadmins":"",this.deviceDeletedUsers=r.emailsRestriction.deviceDeleted.includes("users")?"users":"",this.deviceBlockedAdmins=r.emailsRestriction.deviceBlocked.includes("admins")?"admins":"",this.deviceBlockedReadonlyadmins=r.emailsRestriction.deviceBlocked.includes("readonlyadmins")?"readonlyadmins":"",this.deviceBlockedUsers=r.emailsRestriction.deviceBlocked.includes("users")?"users":"",this.deviceDecoupledAdmins=r.emailsRestriction.deviceDecoupled.includes("admins")?"admins":"",this.deviceDecoupledReadonlyadmins=r.emailsRestriction.deviceDecoupled.includes("readonlyadmins")?"readonlyadmins":"",this.deviceDecoupledUsers=r.emailsRestriction.deviceDecoupled.includes("users")?"users":"",this.deviceLimitReachedAdmins=r.emailsRestriction.deviceLimitReached.includes("admins")?"admins":"",this.deviceLimitReachedReadonlyadmins=r.emailsRestriction.deviceLimitReached.includes("readonlyadmins")?"readonlyadmins":"",this.deviceLimitReachedUsers=r.emailsRestriction.deviceLimitReached.includes("users")?"users":"",this.weeklyBkpreportAdmins=r.emailsRestriction.weeklyBkpreport.includes("admins")?"admins":"",this.weeklyBkpreportReadonlyadmins=r.emailsRestriction.weeklyBkpreport.includes("readonlyadmins")?"readonlyadmins":"",this.weeklyBkpreportUsers=r.emailsRestriction.weeklyBkpreport.includes("users")?"users":"",this.firstBkpCompletedAdmins=r.emailsRestriction.firstBkpCompleted.includes("admins")?"admins":"",this.firstBkpCompletedReadonlyadmins=r.emailsRestriction.firstBkpCompleted.includes("readonlyadmins")?"readonlyadmins":"",this.firstBkpCompletedUsers=r.emailsRestriction.firstBkpCompleted.includes("users")?"users":"",this.restoreInitiatedAdmins=r.emailsRestriction.restoreInitiated.includes("admins")?"admins":"",this.restoreInitiatedReadonlyadmins=r.emailsRestriction.restoreInitiated.includes("readonlyadmins")?"readonlyadmins":"",this.restoreInitiatedUsers=r.emailsRestriction.restoreInitiated.includes("users")?"users":"",this.storageLimitReachedAdmins=r.emailsRestriction.storageLimitReached.includes("admins")?"admins":"",this.storageLimitReachedReadonlyadmins=r.emailsRestriction.storageLimitReached.includes("readonlyadmins")?"readonlyadmins":"",this.storageLimitReachedUsers=r.emailsRestriction.storageLimitReached.includes("users")?"users":"",this.msAppBluKrypt=r.msAppBluKrypt}updatePreferencesEdit(){this.endpointUiPreferencesEdit.forEach(r=>{this.preferencesEdit[r]=!0}),this.endpointDisabledUiPreferencesEdit.forEach(r=>{this.preferencesEdit[r]=!1})}newFilterEdit(r){console.log("filterName : "+r)}toggleAccordion(r){this.itemVisible=this.itemVisible.map((m,e)=>e===r?!m:!1),this.itemVisible[r]?(this.onAccordionOpen(r),this.createLinkEnabled=!0):this.createLinkEnabled=!1}onAccordionOpen(r){switch(r){case 0:this.handleBackupAccordionOpen();break;default:console.log("Unknown accordion item opened")}}handleBackupAccordionOpen(){console.log("First accordion item opened")}includethreshholdLimitChange(){this.includethreshholdLimitCheck?this.threshholdLimit="80":this.threshholdLimit=""}includepurgeFilesOlderThanChange(){this.includepurgeFilesOlderThanCheck?this.purgeFilesOlderThan="365":this.purgeFilesOlderThan=""}includepurgeFilesSizeGTThanChange(){this.includepurgeFilesSizeGTThanCheck?this.purgeFilesSizeGTThan="5":this.purgeFilesSizeGTThan=""}onScheduleChange(){this.checkedListSchedule.length>0?this.getMultipleSchedules(this.checkedListSchedule.toString()):(this.defaultSchedules=[],this.toastr.info("No schedules selected. Please select at least one schedule.","Info"))}onFilterChange(){this.checkedListFilter.length>0?this.getMultipleFilters(this.checkedListFilter.toString()):(this.defaultFilters=[],this.toastr.info("No filters selected. Please select at least one filter.","Info"))}onSearchFilterChange(){this.checkedListSearchFilter.length>0?this.getMultipleFilters(this.checkedListSearchFilter.toString()):this.defaultSearchFilters=[]}addNewSchedule(){this.displaySchCreateStyle="block"}closeSchCreateModal(){this.displaySchCreateStyle="none",this.scheduleDaysList=[],this.myTime=new Date,this.showDaily=!0,this.resetScheduleModel()}resetScheduleModel(){this.scheduleModel={scheduleName:"",time:"",timezone:"IST",backupType:"INCR",dayArray:[]}}onScheduleDayChange(){this.updateShowDailyLabel(),this.matSelectCreate.close()}updateShowDailyLabel(){this.showDaily=this.scheduleDaysList.length===0}toggleSelectAllDays(){this.showDaily?this.scheduleDaysList=[...this.allDays]:this.scheduleDaysList=[],this.updateShowDailyLabel()}submitCreateSchedule(r){if(console.log("save called11 : "),r.invalid){r.control.markAllAsTouched(),this.toastr.error("Please check all fields.");return}if(this.scheduleModel.scheduleName==""){this.toastr.error("Please enter Schedule Name.");return}if(this.scheduleDaysList.length<=0){this.scheduleDaysList.length<=0&&this.toastr.error("Please select at least one day for the schedule.");return}console.log("save called22 : ");let m=this.myTime.getHours().toString().padStart(2,"0"),e=this.myTime.getMinutes().toString().padStart(2,"0");this.scheduleModel.time=`${m}:${e}`,this.scheduleModel.dayArray=this.scheduleDaysList,this.apiService.saveSchedule(this.scheduleModel).subscribe(o=>{console.log("Schedule created successfully:",o),this.toastr.success("Schedule created successfully.","Info"),this.checkedListSchedule.push(this.scheduleModel.scheduleName),this.getAllSchedules(),this.getMultipleSchedules(this.checkedListSchedule.toString()),this.closeSchCreateModal()},o=>{console.error("Error creating filter:",o)})}getAllSchedules(){this.apiService.getAllSchedules().subscribe(r=>{this.schedules=r.body.scheduleElementList,this.cdr.detectChanges()},r=>{switch(console.error("Error from getAllSchedules: ",r),r.status){case 400:console.error("Bad Request: ",r.message);break;case 401:console.error("Unauthorized: ",r.message),this.toastr.info("Token expired, navigating to logout page.","Info"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",r.message);break;case 404:console.error("Not Found: ",r.message);break;case 500:console.error("Internal Server Error: ",r.message);break;case 503:console.error("Internal Server Error: ",r.message);break;default:console.error("Unknown Error: ",r.message);break}})}closeScheduleConfPopup(){this.displayScheduleConfStyle="none"}closeEditModal(){this.displaySchEditStyle="none"}editSchedule(r){console.log("schedule to edit : "+r),this.scheduleNameToEdit=r,this.displayScheduleConfStyle="block"}getParticularSchedule(){this.displayScheduleConfStyle="none",this.apiService.getParticularSchedule(this.scheduleNameToEdit).subscribe(r=>{var m=JSON.stringify(r.body),e=JSON.parse(m);this.scheduleElement=e.scheduleElement,this.displaySchEditStyle="block";let o=this.scheduleElement.time,[c,n]=o.split(":").map(Number);this.myTime=new Date,this.myTime.setHours(c),this.myTime.setMinutes(n),this.scheduleDaysListEdit=this.scheduleElement.dayArray.map(z=>z.toString()),this.cdr.detectChanges()},r=>{switch(console.error("Error from getParticularSchedule: ",r),r.status){case 400:console.error("Bad Request: ",r.message);break;case 401:console.error("Unauthorized: ",r.message),this.toastr.info("Token expired, navigating to logout page.","Info"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",r.message);break;case 404:console.error("Not Found: ",r.message);break;case 500:console.error("Internal Server Error: ",r.message);break;case 503:console.error("Internal Server Error: ",r.message);break;default:console.error("Unknown Error: ",r.message);break}})}onScheduleDayChangeEdit(){this.updateShowDailyLabelEdit(),this.matSelectEdit.close()}updateShowDailyLabelEdit(){this.showDailyEdit=this.scheduleDaysListEdit.length===0}toggleSelectAllDaysEdit(){this.showDailyEdit?this.scheduleDaysListEdit=[...this.allDays]:this.scheduleDaysListEdit=[],this.updateShowDailyLabelEdit()}submitEditSchedule(r){if(this.scheduleDaysListEdit.length<=0){this.scheduleDaysListEdit.length<=0&&this.toastr.error("Please select at least one day for the schedule.");return}let m=this.myTime.getHours().toString().padStart(2,"0"),e=this.myTime.getMinutes().toString().padStart(2,"0");this.scheduleEditModel.time=`${m}:${e}`,this.scheduleEditModel.scheduleName=this.scheduleNameToEdit,this.scheduleEditModel.dayArray=this.scheduleDaysListEdit,this.apiService.editSchedule(this.scheduleEditModel).subscribe(o=>{console.log("Schedule updated successfully:",o),this.closeEditModal(),this.getMultipleSchedules(this.checkedListSchedule.toString()),this.toastr.success("Schedule updated successfully.","Info")},o=>{console.error("Error creating filter:",o)})}addNewFilter(){this.displayFilterCreateStyle="block",this.getAllCannedFilters()}closeCreateFilterModal(){this.displayFilterCreateStyle="none",this.resetFilterModel()}resetFilterModel(){this.filterModel={filterName:"",filterType:"inclusion",filters:""}}onFilterCreateChange(){if(this.checkedList.length>0){let r=this.checkedList.length>0?this.checkedList.toString().split(","):[];this.checkedListExtensionCreate=r,this.showExtensions(),this.cannedFiltersCreate=r.concat(this.userDefinedExtensionsCreate)}else this.cannedFiltersCreate=this.userDefinedExtensionsCreate,this.checkedListExtensionCreate=[];this.matSelectCreateFilter.close()}showExtensions(){this.extensionsVisible=!0}submitCreateFilter(){this.filterModel.filters=this.cannedFiltersCreate.join(","),this.apiService.saveFilter(this.filterModel).subscribe(r=>{this.checkedListFilter.push(this.filterModel.filterName),this.getMultipleFilters(this.checkedListFilter.toString()),this.closeCreateFilterModal(),this.toastr.success("Filter created successfully.","Info"),this.getAllFilters()},r=>{console.error("Error creating filter:",r)})}getAllFilters(){this.apiService.getAllFilters().subscribe(r=>{var m=JSON.stringify(r.body),e=JSON.parse(m);this.filters=e.inclusionFilterElementList,this.cdr.detectChanges(),this.getAllCannedFilters()},r=>{switch(console.error("Error from getAllFilters: ",r),r.status){case 400:console.error("Bad Request: ",r.message);break;case 401:console.error("Unauthorized: ",r.message),this.toastr.info("Token expired, navigating to logout page.","Info"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",r.message);break;case 404:console.error("Not Found: ",r.message);break;case 500:console.error("Internal Server Error: ",r.message);break;case 503:console.error("Internal Server Error: ",r.message);break;default:console.error("Unknown Error: ",r.message);break}})}getAllCannedFilters(){this.apiService.getAllCannedFilters().subscribe(r=>{var m=JSON.stringify(r.body),e=JSON.parse(m);this.cannedFiltersTemplateCreate=e.filterTemplateElementList.map(o=>A(V({},o),{status:!1})),this.cannedFiltersTemplateCreate.sort((o,c)=>o.filterName.localeCompare(c.filterName)),this.cannedFiltersTemplateEdit=e.filterTemplateElementList.map(o=>A(V({},o),{status:!1})),this.cannedFiltersTemplateEdit.sort((o,c)=>o.filterName.localeCompare(c.filterName)),this.cdr.detectChanges()},r=>{switch(console.error("Error from getAllCannedFilters: ",r),r.status){case 400:console.error("Bad Request: ",r.message);break;case 401:console.error("Unauthorized: ",r.message),this.toastr.info("Token expired, navigating to logout page.","Info"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",r.message);break;case 404:console.error("Not Found: ",r.message);break;case 500:console.error("Internal Server Error: ",r.message);break;case 503:console.error("Internal Server Error: ",r.message);break;default:console.error("Unknown Error: ",r.message);break}})}editFilter(r){this.filterToEdit=r,this.displayFilterConfStyle="block"}closeConfFilterPopup(){this.filterToEdit="",this.displayFilterConfStyle="none"}closeEditFilterModal(){this.displayFilterEditStyle="none"}getFilter(){this.displayFilterConfStyle="none",this.apiService.getFilter(this.filterToEdit).subscribe(r=>{var m=JSON.stringify(r.body),e=JSON.parse(m);this.filterElement=e.inclusionFilterElement,this.filterEditModel.filterName=this.filterElement.filterName,this.filterEditModel.filterType="inclusion",this.filterEditModel.filters=this.filterElement.filters,this.cannedFilters=this.filterElement.filters.split(","),this.userDefinedExtensionsEdit=this.filterElement.filters.split(","),this.displayFilterEditStyle="block",this.cdr.detectChanges(),this.getAllCannedFilters()},r=>{switch(console.error("Error from getFilter: ",r),r.status){case 400:console.error("Bad Request: ",r.message);break;case 401:console.error("Unauthorized: ",r.message),this.toastr.info("Token expired, navigating to logout page.","Info"),setTimeout(()=>{this.router.navigate(["/logout"])},3e3);break;case 403:console.error("Forbidden: ",r.message);break;case 404:console.error("Not Found: ",r.message);break;case 500:console.error("Internal Server Error: ",r.message);break;case 503:console.error("Internal Server Error: ",r.message);break;default:console.error("Unknown Error: ",r.message);break}})}onFilterChangeEdit(){if(this.checkedList.length>0){let r=this.checkedList.length>0?this.checkedList.toString().split(","):[];this.checkedListExtensionEdit=r,this.showExtensions(),r.some(m=>this.userDefinedExtensionsEdit.includes(m))||(this.cannedFilters=r.concat(this.userDefinedExtensionsEdit))}else this.cannedFilters=this.userDefinedExtensionsEdit,this.checkedListExtensionEdit=[];this.matSelectEditFilter.close()}submitEditFilter(){this.filterEditModel.filters=this.cannedFilters.join(","),this.apiService.editFilter(this.filterEditModel).subscribe(r=>{console.log("Filter updated successfully:",r),this.closeEditFilterModal(),this.toastr.success("Filter updated successfully.","Info"),this.getMultipleFilters(this.checkedListFilter.toString())},r=>{console.error("Error creating filter:",r)})}removeExtension(r){var m=this.checkedListExtension.indexOf(r);this.checkedListExtension.splice(m,1);var e=this.cannedFilters.indexOf(r);this.cannedFilters.splice(e,1)}removeExtensionCreate(r){var m=this.checkedListExtension.indexOf(r);this.checkedListExtension.splice(m,1);var e=this.cannedFiltersCreate.indexOf(r);this.cannedFiltersCreate.splice(e,1)}addFilterExtensionCreate(){this.newFilterExtensionCreate.trim()&&(this.userDefinedExtensionsCreate.push(this.newFilterExtensionCreate.trim()),this.checkedListExtensionCreate.length>0?this.cannedFiltersCreate=this.userDefinedExtensionsCreate.concat(this.checkedListExtensionCreate):this.cannedFiltersCreate=this.userDefinedExtensionsCreate,this.newFilterExtensionCreate="",this.showExtensions())}addFilterExtensionEdit(){this.newFilterExtensionEdit.trim()&&(this.userDefinedExtensionsEdit.push(this.newFilterExtensionEdit.trim()),this.checkedListExtensionCreate.length>0?this.cannedFilters=this.userDefinedExtensionsEdit.concat(this.checkedListExtensionEdit):this.cannedFilters=this.userDefinedExtensionsEdit,this.newFilterExtensionEdit="",this.showExtensions())}static{this.\u0275fac=function(m){return new(m||p)(P(ge),P(Q),P(_e),P(ht),P(Z),P(Re),P($),P(de),P(Ee),P(ct))}}static{this.\u0275cmp=le({type:p,selectors:[["app-edit"]],viewQuery:function(m,e){if(m&1&&(H(St,5),H(yt,5),H(wt,5),H(Ct,5)),m&2){let o;Y(o=J())&&(e.matSelectEdit=o.first),Y(o=J())&&(e.matSelectCreate=o.first),Y(o=J())&&(e.matSelectCreateFilter=o.first),Y(o=J())&&(e.matSelectEditFilter=o.first)}},inputs:{schedules:"schedules",pgs:"pgs"},outputs:{shareCheckedList:"shareCheckedList",shareIndividualCheckedList:"shareIndividualCheckedList",shareCheckedListFilter:"shareCheckedListFilter",shareIndividualCheckedListFilter:"shareIndividualCheckedListFilter",shareCheckedListSearchFilter:"shareCheckedListSearchFilter",shareIndividualCheckedListSearchFilter:"shareIndividualCheckedListSearchFilter",shareCheckedListPg:"shareCheckedListPg",shareIndividualCheckedListPg:"shareIndividualCheckedListPg"},standalone:!0,features:[ae([Q,Z,$]),se],decls:1379,vars:297,consts:[["myForm","ngForm"],["policyNameInput","ngModel"],["tabContent1","cTabContent"],["item0","cAccordionItem"],["myScheduleForm","ngForm"],["scheduleNameInput","ngModel"],["matSelectCreate",""],["myScheduleEditForm","ngForm"],["matSelectEdit",""],["matSelectCreateFilter",""],["matSelectEditFilter",""],[1,"container"],[1,"row"],[1,"col-lg-6"],[1,"breadcrumb"],[4,"ngIf"],[3,"ngSubmit"],["xs","12"],[1,"mb-3"],[1,"row",2,"margin-top","10px"],[1,"col-lg-7"],[1,"form-group"],["for","policyName"],["type","text","name","policyName","id","policyName","minlength","3","maxlength","50","placeholder","Enter Policy Name","required","","autocomplete","off","autofocus","","pattern","^[a-zA-Z0-9@._-]*$","title","Only letters, numbers, and @, -, _, . are allowed","readonly","",1,"form-control",3,"ngModelChange","ngModel"],["class","text-danger",4,"ngIf"],["cLabel","","for","description"],["cFormControl","","name","description","id","description","minlength","5","maxlength","512","rows","3",3,"ngModelChange","ngModel"],[1,"form-group","hide","d-none"],["for","policyStorageSizeAllowed"],["type","number","name","policyStorageSizeAllowed","id","policyStorageSizeAllowed","placeholder","","value","0","autocomplete","off","required","",1,"form-control",3,"ngModelChange","ngModel"],["for","policyUsersAllowed"],["type","number","name","policyUsersAllowed","id","policyUsersAllowed","placeholder","","value","0","autocomplete","off","required","",1,"form-control",3,"ngModelChange","ngModel"],["variant","tabs","role","tablist"],["cNavLink","",3,"cTabContent","tabPaneIdx"],["cRounded","bottom",3,"activeTabPaneIdx"],[1,"p-3","preview"],[1,"h4",2,"color","#585f69"],["for","schedules"],["ng-click","addNewSchedule()",1,"clickAble",2,"cursor","pointer","font-size","small","font-weight","600"],["appearance","fill",2,"width","100%"],["multiple","",3,"ngModelChange","selectionChange","ngModel","ngModelOptions"],[3,"value",4,"ngFor","ngForOf"],[1,"col-lg-5"],["class","row",4,"ngIf"],["for","maxVersions",1,"col-lg-12"],[1,"col-lg-2"],[3,"switch"],["cFormCheckInput","","id","switchver","type","checkbox",3,"ngModelChange","change","ngModel","ngModelOptions"],[1,"col-lg-8"],["type","text","name","maxVersions","id","maxVersions","placeholder","Enter maxVersions","required","","autocomplete","off","value","3",1,"form-control",3,"ngModelChange","blur","ngModel","disabled"],["id","vererror",2,"color","#f55753","font-size","0.9em"],["for","maxPermissibleFileSize",1,"col-lg-12"],["cFormCheckInput","","id","switchsize","type","checkbox",3,"ngModelChange","change","ngModel","ngModelOptions"],["type","text","name","maxPermissibleFileSize","id","maxPermissibleFileSize","placeholder","Enter Maximum Permissible File Size","required","","autocomplete","off","value","UNLIMITED",1,"form-control",3,"ngModelChange","blur","ngModel","disabled"],["id","sizeerror",2,"color","#f55753","font-size","0.9em"],["for","perUserBackupStorageLimit",1,"col-lg-12"],["cFormCheckInput","","id","switchlimit","type","checkbox",3,"ngModelChange","change","ngModel","ngModelOptions"],["type","text","name","perUserBackupStorageLimit","id","perUserBackupStorageLimit","placeholder","Enter Per Asset Backup Storage Limit","required","","autocomplete","off","value","250",1,"form-control",3,"ngModelChange","blur","ngModel","disabled"],["id","limiterror",2,"color","#f55753","font-size","0.9em"],[1,"row",2,"margin-left","0px"],[1,"col-lg-2",2,"padding-left","0%"],["cFormCheckInput","","id","switchpurgeDeletedFilesOlderThan","type","checkbox",3,"ngModelChange","change","ngModel","ngModelOptions"],["type","text","name","purgeDeletedFilesOlderThan","id","purgeDeletedFilesOlderThan","autocomptocomplete","off","value","UNLIMITED",1,"form-control",3,"ngModelChange","blur","ngModel","disabled"],["id","deletedFilesError",2,"color","#f55753","font-size","0.9em"],[1,"form-group","d-none"],["for","msAppBluKrypt"],["cSelect","","name","msAppBluKrypt","id","msAppBluKrypt","title","Select Backup Agent",1,"form-control","msAppBluKrypt",3,"ngModelChange","ngModel"],[1,"row",2,"margin-bottom","10px",3,"ngStyle"],[3,"visible"],["cTemplateId","accordionHeaderTemplate"],["cTemplateId","accordionBodyTemplate"],["for","noOfDevicesAllowed"],["type","number","name","noOfDevicesAllowed","id","noOfDevicesAllowed","placeholder","Maximum Assets Allowed","required","","autocomplete","off","value","10","data-parsley-type","integer","min","1",1,"form-control",3,"ngModelChange","blur","ngModel"],["id","deviceerror",2,"color","#f55753","font-size","0.9em"],["for","osType"],["cSelect","","name","osType","id","osType","required","","title","Select OS Type",1,"form-control","selectOsTypePicker",3,"ngModelChange","ngModel"],["value","universal","selected",""],["for","defaultFoldersBackup"],["aria-describedby","defaultFoldersBackupBtn","name","defaultFoldersBackup","id","defaultFoldersBackup","aria-label","Default Folders to Backup","cFormControl","","placeholder","Enter Default Folders to Backup",3,"ngModelChange","ngModel"],["cButton","","color","secondary","id","defaultFoldersBackupBtn","type","button","variant","outline",3,"click"],["for","exclusionFolderName"],["aria-describedby","exclusionFoldersBtn","name","exclusionFolderName","id","exclusionFolderName","aria-label","Exclusion Folder Name","cFormControl","","placeholder","Enter the full path of the folder",3,"ngModelChange","ngModel"],["cButton","","color","secondary","id","exclusionFoldersBtn","type","button","variant","outline",3,"click"],[1,"col-lg-12"],[1,"panel","panel-default",2,"overflow-y","scroll","height","450px"],[1,"panel","panel-default"],[1,"panel-heading"],[1,"fa","fa-folder-open"],[1,"panel-body"],[1,"table-responsive"],["class","list-group",4,"ngIf"],[1,"panel-body",2,"overflow-y","scroll","height","150px"],["cTooltip","File extensions that you wish to include or exclude.","cTooltipPlacement","bottom",2,"color","#F27331","cursor","pointer"],["aria-hidden","true",1,"fa","fa-question-circle"],["for","filters"],["ng-click","addNewFilter()",1,"clickAble",2,"cursor","pointer","font-size","small","font-weight","600"],["cSelect","","name","filtersType","id","filtersType","title","Select Filter Type",1,"form-control","selectFilterTypePicker",3,"change"],["value","inclusion",3,"selected"],["value","exclusion",3,"selected"],[1,"row","col-lg-12"],["class","col-lg-1 inclusionBadge","style","margin-top: 10px;",4,"ngIf"],["class","col-lg-1 exclusionBadge","style","margin-top:10px;",4,"ngIf"],["class","row allFilters",4,"ngIf"],[1,"col-lg-6","d-none"],["cSelect","","name","createUser[]",1,"form-control","userCreateAdmins",3,"ngModelChange","change","ngModel"],["value","admins","selected",""],["value",""],["cSelect","","name","createUser[]",1,"form-control","userCreateReadonlyadmins",3,"ngModelChange","change","ngModel"],["value","readonlyadmins","selected",""],["cSelect","","name","createUser[]",1,"form-control","userCreateUsers",3,"ngModelChange","change","ngModel"],["value","users"],["value","","selected",""],["cSelect","","name","userDeleted[]",1,"form-control","userDeletedAdmins",3,"ngModelChange","change","ngModel"],["cSelect","","name","userDeleted[]",1,"form-control","userDeletedReadonlyadmins",3,"ngModelChange","change","ngModel"],["cSelect","","name","userDeleted[]",1,"form-control","userDeletedUsers",3,"ngModelChange","change","ngModel"],["cSelect","","name","userBlocked[]",1,"form-control","userBlockedAdmins",3,"ngModelChange","change","ngModel"],["cSelect","","name","userBlocked[]",1,"form-control","userBlockedReadonlyadmins",3,"ngModelChange","change","ngModel"],["cSelect","","name","userBlocked[]",1,"form-control","userBlockedUsers",3,"ngModelChange","change","ngModel"],["cSelect","","name","userLimitReached[]",1,"form-control","userLimitReachedAdmins",3,"ngModelChange","change","ngModel"],["cSelect","","name","userLimitReached[]",1,"form-control","userLimitReachedReadonlyadmins",3,"ngModelChange","change","ngModel"],["cSelect","","name","userLimitReached[]",1,"form-control","userLimitReachedUsers",3,"ngModelChange","change","ngModel"],["cSelect","","name","deviceDeleted[]",1,"form-control","deviceDeletedAdmins",3,"ngModelChange","change","ngModel"],["cSelect","","name","deviceDeleted[]",1,"form-control","deviceDeletedReadonlyadmins",3,"ngModelChange","change","ngModel"],["cSelect","","name","deviceDeleted[]",1,"form-control","deviceDeletedUsers",3,"ngModelChange","change","ngModel"],["cSelect","","name","deviceBlocked[]",1,"form-control","deviceBlockedAdmins",3,"ngModelChange","change","ngModel"],["cSelect","","name","deviceBlocked[]",1,"form-control","deviceBlockedReadonlyadmins",3,"ngModelChange","change","ngModel"],["cSelect","","name","deviceBlocked[]",1,"form-control","deviceBlockedUsers",3,"ngModelChange","change","ngModel"],["cSelect","","name","deviceDecoupled[]",1,"form-control","deviceDecoupledAdmins",3,"ngModelChange","change","ngModel"],["cSelect","","name","deviceDecoupled[]",1,"form-control","deviceDecoupledReadonlyadmins",3,"ngModelChange","change","ngModel"],["cSelect","","name","deviceDecoupled[]",1,"form-control","deviceDecoupledUsers",3,"ngModelChange","change","ngModel"],["cSelect","","name","deviceLimitReached[]",1,"form-control","deviceLimitReachedAdmins",3,"ngModelChange","change","ngModel"],["cSelect","","name","deviceLimitReached[]",1,"form-control","deviceLimitReachedReadonlyadmins",3,"ngModelChange","change","ngModel"],["cSelect","","name","deviceLimitReached[]",1,"form-control","deviceLimitReachedUsers",3,"ngModelChange","change","ngModel"],["cSelect","","name","weeklyBkpreport[]",1,"form-control","weeklyBkpreportAdmins",3,"ngModelChange","change","ngModel"],["cSelect","","name","weeklyBkpreport[]",1,"form-control","weeklyBkpreportReadonlyadmins",3,"ngModelChange","change","ngModel"],["cSelect","","name","weeklyBkpreport[]",1,"form-control","weeklyBkpreportUsers",3,"ngModelChange","change","ngModel"],["cSelect","","name","firstBkpCompleted[]",1,"form-control","firstBkpCompletedAdmins",3,"ngModelChange","change","ngModel"],["cSelect","","name","firstBkpCompleted[]",1,"form-control","firstBkpCompletedReadonlyadmins",3,"ngModelChange","change","ngModel"],["cSelect","","name","firstBkpCompleted[]",1,"form-control","firstBkpCompletedUsers",3,"ngModelChange","change","ngModel"],["cSelect","","name","restoreInitiated[]",1,"form-control","restoreInitiatedAdmins",3,"ngModelChange","change","ngModel"],["cSelect","","name","restoreInitiated[]",1,"form-control","restoreInitiatedReadonlyadmins",3,"ngModelChange","change","ngModel"],["cSelect","","name","restoreInitiated[]",1,"form-control","restoreInitiatedUsers",3,"ngModelChange","change","ngModel"],["cSelect","","name","storageLimitReached[]",1,"form-control","storageLimitReachedAdmins",3,"ngModelChange","change","ngModel"],["cSelect","","name","storageLimitReached[]",1,"form-control","storageLimitReachedReadonlyadmins",3,"ngModelChange","change","ngModel"],["cSelect","","name","storageLimitReached[]",1,"form-control","storageLimitReachedUsers",3,"ngModelChange","change","ngModel"],[1,"row","d-none"],["cTooltip","Changes will reflect on next relaunch of agent.","cTooltipPlacement","bottom",2,"color","#F27331","cursor","pointer"],["for","shareEnabled"],["cSelect","","name","bkpfiles","id","bkpfiles","required","","title","Select share",1,"form-control","bkpfiles",3,"ngModelChange","change","ngModel"],["value","true","selected",""],["value","false"],["cSelect","","name","bkpsettings","id","bkpsettings","required","","title","Select share",1,"form-control","bkpsettings",3,"ngModelChange","change","ngModel"],["cSelect","","name","initiatebackup","id","initiatebackup","required","","title","Select share",1,"form-control","initiatebackup",3,"ngModelChange","change","ngModel"],["cSelect","","name","stopbackup","id","stopbackup","required","","title","Select share",1,"form-control","stopbackup",3,"ngModelChange","change","ngModel"],["cSelect","","name","support","id","support","required","","title","Select support",1,"form-control","support",3,"ngModelChange","change","ngModel"],["for","about"],["cSelect","","name","about","id","about","required","","title","Select about",1,"form-control","about",3,"ngModelChange","change","ngModel"],["for","blockNotifications"],["cSelect","","name","blockNotifications","id","blockNotifications","title","Select share",1,"form-control","blockNotifications",3,"ngModelChange","change","ngModel"],["value","true"],["value","false","selected",""],["for","systrayIcon"],["cSelect","","name","systrayIcon","id","systrayIcon","required","","title","Select systrayIcon",1,"form-control","systrayIcon",3,"ngModelChange","change","ngModel"],["cSelect","","name","restore","id","restore","required","","title","Select restore",1,"form-control","restore",3,"ngModelChange","change","ngModel"],["cSelect","","name","refbkppolicy","id","refbkppolicy","required","","title","Select share",1,"form-control","refbkppolicy",3,"ngModelChange","change","ngModel"],["for","pauseBackup"],["cSelect","","name","pauseBackup","id","pauseBackup","required","","title","Select pauseBackup",1,"form-control","pauseBackup",3,"ngModelChange","change","ngModel"],["for","updateAgent"],["cSelect","","name","updateAgent","id","updateAgent","required","","title","Select updateAgent",1,"form-control","updateAgent",3,"ngModelChange","change","ngModel"],["cSelect","","name","decouple","id","decouple","required","","title","Select decouple",1,"form-control","decouple",3,"ngModelChange","change","ngModel"],[1,"form-group","hide"],["for","disallowAdminRestores"],["cSelect","","name","disallowAdminRestores","id","disallowAdminRestores","required","","title","Select Disallow Admin Restores",1,"form-control","disallowAdminRestores",3,"ngModelChange","change","ngModel"],["cSelect","","name","exitt","id","exitt","required","","title","Select exit",1,"form-control","exitt",3,"ngModelChange","change","ngModel"],[1,"col-lg-12","row"],["cTooltip","Portal changes will reflect on user login.","cTooltipPlacement","bottom",2,"color","#F27331","cursor","pointer"],[1,"form-group","Open"],["for","Open"],["cSelect","","name","Open","id","Open","required","","title","Select Open",1,"form-control","Open",3,"ngModelChange","change","ngModel"],[1,"form-group","Versions"],["for","Versions"],["cSelect","","name","Versions","id","Versions","required","","title","Select Versions",1,"form-control","Versions",3,"ngModelChange","change","ngModel"],[1,"form-group","Download"],["for","Download"],["cSelect","","name","Download","id","Download","required","","title","Select Download",1,"form-control","Download",3,"ngModelChange","change","ngModel"],[1,"form-group","View"],["for","View"],["cSelect","","name","View","id","View","required","","title","Select View",1,"form-control","View",3,"ngModelChange","change","ngModel"],[1,"form-group","Share","hide"],["for","Share"],["cSelect","","name","Share","id","Share","required","","title","Select Share",1,"form-control","Share",3,"ngModelChange","change","ngModel"],[1,"form-group","portalRestore"],["for","portalRestore"],["cSelect","","name","portalRestore","id","portalRestore","required","","title","Select Restore",1,"form-control","portalRestore",3,"ngModelChange","change","ngModel"],[1,"row","shareDetailsLabel","hide"],[1,"col-lg-12",2,"border","1px dashed grey","border-radius","10px"],[1,"checkbox","check-primary"],["id","shareDomainsEnabled","name","shareDomainsEnabled","type","checkbox","value","enabled"],["for","shareDomainsEnabled"],[1,"form-group","col-lg-6"],["for","shareDomainIncExclusions"],["type","text","name","shareDomainIncExclusions","id","shareDomainIncExclusions","placeholder","","autocomplete","off","value","",1,"form-control"],[1,"col-lg-6",2,"margin-left","-14px","margin-top","20px"],[1,"col-lg-12",2,"margin-bottom","15px"],["type","radio","name","shareDomainType","id","only","value","Share only with these Email domains"],["for","link"],["type","radio","name","shareDomainType","id","withall","value","Share with all Email domains excepting these"],[1,"col-lg-6","row",2,"margin-top","10px"],[1,"col-lg-2","controllerSLBlock"],[1,"switch"],["id","controllerSL","type","checkbox","name","controllerSL","value","true"],[1,"slider","round"],[2,"margin-top","5px"],["id","highSecureShareEnabled","name","highSecureShareEnabled","type","checkbox","value","enabled","checked",""],["for","highSecureShareEnabled"],[1,"col-lg-6","row"],[1,"col-lg-2","controllerCPBlock"],["id","controllerCP","type","checkbox","name","controllerCP","value","true","checked",""],[1,"col-lg-2","controllerADBlock"],["id","controllerAD","type","checkbox","name","controllerAD","value","true"],[1,"col-lg-2","controllerEDBlock"],["id","controllerED","type","checkbox","name","controllerED","value","true","checked",""],[1,"col-lg-2","controllerMFABlock"],["id","controllerMFA","type","checkbox","name","controllerMFA","value","true","checked",""],["cTooltip","Related to search.","cTooltipPlacement","bottom",2,"color","#F27331","cursor","pointer"],[1,"form-group","contentIndexEnabled"],["for","contentIndexEnabled"],["cSelect","","name","contentIndexEnabled","id","contentIndexEnabled","required","","title","Select Content Index Enabled",1,"form-control","contentIndexEnabled",3,"ngModelChange","ngModel"],["for","filters",1,"d-none"],["ng-click","addNewFilter()",1,"clickAble","d-none",2,"font-size","small","font-weight","600"],["cSelect","","name","searchFilterType","id","searchfiltersType","title","Select Filter Type",1,"form-control","selectSearchFilterTypePicker",3,"ngModelChange","change","ngModel"],["value","inclusion"],["value","exclusion"],["class","col-lg-1 inclusionBadgeCS","style","margin-top: 10px;",4,"ngIf"],["class","col-lg-1 exclusionBadgeCS","style","margin-top:10px;",4,"ngIf"],[1,"h4","d-none",2,"color","#585f69"],[1,"form-group","partial","d-none"],["for","incrementalFileTransfer"],["cSelect","","name","incrementalFileTransfer","id","incrementalFileTransfer","required","","title","Select incrementalFileTransfer",1,"form-control","incrementalFileTransfer"],["data-role","controlgroup","data-type","horizontal"],["for","nwFromClientToPG",1,"col-lg-12"],[1,"col-lg-8",2,"margin-bottom","10px"],["cFormCheckInput","","id","switch","type","checkbox",3,"ngModelChange","change","ngModel","ngModelOptions"],["type","text","name","nwFromClientToPGMB","id","nwFromClientToPGMB","placeholder","","required","","autocomplete","off",1,"form-control",3,"ngModelChange","blur","ngModel","disabled"],["id","switcherror",2,"color","#f55753","font-size","0.9em"],["id","switchwarning",2,"color","#f27331","font-size","0.9em"],["cSelect","","name","networkThrottlingUnit","id","networkThrottlingUnit",1,"form-control",3,"ngModelChange","change","ngModel","disabled"],["value","kbps"],["value","mbps"],["value","gbps"],[1,"form-group","col-lg-12","d-none"],["for","cpuThrottling"],[1,"slidecontainer"],["type","range","min","1","max","10","name","cpuThrottling","id","myRange",1,"slidercpu",3,"ngModelChange","input","ngModel"],["id","demo"],["for","nwFromPGToCloud"],["type","text","name","nwFromPGToCloud","id","nwFromPGToCloud","placeholder","Enter nwFromPGToCloud","required","","autocomplete","off","value","4","data-parsley-type","integer","data-parsley-min","1","data-parsley-max","10",1,"form-control"],["for","filesCrawlLimit"],["type","text","name","filesCrawlLimit","id","filesCrawlLimit","placeholder","Enter filesCrawlLimit","required","","autocomplete","off","value","500","data-parsley-type","integer","data-parsley-min","1",1,"form-control"],["for","networkThrottling"],["cSelect","","name","networkThrottling","id","networkThrottling","required","","title","Select networkThrottling",1,"form-control","networkThrottling"],[1,"col-lg-5","d-none"],[1,"row","partialfileattributerow"],[1,"panel","panel-default",2,"margin-top","30px"],["for","partialFileSize"],["type","text","name","partialFileSize","id","partialFileSize","placeholder","Enter partialFileSize","required","","autocomplete","off","value","9","data-parsley-type","integer","data-parsley-min","1","data-parsley-max","<?=MAX_ENABLE_PARTIAL_FILE_TRANSFER?>",1,"form-control"],["for","fileChunkableSize"],["type","text","name","fileChunkableSize","id","fileChunkableSize","placeholder","Enter fileChunkableSize","required","","autocomplete","off","value","8","data-parsley-type","integer","data-parsley-min","1","data-parsley-max","<?=MAX_PARTIAL_FILE_TRANSFER_CHUNK_SIZE?>",1,"form-control"],[1,"col-lg-1"],["cFormCheckInput","","id","legalHold","type","checkbox",3,"ngModelChange","ngModel","ngModelOptions"],[1,"col-lg-11"],[1,"systemFolders",2,"display","none"],["id","systemFolders","name","systemFolders","type","checkbox","value","enabled"],["for","systemFolders"],[1,"col-lg-6","row","d-none"],[1,"col-lg-2","rwDetectionEnabledBlock"],["cFormCheckInput","","id","rwDetectionEnabled","type","checkbox",3,"ngModelChange","ngModel","ngModelOptions"],["for","numberOfThreadsAllowedForBackup"],["type","number","name","numberOfThreadsAllowedForBackup","id","numberOfThreadsAllowedForBackup","placeholder","Enter Number of threads allowed for Backup","required","","autocomplete","off","value","1","min","1","max","5",1,"form-control",3,"ngModelChange","ngModel"],["for","webBasedLogin"],["cSelect","","name","webBasedLogin","id","webBasedLogin","required","","title","Select Web Based Login",1,"form-control","webBasedLogin",3,"ngModelChange","ngModel"],["cFormCheckInput","","id","switchnoOfDaysToKeepUserDeviceNotActive","type","checkbox",3,"ngModelChange","change","ngModel","ngModelOptions"],["type","text","name","noOfDaysToKeepUserDeviceNotActive","id","noOfDaysToKeepUserDeviceNotActive","autocomptocomplete","off","value","UNLIMITED",1,"form-control",3,"ngModelChange","blur","ngModel","disabled"],[1,"form-group",3,"ngStyle"],["for","canAdminRestore"],["name","canAdminRestore","id","canAdminRestore","required","","title","Select Can Admin Restore",1,"form-control","canAdminRestore",3,"ngModelChange","ngModel","ngClass"],[3,"ngValue"],[1,"form-group",2,"margin-left","30px",3,"ngStyle"],["for","allowEndUserTocontrolRestore"],["name","allowEndUserTocontrolRestore","id","allowEndUserTocontrolRestore","required","","title","Select option",1,"form-control","allowEndUserTocontrolRestore",3,"ngModelChange","ngModel","ngClass"],["for","canAdminDelete"],["name","canAdminDelete","id","canAdminDelete","required","","title","Select Can Admin Delete",1,"form-control","canAdminDelete",3,"ngModelChange","ngModel","ngClass"],["for","dedup"],["cSelect","","name","dedup","id","dedup","required","","title","Select dedup",1,"form-control","dedup",3,"ngModelChange","ngModel"],["value","Disabled"],["value","User","selected",""],["for","compEnabled"],["cSelect","","name","compEnabled","id","compEnabled","required","","title","Select compEnabled",1,"form-control","compEnabled",3,"ngModelChange","ngModel"],[1,"form-group","vssContainer","d-none",2,"display","none"],["for","vssEnabled"],["cSelect","","name","vssEnabled","id","vssEnabled","required","","title","Select vss",1,"form-control","vssEnabled",3,"ngModelChange","ngModel"],[1,"form-group","searchAlgoForPg","d-none"],["for","searchAlgoForPg"],["cSelect","","name","searchAlgoForPg","id","sortAlgoForPg","required","",1,"form-control","searchAlgoForPg",3,"ngModelChange","change","ngModel"],["value","NEAREST"],["value","PRIORITY"],["class","form-group d-none","id","BlukryptipaddressDiv",4,"ngIf"],["for","ccS"],["ng-click","addNewCcS()",1,"clickAble"],["cSelect","","ng-model","ccSs","name","ccS","id","ccS","title","Select ccS",1,"form-control","selectCcSPicker"],["for","policyRefresh"],["type","number","id","policyRefresh","name","policyRefresh","value","4","min","1","max","23","required","",1,"form-control","input-small",3,"ngModelChange","ngModel"],["for","logUnaccessedFiles",1,"col-lg-12",2,"margin-top","10px"],["id","switchlogUnaccessedFiles","name","switchlogUnaccessedFiles","type","checkbox",3,"ngModelChange","ngModel"],["for","canBackupHiddenFiles"],["cSelect","","name","canBackupHiddenFiles","id","canBackupHiddenFiles","required","","title","Select canBackupHiddenFiles",1,"form-control","canBackupHiddenFiles",3,"ngModelChange","ngModel"],[1,"form-group","row","d-none",2,"padding-left","3%"],[2,"color","#93a3b5"],[1,"col-lg-4",2,"padding-left","0%"],["id","switchFairnessAlgorithm","type","checkbox"],["type","number","min","0","name","daysToWaitForNextBackup","id","daysToWaitForNextBackup","autocomptocomplete","off","value","0","disabled","",1,"form-control"],["for","fullBackupEnabled"],["cSelect","","name","fullBackupEnabled","id","fullBackupEnabled","required","","title","Select fullBackupEnabled",1,"form-control","fullBackupEnabled"],[1,"form-group","backupDate","d-none",2,"display","none"],["for","fullBackupStartDate"],["type","text","id","fullBackupStartDate","name","fullBackupStartDate","placeholder","Select date for full backup","autocomplete","off",1,"form-control","backupDatePicker","input-small"],["cTooltip","Go to Global settings to enable this option.","cTooltipPlacement","bottom",2,"color","#F27331","cursor","pointer"],["for","canUserChangePassword"],["cSelect","","name","canUserChangePassword","id","canUserChangePassword","required","","title","Select Can User Change Password",1,"form-control","canUserChangePassword",3,"ngModelChange","ngModel","ngClass"],["for","canAdminChangeUserPassword"],["cSelect","","name","canAdminChangeUserPassword","id","canAdminChangeUserPassword","required","","title","Select Allow Admin To Change User Password",1,"form-control","canAdminChangeUserPassword",3,"ngModelChange","ngModel","ngClass"],[1,"bs-callout","bs-callout-primary",2,"padding-top","10px","padding-bottom","1px"],["type","submit",1,"btn","btn-primary","pull-right"],[1,"btn","btn-default","pull-right",2,"margin-right","10px",3,"click"],[1,"main"],["id","confirmAdd","tabindex","-1","role","dialog","aria-labelledby","myModalLabel","data-backdrop","static","data-keyboard","false",1,"modal","fade"],["role","document",1,"modal-dialog"],["ng-submit","addDefaultFolderConfirm(defaultFoldersBackup)",1,""],[1,"modal-content","smallModal"],[1,"modal-header"],["id","myModalLabel",1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close"],["aria-hidden","true"],[1,"modal-body"],[1,"modal-footer"],["type","button","data-dismiss","modal",1,"btn","btn-default"],["type","submit",1,"saveRename","btn","btn-success"],["id","confirmAdd1","tabindex","-1","role","dialog","aria-labelledby","myModalLabel","data-backdrop","static","data-keyboard","false",1,"modal","fade"],["ng-submit","addExclusionFolderConfirm(exclusionFolderName)",1,""],["id","confirmAdd2","tabindex","-1","role","dialog","aria-labelledby","myModalLabel","data-backdrop","static","data-keyboard","false",1,"modal","fade"],["ng-submit","addExceptionFolderConfirm(exceptionFolderName)",1,""],["id","modalCreateSchedule","tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","90% !important",3,"ngStyle"],["role","document",1,"modal-dialog","modal-lg"],[1,"modal-content"],[1,"modal-header","header-container"],[1,"modal-title"],[2,"cursor","pointer",3,"click"],[1,"fa-solid","fa-xmark"],["for","filterName"],["type","text","name","scheduleName","id","scheduleName","value","","placeholder","Enter Schedule Name","required","","autocomplete","off","pattern","^[a-zA-Z0-9@._-]*$",1,"form-control",3,"ngModelChange","ngModel"],["for","filterTemplate"],[3,"ngModelChange","ngModel","showMeridian","minuteStep","ngModelOptions"],[1,"form-group","col-lg-12",2,"margin-top","20px"],["appearance","fill",2,"width","70%"],[3,"value"],["type","button",1,"btn","btn-link",3,"click"],["type","button",1,"btn","btn-default",3,"click"],["type","submit",1,"btn","btn-primary"],["id","modalConfirmation","tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","90% !important",3,"ngStyle"],["type","button",1,"btn","btn-danger",3,"click"],["type","button",1,"btn","btn-success",3,"click"],["id","modalEditSchedule","tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","90% !important",3,"ngStyle"],["type","text","name","filterName","placeholder","<?=Language::show('enter', 'keywords');?> <?=Language::show('filterName', 'keywords');?>","required","","autocomplete","off","readonly","",1,"form-control",3,"value"],["id","modalCreateFilter","tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","90% !important",3,"ngStyle"],["type","text","name","filterName","value","","placeholder","Enter Filter Name","required","","autocomplete","off",1,"form-control",3,"ngModelChange","ngModel"],["for","filterType"],["name","filterType","required","",1,"form-control","filterType",3,"ngModelChange","ngModel"],["cTooltip","Enter comma separated list of extensions","cTooltipPlacement","right",2,"color","#F27331","cursor","pointer"],[1,"form-control",2,"border","1px solid rgba(8, 10, 12, 0.175)","border-radius","10px"],["id","extensionsSpanCreate"],["style","word-wrap: break-word;width: fit-content;margin-right: 10px;",4,"ngFor","ngForOf"],["type","text","placeholder","Enter filters","required","","autocomplete","off",1,"form-control",2,"margin-top","10px","width","25%","margin-bottom","10px",3,"ngModelChange","keyup.enter","ngModel"],["type","submit",1,"btn","btn-primary",3,"click"],["id","modal2","tabindex","-1","role","dialog",1,"modal",2,"--cui-modal-width","90% !important",3,"ngStyle"],["type","text","name","filterName","placeholder","<?=Language::show('enter', 'keywords');?> <?=Language::show('filterName', 'keywords');?>","required","","autocomplete","off",1,"form-control",3,"ngModelChange","ngModel","value"],["cTooltip","Enter comma separated list of extensions","cTooltipPlacement","bottom",2,"color","#F27331","cursor","pointer"],[1,"form-control",2,"border","1px solid rgba(8, 10, 12, 0.175)","border-radius","10px","display","block","word-break","break-all"],["style","white-space:nowrap;word-wrap: break-word;width: fit-content;margin-right: 10px;","class","",4,"ngFor","ngForOf"],["href","pms"],["href","pms/oneDrivePolicy"],[1,"text-danger"],[1,"panel","panel-default",2,"margin-top","45px"],[1,"fa","fa-clock"],[1,"table","table-bordered","table-responsive",2,"display","table"],["cButton","","color","primary","size","sm",2,"margin-right","10px",3,"click"],[1,"h4","col-lg-11",2,"color","#585f69","padding","5px",3,"click"],["cFormCheckInput","","id","createLinkEnabled","type","checkbox",3,"ngModelChange","change","ngModel","ngModelOptions"],[1,"accordion-body"],["xs",""],[1,"mb-4"],["for","threshholdLimit"],[1,"checkbox","check-primary",2,"display","inline","float","right"],["id","includethreshholdLimit","name","includethreshholdLimit","type","checkbox","value","enabled","checked","",3,"ngModelChange","change","ngModel"],["for","includethreshholdLimit",2,"margin-left","5px"],["type","number","id","threshholdLimit","name","threshholdLimit","min","1","max","100","value","80",1,"form-control","input-small",3,"ngModelChange","ngModel","disabled"],[1,"text-center"],["for","purgeFilesOlderThan"],["id","includepurgeFilesOlderThan","name","includepurgeFilesOlderThan","type","checkbox","value","enabled","checked","",3,"ngModelChange","change","ngModel"],["for","includepurgeFilesOlderThan",2,"margin-left","5px"],["type","number","id","purgeFilesOlderThan","name","purgeFilesOlderThan","min","1","value","90","max","9131",1,"form-control","input-small",3,"ngModelChange","ngModel","disabled"],["for","purgeFilesSizeGTThan"],["id","includepurgeFilesSizeGTThan","name","includepurgeFilesSizeGTThan","type","checkbox","value","enabled","checked","",3,"ngModelChange","change","ngModel"],["for","includepurgeFilesSizeGTThan",2,"margin-left","5px"],["type","number","id","purgeFilesSizeGTThan","name","purgeFilesSizeGTThan","min","1","value","5",1,"form-control","input-small",3,"ngModelChange","ngModel","disabled"],[1,"list-group"],[1,"list-group-item",2,"word-wrap","break-word"],[1,"pull-right","clickAble",2,"color","#F27331",3,"click"],[1,"fa","fa-times-circle"],[1,"col-lg-1","inclusionBadge",2,"margin-top","10px"],[1,"badge","badge-success"],[1,"fa","fa-plus-circle"],[1,"col-lg-1","exclusionBadge",2,"margin-top","10px"],[1,"badge","badge-danger"],[1,"fa","fa-minus-circle"],[1,"row","allFilters"],[1,"fa","fa-filter"],[1,"panel-body",2,"word-break","break-all"],["ng-repeat"," in "],[2,"white-space","unset !important"],[2,"word-break","break-all"],[2,"white-space","nowrap !important"],["cButton","","color","primary","size","sm",2,"margin-right","10px",3,"click","disabled"],[1,"col-lg-1","inclusionBadgeCS",2,"margin-top","10px"],[1,"col-lg-1","exclusionBadgeCS",2,"margin-top","10px"],["id","BlukryptipaddressDiv",1,"form-group","d-none"],["for","Blukryptipaddress"],[3,"mouseleave"],[1,"drop-toggle","btn","flat",2,"width","100%",3,"click"],[1,"fa","fa-angle-down"],["class","drop-show","style","width: 50% !important;",4,"ngIf"],[1,"drop-show",2,"width","50% !important"],["style","font-weight: normal;display: block;min-height: 1.2em;padding: 0px 2px 1px;white-space: nowrap;",4,"ngFor","ngForOf"],[2,"font-weight","normal","display","block","min-height","1.2em","padding","0px 2px 1px","white-space","nowrap"],["type","checkbox","name","select-item",1,"select-item","checkbox",3,"ngModelChange","change","id","value","ngModel"],[2,"margin-left","10px"],[2,"word-wrap","break-word","width","fit-content","margin-right","10px"],[1,"clickAble",2,"color","#F27331","cursor","pointer",3,"click"],[1,"",2,"white-space","nowrap","word-wrap","break-word","width","fit-content","margin-right","10px"]],template:function(m,e){if(m&1){let o=k();t(0,"div",11)(1,"div",12)(2,"div",13)(3,"ol",14),w(4,vt,4,1,"li",15)(5,Mt,3,1,"li",15)(6,Tt,3,1,"li",15),i()()()(),t(7,"c-row")(8,"form",16,0),u("ngSubmit",function(){s(o);let n=x(9);return d(e.submitEditPolicy(n))}),t(10,"c-col",17)(11,"c-card",18)(12,"c-card-header"),l(13,`
          `),l(14,`
          `),t(15,"div",19),l(16,`
            `),t(17,"div",20),l(18,`
                `),t(19,"div",21),l(20,`
                    `),t(21,"label",22),l(22,"Policy Name"),i(),l(23,`
                    `),t(24,"input",23,1),f("ngModelChange",function(n){return s(o),g(e.policygroupName,n)||(e.policygroupName=n),d(n)}),i(),l(26,`
                    `),w(27,Pt,8,3,"div",24),l(28,`
                `),i(),l(29,`
                `),l(30,`
                `),t(31,"div",18),l(32,`
                    `),t(33,"label",25),l(34,"Description"),i(),l(35,`
                    `),t(36,"textarea",26),f("ngModelChange",function(n){return s(o),g(e.description,n)||(e.description=n),d(n)}),i(),l(37,`
                  `),i(),l(38,`
                `),t(39,"div",27),l(40,`
                    `),t(41,"label",28),l(42,"Maximum Backup Size(GB)"),i(),l(43,`
                    `),t(44,"input",29),f("ngModelChange",function(n){return s(o),g(e.policyStorageSizeAllowed,n)||(e.policyStorageSizeAllowed=n),d(n)}),i(),l(45,`
                    `),t(46,"label",30),l(47,"Number of Users Allowed"),i(),l(48,`
                    `),t(49,"input",31),f("ngModelChange",function(n){return s(o),g(e.policyUsersAllowed,n)||(e.policyUsersAllowed=n),d(n)}),i(),l(50,`
                `),i(),l(51,`
            `),i(),l(52,`
        `),i(),l(53,`
        `),i(),t(54,"c-card-body")(55,"c-nav",32)(56,"c-nav-item")(57,"button",33),l(58," General "),i()(),t(59,"c-nav-item")(60,"button",33),l(61," Email Alert Configurations "),i()(),t(62,"c-nav-item")(63,"button",33),l(64," User action preferences "),i()(),t(65,"c-nav-item")(66,"button",33),l(67," Search "),i()(),t(68,"c-nav-item")(69,"button",33),l(70," Advanced "),i()()(),t(71,"c-tab-content",34,2)(73,"c-tab-pane",35)(74,"div",12)(75,"div",20),E(76,"br"),t(77,"legend",36),l(78,"Backup Information"),i(),t(79,"div",21)(80,"label",37),l(81,"Schedules - "),t(82,"a",38),l(83,"Create New Schedule"),i()(),t(84,"mat-form-field",39)(85,"mat-select",40),f("ngModelChange",function(n){return s(o),g(e.checkedListSchedule,n)||(e.checkedListSchedule=n),d(n)}),u("selectionChange",function(){return s(o),d(e.onScheduleChange())}),w(86,Lt,2,2,"mat-option",41),i()()()(),t(87,"div",42),E(88,"br")(89,"br"),w(90,At,13,0,"div",43),i(),t(91,"div",20)(92,"div",21)(93,"label",44),l(94,"Maximum number of Versions Allowed"),i(),t(95,"div",12)(96,"div",45)(97,"c-form-check",46)(98,"input",47),f("ngModelChange",function(n){return s(o),g(e.isVersionEnabled,n)||(e.isVersionEnabled=n),d(n)}),u("change",function(){return s(o),d(e.toggleVersion())}),i()()(),t(99,"div",48)(100,"input",49),f("ngModelChange",function(n){return s(o),g(e.versions,n)||(e.versions=n),d(n)}),u("blur",function(){return s(o),d(e.myFunctionVer())}),i(),t(101,"span",50),l(102),i()()()(),t(103,"div",21)(104,"label",51),l(105,"Maximum Permissible File Size (In MB)"),i(),t(106,"div",12)(107,"div",45)(108,"c-form-check",46)(109,"input",52),f("ngModelChange",function(n){return s(o),g(e.isSizeEnabled,n)||(e.isSizeEnabled=n),d(n)}),u("change",function(){return s(o),d(e.toggleSize())}),i()()(),t(110,"div",48)(111,"input",53),f("ngModelChange",function(n){return s(o),g(e.maxPermissibleFileSize,n)||(e.maxPermissibleFileSize=n),d(n)}),u("blur",function(){return s(o),d(e.myFunctionMPS())}),i(),t(112,"span",54),l(113),i()()()(),t(114,"div",21)(115,"label",55),l(116,"Per Asset Backup Storage Limit (In GB)"),i(),t(117,"div",12)(118,"div",45)(119,"c-form-check",46)(120,"input",56),f("ngModelChange",function(n){return s(o),g(e.isLimitEnabled,n)||(e.isLimitEnabled=n),d(n)}),u("change",function(){return s(o),d(e.toggleLimit())}),i()()(),t(121,"div",48)(122,"input",57),f("ngModelChange",function(n){return s(o),g(e.perUserBackupStorageLimit,n)||(e.perUserBackupStorageLimit=n),d(n)}),u("blur",function(){return s(o),d(e.myFunctionUBS())}),i(),t(123,"span",58),l(124),i()()()(),t(125,"div",21)(126,"span",12)(127,"p"),l(128,"Purge deleted files from the catalog after"),i()(),t(129,"div",59)(130,"div",60)(131,"c-form-check",46)(132,"input",61),f("ngModelChange",function(n){return s(o),g(e.switchpurgeDeletedFilesOlderThan,n)||(e.switchpurgeDeletedFilesOlderThan=n),d(n)}),u("change",function(){return s(o),d(e.togglePurgeDeletedFilesOlderThan())}),i()()(),t(133,"div",13)(134,"input",62),f("ngModelChange",function(n){return s(o),g(e.purgeDeletedFilesOlderThan,n)||(e.purgeDeletedFilesOlderThan=n),d(n)}),u("blur",function(){return s(o),d(e.myFunctionpurgeDeletedFilesOlderThan())}),i(),t(135,"span",63),l(136),i()(),t(137,"div",45),l(138," days "),i()()(),t(139,"div",64)(140,"label",65),l(141,"M365 Backup Agent"),i(),t(142,"select",66),f("ngModelChange",function(n){return s(o),g(e.msAppBluKrypt,n)||(e.msAppBluKrypt=n),d(n)}),w(143,Bt,2,2,"option",41),i()()()(),t(144,"div",67)(145,"div",20)(146,"c-accordion")(147,"c-accordion-item",68,3),w(149,xt,4,4,"ng-template",69)(150,It,36,9,"ng-template",70),i()()()(),t(151,"div",12)(152,"div",20)(153,"legend",36),l(154,"Asset Information"),i(),t(155,"div",64)(156,"label",71),l(157,"Maximum Assets Allowed"),i(),t(158,"input",72),f("ngModelChange",function(n){return s(o),g(e.noOfDevicesAllowed,n)||(e.noOfDevicesAllowed=n),d(n)}),u("blur",function(){return s(o),d(e.myFunctionDevice())}),i(),t(159,"span",73),l(160),i()(),t(161,"div",64)(162,"label",74),l(163,"Operating System Type"),i(),t(164,"select",75),f("ngModelChange",function(n){return s(o),g(e.osType,n)||(e.osType=n),d(n)}),t(165,"option",76),l(166,"Universal"),i()()(),t(167,"div",21)(168,"label",77),l(169,"Default Folders to Backup"),i(),t(170,"c-input-group",18)(171,"input",78),f("ngModelChange",function(n){return s(o),g(e.defaultFoldersBackup,n)||(e.defaultFoldersBackup=n),d(n)}),i(),t(172,"button",79),u("click",function(){return s(o),d(e.addDefaultFolder())}),l(173,"Add"),i()()(),t(174,"div",21)(175,"label",80),l(176,"Exclusion Folder Name"),i(),t(177,"c-input-group",18)(178,"input",81),f("ngModelChange",function(n){return s(o),g(e.exclusionFolderName,n)||(e.exclusionFolderName=n),d(n)}),i(),t(179,"button",82),u("click",function(){return s(o),d(e.addExclusionFolder())}),l(180,"Add"),i()()(),E(181,"div"),i(),t(182,"div",42),E(183,"br")(184,"br"),t(185,"div",12)(186,"div",83)(187,"div",84)(188,"div",85)(189,"div",86)(190,"h5"),E(191,"i",87),l(192," Default Folders"),i()(),t(193,"div",88)(194,"div",89)(195,"div"),w(196,Ut,3,0,"ul",90)(197,Nt,2,0,"span",15),i()()()(),t(198,"div",85)(199,"div",86)(200,"h5"),E(201,"i",87),l(202," Excluded Folders"),i()(),t(203,"div",91)(204,"div",89)(205,"div"),w(206,Rt,3,0,"ul",90)(207,Kt,2,0,"span",15),i()()()()()()()()(),t(208,"div",12)(209,"div",20)(210,"legend",36),l(211,"Filters "),t(212,"a",92),E(213,"i",93),i()(),t(214,"div",21)(215,"label",94),l(216,"Filters - "),t(217,"a",95),l(218,"Create New Filter"),i()(),E(219,"br"),t(220,"label",94),l(221,"Filter type"),i(),t(222,"select",96),u("change",function(n){return s(o),d(e.onSelectChangeFilterType(n))}),t(223,"option",97),l(224,"Inclusion"),i(),t(225,"option",98),l(226,"Exclusion"),i()(),t(227,"div",99),w(228,zt,3,0,"h5",100)(229,Gt,3,0,"h5",101),t(230,"mat-form-field",39)(231,"mat-select",40),f("ngModelChange",function(n){return s(o),g(e.checkedListFilter,n)||(e.checkedListFilter=n),d(n)}),u("selectionChange",function(){return s(o),d(e.onFilterChange())}),w(232,qt,2,2,"mat-option",41),i()()()()(),t(233,"div",42),E(234,"br")(235,"br"),w(236,Yt,13,0,"div",102),i()()(),t(237,"c-tab-pane",35)(238,"div",12)(239,"div",83)(240,"legend",36),l(241,"Email Alert Configurations"),i()(),t(242,"div",103)(243,"div",21)(244,"select",104),f("ngModelChange",function(n){return s(o),g(e.createUserAdmins,n)||(e.createUserAdmins=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(245,"option",105),l(246,"Enabled"),i(),t(247,"option",106),l(248,"Disabled"),i()()()(),t(249,"div",103)(250,"div",21)(251,"select",107),f("ngModelChange",function(n){return s(o),g(e.createUserReadonlyadmins,n)||(e.createUserReadonlyadmins=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(252,"option",108),l(253,"Enabled"),i(),t(254,"option",106),l(255,"Disabled"),i()()()(),t(256,"div",13)(257,"div",21)(258,"label"),l(259,"User Created"),i(),t(260,"select",109),f("ngModelChange",function(n){return s(o),g(e.createUserUsers,n)||(e.createUserUsers=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(261,"option",110),l(262,"Enabled"),i(),t(263,"option",111),l(264,"Disabled"),i()()()(),t(265,"div",103)(266,"div",21)(267,"select",112),f("ngModelChange",function(n){return s(o),g(e.userDeletedAdmins,n)||(e.userDeletedAdmins=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(268,"option",105),l(269,"Enabled"),i(),t(270,"option",106),l(271,"Disabled"),i()()()(),t(272,"div",103)(273,"div",21)(274,"select",113),f("ngModelChange",function(n){return s(o),g(e.userDeletedReadonlyadmins,n)||(e.userDeletedReadonlyadmins=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(275,"option",108),l(276,"Enabled"),i(),t(277,"option",106),l(278,"Disabled"),i()()()(),t(279,"div",13)(280,"div",21)(281,"label"),l(282,"User Deleted"),i(),t(283,"select",114),f("ngModelChange",function(n){return s(o),g(e.userDeletedUsers,n)||(e.userDeletedUsers=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(284,"option",110),l(285,"Enabled"),i(),t(286,"option",111),l(287,"Disabled"),i()()()(),t(288,"div",103)(289,"div",21)(290,"select",115),f("ngModelChange",function(n){return s(o),g(e.userBlockedAdmins,n)||(e.userBlockedAdmins=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(291,"option",105),l(292,"Enabled"),i(),t(293,"option",106),l(294,"Disabled"),i()()()(),t(295,"div",103)(296,"div",21)(297,"select",116),f("ngModelChange",function(n){return s(o),g(e.userBlockedReadonlyadmins,n)||(e.userBlockedReadonlyadmins=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(298,"option",108),l(299,"Enabled"),i(),t(300,"option",106),l(301,"Disabled"),i()()()(),t(302,"div",13)(303,"div",21)(304,"label"),l(305,"User Blocked"),i(),t(306,"select",117),f("ngModelChange",function(n){return s(o),g(e.userBlockedUsers,n)||(e.userBlockedUsers=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(307,"option",110),l(308,"Enabled"),i(),t(309,"option",111),l(310,"Disabled"),i()()()(),t(311,"div",103)(312,"div",21)(313,"select",118),f("ngModelChange",function(n){return s(o),g(e.userLimitReachedAdmins,n)||(e.userLimitReachedAdmins=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(314,"option",105),l(315,"Enabled"),i(),t(316,"option",106),l(317,"Disabled"),i()()()(),t(318,"div",103)(319,"div",21)(320,"select",119),f("ngModelChange",function(n){return s(o),g(e.userLimitReachedReadonlyadmins,n)||(e.userLimitReachedReadonlyadmins=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(321,"option",108),l(322,"Enabled"),i(),t(323,"option",106),l(324,"Disabled"),i()()()(),t(325,"div",103)(326,"div",21)(327,"label"),l(328,"User Limit Reached"),i(),t(329,"select",120),f("ngModelChange",function(n){return s(o),g(e.userLimitReachedUsers,n)||(e.userLimitReachedUsers=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(330,"option",110),l(331,"Enabled"),i(),t(332,"option",111),l(333,"Disabled"),i()()()(),t(334,"div",103)(335,"div",21)(336,"select",121),f("ngModelChange",function(n){return s(o),g(e.deviceDeletedAdmins,n)||(e.deviceDeletedAdmins=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(337,"option",105),l(338,"Enabled"),i(),t(339,"option",106),l(340,"Disabled"),i()()()(),t(341,"div",103)(342,"div",21)(343,"select",122),f("ngModelChange",function(n){return s(o),g(e.deviceDeletedReadonlyadmins,n)||(e.deviceDeletedReadonlyadmins=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(344,"option",108),l(345,"Enabled"),i(),t(346,"option",106),l(347,"Disabled"),i()()()(),t(348,"div",13)(349,"div",21)(350,"label"),l(351,"Asset Deleted"),i(),t(352,"select",123),f("ngModelChange",function(n){return s(o),g(e.deviceDeletedUsers,n)||(e.deviceDeletedUsers=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(353,"option",110),l(354,"Enabled"),i(),t(355,"option",111),l(356,"Disabled"),i()()()(),t(357,"div",103)(358,"div",21)(359,"select",124),f("ngModelChange",function(n){return s(o),g(e.deviceBlockedAdmins,n)||(e.deviceBlockedAdmins=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(360,"option",105),l(361,"Enabled"),i(),t(362,"option",106),l(363,"Disabled"),i()()()(),t(364,"div",103)(365,"div",21)(366,"select",125),f("ngModelChange",function(n){return s(o),g(e.deviceBlockedReadonlyadmins,n)||(e.deviceBlockedReadonlyadmins=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(367,"option",108),l(368,"Enabled"),i(),t(369,"option",106),l(370,"Disabled"),i()()()(),t(371,"div",13)(372,"div",21)(373,"label"),l(374,"Asset Blocked"),i(),t(375,"select",126),f("ngModelChange",function(n){return s(o),g(e.deviceBlockedUsers,n)||(e.deviceBlockedUsers=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(376,"option",110),l(377,"Enabled"),i(),t(378,"option",111),l(379,"Disabled"),i()()()(),t(380,"div",103)(381,"div",21)(382,"select",127),f("ngModelChange",function(n){return s(o),g(e.deviceDecoupledAdmins,n)||(e.deviceDecoupledAdmins=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(383,"option",105),l(384,"Enabled"),i(),t(385,"option",106),l(386,"Disabled"),i()()()(),t(387,"div",103)(388,"div",21)(389,"select",128),f("ngModelChange",function(n){return s(o),g(e.deviceDecoupledReadonlyadmins,n)||(e.deviceDecoupledReadonlyadmins=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(390,"option",108),l(391,"Enabled"),i(),t(392,"option",106),l(393,"Disabled"),i()()()(),t(394,"div",13)(395,"div",21)(396,"label"),l(397,"Asset de-couple"),i(),t(398,"select",129),f("ngModelChange",function(n){return s(o),g(e.deviceDecoupledUsers,n)||(e.deviceDecoupledUsers=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(399,"option",110),l(400,"Enabled"),i(),t(401,"option",111),l(402,"Disabled"),i()()()(),t(403,"div",103)(404,"div",21)(405,"select",130),f("ngModelChange",function(n){return s(o),g(e.deviceLimitReachedAdmins,n)||(e.deviceLimitReachedAdmins=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(406,"option",105),l(407,"Enabled"),i(),t(408,"option",106),l(409,"Disabled"),i()()()(),t(410,"div",103)(411,"div",21)(412,"select",131),f("ngModelChange",function(n){return s(o),g(e.deviceLimitReachedReadonlyadmins,n)||(e.deviceLimitReachedReadonlyadmins=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(413,"option",108),l(414,"Enabled"),i(),t(415,"option",106),l(416,"Disabled"),i()()()(),t(417,"div",13)(418,"div",21)(419,"label"),l(420,"Asset Limit Reached"),i(),t(421,"select",132),f("ngModelChange",function(n){return s(o),g(e.deviceLimitReachedUsers,n)||(e.deviceLimitReachedUsers=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(422,"option",110),l(423,"Enabled"),i(),t(424,"option",111),l(425,"Disabled"),i()()()(),t(426,"div",103)(427,"div",21)(428,"select",133),f("ngModelChange",function(n){return s(o),g(e.weeklyBkpreportAdmins,n)||(e.weeklyBkpreportAdmins=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(429,"option",105),l(430,"Enabled"),i(),t(431,"option",106),l(432,"Disabled"),i()()()(),t(433,"div",103)(434,"div",21)(435,"select",134),f("ngModelChange",function(n){return s(o),g(e.weeklyBkpreportReadonlyadmins,n)||(e.weeklyBkpreportReadonlyadmins=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(436,"option",108),l(437,"Enabled"),i(),t(438,"option",106),l(439,"Disabled"),i()()()(),t(440,"div",13)(441,"div",21)(442,"label"),l(443,"Weekly backup report"),i(),t(444,"select",135),f("ngModelChange",function(n){return s(o),g(e.weeklyBkpreportUsers,n)||(e.weeklyBkpreportUsers=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(445,"option",110),l(446,"Enabled"),i(),t(447,"option",111),l(448,"Disabled"),i()()()(),t(449,"div",103)(450,"div",21)(451,"select",136),f("ngModelChange",function(n){return s(o),g(e.firstBkpCompletedAdmins,n)||(e.firstBkpCompletedAdmins=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(452,"option",105),l(453,"Enabled"),i(),t(454,"option",106),l(455,"Disabled"),i()()()(),t(456,"div",103)(457,"div",21)(458,"select",137),f("ngModelChange",function(n){return s(o),g(e.firstBkpCompletedReadonlyadmins,n)||(e.firstBkpCompletedReadonlyadmins=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(459,"option",108),l(460,"Enabled"),i(),t(461,"option",106),l(462,"Disabled"),i()()()(),t(463,"div",13)(464,"div",21)(465,"label"),l(466,"First backup completed"),i(),t(467,"select",138),f("ngModelChange",function(n){return s(o),g(e.firstBkpCompletedUsers,n)||(e.firstBkpCompletedUsers=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(468,"option",110),l(469,"Enabled"),i(),t(470,"option",111),l(471,"Disabled"),i()()()(),t(472,"div",103)(473,"div",21)(474,"select",139),f("ngModelChange",function(n){return s(o),g(e.restoreInitiatedAdmins,n)||(e.restoreInitiatedAdmins=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(475,"option",105),l(476,"Enabled"),i(),t(477,"option",106),l(478,"Disabled"),i()()()(),t(479,"div",103)(480,"div",21)(481,"select",140),f("ngModelChange",function(n){return s(o),g(e.restoreInitiatedReadonlyadmins,n)||(e.restoreInitiatedReadonlyadmins=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(482,"option",108),l(483,"Enabled"),i(),t(484,"option",106),l(485,"Disabled"),i()()()(),t(486,"div",13)(487,"div",21)(488,"label"),l(489,"Restore initiated"),i(),t(490,"select",141),f("ngModelChange",function(n){return s(o),g(e.restoreInitiatedUsers,n)||(e.restoreInitiatedUsers=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(491,"option",110),l(492,"Enabled"),i(),t(493,"option",111),l(494,"Disabled"),i()()()(),t(495,"div",103)(496,"div",21)(497,"select",142),f("ngModelChange",function(n){return s(o),g(e.storageLimitReachedAdmins,n)||(e.storageLimitReachedAdmins=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(498,"option",105),l(499,"Enabled"),i(),t(500,"option",106),l(501,"Disabled"),i()()()(),t(502,"div",103)(503,"div",21)(504,"select",143),f("ngModelChange",function(n){return s(o),g(e.storageLimitReachedReadonlyadmins,n)||(e.storageLimitReachedReadonlyadmins=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(505,"option",108),l(506,"Enabled"),i(),t(507,"option",106),l(508,"Disabled"),i()()()(),t(509,"div",13)(510,"div",21)(511,"label"),l(512,"Storage limit reached"),i(),t(513,"select",144),f("ngModelChange",function(n){return s(o),g(e.storageLimitReachedUsers,n)||(e.storageLimitReachedUsers=n),d(n)}),u("change",function(){return s(o),d(e.updateOutput())}),t(514,"option",110),l(515,"Enabled"),i(),t(516,"option",111),l(517,"Disabled"),i()()()()()(),t(518,"c-tab-pane",35)(519,"div",145)(520,"div",83)(521,"legend",36),l(522,"Agent "),t(523,"a",146),E(524,"i",93),i()()(),t(525,"div",13)(526,"div",21)(527,"label",147),l(528,"BACKUP_FILES"),i(),t(529,"select",148),f("ngModelChange",function(n){return s(o),g(e.preferencesEdit.BACKUP_FILES,n)||(e.preferencesEdit.BACKUP_FILES=n),d(n)}),u("change",function(){return s(o),d(e.updatePreferences())}),t(530,"option",149),l(531,"Enabled"),i(),t(532,"option",150),l(533,"Disabled"),i()()(),t(534,"div",21)(535,"label",147),l(536,"BACKUP_SETTINGS"),i(),t(537,"select",151),f("ngModelChange",function(n){return s(o),g(e.preferencesEdit.BACKUP_SETTINGS,n)||(e.preferencesEdit.BACKUP_SETTINGS=n),d(n)}),u("change",function(){return s(o),d(e.updatePreferences())}),t(538,"option",149),l(539,"Enabled"),i(),t(540,"option",150),l(541,"Disabled"),i()()(),t(542,"div",21)(543,"label",147),l(544,"INTIATE_BACKUP"),i(),t(545,"select",152),f("ngModelChange",function(n){return s(o),g(e.preferencesEdit.INTIATE_BACKUP,n)||(e.preferencesEdit.INTIATE_BACKUP=n),d(n)}),u("change",function(){return s(o),d(e.updatePreferences())}),t(546,"option",149),l(547,"Enabled"),i(),t(548,"option",150),l(549,"Disabled"),i()()(),t(550,"div",21)(551,"label",147),l(552,"STOP_BACKUP"),i(),t(553,"select",153),f("ngModelChange",function(n){return s(o),g(e.preferencesEdit.STOP_BACKUP,n)||(e.preferencesEdit.STOP_BACKUP=n),d(n)}),u("change",function(){return s(o),d(e.updatePreferences())}),t(554,"option",149),l(555,"Enabled"),i(),t(556,"option",150),l(557,"Disabled"),i()()(),t(558,"div",21)(559,"label",147),l(560,"SUPPORT"),i(),t(561,"select",154),f("ngModelChange",function(n){return s(o),g(e.preferencesEdit.SUPPORT,n)||(e.preferencesEdit.SUPPORT=n),d(n)}),u("change",function(){return s(o),d(e.updatePreferences())}),t(562,"option",149),l(563,"Enabled"),i(),t(564,"option",150),l(565,"Disabled"),i()()(),t(566,"div",21)(567,"label",155),l(568,"ABOUT"),i(),t(569,"select",156),f("ngModelChange",function(n){return s(o),g(e.preferencesEdit.ABOUT,n)||(e.preferencesEdit.ABOUT=n),d(n)}),u("change",function(){return s(o),d(e.updatePreferences())}),t(570,"option",149),l(571,"Enabled"),i(),t(572,"option",150),l(573,"Disabled"),i()()(),t(574,"div",21)(575,"label",157),l(576,"BLOCK_NOTIFICATIONS"),i(),t(577,"select",158),f("ngModelChange",function(n){return s(o),g(e.preferencesEdit.BLOCK_NOTIFICATIONS,n)||(e.preferencesEdit.BLOCK_NOTIFICATIONS=n),d(n)}),u("change",function(){return s(o),d(e.updatePreferences())}),t(578,"option",159),l(579,"Enabled"),i(),t(580,"option",160),l(581,"Disabled"),i()()(),t(582,"div",21)(583,"label",161),l(584,"Systray Icon"),i(),t(585,"select",162),f("ngModelChange",function(n){return s(o),g(e.preferencesEdit.SYSTRAYICON,n)||(e.preferencesEdit.SYSTRAYICON=n),d(n)}),u("change",function(){return s(o),d(e.updatePreferences())}),t(586,"option",149),l(587,"Enabled"),i(),t(588,"option",150),l(589,"Disabled"),i()()()(),t(590,"div",13)(591,"div",21)(592,"label",147),l(593,"RESTORE"),i(),t(594,"select",163),f("ngModelChange",function(n){return s(o),g(e.preferencesEdit.RESTORE,n)||(e.preferencesEdit.RESTORE=n),d(n)}),u("change",function(){return s(o),d(e.updatePreferences())}),t(595,"option",149),l(596,"Enabled"),i(),t(597,"option",150),l(598,"Disabled"),i()()(),t(599,"div",21)(600,"label",147),l(601,"REFRESH_BACKUP_POLICY"),i(),t(602,"select",164),f("ngModelChange",function(n){return s(o),g(e.preferencesEdit.REFRESH_BACKUP_POLICY,n)||(e.preferencesEdit.REFRESH_BACKUP_POLICY=n),d(n)}),u("change",function(){return s(o),d(e.updatePreferences())}),t(603,"option",149),l(604,"Enabled"),i(),t(605,"option",150),l(606,"Disabled"),i()()(),t(607,"div",21)(608,"label",165),l(609,"PAUSE_BACKUP"),i(),t(610,"select",166),f("ngModelChange",function(n){return s(o),g(e.preferencesEdit.PAUSE_BACKUP,n)||(e.preferencesEdit.PAUSE_BACKUP=n),d(n)}),u("change",function(){return s(o),d(e.updatePreferences())}),t(611,"option",149),l(612,"Enabled"),i(),t(613,"option",150),l(614,"Disabled"),i()()(),t(615,"div",21)(616,"label",167),l(617,"UPDATE_AGENT"),i(),t(618,"select",168),f("ngModelChange",function(n){return s(o),g(e.preferencesEdit.UPDATE_AGENT,n)||(e.preferencesEdit.UPDATE_AGENT=n),d(n)}),u("change",function(){return s(o),d(e.updatePreferences())}),t(619,"option",149),l(620,"Enabled"),i(),t(621,"option",150),l(622,"Disabled"),i()()(),t(623,"div",21)(624,"label",147),l(625,"DECOUPLE"),i(),t(626,"select",169),f("ngModelChange",function(n){return s(o),g(e.preferencesEdit.DECOUPLE,n)||(e.preferencesEdit.DECOUPLE=n),d(n)}),u("change",function(){return s(o),d(e.updatePreferences())}),t(627,"option",149),l(628,"Enabled"),i(),t(629,"option",150),l(630,"Disabled"),i()()(),t(631,"div",170)(632,"label",171),l(633,"Disallow Admin Restores"),i(),t(634,"select",172),f("ngModelChange",function(n){return s(o),g(e.preferencesEdit.DISALLOW_ADMIN_RESTORES,n)||(e.preferencesEdit.DISALLOW_ADMIN_RESTORES=n),d(n)}),u("change",function(){return s(o),d(e.updatePreferences())}),t(635,"option",159),l(636,"Enabled"),i(),t(637,"option",160),l(638,"Disabled"),i()()(),t(639,"div",21)(640,"label",147),l(641,"EXIT"),i(),t(642,"select",173),f("ngModelChange",function(n){return s(o),g(e.preferencesEdit.EXIT,n)||(e.preferencesEdit.EXIT=n),d(n)}),u("change",function(){return s(o),d(e.updatePreferences())}),t(643,"option",149),l(644,"Enabled"),i(),t(645,"option",150),l(646,"Disabled"),i()()()()(),t(647,"div",12)(648,"div",174)(649,"legend",36),l(650,"Portal "),t(651,"a",175),E(652,"i",93),i()(),t(653,"div",13)(654,"div",176)(655,"label",177),l(656,"Open"),i(),t(657,"select",178),f("ngModelChange",function(n){return s(o),g(e.menuOptionsEdit.open,n)||(e.menuOptionsEdit.open=n),d(n)}),u("change",function(){return s(o),d(e.updateMenuOptions())}),t(658,"option",149),l(659,"Enabled"),i(),t(660,"option",150),l(661,"Disabled"),i()()(),t(662,"div",179)(663,"label",180),l(664,"Versions"),i(),t(665,"select",181),f("ngModelChange",function(n){return s(o),g(e.menuOptionsEdit.versions,n)||(e.menuOptionsEdit.versions=n),d(n)}),u("change",function(){return s(o),d(e.updateMenuOptions())}),t(666,"option",149),l(667,"Enabled"),i(),t(668,"option",150),l(669,"Disabled"),i()()(),t(670,"div",182)(671,"label",183),l(672,"Download"),i(),t(673,"select",184),f("ngModelChange",function(n){return s(o),g(e.menuOptionsEdit.download,n)||(e.menuOptionsEdit.download=n),d(n)}),u("change",function(){return s(o),d(e.updateMenuOptions())}),t(674,"option",149),l(675,"Enabled"),i(),t(676,"option",150),l(677,"Disabled"),i()()()(),t(678,"div",13)(679,"div",185)(680,"label",186),l(681,"View"),i(),t(682,"select",187),f("ngModelChange",function(n){return s(o),g(e.menuOptionsEdit.view,n)||(e.menuOptionsEdit.view=n),d(n)}),u("change",function(){return s(o),d(e.updateMenuOptions())}),t(683,"option",149),l(684,"Enabled"),i(),t(685,"option",150),l(686,"Disabled"),i()()(),t(687,"div",188)(688,"label",189),l(689,"Share"),i(),t(690,"select",190),f("ngModelChange",function(n){return s(o),g(e.menuOptionsEdit.share,n)||(e.menuOptionsEdit.share=n),d(n)}),u("change",function(){return s(o),d(e.updateMenuOptions())}),t(691,"option",159),l(692,"Enabled"),i(),t(693,"option",160),l(694,"Disabled"),i()()(),t(695,"div",191)(696,"label",192),l(697,"Restore"),i(),t(698,"select",193),f("ngModelChange",function(n){return s(o),g(e.menuOptionsEdit.restore,n)||(e.menuOptionsEdit.restore=n),d(n)}),u("change",function(){return s(o),d(e.updateMenuOptions())}),t(699,"option",149),l(700,"Enabled"),i(),t(701,"option",150),l(702,"Disabled"),i()()()()()(),t(703,"div",194)(704,"div",83)(705,"legend",36),l(706,"Share Details"),i(),t(707,"div",195)(708,"div",21)(709,"div",196),E(710,"input",197),t(711,"label",198),l(712,"Enable Domain Control"),i()()(),t(713,"div",12)(714,"div",199)(715,"label",200),l(716,"Share Domain Inclusions/Exclusions"),i(),E(717,"input",201),i(),t(718,"div",202)(719,"div",203),E(720,"input",204),t(721,"label",205),l(722,"Share only with these Email domains"),i(),E(723,"br")(724,"input",206),t(725,"label",205),l(726,"Share with all Email domains excepting these"),i()()()()(),t(727,"div",207)(728,"div",208)(729,"label",209),E(730,"input",210)(731,"div",211),i()(),t(732,"span",212),l(733,"Allow sharer visibility to the shared link"),i()(),t(734,"div",195)(735,"div",21)(736,"div",196),E(737,"input",213),t(738,"label",214),l(739,"Highly Secure Sharing"),i()()(),t(740,"div",174)(741,"div",215)(742,"div",216)(743,"label",209),E(744,"input",217)(745,"div",211),i()(),t(746,"span",212),l(747,"Complex Password"),i()(),t(748,"div",215)(749,"div",218)(750,"label",209),E(751,"input",219)(752,"div",211),i()(),t(753,"span",212),l(754,"Allow Download"),i()(),t(755,"div",215)(756,"div",220)(757,"label",209),E(758,"input",221)(759,"div",211),i()(),t(760,"span",212),l(761,"Require Expiration Date for shared data"),i()(),t(762,"div",215)(763,"div",222)(764,"label",209),E(765,"input",223)(766,"div",211),i()(),t(767,"span",212),l(768,"Enable multi-factor authentication"),i()()()()()()(),t(769,"c-tab-pane",35)(770,"div",12)(771,"div",83)(772,"legend",36),l(773,"Search "),t(774,"a",224),E(775,"i",93),i()(),t(776,"div",13)(777,"div",225)(778,"label",226),l(779,"Content Index"),i(),t(780,"select",227),f("ngModelChange",function(n){return s(o),g(e.contentIndexEnabled,n)||(e.contentIndexEnabled=n),d(n)}),t(781,"option",149),l(782,"Enabled"),i(),t(783,"option",150),l(784,"Disabled"),i()()()()()(),t(785,"div",12)(786,"div",20)(787,"legend",36),l(788,"Search Filters"),i(),t(789,"div",21)(790,"label",228),l(791,"filters - "),t(792,"a",229),l(793,"Create New Filter"),i()(),E(794,"br"),t(795,"label",94),l(796,"Filter type"),i(),t(797,"select",230),f("ngModelChange",function(n){return s(o),g(e.searchFilterType,n)||(e.searchFilterType=n),d(n)}),u("change",function(n){return s(o),d(e.onSelectChangeSearchFilterType(n))}),t(798,"option",231),l(799,"Inclusion"),i(),t(800,"option",232),l(801,"Exclusion"),i()()(),t(802,"div",99),w(803,Jt,3,0,"h5",233)(804,jt,3,0,"h5",234),t(805,"mat-form-field",39)(806,"mat-select",40),f("ngModelChange",function(n){return s(o),g(e.checkedListSearchFilter,n)||(e.checkedListSearchFilter=n),d(n)}),u("selectionChange",function(){return s(o),d(e.onSearchFilterChange())}),w(807,Xt,2,2,"mat-option",41),i()()()(),t(808,"div",42),E(809,"br")(810,"br"),w(811,Zt,13,0,"div",102),i()()(),t(812,"c-tab-pane",35)(813,"div",145)(814,"div",20)(815,"legend",235),l(816,"partialFileAttributes"),i(),t(817,"div",236)(818,"label",237),l(819,"incrementalFileTransfer"),i(),t(820,"select",238)(821,"option",149),l(822,"Enabled"),i(),t(823,"option",150),l(824,"Disabled"),i()()(),E(825,"br"),t(826,"legend",235),l(827,"Throttling Attributes"),i(),t(828,"div",64)(829,"fieldset",239)(830,"label",240),l(831,"Throttle traffic at endpoint agent to"),i(),t(832,"div",241)(833,"c-form-check",46)(834,"input",242),f("ngModelChange",function(n){return s(o),g(e.isThrottleEnabled,n)||(e.isThrottleEnabled=n),d(n)}),u("change",function(){return s(o),d(e.toggleThrottle())}),i()()(),t(835,"div",12)(836,"div",13)(837,"input",243),f("ngModelChange",function(n){return s(o),g(e.nwFromClientToPGMB,n)||(e.nwFromClientToPGMB=n),d(n)}),u("blur",function(){return s(o),d(e.validateInput())}),i(),t(838,"span",244),l(839),i(),t(840,"span",245),l(841),i()(),t(842,"div",13)(843,"select",246),f("ngModelChange",function(n){return s(o),g(e.networkThrottlingUnit,n)||(e.networkThrottlingUnit=n),d(n)}),u("change",function(){return s(o),d(e.onUnitChange())}),t(844,"option",247),l(845,"Kbps"),i(),t(846,"option",248),l(847,"Mbps"),i(),t(848,"option",249),l(849,"Gbps"),i()()()()()(),t(850,"div",250)(851,"label",251),l(852,"CPU Throttling"),i(),E(853,"br"),t(854,"div",252)(855,"input",253),f("ngModelChange",function(n){return s(o),g(e.cpuThrottling,n)||(e.cpuThrottling=n),d(n)}),u("input",function(n){return s(o),d(e.onSliderChange(n))}),i(),t(856,"p"),l(857,"Value: "),t(858,"span",254),l(859),i()()()(),t(860,"div",64)(861,"label",255),l(862,"nwFromPGToCloud (In MBPS)"),i(),E(863,"input",256),i(),t(864,"div",64)(865,"label",257),l(866,"filesCrawlLimit"),i(),E(867,"input",258),i(),t(868,"div",64)(869,"label",259),l(870,"networkThrottling"),i(),t(871,"select",260)(872,"option",149),l(873,"Enabled"),i(),t(874,"option",150),l(875,"Disabled"),i()()()(),t(876,"div",261),E(877,"br")(878,"br"),t(879,"div",262)(880,"div",83)(881,"div",263)(882,"div",88)(883,"div",21)(884,"label",264),l(885,"partialFileSize (In MB)"),i(),E(886,"input",265),i(),t(887,"div",21)(888,"label",266),l(889,"fileChunkableSize (In MB)"),i(),E(890,"input",267),i()()()()()()(),t(891,"div",12)(892,"div",20)(893,"legend",36),l(894,"Options"),i(),t(895,"div",174)(896,"div",268)(897,"c-form-check",46)(898,"input",269),f("ngModelChange",function(n){return s(o),g(e.legalHold,n)||(e.legalHold=n),d(n)}),i()()(),t(899,"span",270),l(900,"Legal Hold"),i()(),t(901,"div",21)(902,"div",196)(903,"span",271),E(904,"input",272),t(905,"label",273),l(906,"System Folders"),i()()()(),t(907,"div",274)(908,"span",212),l(909,"Unusual Activity Detection Enabled"),i(),t(910,"div",275)(911,"c-form-check",46)(912,"input",276),f("ngModelChange",function(n){return s(o),g(e.rwDetectionEnabled,n)||(e.rwDetectionEnabled=n),d(n)}),i()()()(),t(913,"div",64)(914,"label",277),l(915,"Number of threads allowed for Backup"),i(),t(916,"input",278),f("ngModelChange",function(n){return s(o),g(e.numberOfThreadsAllowedForBackup,n)||(e.numberOfThreadsAllowedForBackup=n),d(n)}),i()(),t(917,"div",21)(918,"label",279),l(919,"Web Based Login"),i(),t(920,"select",280),f("ngModelChange",function(n){return s(o),g(e.webBasedLogin,n)||(e.webBasedLogin=n),d(n)}),t(921,"option",149),l(922,"Enabled"),i(),t(923,"option",150),l(924,"Disabled"),i()()(),t(925,"div",21)(926,"span",12)(927,"p"),l(928,"Delete assets which have not been active for"),i()(),t(929,"div",59)(930,"div",60)(931,"c-form-check",46)(932,"input",281),f("ngModelChange",function(n){return s(o),g(e.switchnoOfDaysToKeepUserDeviceNotActive,n)||(e.switchnoOfDaysToKeepUserDeviceNotActive=n),d(n)}),u("change",function(){return s(o),d(e.toggleNoOfDaysToKeepUserDeviceNotActive())}),i()()(),t(933,"div",13)(934,"input",282),f("ngModelChange",function(n){return s(o),g(e.noOfDaysToKeepUserDeviceNotActive,n)||(e.noOfDaysToKeepUserDeviceNotActive=n),d(n)}),u("blur",function(){return s(o),d(e.myFunctionnoOfDaysToKeepUserDeviceNotActive())}),i(),t(935,"span",63),l(936),i()(),t(937,"div",45),l(938," days "),i()()(),t(939,"div",283)(940,"label",284),l(941,"Can Administrator Restore User Data"),i(),t(942,"select",285),f("ngModelChange",function(n){return s(o),g(e.canAdminRestoreAll,n)||(e.canAdminRestoreAll=n),d(n)}),u("ngModelChange",function(){return s(o),d(e.flipAllowEndUserTocontrolRestore())}),t(943,"option",286),l(944,"Yes"),i(),t(945,"option",286),l(946,"No"),i()()(),t(947,"div",287)(948,"label",288),l(949,"Allow end-user over-ride"),i(),t(950,"select",289),f("ngModelChange",function(n){return s(o),g(e.allowEndUserTocontrolRestore,n)||(e.allowEndUserTocontrolRestore=n),d(n)}),t(951,"option",286),l(952,"Yes"),i(),t(953,"option",286),l(954,"No"),i()()(),t(955,"div",283)(956,"label",290),l(957,"Can Administrator Delete User Data"),i(),t(958,"select",291),f("ngModelChange",function(n){return s(o),g(e.isAdminDeleteBackupFile,n)||(e.isAdminDeleteBackupFile=n),d(n)}),t(959,"option",286),l(960,"Yes"),i(),t(961,"option",286),l(962,"No"),i()()(),t(963,"div",64)(964,"label",292),l(965,"Dedup"),i(),t(966,"select",293),f("ngModelChange",function(n){return s(o),g(e.dedup,n)||(e.dedup=n),d(n)}),t(967,"option",294),l(968,"Disabled"),i(),t(969,"option",295),l(970,"user"),i()()(),t(971,"div",64)(972,"label",296),l(973,"Compression Enabled"),i(),t(974,"select",297),f("ngModelChange",function(n){return s(o),g(e.compEnabled,n)||(e.compEnabled=n),d(n)}),t(975,"option",149),l(976,"Enabled"),i(),t(977,"option",150),l(978,"Disabled"),i()()(),t(979,"div",298)(980,"label",299),l(981,"VSS"),i(),t(982,"select",300),f("ngModelChange",function(n){return s(o),g(e.vssEnabled,n)||(e.vssEnabled=n),d(n)}),t(983,"option",149),l(984,"Enabled"),i(),t(985,"option",150),l(986,"Disabled"),i()()(),t(987,"div",301)(988,"label",302),l(989,"Blukrypt Search Algorithm"),i(),t(990,"select",303),f("ngModelChange",function(n){return s(o),g(e.searchAlgorithm,n)||(e.searchAlgorithm=n),d(n)}),u("change",function(){return s(o),d(e.onSearchAlgorithmChange())}),t(991,"option",304),l(992,"Nearest"),i(),t(993,"option",305),l(994,"Priority"),i()()(),w(995,ni,10,3,"div",306),t(996,"div",64)(997,"label",307),l(998,"ccS - "),t(999,"a",308),l(1e3,"Add Cloud Credentials"),i()(),E(1001,"select",309),i(),t(1002,"div",64)(1003,"label",310),l(1004,"Policy Refresh Frequency (In Hours)"),i(),t(1005,"input",311),f("ngModelChange",function(n){return s(o),g(e.policyRefresh,n)||(e.policyRefresh=n),d(n)}),i()(),t(1006,"div",64)(1007,"label",312),l(1008,"Capture Unaccessed Items"),i(),t(1009,"div",48)(1010,"label",209)(1011,"input",313),f("ngModelChange",function(n){return s(o),g(e.switchlogUnaccessedFiles,n)||(e.switchlogUnaccessedFiles=n),d(n)}),i(),E(1012,"div",211),i()()(),t(1013,"div",64)(1014,"label",314),l(1015,"Backup Hidden Files"),i(),t(1016,"select",315),f("ngModelChange",function(n){return s(o),g(e.canBackupHiddenFiles,n)||(e.canBackupHiddenFiles=n),d(n)}),t(1017,"option",149),l(1018,"Enabled"),i(),t(1019,"option",150),l(1020,"Disabled"),i()()(),t(1021,"div",316)(1022,"span",317)(1023,"p"),l(1024,"Fairness Algorithm"),i()(),t(1025,"div",318)(1026,"label",209),E(1027,"input",319)(1028,"div",211),i()(),t(1029,"div",48),E(1030,"input",320)(1031,"span",54),i()(),t(1032,"div",64)(1033,"label",321),l(1034,"Full Backup Enabled"),i(),t(1035,"select",322)(1036,"option",159),l(1037,"Enabled"),i(),t(1038,"option",160),l(1039,"Disabled"),i()()(),t(1040,"div",323)(1041,"label",324),l(1042,"Full Backup Start Date"),i(),E(1043,"input",325),i()()(),t(1044,"div",145)(1045,"div",20)(1046,"legend",36),l(1047,"Password Enforcement "),t(1048,"a",326),E(1049,"i",93),i()(),t(1050,"div",283)(1051,"label",327),l(1052,"Can User Change Password"),i(),t(1053,"select",328),f("ngModelChange",function(n){return s(o),g(e.canUserChangePassword,n)||(e.canUserChangePassword=n),d(n)}),t(1054,"option",149),l(1055,"Enabled"),i(),t(1056,"option",150),l(1057,"Disabled"),i()()(),t(1058,"div",283)(1059,"label",329),l(1060,"Can Admin Change User Password"),i(),t(1061,"select",330),f("ngModelChange",function(n){return s(o),g(e.canAdminChangeUserPassword,n)||(e.canAdminChangeUserPassword=n),d(n)}),t(1062,"option",159),l(1063,"Enabled"),i(),t(1064,"option",160),l(1065,"Disabled"),i()()()()(),t(1066,"div",145)(1067,"div",83)(1068,"div",331)(1069,"p"),l(1070," Grayed out options are currently controlled in Cloud Properties. Please speak to you Administrator or visit the Cloud Properties page to change their behavior. "),E(1071,"br"),l(1072,"Both password enforcement options cannot be disabled at same time. "),i()()()()()(),t(1073,"div",12)(1074,"div",13)(1075,"button",332),l(1076,"Submit"),i(),t(1077,"a",333),u("click",function(){return s(o),d(e.sendMeTo("/pms/oneDrivePolicy"))}),l(1078,"Cancel"),i()()()()()()()(),t(1079,"div",334)(1080,"div",335)(1081,"div",336)(1082,"form",337)(1083,"div",338)(1084,"div",339)(1085,"h4",340),l(1086,"Confirm Add"),i(),t(1087,"button",341)(1088,"span",342),l(1089,"\xD7"),i()()(),t(1090,"div",343)(1091,"p"),l(1092,"Are you sure, you want to add the folder path"),i()(),t(1093,"div",344)(1094,"button",345),l(1095,"Close"),i(),t(1096,"button",346),l(1097,"Save"),i()()()()()(),t(1098,"div",347)(1099,"div",336)(1100,"form",348)(1101,"div",338)(1102,"div",339)(1103,"h4",340),l(1104,"Confirm Add"),i(),t(1105,"button",341)(1106,"span",342),l(1107,"\xD7"),i()()(),t(1108,"div",343)(1109,"p"),l(1110,"Are you sure, you want to add the folder path"),i()(),t(1111,"div",344)(1112,"button",345),l(1113,"Close"),i(),t(1114,"button",346),l(1115,"Save"),i()()()()()(),t(1116,"div",335)(1117,"div",336)(1118,"form",337)(1119,"div",338)(1120,"div",339)(1121,"h4",340),l(1122,"Confirm Add"),i(),t(1123,"button",341)(1124,"span",342),l(1125,"\xD7"),i()()(),t(1126,"div",343)(1127,"p"),l(1128,"Are you sure, you want to add the folder path"),i()(),t(1129,"div",344)(1130,"button",345),l(1131,"Close"),i(),t(1132,"button",346),l(1133,"Save"),i()()()()()(),t(1134,"div",347)(1135,"div",336)(1136,"form",348)(1137,"div",338)(1138,"div",339)(1139,"h4",340),l(1140,"Confirm Add"),i(),t(1141,"button",341)(1142,"span",342),l(1143,"\xD7"),i()()(),t(1144,"div",343)(1145,"p"),l(1146,"Are you sure, you want to add the folder path"),i()(),t(1147,"div",344)(1148,"button",345),l(1149,"Close"),i(),t(1150,"button",346),l(1151,"Save"),i()()()()()(),t(1152,"div",349)(1153,"div",336)(1154,"form",350)(1155,"div",338)(1156,"div",339)(1157,"h4",340),l(1158,"Confirm Add"),i(),t(1159,"button",341)(1160,"span",342),l(1161,"\xD7"),i()()(),t(1162,"div",343)(1163,"p"),l(1164,"Are you sure, you want to add the folder path"),i()(),t(1165,"div",344)(1166,"button",345),l(1167,"Close"),i(),t(1168,"button",346),l(1169,"Save"),i()()()()()()(),t(1170,"div",351)(1171,"div",352)(1172,"div",353)(1173,"div",354)(1174,"h4",355),l(1175,"Create Schedule"),i(),t(1176,"a",356),u("click",function(){return s(o),d(e.closeSchCreateModal())}),E(1177,"i",357),i()(),t(1178,"form",16,4),u("ngSubmit",function(){s(o);let n=x(1179);return d(e.submitCreateSchedule(n))}),t(1180,"div",343)(1181,"div",21)(1182,"label",358),l(1183,"Schedule Name"),i(),t(1184,"input",359,5),f("ngModelChange",function(n){return s(o),g(e.scheduleModel.scheduleName,n)||(e.scheduleModel.scheduleName=n),d(n)}),i(),w(1186,oi,3,2,"div",24),i(),t(1187,"div",21)(1188,"label",360),l(1189,"Schedule Start Time"),i(),t(1190,"timepicker",361),f("ngModelChange",function(n){return s(o),g(e.myTime,n)||(e.myTime=n),d(n)}),i()(),t(1191,"div",362)(1192,"label",94),l(1193,"Days"),i(),t(1194,"mat-form-field",363)(1195,"mat-select",40,6),f("ngModelChange",function(n){return s(o),g(e.scheduleDaysList,n)||(e.scheduleDaysList=n),d(n)}),u("selectionChange",function(){return s(o),d(e.onScheduleDayChange())}),t(1197,"mat-option",364),l(1198,"Sunday"),i(),t(1199,"mat-option",364),l(1200,"Monday"),i(),t(1201,"mat-option",364),l(1202,"Tuesday"),i(),t(1203,"mat-option",364),l(1204,"Wednesday"),i(),t(1205,"mat-option",364),l(1206,"Thursday"),i(),t(1207,"mat-option",364),l(1208,"Friday"),i(),t(1209,"mat-option",364),l(1210,"Saturday"),i()()(),l(1211," - "),t(1212,"button",365),u("click",function(){return s(o),d(e.toggleSelectAllDays())}),l(1213),i()()(),t(1214,"div",344)(1215,"button",366),u("click",function(){return s(o),d(e.closeSchCreateModal())}),l(1216,"Close"),i(),t(1217,"button",367),l(1218,"Save changes"),i()()()()()(),t(1219,"div",368)(1220,"div",352)(1221,"div",353)(1222,"div",339)(1223,"h4",355),l(1224,"Confirmation"),i()(),t(1225,"div",343)(1226,"h4"),l(1227,"If edited in one place across all the policy it will take effect. Are you sure you want to proceed?"),i()(),t(1228,"div",344)(1229,"button",369),u("click",function(){return s(o),d(e.closeScheduleConfPopup())}),l(1230,"Cancel"),i(),t(1231,"button",370),u("click",function(){return s(o),d(e.getParticularSchedule())}),l(1232,"Ok"),i()()()()(),t(1233,"div",371)(1234,"div",352)(1235,"div",353)(1236,"div",354)(1237,"h4",355),l(1238,"Edit Schedule"),i(),t(1239,"a",356),u("click",function(){return s(o),d(e.closeEditModal())}),E(1240,"i",357),i()(),t(1241,"form",16,7),u("ngSubmit",function(){s(o);let n=x(1242);return d(e.submitEditSchedule(n))}),t(1243,"div",343)(1244,"div",21)(1245,"label",358),l(1246,"Schedule Name"),i(),E(1247,"input",372),i(),t(1248,"div",21)(1249,"label",360),l(1250,"Schedule Start Time"),i(),t(1251,"timepicker",361),f("ngModelChange",function(n){return s(o),g(e.myTime,n)||(e.myTime=n),d(n)}),i()(),t(1252,"div",362)(1253,"label",94),l(1254,"Days"),i(),t(1255,"mat-form-field",363)(1256,"mat-select",40,8),f("ngModelChange",function(n){return s(o),g(e.scheduleDaysListEdit,n)||(e.scheduleDaysListEdit=n),d(n)}),u("selectionChange",function(){return s(o),d(e.onScheduleDayChangeEdit())}),t(1258,"mat-option",364),l(1259,"Sunday"),i(),t(1260,"mat-option",364),l(1261,"Monday"),i(),t(1262,"mat-option",364),l(1263,"Tuesday"),i(),t(1264,"mat-option",364),l(1265,"Wednesday"),i(),t(1266,"mat-option",364),l(1267,"Thursday"),i(),t(1268,"mat-option",364),l(1269,"Friday"),i(),t(1270,"mat-option",364),l(1271,"Saturday"),i()()(),l(1272," - "),t(1273,"button",365),u("click",function(){return s(o),d(e.toggleSelectAllDaysEdit())}),l(1274),i()()(),t(1275,"div",344)(1276,"button",366),u("click",function(){return s(o),d(e.closeEditModal())}),l(1277,"Close"),i(),t(1278,"button",367),l(1279,"Save changes"),i()()()()()(),t(1280,"div",368)(1281,"div",352)(1282,"div",353)(1283,"div",339)(1284,"h4",355),l(1285,"Confirmation"),i()(),t(1286,"div",343)(1287,"h4"),l(1288,"If edited in one place across all the policy it will take effect. Are you sure you want to proceed?"),i()(),t(1289,"div",344)(1290,"button",369),u("click",function(){return s(o),d(e.closeConfFilterPopup())}),l(1291,"Cancel"),i(),t(1292,"button",370),u("click",function(){return s(o),d(e.getFilter())}),l(1293,"Ok"),i()()()()(),t(1294,"div",373)(1295,"div",352)(1296,"div",353)(1297,"div",354)(1298,"h4",355),l(1299,"Create Filter"),i(),t(1300,"a",356),u("click",function(){return s(o),d(e.closeCreateFilterModal())}),E(1301,"i",357),i()(),t(1302,"div",343)(1303,"div",21)(1304,"label",358),l(1305,"Filter Name"),i(),t(1306,"input",374),f("ngModelChange",function(n){return s(o),g(e.filterModel.filterName,n)||(e.filterModel.filterName=n),d(n)}),i()(),t(1307,"div",64)(1308,"label",375),l(1309,"Filter Type"),i(),t(1310,"select",376),f("ngModelChange",function(n){return s(o),g(e.filterModel.filterType,n)||(e.filterModel.filterType=n),d(n)}),t(1311,"option",231),l(1312,"Inclusion Filter"),i(),t(1313,"option",232),l(1314,"Exclusion Filter"),i()()(),t(1315,"div",21)(1316,"label",360),l(1317,"Select Filter Template"),i(),t(1318,"mat-form-field",39)(1319,"mat-select",40,9),f("ngModelChange",function(n){return s(o),g(e.checkedList,n)||(e.checkedList=n),d(n)}),u("selectionChange",function(){return s(o),d(e.onFilterCreateChange())}),w(1321,ai,2,2,"mat-option",41),i()()(),t(1322,"div",21)(1323,"label",94),l(1324,"Filters"),i(),t(1325,"a",377),E(1326,"i",93),i(),t(1327,"div",378)(1328,"span",379),w(1329,si,4,1,"span",380),i(),t(1330,"input",381),f("ngModelChange",function(n){return s(o),g(e.newFilterExtensionCreate,n)||(e.newFilterExtensionCreate=n),d(n)}),u("keyup.enter",function(){return s(o),d(e.addFilterExtensionCreate())}),i()(),E(1331,"br"),i()(),t(1332,"div",344)(1333,"button",366),u("click",function(){return s(o),d(e.closeCreateFilterModal())}),l(1334,"Close"),i(),t(1335,"button",382),u("click",function(){return s(o),d(e.submitCreateFilter())}),l(1336,"Save changes"),i()()()()(),t(1337,"div",383)(1338,"div",352)(1339,"div",353)(1340,"div",354)(1341,"h4",355),l(1342,"Edit Filter"),i(),t(1343,"a",356),u("click",function(){return s(o),d(e.closeEditFilterModal())}),E(1344,"i",357),i()(),t(1345,"div",343)(1346,"div",21)(1347,"label",358),l(1348,"Filter Name"),i(),t(1349,"input",384),f("ngModelChange",function(n){return s(o),g(e.filterEditModel.filterName,n)||(e.filterEditModel.filterName=n),d(n)}),i()(),t(1350,"div",64)(1351,"label",375),l(1352,"Filter Type"),i(),t(1353,"select",376),f("ngModelChange",function(n){return s(o),g(e.filterEditModel.filterType,n)||(e.filterEditModel.filterType=n),d(n)}),t(1354,"option",231),l(1355,"Inclusion Filter"),i(),t(1356,"option",232),l(1357,"Exclusion Filter"),i()()(),t(1358,"div",21)(1359,"label",360),l(1360,"Select Filter Template"),i(),t(1361,"mat-form-field",39)(1362,"mat-select",40,10),f("ngModelChange",function(n){return s(o),g(e.checkedList,n)||(e.checkedList=n),d(n)}),u("selectionChange",function(){return s(o),d(e.onFilterChangeEdit())}),w(1364,di,2,2,"mat-option",41),i()()(),t(1365,"div",21)(1366,"label",94),l(1367,"Filters"),i(),t(1368,"a",385),E(1369,"i",93),i(),E(1370,"br"),t(1371,"div",386),w(1372,ci,4,1,"span",387),t(1373,"input",381),f("ngModelChange",function(n){return s(o),g(e.newFilterExtensionEdit,n)||(e.newFilterExtensionEdit=n),d(n)}),u("keyup.enter",function(){return s(o),d(e.addFilterExtensionEdit())}),i()()()(),t(1374,"div",344)(1375,"button",366),u("click",function(){return s(o),d(e.closeEditFilterModal())}),l(1376,"Close"),i(),t(1377,"button",382),u("click",function(){return s(o),d(e.submitEditFilter())}),l(1378,"Save changes"),i()()()()()}if(m&2){let o=x(25),c=x(72),n=x(1185);a(4),_("ngIf",e.parent!=""),a(),_("ngIf",e.child!=""),a(),_("ngIf",e.subchild!=""),a(18),h("ngModel",e.policygroupName),a(3),_("ngIf",o.invalid&&o.dirty),a(9),h("ngModel",e.description),a(8),h("ngModel",e.policyStorageSizeAllowed),a(5),h("ngModel",e.policyUsersAllowed),a(8),_("cTabContent",c)("tabPaneIdx",0),a(3),_("cTabContent",c)("tabPaneIdx",1),a(3),_("cTabContent",c)("tabPaneIdx",2),a(3),_("cTabContent",c)("tabPaneIdx",3),a(3),_("cTabContent",c)("tabPaneIdx",4),a(2),_("activeTabPaneIdx",0),a(14),h("ngModel",e.checkedListSchedule),_("ngModelOptions",b(241,v)),a(),_("ngForOf",e.schedules),a(4),_("ngIf",e.defaultSchedules.length>=1),a(7),_("switch",!0),a(),h("ngModel",e.isVersionEnabled),_("ngModelOptions",b(242,v)),a(2),h("ngModel",e.versions),_("disabled",!e.isVersionEnabled),a(2),C(e.verError),a(6),_("switch",!0),a(),h("ngModel",e.isSizeEnabled),_("ngModelOptions",b(243,v)),a(2),h("ngModel",e.maxPermissibleFileSize),_("disabled",!e.isSizeEnabled),a(2),C(e.sizeError),a(6),_("switch",!0),a(),h("ngModel",e.isLimitEnabled),_("ngModelOptions",b(244,v)),a(2),h("ngModel",e.perUserBackupStorageLimit),_("disabled",!e.isLimitEnabled),a(2),C(e.limitError),a(7),_("switch",!0),a(),h("ngModel",e.switchpurgeDeletedFilesOlderThan),_("ngModelOptions",b(245,v)),a(2),h("ngModel",e.purgeDeletedFilesOlderThan),_("disabled",!e.switchpurgeDeletedFilesOlderThan),a(2),C(e.deletedFilesError),a(6),h("ngModel",e.msAppBluKrypt),a(),_("ngForOf",e.msAppAgentList),a(),_("ngStyle",F(246,I,e.displayOnedriveArchiving)),a(3),_("visible",e.itemVisible[0]),a(11),h("ngModel",e.noOfDevicesAllowed),a(2),C(e.deviceAllowedError),a(4),h("ngModel",e.osType),a(7),h("ngModel",e.defaultFoldersBackup),a(7),h("ngModel",e.exclusionFolderName),a(18),_("ngIf",e.defaultUniversalFolders.length>=1),a(),_("ngIf",e.defaultUniversalFolders.length<=0),a(9),_("ngIf",e.userExcludedFoldersUniversal.length>=1),a(),_("ngIf",e.userExcludedFoldersUniversal.length<=0),a(16),_("selected",e.inclusionFilter),a(2),_("selected",!e.inclusionFilter),a(3),_("ngIf",e.inclusionFilter),a(),_("ngIf",!e.inclusionFilter),a(2),h("ngModel",e.checkedListFilter),_("ngModelOptions",b(248,v)),a(),_("ngForOf",e.filters),a(4),_("ngIf",e.defaultFilters.length>=1),a(8),h("ngModel",e.createUserAdmins),a(7),h("ngModel",e.createUserReadonlyadmins),a(9),h("ngModel",e.createUserUsers),a(7),h("ngModel",e.userDeletedAdmins),a(7),h("ngModel",e.userDeletedReadonlyadmins),a(9),h("ngModel",e.userDeletedUsers),a(7),h("ngModel",e.userBlockedAdmins),a(7),h("ngModel",e.userBlockedReadonlyadmins),a(9),h("ngModel",e.userBlockedUsers),a(7),h("ngModel",e.userLimitReachedAdmins),a(7),h("ngModel",e.userLimitReachedReadonlyadmins),a(9),h("ngModel",e.userLimitReachedUsers),a(7),h("ngModel",e.deviceDeletedAdmins),a(7),h("ngModel",e.deviceDeletedReadonlyadmins),a(9),h("ngModel",e.deviceDeletedUsers),a(7),h("ngModel",e.deviceBlockedAdmins),a(7),h("ngModel",e.deviceBlockedReadonlyadmins),a(9),h("ngModel",e.deviceBlockedUsers),a(7),h("ngModel",e.deviceDecoupledAdmins),a(7),h("ngModel",e.deviceDecoupledReadonlyadmins),a(9),h("ngModel",e.deviceDecoupledUsers),a(7),h("ngModel",e.deviceLimitReachedAdmins),a(7),h("ngModel",e.deviceLimitReachedReadonlyadmins),a(9),h("ngModel",e.deviceLimitReachedUsers),a(7),h("ngModel",e.weeklyBkpreportAdmins),a(7),h("ngModel",e.weeklyBkpreportReadonlyadmins),a(9),h("ngModel",e.weeklyBkpreportUsers),a(7),h("ngModel",e.firstBkpCompletedAdmins),a(7),h("ngModel",e.firstBkpCompletedReadonlyadmins),a(9),h("ngModel",e.firstBkpCompletedUsers),a(7),h("ngModel",e.restoreInitiatedAdmins),a(7),h("ngModel",e.restoreInitiatedReadonlyadmins),a(9),h("ngModel",e.restoreInitiatedUsers),a(7),h("ngModel",e.storageLimitReachedAdmins),a(7),h("ngModel",e.storageLimitReachedReadonlyadmins),a(9),h("ngModel",e.storageLimitReachedUsers),a(16),h("ngModel",e.preferencesEdit.BACKUP_FILES),a(8),h("ngModel",e.preferencesEdit.BACKUP_SETTINGS),a(8),h("ngModel",e.preferencesEdit.INTIATE_BACKUP),a(8),h("ngModel",e.preferencesEdit.STOP_BACKUP),a(8),h("ngModel",e.preferencesEdit.SUPPORT),a(8),h("ngModel",e.preferencesEdit.ABOUT),a(8),h("ngModel",e.preferencesEdit.BLOCK_NOTIFICATIONS),a(8),h("ngModel",e.preferencesEdit.SYSTRAYICON),a(9),h("ngModel",e.preferencesEdit.RESTORE),a(8),h("ngModel",e.preferencesEdit.REFRESH_BACKUP_POLICY),a(8),h("ngModel",e.preferencesEdit.PAUSE_BACKUP),a(8),h("ngModel",e.preferencesEdit.UPDATE_AGENT),a(8),h("ngModel",e.preferencesEdit.DECOUPLE),a(8),h("ngModel",e.preferencesEdit.DISALLOW_ADMIN_RESTORES),a(8),h("ngModel",e.preferencesEdit.EXIT),a(15),h("ngModel",e.menuOptionsEdit.open),a(8),h("ngModel",e.menuOptionsEdit.versions),a(8),h("ngModel",e.menuOptionsEdit.download),a(9),h("ngModel",e.menuOptionsEdit.view),a(8),h("ngModel",e.menuOptionsEdit.share),a(8),h("ngModel",e.menuOptionsEdit.restore),a(82),h("ngModel",e.contentIndexEnabled),a(17),h("ngModel",e.searchFilterType),a(6),_("ngIf",e.inclusionSearchFilter),a(),_("ngIf",e.exclusionSearchFilter),a(2),h("ngModel",e.checkedListSearchFilter),_("ngModelOptions",b(249,v)),a(),_("ngForOf",e.searchfilters),a(4),_("ngIf",e.defaultSearchFilters.length>=1),a(22),_("switch",!0),a(),h("ngModel",e.isThrottleEnabled),_("ngModelOptions",b(250,v)),a(3),h("ngModel",e.nwFromClientToPGMB),_("disabled",!e.isThrottleEnabled),a(2),C(e.switchError),a(2),C(e.switchWarning),a(2),h("ngModel",e.networkThrottlingUnit),_("disabled",!e.isThrottleEnabled),a(12),h("ngModel",e.cpuThrottling),a(4),C(e.cpuThrottling),a(38),_("switch",!0),a(),h("ngModel",e.legalHold),_("ngModelOptions",b(251,v)),a(13),_("switch",!0),a(),h("ngModel",e.rwDetectionEnabled),_("ngModelOptions",b(252,v)),a(4),h("ngModel",e.numberOfThreadsAllowedForBackup),a(4),h("ngModel",e.webBasedLogin),a(11),_("switch",!0),a(),h("ngModel",e.switchnoOfDaysToKeepUserDeviceNotActive),_("ngModelOptions",b(253,v)),a(2),h("ngModel",e.noOfDaysToKeepUserDeviceNotActive),_("disabled",!e.switchnoOfDaysToKeepUserDeviceNotActive),a(2),C(e.deletedAssetsError),a(3),_("ngStyle",K(254,j,e.overridePolicySettings?"none":"auto",e.overridePolicySettings?"0.4":"1")),a(3),h("ngModel",e.canAdminRestoreAll),_("ngClass",F(257,X,e.overridePolicySettings)),a(),_("ngValue",!0),a(2),_("ngValue",!1),a(2),_("ngStyle",K(259,j,e.overridePolicySettings||!e.canAdminRestoreAll?"none":"auto",e.overridePolicySettings||!e.canAdminRestoreAll?"0.5":"1")),a(3),h("ngModel",e.allowEndUserTocontrolRestore),_("ngClass",F(262,X,e.overridePolicySettings)),a(),_("ngValue",!0),a(2),_("ngValue",!1),a(2),_("ngStyle",K(264,j,e.overridePolicySettings||!e.canAdminRestoreAll?"none":"auto",e.overridePolicySettings||!e.canAdminRestoreAll?"0.5":"1")),a(3),h("ngModel",e.isAdminDeleteBackupFile),_("ngClass",F(267,X,e.overridePolicySettings)),a(),_("ngValue",!0),a(2),_("ngValue",!1),a(5),h("ngModel",e.dedup),a(8),h("ngModel",e.compEnabled),a(8),h("ngModel",e.vssEnabled),a(8),h("ngModel",e.searchAlgorithm),a(5),_("ngIf",e.searchAlgorithm==="PRIORITY"),a(10),h("ngModel",e.policyRefresh),a(6),h("ngModel",e.switchlogUnaccessedFiles),a(5),h("ngModel",e.canBackupHiddenFiles),a(34),_("ngStyle",K(269,j,e.passwordChangeEnforce?"none":"auto",e.passwordChangeEnforce?"0.4":"1")),a(3),h("ngModel",e.canUserChangePassword),_("ngClass",F(272,X,e.passwordChangeEnforce)),a(5),_("ngStyle",K(274,j,e.passwordChangeEnforce?"none":"auto",e.passwordChangeEnforce?"0.4":"1")),a(3),h("ngModel",e.canAdminChangeUserPassword),_("ngClass",F(277,X,e.passwordChangeEnforce)),a(109),_("ngStyle",F(279,I,e.displaySchCreateStyle)),a(14),h("ngModel",e.scheduleModel.scheduleName),a(2),_("ngIf",n.invalid&&(n.dirty||n.touched)),a(4),h("ngModel",e.myTime),_("showMeridian",!1)("minuteStep",1)("ngModelOptions",b(281,v)),a(5),h("ngModel",e.scheduleDaysList),_("ngModelOptions",b(282,v)),a(2),_("value","1"),a(2),_("value","2"),a(2),_("value","3"),a(2),_("value","4"),a(2),_("value","5"),a(2),_("value","6"),a(2),_("value","7"),a(4),D(" ",e.showDaily?"Daily":"De Select All"," "),a(6),_("ngStyle",F(283,I,e.displayScheduleConfStyle)),a(14),_("ngStyle",F(285,I,e.displaySchEditStyle)),a(14),L("value",e.scheduleElement.scheduleName),a(4),h("ngModel",e.myTime),_("showMeridian",!1)("minuteStep",1)("ngModelOptions",b(287,v)),a(5),h("ngModel",e.scheduleDaysListEdit),_("ngModelOptions",b(288,v)),a(2),_("value","1"),a(2),_("value","2"),a(2),_("value","3"),a(2),_("value","4"),a(2),_("value","5"),a(2),_("value","6"),a(2),_("value","7"),a(4),D(" ",e.showDailyEdit?"Daily":"De Select All"," "),a(6),_("ngStyle",F(289,I,e.displayFilterConfStyle)),a(14),_("ngStyle",F(291,I,e.displayFilterCreateStyle)),a(12),h("ngModel",e.filterModel.filterName),a(4),h("ngModel",e.filterModel.filterType),a(9),h("ngModel",e.checkedList),_("ngModelOptions",b(293,v)),a(2),_("ngForOf",e.cannedFiltersTemplateCreate),a(7),re("display",e.extensionsVisible?"block":"none"),a(),_("ngForOf",e.cannedFiltersCreate),a(),h("ngModel",e.newFilterExtensionCreate),a(7),_("ngStyle",F(294,I,e.displayFilterEditStyle)),a(12),L("value",e.filterElement.filterName),h("ngModel",e.filterEditModel.filterName),a(4),h("ngModel",e.filterEditModel.filterType),a(9),h("ngModel",e.checkedList),_("ngModelOptions",b(296,v)),a(2),_("ngForOf",e.cannedFiltersTemplateEdit),a(8),_("ngForOf",e.cannedFilters),a(),h("ngModel",e.newFilterExtensionEdit)}},dependencies:[be,ve,Ae,Ve,Ce,at,Je,Ze,$e,ze,je,Xe,Ke,Qe,Ge,qe,it,nt,lt,rt,tt,et,ue,Me,ye,we,Se,dt,fe,Ue,Ne,Oe,Ie,xe,Be,he,ce,me,pe,We,ot,Ye,He,Fe,Le,De,Pe,Te,ke,_t,gt,ft,st,pt,mt,ut],styles:['@charset "UTF-8";.switch[_ngcontent-%COMP%]{position:relative;display:inline-block;width:50px;height:22px}.switch[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{display:none}.slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;inset:0;background-color:#ccc;-webkit-transition:.4s;transition:.4s}.slider[_ngcontent-%COMP%]:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:3px;background-color:#fff;-webkit-transition:.4s;transition:.4s}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]{background-color:#f27331}input[_ngcontent-%COMP%]:focus + .slider[_ngcontent-%COMP%]{box-shadow:0 0 1px #f27331}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{-webkit-transform:translateX(26px);-ms-transform:translateX(26px);transform:translate(26px)}.slider.round[_ngcontent-%COMP%]{border-radius:34px}.slider.round[_ngcontent-%COMP%]:before{border-radius:50%}.slidecontainer[_ngcontent-%COMP%]{width:100%}.slidercpu[_ngcontent-%COMP%]{width:100%;height:15px;border-radius:5px;background:#d3d3d3;outline:none;opacity:.7;-webkit-transition:.2s;transition:opacity .2s}.slidercpu[_ngcontent-%COMP%]:hover{opacity:1}.slidercpu[_ngcontent-%COMP%]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:25px;height:25px;border-radius:50%;background:#2196f3;cursor:pointer}.slidercpu[_ngcontent-%COMP%]::-moz-range-thumb{width:25px;height:25px;border-radius:50%;background:#2196f3;cursor:pointer}.disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.6}h5[_ngcontent-%COMP%]{color:#000}breadcrumb[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]:before{padding:0 5px;color:#ccc;content:"/\\a0"}.breadcrumb[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{display:inline-block}.breadcrumb[_ngcontent-%COMP%]{display:list-item!important}.breadcrumb[_ngcontent-%COMP%]{background:transparent;padding:0;margin-top:10px}.form-group[_ngcontent-%COMP%]{margin-bottom:20px}.drop-toggle[_ngcontent-%COMP%]{background-color:#fff;border:none;padding:5px 10px;border-radius:4px;cursor:pointer;cursor:hand;border:1px solid #ccc;width:233px;text-align:left}.drop-toggle[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{float:right}.drop-show[_ngcontent-%COMP%]{padding:4px;width:222px;background-color:#fff;border:1px solid #BABABA;position:absolute;z-index:100;-webkit-box-shadow:0 6px 10px rgba(0,0,0,.15);-moz-box-shadow:0 6px 10px rgba(0,0,0,.15);box-shadow:0 6px 10px #00000026;margin-left:1px}.drop-show[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:block;font-size:15px;cursor:pointer}.drop-show[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{vertical-align:top}.drop-show[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:inline-block}.panel-default[_ngcontent-%COMP%]{border:1px solid rgba(8,10,12,.175);border-radius:10px;padding:10px}.panel-default[_ngcontent-%COMP%] > .panel-heading[_ngcontent-%COMP%]{color:#444;background-color:#fff;border:none}.panel-heading[_ngcontent-%COMP%]{padding:10px 15px 0}.panel-body[_ngcontent-%COMP%]{padding:5px 15px 15px}.form-check-input[_ngcontent-%COMP%]{height:22px!important}.form-switch[_ngcontent-%COMP%]   .form-check-input[_ngcontent-%COMP%]{width:50px!important}']})}}return p})();export{_n as EditComponent};
