(()=>{var i;(i=jQuery).solaceMetabox={data:solaceMetabox,init(){this.syncRangeToNumber(),this.handleDependentUi()},syncRangeToNumber(){i("#solace-page-settings .solace-range-input").each(function(n,e){let a=i(e).find("input.nv-range"),t=i(e).find("input.nv-number");i(a).on("input change",function(n){i(t).val(n.target.value)}),i(t).on("input change",function(n){i(a).val(n.target.value)})})},handleDependentUi(){i("#solace-page-settings .solace-dependent").each(function(n,e){var a=i("input#"+i(e).data("depends"));i(a).on("change",function(){i(e).toggleClass("solace-hidden")})})}},jQuery(window).on("load",function(){jQuery.solaceMetabox.init()})})();
