<!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
{% block sw_extension_uninstall_modal %}
<sw-modal
    class="sw-extension-uninstall-modal"
    :title="title"
    variant="small"
    @modal-close="emitClose"
>
    <!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
    {% block sw_extension_uninstall_modal_content %}
    <template #default>
        <!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
        {% block sw_installed_extension_card_removal_content_modal_body %}
        <p>
            {{ $tc('sw-extension-store.component.sw-extension-uninstall-modal.description') }}
        </p>

        <p class="sw-extension-uninstall-modal__bold-paragraph">
            {{ $tc('sw-extension-store.component.sw-extension-uninstall-modal.alert') }}
        </p>

        <p>
            <sw-switch-field
                v-model:value="removePluginData"
                :label="$tc('sw-extension-store.component.sw-extension-uninstall-modal.labelRemovePluginData')"
                :help-text="$tc('sw-extension-store.component.sw-extension-uninstall-modal.helpTextRemovePluginData')"
            />
        </p>

        {% endblock %}
    </template>

    <template #modal-footer>
        <!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
        {% block sw_extension_uninstall_modal_footer %}
        <!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
        {% block sw_extension_uninstall_modal_footer_cancel %}
        <sw-button
            size="small"
            :disabled="isLoading"
            @click="emitClose"
        >
            {{ $tc('global.default.cancel') }}
        </sw-button>
        {% endblock %}

        <!-- eslint-disable-next-line sw-deprecation-rules/no-twigjs-blocks -->
        {% block sw_extension_uninstall_modal_footer_uninstall %}
        <sw-button
            variant="danger"
            size="small"
            :is-loading="isLoading"
            @click="emitUninstall"
        >
            {{ $tc('sw-extension-store.component.sw-extension-uninstall-modal.buttonLabel') }}
        </sw-button>
        {% endblock %}
        {% endblock %}
    </template>
    {% endblock %}
</sw-modal>
{% endblock %}
