define("jquery",[],function(){return window.jQuery}),define("api/system",["exports","jquery"],function(e,t){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function i(e){var t=baseUrl+"/api/system/change_log_level";return r["default"].post(t,{level:e})}Object.defineProperty(e,"__esModule",{value:!0}),e.setLogLevel=i;var r=n(t)}),define("apps/system/app",["exports","jquery","../../api/system"],function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}var i=r(t),s=["INFO","DEBUG","TRACE"];window.requestMessages().done(function(){var e=(0,i["default"])("#sonarqube-logs-level").find("td:last-child");e.length&&function(){var t=function(){o.val()==="INFO"?a.detach():a.insertAfter(o)},r=e.text().trim();e.empty();var o=(0,i["default"])("<select>");e.append(o),s.forEach(function(e){var t=(0,i["default"])("<option>");t.prop("value",e),t.text(e),t.prop("selected",e===r),o.append(t)});var u=function(t){var n=t.id!=="INFO"?"text-danger":"";return'<span class="'+n+'">'+t.id+"</span>"},a=(0,i["default"])("<div>").addClass("spacer-top text-danger").text(window.t("system.log_level.warning"));t(),(0,i["default"])(o).select2({width:"120px",minimumResultsForSearch:999,formatResult:u,formatSelection:u}).on("change",function(){var e=o.val();(0,n.setLogLevel)(e),t()})}()})});