PageSourceSearch

https://brownsboard.com/assets/admin/modules-selectable.a2122bf0f7d84248a6f6.min.js

js brownsboard.com collected 2026-10-09 22:42:21 UTC 4,764 bytes, 8 lines download raw bytes

vendor: 4,764 bytes, lines 1-8
1(self.webpackChunknodebb=self.webpackChunknodebb||[]).push([[4819],{9905(m,p,u){"use strict";var r,f;r=[u(1517)],f=(function(){const h={};return h.enable=function(i,e){$(i).selectable({filter:e})},h}).apply(p,r),f!==void 0&&(m.exports=f)},1517(m,p,u){var r,f,h;/*!
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(i){"use strict";f=[u(4692),u(3662),u(6883),u(9139)],r=i,h=typeof r=="function"?r.apply(p,f):r,h!==void 0&&(m.exports=h)})(function(i){"use strict";return i.widget("ui.selectable",i.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 e=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){e.elementPos=i(e.element[0]).offset(),e.selectees=i(e.options.filter,e.element[0]),e._addClass(e.selectees,"ui-selectee"),e.selectees.each(function(){var l=i(this),t=l.offset(),n={left:t.left-e.elementPos.left,top:t.top-e.elementPos.top};i.data(this,"selectable-item",{element:this,$element:l,left:n.left,top:n.top,right:n.left+l.outerWidth(),bottom:n.top+l.outerHeight(),startselected:!1,selected:l.hasClass("ui-selected"),selecting:l.hasClass("ui-selecting"),unselecting:l.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=i("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(e){var l=this,t=this.options;this.opos=[e.pageX,e.pageY],this.elementPos=i(this.element[0]).offset(),!this.options.disabled&&(this.selectees=i(t.filter,this.element[0]),this._trigger("start",e),i(t.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),t.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var n=i.data(this,"selectable-item");n.startselected=!0,!e.metaKey&&!e.ctrlKey&&(l._removeClass(n.$element,"ui-selected"),n.selected=!1,l._addClass(n.$element,"ui-unselecting"),n.unselecting=!0,l._trigger("unselecting",e,{unselecting:n.element}))}),i(e.target).parents().addBack().each(function(){var n,c=i.data(this,"selectable-item");if(c)return n=!e.metaKey&&!e.ctrlKey||!c.$element.hasClass("ui-selected"),l._removeClass(c.$element,n?"ui-unselecting":"ui-selected")._addClass(c.$element,n?"ui-selecting":"ui-unselecting"),c.unselecting=!n,c.selecting=n,c.selected=n,n?l._trigger("selecting",e,{selecting:c.element}):l._trigger("unselecting",e,{unselecting:c.element}),!1}))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var l,t=this,n=this.options,c=this.opos[0],o=this.opos[1],g=e.pageX,d=e.pageY;return c>g&&(l=g,g=c,c=l),o>d&&(l=d,d=o,o=l),this.helper.css({left:c,top:o,width:g-c,height:d-o}),this.selectees.each(function(){var s=i.data(this,"selectable-item"),_=!1,a={};!s||s.element===t.element[0]||(a.left=s.left+t.elementPos.left,a.right=s.right+t.elementPos.left,a.top=s.top+t.elementPos.top,a.bottom=s.bottom+t.elementPos.top,n.tolerance==="touch"?_=!(a.left>g||a.right<c||a.top>d||a.bottom<o):n.tolerance==="fit"&&(_=a.left>c&&a.right<g&&a.top>o&&a.bottom<d),_?(s.selected&&(t._removeClass(s.$element,"ui-selected"),s.selected=!1),s.unselecting&&(t._removeClass(s.$element,"ui-unselecting"),s.unselecting=!1),s.selecting||(t._addClass(s.$element,"ui-selecting"),s.selecting=!0,t._trigger("selecting",e,{selecting:s.element}))):(s.selecting&&((e.metaKey||e.ctrlKey)&&s.startselected?(t._removeClass(s.$element,"ui-selecting"),s.selecting=!1,t._addClass(s.$element,"ui-selected"),s.selected=!0):(t._removeClass(s.$element,"ui-selecting"),s.selecting=!1,s.startselected&&(t._addClass(s.$element,"ui-unselecting"),s.unselecting=!0),t._trigger("unselecting",e,{unselecting:s.element}))),s.selected&&!e.metaKey&&!e.ctrlKey&&!s.startselected&&(t._removeClass(s.$element,"ui-selected"),s.selected=!1,t._addClass(s.$element,"ui-unselecting"),s.unselecting=!0,t._trigger("unselecting",e,{unselecting:s.element}))))}),!1}},_mouseStop:function(e){var l=this;return this.dragged=!1,i(".ui-unselecting",this.element[0]).each(function(){var t=i.data(this,"selectable-item");l._removeClass(t.$element,"ui-unselecting"),t.unselecting=!1,t.startselected=!1,l._trigger("unselected",e,{unselected:t.element})}),i(".ui-selecting",this.element[0]).each(function(){var t=i.data(this,"selectable-item");l._removeClass(t.$element,"ui-selecting")._addClass(t.$element,"ui-selected"),t.selecting=!1,t.selected=!0,t.startselected=!0,l._trigger("selected",e,{selected:t.element})}),this._trigger("stop",e),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.