var FPF_Responsive_Controls=function(){function e(){this.initEvents()}var t=e.prototype;return t.initEvents=function(){document.addEventListener("click",function(e){this.handleControlChange(e)}.bind(this))},t.handleControlChange=function(e){var t=e.target.closest(".fpf-responsive-controls-inner-item");if(t){var n=t.getAttribute("data-device"),o=t.closest(".fpf-field-control-group").querySelector(".fpf-responsive-control-item");o&&(o.querySelector(".fpf-responsive-control-device-item")&&(o.querySelector(".fpf-responsive-control-device-item.is-active").classList.remove("is-active"),o.querySelector('.fpf-responsive-control-device-item[data-device="'+n+'"]').classList.add("is-active")),o.querySelector(".fpf-responsive-control-item-device").value=n)}},e}();document.addEventListener("DOMContentLoaded",function(e){new FPF_Responsive_Controls});

