// SPDX-License-Identifier: AGPL-3.0-only
// Copyright (c) 2026 sol pbc

(function () {
  window.CONVEY_COPY = Object.freeze({
    RELOAD_HINT: "reload to try again.",
    UNKNOWN_ERROR: "something went wrong and i don't have a reason for it. reload to try again.",
    LOG_READ_FAILED: "i couldn't read that log. reload to try again.",
    ACTION_RECONNECT: "reconnect",
    ACTION_RESTART: "restart",
    CONSOLE_HEADING: "system messages",
    CONSOLE_EMPTY: "I haven't seen any system messages this session.",
    CONSOLE_TAB_ALL: "all",
    CONSOLE_TAB_ERRORS: "errors",
    CONSOLE_TAB_WARNINGS: "warnings",
    CONSOLE_TAB_INFO: "info",
    CONSOLE_LINK_LABEL: "system messages",
    CONSOLE_ACTION_SEND: "send",
    CONSOLE_ACTION_SEND_ALL: "send all",
    CONSOLE_ACTION_CLEAR: "clear",
    CONSOLE_ACTION_SHOW_DETAILS: "show details",
    CONSOLE_ACTION_CLOSE: "close",
    CONSOLE_REPORTING_OFF: "I can show these messages, but sending reports is off.",
    CONSOLE_SNAPSHOT_HEADING: "snapshot of {count} system messages",
    CONSOLE_REPORT_HEADING: "Last {count} console entries:",
    CONSOLE_TRUNCATED: "[older entries truncated]",
    CONSOLE_DETAIL_MESSAGE_LABEL: "message",
    CONSOLE_DETAIL_STACK_LABEL: "stack",
    CONSOLE_DETAIL_LOCATION_LABEL: "location",
    REPORT_TITLE: "I can send this report to sol pbc",
    REPORT_DEFAULT_SUBJECT: "convey error",
    REPORT_SUBJECT_LABEL: "subject",
    REPORT_DETAIL_LABEL: "what happened",
    REPORT_DETAIL_PLACEHOLDER: "anything else worth knowing? (optional)",
    REPORT_SEVERITY_LABEL: "severity",
    REPORT_SEVERITY_LOW: "low",
    REPORT_SEVERITY_MEDIUM: "medium",
    REPORT_SEVERITY_HIGH: "high",
    REPORT_ANONYMOUS_LABEL: "submit anonymously",
    REPORT_DIAGNOSTIC_SUMMARY: "diagnostic context",
    REPORT_DIAGNOSTIC_FOOTER: "(System snapshot bundled server-side via support_create's auto_context=true path.)",
    REPORT_DIAGNOSTIC_HTTP_STATUS_LABEL: "HTTP status",
    REPORT_DIAGNOSTIC_STATUS_TEXT_LABEL: "Status text",
    REPORT_DIAGNOSTIC_REQUEST_URL_LABEL: "Request URL",
    REPORT_DIAGNOSTIC_SERVER_REASON_LABEL: "Server reason",
    REPORT_DIAGNOSTIC_CORRELATION_ID_LABEL: "Correlation ID",
    REPORT_DIAGNOSTIC_REASON_CODE_LABEL: "reason code",
    REPORT_DIAGNOSTIC_TIME_LABEL: "time",
    REPORT_DIAGNOSTIC_RAW_DETAIL_LABEL: "Raw detail",
    REPORT_DIAGNOSTIC_CONSOLE_HEADING: "Last 5 console entries:",
    REPORT_NO_CONSOLE: "(no console entries captured yet)",
    REPORT_ACTION_SEND: "send report",
    REPORT_ACTION_SENDING: "sending…",
    REPORT_ACTION_CANCEL: "cancel",
    REPORT_ACTION_CLOSE: "close",
    REPORT_ACTION_OPEN_EMAIL: "open email draft",
    REPORT_ACTION_VIEW_TICKET: "view ticket",
    REPORT_SUCCESS_BODY: "i sent your report. reference #{ticket_id}.",
    REPORT_SUCCESS_BODY_NO_ID: "I sent your report.",
    REPORT_FALLBACK_HEADLINE: "I couldn't reach support",
    REPORT_FALLBACK_BODY: "here's your report. paste it in an email.",
    REPORT_FAILURE_HTTP_PREFIX: "HTTP",
    REPORT_FAILURE_REFERENCE_PREFIX: "reference",
    REPORT_MAILTO_BODY_PREFIX: "I couldn't send this through convey, so here's the report.\n\n",
    REPORT_MAILTO_TRUNCATION_SUFFIX: "\n\n[full report is in your clipboard]\n",
    REPORT_BUTTON_LABEL: "report this",
  });
})();
