1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="019ffa44-95d4-7261-b609-5707acf232b1")}catch(e){}}();import { i as isTouch } from "./Frandroid-vBEwwzNaRDFG9Lxkt3Puy.js"; 2import { g as getFilteredPosts } from "./Ajax-vfWOQKfrs8KB4xAPhlm4U.js"; 3import "./humanoidfr-scripts-vBN19ewMCu5iXs-lLY9KC.js"; 4const CategoriesFilter = () => { 5 const $filters = $(".filters-categories [data-category], .filters-categories [data-tag]"); 6 const $more = $(".filters-categories--more"); 7 const $result = $(".filters__result"); 8 $filters.on("click", (ev) => { 9 ev.preventDefault(); 10 $(".filters-categories .active").removeClass("active"); 11 const $current = $(ev.currentTarget); 12 $current.addClass("active"); 13 const cat = $current.data("category"); 14 const tag = $current.data("tag"); 15 if ($result.data("type") === "tutos") { 16 getFilteredPosts($result, { action: "tutosWithFilter", cat, tag }); 17 } else { 18 getFilteredPosts($result, { action: "guideWithFilter", cat, tag }); 19 } 20 if (window.infiniteLoading) { 21 window.infiniteLoading.canAjax = true; 22 } 23 }); 24 $(".filters-categories--title").on("click", (ev) => { 25 if (!isTouch()) { 26 return; 27 } 28 ev.preventDefault(); 29 if ($more.is(":hidden")) { 30 $more.slideDown("normal", () => { 31 $more.addClass("active"); 32 $more.css("display", ""); 33 }); 34 } else { 35 $more.slideUp("normal", () => { 36 $more.removeClass("active"); 37 $more.css("display", ""); 38 }); 39 } 40 }); 41}; 42export { 43 CategoriesFilter as default 44}; 45 46//# chunkId=019ffa44-95d4-7261-b609-5707acf232b1
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.