// Build-time constants injected by esbuild define in build.js.
// These globals are replaced at bundle time with string literals.

/* global __BUILD_VERSION__, __BUILD_LICENSE__, __BUILD_AUTHOR__,
          __BUILD_COMMIT__, __BUILD_COMMIT_FULL__, __BUILD_DATE__ */

const BUILD_VERSION =
    typeof __BUILD_VERSION__ !== "undefined" ? __BUILD_VERSION__ : "dev";
const BUILD_LICENSE =
    typeof __BUILD_LICENSE__ !== "undefined" ? __BUILD_LICENSE__ : "GPL-3.0";
const BUILD_AUTHOR =
    typeof __BUILD_AUTHOR__ !== "undefined"
        ? __BUILD_AUTHOR__
        : "sneak <sneak@sneak.berlin>";
const BUILD_COMMIT =
    typeof __BUILD_COMMIT__ !== "undefined" ? __BUILD_COMMIT__ : "unknown";
const BUILD_COMMIT_FULL =
    typeof __BUILD_COMMIT_FULL__ !== "undefined"
        ? __BUILD_COMMIT_FULL__
        : "unknown";
const BUILD_DATE =
    typeof __BUILD_DATE__ !== "undefined" ? __BUILD_DATE__ : "unknown";

const GITEA_COMMIT_URL =
    "https://git.eeqj.de/sneak/AutistMask/commit/" + BUILD_COMMIT_FULL;

module.exports = {
    BUILD_VERSION,
    BUILD_LICENSE,
    BUILD_AUTHOR,
    BUILD_COMMIT,
    BUILD_COMMIT_FULL,
    BUILD_DATE,
    GITEA_COMMIT_URL,
};
