var setting = new Array(); setting.siteRootUrl = "https://www.kinthia.com"; setting.socketioUrl = "https://www.kinthia.com:5000"; setting.urlRewriting = "1"; setting.currencySymbol = "$"; setting.languageCode = "es"; setting.lang = new Object(); setting.lang["javascriptConfig_today"] = "Hoy"; setting.lang["javascriptConfig_characters_left"] = "Caracteres restantes"; setting.lang["javascriptConfig_expert_availability_confirm"] = "¿Estás disponible?"; setting.lang["javascriptConfig_yes"] = "Sí"; setting.lang["javascriptConfig_timezone_has_been_changed"] = "Su zona horaria ha cambiado"; setting.lang["javascriptConfig_confirm"] = "No podrás revertirlo."; setting.lang["javascriptConfig_success"] = "Éxito"; setting.lang["Loading"] = "Cargando"; setting.lang["Loading..."] = "Cargando..."; setting.lang["Please enter your pseudo"] = "Introduzca su seudónimo"; setting.lang["Please enter your email"] = "Introduzca su dirección de correo electrónico"; setting.lang["Please confirm your email"] = "Confirme su dirección de correo electrónico"; setting.lang["Please enter password"] = "Introduzca la contraseña"; setting.lang["Please confirm your password"] = "Confirme su contraseña"; setting.lang["Please enter captcha code"] = "Introduzca el código captcha"; setting.lang["Your email must be in format - name@domain.com"] = "Su correo electrónico debe tener el formato - name@domain.com"; setting.lang["Your changes were saved"] = "Tus cambios se han guardado"; setting.lang["You just add to cart the next product"] = "Sólo tiene que añadir a la cesta el siguiente producto"; setting.lang["Your message was sent"] = "Su mensaje ha sido enviado"; setting.lang["Your comment was saved"] = "Tu comentario ha sido guardado"; setting.lang["New password was sent to your email"] = "Se ha enviado una nueva contraseña a su correo electrónico"; setting.lang["Wrong password"] = "Contraseña incorrecta"; setting.lang["Change email"] = "Cambiar correo electrónico"; setting.lang["Change password"] = "Cambiar contraseña"; setting.lang["This field is required"] = "Este campo es obligatorio"; setting.lang["New password changed"] = "Nueva contraseña cambiada"; setting.lang["Thank you, we are processing your payment"] = "Gracias, estamos procesando su pago"; setting.lang["Please enter a correct date, needed format is dd/mm/YYYY"] = "Por favor, introduzca una fecha correcta, el formato necesario es dd/mm/AAAA"; setting.lang["Please enter a subject"] = "Indique el asunto de su solicitud"; setting.lang["Please enter a description"] = "Describa su solicitud"; setting.lang["Refund request sended"] = "Su solicitud de reembolso se ha enviado correctamente."; setting.lang["Your password changed"] = "Su contraseña ha sido cambiada con éxito. Ya puede iniciar sesión con su nueva contraseña."; setting.lang["File"] = "Archivo"; setting.lang["was uploaded sucessfully"] = "se ha cargado correctamente"; setting.lang["of"] = "de"; setting.lang["available photos uploaded"] = "fotos disponibles cargadas"; setting.lang["Passwords aren't equal"] = "Las contraseñas no son iguales"; setting.lang["Emails aren't equal"] = "Los correos electrónicos no son iguales"; setting.lang["Email was used earlier"] = ""; setting.lang["Expert Cancel Request"] = "El experto ha cancelado su solicitud de consulta."; setting.lang["Expert is not online"] = "El experto no está disponible"; setting.lang["User cancel request"] = "El usuario ha cancelado su solicitud de consulta."; setting.lang["Maintenance Mode"] = "Modo de mantenimiento"; setting.lang["You have cancel the request"] = "Ha cancelado su solicitud de consulta"; setting.lang["Request sent to expert, please wait for response"] = "Solicitud de consulta enviada al experto, por favor espere..."; setting.lang["User is not online"] = "El usuario no está conectado."; setting.lang["Please wait for response from user"] = "Solicitud de consulta enviada al usuario, por favor espere..."; setting.lang["javascript_start_typing"] = "[user] está escribiendo"; setting.lang["Server is down"] = "El servidor no responde"; setting.lang["Sorry, the expert you wish to consult could not answer. You can try again later or choose another expert"] = "Lo sentimos, el experto que desea consultar no puede asistir. Puede volver a intentarlo más tarde o elegir otro experto."; setting.lang["In consultation since"] = "En consulta para: "; setting.lang["Verify that you are human."] = "Comprueba que eres humano."; setting.lang["Loading challenge..."] = "Cargando desafío..."; setting.lang["Select the image displayed the least amount of times"] = "Seleccione la imagen mostrada el menor número de veces"; setting.lang["Verification complete."] = "Verificación completa."; setting.lang["Uh oh."] = "Uh oh."; setting.lang["You've selected the wrong image."] = "Has seleccionado la imagen equivocada."; setting.lang["Please wait."] = "Por favor, espere."; setting.lang["You made too many incorrect selections."] = "Has hecho demasiadas selecciones incorrectas."; setting.lang["Delete favorite"] = "Borrar favorito"; setting.lang["Make favoris"] = "Hacer favorito"; setting.lang["No More Reviews"] = "No más revisiones"; setting.lang["Start consultation"] = "Iniciar consulta"; setting.lang["Buy a time pack"] = "Comprar un paquete de créditos"; setting.lang["Are you sure?"] = "¿Seguro?"; setting.lang["Be alerted to the expert presence"] = "Ser alertado de la presencia del experto"; setting.lang["Not supporting in browser"] = "No compatible con el navegador"; setting.lang["Denided in browser"] = "Denegado en navegador"; setting.lang["Not yet a member?"] = "¿Aún no es miembro?"; setting.lang["Invalid credentials"] = "Credenciales no válidas"; setting.lang["email sent for reinitialization"] = "Se le acaba de enviar un correo electrónico con un enlace para restablecer su contraseña."; setting.lang["New email changed"] = "Su dirección de correo electrónico ha sido modificada correctamente"; setting.lang["Your question has been saved"] = "Tu pregunta ha sido guardada y enviada al experto."; setting.lang["Ask a question"] = "Formule su pregunta"; setting.lang["Please enter your question"] = "Introduzca su pregunta"; setting.lang["question must be at least 10 characters long"] = "La pregunta debe tener al menos 10 caracteres"; setting.lang["Please change Rating"] = "Seleccione una nota"; setting.lang["Your review must be at least 50 characters long"] = "Su comentario debe tener al menos 50 caracteres"; setting.lang["You will be redirected in 5 seconds to the homepage"] = "Será redirigido en 5 segundos a la página de inicio"; setting.lang["Consultation refused"] = "Consulta denegada"; setting.lang["activated"] = "Activado!"; setting.lang["deactivated"] = "Desactivado!"; setting.lang["Phone consultation activated!"] = "Consulta de llamada de voz activada!"; setting.lang["Phone consultation deactivated!"] = "Consulta de llamada de voz desactivada!"; setting.lang["Webcam consultation activated!"] = "Consulta por videollamada activada!"; setting.lang["Webcam consultation deactivated!"] = "Consulta por videollamada desactivada!"; setting.lang["Email consultation activated!"] = "Consulta por correo electrónico activada!"; setting.lang["Email consultation deactivated!"] = "Consulta por correo electrónico desactivada!"; setting.lang["Chat consultation activated!"] = "Consulta por chat activada!"; setting.lang["Chat consultation deactivated!"] = "Consulta de chat desactivada!"; setting.lang["vacation mode deactivated!"] = "Modo vacaciones desactivado!"; setting.lang["vacation mode activated!"] = "Modo vacaciones activado!"; setting.lang["phone"] = "Consulta de llamadas de voz"; setting.lang["webcam"] = "Consulta por videollamada"; setting.lang["chat"] = "Consulta por chat"; setting.lang["email"] = "Consulta por correo electrónico"; setting.lang["consultation_time_is_up"] = "Lectura psíquica en curso. El crédito se descuenta."; setting.lang["wait_for_experts_response"] = "Conexión en curso... Por favor, espere."; setting.lang["time_not_counted"] = "Configuración en curso. No se contabiliza el crédito."; setting.lang["Should be selected at least one value"] = "Debe seleccionarse al menos un valor"; setting.lang["calendar_saved_success"] = "Su horario se ha actualizado correctamente."; setting.lang["calendar_deleted"] = "Su horario se ha actualizado correctamente."; setting.lang["Add new event"] = "Gestione su agenda"; setting.lang["End consultation"] = "Consulta sobre"; setting.lang["Please review and confirm your response"] = "Una vez enviado, el servicio/la pregunta se marcará como procesado. ¿Está seguro?"; setting.lang["javascriptConfig_btn_cancel"] = "Cancelar"; setting.lang["javascript_config_consultation_count"] = "Detalles de la consulta"; setting.lang["javascript_config_rules"] = ""; setting.lang["javascriptConfig_cookieBanner_desc"] = "Utilizamos cookies para mejorar su experiencia en nuestro sitio web. Al navegar por este sitio web, aceptas el uso que hacemos de las cookies."; setting.lang["javascriptConfig_btn_cookie"] = "Acepte"; setting.lang["javascriptConfig_day"] = "javascriptConfig_day"; setting.lang["javascriptConfig_days"] = "javascriptConfig_days"; setting.lang["javascriptConfig_expired"] = "javascriptConfig_expired"; setting.lang["Please enter a valid phone number"] = "Introduzca un número de teléfono válido"; setting.lang["Pseudo was used earlier"] = "Apodo ya utilizado"; setting.lang["Your password must be at least 6 characters long"] = "Su contraseña debe contener al menos 6 caracteres"; setting.lang["Your password cannot exceed 32 characters"] = "Su contraseña no debe superar los 32 caracteres"; setting.lang["Email was used earlier"] = "Correo electrónico ya utilizado"; setting.lang["Phone was used earlier"] = "Teléfono ya en uso"; setting.lang["javascriptConfig_personal_information"] = "Información personal"; setting.lang["javascriptConfig_documents"] = "Documentos"; setting.lang["javascriptConfig_professional_experience_and_availability"] = "Experiencia profesional y disponibilidad"; setting.lang["javascriptConfig_step"] = "Paso"; setting.lang["javascriptConfig_date_day"] = "día"; setting.lang["javascriptConfig_month"] = "mes"; setting.lang["javascriptConfig_year"] = "año"; function _t(phrase, attr = {}) { let translated = (setting.lang && setting.lang[phrase]) ? setting.lang[phrase] : phrase; for (const key in attr) { if (attr.hasOwnProperty(key)) { const value = attr[key]; const placeholder = `[${key}]`; translated = translated.split(placeholder).join(value); } } return translated; } var AppRouter = { rewrites: new Array(), addRewriteRule: function(pattern, replacement) { AppRouter.rewrites.push({"pattern": new RegExp(pattern), replacement: replacement}); }, getRewrittedUrl: function(url) { // Removing http from star prevent ajax access policy problems with OPTIONS requests var rewrittedUrl = setting.siteRootUrl.replace(/http:\/\/[^\/]+/gi, ''); if(!setting.urlRewriting)rewrittedUrl += "/index.php"; for(var i = 0; i < AppRouter.rewrites.length; i++) { var rewrite = AppRouter.rewrites[i]; url = url.replace(rewrite.pattern, rewrite.replacement); } if(setting.languageCode){ rewrittedUrl += '/'+setting.languageCode; } rewrittedUrl += url; return rewrittedUrl; } }