Implementation of sweetalert in webcomponent