jQuery(document).ready((function(e){let t=e(".helix-field"),i=t.find("input"),a=Joomla.getOptions("data")||{};t.length>0&&t.find(".helix-devices .device-btn").on("click",(function(d){d.preventDefault();let l=e(this).data("device");!function(t){const i={lg:"100%",md:`${a.breakpoints.tablet}px`,sm:`${a.breakpoints.mobile}px`},d={md:"desktop",sm:"tablet",xs:"mobile",desktop:"desktop",tablet:"tablet",mobile:"mobile"};e(`.hu-device[data-device=${d[t]}]`).parent().find(".active").removeClass("active"),e(`.hu-device[data-device=${d[t]}]`).addClass("active");e("#hu-template-preview").animate({width:i[t]},500,"linear")}(l),i.val(l).trigger("change"),t.find(".helix-devices .device-btn").each((function(){e(this).hasClass("active")&&e(this).removeClass("active")})),e(this).addClass("active")}))}));