(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.jQuery;var n=e.n(t);n()(document).ready(function(){n()("#reset_customizer_settings").on("click",function(){if(!window.confirm("Are you sure you want to do this?"))return!1;n().ajax({url:styleManager.config.wp_rest.root+"style_manager/v1/delete_customizer_settings",method:"POST",beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",styleManager.config.wp_rest.nonce)},data:{style_manager_settings_nonce:styleManager.config.wp_rest.style_manager_settings_nonce}}).done(function(e){e.success?alert("Success: "+e.data):alert("Unfortunately, no luck: "+e.data)}).error(function(e){console.log(e)})})}),(window.sm=window.sm||{}).settings={}})();