}function t_contactMethod__getLang() { const projectLang = t_contactMethod__getProjectLang(); if (projectLang) { return projectLang.toUpperCase(); } const browserLang = (window.navigator.userLanguage || window.navigator.language).toUpperCase().slice(0, 2); return browserLang;}/** * Возвращает язык проекта, чтобы переводы в редакторах совпадали с опубликованной страницей. * В редакторе Zero Block нет #allrecords, язык проекта лежит в window.site_lang. * @returns {string} */function t_contactMethod__getProjectLang() { const allrecords = document.getElementById('allrecords'); if (allrecords) return allrecords.getAttribute('data-tilda-project-lang') || ''; if (window.tildamode === 'zero') return window.site_lang || ''; return '';}/** * * @param {ContactMethod} contactMethod */function t_contactMethod__getPlaceholder(contactMethod) { if (contactMethod === 'telegram') { return t_contactMethod__tranlsate('username_or_phone'); } if (contactMethod === 'vk' || contactMethod === 'fb_messenger') { return t_contactMethod__tranlsate('username_id_or_link'); } if (contactMethod === 'skype') { return t_contactMethod__tranlsate('username_email_or_phone'); } if (contactMethod === 'max_messenger') { return t_contactMethod__tranlsate('link_or_phone'); }}// #endregion