File: /home/bheot/public_html/wp-content/themes/customify/assets/js/admin/dashboard.min.js
jQuery(document).ready(function(n){function s(t,a){_.isUndefined(a)&&(a="success"),o&&clearTimeout(o),n("#toast-container").length<=0&&n("body").append('<div id="toast-container" class="toast-top-right"></div>'),a=n('<div class="toast-message toast-'+a+'">'+t+'<button type="button" class="toast-close-button" role="button">×</button></div>'),n("#toast-container").html(a),n("#toast-container").show(),a.on("click",function(t){n("#toast-container").hide()}),o=setTimeout(function(){n("#toast-container").hide()},1500)}var o;n(document).on("change",".auto-save",function(a){a.preventDefault();var o=n(this);if(!o.is(":disabled")){var e=o.attr("name"),a=o.attr("type");o.attr("disabled","disabled");let t="";switch(a){case"checkbox":t=o.is(":checked")?"on":"off";break;case"radio":t=n('input[name="'+e+'"]:checked').val();break;default:t=o.val()}console.log("Type",t),s(Customify_Dashboard.updating,"info"),n.ajax({url:ajaxurl,type:"post",data:{action:"customify_dashboard_settings",option:e,value:t,_nonce:Customify_Dashboard._nonce}}).done(function(t){s(Customify_Dashboard.updated,"success")}).fail(function(t){s(Customify_Dashboard.error,"warning")}).always(function(){o.removeAttr("disabled")})}})});