!function(){var e,i,t;e=jQuery,i=wp.customize,t=function(){function t(i){e(".kirki-device-button").removeClass("is-active"),e(".kirki-device-button-"+i).addClass("is-active"),e("[data-kirki-device-preview]").addClass("kirki-responsive-item-hidden"),e('[data-kirki-device-preview="'+i+'"]').removeClass("kirki-responsive-item-hidden")}var r;t("desktop"),(r=document.querySelectorAll(".kirki-device-button")).length&&[].slice.call(r).forEach((function(e){e.addEventListener("click",(function(e){var t=this.getAttribute("data-kirki-device");i.previewedDevice.set(t)}))})),i.previewedDevice.bind((function(e){t(e)}))},wp.customize.bind("ready",(function(){setTimeout((function(){!function(){var i=document.querySelectorAll("[data-kirki-parent-responsive-id]");if(i.length){var t=[];[].slice.call(i).forEach((function(e){var i=e.dataset.kirkiParentResponsiveId,r=e.dataset.kirkiDevicePreview,n=e.dataset.kirkiSetting;t.includes(i)||t.push(i);var c=document.querySelectorAll('[data-kirki-parent-control-setting="'+n+'"]');c.length&&[].slice.call(c).forEach((function(e){e.dataset.kirkiParentResponsiveId=i,e.dataset.kirkiDevicePreview=r}))})),t.forEach((function(i){var t=e("#customize-control-"+i+" .kirki-device-buttons");t.attr("data-kirki-devices-for",i),t.appendTo("#customize-control-"+i+" .customize-control-title")}))}}(),t()}),250)}))}();
//# sourceMappingURL=control.js.map
