export const Mailto = { templateLink({emoji}) { return `mailto:[{senderEmail}]?subject=${emoji}:[{uid}]:[{accessCode}]`; }, create({ subject = "", command = void 0 as { emoji: string, messageID: string, uid?: string, }, to = "", body = "", inReplyTo = "" }) { const usp = new URLSearchParams(); if (command) { const { emoji, messageID } = command; let { uid = "0" } = command; if (uid) { uid = uid + ":"; } subject = `${emoji}:${uid}${messageID}:${subject}`; } if (subject) { usp.append("subject", subject); } if (body) { usp.append("body", body); } if (inReplyTo) { usp.append("in-reply-to", inReplyTo); } return `mailto:${to}?${usp.toString()}`; } };