jQuery(document).ready(function($){"use strict";$(".super-bundle-wrap").length&&$("body").on("change","input.gvc-switch-toggle",function(){var features,p=$(this).parents("p"),spinner=p.find(".spinner");$(this).parents(".gvc-switch + .spinner.is-active").removeClass("is-active"),spinner.addClass("is-active"),$(this).parents(".gvc-switch").toggleClass("is-enabled"),$(this).attr("disabled","disabled"),window.sbToggleAjax&&window.sbToggleAjax.abort(),window.sbToggleAjax=wp.ajax.send("sb_toggle_feature",{success:function(){window.sbToggleAjax=null,spinner.removeClass("is-active"),p.parents(".card").find("input[disabled]").removeAttr("disabled")},error:function(){spinner.removeClass("is-active"),window.sbToggleAjax=null,p.parents(".card").find("input[disabled]").removeAttr("disabled")},data:{features:(features={},$("input.gvc-switch-toggle").each(function(){features[$(this).attr("data-feature")]=$(this)[0].checked?"enable":"disable"}),features),nonce:sbParams.nonce}})})});