import{a as mt,b as gt}from"./chunk-YRBREM7E.js";import{a as ft,b as _t}from"./chunk-AU2EX4SO.js";import"./chunk-ZTG6RIZX.js";import{a as ht,b as ut,c as pt}from"./chunk-TCEGRFRG.js";import{d as ct}from"./chunk-4XJ4EZIX.js";import{h as lt,i as dt}from"./chunk-URLG4N2W.js";import{b as tt,f as it}from"./chunk-H2T2K6EM.js";import{a as st}from"./chunk-OZ25E7CC.js";import{a as rt}from"./chunk-V3MPVAIT.js";import{a as at}from"./chunk-NHUQD2C2.js";import{b as nt,d as X}from"./chunk-VGNQ6GX5.js";import{d as H}from"./chunk-MEOEOGXB.js";import{a as ot}from"./chunk-AQXJPMKE.js";import{q as Xe,w as qe}from"./chunk-N53NM7AZ.js";import{b as ke,c as Ie,g as Fe,h as xe,i as De,j as Le,k as Re,l as Be,p as Ue,q as Ge,r as Ve,u as Ke,v as ze,w as $e,x as We,y as je,z as He}from"./chunk-BNBVQHGL.js";import{b as Je,c as Ye,d as Ze,h as Qe,i as et}from"./chunk-DSI4EXW5.js";import{Ba as Pe,Ca as Ce,Ea as ve,Fa as Ne,Ga as ye,Ja as be,Ka as Ee,cb as Oe,db as Ae,f as ue,fb as we,i as pe,ka as _e,l as me,ma as Me,na as Se,qa as Te,r as ge,u as fe}from"./chunk-IMCLO7B5.js";import{A as Z,Ab as te,Da as y,Eb as ie,Ec as L,Fd as j,Gc as s,Hb as S,Hc as B,Ia as Q,Ic as z,Jd as he,Lc as b,Mc as E,Nc as O,Rb as h,Rc as oe,Sb as G,Sc as q,Tc as J,Uc as ae,Wc as $,Xc as W,bc as n,bd as le,cc as a,dc as V,ec as re,fc as se,gb as ee,hc as K,lb as l,mb as m,mc as P,qc as F,rc as T,sa as _,ta as M,uc as ne,wd as de,xd as ce}from"./chunk-QPCTCEE3.js";import{a as k,b as I,i as Y}from"./chunk-Z6FMTJBH.js";var Mt=()=>({standalone:!0}),St=i=>({label:"Cancel",class:"btn btn-default",action:i}),Tt=i=>({label:"Ok",class:"btn btn-primary",action:i}),Pt=(i,u)=>[i,u];function Ct(i,u){if(i&1&&(n(0,"li")(1,"h3")(2,"a",54),s(3),$(4,"translate"),a()()()),i&2){let e=T();l(3),B(W(4,1,e.parent));}}function vt(i,u){if(i&1&&(n(0,"li")(1,"a",55),s(2),$(3,"translate"),a()()),i&2){let e=T();l(),h("href","pms/"+(e.selectedProduct==null||e.selectedProduct.routes==null?null:e.selectedProduct.routes.policy),ee),l(),B(W(3,2,e.child));}}function Nt(i,u){if(i&1&&(n(0,"li")(1,"span"),s(2),$(3,"translate"),a()()),i&2){let e=T();l(2),B(W(3,1,e.subchild));}}function yt(i,u){i&1&&(n(0,"small"),s(1,`
                    Policy Name is required.
                  `),a());}function bt(i,u){if(i&1&&(n(0,"small"),s(1),a()),i&2){let e=T(2);l(),z(`
                    `,e.errortext,`
                  `);}}function Et(i,u){i&1&&(n(0,"small"),s(1,`
                    Policy Name must be at least 3 characters long.
                  `),a());}function Ot(i,u){if(i&1&&(n(0,"div",56),s(1,`
                  `),S(2,yt,2,0,"small",18),s(3,`
                  `),S(4,bt,2,1,"small",18),s(5,`
                  `),S(6,Et,2,0,"small",18),s(7,`
                `),a()),i&2){T();let e=L(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 At(i,u){i&1&&(n(0,"small",57),s(1,`
                  This value is too short. It should have 5 characters or more.
                `),a());}function wt(i,u){i&1&&(n(0,"small",57),s(1,`
                  This value is too long. It should have 512 characters or fewer.
                `),a());}function kt(i,u){if(i&1){let e=K();n(0,"div",58),s(1,`
                                `),n(2,"span",16),s(3,"Enable backups to Microsoft 365 Backup Storage "),n(4,"a",59),s(5," "),V(6,"i",60),a()(),s(7,`
                `),n(8,"div",61),s(9,`
                  `),n(10,"c-form-check",62),s(11,`
                    `),n(12,"input",63),O("ngModelChange",function(t){_(e);let c=T();return E(c.msStorageBackupEnabled,t)||(c.msStorageBackupEnabled=t),M(t);}),a(),s(13,`
                  `),a(),s(14,`
                `),a(),s(15,`
              `),a();}if(i&2){let e=T();l(10),h("switch",!0),l(2),b("ngModel",e.msStorageBackupEnabled),h("ngModelOptions",q(3,Mt));}}function It(i,u){i&1&&(n(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.`),V(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 Ft(i,u){if(i&1&&(n(0,"mat-option",69),s(1),a()),i&2){let e=u.$implicit;h("value",e.gatewayName),l(),z(" ",e.gatewayName," ");}}function xt(i,u){if(i&1&&(re(0),n(1,"mat-chip",70),s(2),a(),se()),i&2){let e=u.$implicit;l(2),B(e);}}function Dt(i,u){if(i&1){let e=K();n(0,"div",24)(1,"label",65),P(2,13),a(),n(3,"mat-form-field",66)(4,"mat-select",67,3),O("ngModelChange",function(t){_(e);let c=T();return E(c.checkedListPg,t)||(c.checkedListPg=t),M(t);}),F("selectionChange",function(t){_(e);let c=T();return M(c.onBlukryptChange(t));}),S(6,Ft,2,2,"mat-option",50),n(7,"mat-select-trigger"),S(8,xt,3,1,"ng-container",68),a()()()();}if(i&2){let e=T();G("display",e.userType=="superAdmin"&&e.productKey=="backup"?"block":"none"),l(4),b("ngModel",e.checkedListPg),h("ngModelOptions",q(6,Mt)),l(2),h("ngForOf",e.pgs),l(2),h("ngForOf",e.checkedListPg);}}function Lt(i,u){if(i&1&&(n(0,"option",69),s(1),a()),i&2){let e=u.$implicit;ne("value",e.gatewayName),l(),z("",e.gatewayName," ");}}function Rt(i,u){if(i&1&&V(0,"app-modal",71),i&2){let e=T(),r=L(9);h("footerButtons",ae(5,Pt,J(1,St,e.closePolicySaveConfirmPopup),J(3,Tt,e.submitCreatePolicy(r))));}}var Ni=(()=>{class i extends gt{constructor(e,r,t,c,o,d,A,p,C,v,g,f,N,x,U,R,D,w){super(r,t,c,o,d,A,p,C,v,d,f,N,x,U,g,R,D),this.http=e,this.datePipe=r,this.titleService=t,this.toastr=c,this.apiService=o,this.AuthService=d,this.globalConstantsService=A,this.cdr=p,this.router=C,this.sharedService=v,this.el=g,this.configService=f,this.licenseCheckService=N,this.translatorService=x,this.userRoleService=U,this.policyManagementService=R,this.dataModel=D,this.activatedRoute=w,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.productKey="",this.productTitle="",this.selectedProduct={},t.setTitle(this.title);}ngOnInit(){return Y(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(r=>r.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(),r=this.policyManagementService.getAllFilters(),t=this.apiService.getPgs(),c=this.apiService.cloudProperties(),o=this.policyManagementService.getGlobalExclusion(),d=this.policyManagementService.getPolicyCommon(this.sharedService.getDataByKey("currentPolicyName"),this.productKey),A=[e,r,t,c,o,d];if(this.selectedProduct.key==="backup"){let p=this.policyManagementService.getAllNoBackupSchedules();A.push(p);}Z(A).subscribe(p=>{let[C,v,g,f,N,x,U]=p;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:",g.body.privacyGatewayElementList),console.log("API 3 response headers:",g.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:",x.body.data),console.log("API 6 response headers:",x.headers);let R=g.body.privacyGatewayElementList.map(w=>({gatewayName:w.gatewayName,status:!1}));console.log("Transformed Data:",R),this.schedules=C.body.scheduleElementList,this.selectedProduct.key==="backup"&&(this.noBackupSchedules=U.body.noBkpScheduleElementList),this.filters=v.body.inclusionFilterElementList.map(w=>I(k({},w),{status:!1})),console.log("filterssssssssss : "+JSON.stringify(this.filters)),this.searchfilters=v.body.inclusionFilterElementList.map(w=>I(k({},w),{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,dt(this.productKey,x.body.data,this);},p=>{switch(console.error("Error from Api's call: ",p),p.status){case 400:console.error("Bad Request: ",p.message);break;case 401:console.error("Unauthorized: ",p.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: ",p.message);break;case 404:console.error("Not Found: ",p.message);break;case 500:console.error("Internal Server Error: ",p.message);break;case 503:console.error("Internal Server Error: ",p.message);break;default:console.error("Unknown Error: ",p.message);break;}});}submitCreatePolicy(e){return()=>{this.displayConfirmPolicySave=!1;let r=!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.")),r=!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.")),r=!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.")),r=!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.")),r=!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.")),r=!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.")),r=!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.")),r=!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),r=!0),this.threshholdLimitError!=""&&(this.toastr.error(this.translatorService.getTranslation("Please check the value for {{productTitle}} consumption is higher than (%).")),r=!0),this.purgeFilesOlderThanError!=""&&(this.toastr.error(this.translatorService.getTranslation("Please check the value for Files have not been modified in (days).")),r=!0),this.purgeFilesSizeGTThanError!=""&&(this.toastr.error(this.translatorService.getTranslation("Please check the value for Files are of size greater than (MB).")),r=!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.")),r=!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.")),r=!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.")),r=!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.")),r=!0)),(this.purgeError!=""||this.createMailLinkEnabled&&this.purgeFilesOlderThan=="")&&(this.toastr.error(this.translatorService.getTranslation("Please check the value of days for attachment archiving.")),r=!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.")),r=!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.")),r=!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 o of c)if(o.textContent?.trim()){o.scrollIntoView({behavior:"smooth",block:"center"});break;}if(!r){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)),lt(this,this.dataModel.commonPolicyModelToComponentScopeMap(),this.policyModel),console.log(JSON.stringify(this.policyModel)),this.onUnitChange(),this.policyManagementService.editPolicyCommon(this.policyModel,this.productKey).subscribe(o=>{console.log("Policy edited successfully:",o),this.toastr.success(this.translatorService.getTranslation("Policy edited successfully."),this.translatorService.getTranslation("Info")),setTimeout(()=>{this.router.navigate(["/pms/"+this.selectedProduct.routes.policy]);},5e3);},o=>{switch(o.status){case 400:console.error("Bad Request: ",o.message);break;case 401:console.error("Unauthorized: ",o.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: ",o.message);break;case 503:console.error("Internal Server Error: ",o.message);break;default:console.error("Unknown Error: ",o.message);break;}});}};}getPolicy(e){this.policygroupName=e.policygroupName,this.description=e.description,this.checkedListSchedule=e.scheduleNames,this.schedules=this.schedules.map(o=>I(k({},o),{checked:this.checkedListSchedule.includes(o.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(o=>I(k({},o),{checked:this.checkedListFilter.includes(o.filterName)})),this.getMultipleFilters(this.checkedListFilter.toString()),this.inclusionSearchFilter=e.searchFilterType=="inclusion",this.checkedListSearchFilter=e.searchFilterInclusionName,this.filters=this.filters.map(o=>I(k({},o),{checked:this.checkedListSearchFilter.includes(o.filterName)})),this.getMultipleSearchFilters(this.checkedListSearchFilter.toString()),this.nwFromClientToPGMB=e.nwFromClientToPGMB;let r=Math.round(e.nwFromClientToPGMB*1e4)/1e4,t="mbps";r<1?(r=Math.round(r*1024),t="kbps"):r>1024&&r===1e4?(r=-1,t="mbps"):r>1024?(r=Math.round(r/1024),t="gbps"):r=Math.round(r),r==-1?(this.nwFromClientToPGMB="UNLIMITED",this.networkThrottlingUnit="mbps",this.isThrottleEnabled=!1):(this.nwFromClientToPGMB=r.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(o=>I(k({},o),{checked:this.checkedListPg.includes(o.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);}checkpurgeFilesOlderThan(){let e=Number(this.purgeFilesOlderThan);this.purgeFilesOlderThanError="",(e<1||e>9131)&&(this.purgeFilesOlderThanError="This value should be between 1 and 9131.");}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(r){return new(r||i)(m(ue),m(j),m(me),m(nt),m(H),m(Je),m(X),m(le),m(fe),m(Ye),m(Q),m(Ze),m(at),m(Qe),m(et),m(ot),m(mt),m(ge));};}static{this.ɵcmp=te({type:i,selectors:[["app-msedit"]],outputs:{shareCheckedList:"shareCheckedList",shareIndividualCheckedList:"shareIndividualCheckedList",shareCheckedListFilter:"shareCheckedListFilter",shareIndividualCheckedListFilter:"shareIndividualCheckedListFilter",shareCheckedListSearchFilter:"shareCheckedListSearchFilter",shareIndividualCheckedListSearchFilter:"shareIndividualCheckedListSearchFilter",shareCheckedListPg:"shareCheckedListPg",shareIndividualCheckedListPg:"shareIndividualCheckedListPg"},features:[oe([j,H,X]),ie],decls:88,vars:22,consts:()=>{let e;e="Policy Name";let r;r="Description";let t;t="Maximum backup Size(GB)";let c;c="Number of Users Allowed";let o;o="Storage Node Search Algorithm";let d;d="Nearest";let A;A="Priority";let p;p="Microsoft 365 backup Agent";let C;C="Cancel";let v;return v="Preferred Storage Node Hostnames",[["myForm","ngForm"],["policyNameInput","ngModel"],["tabContent1","cTabContent"],["matSelectBlukryptHost",""],e,r,t,c,o,d,A,p,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"],[4,"ngFor","ngForOf"],[3,"value"],[2,"margin","2px"],["headerH4","Confirmation","bodyH4","Are you sure you want to continue?",3,"footerButtons"]];},template:function(r,t){if(r&1){let c=K();n(0,"div",14)(1,"div",15)(2,"div",16)(3,"ol",17),S(4,Ct,5,3,"li",18)(5,vt,4,4,"li",18)(6,Nt,4,3,"li",18),a()()()(),n(7,"c-row")(8,"form",19,0),F("ngSubmit",function(){_(c);let d=L(9);return M(t.submitCreatePolicy(d));}),n(10,"c-col",20)(11,"c-card",21)(12,"c-card-header"),s(13,`
          `),s(14,`
          `),n(15,"div",22),s(16,`
            `),n(17,"div",23),s(18,`
              `),n(19,"div",24),s(20,`
                `),n(21,"label",25),P(22,4),a(),s(23,`
                `),n(24,"input",26,1),O("ngModelChange",function(d){return _(c),E(t.policygroupName,d)||(t.policygroupName=d),M(d);}),a(),s(26,`
                `),S(27,Ot,8,3,"div",27),s(28,`
              `),a(),s(29,`
              `),n(30,"div",28),s(31,`
                `),n(32,"label",29),P(33,5),a(),s(34,`
                `),n(35,"textarea",30),O("ngModelChange",function(d){return _(c),E(t.description,d)||(t.description=d),M(d);}),F("input",function(){return _(c),M(t.validateDescription());}),a(),s(36,`
                `),S(37,At,2,0,"small",31),s(38,`
                `),S(39,wt,2,0,"small",31),s(40,`
              `),a(),s(41,`
              `),S(42,kt,16,4,"div",32),s(43,`
              `),S(44,It,4,0,"c-callout",33),s(45,`
              `),n(46,"div",34),s(47,`
                `),n(48,"label",35),P(49,6),a(),s(50,`
                `),n(51,"input",36),O("ngModelChange",function(d){return _(c),E(t.policyStorageSizeAllowed,d)||(t.policyStorageSizeAllowed=d),M(d);}),a(),s(52,`
                `),n(53,"label",37),P(54,7),a(),s(55,`
                `),n(56,"input",38),O("ngModelChange",function(d){return _(c),E(t.policyUsersAllowed,d)||(t.policyUsersAllowed=d),M(d);}),a(),s(57,`
              `),a(),s(58,`
            `),a(),s(59,`
          `),a(),s(60,`
        `),a(),n(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(),n(70,"select",43),O("ngModelChange",function(d){return _(c),E(t.searchAlgorithm,d)||(t.searchAlgorithm=d),M(d);}),F("change",function(){return _(c),M(t.onSearchAlgorithmChange());}),n(71,"option",44),P(72,9),a(),n(73,"option",45),P(74,10),a()()(),S(75,Dt,9,7,"div",46),a(),n(76,"div",47)(77,"label",48),P(78,11),a(),n(79,"select",49),O("ngModelChange",function(d){return _(c),E(t.msAppBluKrypt,d)||(t.msAppBluKrypt=d),M(d);}),S(80,Lt,2,2,"option",50),a()()()()(),n(81,"div",15)(82,"div",16)(83,"a",51),F("click",function(){return _(c),M(t.submitPolicy());}),s(84,"Save"),a(),n(85,"a",52),F("click",function(){return _(c),M(t.sendMeTo("/pms/"+t.productKey));}),P(86,12),a()()()()()()()(),S(87,Rt,1,8,"app-modal",53);}if(r&2){let c=L(9),o=L(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",o.invalid&&(o.dirty||o.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),G("display",t.userType=="superAdmin"&&t.productKey=="backup"?"block":"none"),l(3),b("ngModel",t.searchAlgorithm),l(5),h("ngIf",t.searchAlgorithm==="PRIORITY"),l(),G("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:[Me,Se,Ee,be,He,Re,Ge,Ve,Ie,Be,ke,Ue,Fe,xe,Ke,ze,$e,We,Te,qe,pe,Ae,Oe,he,de,ce,we,je,Le,De,Ce,ye,ve,Ne,Pe,pt,ct,ht,ut,Xe,tt,it,st,_e,rt,_t,ft],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}  .mat-mdc-select-trigger{display:flex!important;flex-wrap:wrap!important;white-space:normal!important;height:auto!important;padding-top:6px!important;padding-bottom:6px!important}  .mat-mdc-select-value{display:flex!important;flex-wrap:wrap!important;white-space:normal!important;overflow:visible!important;height:auto!important}  .mat-mdc-select-value-text{display:flex!important;flex-wrap:wrap!important;white-space:normal!important;overflow:visible!important;height:auto!important}  .mat-mdc-select-min-line{white-space:normal!important}  .mat-mdc-select-arrow{width:0px!important}']});}}return i;})();export{Ni as MsAgentComponent};/**i18n:baf94ddeebe8e238ad6726a2c32767605608f8ef2ffb012a899af1d72d1eba78*/