<?php
return [
    'check-email-to-reading' => [
        'class' => 'common\modules\triggers\components\conditions\conditions\CheckEmailToReading',
    ],
    'check-email-to-opening' => [
        'class' => 'common\modules\triggers\components\conditions\conditions\CheckEmailToDelivered',
    ],
    'check-email-to-unsubscribed' => [
        'class' => 'common\modules\triggers\components\conditions\conditions\CheckEmailToUnsubscribed',
    ],
    'check-user-to-registration' => [
        'class' => 'common\modules\triggers\components\conditions\conditions\CheckUserToRegistration',
    ],
    'check-user-to-subscribe' => [
        'class' => 'common\modules\triggers\components\conditions\conditions\CheckUserToSubscribe',
    ],
    'check-user-to-subscribe-to-blog' => [
        'class' => 'common\modules\triggers\components\conditions\conditions\CheckUserToSubscribeToBlog',
    ],
    'user-successfully-completed-the-test' => [
        'class' => 'common\modules\triggers\components\conditions\conditions\UserSuccessfullyCompletedTheTest',
    ],
    'user-unsuccessfully-completed-the-test' => [
        'class' => 'common\modules\triggers\components\conditions\conditions\UserUnsuccessfullyCompletedTheTest',
    ],
    'user-check-scrolling' => [
        'class' => 'common\modules\triggers\components\conditions\conditions\CheckScrolling',
        'params' => [
            'percent' => [
                'placeholder' => 'Процент скролла',
                'type' => 'text'
            ],
            'url' => [
                'placeholder' => 'Ссылка',
                'type' => 'text'
            ]
        ]
    ],
    'check-clicking-on-the-link' => [
        'class' => 'common\modules\triggers\components\conditions\conditions\CheckClickingOnTheLink',
        'params' => [
            'link' => [
                'placeholder' => 'Ссылка',
                'type' => 'text'
            ]
        ]
    ],
    'user-presence-time' => [
        'class' => 'common\modules\triggers\components\conditions\conditions\CheckPresenceTime',
        'params' => [
            'url' => [
                'placeholder' => 'URL страницы',
                'type' => 'text'
            ],
            'time' => [
                'placeholder' => 'Время (секунд)',
                'type' => 'text'
            ]
        ]
    ],
    'check-email-and-template-to-reading' => [
        'class' => 'common\modules\triggers\components\conditions\conditions\CheckEmailAndTemplateToReading',
        'params' => [
            'template_id' => [
                'type' => 'dropdownlist',
                'items' => \common\modules\messageTemplate\models\MessageTemplate::find()->all()
            ],
            'date' => [
                'type' => 'date',
                'placeholder' => 'Выберите дату'
            ]
        ]
    ],
    'check-email-and-template-to-not-reading' => [
        'class' => 'common\modules\triggers\components\conditions\conditions\CheckEmailAndTemplateToNotReading',
        'params' => [
            'template_id' => [
                'type' => 'dropdownlist',
                'items' => \common\modules\messageTemplate\models\MessageTemplate::find()->all()
            ],
            'date' => [
                'type' => 'date',
                'placeholder' => 'Выберите дату'
            ]
        ]
    ]
];