(function () { 'use strict'; if (window.__imDomologiaThemeMounted) return; window.__imDomologiaThemeMounted = true; var FONT_URL = 'https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap'; var PHOTO_INNA = 'https://fs.getcourse.ru/fileservice/file/download/a/938694/sc/156/h/b87e2511b20c047f5e49fff8579701fa.webp'; function ready(callback) { if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', callback, { once: true }); } else { callback(); } } function repairFonts() { var viewport = document.querySelector('meta[name="viewport"]'); if (!viewport) { viewport = document.createElement('meta'); viewport.name = 'viewport'; document.head.appendChild(viewport); } viewport.content = 'width=device-width, initial-scale=1, viewport-fit=cover'; if (!document.getElementById('im-google-fonts')) { var fontLink = document.createElement('link'); fontLink.id = 'im-google-fonts'; fontLink.rel = 'stylesheet'; fontLink.href = FONT_URL; document.head.appendChild(fontLink); } var bodyNodes = Array.prototype.slice.call(document.body.childNodes); for (var i = 0; i < bodyNodes.length; i += 1) { var node = bodyNodes[i]; var value = node.nodeType === 3 ? node.nodeValue || '' : ''; if (value.indexOf('@import') !== -1 && value.indexOf('fonts.googleapis.com') !== -1 && value.indexOf('Manrope') !== -1 && value.indexOf('Playfair') !== -1) { node.parentNode.removeChild(node); } } } function ensureRuntimeStyles() { if (document.getElementById('im-runtime-fixes')) return; var style = document.createElement('style'); style.id = 'im-runtime-fixes'; style.textContent = 'body.im-page--cabinet.im-layout-mounted .main-page-block > .im-native-page-content,' + 'body.im-page--course.im-layout-mounted .main-page-block > .im-native-page-content{display:none!important;}' + 'body.im-page--cabinet,body.im-page--course{background:#f8eadc!important;min-height:100vh!important;}' + 'body.im-page--cabinet .gc-main-content,body.im-page--course .gc-main-content{background:linear-gradient(145deg,#fdf6ee 0%,#faeee2 58%,#f8eadc 100%)!important;background-attachment:fixed!important;background-repeat:no-repeat!important;background-size:cover!important;min-height:100vh!important;}' + 'body.im-page--lesson{background:#f8eadc!important;min-height:100vh!important;}' + 'body.im-page--lesson .gc-main-content{background:linear-gradient(145deg,#fdf6ee 0%,#faeee2 58%,#f8eadc 100%)!important;background-attachment:fixed!important;background-repeat:no-repeat!important;background-size:cover!important;min-height:100vh!important;}' + 'body.im-page--cabinet .main-page-block,body.im-page--course .main-page-block{background:transparent!important;min-height:100vh!important;}' + '.im-course-page{margin:0 auto!important;max-width:var(--im-content)!important;width:auto!important;}' + 'body.im-page--login.im-layout-mounted .main-page-block > :not(.im-login-shell){display:none!important;}' + 'body.im-page--login.im-layout-mounted .gc-main-content,' + 'body.im-page--login.im-layout-mounted .page-full-block,' + 'body.im-page--login.im-layout-mounted .main-page-block{height:auto!important;min-height:100svh!important;}' + '.im-login-form,.im-login-form .login-form,.im-login-form .state-form,' + '.im-login-form .xdget-row,.im-login-form .xdget-container{background:transparent!important;border:0!important;box-shadow:none!important;max-width:none!important;min-height:0!important;width:100%!important;}' + '.im-login-form h1,.im-login-form h2,.im-login-form .form-title{display:none!important;}' + '.im-login-form .form-buttons{align-items:flex-start!important;display:flex!important;flex-direction:column!important;gap:10px!important;}' + '.im-login-form .btn-link,.im-login-form button.btn-link{background:transparent!important;border:0!important;box-shadow:none!important;color:rgba(74,48,37,.72)!important;float:none!important;font-size:12px!important;margin:0!important;min-height:0!important;padding:4px 0!important;width:auto!important;}' + 'body.im-page--cabinet .gc-account-leftbar,body.im-page--course .gc-account-leftbar,body.im-page--landing .gc-account-leftbar{background:rgba(255,250,244,.98)!important;border-right:1px solid var(--im-line)!important;box-shadow:5px 0 24px rgba(74,48,37,.09)!important;}' + '@media(min-width:741px){body.im-page--cabinet .gc-account-leftbar,body.im-page--course .gc-account-leftbar,body.im-page--landing .gc-account-leftbar{overflow:visible!important;}body.im-page--cabinet .gc-account-user-submenu-bar,body.im-page--course .gc-account-user-submenu-bar,body.im-page--landing .gc-account-user-submenu-bar{pointer-events:auto!important;z-index:10003!important;}}' + '.im-login-form .xdget-socialUserFormField{float:none!important;margin:4px 0 0!important;width:100%!important;}' + '.im-login-form .xdget-socialUserFormField>div:first-child{display:grid!important;gap:9px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;}' + '.im-login-form .xdget-socialUserFormField .btn-social-icon{align-items:center!important;background:rgba(255,253,249,.88)!important;border:1px solid rgba(74,48,37,.18)!important;border-radius:13px!important;box-shadow:none!important;color:var(--im-green)!important;display:flex!important;float:none!important;font-family:"Manrope",Arial,sans-serif!important;font-size:11px!important;font-weight:700!important;gap:7px!important;height:46px!important;justify-content:center!important;line-height:1!important;margin:0!important;min-height:46px!important;padding:0 9px!important;text-decoration:none!important;width:100%!important;}' + '.im-login-form .xdget-socialUserFormField .btn-chatium img{filter:brightness(0) saturate(100%) invert(20%) sepia(16%) saturate(1457%) hue-rotate(105deg) brightness(86%) contrast(92%);height:19px!important;left:auto!important;margin:0!important;object-fit:contain!important;position:static!important;top:auto!important;transform:none!important;vertical-align:middle!important;width:19px!important;}' + '.im-login-form .xdget-socialUserFormField .btn-vk i{align-items:center!important;color:#2787f5!important;display:inline-flex!important;font-size:17px!important;height:20px!important;justify-content:center!important;left:auto!important;line-height:20px!important;margin:0!important;position:static!important;top:auto!important;transform:none!important;vertical-align:middle!important;width:20px!important;}' + '.im-login-form .xdget-socialUserFormField .btn-yandex_id:before{align-items:center;background:#fc3f1d;border-radius:50%;color:#fff;content:"Я";display:inline-flex;font-family:Arial,sans-serif;font-size:12px;font-weight:700;height:20px;justify-content:center;width:20px;}' + '.im-login-form .xdget-socialUserFormField .btn-chatium:after{content:"Приложение";}.im-login-form .xdget-socialUserFormField .btn-vk:after{content:"ВКонтакте";}.im-login-form .xdget-socialUserFormField .btn-yandex_id:after{content:"Яндекс ID";}' + '.im-cabinet__tools--single{grid-template-columns:minmax(0,1fr)!important;}' + '.im-course-head__expert{align-items:baseline;display:flex;flex-wrap:wrap;gap:7px 12px;margin:18px 0 0!important;}' + '.im-course-head__expert strong{color:var(--im-ink);font-family:"Playfair Display",Georgia,serif;font-size:24px;font-weight:700;}' + '.im-course-head__expert span{color:var(--im-muted);font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;}' + '.im-section-title h2{font-size:clamp(34px,4.2vw,50px)!important;line-height:1.05!important;overflow-wrap:anywhere;}' + '#im-lessons-slot .lesson-list>li .state-icon-block{display:none!important;}' + '#im-lessons-slot .lesson-list>li .info{margin-left:0!important;width:100%!important;}' + '@media(max-width:740px){.im-login-shell{min-height:100svh!important;padding:20px 18px 18px!important;}' + '.im-login-panel{display:grid!important;gap:18px!important;grid-template-columns:1fr!important;margin:26px 0 22px!important;width:100%!important;}' + '.im-login-portrait{grid-row:1!important;height:140px!important;margin:0 auto!important;width:140px!important;}' + '.im-login-panel__form{grid-row:2!important;width:100%!important;}' + '.im-login-panel__form>h1{font-size:34px!important;margin-bottom:20px!important;}' + '.im-login-form .xdget-socialUserFormField>div:first-child{grid-template-columns:1fr!important;}' + '.im-login-support{margin-top:auto!important;}}'; document.body.appendChild(style); } function isEditMode() { return /(?:^|[?&])editMode=1(?:&|$)/.test(window.location.search); } function isNativeManagementMode() { return /\/(?:editable|editMode)\/1\/?$/.test(window.location.pathname); } function markPage() { var path = window.location.pathname; if (/\/cms\/system\/login/.test(path)) document.body.classList.add('im-page--login'); if (/^\/mk-zavtrak(?:\/?$|&)/.test(path)) document.body.classList.add('im-page--landing'); if (/^\/(?:showcase|teach\/control(?:\/stream)?)\/?$/.test(path)) document.body.classList.add('im-page--cabinet'); if (/^\/teach\/control\/stream\/view\/id\//.test(path) || document.querySelector('.im-course-page')) { document.body.classList.add('im-page--course'); } if (/^\/pl\/teach\/control\/lesson\/view\/?$/.test(path)) { document.body.classList.add('im-page--lesson', 'im-page--lesson-legacy'); } if (/^\/teach\/control\/lesson\/view\/id\//.test(path)) { document.body.classList.add('im-page--lesson', 'im-page--lesson-rd'); } } function getMainMount() { return document.querySelector('.main-page-block') || document.querySelector('.page-full-block') || document.querySelector('.gc-main-content'); } function markNativePageContent(mount) { var children = Array.prototype.slice.call(mount.children); for (var i = 0; i < children.length; i += 1) { var child = children[i]; if (child.classList.contains('im-cabinet') || child.classList.contains('im-course-page')) continue; if (child.tagName === 'SCRIPT' || child.tagName === 'STYLE') continue; child.classList.add('im-native-page-content'); } } function mountAdminControls(shell, mount) { if (!document.querySelector('.gc-user-admin')) return; var pageHeaders = mount.querySelectorAll('.page-header'); var pageHeader = null; for (var i = 0; i < pageHeaders.length; i += 1) { if (!shell.contains(pageHeaders[i])) { pageHeader = pageHeaders[i]; break; } } if (!pageHeader) return; var panel = document.createElement('section'); panel.className = 'im-admin-tools im-grid-card'; panel.setAttribute('aria-label', 'Управление GetCourse'); panel.innerHTML = 'Управление GetCourse'; panel.appendChild(pageHeader); shell.insertBefore(panel, shell.firstChild); } function setupCabinet() { if (!document.body.classList.contains('im-page--cabinet') || document.querySelector('.im-cabinet')) return; var mount = getMainMount(); if (!mount) return; var shell = document.createElement('main'); shell.className = 'im-gc im-cabinet'; shell.setAttribute('aria-labelledby', 'im-cabinet-title'); shell.innerHTML = '
' + '
' + 'Кулинарная школа «Домология»' + '

Инна Малина

' + '
' + 'Инна Малина' + '
' + '
' + '
' + '
' + '
Обучение

Мои курсы

' + '' + '
' + '
' + '

Загружаем доступные программы…

' + '
' + '
' + '' + '
' + '
' + '
' + 'Отдел заботы' + 'Пн–Пт · 10:00–18:00 МСК' + '

Ответим в течение 24 часов с момента обращения в рабочее время.

' + 'Написать в поддержку' + '
' + '
'; mountAdminControls(shell, mount); markNativePageContent(mount); mount.insertBefore(shell, mount.firstChild); document.body.classList.add('im-layout-mounted'); } function setupCourse() { if (!document.body.classList.contains('im-page--course') || document.querySelector('.im-course-page')) return; var mount = getMainMount(); var lessonList = document.querySelector('.lesson-list'); if (!mount || !lessonList) return; var nativeTitle = document.querySelector('.main-page-block h1') || document.querySelector('h1'); var courseTitle = nativeTitle && nativeTitle.textContent.trim() ? nativeTitle.textContent.trim() : 'Мастер-класс «Выспись»'; var shell = document.createElement('main'); shell.className = 'im-gc im-course-page'; shell.setAttribute('aria-labelledby', 'im-course-title'); shell.innerHTML = '
' + '
' + '← Все программы' + 'Мастер-класс' + '

' + '

Инна МалинаКулинарная школа «Домология»

' + '
' + 'Инна Малина' + '
' + '
' + '
' + '
' + 'Программа' + '

Уроки мастер-класса

' + '

Открывайте уроки по порядку. Прогресс, задания и доступы сохраняются как обычно.

' + '
' + '
' + '

Загружаем уроки…

' + '
' + '
' + '' + '
'; shell.querySelector('#im-course-title').textContent = courseTitle; mountAdminControls(shell, mount); markNativePageContent(mount); mount.insertBefore(shell, mount.firstChild); document.body.classList.add('im-layout-mounted'); } function setupLogin() { if (!document.body.classList.contains('im-page--login')) return; var form = document.querySelector('.xdget-loginUserForm, #loginForm, form[action*="login"], .login-form form'); if (!form || form.closest('.im-login-shell')) return; var shell = document.createElement('main'); shell.className = 'im-login-shell'; shell.innerHTML = '
' + 'Инна Малина' + 'Кулинарная школа «Домология»' + '
' + '
' + '
' + 'Личный кабинет' + '

Войти

' + '
' + '
' + 'Инна Малина' + '
' + '
' + 'Служба поддержки'; var origin = form.parentNode; var mount = getMainMount() || form.closest('.gc-main-content') || origin; mount.insertBefore(shell, mount.firstChild); shell.querySelector('.im-login-panel__form').appendChild(form); form.classList.add('im-login-form'); if (origin !== mount) origin.classList.add('im-login-origin'); document.body.classList.add('im-layout-mounted'); var oldTranslations = form.querySelectorAll('.im-label-en'); for (var t = 0; t < oldTranslations.length; t += 1) oldTranslations[t].remove(); var fields = form.querySelectorAll('input'); for (var i = 0; i < fields.length; i += 1) { var field = fields[i]; if (field.type === 'password') field.placeholder = 'Пароль'; if (field.type === 'email' || field.type === 'text') field.placeholder = 'Почта'; if (field.type === 'submit' && /войти|sign in/i.test(field.value || '')) field.value = 'Войти'; } var links = form.querySelectorAll('a, button, .state-link, .btn-register'); for (var j = 0; j < links.length; j += 1) { var value = links[j].textContent.toLowerCase(); if (/^\s*(войти|sign in)\s*$/.test(value)) links[j].textContent = 'Войти'; if (/регистрац|зарегистр|registration/.test(value)) links[j].textContent = 'Регистрация'; if (/парол|ссылк|восстанов|request the link/.test(value)) links[j].textContent = 'Восстановить пароль'; } } function findOutside(selectors, slot) { for (var i = 0; i < selectors.length; i += 1) { var candidates = document.querySelectorAll(selectors[i]); for (var j = 0; j < candidates.length; j += 1) { if (!candidates[j].closest('#' + slot.id)) return candidates[j]; } } return null; } function cleanLessonTitles(root) { var titles = root.querySelectorAll('.link.title, .lesson-title, h3'); for (var i = 0; i < titles.length; i += 1) { var nodes = titles[i].childNodes; for (var j = 0; j < nodes.length; j += 1) { if (nodes[j].nodeType === 3 && /урок\s*\d+/i.test(nodes[j].nodeValue || '')) { nodes[j].nodeValue = nodes[j].nodeValue.replace(/^\s*урок\s*\d+[.:]?\s*/i, ''); break; } } } } function mountTrainingList() { var slot = document.querySelector('#im-course-slot'); if (!slot || slot.dataset.mounted === 'true') return false; var list = findOutside(['.xdget-trainingList', '.xdget-training-list', '.stream-table', '.training-list'], slot); if (!list || list.contains(slot)) return false; var movable = list.closest('.xdget-block') || list; if (movable.contains(document.querySelector('.im-cabinet'))) movable = list; slot.innerHTML = ''; slot.appendChild(movable); slot.dataset.mounted = 'true'; movable.classList.add('im-native-training-list'); return true; } function mountLessonList() { var slot = document.querySelector('#im-lessons-slot'); if (!slot || slot.dataset.mounted === 'true') return false; var list = findOutside(['.lesson-list'], slot); if (!list || list.contains(slot)) return false; var movable = list.closest('.xdget-lessonList') || list.closest('form') || list; slot.innerHTML = ''; slot.appendChild(movable); slot.dataset.mounted = 'true'; list.classList.add('im-native-lesson-list'); cleanLessonTitles(list); document.body.classList.add('im-page--course'); return true; } function observeNativeLists() { var doneCourses = mountTrainingList(); var doneLessons = mountLessonList(); if ((!document.querySelector('#im-course-slot') || doneCourses) && (!document.querySelector('#im-lessons-slot') || doneLessons)) return; var observer = new MutationObserver(function () { var coursesReady = !document.querySelector('#im-course-slot') || mountTrainingList(); var lessonsReady = !document.querySelector('#im-lessons-slot') || mountLessonList(); if (coursesReady && lessonsReady) observer.disconnect(); }); observer.observe(document.body, { childList: true, subtree: true }); window.setTimeout(function () { observer.disconnect(); }, 12000); } ready(function () { document.documentElement.classList.add('im-gc-ready'); repairFonts(); ensureRuntimeStyles(); markPage(); if (isEditMode() || isNativeManagementMode()) return; setupCabinet(); setupCourse(); setupLogin(); observeNativeLists(); }); })();