{
show = true
animation = true
closable = e.detail.closable
title = e.detail.title
message = e.detail.message
}"
@close-success-modal.window="show = false"
@click="closable && (show = false), closable && (animation = false)"
:class="{ '-active': show }"
x-cloak>
{
show = true
animation = true
closable = e.detail.closable
title = e.detail.title
if (typeof e.detail.message === 'string') {
message = e.detail.message
} else {
const err = e.detail.message
message = err?.data?.message || err?.message || err
}
}"
@close-error-modal.window="show = false"
@click="closable && (show = false), closable && (animation = false)"
:class="{ '-active': show }"
x-cloak>