import {a,d}from'./chunk-DrpPgge3.js';import {J,c as tS,ad as ce}from'./main-WUGO6e7n.js';var I,x=J(()=>{a();tS();I=(()=>{class t extends d{constructor(){super();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=ce({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();});var k,S=J(()=>{a();tS();k=(()=>{class t extends d{constructor(){super();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=ce({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();});var s,m=J(()=>{s=(function(t){return t[t.Unknown=0]="Unknown",t[t.Email=1]="Email",t[t.SecureMessage=2]="SecureMessage",t[t.Sms=3]="Sms",t[t.Syslog=4]="Syslog",t[t.User=5]="User",t[t.System=6]="System",t})(s||{});(function(t){function e(){return "SubscriberType"}t.getClass=e;function o(n){switch(t[n]){case "Email":return "lblEmail";case "SecureMessage":return "lblSecureMessage";case "Syslog":return "Syslog"}let h="";return typeof t.getClass=="function"&&(h=t.getClass()),h+"_"+t[n]}t.getEnumKey=o;})(s||(s={}));});var i,c=J(()=>{i=class{constructor(e=null){e?(this.id=e.id,this.name=e.name,this.type=e.type,this.subscriptions=e.subscriptions||[],this.groups=e.groups||[]):(this.subscriptions=[],this.groups=[]);}};});var u,C=J(()=>{c();m();u=class extends i{constructor(e=null){super(e),this.type=s.Syslog,e?this.syslogContent=e.syslogContent||{}:this.syslogContent={};}get hostname(){return this.syslogContent.host}set hostname(e){this.syslogContent.host=e;}get port(){return this.syslogContent.port}set port(e){this.syslogContent.port=Number(e);}get protocol(){return this.syslogContent.protocol}set protocol(e){this.syslogContent.protocol=e;}get useDefaultSettings(){return this.syslogContent.useDefaultSettings}set useDefaultSettings(e){this.syslogContent.useDefaultSettings=e;}};});var f,y=J(()=>{c();m();f=class extends i{constructor(e=null){super(e),this.type=s.Email,e?this.emailContent=e.emailContent||{}:this.emailContent={};}get emailAddress(){return this.emailContent.email}set emailAddress(e){this.emailContent.email=e;}get recipient(){return this.emailContent.recipientName}set recipient(e){this.emailContent.recipientName=e;}};});var L,w=J(()=>{c();y();C();m();tS();L=(()=>{class t{toSubscriber(o){if(!o)return null;switch(o.type){case s.Email:return new f(o);case s.Syslog:return new u(o);default:return new i(o)}}toSubscribers(o){return (o||[]).map(this.toSubscriber)}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=ce({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();});export{C,I,L,S,k,m,s,u,w,x};