if (self.CavalryLogger) { CavalryLogger.start_js(["XCR+Q"]); } __d('GroupDescription',['Arbiter','Event','tidyEvent'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={onDescriptionActionButtonClick:function i(j){c('tidyEvent')(c('Event').listen(j,'click',function(){c('Arbiter').inform('GroupsRHC/expandDescContainer');}));}};f.exports=h;}),null); __d('GroupMallContextRow',['CSS'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={setDismissHandler:function i(j){j.setDismissHandler(function(){c('CSS').hide(j.getRoot());});}};f.exports=h;}),null); __d('GroupViewportTracking',['csx','DataAttributeUtils','DOM','ViewportTracking','Banzai','$','viewportTrackingBuilder'],(function a(b,c,d,e,f,g,h){'use strict';var i,j;if(c.__markCompiled)c.__markCompiled();function k(n){return {getAllStories:function o(){return c('DOM').scry(c('$')('pagelet_group_mall'),"._5pat");},getStoryID:function o(p){var q=JSON.parse(c('DataAttributeUtils').getDataFt(p));return q&&q.mf_story_key;},getDataToLog:function o(p){return JSON.parse(c('DataAttributeUtils').getDataFt(p))||{};}};}i=babelHelpers.inherits(l,c('ViewportTracking'));j=i&&i.prototype;l.prototype.sendDataToLog=function(n,o){if(this.useBanzai)c('Banzai').post('group_feed_tracking',o);};l.prototype.cleanup=function(){m.clearSingleton();j.cleanup.call(this);};function l(){i.apply(this,arguments);}var m=c('viewportTrackingBuilder')(function(n){var o=new l(k(n));o.init(n);return o;});m.init=m.factory.bind(m);f.exports=m;}),null); __d('GroupsDescTagContainer',['cx','Arbiter','CSS','Event','tidyEvent'],(function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();function i(j,k,l){'use strict';this.$GroupsDescTagContainer1=j;this.$GroupsDescTagContainer2=k;this.$GroupsDescTagContainer3=l;this.checkAndCollapseContent();c('Arbiter').subscribe('GroupsRHC/expandDescContainer',this.expandContainer.bind(this));}i.prototype.checkAndCollapseContent=function(){'use strict';if(this.$GroupsDescTagContainer1.getBoundingClientRect().height<=this.$GroupsDescTagContainer3)return;c('CSS').addClass(this.$GroupsDescTagContainer1,"__gz");c('CSS').show(this.$GroupsDescTagContainer2);c('tidyEvent')(c('Event').listen(this.$GroupsDescTagContainer2,'click',this.expandContainer.bind(this)));};i.prototype.expandContainer=function(){'use strict';c('CSS').removeClass(this.$GroupsDescTagContainer1,"__gz");c('CSS').hide(this.$GroupsDescTagContainer2);};f.exports=i;}),null); __d('GroupsMemberCountUpdater',['Arbiter','DOM'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(){}h.subscribeMemberCount=function(i){c('Arbiter').subscribe('GroupsMemberCount/changeText',function(j,k){c('DOM').setContent(i,k);});};h.subscribeNewMemberCount=function(i){c('Arbiter').subscribe('GroupsMemberCount/changeNewMembersText',function(j,k){c('DOM').setContent(i,k);});};f.exports=h;}),null); __d('NotificationsSelector',['Parent','submitForm','AsyncRequest','Event'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(j,k,l){k.subscribe('change',function(m,n){l.value=n.value;var o=c('Parent').byTag(j,'form');o&&c('submitForm')(o);});}function i(j,k,l,m,n,o){k.subscribe('change',function(p,q){new (c('AsyncRequest'))().setURI('/ajax/groups/notifications/update.php').setData({setting:q.value,group_id:m}).setMethod('POST').send();});if(n)n.subscribe('hide',function(){if(o)new (c('AsyncRequest'))().setURI(o).setData({group_id:m}).setMethod('POST').send();});c('Event').listen(j,'click',function(){if(n&&n.isShown())n.hide();});}f.exports.bindForm=h;f.exports.updateNotif=i;}),null); __d("XGroupCreationSuggestionXOutRHCController",["XController"],(function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/gysc\/hide_rhc_suggestion\/",{category:{type:"Enum",enumType:1},identifier:{type:"String"}});}),null); __d('GroupGYSCXoutHandler',['csx','AsyncRequest','Arbiter','CSS','DOM','DOMQuery','Event','XGroupCreationSuggestionXOutRHCController'],(function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i={onClickXOut:function j(k,l,m,n){c('Event').listen(k,'click',function(){var o=c('XGroupCreationSuggestionXOutRHCController').getURIBuilder().setEnum('category',l).setString('identifier',m).getURI();new (c('AsyncRequest'))().setURI(o).send();var p=c('DOMQuery').find(document,'#'+n+'_ListItem');c('DOM').remove(p);var q=c('DOMQuery').scry(document,"div._39xw");c('Arbiter').inform('groupshscroll/creationsuggestionxout',{});if(q.length===0){var r=c('DOMQuery').findPushSafe(document,'#GroupsRHCGroupCreationSection','#rhc_gysc_hscroll');if(r!==null)c('DOM').remove(r);}});},showHideButton:function j(k,l){c('Event').listen(l,'mouseover',function(){c('CSS').show(k);});c('Event').listen(l,'mouseleave',function(){c('CSS').hide(k);});}};f.exports=i;}),null); __d('GroupsAddTypeaheadView',['Arbiter','ContextualTypeaheadView'],(function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('ContextualTypeaheadView'));i=h&&h.prototype;j.prototype.select=function(k){'use strict';var l=this.results[this.index];c('Arbiter').inform('GroupsMemberSuggestion/remove',l.uid);if(l.is_member){this.reset();}else i.select.call(this,k);};function j(){'use strict';h.apply(this,arguments);}f.exports=j;}),null); __d('GroupsAddMemberTypeaheadView',['csx','cx','fbt','CSS','DOM','GroupsAddTypeaheadView','ex','getOrCreateDOMID'],(function a(b,c,d,e,f,g,h,i,j){var k,l;if(c.__markCompiled)c.__markCompiled();var m='friends',n='others';function o(q){var r;switch(q){case m:r=j._("Friends");break;case n:r=j._("Others");break;default:throw new Error(c('ex')('The given typeahead result category seems to be untransformed: %s',q));}var s=c('DOM').create('li',{className:"_3cz5",data:q},r);return s;}k=babelHelpers.inherits(p,c('GroupsAddTypeaheadView'));l=k&&k.prototype;p.prototype.getItems=function(){'use strict';return c('DOM').scry(this.content,'li[role="option"]');};p.prototype.buildResults=function(q){'use strict';var r,s=null;if(typeof this.renderer=='function'){r=this.renderer;s=this.renderer.className||'';}else{r=b.TypeaheadRenderers[this.renderer];s=this.renderer;}r=r.bind(this);var t=null,u=q.reduce(function(x,y,z){var aa=y.node||r(y,z),ba=y.bootstrapped&&y.type!='email'?m:n;y.header=ba;if(ba!==t){var ca=o(ba);if(t!==null)c('CSS').addClass(ca,"_3cz6");x=x.concat(ca);t=ba;}return x.concat(aa);},[]);if(u.length>0){var v=u.filter(function(x){return c('CSS').matchesSelector(x,"._3cz5");});if(v.length==1&&u[0].className==="_3cz5"&&u[0].attributes.data.value===n)u.shift();}var w=c('DOM').create('ul',{className:s,id:'typeahead_list_'+c('getOrCreateDOMID')(this.typeahead?this.typeahead:this.element)},u);w.setAttribute('role','listbox');return w;};p.prototype.render=function(q,r,s){'use strict';var t={friends:[],others:[]};r.reduce(function(u,v){if(v.header===m){u.friends.push(v);}else u.others.push(v);return u;},t);r=t.friends.concat(t.others);return l.render.call(this,q,r,s);};function p(){'use strict';k.apply(this,arguments);}f.exports=p;}),null); __d('GroupsAddMessage',['CSS','Event','Toggler','TypeaheadSubmitOnSelect'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={showNUX:true,toggleState:function i(j,k,l){j.init();var m=j.getCore();m.reset();k.value='';if(!c('CSS').hasClass(l,'openToggler')){j.disableBehavior(c('TypeaheadSubmitOnSelect'));m.resetOnSelect=false;}else{j.enableBehavior(c('TypeaheadSubmitOnSelect'));m.resetOnSelect=true;}},initEvents:function i(j,k,l,m,n,o,p){c('Event').listen(j,'click',function(){h.toggleState(n,m,p);});c('Event').listen(k,'click',function(){h.toggleState(n,m,p);c('Toggler').toggle(m);c('Toggler').toggle(o);c('Toggler').toggle(k);});c('Event').listen(l,'success',function(){var q=n.getCore();q.reset();});},initNUXEvent:function i(j,k,l){c('Event').listen(j.getCore().getElement(),'select',function(event){if(k&&h.showNUX){k.show();c('Event').kill(event);h.showNUX=false;}});}};f.exports=h;}),null); __d('GroupsAddMemberTypeahead',['Arbiter','DOM','Typeahead','ge'],(function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(i,j){if(i&&j)this.init(i,j);}Object.assign(h.prototype,{init:function i(j,k){j.subscribe('select',function(l,m){c('Arbiter').inform('GroupsAddMemberTypeahead/add',{gid:k,uid:m.selected.uid,name:m.selected.text,photo:m.selected.photo});});c('Arbiter').subscribe('GroupsAddMemberTypeahead/updateGroupToken',this.resetTypeaheadCaches.bind(this));},resetTypeaheadCaches:function i(j,k){var l=c('DOM').scry(c('ge')('pagelet_group_'),'.uiTypeahead:not(.uiPlacesTypeahead)');for(var m=0;m-1;};j.prototype.addSuggestedMember=function(k){'use strict';var l=parseInt(k,10);this._memberSuggestions.push(l);};j.prototype.removeSuggestedMember=function(k){'use strict';var l=parseInt(k,10),m=this._memberSuggestions.indexOf(l);if(m>-1)this._memberSuggestions.splice(m,1);};f.exports=j;}),null); __d('PopoverMenuDynamicIcon',['csx','Button','CSS','DOM','DOMQuery'],(function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();function i(j){'use strict';this._popoverMenu=j;}i.prototype.enable=function(){'use strict';this._setMenuSubscription=this._popoverMenu.subscribe('setMenu',this._onSetMenu.bind(this));};i.prototype.disable=function(){'use strict';this._popoverMenu.unsubscribe(this._setMenuSubscription);this._setMenuSubscription=null;this._removeChangeSubscription();};i.prototype._onSetMenu=function(){'use strict';this._removeChangeSubscription();this._menu=this._popoverMenu.getMenu();this._changeSubscription=this._menu.subscribe('change',function(j,k){var l=k.item;if(k[0])l=k[0].item;if(!l)return;var m=l.getIcon();m=m?m.cloneNode(true):null;var n=this._popoverMenu.getTriggerElem(),o=c('DOMQuery').scry(n,"span._55pe")[0];if(o){var p=o.firstChild;if(c('CSS').hasClass(p,'img')){c('DOM').replace(p,m);}else c('DOM').prependContent(o,m);}else c('Button').setIcon(n,m);}.bind(this));};i.prototype._removeChangeSubscription=function(){'use strict';if(this._changeSubscription){this._menu.unsubscribe(this._changeSubscription);this._changeSubscription=null;}};Object.assign(i.prototype,{_setMenuSubscription:null,_changeSubscription:null});f.exports=i;}),null); __d('TypeaheadCustomGroupShowMemberSuggestionsOnFocus',['TypeaheadShowResultsOnFocus'],(function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('TypeaheadShowResultsOnFocus'));i=h&&h.prototype;j.prototype.enable=function(){'use strict';i.enable.call(this);this.enableCustomizedFeature();};j.prototype.firstFetch=function(k,l,m){'use strict';setTimeout(function(){i.firstFetch.call(this,k,l,m);}.bind(this),200);};j.prototype.enableCustomizedFeature=function(){'use strict';this._typeahead.subscribe('select',function(k,l){this._typeahead.removeSuggestedMember(l.selected.uid);this.refreshAndShowNeededResults(this._typeahead.getCore(),this._typeahead.getData());}.bind(this));};j.prototype.getUidsFromData=function(k){'use strict';var l=k.getAllEntries(),m=[];for(var n in l)if(this._typeahead.containsInSuggestedMembers(l[n].uid))m.push({uid:l[n].uid,index:l[n].index});m.sort(function(o,p){return o.index-p.index;});return m.map(function(o){return o.uid;});};function j(){'use strict';h.apply(this,arguments);}f.exports=j;}),null); __d('TypeaheadCustomGroupShowMemberSuggestionsOnRHCFocus',['TypeaheadCustomGroupShowMemberSuggestionsOnFocus'],(function a(b,c,d,e,f,g){var h,i;if(c.__markCompiled)c.__markCompiled();h=babelHelpers.inherits(j,c('TypeaheadCustomGroupShowMemberSuggestionsOnFocus'));i=h&&h.prototype;j.prototype.enableCustomizedFeature=function(){'use strict';this._typeahead.subscribe('select',function(k,l){this._typeahead.removeSuggestedMember(l.selected.uid);}.bind(this));};function j(){'use strict';h.apply(this,arguments);}f.exports=j;}),null);