"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
function _export(target, all) {
    for(var name in all)Object.defineProperty(target, name, {
        enumerable: true,
        get: Object.getOwnPropertyDescriptor(all, name).get
    });
}
_export(exports, {
    get credentialSettingsKey () {
        return credentialSettingsKey;
    },
    get frontendSettingKey () {
        return frontendSettingKey;
    },
    get getDefaultCredentialSettings () {
        return getDefaultCredentialSettings;
    },
    get getDefaultFrontendSettings () {
        return getDefaultFrontendSettings;
    },
    get getDefaultServerSettings () {
        return getDefaultServerSettings;
    },
    get getDefaultSettings () {
        return getDefaultSettings;
    },
    get getDefaultTimeout () {
        return getDefaultTimeout;
    },
    get getDefaultWizardSettings () {
        return getDefaultWizardSettings;
    },
    get serverSettingsKey () {
        return serverSettingsKey;
    },
    get timeoutSettingKey () {
        return timeoutSettingKey;
    },
    get wizardSettingKey () {
        return wizardSettingKey;
    }
});
const _serverconstants = require("../server.constants");
const _uuid = require("uuid");
const wizardSettingKey = "wizard";
const getDefaultWizardSettings = ()=>({
        wizardCompleted: false,
        wizardCompletedAt: null,
        wizardVersion: 0
    });
const serverSettingsKey = "server";
const getDefaultServerSettings = ()=>({
        sentryDiagnosticsEnabled: false,
        loginRequired: true,
        registration: false,
        experimentalMoonrakerSupport: false,
        experimentalBambuSupport: false,
        experimentalPrusaLinkSupport: false
    });
const credentialSettingsKey = "credentials";
const getDefaultCredentialSettings = ()=>({
        jwtExpiresIn: _serverconstants.AppConstants.DEFAULT_JWT_EXPIRES_IN,
        refreshTokenAttempts: _serverconstants.AppConstants.DEFAULT_REFRESH_TOKEN_ATTEMPTS,
        refreshTokenExpiry: _serverconstants.AppConstants.DEFAULT_REFRESH_TOKEN_EXPIRY,
        slicerApiKey: null
    });
const frontendSettingKey = "frontend";
const getDefaultFrontendSettings = ()=>({
        gridCols: 4,
        gridRows: 2,
        largeTiles: false,
        tilePreferCancelOverQuickStop: false,
        gridNameSortDirection: 'horizontal'
    });
const timeoutSettingKey = "timeout";
const getDefaultTimeout = ()=>({
        apiTimeout: 10000,
        apiUploadTimeout: 30000
    });
const getDefaultSettings = ()=>({
        [serverSettingsKey]: getDefaultServerSettings(),
        [wizardSettingKey]: getDefaultWizardSettings(),
        [credentialSettingsKey]: {
            ...getDefaultCredentialSettings(),
            jwtSecret: (0, _uuid.v4)()
        },
        [frontendSettingKey]: getDefaultFrontendSettings(),
        [timeoutSettingKey]: getDefaultTimeout()
    });

//# sourceMappingURL=server-settings.constants.js.map