@webx-ui/module-inbox 0.9.1 → 0.11.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/dist/FormEditorPage-B2Q0gTp3.js +889 -0
- package/dist/FormEditorPage-B2Q0gTp3.js.map +1 -0
- package/dist/FormNotifications.d.ts +3 -1
- package/dist/{InboxPage-DsYFI3g9.js → InboxPage-iMQ0pjrR.js} +2 -2
- package/dist/{InboxPage-DsYFI3g9.js.map → InboxPage-iMQ0pjrR.js.map} +1 -1
- package/dist/{StatusesPage-DIrk5z13.js → StatusesPage-arNMRLzM.js} +2 -2
- package/dist/{StatusesPage-DIrk5z13.js.map → StatusesPage-arNMRLzM.js.map} +1 -1
- package/dist/SubmissionPage-BDI8xL0N.js +642 -0
- package/dist/SubmissionPage-BDI8xL0N.js.map +1 -0
- package/dist/{index-CZWksX_k.js → index-gLN73Ici.js} +216 -212
- package/dist/index-gLN73Ici.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +43 -0
- package/package.json +2 -2
- package/dist/FormEditorPage-C3ULFulJ.js +0 -843
- package/dist/FormEditorPage-C3ULFulJ.js.map +0 -1
- package/dist/SubmissionPage-BUd7Gd7d.js +0 -608
- package/dist/SubmissionPage-BUd7Gd7d.js.map +0 -1
- package/dist/index-CZWksX_k.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubmissionPage-BDI8xL0N.js","sources":["../src/SubmissionPage.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, ref, watch, type Component } from 'vue'\nimport { useRoute, useRouter } from 'vue-router'\nimport {\n useAdmin,\n useErrorText,\n useTranslate,\n WxDate,\n WxNotes,\n WxScreenHead,\n type ScreenAction,\n} from '@webx-ui/module-admin'\nimport {\n confirm,\n localizedValue,\n toast,\n useLocales,\n WxAction,\n WxAlert,\n WxBadge,\n WxButton,\n WxCard,\n WxDescriptions,\n WxDescriptionsItem,\n WxEmpty,\n WxFileCard,\n WxSelect,\n WxSkeleton,\n WxTab,\n WxTabs,\n WxText,\n WxTimeline,\n WxTimelineItem,\n} from '@webx-ui/core'\nimport { createInboxApi } from './api'\nimport { useInboxMessages, useStatusName } from './i18n'\nimport type {\n ChannelDelivery,\n InboxRecipient,\n InboxStatus,\n InboxSubmission,\n SubmissionEvent,\n SubmissionValue,\n} from './types'\n\n/**\n * One submission, on a screen of its own (§11).\n *\n * A dialog over the list would have kept the filters under the reader's hand, and it was\n * rejected for one reason: a submission needs an address somebody can send. It goes into the\n * mail to whoever deals with it, it gets pasted into a chat, an agent links to it. What the\n * dialog would have given back is paid for here instead — the list's whole state travels in\n * the address, so the way out lands exactly where the reader was, and the arrows walk the same\n * filtered pile.\n */\nconst props = withDefaults(defineProps<{ base?: string }>(), { base: '/inbox' })\n\nconst context = useAdmin()\nconst api = createInboxApi(context)\nconst route = useRoute()\nconst router = useRouter()\nconst locales = useLocales()\nuseInboxMessages()\n\nconst t = useTranslate('webx-inbox')\n/* The notes feed is the panel's own, and so is the word for it: a second \"Notes\" in this\n module's dictionary would be the same line translated twice. */\nconst panel = useTranslate('webx-admin')\n/* Not the server's `message`: the panel says how a request failed in its own words. */\nconst message = useErrorText()\n\nconst submission = ref<InboxSubmission | null>(null)\nconst statuses = ref<InboxStatus[]>([])\nconst admins = ref<InboxRecipient[]>([])\nconst loading = ref(true)\n\nconst canUpdate = computed(() => context.can('inbox.update'))\n\n/**\n * What draws a module's enclosure (§2.20): the panel type `inbox-enclosure:<kind>` the module\n * registered — a configuration as a table, a basket as its lines. Without one, the enclosure's\n * text is shown as it came, in the letter's lines.\n */\nfunction enclosureView(value: SubmissionValue): Component | null {\n if (value.type !== 'enclosure' || value.field_id !== null) return null\n const payload = value.payload as { kind?: unknown } | null\n const kind = typeof payload?.kind === 'string' ? payload.kind : value.name\n\n return context.types[`inbox-enclosure:${kind}`]?.component ?? null\n}\n\nconst id = computed(() => Number(route.params.id))\n\n/** Everything the list was looking at, carried along so the arrows walk the same pile. */\nconst filter = computed(() => ({\n view: typeof route.query.view === 'string' ? route.query.view : undefined,\n search: typeof route.query.search === 'string' ? route.query.search : undefined,\n assignee: typeof route.query.assignee === 'string' ? route.query.assignee : undefined,\n}))\n\n/** Back to the list, on the form, the tab and the page it was left at. */\nconst backTo = computed(() => ({ path: props.base, query: { ...route.query } }))\n\nconst statusOptions = computed(() =>\n statuses.value.map((status) => ({ value: status.id, label: name(status) })),\n)\n\n/* Nobody is not an option in the list but the empty state of the control: a select whose\n first line means \"none\" is one somebody picks by accident, and `clearable` already says\n it. */\nconst assigneeOptions = computed(() =>\n admins.value.map((admin) => ({ value: admin.id, label: admin.name })),\n)\n\n/* In the panel's language, not the content's: a status is a word of the interface. */\nconst name = useStatusName()\n\nconst heading = computed(() => t('panel.submission', { id: String(id.value) }))\n\nconst formTitle = computed(() => {\n const form = submission.value?.form\n\n return form === undefined\n ? ''\n : localizedValue(form.title ?? {}, locales.active.value, form.slug ?? '')\n})\n\n/**\n * Where a reply goes.\n *\n * The form says which field holds the sender's address (`email_field`); without one, the first\n * answer that was asked as an e-mail is the honest guess, and where there is none the button\n * is simply not there — a `mailto:` with nothing after it opens an empty window.\n */\nconst replyTo = computed(() => {\n const values = submission.value?.values ?? []\n const answer = values.find((value) => value.type === 'email' && (value.value ?? '') !== '')\n\n return answer?.value ?? null\n})\n\nconst mailto = computed(() => {\n if (replyTo.value === null) return null\n\n const subject = encodeURIComponent(`${formTitle.value} — ${heading.value}`)\n\n return `mailto:${replyTo.value}?subject=${subject}`\n})\n\nasync function load(): Promise<void> {\n loading.value = true\n\n try {\n submission.value = await api.submission(id.value, filter.value)\n } catch (error) {\n toast.danger(message(error))\n void router.replace(backTo.value)\n } finally {\n loading.value = false\n }\n}\n\nasync function lists(): Promise<void> {\n try {\n statuses.value = await api.statuses()\n\n // Only where there is something to do with them: assigning is `inbox.update`, and the\n // list of administrators is not a reader's business.\n if (canUpdate.value) {\n admins.value = await api.recipients()\n }\n } catch (error) {\n toast.danger(message(error))\n }\n}\n\n/* The arrows change the address without leaving the screen, so the record has to follow it. */\nwatch(id, () => void load(), { immediate: true })\n\nvoid lists()\n\nasync function save(input: { status_id?: number; assignee_id?: number | null }): Promise<void> {\n try {\n submission.value = await api.saveSubmission(id.value, input)\n toast.success(t('panel.saved'))\n } catch (error) {\n toast.danger(message(error))\n await load()\n }\n}\n\nfunction onStatus(value: unknown): void {\n if (typeof value === 'number') void save({ status_id: value })\n}\n\nfunction onAssignee(value: unknown): void {\n void save({ assignee_id: typeof value === 'number' ? value : null })\n}\n\n/*\n * What the screen offers: answering it, and — behind the `···` — what is done to the pile it\n * came from. Replying is the main action by §18.3, so it is the one that keeps a button of its\n * own once the head runs out of room.\n */\nconst actions = computed<ScreenAction[]>(() => {\n const list: ScreenAction[] = []\n\n if (mailto.value) {\n list.push({\n key: 'reply',\n label: t('panel.reply'),\n icon: 'mail',\n primary: true,\n href: mailto.value,\n target: '_self',\n })\n }\n\n if (canUpdate.value && submission.value !== null) {\n list.push(\n {\n key: 'unread',\n icon: 'eye-off',\n label: t('panel.mark-unread'),\n menu: true,\n run: () => void unread(),\n },\n {\n key: 'notify',\n icon: 'mail',\n label: t('panel.notify-again'),\n menu: true,\n run: () => void notifyAgain(),\n },\n {\n key: 'delete',\n icon: 'trash',\n label: t('panel.delete'),\n danger: true,\n run: () => void remove(),\n },\n )\n }\n\n return list\n})\n\n/*\n * The letter once more — after the mail settings were fixed, or for one stuck in a queue that\n * no worker reads. A form that names nobody is refused by the server, and that is said here.\n */\nasync function notifyAgain(): Promise<void> {\n try {\n submission.value = await api.notifySubmission(id.value)\n toast.success(t('panel.notify-sent-again'))\n } catch (error) {\n toast.danger(message(error))\n }\n}\n\nconst notification = computed(() => submission.value?.notification ?? null)\n\nfunction recipientState(state: string): string {\n return t(`panel.notify-recipient-${state}`)\n}\n\n/*\n * What the channels of the notifications module made of it (NOTIFICATIONS §15.3) — null on a\n * site without that module, and then there is no tab for it at all.\n */\nconst channels = computed(() => submission.value?.channels ?? null)\n\n/* A channel that did not deliver is said above the strip: nobody opens a tab to look for it. */\nconst channelsFailed = computed(() => (channels.value ?? []).some((row) => row.status === 'failed'))\n\nconst channelsRetryable = computed(() => (channels.value ?? []).some((row) => row.retryable))\n\nfunction channelTone(row: ChannelDelivery): 'danger' | 'success' | 'warning' | 'default' {\n if (row.status === 'failed') return 'danger'\n // Sent into a trap is not delivered: the label says so, and the colour must not contradict it.\n if (row.status === 'sent' && row.trap) return 'warning'\n if (row.status === 'sent') return 'success'\n if (row.status === 'skipped') return 'warning'\n\n return 'default'\n}\n\nasync function unread(): Promise<void> {\n try {\n await api.massSubmissions({ ids: [id.value], action: 'unread' })\n // Straight back to the list: a submission marked unread and then left open is one the\n // next request would mark read again.\n void router.push(backTo.value)\n } catch (error) {\n toast.danger(message(error))\n }\n}\n\nasync function remove(): Promise<void> {\n const agreed = await confirm({\n title: t('panel.delete-submission-title'),\n message: t('panel.delete-submission-text'),\n confirmText: t('panel.delete'),\n cancelText: t('panel.cancel'),\n tone: 'danger',\n })\n\n if (!agreed) return\n\n try {\n await api.removeSubmission(id.value)\n toast.success(t('panel.deleted'))\n void router.push(backTo.value)\n } catch (error) {\n toast.danger(message(error))\n }\n}\n\nfunction go(to: number | null): void {\n if (to === null) return\n\n void router.push({ path: `${props.base}/submissions/${to}`, query: { ...route.query } })\n}\n\n/**\n * A status the log names, in the words the panel calls it by.\n *\n * The log stores the key on purpose — read months later, the row it pointed at may have been\n * renamed or deleted, and history must not be rewritten by either. So the key is translated\n * where the panel still has that status, and shown as it stands where it does not: `spam` is\n * a poorer line than \"Спам\", and an invented one would be worse than both.\n */\nfunction statusName(key: string): string {\n const status = statuses.value.find((one) => one.key === key)\n\n return status === undefined ? key : name(status)\n}\n\nconst namesNobody = computed(\n () => submission.value?.events?.some((event) => event.type === 'no_recipients') ?? false,\n)\n\n/** One line of the log, in words rather than as a pair of columns. */\nfunction line(event: SubmissionEvent): string {\n switch (event.type) {\n case 'created':\n return t('panel.event-created')\n case 'status':\n return t('panel.event-status', { to: statusName(event.to ?? '') })\n case 'assignee':\n return event.to === null || event.to === ''\n ? t('panel.event-unassigned')\n : t('panel.event-assignee', { to: event.to })\n case 'note':\n return t('panel.event-note')\n case 'notified':\n return t('panel.event-notified')\n // A handler of `webx-inbox.handlers`: `from` is its class, shown by its own short name.\n case 'handled':\n return t('panel.event-handled', { name: handlerName(event.from) })\n case 'handler_error':\n return t('panel.event-handler-error', {\n name: handlerName(event.from),\n error: event.to ?? '',\n })\n case 'no_recipients':\n return t('panel.event-no-recipients')\n case 'notify_queued':\n return t('panel.event-notify-queued')\n case 'notify_failed':\n return t('panel.event-notify-failed', { to: event.to ?? '' })\n // An answer corrected by hand: named by the label it was asked under, when it still has one.\n case 'value':\n return t('panel.event-value', {\n field: answerLabel(event.field ?? ''),\n from: event.from ?? '',\n to: event.to ?? '',\n })\n default:\n return event.type\n }\n}\n\nfunction answerLabel(name: string): string {\n const answer = submission.value?.values.find((value) => value.name === name)\n\n return answer?.label || name\n}\n\nfunction handlerName(name: string | null): string {\n return (name ?? '').split('\\\\').pop() ?? ''\n}\n\nfunction kilobytes(size: number): string {\n return `${Math.max(1, Math.round(size / 1024))} KB`\n}\n\n/** The metadata worth showing, in the order somebody reads it, with the empty ones left out. */\nconst details = computed(() => {\n const meta = submission.value?.meta ?? {}\n\n const rows: { label: string; value: string; link?: boolean }[] = []\n\n if (typeof meta.page === 'string' && meta.page !== '') {\n rows.push({ label: t('panel.meta-page'), value: meta.page, link: true })\n }\n\n // Where on that page the form stood — the footer, an article — beside the page it answers.\n const placement = submission.value?.placement\n if (typeof placement === 'string' && placement !== '') {\n rows.push({ label: t('panel.meta-placement'), value: placement })\n }\n\n if (typeof meta.referrer === 'string' && meta.referrer !== '') {\n rows.push({ label: t('panel.meta-referrer'), value: meta.referrer, link: true })\n }\n\n for (const [key, value] of Object.entries(meta.utm ?? {})) {\n rows.push({ label: key, value: String(value) })\n }\n\n if (typeof meta.locale === 'string' && meta.locale !== '') {\n rows.push({ label: t('panel.meta-locale'), value: meta.locale })\n }\n\n if (typeof meta.ip === 'string' && meta.ip !== '') {\n rows.push({ label: t('panel.meta-ip'), value: meta.ip })\n }\n\n if (typeof meta.user_agent === 'string' && meta.user_agent !== '') {\n rows.push({ label: t('panel.meta-agent'), value: meta.user_agent })\n }\n\n return rows\n})\n</script>\n\n<template>\n <div class=\"wx-submission\">\n <wx-screen-head :title=\"heading\" :subtitle=\"formTitle\" :back=\"backTo\" :actions=\"actions\">\n <!--\n The same pile the reader was looking at, one step at a time. Not an action with a word\n on it, so not something the head can fold into a menu: an arrow with nowhere to go is\n disabled rather than hidden, because a control that changes shape at the ends is one\n that moves under the hand.\n -->\n <template #extra>\n <wx-action\n icon=\"chevron-left\"\n size=\"lg\"\n :title=\"t('panel.previous')\"\n :disabled=\"!submission?.previous_id\"\n @click=\"go(submission?.previous_id ?? null)\"\n />\n <wx-action\n icon=\"chevron-right\"\n size=\"lg\"\n :title=\"t('panel.next')\"\n :disabled=\"!submission?.next_id\"\n @click=\"go(submission?.next_id ?? null)\"\n />\n </template>\n </wx-screen-head>\n\n <wx-skeleton v-if=\"loading\" :rows=\"6\" />\n\n <div v-else-if=\"submission\" class=\"wx-submission__panes\">\n <div class=\"wx-submission__main\">\n <wx-card :title=\"t('panel.answers')\">\n <wx-empty\n v-if=\"submission.values.length === 0\"\n size=\"sm\"\n :description=\"t('panel.no-answers')\"\n />\n <!-- The labels are the snapshot written when it arrived, never the field's current\n words: a submission from a year ago has to read as it did (§2.2). -->\n <wx-descriptions v-else :columns=\"1\" layout=\"vertical\">\n <wx-descriptions-item\n v-for=\"value in submission.values\"\n :key=\"value.id\"\n :label=\"value.label ?? value.name\"\n >\n <component\n :is=\"enclosureView(value)\"\n v-if=\"enclosureView(value)\"\n :payload=\"value.payload\"\n :value=\"value.value\"\n />\n <p\n v-else\n :class=\"['wx-submission__value', { 'is-enclosure': value.type === 'enclosure' }]\"\n >\n {{ value.value || '—' }}\n </p>\n </wx-descriptions-item>\n </wx-descriptions>\n </wx-card>\n\n <wx-card v-if=\"submission.files.length > 0\" :title=\"t('panel.attachments')\">\n <div class=\"wx-submission__files\">\n <!-- Through the panel and not from the disk: the bytes are behind the same\n permission as the submission, for as long as the reader has it (§8). -->\n <wx-file-card\n v-for=\"file in submission.files\"\n :key=\"file.id\"\n :name=\"file.name\"\n :type=\"file.mime ?? undefined\"\n :download-url=\"file.url\"\n :download-label=\"t('panel.download')\"\n size=\"sm\"\n >\n <template #meta>{{ kilobytes(file.size) }}</template>\n </wx-file-card>\n </div>\n </wx-card>\n\n <!--\n Everything about the submission rather than in it, behind one strip.\n\n Three cards stacked down a column is three headings to read past before the eye gets\n to the one that was wanted, and on a phone it is three screens of scrolling. They are\n not read together — a note is written while replying, the log is opened when\n something looks wrong, the metadata once — so only one of them is ever the answer.\n Pills rather than a line, and inside the card rather than over it: this is one card\n changing its contents, not a place in the panel that can be navigated to. The strip is\n the card's heading — which is why there is no other one.\n -->\n <wx-alert\n v-if=\"channelsFailed\"\n type=\"warning\"\n :closable=\"false\"\n :title=\"t('panel.channels-failed')\"\n />\n\n <wx-card class=\"wx-submission__more\">\n <wx-tabs variant=\"pill\" :aria-label=\"heading\">\n <wx-tab value=\"notes\" :label=\"panel('notes.title')\">\n <!-- The feed is the panel's own, not this module's: the same one will hang off\n an order and a client (§2.17). Its heading is the tab. -->\n <wx-notes\n :id=\"submission.id\"\n type=\"inbox_submission\"\n title=\"\"\n :can=\"canUpdate\"\n @change=\"load\"\n />\n </wx-tab>\n\n <wx-tab value=\"log\" :label=\"t('panel.log')\">\n <wx-timeline size=\"sm\">\n <wx-timeline-item v-for=\"event in submission.events\" :key=\"event.id\">\n <!-- What happened on one line and who did it when on the next: three inline\n pieces in a row run into each other, and a log is read down. -->\n <wx-text size=\"sm\" as=\"p\" class=\"wx-submission__event\">{{ line(event) }}</wx-text>\n <p class=\"wx-submission__by\">\n <wx-text size=\"sm\" tone=\"muted\">\n {{ event.author?.name ?? t('panel.system') }}\n </wx-text>\n <wx-date :value=\"event.created_at\" />\n </p>\n </wx-timeline-item>\n </wx-timeline>\n </wx-tab>\n\n <wx-tab value=\"details\" :label=\"t('panel.details')\">\n <div class=\"wx-submission__fields\">\n <wx-descriptions :columns=\"1\" layout=\"vertical\" size=\"sm\">\n <wx-descriptions-item :label=\"t('panel.received')\">\n <wx-date :value=\"submission.created_at\" tone=\"default\" />\n </wx-descriptions-item>\n <wx-descriptions-item :label=\"t('panel.meta-source')\">\n <wx-badge :type=\"submission.source === 'panel' ? 'info' : 'default'\">\n {{\n submission.source === 'panel'\n ? t('panel.source-panel')\n : t('panel.source-web')\n }}\n </wx-badge>\n </wx-descriptions-item>\n <wx-descriptions-item v-for=\"row in details\" :key=\"row.label\" :label=\"row.label\">\n <a v-if=\"row.link\" :href=\"row.value\" target=\"_blank\" rel=\"noreferrer\">{{\n row.value\n }}</a>\n <span v-else class=\"wx-submission__detail\">{{ row.value }}</span>\n </wx-descriptions-item>\n\n <!-- One more pair rather than a block of its own: whether anybody was told is a\n fact about the submission like the rest, and it keeps their rhythm.\n An unsent notification is a mark on the submission, not a lost one\n (§2.10). Queued is not sent: on a site with a queue a worker sends it,\n and a worker can be missing or hold old mail settings (§9). -->\n <wx-descriptions-item :label=\"t('panel.tab-notifications')\">\n <div class=\"wx-submission__notification\">\n <wx-alert\n v-if=\"notification?.state === 'failed'\"\n type=\"warning\"\n :closable=\"false\"\n :title=\"t('panel.notify-failed')\"\n >\n <span class=\"wx-submission__detail\">{{ notification.error }}</span>\n </wx-alert>\n <span v-else-if=\"notification?.state === 'queued'\">\n {{ t('panel.notify-queued') }}\n <!-- When it leaves: a queue the scheduler runs sends it a minute later. -->\n <wx-text\n v-if=\"notification.hint && !notification.stalled\"\n size=\"sm\"\n tone=\"muted\"\n as=\"span\"\n class=\"wx-submission__hint\"\n >\n {{ notification.hint }}\n </wx-text>\n </span>\n <span v-else-if=\"notification?.state === 'delivered'\">\n {{ t('panel.notified') }}\n </span>\n <!-- Nobody named is not a letter waiting in the queue, and says so. -->\n <span v-else-if=\"namesNobody\">{{ t('panel.notified-nobody') }}</span>\n <span v-else>{{ t('panel.not-notified') }}</span>\n\n <!-- Waiting longer than a working queue takes, or taken by a trap: the two\n ways a letter looks fine here and never arrives. -->\n <wx-alert\n v-for=\"warning in notification?.warnings ?? []\"\n :key=\"warning\"\n type=\"warning\"\n variant=\"soft\"\n :closable=\"false\"\n :description=\"warning\"\n />\n\n <ul\n v-if=\"notification && notification.recipients.length > 0\"\n class=\"wx-submission__recipients\"\n >\n <li v-for=\"one in notification.recipients\" :key=\"one.address\">\n <span class=\"wx-submission__detail\">{{ one.address }}</span>\n <wx-badge\n :type=\"\n one.state === 'failed'\n ? 'danger'\n : one.trap\n ? 'warning'\n : one.state === 'delivered'\n ? 'success'\n : 'default'\n \"\n >\n {{ recipientState(one.trap ? 'trapped' : one.state) }}\n </wx-badge>\n </li>\n </ul>\n\n <div\n v-if=\"\n canUpdate &&\n (notification?.state === 'failed' || notification?.state === 'queued')\n \"\n >\n <wx-button size=\"sm\" @click=\"notifyAgain\">{{\n t('panel.notify-again')\n }}</wx-button>\n </div>\n </div>\n </wx-descriptions-item>\n </wx-descriptions>\n </div>\n </wx-tab>\n <wx-tab v-if=\"channels\" value=\"channels\" :label=\"t('panel.channels')\">\n <div class=\"wx-submission__fields\">\n <wx-text v-if=\"channels.length === 0\" size=\"sm\" tone=\"muted\">\n {{ t('panel.channels-none') }}\n </wx-text>\n <ul v-else class=\"wx-submission__recipients\">\n <li v-for=\"row in channels\" :key=\"row.id\" class=\"wx-submission__channel\">\n <div class=\"wx-submission__channel-text\">\n <wx-text size=\"sm\">{{ row.channel }}</wx-text>\n <wx-text v-if=\"row.recipient !== ''\" size=\"sm\" tone=\"muted\">\n {{ row.recipient_label ?? row.recipient }}\n </wx-text>\n <wx-text\n v-if=\"row.error ?? row.reason_label\"\n size=\"sm\"\n tone=\"muted\"\n class=\"wx-submission__detail\"\n >\n {{ row.error ?? row.reason_label }}\n </wx-text>\n </div>\n <wx-badge :type=\"channelTone(row)\">{{ row.status_label }}</wx-badge>\n </li>\n </ul>\n\n <div v-if=\"canUpdate && channelsRetryable\">\n <wx-button size=\"sm\" @click=\"notifyAgain\">{{\n t('panel.notify-again')\n }}</wx-button>\n </div>\n </div>\n </wx-tab>\n </wx-tabs>\n </wx-card>\n </div>\n\n <aside class=\"wx-submission__aside\">\n <wx-card>\n <div class=\"wx-submission__fields\">\n <label class=\"wx-submission__field\">\n <wx-text size=\"sm\" tone=\"muted\">{{ t('panel.status') }}</wx-text>\n <wx-select\n :model-value=\"submission.status?.id ?? null\"\n :options=\"statusOptions\"\n :disabled=\"!canUpdate\"\n @update:model-value=\"onStatus\"\n />\n </label>\n\n <label class=\"wx-submission__field\">\n <wx-text size=\"sm\" tone=\"muted\">{{ t('panel.assignee') }}</wx-text>\n <wx-select\n :model-value=\"submission.assignee?.id ?? null\"\n :options=\"assigneeOptions\"\n :disabled=\"!canUpdate\"\n clearable\n :placeholder=\"t('panel.unassigned')\"\n @update:model-value=\"onAssignee\"\n />\n </label>\n </div>\n </wx-card>\n </aside>\n </div>\n </div>\n</template>\n\n<style scoped>\n.wx-submission {\n display: flex;\n flex-direction: column;\n /* The panel says how far apart things stand, and it says something different on a phone\n than on a desktop (8, 12, 16). Writing the desktop number here is what made this screen\n the one place in the panel with desktop air on a 375px screen. */\n gap: var(--wx-gap, var(--wx-space-16));\n min-width: 0;\n /* The panes below decide their own layout from the width of the screen rather than of the\n window: the panel has a sidebar, and the window knows nothing about it. */\n container-type: inline-size;\n}\n\n.wx-submission__panes {\n display: flex;\n flex-direction: column;\n gap: var(--wx-gap, var(--wx-space-16));\n min-width: 0;\n}\n\n.wx-submission__main,\n.wx-submission__aside {\n display: flex;\n flex-direction: column;\n gap: var(--wx-gap, var(--wx-space-16));\n min-width: 0;\n}\n\n/* The answers are what the screen is for, so they take the room; everything about the\n submission rather than in it stands beside them. */\n@container (min-width: 900px) {\n .wx-submission__panes {\n flex-direction: row;\n align-items: flex-start;\n }\n\n .wx-submission__main {\n flex: 1 1 auto;\n }\n\n .wx-submission__aside {\n flex: 0 0 320px;\n max-width: 320px;\n }\n}\n\n.wx-submission__value {\n margin: 0;\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n}\n\n/* An enclosure nobody draws reads as the letter does: its lines, kept in columns. */\n.wx-submission__value.is-enclosure {\n font-family: var(--wx-font-family-mono);\n font-size: var(--wx-font-size-sm);\n}\n\n.wx-submission__detail {\n overflow-wrap: anywhere;\n}\n\n.wx-submission__notification {\n display: flex;\n flex-direction: column;\n gap: var(--wx-space-8);\n}\n\n/* Under \"waiting\", on a line of its own: when the letter leaves is the answer to the next question. */\n.wx-submission__hint {\n display: block;\n}\n\n.wx-submission__recipients {\n display: flex;\n flex-direction: column;\n gap: var(--wx-space-4);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.wx-submission__recipients li {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: var(--wx-space-8);\n overflow-wrap: anywhere;\n}\n\n/* The channel, who it went to and why not on the left; the badge stays on the right. */\n.wx-submission__recipients li.wx-submission__channel {\n flex-wrap: nowrap;\n justify-content: space-between;\n align-items: flex-start;\n}\n\n.wx-submission__channel-text {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.wx-submission__event {\n margin: 0;\n}\n\n.wx-submission__by {\n display: flex;\n align-items: baseline;\n gap: var(--wx-space-6);\n flex-wrap: wrap;\n margin: 0;\n}\n\n.wx-submission__files {\n display: flex;\n flex-wrap: wrap;\n gap: var(--wx-space-8);\n}\n\n.wx-submission__fields {\n display: flex;\n flex-direction: column;\n gap: var(--wx-space-12);\n}\n\n.wx-submission__field {\n display: flex;\n flex-direction: column;\n gap: var(--wx-space-4);\n}\n</style>\n"],"names":["props","__props","context","useAdmin","api","createInboxApi","route","useRoute","router","useRouter","locales","useLocales","useInboxMessages","t","useTranslate","panel","message","useErrorText","submission","ref","statuses","admins","loading","canUpdate","computed","enclosureView","value","payload","kind","id","filter","backTo","statusOptions","status","name","assigneeOptions","admin","useStatusName","heading","formTitle","form","localizedValue","replyTo","mailto","subject","load","error","toast","lists","watch","save","input","onStatus","onAssignee","actions","list","unread","notifyAgain","remove","notification","recipientState","state","channels","channelsFailed","row","channelsRetryable","channelTone","confirm","go","to","statusName","key","one","namesNobody","event","line","handlerName","answerLabel","kilobytes","size","details","meta","rows","placement","_openBlock","_createElementBlock","_hoisted_1","_createVNode","_unref","WxScreenHead","WxAction","_cache","$event","_createBlock","WxSkeleton","_hoisted_2","_createElementVNode","_hoisted_3","WxCard","WxEmpty","WxDescriptions","_Fragment","_renderList","WxDescriptionsItem","_resolveDynamicComponent","_normalizeClass","_toDisplayString","_hoisted_4","file","WxFileCard","WxAlert","WxTabs","WxTab","WxNotes","WxTimeline","WxTimelineItem","WxText","_createTextVNode","_hoisted_5","WxDate","_hoisted_6","WxBadge","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","warning","_hoisted_15","_hoisted_16","_hoisted_17","WxButton","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","WxSelect","_hoisted_25"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAuDA,UAAMA,IAAQC,IAERC,IAAUC,GAAA,GACVC,IAAMC,GAAeH,CAAO,GAC5BI,IAAQC,GAAA,GACRC,IAASC,GAAA,GACTC,KAAUC,GAAA;AAChB,IAAAC,GAAA;AAEA,UAAMC,IAAIC,EAAa,YAAY,GAG7BC,KAAQD,EAAa,YAAY,GAEjCE,IAAUC,GAAA,GAEVC,IAAaC,EAA4B,IAAI,GAC7CC,IAAWD,EAAmB,EAAE,GAChCE,IAASF,EAAsB,EAAE,GACjCG,IAAUH,EAAI,EAAI,GAElBI,IAAYC,EAAS,MAAMtB,EAAQ,IAAI,cAAc,CAAC;AAO5D,aAASuB,EAAcC,GAA0C;AAC/D,UAAIA,EA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