import{a as ht,b as ut}from"./chunk-SGOSVCX2.js";import"./chunk-EDM5PUR2.js";import{a as dt,b as ct}from"./chunk-HW2XIQDD.js";import{d as lt}from"./chunk-GHBUP3TX.js";import{h as ot,i as at}from"./chunk-WDZHAEG6.js";import{b as Qe,f as et}from"./chunk-2MULI75A.js";import{a as it}from"./chunk-LK4XL3A4.js";import{a as tt}from"./chunk-HB7CXGHA.js";import{a as nt}from"./chunk-UDVOUXE3.js";import{a as rt}from"./chunk-HDWTITT2.js";import{b as st,d as X}from"./chunk-UFH3PPO3.js";import{d as H}from"./chunk-HFZMJE75.js";import{o as je,t as He}from"./chunk-RFBAGCTV.js";import{b as Xe,c as qe,d as Je,h as Ye,i as Ze}from"./chunk-7GWZLTP7.js";import{b as Ae,c as ke,g as we,h as Fe,i as Ie,j as Le,k as De,l as xe,p as Re,q as Ge,r as Be,u as Ue,v as ze,w as Ve,x as Ke,y as We,z as $e}from"./chunk-RUXJW6JR.js";import{Ba as Se,Ca as Me,Ea as Pe,Fa as Ce,Ga as ve,Ja as Ne,Ka as ye,cb as be,db as Oe,f as ce,fb as Ee,i as he,ka as me,l as ue,ma as fe,na as Te,qa as _e,r as pe,u as ge}from"./chunk-SU3V5RM4.js";import{A as Q,Ab as ie,Da as y,Eb as se,Ec as x,Fd as j,Gc as s,Hb as S,Hc as V,Ia as ee,Ic as K,Jd as de,Lc as b,Mc as O,Nc as E,Rb as h,Rc as re,Sb as B,Sc as J,Tc as Y,Uc as ne,Wc as W,Xc as $,bc as o,bd as oe,cc as a,dc as U,gb as te,hc as z,lb as l,mb as p,mc as P,qc as I,rc as M,sa as T,ta as _,uc as q,wd as ae,xd as le}from"./chunk-SZVMDCYU.js";import{a as w,b as F,i as Z}from"./chunk-OPK6FLFO.js";var pt=()=>({standalone:!0}),gt=r=>({label:"Cancel",class:"btn btn-default",action:r}),mt=r=>({label:"Ok",class:"btn btn-primary",action:r}),ft=(r,g)=>[r,g];function Tt(r,g){if(r&1&&(o(0,"li")(1,"h3")(2,"a",54),s(3),W(4,"translate"),a()()()),r&2){let e=M();l(3),V($(4,1,e.parent));}}function _t(r,g){if(r&1&&(o(0,"li")(1,"a",55),s(2),W(3,"translate"),a()()),r&2){let e=M();l(),h("href","pms/"+(e.selectedProduct==null||e.selectedProduct.routes==null?null:e.selectedProduct.routes.policy),te),l(),V($(3,2,e.child));}}function St(r,g){if(r&1&&(o(0,"li")(1,"span"),s(2),W(3,"translate"),a()()),r&2){let e=M();l(2),V($(3,1,e.subchild));}}function Mt(r,g){r&1&&(o(0,"small"),s(1,`
                    Policy Name is required.
                  `),a());}function Pt(r,g){if(r&1&&(o(0,"small"),s(1),a()),r&2){let e=M(2);l(),K(`
                    `,e.errortext,`
                  `);}}function Ct(r,g){r&1&&(o(0,"small"),s(1,`
                    Policy Name must be at least 3 characters long.
                  `),a());}function vt(r,g){if(r&1&&(o(0,"div",56),s(1,`
                  `),S(2,Mt,2,0,"small",18),s(3,`
                  `),S(4,Pt,2,1,"small",18),s(5,`
                  `),S(6,Ct,2,0,"small",18),s(7,`
                `),a()),r&2){M();let e=x(25);l(2),h("ngIf",e.errors==null?null:e.errors.required),l(2),h("ngIf",e.errors&&e.errors.pattern),l(2),h("ngIf",e.errors&&e.errors.minlength);}}function Nt(r,g){r&1&&(o(0,"small",57),s(1,`
                  This value is too short. It should have 5 characters or more.
                `),a());}function yt(r,g){r&1&&(o(0,"small",57),s(1,`
                  This value is too long. It should have 512 characters or fewer.
                `),a());}function bt(r,g){if(r&1){let e=z();o(0,"div",58),s(1,`
                                `),o(2,"span",16),s(3,"Enable backups to Microsoft 365 Backup Storage "),o(4,"a",59),s(5," "),U(6,"i",60),a()(),s(7,`
                `),o(8,"div",61),s(9,`
                  `),o(10,"c-form-check",62),s(11,`
                    `),o(12,"input",63),E("ngModelChange",function(t){T(e);let c=M();return O(c.msStorageBackupEnabled,t)||(c.msStorageBackupEnabled=t),_(t);}),a(),s(13,`
                  `),a(),s(14,`
                `),a(),s(15,`
              `),a();}if(r&2){let e=M();l(10),h("switch",!0),l(2),b("ngModel",e.msStorageBackupEnabled),h("ngModelOptions",J(3,pt));}}function Ot(r,g){r&1&&(o(0,"c-callout",64),s(1,`
                Please note that backups to Microsoft 365 Backup Storage are controlled by a
                pre-determined Microsoft
                schedule and not by the policy schedules defined on this page.`),U(2,"br"),s(3,` Microsoft 365 Backup
                Storage enables
                ultra-fast backups by creating a secondary copy within the Microsoft 365 service data
                boundary.
              `),a());}function Et(r,g){if(r&1&&(o(0,"mat-option",68),s(1),a()),r&2){let e=g.$implicit;q("value",e.gatewayName),l(),K("",e.gatewayName," ");}}function At(r,g){if(r&1){let e=z();o(0,"div",24)(1,"label",65),P(2,13),a(),o(3,"mat-form-field",66)(4,"mat-select",67,3),E("ngModelChange",function(t){T(e);let c=M();return O(c.checkedListPg,t)||(c.checkedListPg=t),_(t);}),I("selectionChange",function(){T(e);let t=M();return _(t.onBlukryptChange());}),S(6,Et,2,2,"mat-option",50),a()()();}if(r&2){let e=M();B("display",e.userType=="superAdmin"&&e.productKey=="backup"?"block":"none"),l(4),b("ngModel",e.checkedListPg),h("ngModelOptions",J(5,pt)),l(2),h("ngForOf",e.pgs);}}function kt(r,g){if(r&1&&(o(0,"option",68),s(1),a()),r&2){let e=g.$implicit;q("value",e.gatewayName),l(),K("",e.gatewayName," ");}}function wt(r,g){if(r&1&&U(0,"app-modal",69),r&2){let e=M(),i=x(9);h("footerButtons",ne(5,ft,Y(1,gt,e.closePolicySaveConfirmPopup),Y(3,mt,e.submitCreatePolicy(i))));}}var fi=(()=>{class r extends ut{constructor(e,i,t,c,n,d,A,u,C,v,m,f,N,L,G,R,D,k){super(i,t,c,n,d,A,u,C,v,d,f,N,L,G,m,R,D),this.http=e,this.datePipe=i,this.titleService=t,this.toastr=c,this.apiService=n,this.AuthService=d,this.globalConstantsService=A,this.cdr=u,this.router=C,this.sharedService=v,this.el=m,this.configService=f,this.licenseCheckService=N,this.translatorService=L,this.userRoleService=G,this.policyManagementService=R,this.dataModel=D,this.activatedRoute=k,this.parent="Policy Management",this.child=" Policies",this.subchild="Edit Policy",this.title="Policy Management",this.PRODUCTS=[],this.policyModel={},this.numberOfThreadsAllowedForBackup="",this.showDropDownSchedule=!1,this.currentSelectedSchedule={},this.shareCheckedList=new y(),this.shareIndividualCheckedList=new y(),this.showDropDownFilter=!1,this.currentSelectedFilter={},this.shareCheckedListFilter=new y(),this.shareIndividualCheckedListFilter=new y(),this.showDropDownSearchFilter=!1,this.currentSelectedSearchFilter={},this.shareCheckedListSearchFilter=new y(),this.shareIndividualCheckedListSearchFilter=new y(),this.shareCheckedListPg=new y(),this.shareIndividualCheckedListPg=new y(),this.includepurgeFilesOlderThan=!1,this.switchpurgeDeletedFilesOlderThan=!1,this.purgeDeletedFilesOlderThan="UNLIMITED",this.threshholdLimitOld="",this.purgeFilesSizeGTThanOld="",this.threshholdLimitError="",this.purgeFilesOlderThanError="",this.purgeFilesSizeGTThanError="",this.productKey="",this.productTitle="",this.selectedProduct={},this.collapses=[!1,!1,!1,!1],t.setTitle(this.title);}ngOnInit(){return Z(this,null,function*(){this.inclusionLicenses=yield this.licenseCheckService.getInclusionLicensesNew(),this.PRODUCTS=yield this.licenseCheckService.getLicensedProductsDetails(),this.activatedRoute.params.subscribe(e=>{this.selectedProduct=this.PRODUCTS.find(i=>i.routes.policy===e.productKey),console.log("selectedProduct : "+this.selectedProduct),this.productKey=this.selectedProduct.key,this.policyModel=this.dataModel.commonPolicyModel(this.productKey),this.sharedService.setData("selectedProductType",this.productKey),console.log("policyModel : "+JSON.stringify(this.policyModel)),this.selectedProduct?.defaultUniversalFolders&&Object.assign(this.defaultUniversalFolders,this.selectedProduct?.defaultUniversalFolders),this.child=this.selectedProduct?.title+this.child,this.productTitle=this.selectedProduct?.title||"";}),yield new Promise(e=>{this.globalConstantsService.fetchConstants().subscribe(()=>{this.storage_type=this.globalConstantsService.getConstant("STORAGE_TYPE"),this.storage_type=="ONE_DRIVE"||this.storage_type=="GOOGLE_DRIVE"?this.dedup="User":this.dedup="Global",e();});}),this.policyNameToEdit=this.sharedService.getDataByKey("currentPolicyName"),this.callApis(),this.userType=yield this.userRoleService.getUserRole();});}toggleLimit(){this.limitError="",this.isLimitEnabled?this.perUserBackupStorageLimit="":this.perUserBackupStorageLimit="UNLIMITED";}myFunctionUBS(){console.log("perUserBackupStorageLimit : "+this.perUserBackupStorageLimit),this.limitError="";let e=Number(this.perUserBackupStorageLimit);console.log("inputValue : "+e),isNaN(e)?this.perUserBackupStorageLimit!=="UNLIMITED"&&(this.limitError='Input can be either "UNLIMITED" or any integer'):e>99999?this.limitError="Maximum Per User Backup Storage Limit Allowed is 99999":this.perUserBackupStorageLimit.includes(".")?this.limitError="Please enter an integral value":e<1&&!isNaN(e)?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 e=Number(this.purgeDeletedFilesOlderThan);console.log("inputValue : "+e),isNaN(e)?this.purgeDeletedFilesOlderThan!=="UNLIMITED"&&(this.deletedFilesError='Input can be either "UNLIMITED" or any integer'):this.purgeDeletedFilesOlderThan.includes(".")?this.deletedFilesError="Please enter an integral value":e<1&&!isNaN(e)?this.deletedFilesError="Minimum value allowed is 1":this.deletedFilesError="";}flipAllowEndUserTocontrolRestore(){this.canAdminRestoreAll||(this.allowEndUserTocontrolRestore=!1,this.isAdminDeleteBackupFile=!1);}toggleNoOfDaysToKeepUserDeviceNotActive(){this.switchnoOfDaysToKeepUserDeviceNotActive?(console.log("iffffffffffff"),this.noOfDaysToKeepUserDeviceNotActive="60"):(console.log("elseeeeeee"),this.noOfDaysToKeepUserDeviceNotActive="UNLIMITED"),this.myFunctionnoOfDaysToKeepUserDeviceNotActive();}callApis(){let e=this.policyManagementService.getAllSchedules(),i=this.policyManagementService.getAllFilters(),t=this.apiService.getPgs(),c=this.apiService.cloudProperties(),n=this.policyManagementService.getGlobalExclusion(),d=this.policyManagementService.getPolicyCommon(this.sharedService.getDataByKey("currentPolicyName"),this.productKey),A=[e,i,t,c,n,d];if(this.selectedProduct.key==="backup"){let u=this.policyManagementService.getAllNoBackupSchedules();A.push(u);}Q(A).subscribe(u=>{let[C,v,m,f,N,L,G]=u;console.log("API 1 response status:",C.status),console.log("API 1 response body:",C.body.scheduleElementList),console.log("API 1 response headers:",C.headers),console.log("API 2 response body:",v.body.inclusionFilterElementList),console.log("API 2 response headers:",v.headers),console.log("API 3 response body:",m.body.privacyGatewayElementList),console.log("API 3 response headers:",m.headers),console.log("API 4 response body:",f.body),console.log("API 4 response headers:",f.headers),console.log("API 5 response body:",N.body),console.log("API 5 response headers:",N.headers),console.log("API 6 response body:",L.body.data),console.log("API 6 response headers:",L.headers);let R=m.body.privacyGatewayElementList.map(k=>({gatewayName:k.gatewayName,status:!1}));console.log("Transformed Data:",R),this.schedules=C.body.scheduleElementList,this.selectedProduct.key==="backup"&&(this.noBackupSchedules=G.body.noBkpScheduleElementList),this.filters=v.body.inclusionFilterElementList.map(k=>F(w({},k),{status:!1})),console.log("filterssssssssss : "+JSON.stringify(this.filters)),this.searchfilters=v.body.inclusionFilterElementList.map(k=>F(w({},k),{status:!1})),this.pgs=R,console.log("API 5 response body:",JSON.stringify(N.body.globalExcludedFoldersElement.globalExcludedFoldersList.win));let D=[...new Set([...N.body.globalExcludedFoldersElement.globalExcludedFoldersList.win,...N.body.globalExcludedFoldersElement.globalExcludedFoldersList.mac])];D=[...new Set([...D,...N.body.globalExcludedFoldersElement.globalExcludedFoldersList.linux])],console.log("CombinedExclusions :",JSON.stringify(D)),this.noOfDevicesAllowedCloud=f.body.cloudPropertyElement.noOfDevicesAllowed,this.canUserChangePassword=f.body.cloudPropertyElement.canUserChangePassword,this.canAdminChangeUserPassword=f.body.cloudPropertyElement.canAdminChangeUserPassword,this.passwordChangeEnforce=f.body.cloudPropertyElement.passwordChangeEnforce,this.canAdminRestoreAll=f.body.cloudPropertyElement.canAdminRestoreAll,this.isAdminDeleteBackupFile=f.body.cloudPropertyElement.isAdminDeleteBackupFile,this.overridePolicySettings=f.body.cloudPropertyElement.overridePolicySettings,this.showUserConsentFieldInPolicies=f.body.cloudPropertyElement.showUserConsentFieldInPolicies,this.storageProvider=f.body.cloudPropertyElement.storageProvider,this.hostedSetup=f.body.cloudPropertyElement.hostedSetup,at(this.productKey,L.body.data,this);},u=>{switch(console.error("Error from Api's call: ",u),u.status){case 400:console.error("Bad Request: ",u.message);break;case 401:console.error("Unauthorized: ",u.message),this.toastr.error(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("Error")),setTimeout(()=>{this.router.navigate(["/logout"]);},3e3);break;case 403:console.error("Forbidden: ",u.message);break;case 404:console.error("Not Found: ",u.message);break;case 500:console.error("Internal Server Error: ",u.message);break;case 503:console.error("Internal Server Error: ",u.message);break;default:console.error("Unknown Error: ",u.message);break;}});}submitCreatePolicy(e){return()=>{this.displayConfirmPolicySave=!1;let i=!1;if(!this.validatePolicyGroupName()||!this.validateDescription())return;if(this.checkedListSchedule.length<=0||this.checkedListFilter.length<=0){this.checkedListSchedule.length<=0&&this.toastr.error(this.translatorService.getTranslation("Please select at least one schedule.")),this.checkedListFilter.length<=0&&this.toastr.error(this.translatorService.getTranslation("Please select at least one filter."));return;}if(this.searchAlgorithm=="PRIORITY"&&this.checkedListPg.length<=0){this.toastr.error(this.translatorService.getTranslation("Please select at least one BluKrypt Hostname."));return;}if((this.verError!=""||Number(this.versions)<1)&&(this.toastr.error(this.translatorService.getTranslation("Please check the value for Maximum number of Versions Allowed.")),i=!0),(this.limitError!=""||Number(this.perUserBackupStorageLimit)<1||isNaN(Number(this.perUserBackupStorageLimit))&&this.perUserBackupStorageLimit!=="UNLIMITED")&&(this.toastr.error(this.translatorService.getTranslation("Please check the value for Backup Storage Limit.")),i=!0),(this.sizeError!=""||Number(this.maxPermissibleFileSize)<1||isNaN(Number(this.maxPermissibleFileSize))&&this.maxPermissibleFileSize!=="UNLIMITED")&&(this.toastr.error(this.translatorService.getTranslation("Please check the value for Maximum Permissible File Size.")),i=!0),this.defaultUniversalFolders.length==0){this.toastr.error(this.translatorService.getTranslation("Please add at-least one default folders to backup up"));return;}if(typeof this.policyModel.noOfDaysToKeepUserDeviceNotActive<"u"&&((this.deletedAssetsError!=""||Number(this.noOfDaysToKeepUserDeviceNotActive)<7)&&(this.toastr.error(this.translatorService.getTranslation("Please check the value for Delete assets which have not been active for.")),i=!0),isNaN(Number(this.noOfDaysToKeepUserDeviceNotActive))&&this.noOfDaysToKeepUserDeviceNotActive!=="UNLIMITED"&&(this.toastr.error(this.translatorService.getTranslation("Please check the value for Delete assets which have not been active for.")),i=!0)),typeof this.policyModel.purgeDeletedFilesOlderThan<"u"&&((this.deletedFilesError!=""||Number(this.purgeDeletedFilesOlderThan)<1)&&(this.toastr.error(this.translatorService.getTranslation("Please check the value for Purge deleted items from the catalog after.")),i=!0),isNaN(Number(this.purgeDeletedFilesOlderThan))&&this.purgeDeletedFilesOlderThan!=="UNLIMITED"&&(this.toastr.error(this.translatorService.getTranslation("Please check the value for Purge deleted items from the catalog after.")),i=!0)),this.noOfDevicesAllowed>this.noOfDevicesAllowedCloud&&(this.toastr.error(this.translatorService.getTranslation("This value exceeds the number of devices licensable per user. Please enter a value lower than or equal to ")+this.noOfDevicesAllowedCloud),i=!0),this.threshholdLimitError!=""&&(this.toastr.error(this.translatorService.getTranslation("Please check the value for {{productTitle}} consumption is higher than (%).")),i=!0),this.purgeFilesOlderThanError!=""&&(this.toastr.error(this.translatorService.getTranslation("Please check the value for Files have not been modified in (days).")),i=!0),this.purgeFilesSizeGTThanError!=""&&(this.toastr.error(this.translatorService.getTranslation("Please check the value for Files are of size greater than (MB).")),i=!0),typeof this.policyModel.purgeDeletedMailsOlderThan<"u"&&((this.deletedFilesError!=""||Number(this.purgeDeletedMailsOlderThan)<1)&&(this.toastr.error(this.translatorService.getTranslation("Please check the value for Purge deleted items from the catalog after.")),i=!0),isNaN(Number(this.purgeDeletedMailsOlderThan))&&this.purgeDeletedMailsOlderThan!=="UNLIMITED"&&(this.toastr.error(this.translatorService.getTranslation("Please check the value for Purge deleted items from the catalog after.")),i=!0)),typeof this.policyModel.deletedMailsOlderThan<"u"&&((this.deletedMailsError!=""||Number(this.deletedMailsOlderThan)<1)&&(this.toastr.error(this.translatorService.getTranslation("Please check the value for Delete emails from the archive after.")),i=!0),isNaN(Number(this.deletedMailsOlderThan))&&this.deletedMailsOlderThan!=="UNLIMITED"&&(this.toastr.error(this.translatorService.getTranslation("Please check the value for Delete emails from the archive after.")),i=!0)),(this.purgeError!=""||this.createMailLinkEnabled&&this.purgeFilesOlderThan=="")&&(this.toastr.error(this.translatorService.getTranslation("Please check the value of days for attachment archiving.")),i=!0),this.policyModel.noOfDaysToKeepUserDeviceNotActive,(this.deletedAssetsError!=""||Number(this.noOfDaysToKeepUserDeviceNotActive)<7)&&(this.toastr.error(this.translatorService.getTranslation("Please check the value for Delete assets which have not been active for.")),i=!0),isNaN(Number(this.noOfDaysToKeepUserDeviceNotActive))&&this.noOfDaysToKeepUserDeviceNotActive!=="UNLIMITED"&&(this.toastr.error(this.translatorService.getTranslation("Please check the value for Delete assets which have not been active for.")),i=!0),this.selectedProduct?.featureLicenceKey?.contentSearch&&this.inclusionLicenses.includes(this.selectedProduct.featureLicenceKey.contentSearch)&&this.checkedListSearchFilter.length<=0){this.toastr.error(this.translatorService.getTranslation("Please select at least one search filter."));return;}let t=document.querySelector(".ng-invalid, .text-danger");t&&(t.scrollIntoView({behavior:"smooth",block:"center"}),t.focus());let c=Array.from(document.querySelectorAll('span[style*="color: #f55753"]'));for(let n of c)if(n.textContent?.trim()){n.scrollIntoView({behavior:"smooth",block:"center"});break;}if(!i){if(e.invalid){e.control.markAllAsTouched(),this.toastr.error(this.translatorService.getTranslation("Please fill in all required fields."));return;}this.verError="",this.limitError="",this.sizeError="",this.deletedAssetsError="",this.deletedFilesError="",this.deletedMailsError="",this.threshholdLimitError="",this.purgeFilesOlderThanError="",this.purgeFilesSizeGTThanError="",this.updateOutput(),this.updatePreferences(),this.updateMenuOptions(),console.log(JSON.stringify(this.policyModel)),ot(this,this.dataModel.commonPolicyModelToComponentScopeMap(),this.policyModel),console.log(JSON.stringify(this.policyModel)),this.onUnitChange(),this.policyManagementService.editPolicyCommon(this.policyModel,this.productKey).subscribe(n=>{console.log("Policy edited successfully:",n),this.toastr.success(this.translatorService.getTranslation("Policy edited successfully."),this.translatorService.getTranslation("Info")),setTimeout(()=>{this.router.navigate(["/pms/"+this.selectedProduct.routes.policy]);},5e3);},n=>{switch(n.status){case 400:console.error("Bad Request: ",n.message);break;case 401:console.error("Unauthorized: ",n.message),this.toastr.error(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("Error")),setTimeout(()=>{this.router.navigate(["/logout"]);},3e3);break;case 406:this.toastr.error(this.translatorService.getTranslation("Policy with same name already exists ."),this.translatorService.getTranslation("Error"));break;case 331:this.toastr.error(this.translatorService.getTranslation("Policy with same name already exists and is blocked."),this.translatorService.getTranslation("Error"));break;case 421:this.toastr.error(this.translatorService.getTranslation("Token expired, navigating to logout page."),this.translatorService.getTranslation("Error")),setTimeout(()=>{this.router.navigate(["/logout"]);},3e3);break;case 500:console.error("Internal Server Error: ",n.message);break;case 503:console.error("Internal Server Error: ",n.message);break;default:console.error("Unknown Error: ",n.message);break;}});}};}getPolicy(e){this.policygroupName=e.policygroupName,this.description=e.description,this.checkedListSchedule=e.scheduleNames,this.schedules=this.schedules.map(n=>F(w({},n),{checked:this.checkedListSchedule.includes(n.scheduleName)})),this.getMultipleSchedules(this.checkedListSchedule.toString()),this.versions=e.maxVersions,e.maxVersions=="-1"?(this.isVersionEnabled=!1,this.versions="UNLIMITED"):this.isVersionEnabled=!0,this.maxPermissibleFileSize=e.maxFileSize,e.maxFileSize=="1048576"||e.maxFileSize=="-1"?(this.isSizeEnabled=!1,this.maxPermissibleFileSize="UNLIMITED"):this.isSizeEnabled=!0,this.perUserBackupStorageLimit=e.userSizeAllowed,e.userSizeAllowed=="102400"?(this.isLimitEnabled=!1,this.perUserBackupStorageLimit="UNLIMITED"):this.isLimitEnabled=!0,this.noOfDevicesAllowed=e.noOfDevicesAllowed?e.noOfDevicesAllowed:this.noOfDevicesAllowedCloud,this.defaultUniversalFolders=e.backupFolderPaths,this.userExcludedFoldersUniversal=e.excludedFolderpaths?e.excludedFolderpaths:[],this.inclusionFilter=e.filterType=="inclusion",this.checkedListFilter=e.filterInclusionName,this.filters=this.filters.map(n=>F(w({},n),{checked:this.checkedListFilter.includes(n.filterName)})),this.getMultipleFilters(this.checkedListFilter.toString()),this.inclusionSearchFilter=e.searchFilterType=="inclusion",this.checkedListSearchFilter=e.searchFilterInclusionName,this.filters=this.filters.map(n=>F(w({},n),{checked:this.checkedListSearchFilter.includes(n.filterName)})),this.getMultipleSearchFilters(this.checkedListSearchFilter.toString()),this.nwFromClientToPGMB=e.nwFromClientToPGMB;let i=Math.round(e.nwFromClientToPGMB*1e4)/1e4,t="mbps";i<1?(i=Math.round(i*1024),t="kbps"):i>1024&&i===1e4?(i=-1,t="mbps"):i>1024?(i=Math.round(i/1024),t="gbps"):i=Math.round(i),i==-1?(this.nwFromClientToPGMB="UNLIMITED",this.networkThrottlingUnit="mbps",this.isThrottleEnabled=!1):(this.nwFromClientToPGMB=i.toString(),this.networkThrottlingUnit=t,this.isThrottleEnabled=!0),this.contentIndexEnabled=e.contentIndexEnabled,this.cpuThrottling=e.cpuThrottling,this.legalHold=e.legalHoldEnabled,this.rwDetectionEnabled=e.rwDetectionEnabled,this.numberOfThreadsAllowedForBackup=e.numberOfThreadsAllowedForBackup,this.webBasedLogin=e.webBasedLogin,this.compEnabled=e.compressionEnabled,this.vssEnabled=e.vssEnabled,this.policyRefresh=e.policyRefresh.split(":")[0],this.switchlogUnaccessedFiles=e.logUnaccessedFiles,this.canBackupHiddenFiles=e.canBackupHiddenFiles,e.purgeDeletedFilesOlderThan==-1?(this.switchpurgeDeletedFilesOlderThan=!1,this.purgeDeletedFilesOlderThan="UNLIMITED"):(this.switchpurgeDeletedFilesOlderThan=!0,this.purgeDeletedFilesOlderThan=e.purgeDeletedFilesOlderThan),e.noOfDaysToKeepDeletedFiles=="-1"?(this.switchnoOfDaysToKeepDeletedFiles=!1,this.noOfDaysToKeepDeletedFiles="UNLIMITED"):(this.switchnoOfDaysToKeepDeletedFiles=!0,this.noOfDaysToKeepDeletedFiles=e.noOfDaysToKeepDeletedFiles),e.noOfDaysToKeepUserDeviceNotActive==-1?(this.switchnoOfDaysToKeepUserDeviceNotActive=!1,this.noOfDaysToKeepUserDeviceNotActive="UNLIMITED"):(this.switchnoOfDaysToKeepUserDeviceNotActive=!0,this.noOfDaysToKeepUserDeviceNotActive=e.noOfDaysToKeepUserDeviceNotActive),this.canUserChangePassword=e.canUserChangePassword,this.canAdminChangeUserPassword=e.canAdminChangeUserPassword,this.canAdminRestoreAll=e.canAdminRestore,this.allowEndUserTocontrolRestore=e.allowEndUserTocontrolRestore,this.isAdminDeleteBackupFile=e.canAdminDelete,this.searchAlgorithm=e.searchAlgoForPg,this.checkedListPg=e.privacyGatewayMappingElement.privacyGatewayNames,this.pgs=this.pgs.map(n=>F(w({},n),{checked:this.checkedListPg.includes(n.gatewayName)})),console.log("policyElement.privacyGatewayMappingElement.privacyGatewayNames : "+e.privacyGatewayMappingElement.privacyGatewayNames),this.endpointUiPreferencesEdit=e.endpointUiPreferences?e.endpointUiPreferences:[],this.endpointDisabledUiPreferencesEdit=e.endpointDisabledUiPreferences?e.endpointDisabledUiPreferences:[],this.updatePreferencesEdit(),this.menuOptions=e.menuOptions,this.createUserAdmins=e.emailsRestriction.createUser.includes("admins")?"admins":"",this.createUserReadonlyadmins=e.emailsRestriction.createUser.includes("readonlyadmins")?"readonlyadmins":"",this.createUserUsers=e.emailsRestriction.createUser.includes("users")?"users":"",this.userDeletedAdmins=e.emailsRestriction.userDeleted.includes("admins")?"admins":"",this.userDeletedReadonlyadmins=e.emailsRestriction.userDeleted.includes("readonlyadmins")?"readonlyadmins":"",this.userDeletedUsers=e.emailsRestriction.userDeleted.includes("users")?"users":"",this.userBlockedAdmins=e.emailsRestriction.userBlocked.includes("admins")?"admins":"",this.userBlockedReadonlyadmins=e.emailsRestriction.userBlocked.includes("readonlyadmins")?"readonlyadmins":"",this.userBlockedUsers=e.emailsRestriction.userBlocked.includes("users")?"users":"",this.userLimitReachedAdmins=e.emailsRestriction.userLimitReached.includes("admins")?"admins":"",this.userLimitReachedReadonlyadmins=e.emailsRestriction.userLimitReached.includes("readonlyadmins")?"readonlyadmins":"",this.userLimitReachedUsers=e.emailsRestriction.userLimitReached.includes("users")?"users":"",this.deviceDeletedAdmins=e.emailsRestriction.deviceDeleted.includes("admins")?"admins":"",this.deviceDeletedReadonlyadmins=e.emailsRestriction.deviceDeleted.includes("readonlyadmins")?"readonlyadmins":"",this.deviceDeletedUsers=e.emailsRestriction.deviceDeleted.includes("users")?"users":"",this.deviceBlockedAdmins=e.emailsRestriction.deviceBlocked.includes("admins")?"admins":"",this.deviceBlockedReadonlyadmins=e.emailsRestriction.deviceBlocked.includes("readonlyadmins")?"readonlyadmins":"",this.deviceBlockedUsers=e.emailsRestriction.deviceBlocked.includes("users")?"users":"",this.deviceDecoupledAdmins=e.emailsRestriction.deviceDecoupled.includes("admins")?"admins":"",this.deviceDecoupledReadonlyadmins=e.emailsRestriction.deviceDecoupled.includes("readonlyadmins")?"readonlyadmins":"",this.deviceDecoupledUsers=e.emailsRestriction.deviceDecoupled.includes("users")?"users":"",this.deviceLimitReachedAdmins=e.emailsRestriction.deviceLimitReached.includes("admins")?"admins":"",this.deviceLimitReachedReadonlyadmins=e.emailsRestriction.deviceLimitReached.includes("readonlyadmins")?"readonlyadmins":"",this.deviceLimitReachedUsers=e.emailsRestriction.deviceLimitReached.includes("users")?"users":"",this.weeklyBkpreportAdmins=e.emailsRestriction.weeklyBkpreport.includes("admins")?"admins":"",this.weeklyBkpreportReadonlyadmins=e.emailsRestriction.weeklyBkpreport.includes("readonlyadmins")?"readonlyadmins":"",this.weeklyBkpreportUsers=e.emailsRestriction.weeklyBkpreport.includes("users")?"users":"",this.firstBkpCompletedAdmins=e.emailsRestriction.firstBkpCompleted.includes("admins")?"admins":"",this.firstBkpCompletedReadonlyadmins=e.emailsRestriction.firstBkpCompleted.includes("readonlyadmins")?"readonlyadmins":"",this.firstBkpCompletedUsers=e.emailsRestriction.firstBkpCompleted.includes("users")?"users":"",this.restoreInitiatedAdmins=e.emailsRestriction.restoreInitiated.includes("admins")?"admins":"",this.restoreInitiatedReadonlyadmins=e.emailsRestriction.restoreInitiated.includes("readonlyadmins")?"readonlyadmins":"",this.restoreInitiatedUsers=e.emailsRestriction.restoreInitiated.includes("users")?"users":"",this.storageLimitReachedAdmins=e.emailsRestriction.storageLimitReached.includes("admins")?"admins":"",this.storageLimitReachedReadonlyadmins=e.emailsRestriction.storageLimitReached.includes("readonlyadmins")?"readonlyadmins":"",this.storageLimitReachedUsers=e.emailsRestriction.storageLimitReached.includes("users")?"users":"",this.msAppBluKrypt=e.msAppBluKrypt,this.createLinkEnabled=e.createLinkEnabled,this.threshholdLimitOld=e.threshholdLimit,this.purgeFilesOlderThanOld=e.purgeFilesOlderThan,this.purgeFilesSizeGTThanOld=e.purgeFilesSizeGTThan,this.includethreshholdLimitCheck=e.cpThresHoldFlagEnabled,this.includepurgeFilesOlderThanCheck=e.cpPurgeFilesOlderThanEnabled,this.includepurgeFilesSizeGTThanCheck=e.cpPurgeFilesSizeGTThanFlagEnabled,e.createLinkEnabled&&(this.threshholdLimit=e.threshholdLimit,this.purgeFilesOlderThan=e.purgeFilesOlderThan,this.purgeFilesSizeGTThan=e.purgeFilesSizeGTThan,this.toggleCollapse(0),console.log("hzjvcjhsdvchjsdvchjsvchjvsdj00 : "+e.cpThresHoldFlagEnabled),e.cpThresHoldFlagEnabled==!1&&(console.log("hzjvcjhsdvchjsdvchjsvchjvsdj : "+e.cpThresHoldFlagEnabled),this.threshholdLimit=""),e.cpPurgeFilesOlderThanEnabled==!1&&(this.purgeFilesOlderThan=""),e.cpPurgeFilesSizeGTThanFlagEnabled==!1&&(this.purgeFilesSizeGTThan=""));let c=this.dataModel.commonPolicyModelToComponentScopeMap();}newFilterEdit(e){console.log("filterName : "+e);}toggleCollapse(e){this.collapses[e]=!this.collapses[e],this.includethreshholdLimitCheck==!1?this.threshholdLimit="":this.threshholdLimit=this.threshholdLimitOld,this.includepurgeFilesOlderThanCheck==!1?this.purgeFilesOlderThan="":this.purgeFilesOlderThan=this.purgeFilesOlderThanOld,this.includepurgeFilesSizeGTThanCheck==!1?this.purgeFilesSizeGTThan="":this.purgeFilesSizeGTThan=this.purgeFilesSizeGTThanOld;}toggleAccordion(e){this.itemVisible=this.itemVisible.map((i,t)=>t===e?!i:!1),this.itemVisible[e]?(this.onAccordionOpen(e),this.createLinkEnabled=!0):this.createLinkEnabled=!1;}onAccordionOpen(e){switch(e){case 0:this.handleBackupAccordionOpen();break;default:console.log("Unknown accordion item opened");}}handleBackupAccordionOpen(){console.log("First accordion item opened");}includethreshholdLimitChange(){this.threshholdLimitError="",this.includethreshholdLimitCheck?this.threshholdLimitOld!=""?this.threshholdLimit=this.threshholdLimitOld:this.threshholdLimit="80":this.threshholdLimit="",!this.includethreshholdLimitCheck&&!this.includepurgeFilesOlderThanCheck&&!this.includepurgeFilesSizeGTThanCheck&&this.toastr.error(this.translatorService.getTranslation("Please ensure that at least one option is selected."),this.translatorService.getTranslation("Info"));}checkthreshholdLimit(){let e=Number(this.threshholdLimit);this.threshholdLimitError="",e<1&&(this.threshholdLimitError="This value should be between 1 and 100.");}includepurgeFilesOlderThanChange(){this.purgeFilesOlderThanError="",this.includepurgeFilesOlderThanCheck?this.purgeFilesOlderThanOld!=""?this.purgeFilesOlderThan=this.purgeFilesOlderThanOld:this.purgeFilesOlderThan="365":this.purgeFilesOlderThan="",!this.includethreshholdLimitCheck&&!this.includepurgeFilesOlderThanCheck&&!this.includepurgeFilesSizeGTThanCheck&&this.toastr.error(this.translatorService.getTranslation("Please ensure that at least one option is selected."),this.translatorService.getTranslation("Info"));}checkpurgeFilesOlderThan(){let e=Number(this.purgeFilesOlderThan);this.purgeFilesOlderThanError="",(e<1||e>9131)&&(this.purgeFilesOlderThanError="This value should be between 1 and 9131.");}includepurgeFilesSizeGTThanChange(){this.purgeFilesSizeGTThanError="",this.includepurgeFilesSizeGTThanCheck?this.purgeFilesSizeGTThanOld!=""?this.purgeFilesSizeGTThan=this.purgeFilesSizeGTThanOld:this.purgeFilesSizeGTThan="5":this.purgeFilesSizeGTThan="",!this.includethreshholdLimitCheck&&!this.includepurgeFilesOlderThanCheck&&!this.includepurgeFilesSizeGTThanCheck&&this.toastr.error(this.translatorService.getTranslation("Please ensure that at least one option is selected."),this.translatorService.getTranslation("Info"));}checkpurgeFilesSizeGTThan(){let e=Number(this.purgeFilesSizeGTThan);this.purgeFilesSizeGTThanError="",e<1&&(this.purgeFilesSizeGTThanError="This value should be greater than or equal to 1.");}static{this.ɵfac=function(i){return new(i||r)(p(ce),p(j),p(ue),p(st),p(H),p(Xe),p(X),p(oe),p(ge),p(qe),p(ee),p(Je),p(nt),p(Ye),p(Ze),p(rt),p(ht),p(pe));};}static{this.ɵcmp=ie({type:r,selectors:[["app-msedit"]],outputs:{shareCheckedList:"shareCheckedList",shareIndividualCheckedList:"shareIndividualCheckedList",shareCheckedListFilter:"shareCheckedListFilter",shareIndividualCheckedListFilter:"shareIndividualCheckedListFilter",shareCheckedListSearchFilter:"shareCheckedListSearchFilter",shareIndividualCheckedListSearchFilter:"shareIndividualCheckedListSearchFilter",shareCheckedListPg:"shareCheckedListPg",shareIndividualCheckedListPg:"shareIndividualCheckedListPg"},features:[re([j,H,X]),se],decls:88,vars:22,consts:()=>{let e;e="Policy Name";let i;i="Description";let t;t="Maximum backup Size(GB)";let c;c="Number of Users Allowed";let n;n="Storage Node Search Algorithm";let d;d="Nearest";let A;A="Priority";let u;u="Microsoft 365 backup Agent";let C;C="Cancel";let v;return v="Preferred Storage Node Hostnames",[["myForm","ngForm"],["policyNameInput","ngModel"],["tabContent1","cTabContent"],["matSelectBlukryptHost",""],e,i,t,c,n,d,A,u,C,v,[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"],[1,"mb-3","d-none"],["cLabel","","for","description"],["cFormControl","","name","description","id","description","minlength","5","maxlength","512","rows","3",3,"ngModelChange","input","ngModel"],["style","color: red;",4,"ngIf"],["class","row col-lg-6","style","display: flex",4,"ngIf"],["color","warning",4,"ngIf"],[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"],["cRounded","bottom",3,"activeTabPaneIdx"],[1,"p-3","preview"],[1,"form-group","searchAlgoForPg"],["for","searchAlgoForPg"],["cSelect","","name","searchAlgoForPg","id","sortAlgoForPg","required","",1,"form-control","searchAlgoForPg",3,"ngModelChange","change","ngModel"],["value","NEAREST"],["value","PRIORITY"],["class","form-group",3,"display",4,"ngIf"],[1,"form-group","col-lg-7"],["for","msAppBluKrypt"],["cSelect","","name","msAppBluKrypt","id","msAppBluKrypt","title","Select Backup Agent",1,"form-control","msAppBluKrypt",3,"ngModelChange","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"btn","btn-primary","pull-right",3,"click"],[1,"btn","btn-default","pull-right",2,"margin-right","10px",3,"click"],["headerH4","Confirmation","bodyH4","Are you sure you want to continue?",3,"footerButtons",4,"ngIf"],["href","pms"],[3,"href"],[1,"text-danger"],[2,"color","red"],[1,"row","col-lg-6",2,"display","flex"],["cTooltip","Microsoft 365 Backup Storage can enable very fast bulk-restores of assets like all Mailboxes, all SharePoint Sites or all OneDrive accounts and can be highly useful for fast disaster recovery.Microsoft 365 Backup Storage provides recovery speeds of up to 2TB per hour at scale.* Source: Microsoft internal research, 2025","cTooltipPlacement","right",2,"color","#062D4D","cursor","pointer"],["aria-hidden","true",1,"fa","fa-question-circle"],[1,"col-lg-1"],[3,"switch"],["cFormCheckInput","","id","msStorageBackupEnabled","type","checkbox",3,"ngModelChange","ngModel","ngModelOptions"],["color","warning"],["for","Blukryptipaddress"],["appearance","fill",2,"width","100%"],["multiple","",3,"ngModelChange","selectionChange","ngModel","ngModelOptions"],[3,"value"],["headerH4","Confirmation","bodyH4","Are you sure you want to continue?",3,"footerButtons"]];},template:function(i,t){if(i&1){let c=z();o(0,"div",14)(1,"div",15)(2,"div",16)(3,"ol",17),S(4,Tt,5,3,"li",18)(5,_t,4,4,"li",18)(6,St,4,3,"li",18),a()()()(),o(7,"c-row")(8,"form",19,0),I("ngSubmit",function(){T(c);let d=x(9);return _(t.submitCreatePolicy(d));}),o(10,"c-col",20)(11,"c-card",21)(12,"c-card-header"),s(13,`
          `),s(14,`
          `),o(15,"div",22),s(16,`
            `),o(17,"div",23),s(18,`
              `),o(19,"div",24),s(20,`
                `),o(21,"label",25),P(22,4),a(),s(23,`
                `),o(24,"input",26,1),E("ngModelChange",function(d){return T(c),O(t.policygroupName,d)||(t.policygroupName=d),_(d);}),a(),s(26,`
                `),S(27,vt,8,3,"div",27),s(28,`
              `),a(),s(29,`
              `),o(30,"div",28),s(31,`
                `),o(32,"label",29),P(33,5),a(),s(34,`
                `),o(35,"textarea",30),E("ngModelChange",function(d){return T(c),O(t.description,d)||(t.description=d),_(d);}),I("input",function(){return T(c),_(t.validateDescription());}),a(),s(36,`
                `),S(37,Nt,2,0,"small",31),s(38,`
                `),S(39,yt,2,0,"small",31),s(40,`
              `),a(),s(41,`
              `),S(42,bt,16,4,"div",32),s(43,`
              `),S(44,Ot,4,0,"c-callout",33),s(45,`
              `),o(46,"div",34),s(47,`
                `),o(48,"label",35),P(49,6),a(),s(50,`
                `),o(51,"input",36),E("ngModelChange",function(d){return T(c),O(t.policyStorageSizeAllowed,d)||(t.policyStorageSizeAllowed=d),_(d);}),a(),s(52,`
                `),o(53,"label",37),P(54,7),a(),s(55,`
                `),o(56,"input",38),E("ngModelChange",function(d){return T(c),O(t.policyUsersAllowed,d)||(t.policyUsersAllowed=d),_(d);}),a(),s(57,`
              `),a(),s(58,`
            `),a(),s(59,`
          `),a(),s(60,`
        `),a(),o(61,"c-card-body")(62,"c-tab-content",39,2)(64,"c-tab-pane",40)(65,"div",15)(66,"div",23)(67,"div",41)(68,"label",42),P(69,8),a(),o(70,"select",43),E("ngModelChange",function(d){return T(c),O(t.searchAlgorithm,d)||(t.searchAlgorithm=d),_(d);}),I("change",function(){return T(c),_(t.onSearchAlgorithmChange());}),o(71,"option",44),P(72,9),a(),o(73,"option",45),P(74,10),a()()(),S(75,At,7,6,"div",46),a(),o(76,"div",47)(77,"label",48),P(78,11),a(),o(79,"select",49),E("ngModelChange",function(d){return T(c),O(t.msAppBluKrypt,d)||(t.msAppBluKrypt=d),_(d);}),S(80,kt,2,2,"option",50),a()()()()(),o(81,"div",15)(82,"div",16)(83,"a",51),I("click",function(){return T(c),_(t.submitPolicy());}),s(84,"Save"),a(),o(85,"a",52),I("click",function(){return T(c),_(t.sendMeTo("/pms/"+t.productKey));}),P(86,12),a()()()()()()()(),S(87,wt,1,8,"app-modal",53);}if(i&2){let c=x(9),n=x(25);l(4),h("ngIf",t.parent!=""),l(),h("ngIf",t.child!=""),l(),h("ngIf",t.subchild!=""),l(18),b("ngModel",t.policygroupName),l(3),h("ngIf",n.invalid&&(n.dirty||n.touched||c.submitted)),l(8),b("ngModel",t.description),l(2),h("ngIf",t.description.length>0&&t.description.length<5),l(2),h("ngIf",t.description.length>0&&t.description.length>512),l(3),h("ngIf",(t.selectedProduct==null||t.selectedProduct.featureLicenceKey==null?null:t.selectedProduct.featureLicenceKey.msStorageAPI)&&t.inclusionLicenses.includes(t.selectedProduct.featureLicenceKey.msStorageAPI)),l(2),h("ngIf",(t.selectedProduct==null||t.selectedProduct.featureLicenceKey==null?null:t.selectedProduct.featureLicenceKey.msStorageAPI)&&t.inclusionLicenses.includes(t.selectedProduct.featureLicenceKey.msStorageAPI)),l(7),b("ngModel",t.policyStorageSizeAllowed),l(5),b("ngModel",t.policyUsersAllowed),l(6),h("activeTabPaneIdx",0),l(5),B("display",t.userType=="superAdmin"&&t.productKey=="backup"?"block":"none"),l(3),b("ngModel",t.searchAlgorithm),l(5),h("ngIf",t.searchAlgorithm==="PRIORITY"),l(),B("display",t.userType=="superAdmin"&&t.productKey!="backup"?"block":"none"),l(3),b("ngModel",t.msAppBluKrypt),l(),h("ngForOf",t.pgs),l(7),h("ngIf",t.displayConfirmPolicySave);}},dependencies:[fe,Te,ye,Ne,$e,De,Ge,Be,ke,xe,Ae,Re,we,Fe,Ue,ze,Ve,Ke,_e,He,he,Oe,be,de,ae,le,Ee,We,Le,Ie,Me,ve,Pe,Ce,Se,ct,lt,dt,je,Qe,et,it,me,tt],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:#062d4d}input[_ngcontent-%COMP%]:focus + .slider[_ngcontent-%COMP%]{box-shadow:0 0 1px #062d4d}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}.accordion-header[_ngcontent-%COMP%]{padding:5px!important}']});}}return r;})();export{fi as MsAgentComponent};/**i18n:557364621938d8343d66734722390263df08d9a6046a2573ce83f95c485272f3*/