!function(o){formintorjs.define([],function(t){return new(Backbone.View.extend({el:".wpmudev-dashboard-section",events:{"click .wpmudev-action-close":"dismiss_welcome"},initialize:function(){var t=Forminator.Utils.get_url_param("notification"),e=Forminator.Utils.get_url_param("title"),i=Forminator.Utils.get_url_param("createnew");if(setTimeout(function(){o(".forminator-scroll-to").length&&o("html, body").animate({scrollTop:o(".forminator-scroll-to").offset().top-50},"slow")},100),t){var n=_.template("<strong>{{ formName }}</strong> {{ Forminator.l10n.options.been_published }}");Forminator.Notification.open("success",n({formName:Forminator.Utils.sanitize_uri_string(e)}),4e3)}return i&&setTimeout(function(){jQuery(".forminator-create-"+i).click()},200),this.render()},dismiss_welcome:function(t){t.preventDefault();var e=o(t.target).closest(".sui-box"),i=o(t.target).data("nonce");e.slideToggle(300,function(){o.ajax({url:Forminator.Data.ajaxUrl,type:"POST",data:{action:"forminator_dismiss_welcome",_ajax_nonce:i},complete:function(o){e.remove()}})})},render:function(){setTimeout(function(){void 0!==SUI.dialogs&&void 0!==SUI.dialogs["forminator-new-feature"]&&SUI.dialogs["forminator-new-feature"].show()},1e3)}}))})}(jQuery);