Отключить мультиаккаунтность и уточнить статусы профиля

This commit is contained in:
AidarKC
2026-11-27 13:22:15 +03:00
parent ae430e84c7
commit 91a8bb9c3c
40 changed files with 312 additions and 383 deletions
@@ -1,20 +1,20 @@
import { t } from '../i18n/index.js';
/** В выборе тарифа счётчик не показываем: он начинается с логина. */
export function createRegistrationStepper(step) {
const current = Math.max(1, Math.min(4, Number(step) || 1));
export function createRegistrationStepper(step, total = 4) {
const current = Math.max(1, Math.min(total, Number(step) || 1));
const wrapper = document.createElement('div');
wrapper.className = 'signup-stepper';
wrapper.setAttribute('aria-label', t('screens.registration_stepper.text_001', { value1: current }));
wrapper.setAttribute('aria-label', t('screens.registration_stepper.text_001', { value1: current, value2: total }));
const dots = document.createElement('div');
dots.className = 'signup-stepper__dots';
for (let i = 1; i <= 4; i += 1) {
for (let i = 1; i <= total; i += 1) {
const dot = document.createElement('span');
dot.className = `signup-stepper__dot${i === current ? ' is-active' : ''}${i < current ? ' is-complete' : ''}`;
dots.append(dot);
}
const label = document.createElement('span');
label.className = 'signup-stepper__label';
label.textContent = t('screens.registration_stepper.text_002', { value1: current });
label.textContent = t('screens.registration_stepper.text_002', { value1: current, value2: total });
wrapper.append(dots, label);
return wrapper;
}