1"use strict";(self.webpackChunknodebb=self.webpackChunknodebb||[]).push([[16972],{6160(m,p,a){var f,c;f=[a(29930)],c=(function(u){const h={};return h.init=function(){Promise.all([a.e(6411),a.e(61396)]).then(function(){var n=[a(54222)];(function(t){t.prepare()}).apply(null,n)}).catch(a.oe),$(".clear").on("click",function(){const n=$(this).attr("data-name");socket.emit("admin.cache.clear",{name:n},function(t){if(t)return u.error(t);ajaxify.refresh()})}),$(".form-check").on("change",function(){const t=$(this).find("input").is(":checked"),s=$(this).attr("data-name");socket.emit("admin.cache.toggle",{name:s,enabled:t},function(e){if(e)return u.error(e)})}),$("#cache-table").on("click","th",function(){const n=$(this).closest("table"),t=n.find("tbody"),s=$(this).index(),e=t.find("tr").toArray(),o=$(this).data("sort")==="asc";$(this).data("sort",o?"desc":"asc"),n.find("th i").addClass("invisible"),$(this).find("i").removeClass("invisible").toggleClass("fa-sort-up",o).toggleClass("fa-sort-down",!o),e.sort(function(A,C){const i=$(A).children().eq(s).attr("data-sort-value").trim(),l=$(C).children().eq(s).attr("data-sort-value").trim(),g=i.replace(/,/g,""),b=l.replace(/,/g,""),r=parseFloat(g),d=parseFloat(b);return!isNaN(r)&&!isNaN(d)?o?r-d:d-r:o?i.localeCompare(l):l.localeCompare(i)}),t.append(e)})},h}).apply(p,f),c!==void 0&&(m.exports=c)}}]);
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.