!function(){function e(e,t){if(!(e instanceof NodeList)&&"string"!=typeof e||"function"!=typeof t)return;let i=e instanceof NodeList?e:document.querySelectorAll(e);if(i.length)for(let e=0;e<i.length;e++){let n=i[e];n instanceof HTMLElement&&t(n)}}function t(t){e(".wpbf-device-buttons .wpbf-device-button",function(e){t===e.dataset.wpbfDevice?e.classList.add("is-active"):e.classList.remove("is-active")}),e(".wpbf-control-device",function(e){t===e.dataset.wpbfDevice?e.classList.add("is-active"):e.classList.remove("is-active")}),e(".wpbf-customize-control-responsive",function(e){let i=e.dataset.wpbfSetting,n=`${i??""}-${t}`,c=e.querySelector("label.customize-control-label");c&&c instanceof HTMLLabelElement&&(c.htmlFor=n)})}wp.customize.bind("ready",function(){wp.customize.previewedDevice.bind(function(e){t(e)}),jQuery(document).on("click",".wpbf-device-buttons .wpbf-device-button",function(e){let i=this.dataset.wpbfDevice;i&&(t(i),wp.customize.previewedDevice.set(i))})})}();
