{"version":3,"file":"message-CwvmDxSn.js","sources":["../../Client/message.ts"],"sourcesContent":["export enum MessageType {\n\tChat,\n\tCommand,\n\tStatus,\n}\n\nexport enum CommandType {\n\tToggleMicrophone,\n\tMuteMicrophone,\n}\n\nexport enum StatusType {\n\tMicrophone,\n}\n\nexport abstract class Message {\n\ttype: MessageType;\n}\n\nexport class ChatMessage extends Message {\n\tid: number;\n\tmessage: string;\n\tauthorName: string;\n\tcreatedOn: string;\n\n\tconstructor(\n\t\tid: number,\n\t\tmessage: string,\n\t\tauthorName: string,\n\t\tcreatedOn: Date,\n\t) {\n\t\tsuper();\n\t\tthis.type = MessageType.Chat;\n\t\tthis.id = id;\n\t\tthis.message = message;\n\t\tthis.authorName = authorName;\n\t\tthis.createdOn = createdOn.toLocaleTimeString([], {\n\t\t\thour: '2-digit',\n\t\t\tminute: '2-digit',\n\t\t});\n\t}\n}\n\nexport class CommandMessage extends Message {\n\tcommandType: CommandType;\n\tuuids: string[];\n\n\tconstructor(commandType: CommandType, uuids: string[]) {\n\t\tsuper();\n\t\tthis.type = MessageType.Command;\n\t\tthis.commandType = commandType;\n\t\tthis.uuids = uuids;\n\t}\n}\n\nexport class StatusMessage extends Message {\n\tstatusType: StatusType;\n\n\tconstructor() {\n\t\tsuper();\n\t\tthis.type = MessageType.Status;\n\t}\n}\n\nexport class MicrophoneStatusMessage extends StatusMessage {\n\tisMuted: boolean;\n\n\tconstructor(isMuted: boolean) {\n\t\tsuper();\n\t\tthis.statusType = StatusType.Microphone;\n\t\tthis.isMuted = isMuted;\n\t}\n}\n"],"names":["MessageType","MessageType2","CommandType","CommandType2","StatusType","StatusType2","Message","ChatMessage","id","message","authorName","createdOn","CommandMessage","commandType","uuids","StatusMessage","MicrophoneStatusMessage","isMuted"],"mappings":"AAAY,IAAAA,GAAAA,IACXA,EAAAC,EAAA,KAAA,CAAA,EAAA,OACAD,EAAAC,EAAA,QAAA,CAAA,EAAA,UACAD,EAAAC,EAAA,OAAA,CAAA,EAAA,SAHWD,IAAAA,GAAA,CAAA,CAAA,EAMAE,GAAAA,IACXA,EAAAC,EAAA,iBAAA,CAAA,EAAA,mBACAD,EAAAC,EAAA,eAAA,CAAA,EAAA,iBAFWD,IAAAA,GAAA,CAAA,CAAA,EAKAE,GAAAA,IACXA,EAAAC,EAAA,WAAA,CAAA,EAAA,aADWD,IAAAA,GAAA,CAAA,CAAA,EAIL,MAAeE,CAAQ,CAE9B,CAEO,MAAMC,UAAoBD,CAAQ,CAMxC,YACCE,EACAC,EACAC,EACAC,EACC,CACK,MAAA,EACN,KAAK,KAAO,EACZ,KAAK,GAAKH,EACV,KAAK,QAAUC,EACf,KAAK,WAAaC,EAClB,KAAK,UAAYC,EAAU,mBAAmB,CAAA,EAAI,CACjD,KAAM,UACN,OAAQ,SAAA,CACR,CAAA,CAEH,CAEO,MAAMC,UAAuBN,CAAQ,CAI3C,YAAYO,EAA0BC,EAAiB,CAChD,MAAA,EACN,KAAK,KAAO,EACZ,KAAK,YAAcD,EACnB,KAAK,MAAQC,CAAA,CAEf,CAEO,MAAMC,UAAsBT,CAAQ,CAG1C,aAAc,CACP,MAAA,EACN,KAAK,KAAO,CAAA,CAEd,CAEO,MAAMU,UAAgCD,CAAc,CAG1D,YAAYE,EAAkB,CACvB,MAAA,EACN,KAAK,WAAa,EAClB,KAAK,QAAUA,CAAA,CAEjB"}