/* InfCloud configuration for Radicale */

// Configuración según documentación oficial de Radicale
// https://github.com/Kozea/Radicale/wiki/Client-InfCloud
var globalNetworkCheckSettings = {
  href: '${INFCLOUD_BASE_URL}/',
  timeOut: 90000,
  lockTimeOut: 10000,
  checkContentType: false,
  settingsAccount: false,
  delegation: true,
  additionalResources: [],
  hrefLabel: null,
  forceReadOnly: null,
  ignoreAlarms: false,
  backgroundCalendars: []
};

// Configuración de interfaz
var globalInterfaceLanguage = 'es_ES';
var globalInterfaceCustomLanguages = [];
var globalSortAlphabet = ' 0123456789AÁÀÂBCÇDEÉÈÊFGHIÍÌÎJKLMNOÓÒÔPQRSTUÚÙÛVWXYZaáàâbcçdeéèêfghiíìîjklmnoóòôpqrstuúùûvwxyz';
var globalSearchTransformAlphabet = 'AÁÀÂàáâBCÇcçDEÉÈÊeéèêFGHIÍÌÎiíìîJKLMNOÓÒÔoóòôPQRSTUÚÙÛuúùûVWXYZ';

// Configuración de calendario
var globalCalendarSelected = '';
var globalTodoCalendarSelected = '';
var globalActiveView = 'multiWeek';
var globalOpenFormMode = 'double';
var globalTodoListFilterSelected = ['filterAction', 'filterProgress', 'filterCompleted', 'filterCanceled'];
var globalActiveApp = null;
var globalTimeZone = 'Europe/Madrid';
var globalRewriteTimezoneComponent = true;
var globalRemoveUnknownTimezone = false;
var globalTimeZoneSupport = true;
var globalDisplayHiddenEvents = false;

// Configuración de sincronización
var globalBackgroundSync = true;
var globalEnableRefresh = true;
var globalEnableKbNavigation = true;
var globalSettingsType = '';
var globalCrossOrigin = null;
var globalVersionCheckURL = '';

// Configuración de vista
var globalPreloadedPrincipals = null;
var globalLoadedPrincipals = null;
var globalAvailableCalDAVCollections = [];
var globalAvailableCardDAVCollections = [];
var globalResourceCalDAVList = {};
var globalResourceCardDAVList = {};

// Configuración de autenticación
var globalUsername = '';
var globalPassword = '';
var globalUseJqueryAuth = false;
var globalSettingsAccount = false;  // Deshabilitar configuración automática
var globalUseCache = true;
var globalStoreLocalization = true;

// Configuración específica para Radicale
var globalCrossOrigin = true;
var globalUseCrossOrigin = true;

// Variables adicionales requeridas
var globalContactDataMinVisiblePercentage = 0.2;