<template>
    <v-card
        tile
        flat
        :height="Emailverifypromptform.height"
        :width="Emailverifypromptform.width"
        :color="Emailverifypromptform.color"
        :outlined="Emailverifypromptform.outlined"
    >
        <v-card-title>
            {{ __(Emailverifypromptform.title) }}
        </v-card-title>

        <v-card-subtitle>
            <span class="text-caption">
                {{ __(Emailverifypromptform.subtitle) }}
            </span>
        </v-card-subtitle>

        <v-card-text>
            <email-verify-prompt-form-input 
                class="mt-3"
                :app="app"
            />
        </v-card-text>

        <v-card-actions>
            <v-sheet 
                width="100%"
                class="text-center"
            >
                <cs-orange-btn 
                    caption="Trimite"
                    :small="false"
                    :loading="app.forms.Emailverifyprompt.processing"
                    :disabled="app.forms.Emailverifyprompt.actionButtonDisabled"
                    :click="() => app.forms.Emailverifyprompt.formprovider.Trigger()"
                />
            </v-sheet>
        </v-card-actions>

        <v-card-text v-if="app.platform != 'b2b'">
            <v-sheet 
                width="100%"
                class="d-flex justify-center align-center"
            >
                <v-btn
                    plain
                    text
                    class="text-dark-blue text-no-transform"
                    :href="app.url"
                >
                    {{ __('Renunță') }}
                </v-btn>
            </v-sheet>
        </v-card-text>
    </v-card>
</template>

<script>
    export default {
        props: {
            app: {required: true},
        },

        computed: {
            Emailverifypromptform() {
                return this.app.classes.Emailverifypromptform;
            }
        },

        components: {
            EmailVerifyPromptFormInput: require('./Input/EmailVerifyPromptFormInput').default,
            CsOrangeBtn: require('@CsVueComp/buttons/CsOrangeBtn').default,
        },

        name: 'EmailVerifyPromptForm',
    }
</script>