jQuery("document").ready(function(o){o(".tutor-admin-bundle-delete").click(function(){var t=o(this).data("id"),e=o("#tutor-common-confirmation-form");e&&(e.find('input[name="action"]').val("tutor_bundle_delete"),e.find('input[name="id"]').val(t))}),wp.data.subscribe(function(){var t,e,o;wp.data&&wp.data.select("core/editor")&&(t=wp.data.select("core/editor").getEditedPostAttribute("type"),o=(e=tutorProCourseBundle).course_bundle_list_page_url,t===e.course_bundle_post_type)&&"trash"===wp.data.select("core/editor").getEditedPostAttribute("status")&&(window.location.href=o)})});