<commit_before><?php

namespace Bootstrap\Components\AppzioUiKit\Divs;

use Bootstrap\Components\BootstrapComponent;

trait uiKitEmailDiv
{
    public $isLiked;

    public function uiKitEmailDiv($params = array())
    {
        /** @var BootstrapComponent $this */
        $to = $this->model->getSubmittedVariableByName('to_email');

        if (empty($to)) {
            $to = '';
        }

        return $this->getComponentColumn(array(
            $this->getComponentRow(array(
                $this->getComponentImage('cloud_upload_dev.png'),
                $this->getComponentText('Send Email', array(), array(
                    'background-color' => '#4a4a4a',
                    'color' => '#ffffff',
                    'padding' => '10 20 10 20',
                    'font-ios' => 'OpenSans',
                    'font-size' => '14',
                    'width' => '100%',
                ))
            ), array(), array(
                'shadow-color' => '#33000000',
                'shadow-radius' => '1',
                'shadow-offset' => '0 3',
                'margin' => '0 0 20 0'
            )),
            $this->getComponentFormFieldText($to, array(
                'hint' => 'To:',
                'variable' => 'to_email',
            ), array(
                'margin' => '0 20 0 20'
            )),
            $this->getComponentSpacer('1', array(), array(
                'background-color' => '#dadada',
                'opacity' => '0.5',
                'margin' => '0 20 0 20'
            )),
            $this->getComponentFormFieldTextArea('', array(
                'hint' => 'Message:'
            ), array(
                'margin' => '0 20 0 20'
            )),
            $this->getComponentSpacer('1', array(), array(
                'background-color' => '#dadada',
                'opacity' => '0.5',
                'margin' => '0 20 0 20'
            )),
            $this->getComponentRow(array(
                $this->getComponentText('{#send_copy_to_myself#}', array(), array(
                    'color' => '#7b7b7b',
                )),
                $this->getComponentFormFieldOnoff(array(), array(
                    'floating' => 1,
                    'float' => 'right',
                    'margin' => '0 10 0 0'
                ))
            ), array(), array(
                'margin' => '10 10 0 20',
                'vertical-align' => 'middle'
            )),
            $this->getComponentSpacer(250),
            $this->uiKitWideButton('{#send_mail#}')
        ), array(), array(
            'background-color' => '#ffffff'
        ));
    }
}<commit_msg>added missing variables in send email div<commit_after><?php

namespace Bootstrap\Components\AppzioUiKit\Divs;

use Bootstrap\Components\BootstrapComponent;

trait uiKitEmailDiv
{
    public $isLiked;

    public function uiKitEmailDiv($params = array())
    {
        /** @var BootstrapComponent $this */
        $to = $this->model->getSubmittedVariableByName('to_email');

        if (empty($to)) {
            $to = '';
        }

        return $this->getComponentColumn(array(
            $this->getComponentRow(array(
                $this->getComponentImage('cloud_upload_dev.png'),
                $this->getComponentText('Send Email', array(), array(
                    'background-color' => '#4a4a4a',
                    'color' => '#ffffff',
                    'padding' => '10 20 10 20',
                    'font-ios' => 'OpenSans',
                    'font-size' => '14',
                    'width' => '100%',
                ))
            ), array(), array(
                'shadow-color' => '#33000000',
                'shadow-radius' => '1',
                'shadow-offset' => '0 3',
                'margin' => '0 0 20 0'
            )),
            $this->getComponentFormFieldText($to, array(
                'hint' => 'To:',
                'variable' => 'to_email',
            ), array(
                'margin' => '0 20 0 20'
            )),
            $this->getComponentSpacer('1', array(), array(
                'background-color' => '#dadada',
                'opacity' => '0.5',
                'margin' => '0 20 0 20'
            )),
            $this->getComponentFormFieldTextArea('', array(
                'hint' => 'Message:',
                'variable' => 'message'
            ), array(
                'margin' => '0 20 0 20'
            )),
            $this->getComponentSpacer('1', array(), array(
                'background-color' => '#dadada',
                'opacity' => '0.5',
                'margin' => '0 20 0 20'
            )),
            $this->getComponentRow(array(
                $this->getComponentText('{#send_copy_to_myself#}', array(), array(
                    'color' => '#7b7b7b',
                )),
                $this->getComponentFormFieldOnoff(array(
                    'variable' => 'send_copy'
                ), array(
                    'floating' => 1,
                    'float' => 'right',
                    'margin' => '0 10 0 0'
                ))
            ), array(), array(
                'margin' => '10 10 0 20',
                'vertical-align' => 'middle'
            )),
            $this->getComponentSpacer(250),
            $this->uiKitWideButton('{#send_mail#}', array(
                'onclick' => $this->sendEmailToPerson()
            ))
        ), array(), array(
            'background-color' => '#ffffff'
        ));
    }

    protected function sendEmailToPerson()
    {
        $onclick = $this->getOnclickRoute('Publiclisting/email', false);

        $onclick[] = $this->getOnclickHideDiv('email');

        return $onclick;
    }
}
{'fraction_non_alphanumeric': 0.15951459725641928, 'fraction_numerical': 0.028491030601477313, 'mean_word_length': 1.3597510373443984, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 95, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5991517', 'n_tokens_mistral': 1743, 'n_tokens_neox': 1532, 'n_words': 295}