1(self.webpackChunknodebb=self.webpackChunknodebb||[]).push([[1080,22067,43602,84819],{11234(p,_,g){"use strict";var f,h;f=[g(65303),g(29930),g(19905)],h=(function(d,a,s){const i={};i.init=function(){s.enable(".tag-management",".tag-row"),n(),c(),u(),m()};function n(){const r=$("#create-modal"),t=$("#create-tag-name"),e=$("#create-modal-go");r.on("keypress",function(l){l.keyCode===13&&e.click()}),$("#create").on("click",function(){r.modal("show"),setTimeout(function(){t.focus()},250)}),e.on("click",function(){socket.emit("admin.tags.create",{tag:t.val()},function(l){if(l)return a.error(l);t.val(""),r.on("hidden.bs.modal",function(){ajaxify.refresh()}),r.modal("hide")})})}function c(){$("#tag-search").on("input propertychange",utils.debounce(function(){function r(e){app.parseAndTranslate("admin/manage/tags","tags",{tags:e},function(l){$(".tag-list").html(l),s.enable(".tag-management",".tag-row")})}const t=$("#tag-search").val();if(!t)return r(ajaxify.data.tags);socket.emit("topics.searchAndLoadTags",{query:t},function(e,l){if(e)return a.error(e);r(l.tags)})},250))}function u(){$("#rename").on("click",async function(){const r=$(".tag-row.ui-selected");if(!r.length)return;const t=await d.dialog({title:"[[admin/manage/tags:alerts.editing]]",message:$(".rename-modal").html(),buttons:{success:{label:"Save",className:"btn-primary save",callback:function(){const e=[];r.each(function(l,o){o=$(o),e.push({value:o.attr("data-tag"),newName:t.find('[data-name="value"]').val()})}),socket.emit("admin.tags.rename",e,function(l){if(l)return a.error(l);a.success("[[admin/manage/tags:alerts.update-success]]"),ajaxify.refresh()})}}}})})}function m(){$("#deleteSelected").on("click",function(){const r=$(".tag-row.ui-selected");r.length&&d.confirm("[[admin/manage/tags:alerts.confirm-delete]]",function(t){if(!t)return;const e=[];r.each(function(l,o){e.push($(o).attr("data-tag"))}),socket.emit("admin.tags.deleteTags",{tags:e},function(l){if(l)return a.error(l);r.remove()})})})}return i}).apply(_,f),h!==void 0&&(p.exports=h)},19905(p,_,g){"use strict";var f,h;f=[g(81517)],h=(function(){const d={};return d.enable=function(a,s){$(a).selectable({filter:s})},d}).apply(_,f),h!==void 0&&(p.exports=h)},65303(p,_,g){"use strict";g.r(_),g.d(_,{alert:()=>i,confirm:()=>n,dialog:()=>s,prompt:()=>c,promptPassword:()=>u});var f=g(33530),h=g.n(f),d=g(17459),a=g.n(d);f.setDefaults({locale:config.userLang}),d.translateKeys(["modules:bootbox.ok","modules:bootbox.cancel","modules:bootbox.confirm"]).then(t=>{f.addLocale(config.userLang,{OK:t[0],CANCEL:t[1],CONFIRM:t[2]}),f.setLocale(config.userLang)});async function s(t){const[e,l,o]=await Promise.all([d.translate(t.title||""),m(t)||"",r(t.buttons)]);return f.dialog({...t,title:e,message:l,buttons:o})}async function i(t,e){const[l,o]=await Promise.all([t&&t.title?d.translate(t.title):null,m(t)]);return e=typeof e=="function"?e:t.callback,f.alert({...t,title:l,message:o,callback:e})}async function n(t,e){const[l,o]=await Promise.all([t&&t.title?d.translate(t.title):null,m(t)]);return e=typeof e=="function"?e:t.callback,f.confirm({...t,title:l,message:o,callback:e})}async function c(t,e){const[l,o]=await Promise.all([d.translate(typeof t=="string"?t:t.title),t&&t.message?m(t):null]);return e=typeof e=="function"?e:t.callback,f.prompt({...t,title:l,message:o,callback:e})}async function u(t){return typeof t=="string"&&(t={title:t}),t=t||{title:"[[user:current-password]]",message:"[[user:emailUpdate.password-challenge]]"},await new Promise(e=>{c({...t,inputType:"password",required:!0,value:"",callback:e})})}function m(t){const e=t&&t.message?t.message:t;return e instanceof jQuery?e:d.translate(e||"")}async function r(t){if(!Object.keys(t||{}).length)return;const e=Object.values(t);return await Promise.all(e.map(async l=>({...l,label:await d.translateKey(l.label)})))}},81517(p,_,g){var f,h,d;/*! 2* jQuery UI Selectable 1.14.2 3* https://jqueryui.com 4* 5* Copyright OpenJS Foundation and other contributors 6* Released under the MIT license. 7* https://jquery.org/license 8*/(function(a){"use strict";h=[g(74692),g(23662),g(56883),g(69139)],f=a,d=typeof f=="function"?f.apply(_,h):f,d!==void 0&&(p.exports=d)})(function(a){"use strict";return a.widget("ui.selectable",a.ui.mouse,{version:"1.14.2",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var s=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){s.elementPos=a(s.element[0]).offset(),s.selectees=a(s.options.filter,s.element[0]),s._addClass(s.selectees,"ui-selectee"),s.selectees.each(function(){var i=a(this),n=i.offset(),c={left:n.left-s.elementPos.left,top:n.top-s.elementPos.top};a.data(this,"selectable-item",{element:this,$element:i,left:c.left,top:c.top,right:c.left+i.outerWidth(),bottom:c.top+i.outerHeight(),startselected:!1,selected:i.hasClass("ui-selected"),selecting:i.hasClass("ui-selecting"),unselecting:i.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=a("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(s){var i=this,n=this.options;this.opos=[s.pageX,s.pageY],this.elementPos=a(this.element[0]).offset(),!this.options.disabled&&(this.selectees=a(n.filter,this.element[0]),this._trigger("start",s),a(n.appendTo).append(this.helper),this.helper.css({left:s.pageX,top:s.pageY,width:0,height:0}),n.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var c=a.data(this,"selectable-item");c.startselected=!0,!s.metaKey&&!s.ctrlKey&&(i._removeClass(c.$element,"ui-selected"),c.selected=!1,i._addClass(c.$element,"ui-unselecting"),c.unselecting=!0,i._trigger("unselecting",s,{unselecting:c.element}))}),a(s.target).parents().addBack().each(function(){var c,u=a.data(this,"selectable-item");if(u)return c=!s.metaKey&&!s.ctrlKey||!u.$element.hasClass("ui-selected"),i._removeClass(u.$element,c?"ui-unselecting":"ui-selected")._addClass(u.$element,c?"ui-selecting":"ui-unselecting"),u.unselecting=!c,u.selecting=c,u.selected=c,c?i._trigger("selecting",s,{selecting:u.element}):i._trigger("unselecting",s,{unselecting:u.element}),!1}))},_mouseDrag:function(s){if(this.dragged=!0,!this.options.disabled){var i,n=this,c=this.options,u=this.opos[0],m=this.opos[1],r=s.pageX,t=s.pageY;return u>r&&(i=r,r=u,u=i),m>t&&(i=t,t=m,m=i),this.helper.css({left:u,top:m,width:r-u,height:t-m}),this.selectees.each(function(){var e=a.data(this,"selectable-item"),l=!1,o={};!e||e.element===n.element[0]||(o.left=e.left+n.elementPos.left,o.right=e.right+n.elementPos.left,o.top=e.top+n.elementPos.top,o.bottom=e.bottom+n.elementPos.top,c.tolerance==="touch"?l=!(o.left>r||o.right<u||o.top>t||o.bottom<m):c.tolerance==="fit"&&(l=o.left>u&&o.right<r&&o.top>m&&o.bottom<t),l?(e.selected&&(n._removeClass(e.$element,"ui-selected"),e.selected=!1),e.unselecting&&(n._removeClass(e.$element,"ui-unselecting"),e.unselecting=!1),e.selecting||(n._addClass(e.$element,"ui-selecting"),e.selecting=!0,n._trigger("selecting",s,{selecting:e.element}))):(e.selecting&&((s.metaKey||s.ctrlKey)&&e.startselected?(n._removeClass(e.$element,"ui-selecting"),e.selecting=!1,n._addClass(e.$element,"ui-selected"),e.selected=!0):(n._removeClass(e.$element,"ui-selecting"),e.selecting=!1,e.startselected&&(n._addClass(e.$element,"ui-unselecting"),e.unselecting=!0),n._trigger("unselecting",s,{unselecting:e.element}))),e.selected&&!s.metaKey&&!s.ctrlKey&&!e.startselected&&(n._removeClass(e.$element,"ui-selected"),e.selected=!1,n._addClass(e.$element,"ui-unselecting"),e.unselecting=!0,n._trigger("unselecting",s,{unselecting:e.element}))))}),!1}},_mouseStop:function(s){var i=this;return this.dragged=!1,a(".ui-unselecting",this.element[0]).each(function(){var n=a.data(this,"selectable-item");i._removeClass(n.$element,"ui-unselecting"),n.unselecting=!1,n.startselected=!1,i._trigger("unselected",s,{unselected:n.element})}),a(".ui-selecting",this.element[0]).each(function(){var n=a.data(this,"selectable-item");i._removeClass(n.$element,"ui-selecting")._addClass(n.$element,"ui-selected"),n.selecting=!1,n.selected=!0,n.startselected=!0,i._trigger("selected",s,{selected:n.element})}),this._trigger("stop",s),this.helper.remove(),!1}})})}}]);
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.