PageSourceSearch

https://www.schoenen-dunk.de/assets/forum/category-tools.e6d8fed2efa1c445c4ca.min.js

js schoenen-dunk.de collected 2026-09-25 00:06:31 UTC 8,624 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunknodebb=self.webpackChunknodebb||[]).push([[14526,42619],{71131(B,K,l){var R,A;R=[l(70550),l(60984),l(52473),l(49897),l(33530),l(29930),l(89336)],A=(function(f,E,o,r,I,d,U){const T={};T.init=function(t){f.init(v,()=>{const e=document.querySelector(".thread-tools button");new U.Dropdown(e).show()},t),b(),$('[component="category/topic"]').each((e,n)=>{E.observeTopicLabels($(n).find('[component="topic/labels"]'))}),o.get("topic/delete").on("click",function(){return m("del","/state","delete",g),!1}),o.get("topic/restore").on("click",function(){return m("put","/state","restore",g),!1}),o.get("topic/purge").on("click",function(){return m("del","","purge",p),!1}),o.get("topic/lock").on("click",function(){return m("put","/lock","lock",s),!1}),o.get("topic/unlock").on("click",function(){return m("del","/lock","unlock",s),!1}),o.get("topic/pin").on("click",function(){return m("put","/pin","pin",s),!1}),o.get("topic/unpin").on("click",function(){return m("del","/pin","unpin",s),!1}),o.get("topic/mark-unread-for-all").on("click",function(){const e=f.getSelectedTids();return e.length?(socket.emit("topics.markAsUnreadForAll",e,function(n){if(n)return d.error(n);d.success("[[topic:markAsUnreadForAll.success]]"),e.forEach(function(i){$('[component="category/topic"][data-tid="'+i+'"]').addClass("unread")}),s()}),!1):d.error("[[error:no-topics-selected]]")}),o.get("topic/move").on("click",function(){return l.e(28310).then(function(){var e=[l(28310)];(function(n){const i=f.getSelectedTids();if(!i.length)return d.error("[[error:no-topics-selected]]");n.init(i,null,s)}).apply(null,e)}).catch(l.oe),!1}),o.get("topic/move-all").on("click",function(){const e=ajaxify.data.cid;if(!ajaxify.data.template.category)return d.error("[[error:invalid-data]]");l.e(28310).then(function(){var n=[l(28310)];(function(i){i.init(null,e,function(a){if(a)return d.error(a);ajaxify.refresh()})}).apply(null,n)}).catch(l.oe)}),o.get("topic/merge").on("click",function(){const e=f.getSelectedTids();l.e(2403).then(function(){var n=[l(2403)];(function(i){i.init(function(){e.length&&e.forEach(function(a){i.addTopic(a)})})}).apply(null,n)}).catch(l.oe)}),o.get("topic/tag").on("click",async function(){const e=f.getSelectedTids();if(!e.length)return d.error("[[error:no-topics-selected]]");const n=await Promise.all(e.map(i=>r.get(`/topics/${i}`)));Promise.all([l.e(20056),l.e(63)]).then(function(){var i=[l(63)];(function(a){a.init(n,ajaxify.data.tagWhitelist,s)}).apply(null,i)}).catch(l.oe)}),T.removeListeners(),socket.on("event:topic_deleted",S),socket.on("event:topic_restored",S),socket.on("event:topic_purged",N),socket.on("event:topic_locked",W),socket.on("event:topic_unlocked",W),socket.on("event:topic_pinned",M),socket.on("event:topic_unpinned",M),socket.on("event:topic_moved",Q)};function m(t,e,n,i){i||(i=function(){});const a=f.getSelectedTids(),C={},y=function(j){j&&Promise.all(a.map(P=>r[t](`/topics/${P}${e}`,C))).then(i).catch(d.error)};if(!a.length)return d.error("[[error:no-topics-selected]]");switch(n){case"delete":case"restore":case"purge":I.confirm(`[[topic:thread-tools.${n}-confirm]]`,y);break;case"pin":E.requestPinExpiry(C,y.bind(null,!0));break;default:y(!0);break}}T.removeListeners=function(){socket.removeListener("event:topic_deleted",S),socket.removeListener("event:topic_restored",S),socket.removeListener("event:topic_purged",N),socket.removeListener("event:topic_locked",W),socket.removeListener("event:topic_unlocked",W),socket.removeListener("event:topic_pinned",M),socket.removeListener("event:topic_unpinned",M),socket.removeListener("event:topic_moved",Q)};function c(){$(".thread-tools .show").removeClass("show")}function s(){c(),f.unselectAll()}function g(){c(),v()}function p(){c(),f.unselectAll(),v()}function v(){const t=f.getSelectedTids(),e=x(D,t),n=L(D,t),i=x(F,t),a=x(u,t),C=x(k,t),y=L(k,t);o.get("topic/delete").toggleClass("hidden",e),o.get("topic/restore").toggleClass("hidden",C||!e),o.get("topic/purge").toggleClass("hidden",!n||!t.length),o.get("topic/lock").toggleClass("hidden",a),o.get("topic/unlock").toggleClass("hidden",!a),o.get("topic/pin").toggleClass("hidden",y||i),o.get("topic/unpin").toggleClass("hidden",y||!i),o.get("topic/merge").toggleClass("hidden",C)}function x(t,e){for(let n=0;n<e.length;n+=1)if(t(e[n]))return!0;return!1}function L(t,e){for(let n=0;n<e.length;
1n+=1)if(!t(e[n]))return!1;return!0}function D(t){return h(t).hasClass("deleted")}function u(t){return h(t).hasClass("locked")}function F(t){return h(t).hasClass("pinned")}function k(t){return h(t).hasClass("scheduled")}function h(t){return o.get("category/topic","tid",t)}function S(t){const e=h(t.tid);e.toggleClass("deleted",t.isDeleted),e.find('[component="topic/locked"]').toggleClass("hidden",!t.isDeleted)}function M(t){const e=h(t.tid);e.toggleClass("pinned",t.isPinned),e.find('[component="topic/pinned"]').toggleClass("hidden",!t.isPinned),ajaxify.refresh()}function W(t){const e=h(t.tid);e.toggleClass("locked",t.isLocked),e.find('[component="topic/locked"]').toggleClass("hidden",!t.isLocked)}async function Q(t){if(ajaxify.data.template.category||String(t.toCid)==="-1")h(t.tid).remove();else{const e=await r.get(`/categories/${t.toCid}`),n=await app.parseAndTranslate("partials/topics_list",{topics:[{...t,category:e}]}),i=`[component="category/topic"][data-tid="${t.tid}"] [component="topic/category"]`;$(i).replaceWith(n.find(i))}}function N(t){h(t.tid).remove()}function b(){if(!ajaxify.data.topics||!ajaxify.data.template.category)return;const t=ajaxify.data.topics.filter(e=>e.pinned).length;!app.user.isAdmin&&!app.user.isMod||t<2||app.loadJQueryUI(function(){const e=$('[component="category"]').filter(function(i,a){return!$(a).parents("[widget-area],[data-widget-area]").length});let n=0;e.sortable({axis:"y",handle:'[component="topic/pinned"]',items:'[component="category/topic"].pinned',start:function(){n=parseInt(e.find('[component="category/topic"].pinned').first().attr("data-index"),10)},update:function(i,a){const C=a.item.attr("data-tid"),y=e.find('[component="category/topic"].pinned');let j=0;y.each((P,Y)=>{if($(Y).attr("data-tid")===C)return j=P,!1}),socket.emit("topics.orderPinnedTopics",{tid:C,order:n+j},function(P){if(P)return d.error(P);y.each((Y,J)=>{$(J).attr("data-index",n+Y)})})}})})}return T}).apply(K,R),A!==void 0&&(B.exports=A)},70550(B,K,l){var R,A;R=[l(52473)],A=(function(f){const E={};let o,r;E.init=function(c,s,g){r=g||$('[component="category"]'),r.on("selectstart",'[component="topic/select"]',function(u){u.preventDefault()});let p=!1;const v=function(u){const k=$(this).parents('[component="category/topic"]');if(u.shiftKey)return U(k.attr("data-tid")),o=k,!1;const h=k.hasClass("selected");I(k,!h),o=k,typeof c=="function"&&c()};r.on("click",'[component="topic/select"]',function(u){if(p)return u.preventDefault(),u.stopImmediatePropagation(),!1;v.call(this,u)});let x;const L=function(u){p=!1,x=setTimeout(()=>{p=!0,v.call(this,u),navigator.vibrate&&navigator.vibrate(50),this.closest('[component="category/topic"]').classList.contains("selected")&&s()},500)},D=()=>{clearTimeout(x)};r.on("mousedown",'[component="topic/select"]',L),r.on("touchstart",'[component="topic/select"]',L),r.on("mouseup",'[component="topic/select"]',D),r.on("mouseleave",'[component="topic/select"]',D),r.on("touchend",'[component="topic/select"]',D),r.on("touchcancel",'[component="topic/select"]',D),r.on("contextmenu",'[component="topic/select"]',u=>{u.preventDefault()})};function I(c,s){const g=c.find('[component="topic/select"]');g.toggleClass("fa-check-square-o",s),g.toggleClass("fa-square-o",!s),g.parents('[component="category/topic"]').toggleClass("selected",s),d()}function d(){const c=$('[component="topic/selected/badge"]');if(c.length){const s=r.find('[component="category/topic"].selected').length;c.text(s>0?s:"")}}E.getSelectedTids=function(){const c=[];return r&&r.find('[component="category/topic"].selected').each(function(){c.push($(this).attr("data-tid"))}),c},E.unselectAll=function(){r&&(r.find('[component="category/topic"].selected').removeClass("selected"),r.find('[component="topic/select"]').toggleClass("fa-check-square-o",!1).toggleClass("fa-square-o",!0),d())};function U(c){o||(o=$('[component="category/topic"]').first());const s=f.get("category/topic","tid",c).hasClass("selected"),g=m(c),p=m(o.attr("data-tid"));T(g,p,!s)}function T(c,s,g){if(c>s){const p=c;c=s,s=p}for(let p=c;p<=s;p+=1){const v=$('[component="category/topic"]').eq(p);I(v,g)}}
1function m(c){return f.get("category/topic","tid",c).index('[component="category/topic"]')}return E}).apply(K,R),A!==void 0&&(B.exports=A)}}]);

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.