inboxer 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/ui/routes.ts CHANGED
@@ -2,7 +2,7 @@ import type { Context, Hono } from "hono";
2
2
  import { deleteCookie, getCookie, getSignedCookie, setCookie, setSignedCookie } from "hono/cookie";
3
3
  import type { Access } from "../auth.ts";
4
4
  import { bareAddress, domainOf, splitAddresses } from "../core/address.ts";
5
- import { ConflictError, InvalidRequestError, type Mail, type MessageView, type ThreadStatus } from "../core/mail.ts";
5
+ import { ConflictError, InvalidRequestError, toView, type Mail, type MessageView, type ThreadStatus } from "../core/mail.ts";
6
6
  import { CATCHALL, type Actor, type InboxerConfig, type Message, type Session } from "../types.ts";
7
7
  import { S } from "./strings.ts";
8
8
  import * as V from "./views.ts";
@@ -25,12 +25,6 @@ function clientInfo(c: Context) {
25
25
  return { ip: forwarded || c.req.header("x-real-ip") || null, userAgent: c.req.header("user-agent") ?? null };
26
26
  }
27
27
 
28
- /** htmx sends the page URL; draft cards on a thread page leave out the thread around them. */
29
- function onThreadPage(c: Context): boolean {
30
- const current = c.req.header("hx-current-url");
31
- return !!current && new URL(current).pathname.startsWith("/threads/");
32
- }
33
-
34
28
  function uiActor(session: Session): Actor {
35
29
  return { kind: "ui", name: session.label ?? session.id.slice(0, 12), scope: session.scope };
36
30
  }
@@ -54,7 +48,7 @@ export function registerUi(app: Hono<UiEnv>, mail: Mail, access: Access, cfg: In
54
48
  const page = async (c: Context<UiEnv>, title: string, body: V.View, current: V.Page, status: 200 | 400 | 401 | 404 = 200, fullScreen = false) => {
55
49
  const session = c.get("session");
56
50
  const shell = session
57
- ? { draftCount: (await mail.listDrafts(undefined, session.scope)).length, domains: domainsOf(session), senders: senders(session) }
51
+ ? { draftCount: (await mail.listDrafts(undefined, session.scope)).length, senders: senders(session) }
58
52
  : {};
59
53
  return c.html(V.layout(title, body, { theme: theme(c), page: current, signedIn: !!session, fullScreen, ...shell }), status);
60
54
  };
@@ -105,36 +99,36 @@ export function registerUi(app: Hono<UiEnv>, mail: Mail, access: Access, cfg: In
105
99
  });
106
100
  }
107
101
 
108
- /** The sent and received messages around a draft, newest first, and the context of its thread. */
109
- const draftExtras = async (draft: Message, session: Session): Promise<{ history: MessageView[]; ctx: V.ContextView }> => {
110
- const { messages, context, contacts } = await mail.getThread(draft.thread_id, session.scope);
111
- const history = messages.filter(m => m.id !== draft.id && m.status !== "draft").reverse().map(shown);
112
- return { history, ctx: { context, contacts } };
113
- };
114
-
115
- /** The card for a draft in whatever state it is now. */
102
+ /** The card for a draft in whatever state it is now; once sent, its message in the thread. */
116
103
  const draftView = async (c: Context<UiEnv>, id: string): Promise<V.View> => {
117
- const session = c.get("session");
118
- const draft = await mail.requireMessage(id, session.scope);
104
+ const draft = await mail.requireMessage(id, c.get("session").scope);
119
105
  if (draft.status === "discarded") return V.draftDone(id, S.discarded);
120
- if (draft.status !== "draft") return V.draftDone(id, `${S.sentTo} ${draft.to.join(", ")}`);
121
- if (onThreadPage(c)) return V.draftCard(draft, [], null);
122
- const { history, ctx } = await draftExtras(draft, session);
123
- return V.draftCard(draft, history, ctx);
106
+ if (draft.status !== "draft") return V.messageBubble(shown(toView(draft)), false);
107
+ return V.draftCard(draft);
124
108
  };
125
109
 
126
110
  app.get("/", async c => {
111
+ const drafts = await mail.listDrafts(undefined, c.get("session").scope);
112
+ return page(c, S.navDrafts, V.inboxPage(V.draftList(drafts, null), null), "drafts");
113
+ });
114
+
115
+ app.get("/drafts/:id", async c => {
127
116
  const session = c.get("session");
117
+ const draft = await mail.requireMessage(c.req.param("id"), session.scope);
118
+ if (draft.status !== "draft") return c.redirect(`/threads/${draft.thread_id}?status=all`, 303);
119
+ const { thread, view } = await threadPane(c, draft.thread_id, "/");
128
120
  const drafts = await mail.listDrafts(undefined, session.scope);
129
- const items = await Promise.all(drafts.map(async draft => ({ draft, ...(await draftExtras(draft, session)) })));
130
- return page(c, S.navDrafts, V.draftsPage(items), "drafts");
121
+ return page(c, thread.subject || S.navDrafts, V.inboxPage(V.draftList(drafts, draft.id), view), "drafts", 200, true);
131
122
  });
132
123
 
133
124
  app.get("/drafts/:id/card", async c => c.html(await draftView(c, c.req.param("id"))));
134
125
 
135
126
  app.get("/drafts/:id/edit", async c => {
136
127
  const draft = await mail.requireMessage(c.req.param("id"), c.get("session").scope);
137
- if (draft.status !== "draft" || draft.pending) return c.html(await draftView(c, draft.id));
128
+ if (draft.status !== "draft" || draft.pending) {
129
+ c.header("HX-Refresh", "true");
130
+ return c.body(null, 204);
131
+ }
138
132
  const form = { to: draft.to.join(", "), cc: draft.cc.join(", "), subject: draft.subject, text: draft.text };
139
133
  return c.html(V.draftEditor(draft, form, null));
140
134
  });
@@ -152,6 +146,7 @@ export function registerUi(app: Hono<UiEnv>, mail: Mail, access: Access, cfg: In
152
146
  text: form.text,
153
147
  }, actor);
154
148
  if (body.send === "1") await mail.schedule(id, "send", actor);
149
+ c.header("HX-Refresh", "true");
155
150
  return c.html(await draftView(c, id));
156
151
  } catch (err) {
157
152
  if (err instanceof ConflictError) return c.html(V.draftEditor(err.current, form, err.current));
@@ -160,20 +155,24 @@ export function registerUi(app: Hono<UiEnv>, mail: Mail, access: Access, cfg: In
160
155
  }
161
156
  });
162
157
 
163
- app.post("/drafts/:id/attachments", async c => {
164
- const id = c.req.param("id");
165
- const actor = uiActor(c.get("session"));
166
- const body = await c.req.parseBody({ all: true });
167
- const files = ([] as unknown[]).concat(body.files ?? []).filter((f): f is File => f instanceof File);
158
+ /** Uploaded files within the size limit, and a message naming the last one over it. */
159
+ const uploads = (body: Record<string, unknown>): { files: File[]; error: string | null } => {
160
+ const all = ([] as unknown[]).concat(body.files ?? []).filter((f): f is File => f instanceof File && f.name !== "");
168
161
  const limit = cfg.ui.maxUploadMb * 1024 * 1024;
169
- let error: string | null = null;
162
+ const over = all.filter(f => f.size > limit).at(-1);
163
+ return { files: all.filter(f => f.size <= limit), error: over ? `${over.name} ${S.tooLarge} ${cfg.ui.maxUploadMb} MB` : null };
164
+ };
165
+ const attachAll = async (draftId: string, files: File[], actor: Actor) => {
170
166
  for (const file of files) {
171
- if (file.size > limit) {
172
- error = `${file.name} ${S.tooLarge} ${cfg.ui.maxUploadMb} MB`;
173
- continue;
174
- }
175
- await mail.attach(id, { filename: file.name, contentType: file.type, body: new Uint8Array(await file.arrayBuffer()) }, actor);
167
+ await mail.attach(draftId, { filename: file.name, contentType: file.type, body: new Uint8Array(await file.arrayBuffer()) }, actor);
176
168
  }
169
+ };
170
+
171
+ app.post("/drafts/:id/attachments", async c => {
172
+ const id = c.req.param("id");
173
+ const actor = uiActor(c.get("session"));
174
+ const { files, error } = uploads(await c.req.parseBody({ all: true }));
175
+ await attachAll(id, files, actor);
177
176
  return c.html(V.draftFiles(await mail.requireMessage(id, actor.scope), error));
178
177
  });
179
178
 
@@ -216,8 +215,8 @@ export function registerUi(app: Hono<UiEnv>, mail: Mail, access: Access, cfg: In
216
215
 
217
216
  app.get("/inbox", async c => page(c, S.navInbox, V.inboxPage(await threadList(c, null), null), "inbox"));
218
217
 
219
- app.get("/threads/:id", async c => {
220
- const id = c.req.param("id");
218
+ /** A thread with its drafts in place; opening it marks it read. */
219
+ const threadPane = async (c: Context<UiEnv>, id: string, back: string) => {
221
220
  const session = c.get("session");
222
221
  let thread = await mail.requireThread(id, session.scope);
223
222
  if (thread.unread) {
@@ -228,14 +227,30 @@ export function registerUi(app: Hono<UiEnv>, mail: Mail, access: Access, cfg: In
228
227
  const people = thread.participants.filter(p => !own.has(p));
229
228
  const entries = await Promise.all(messages.map(async m => ({
230
229
  at: m.date,
231
- view: m.status === "draft" ? V.draftCard(await mail.store.requireMessage(m.id), [], null) : V.messageBubble(shown(m), people.length > 1),
230
+ view: m.status === "draft" ? V.draftCard(await mail.store.requireMessage(m.id)) : V.messageBubble(shown(m), people.length > 1),
232
231
  })));
233
232
  const reply = { allowed: senders(session).some(m => m.id === thread.mailbox), replyAll: people.length > 1 };
234
- const view = V.threadView(thread, entries, { context, contacts }, { filter: inboxFilter(c), own, reply });
233
+ return { thread, view: V.threadView(thread, entries, { context, contacts }, { back, filter: inboxFilter(c), own, reply }) };
234
+ };
235
+
236
+ app.get("/threads/:id", async c => {
237
+ const id = c.req.param("id");
238
+ const { thread, view } = await threadPane(c, id, `/inbox?${V.inboxQuery(inboxFilter(c))}`);
235
239
  return page(c, thread.subject || S.navInbox, V.inboxPage(await threadList(c, id), view), "inbox", 200, true);
236
240
  });
237
241
 
238
242
  /** Replies to the latest message; a reply sent from here gets the same undo window as a draft. */
243
+ /** Opens a reply to the latest message in the edit sheet, for Cc, subject and attachments. */
244
+ app.post("/threads/:id/reply/full", async c => {
245
+ const actor = uiActor(c.get("session"));
246
+ const body = await c.req.parseBody();
247
+ const { messages } = await mail.getThread(c.req.param("id"), actor.scope);
248
+ const latest = messages.filter(m => m.status !== "draft").at(-1);
249
+ if (!latest) throw new InvalidRequestError("nothing to reply to");
250
+ const draft = await mail.createDraft({ replyToId: latest.id, replyAll: body.reply_all === "1", text: String(body.text ?? "") }, actor);
251
+ return c.html(V.newReplyEditor(draft));
252
+ });
253
+
239
254
  app.post("/threads/:id/reply", async c => {
240
255
  const id = c.req.param("id");
241
256
  const actor = uiActor(c.get("session"));
@@ -257,7 +272,9 @@ export function registerUi(app: Hono<UiEnv>, mail: Mail, access: Access, cfg: In
257
272
 
258
273
  app.post("/compose", async c => {
259
274
  const actor = uiActor(c.get("session"));
260
- const body = await c.req.parseBody();
275
+ const body = await c.req.parseBody({ all: true });
276
+ const { files, error } = uploads(body);
277
+ if (error) return page(c, S.newMail, V.message([error]), null, 400);
261
278
  try {
262
279
  const draft = await mail.createDraft({
263
280
  mailbox: String(body.mailbox ?? ""),
@@ -266,6 +283,7 @@ export function registerUi(app: Hono<UiEnv>, mail: Mail, access: Access, cfg: In
266
283
  subject: String(body.subject ?? ""),
267
284
  text: String(body.text ?? ""),
268
285
  }, actor);
286
+ await attachAll(draft.id, files, actor);
269
287
  if (body.action === "send") await mail.schedule(draft.id, "send", actor);
270
288
  return c.redirect(`/threads/${draft.thread_id}?status=all`, 303);
271
289
  } catch (err) {
@@ -15,6 +15,25 @@ document.addEventListener("click", event => {
15
15
  }
16
16
  });
17
17
 
18
+ // A draft's editor opens in the edit sheet; one draft is edited at a time.
19
+ document.addEventListener("htmx:afterSwap", event => {
20
+ const sheet = event.detail.target;
21
+ if (sheet.id !== "edit-sheet") return;
22
+ if (!sheet.open) sheet.showModal();
23
+ sheet.querySelector("textarea")?.focus();
24
+ });
25
+
26
+ // Closing the sheet on a reply started from the reply box shows its new draft in the thread.
27
+ document.addEventListener("close", event => {
28
+ if (event.target.id === "edit-sheet" && event.target.querySelector("[data-reload-on-close]")) location.reload();
29
+ }, true);
30
+
31
+ document.addEventListener("change", event => {
32
+ if (event.target.id === "compose-files") {
33
+ document.getElementById("compose-file-names").textContent = [...event.target.files].map(f => f.name).join(", ");
34
+ }
35
+ });
36
+
18
37
  document.addEventListener("keydown", event => {
19
38
  if (event.key === "Escape") document.body.classList.remove("context-open");
20
39
  });
@@ -77,7 +77,6 @@ body.full .tabbar { display: none; }
77
77
  }
78
78
  .brand { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; padding: 0 12px; }
79
79
  .brand span { color: var(--accent); }
80
- .sidebar .domain { font-family: var(--mono); font-size: 11px; color: var(--muted); padding: 2px 12px 0; overflow-wrap: anywhere; }
81
80
  .new-mail { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 12px; margin: 16px 0 14px; }
82
81
  .side-nav { display: flex; flex-direction: column; gap: 2px; }
83
82
  .side-nav a {
@@ -92,9 +91,11 @@ body.full .tabbar { display: none; }
92
91
  }
93
92
 
94
93
  /* Inbox: the list, and the open thread beside it on a wide screen */
95
- .split .pane { display: none; }
96
- .split.has-thread .list { display: none; }
97
- .split.has-thread .pane { display: block; }
94
+ @media (max-width: 899px) {
95
+ .split .pane { display: none; }
96
+ .split.has-thread .list { display: none; }
97
+ .split.has-thread .pane { display: block; }
98
+ }
98
99
  @media (min-width: 900px) {
99
100
  .split { display: flex; height: 100dvh; }
100
101
  .split .list { display: block; width: 380px; flex: none; overflow-y: auto; border-right: 1px solid var(--line); }
@@ -104,10 +105,12 @@ body.full .tabbar { display: none; }
104
105
 
105
106
  .list-head { padding: 18px 16px 12px; }
106
107
  .list-head h1 { font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
107
- .filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
108
- .chips { display: flex; gap: 8px; }
108
+ .filters { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
109
+ .chips { display: flex; flex: none; gap: 8px; }
110
+ .filters .select { min-width: 0; }
111
+ .filters select { width: 100%; text-overflow: ellipsis; }
109
112
  .chip {
110
- display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px;
113
+ display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 999px;
111
114
  border: 1px solid var(--line); font-size: 13px; font-weight: 500; white-space: nowrap;
112
115
  }
113
116
  .chip:hover { border-color: var(--focus); }
@@ -129,7 +132,9 @@ body.full .tabbar { display: none; }
129
132
  .row.unread .who { font-weight: 600; }
130
133
  .row.unread .row-subject { color: var(--fg); font-weight: 500; }
131
134
  .row.unread time { color: var(--accent-text); }
132
- .row-tags { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
135
+ .row-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
136
+ .row-snippet { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
137
+ .row-by { font-family: var(--mono); font-size: 11px; color: var(--muted); }
133
138
  .list .empty { border-top: 1px solid var(--line); }
134
139
 
135
140
  /* Thread */
@@ -179,7 +184,6 @@ button.thread-title:hover { background: var(--soft); border: none; }
179
184
  align-self: flex-end; max-width: 86%; padding: 12px 14px;
180
185
  background: var(--surface); border: 1.5px dashed var(--accent); border-radius: 18px; border-bottom-right-radius: 6px;
181
186
  }
182
- .messages .card.editing { width: 100%; max-width: 100%; }
183
187
  .messages .card.pending, .messages .card.notice { border-style: solid; border-color: var(--line); }
184
188
  .messages .card .mailbox, .messages .draft-head .subject { display: none; }
185
189
  .messages .card .body { margin-top: 10px; }
@@ -257,10 +261,15 @@ dialog.sheet .field.compact { padding-right: 60px; }
257
261
  dialog.sheet .field output { font-family: var(--mono); font-size: .8rem; padding: 10px 0; }
258
262
  dialog.sheet textarea { flex: 1; min-height: 0; margin: 0; padding: 12px 16px; resize: none; }
259
263
  .sheet-actions {
260
- display: flex; justify-content: flex-end; gap: 8px;
264
+ display: flex; gap: 8px;
261
265
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
262
266
  }
263
267
  .sheet-actions button { height: 44px; display: inline-flex; align-items: center; gap: 8px; }
268
+ .sheet-actions .icon-btn { cursor: pointer; color: var(--muted); }
269
+ .sheet-actions .icon-btn:hover { color: var(--fg); }
270
+ .sheet-head { display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 0 60px 0 16px; flex: none; }
271
+ dialog.sheet .note { margin: 0 16px 8px; flex: none; }
272
+ .sheet-files { flex: 1; min-width: 0; align-self: center; font-family: var(--mono); font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
264
273
  @media (min-width: 900px) {
265
274
  dialog.sheet { margin: auto; width: 640px; height: min(640px, 80dvh); border-radius: 18px; }
266
275
  dialog.sheet[open] { animation: none; }
@@ -275,7 +284,7 @@ dialog.sheet textarea { flex: 1; min-height: 0; margin: 0; padding: 12px 16px; r
275
284
  .meta strong { color: var(--fg); font-weight: 500; }
276
285
  .badge {
277
286
  font-family: var(--mono); font-size: .66rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em;
278
- padding: 2px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--fg);
287
+ padding: 2px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--fg); white-space: nowrap;
279
288
  }
280
289
  .badge.draft { border-color: var(--accent); color: var(--accent-text); }
281
290
  .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; margin-left: auto; }
@@ -300,11 +309,9 @@ dialog.sheet textarea { flex: 1; min-height: 0; margin: 0; padding: 12px 16px; r
300
309
  .file:hover { border-color: var(--focus); }
301
310
  .file span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
302
311
  .file .size { color: var(--muted); flex: none; }
303
- .draft-files { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
304
- .draft-files .warn { flex-basis: 100%; margin: 0; color: var(--danger); font-family: var(--mono); font-size: .72rem; }
312
+ .draft-files { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; overflow-x: auto; }
313
+ .draft-files .warn { flex: none; margin: 0; color: var(--danger); font-family: var(--mono); font-size: .72rem; }
305
314
  .draft-files .link { font-size: 1rem; line-height: 1; }
306
- .attach { cursor: pointer; color: var(--muted); }
307
- .attach:hover { color: var(--fg); }
308
315
  [data-drop] { position: relative; }
309
316
  .drop-hint {
310
317
  display: none; position: absolute; inset: 8px 0; z-index: 1;
@@ -322,8 +329,9 @@ dialog.sheet textarea { flex: 1; min-height: 0; margin: 0; padding: 12px 16px; r
322
329
  .countdown { position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--accent); transform-origin: left; animation: countdown linear forwards; }
323
330
  .messages .countdown { left: 14px; right: 14px; width: auto; top: auto; bottom: 6px; }
324
331
  @keyframes countdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }
325
- .conflict { border-top: 2px solid var(--danger); }
326
- .conflict .warn { color: var(--danger); font-weight: 600; margin: 14px 0 4px; }
332
+ .sheet-conflict { padding: 0 16px 8px; max-height: 40%; overflow-y: auto; flex: none; }
333
+ .sheet-conflict .warn { color: var(--danger); font-weight: 600; margin: 0; }
334
+ .sheet-conflict details summary { margin-top: 8px; }
327
335
 
328
336
  details summary {
329
337
  cursor: pointer; list-style: none; margin-top: 18px;
@@ -379,12 +387,16 @@ textarea {
379
387
  display: block; width: 100%; min-height: 16rem; margin-top: 16px; padding: 0; resize: vertical;
380
388
  border: none; background: none; font: inherit; color: var(--fg); outline: none;
381
389
  }
382
- .messages .editing textarea { min-height: 10rem; }
383
390
 
384
391
  /* Settings */
385
392
  .setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
386
393
  .setting label { font-weight: 500; }
387
- .setting .danger { padding: 0; }
394
+ .row.device:hover { background: none; }
395
+ .row.device .avatar { color: var(--muted); }
396
+ .row.device .danger { align-self: center; padding: 0; height: auto; border: none; background: none; }
397
+ .row.device .danger:hover { text-decoration: underline; }
398
+ .setting .danger, .setting .danger:hover { padding: 0; height: auto; border: none; background: none; }
399
+ .setting .danger:hover { text-decoration: underline; }
388
400
 
389
401
  /* States */
390
402
  .centered { max-width: 360px; margin: 20vh auto 0; padding: 0 16px; text-align: center; }
package/src/ui/strings.ts CHANGED
@@ -26,7 +26,6 @@ export const S = {
26
26
  discard: "Discard",
27
27
  save: "Save",
28
28
  saveAndSend: "Save & Send",
29
- cancel: "Cancel",
30
29
  attach: "Attach",
31
30
  remove: "Remove",
32
31
  dropFiles: "Drop files to attach",
@@ -34,7 +33,6 @@ export const S = {
34
33
  sending: "Sending to",
35
34
  discarding: "Discarding draft",
36
35
  undo: "Undo",
37
- sentTo: "Sent to",
38
36
  discarded: "Draft discarded.",
39
37
  editedByHuman: "Edited by you",
40
38
  byAgent: "By agent",
@@ -44,13 +42,11 @@ export const S = {
44
42
  replyAll: "Reply all",
45
43
  today: "Today",
46
44
  yesterday: "Yesterday",
47
- thread: "Thread",
48
45
  thisThread: "This thread",
49
46
  context: "Context",
50
47
  draft: "Draft",
51
48
 
52
49
  conflictTitle: "This draft changed while you were editing.",
53
- yourVersion: "Your version",
54
50
  currentVersion: "Current version",
55
51
 
56
52
  filterPending: "Pending",