<?php

/*
 | --------------------------------------------------------------------
 | App Namespace
 | --------------------------------------------------------------------
 |
 | This defines the default Namespace that is used throughout
 | CodeIgniter to refer to the Application directory. Change
 | this constant to change the namespace that all application
 | classes should use.
 |
 | NOTE: changing this will require manually modifying the
 | existing namespaces of App\* namespaced-classes.
 */
defined('APP_NAMESPACE') || define('APP_NAMESPACE', 'App');

/*
 | --------------------------------------------------------------------------
 | Composer Path
 | --------------------------------------------------------------------------
 |
 | The path that Composer's autoload file is expected to live. By default,
 | the vendor folder is in the Root directory, but you can customize that here.
 */
defined('COMPOSER_PATH') || define('COMPOSER_PATH', ROOTPATH . 'vendor/autoload.php');

/*
 |--------------------------------------------------------------------------
 | Timing Constants
 |--------------------------------------------------------------------------
 |
 | Provide simple ways to work with the myriad of PHP functions that
 | require information to be in seconds.
 */
defined('SECOND') || define('SECOND', 1);
defined('MINUTE') || define('MINUTE', 60);
defined('HOUR')   || define('HOUR', 3600);
defined('DAY')    || define('DAY', 86400);
defined('WEEK')   || define('WEEK', 604800);
defined('MONTH')  || define('MONTH', 2_592_000);
defined('YEAR')   || define('YEAR', 31_536_000);
defined('DECADE') || define('DECADE', 315_360_000);

/*
 | --------------------------------------------------------------------------
 | Exit Status Codes
 | --------------------------------------------------------------------------
 |
 | Used to indicate the conditions under which the script is exit()ing.
 | While there is no universal standard for error codes, there are some
 | broad conventions.  Three such conventions are mentioned below, for
 | those who wish to make use of them.  The CodeIgniter defaults were
 | chosen for the least overlap with these conventions, while still
 | leaving room for others to be defined in future versions and user
 | applications.
 |
 | The three main conventions used for determining exit status codes
 | are as follows:
 |
 |    Standard C/C++ Library (stdlibc):
 |       http://www.gnu.org/software/libc/manual/html_node/Exit-Status.html
 |       (This link also contains other GNU-specific conventions)
 |    BSD sysexits.h:
 |       http://www.gsp.com/cgi-bin/man.cgi?section=3&topic=sysexits
 |    Bash scripting:
 |       http://tldp.org/LDP/abs/html/exitcodes.html
 |
 */
defined('EXIT_SUCCESS')        || define('EXIT_SUCCESS', 0);        // no errors
defined('EXIT_ERROR')          || define('EXIT_ERROR', 1);          // generic error
defined('EXIT_CONFIG')         || define('EXIT_CONFIG', 3);         // configuration error
defined('EXIT_UNKNOWN_FILE')   || define('EXIT_UNKNOWN_FILE', 4);   // file not found
defined('EXIT_UNKNOWN_CLASS')  || define('EXIT_UNKNOWN_CLASS', 5);  // unknown class
defined('EXIT_UNKNOWN_METHOD') || define('EXIT_UNKNOWN_METHOD', 6); // unknown class member
defined('EXIT_USER_INPUT')     || define('EXIT_USER_INPUT', 7);     // invalid user input
defined('EXIT_DATABASE')       || define('EXIT_DATABASE', 8);       // database error
defined('EXIT__AUTO_MIN')      || define('EXIT__AUTO_MIN', 9);      // lowest automatically-assigned error code
defined('EXIT__AUTO_MAX')      || define('EXIT__AUTO_MAX', 125);    // highest automatically-assigned error code

/**
 * @deprecated Use \CodeIgniter\Events\Events::PRIORITY_LOW instead.
 */
define('EVENT_PRIORITY_LOW', 200);

/**
 * @deprecated Use \CodeIgniter\Events\Events::PRIORITY_NORMAL instead.
 */
define('EVENT_PRIORITY_NORMAL', 100);

/**
 * @deprecated Use \CodeIgniter\Events\Events::PRIORITY_HIGH instead.
 */
define('EVENT_PRIORITY_HIGH', 10);

defined('ORGANIZACION_FORMULARIO_ID')      || define('ORGANIZACION_FORMULARIO_ID', 1); 
define('FORMIO_TRADUCCION','{
"Signature":"Firma",
"Add/Remove":"Agregar/Eliminar",
"Drop files to attach,":"Suelte los archivos para adjuntar",
"Browse to attach file for":"para",
"Allowd file types:":"Tipos de archivos permitidos",
"Maximum file size":"Tamaño máximo de archivo",
"Maximum number of files":"Número máximo de archivos",
"File":"Archivo",
"Survey":"Encuesta",
"numeric only":"solo números",
"cancel":"cancelar",
"submit":"enviar",
"next":"siguiente",
"previous":"anterior",
"Select Boxes":"Cajas de selección",
"Radio":"Alternativa",
"HTML Element":"Elemento HTML",
"Content":"Contenido",
"Panel":"Panel",
"Table":"Tabla",
"Well":"Well",
"Hidden":"Oculto",
"Container":"Contenedor",
"Search field(s)": "Buscar campos",
     "January": "Enero",
  "February": "Febrero",
  "March": "Marzo",
  "April": "Abril",
  "May": "Mayo",
  "June": "Junio",
  "July": "Julio",
  "August": "Agosto",
  "September": "Septiembre",
  "October": "Octubre",
  "November": "Noviembre",
  "December": "Diciembre",
    "Basic":"Básico",
    "Data":"Datos",
    "Drag and Drop a form component":"Arrastra y suelta un componente",
    "Move":"Mover",
    "Edit JSON":"Editar JSON",
    "Copy":"Copiar",
    "Preview":"Vista previa",
    "Hide preview":"Esconder vista previa",
    "Help":"Ayuda",
    "Full Schema":"Esquema completo",
    "Component JSON":"Componente JSON",
    "Button":"Botón",
    "Type":"Tipo",
    "minLength":"Largo mínimo de {{min}} caracteres",
    "Type to search":"Escribe para hablar",
    "drop files to attach":"Arrastra archivos para adjuntar",
    "invalid_email":"Formato correo electrónico inválido",
    "Premium":"Otros",
        "Submit": "Enviar",
        "Cancel": "Cancelar",
        "Next": "Siguiente",
        "Previous": "Anterior",
        "Complete": "Completado",
        "This field is required.": "Este campo es obligatorio.",
        "Please enter a valid email address.": "Por favor, ingresa una dirección de correo electrónico válida.",
        "Please enter a value": "Por favor, ingrese un valor",
        "Minimum Length": "Longitud mínima",
        "Maximum Length": "Longitud máxima",
        "Text Field": "Campo de texto",
        "Number": "Número",
        "Checkbox": "Casilla de verificación",
        "Date / Time": "Fecha / Hora",
        "Email": "Correo electrónico",
        "File": "Archivo",
        "Select": "Seleccionar",
        "Day": "Día",
        "Time": "Hora",
        "Month":"Mes",
        "Year":"Año",
        "Press Enter to add":"Presiona Enter para agregar",
        "URL": "URL",
        "Currency": "Moneda",
        "Phone Number": "Número de teléfono",
        "Tags": "Etiquetas",
        "Address": "Dirección",
        "Edit": "Editar",
        "Save": "Guardar",
        "Remove": "Eliminar",
        "Back": "Atrás",
        "Advanced": "Avanzado",
        "Conditional": "Condicional",
        "Validation": "Validación",
        "API": "API",
        "Layout": "Diseño",
        "Logic": "Lógica",
        "Action": "Acción",
        "Components": "Componentes",
        "Component": "Componente",
        "Label": "Etiqueta",
        "Placeholder": "Marcador de posición",
        "Tooltip": "Descripción emergente",
        "Description": "Descripción",
        "Prefix": "Prefijo",
        "Suffix": "Sufijo",
        "Required": "Requerido",
        "required":"requerido",
        "File Name":"Nombre del archivo",
        "Size":"Tamaño",
        "Drop files to attach":"Arrastra archivos para adjuntar",
        "Browse Files":"Buscar archivos",
        "Unique": "Único",
        "Custom": "Personalizado",
        "Multiple Values": "Múltiples valores",
        "Default Value": "Valor por defecto",
        "Widget": "Widget",
        "Input Mask": "Máscara de entrada",
        "Add Another": "Agregar otro",
        "Add New": "Agregar nuevo",
        "Clear Value": "Limpiar valor",
        "Yes": "Sí",
        "No": "No",
        "Rows": "Filas",
        "Columns": "Columnas",
        "Add Row": "Agregar fila",
        "Remove Row": "Eliminar fila",
  "is required": "es requerido",
  "Please enter a value": "Por favor ingrese un valor",
  "Please enter a valid email address": "Por favor ingrese un correo electrónico válido",
  "Please enter a valid URL": "Por favor ingrese una URL válida",
  "Please enter a valid date": "Por favor ingrese una fecha válida",
  "Please enter a valid time": "Por favor ingrese una hora válida",
  "Please enter a valid number": "Por favor ingrese un número válido",
  "Please enter only digits": "Por favor ingrese solo dígitos",
  "Please enter a value between {{min}} and {{max}}": "Por favor ingrese un valor entre {{min}} y {{max}}",
  "Please enter a value less than or equal to {{max}}": "Por favor ingrese un valor menor o igual a {{max}}",
  "Please enter a value greater than or equal to {{min}}": "Por favor ingrese un valor mayor o igual a {{min}}",
  "Please enter no more than {{max}} characters": "Por favor no ingrese más de {{max}} caracteres",
  "Please enter at least {{min}} characters": "Por favor ingrese al menos {{min}} caracteres",
  "Please match the requested format": "Por favor coincida con el formato solicitado",
  "The minimum length is {{length}}": "La longitud mínima es {{length}}",
  "The maximum length is {{length}}": "La longitud máxima es {{length}}",
  "You must enter at least {{min}} items": "Debe ingresar al menos {{min}} elementos",
  "You may not enter more than {{max}} items": "No puede ingresar más de {{max}} elementos",
  "You can only select up to {{max}} items": "Solo puede seleccionar hasta {{max}} elementos",
  "You must select at least {{min}} items": "Debe seleccionar al menos {{min}} elementos",
  "Field cannot be greater than {{max}}": "El campo no puede ser mayor que {{max}}",
  "Field cannot be less than {{min}}": "El campo no puede ser menor que {{min}}",
  "Field is not a valid number": "El campo no es un número válido",
  "Field is invalid": "El campo no es válido",
  "Invalid date": "Fecha inválida",
  "Invalid time": "Hora inválida",
  "The field must match the pattern {{pattern}}": "El campo debe coincidir con el patrón {{pattern}}"
}');


defined('ESTADOS_RESPUESTA')      || define('ESTADOS_RESPUESTA',[
    ["estado"=>"pendiente","titulo"=>"Pendiente","class"=>"bg-warning text-dark","color"=>"warning"],
    ["estado"=>"aprobado","titulo"=>"Aprobado","class"=>"bg-success","color"=>"success"],
    ["estado"=>"rechazado","titulo"=>"Rechazado","class"=>"bg-danger","color"=>"danger"],
    ["estado"=>"resuelto","titulo"=>"Resuelto","class"=>"bg-success","color"=>"success"],
    ["estado"=>"anulado","titulo"=>"Anulado","class"=>"bg-danger","color"=>"danger"],
    ["estado"=>"terminado","titulo"=>"Terminado","class"=>"bg-primary","color"=>"primary"],
]);

defined('TIPO_DERIVACION_MODULOS')     || define('TIPO_DERIVACION_MODULOS', array(
    ["name"=>"Derivar al mismo usuario","value"=>'usuario_creador'],
    ["name"=>"Derivar al jefe directo del usuario","value"=>'jefe_directo'],
    ["name"=>"Derivar a un usuario específico","value"=>'usuario_especifico'],
    ["name"=>"Derivar a un perfil específico (todos los usuarios)","value"=>'perfil_especifico'],
));


defined('CARGOS')     || define('CARGOS', ['ADMIN','PRESIDENTE','TESORERO','SECRETARIA','FUNCIONARIO','COLABORADOR','EXTERNOS']);

defined('TIPO_ARCHIVO') || define('TIPO_ARCHIVO', ['Acta', 'Notificacion', 'Otro']);
