/* global React */ (function () { const { useState, useEffect, useRef, useCallback, memo } = React; const T = window.SC_T; const Api = window.SC_Api; const LIMITS = { yandex_title: 56, yandex_title2: 56, yandex_desc: 81, google_title1: 30, google_desc1: 90, }; const EMPTY_SET = new Set(); const COLS = [ { field: 'yandex_title', label: 'Заголовок 1', group: 'yandex' }, { field: 'yandex_title2', label: 'Заголовок 2', group: 'yandex' }, { field: 'yandex_desc', label: 'Текст', group: 'yandex' }, { field: 'google_title1', label: 'Заголовок', group: 'google' }, { field: 'google_desc1', label: 'Описание', group: 'google' }, ]; // ── Ячейка редактирования ───────────────────────────────────────────────── const AdCell = memo(function AdCell({ field, value, saving, onChange }) { const limit = LIMITS[field]; const over = (value || '').length > limit; const isLong = limit >= 81; return (
{isLong ? (