"""Модуль modal_window_locators содержит локаторы элементов модальных окон.

Класс ModalWindowLocators предоставляет XPath локаторы для взаимодействия
с элементами модальных окон в тестах.
"""

class ModalWindowLocators:
    """Локаторы для элементов модальных окон.

    Содержит XPath локаторы для:
    MODAL_WINDOW (str): активного модального окна
    INPUT_FORM_USER_DATA (str): формы ввода пользовательских данных
    TEXT_FIELD_INPUT_FORM_USER_DATA (str): текстового поля ввода
    MENU_INPUT_FORM_USER_DATA (str): меню выбора ролей
    LABEL_INPUT_FORM_USER_DATA (str): метки поля ввода
    MODAL_WINDOW_SCROLL_CONTAINER (str): контейнера с прокруткой модального окна
    MODAL_WINDOW_TITLE (str): заголовка тулбара
    MODAL_WINDOW_TEXT_FIELD_INPUT (str): текстового поля ввода
    """

    MODAL_WINDOW = "//div[contains(@class, 'v-dialog--active')]"
    MODAL_WINDOW_SCROLL_CONTAINER = f"{MODAL_WINDOW}//div[contains(@class, 'scrollarea__body')]"
    MODAL_WINDOW_TITLE = f"{MODAL_WINDOW}//div[contains(@class, 'v-toolbar__title')]"
    MODAL_WINDOW_TEXT_FIELD_INPUT = f"{MODAL_WINDOW}//input"

    INPUT_FORM_USER_DATA = f"{MODAL_WINDOW}//form[@class='v-form']"
    INPUT_FORM_USER_DATA_FIELD_NAME = "//input[@data-testid='USER_CARD__text-field__name']"
    INPUT_FORM_USER_DATA_FIELD_ROLE = "//input[@data-testid='USER_CARD__select__role']"
    INPUT_FORM_USER_DATA_FIELD_PASSWORD = "//input[@data-testid='USER_CARD__text-field__password']"
    INPUT_FORM_USER_DATA_FIELD_COMMENT = "//input[@data-testid='USER_CARD__text-field__comment']"
    INPUT_FORM_USER_DATA_FIELD_EMAIL = "//input[@data-testid='USER_CARD__text-field__email']"
    INPUT_FORM_USER_DATA_FIELD_SMS = "//input[@data-testid='USER_CARD__text-field__sms_phone']"

    INPUT_FORM_USER_DATA_CHECKBOX_BLOCKED = "//input[@data-testid='USER_CARD__checkbox__blocked']"
    INPUT_FORM_USER_DATA_CHECKBOX_PUSH_ACTIVE = "//input[@data-testid='USER_CARD__checkbox__push_active']"

    # TEXT_FIELD_INPUT_FORM_USER_DATA = "div[2]/div/div/div/div/input"

    MENU_ACTIVE_INPUT_FORM = "//div[contains(@class, 'menuable__content__active')]"
    MENU_ACTIVE_ITEMS = "//div[@role='list']//div[@role='listitem']"
    LABEL_INPUT_FORM_USER_DATA = "//label[contains(@class,'v-label')]/span"

    TASK_MODAL_WINDOW =  "//div[@data-testid='BASELINE__dialog-drag__modal_0']"

    CHANDE_PASSWORD_WINDOW_CURRENT_PASSWORD = "//input[@data-testid='CHANGE_PASS_CARD__text-field__current_password']"
    CHANDE_PASSWORD_WINDOW_NEW_PASSWORD = "//input[@data-testid='CHANGE_PASS_CARD__text-field__new_password']"
    CHANDE_PASSWORD_WINDOW_CHECK_PASSWORD = "//input[@data-testid='CHANGE_PASS_CARD__text-field__check_password']"
    CHANDE_PASSWORD_WINDOW_BUTTON_SAVE = "//button[@data-testid='CHANGE_PASS_CARD__btn__save']"
    CHANDE_PASSWORD_WINDOW_BUTTON_CANCEL = "//button[@data-testid='CHANGE_PASS_CARD__btn__cancel']"

