/**
	 * Dismiss button clicked in invalid license warning.
	 *
	 * @param  {Event} e jQuery event object
	 */

timely.define(["jquery_timely","scripts/common_scripts/backend/common_ajax_handlers"],function(e,t){var n=function(n){var r={action:"ai1ec_facebook_cron_dismiss"};e.post(ajaxurl,r,t.handle_dismiss_plugins,"json")},r=function(n){var r=e(this);r.attr("disabled",!0);var i={action:"ai1ec_disable_notification",note:!1};e.post(ajaxurl,i,t.handle_dismiss_notification)},i=function(n){var r=e(this);r.attr("disabled",!0);var i={action:"ai1ec_disable_intro_video",note:!1};e.post(ajaxurl,i,t.handle_dismiss_intro_video)},s=function(n){var r=e(this);r.attr("disabled",!0);var i={action:"ai1ec_set_license_warning",value:"dismissed"};e.post(ajaxurl,i,t.handle_dismiss_license_warning)},o=function(t){e(this).parent().next(".ai1ec-limit-by-options-container").toggle().find("option").removeAttr("selected")},u=function(t){$document=e(document.body),$one_shot_popup=e("#ai1ec-one-shot-popup",$document),0===$one_shot_popup.length&&($div=e('<div class="timely"/>'),$div.html('<div id="ai1ec-one-shot-popup" class="timely ai1ec-modal ai1ec-fade"role="dialog" aria-hidden="true" style="display: none;"><div class="ai1ec-modal-dialog"><div class="ai1ec-modal-content"><div class="ai1ec-modal-header"><button type="button" class="ai1ec-close"data-dismiss="ai1ec-modal" aria-hidden="true">×</button><strong><div id="ai1ec-one-shot-popup-title"/></strong></div><div class="ai1ec-modal-body ai1ec-clearfix"><textarea class="ai1ec-form-control code" rows="8" cols="40" id="ai1ec-one-shot-popup-text"></textarea></div></div></div></div>').appendTo($document),$one_shot_popup=e("#ai1ec-one-shot-popup",$document));var n=e(this).closest("a");e("#ai1ec-one-shot-popup-title",$one_shot_popup).text(n.data("alert-title")),e("#ai1ec-one-shot-popup-text",$one_shot_popup).text(n.data("alert-text")),$one_shot_popup.modal("show")};return{dismiss_plugins_messages_handler:n,dismiss_notification_handler:r,dismiss_intro_video_handler:i,dismiss_license_warning_handler:s,handle_multiselect_containers_widget_page:o,handle_alert_click:u}});