var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(b,h,g){b instanceof String&&(b=String(b));for(var k=b.length,a=0;a'),h=e.$bar,k=h.find(".js-inlineModAction");d.click(function(){k.blur()});k.on({focus:function(){h.before(d)},blur:function(){setTimeout(function(){d.remove()}, 200)}})}f&&a.css("transition-duration","0s");a.addClassTransitioned("is-active");f&&setTimeout(function(){a.css("transition-duration","")},0);c&&c(a)})}},_setupBar:function(a){a.on("click",":submit",XF.proxy(this,"submit")).on("click",".js-inlineModClose",XF.proxy(this,"hideBar")).on("click",".js-inlineModSelectAll",XF.proxy(this,"onSelectAllClick"));var c=this.$target.find(this.options.toggle);c.length==c.filter(":checked").length&&a.find("input[type=checkbox].js-inlineModSelectAll").prop("checked", !0)},onSelectAllClick:function(a){b(a.target).is(":checked")?this.selectAll().length?this.loadBar(function(a){a.find("input[type=checkbox].js-inlineModSelectAll").prop("checked",!0)}):this.deselect():this.deselectPage()},submit:function(){if(this.$bar){var a=this.$bar.find(".js-inlineModAction");if(a.length){if(a=a.val())if("deselect"==a)this.deselect();else{var c=this;XF.ajax("POST",this.options.href,{type:this.options.type,action:a},function(a){c._handleSubmitResponse(a)},{skipDefaultSuccess:!0})}}else console.error("No action selector found.")}}, _handleSubmitResponse:function(a){a.html?XF.setupHtmlInsert(a.html,function(a,b){a=XF.getOverlayHtml({html:a,title:b.h1||b.title});XF.showOverlay(a)}):"ok"==a.status&&a.redirect?a.message?XF.flashMessage(a.message,1E3,function(){XF.redirect(a.redirect)}):XF.redirect(a.redirect):XF.alert("Unexpected response");this.hideBar()},hideBar:function(){if(this.$bar){var a=this;this.$bar.removeClassTransitioned("is-active",function(){a.$bar&&a.$bar.remove();a.$bar=null})}},_updateCounter:function(a){var c= this.$target.find(this.options.actionTrigger),b=c.find(".inlineModButton");b.length||(b=c);b.toggleClass("is-mod-active",0d&&(e.push(a),f=!0):0<=d&&(e.splice(d,1),f=!0);return f?this.setCookieValue(e):e},getCookieValue:function(){var a= XF.Cookie.get(this.cookie);if(!a)return[];a=a.split(",");for(var c=a.length,b=0;b