jQuery(function(e){"use strict";e.reduxMetaBoxes=e.reduxMetaBoxes||{},e(document).ready(function(){e.reduxMetaBoxes.init()}),e.reduxMetaBoxes.init=function(){e.reduxMetaBoxes.notLoaded=!0,e.reduxMetaBoxes.checkBoxVisibility(),e(".redux-container").each(function(){e(this).parents(".postbox:first").find("h3.hndle").addClass("redux-hndle"),e(this).parents(".postbox:first").addClass("redux-metabox"),e(this).parents(".postbox:first").addClass("redux-"+redux.args.opt_name),""!==redux.args.container_class&&e(this).parents(".postbox:first").addClass(redux.args.class)}),e("#page_template").change(function(){e.reduxMetaBoxes.checkBoxVisibility("page_template")}),e('input[name="post_format"]:radio').change(function(){e.reduxMetaBoxes.checkBoxVisibility("post_format")}),e.redux.initFields()},e("#publishing-action .button, #save-action .button").click(function(){window.onbeforeunload=null});var t;e.reduxMetaBoxes.checkBoxVisibility=function(a){0!==reduxMetaboxes.length&&e.each(reduxMetaboxes,function(o,i){e.each(i,function(i,n){if((i===a||!a)&&(t="post_format"===i?e("input:radio[name='post_format']:checked").val():e("#"+i).val())){var s=!1;e.each(n,function(e,a){a===t&&(s=!0)}),s||e.reduxMetaBoxes.notLoaded?s?(e("#"+o).fadeIn("300"),e.redux.initFields()):e("#"+o).fadeOut("50"):e("#"+o).hide()}})})}});