1$((function(){var a=daruma.core.getContentSection(),e="form[id^=he_criteria_form_]",t=".submit-button",i="button[data-refresh-button]",n=function(e){var t=e.data("componentSelector"),i=e.data("containerSelector"),n=$("#"+t),r=$("#"+i),d=n.serialize()+"&prefix="+e.data("rowIndex"),o=n.attr("action");$.ajax({url:o,data:d,type:"POST",success:function(e){$("#"+i).hide(),r.replaceWith(e),$("#"+i).fadeIn(900),daruma.core.configureTinyMce(a,!1)}})};$(a).on("change",e,(function(){$(this).find(t).removeClass("btn-default").addClass("btn-primary")})),$(a).on("click",t,(function(a){var e=$(this),t=e.data("containerSelector"),i=e.data("refreshButtonSelector"),r=$("#"+i),d=$("#"+t).data("hashsum"),o={criteria_id:e.data("criteriaId"),service_id:e.data("serviceId"),he_id:e.data("heId"),id:e.data("id"),hashsum:d};e.attr("disabled",!0),$.ajax({url:daruma.config.absolute_url+"/enabling/validateEvalCriteria",data:o,type:"GET",success:function(a){a.is_modified?swal({title:daruma.i18n.__("Information"),text:daruma.i18n.__("This criteria has already been modified")+"\n"+daruma.i18n.__("To get the last evaluation click on Refresh criteria"),confirmButtonText:daruma.i18n.__("Overwrite"),cancelButtonText:daruma.i18n.__("Cancel"),type:"warning",showCancelButton:!0,closeOnCancel:!0,
1closeOnConfirm:!0},(function(a){a?n(e):r.attr("disabled",!1)})):n(e)}}).then((function(){e.attr("disabled",!1)}))})),$(a).on("click",i,(function(a){var e=$(this);swal({title:daruma.i18n.__("Information"),text:daruma.i18n.__("Do you want to reload the criteria? Unsaved changes will be lost"),confirmButtonText:daruma.i18n.__("Reload"),cancelButtonText:daruma.i18n.__("Cancel"),type:"warning",showCancelButton:!0,closeOnCancel:!0,closeOnConfirm:!0},(function(a){a&&function(a){var e=a.closest("div[data-criteria-widget]"),t=e.data("criteria"),i=e.data("service"),n=e.data("he"),r=e.data("index");$.ajax({url:daruma.config.absolute_url+"/enabling/evalFormAjax",data:{criteria_id:t,service_id:i,he_id:n,index:r},success:function(a){e.hide().html(a).fadeIn(900),daruma.core.bindAfterLoad(e),$("div[data-editable-textarea]",e).addClass("disable-previewer")}})}(e)}))}))}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.