import {p,i}from'./chunk-CJ1dYQ3q.js';import {J,la as es,eo as f,ex as L,gt as gr,eq as r,le as b}from'./main-WUGO6e7n.js';var a,n=J(()=>{a=class{};});var s,u,g=J(()=>{es();n();f();p();s=L(gr()),u=class extends a{constructor(e=null){super(),this.name=r.manageDefaultValue(e,"name",null),this.userIds=r.manageDefaultValue(e,"userIds",null),this.messageType=r.manageDefaultValue(e,"messageType",[]),this.includePAMSystem=r.manageDefaultValue(e,"includePAMSystem",!1),this.fromDate=r.manageDefaultValue(e,"fromDate",null),this.toDate=r.manageDefaultValue(e,"toDate",null),this.dateFilter=r.manageDefaultValue(e,"dateFilter",b.Last7Days),this.vaultIds=r.manageDefaultValue(e,"vaultIds",null);}updateFromParameters(e){this.name=e.credentialName,this.userIds=e.userIds,this.messageType=e.messageTypes,this.includePAMSystem=!e.filterPamSystem,this.fromDate=(0,s.default)(e.dateRange?.fromDate).format(),this.toDate=(0,s.default)(e.dateRange?.toDate).format(),this.dateFilter=e.dateRange?.dateFilter,this.vaultIds=e.vaultIds;}toParameters(){return {credentialName:this.name,userIds:this.userIds,messageTypes:this.messageType,filterPamSystem:!this.includePAMSystem,dateRange:new i(this.dateFilter,new Date(this.fromDate),new Date(this.toDate)),vaultIds:this.vaultIds}}};});export{a,g,n,u};