PageSourceSearch

https://www.delcocitizencorps.org/s/c0aacc68167afe0d8b11e0786ae5e6…mponents:user-group-select2.js?locale=en-US

js delcocitizencorps.org collected 2026-09-28 13:26:20 UTC 3,585 bytes, 34 lines download raw bytes

1WRMCB=function(e){var c=console;if(c&&c.log&&c.error){c.log('Error running batched script.');c.error(e);}}
2;
3try {
4/* module-key = 'com.atlassian.confluence.plugins.confluence-ui-components:user-group-select2', location = '/js/user-group-select2.js' */
5define("confluence-ui-components/js/user-group-select2",["ajs","confluence-ui-components/js/internal/soy-templates","jquery","confluence-ui-components/js/confluence-select"],function(b,g,d){return{bind:function(f,n){f=f||document.body;var p=function(){var c=d(".select2-drop-active \x3e .select2-results");0===c.children(".select2-result-selectable").length&&c.children(".select2-disabled").length&&c.append('\x3cli class\x3d"select2-no-results"\x3e'+b.escapeHtml("No matches found")+
6"\x3c/li\x3e")};d("input.autocomplete-multiusergroup[data-autocomplete-bound !\x3d 'true']",f).each(function(){var c=d(this);c.attr("data-autocomplete-bound","true");var h=c.attr("data-include-groups");c.confluenceSelect({multiple:!0,minimumInputLength:2,formatInputTooShort:function(){return h?"Start typing to search for a user or group":"Start typing to search for a user"},ajax:{transport:function(a){var e=a.success;delete a.success;
7return d.ajax.apply(d.ajax,arguments).done(e).done(p)},data:function(a){return{"max-results":6,query:a}},dataType:"json",url:b.contextPath()+"/rest/prototype/1/search/user"+(h?"-or-group":"")+".json",results:function(a){var e=[];d.each(a.result,function(){"user"===this.type?e.push({id:this.username,text:`${this.title} (${this.username})`,imgSrc:this.thumbnailLink.href,entity:this}):e.push({id:this.name,text:this.name,imgSrc:b.contextPath()+"/images/icons/avatar_group_48.png",entity:this})});return{results:e}},
8quietMillis:300},formatResult:function(a){return g.UserGroupSelect2().avatarWithName({size:"small",displayName:a.text,userId:a.id,avatarImageUrl:a.imgSrc})},escapeMarkup:function(a){return a},formatSelection:function(a){return g.UserGroupSelect2().avatarWithName({size:"xsmall",displayName:a.text,userId:a.id,avatarImageUrl:a.imgSrc})},dropdownCssClass:"users-dropdown",containerCssClass:"users-autocomplete",hasAvatar:!0,...n});if(c.data("autofill-user")){var k=b.Meta.get("remote-user"),l=b.Meta.get("current-user-fullname"),
9m=b.Meta.get("current-user-avatar-uri-reference");k&&l&&m&&c.confluenceSelect("data",[{id:k,text:l,imgSrc:m}])}})}}});
10}catch(e){WRMCB(e)};
11;
12try {
13/* module-key = 'com.atlassian.confluence.plugins.confluence-ui-components:user-group-select2', location = '/soy/user-group-select2.soy' */
14// This file was automatically generated from user-group-select2.soy.
15// Please don't edit this file by hand.
16
17/**
18 * @fileoverview Templates in namespace Confluence.UI.Components.UserGroupSelect2.
19 */
20
21if (typeof Confluence == 'undefined') { var Confluence = {}; }
22if (typeof Confluence.UI == 'undefined') { Confluence.UI = {}; }
23if (typeof Confluence.UI.Components == 'undefined') { Confluence.UI.Components = {}; }
24if (typeof Confluence.UI.Components.UserGroupSelect2 == 'undefined') { Confluence.UI.Components.UserGroupSelect2 = {}; }
25
26
27Confluence.UI.Components.UserGroupSelect2.avatarWithName = function(opt_data, opt_ignored) {
28  return '' + aui.avatar.avatar({size: opt_data.size, avatarImageUrl: opt_data.avatarImageUrl, accessibilityText: opt_data.displayName, title: opt_data.displayName, extraAttributes: {'data-username': opt_data.userId}}) + soy.$$escapeHtml(opt_data.displayName);
29};
30if (goog.DEBUG) {
31  Confluence.UI.Components.UserGroupSelect2.avatarWithName.soyTemplateName = 'Confluence.UI.Components.UserGroupSelect2.avatarWithName';
32}
33
34}catch(e){WRMCB(e)};

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.