/*!CK:2814359054!*//*1459382573,*/

if (self.CavalryLogger) { CavalryLogger.start_js(["Rm3Sw"]); }

__d("ComposerXAjaxEndpoint",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={ADS_MEDIA_UPLOAD:"\/ajax\/ads\/create\/composerx\/attachment\/media\/upload\/",ADS_ATTACHMENT_STATUS:"\/ajax\/ads\/create\/composerx\/attachment\/status\/",MEDIA_UPLOAD:"\/ajax\/composerx\/attachment\/media\/upload\/",VIDEO_UPLOAD:"\/ajax\/composerx\/attachment\/video\/upload\/"};},null);
__d("ComposerXContextConfig",[],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports={propertyNames:{actorID:"ACTOR_ID",postID:"POST_ID"},propertyValues:{ACTOR_ID:"actorID",POST_ID:"postID"}};},null);
__d('ComposerXAttachmentBootstrap',['csx','cx','CSS','Form','FormSubmit','Parent','URI'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j=[],k={bootstrap:function(l){k.load(c('Parent').byTag(l,'form'),l.getAttribute('data-endpoint'));},load:function(l,m,n){var o=new (c('URI'))(m).addQueryData({composerurihash:k.getURIHash(m)});c('CSS').conditionClass(l,"_fu",n);var p=c('Parent').bySelector(l,"._2_4");c('CSS').removeClass(p,'async_saving');c('Form').setDisabled(l,false);l.action=o.toString();c('FormSubmit').send(l);},getURIHash:function(l){if(l==='initial')return 'initial';var m=j.indexOf(l);if(m!==-1){return m+'';}else{m=j.length;j[m]=l;return m+'';}}};f.exports=k;},null);
__d('ComposerXContext',['invariant','ComposerXContextConfig'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=function(k){return c('ComposerXContextConfig').propertyNames[k];};function j(k){'use strict';this.$ComposerXContext1={};for(var l in k)this.setProperty(l,k[l]);}j.prototype.getProperty=function(k){'use strict';!i(k)?h(0):void 0;return this.$ComposerXContext1[k];};j.prototype.setProperty=function(k,l){'use strict';!i(k)?h(0):void 0;this.$ComposerXContext1[k]=l;return this;};j.PROPERTIES=c('ComposerXContextConfig').propertyValues;f.exports=j;},null);
__d('ComposerXSessionIDInserter',['csx','cx','ComposerXSessionIDs','DOM','DOMQuery','Event','Parent','onEnclosingPageletDestroy'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j={init:function(k){var l=c('Event').listen(k,'submit',j._onSubmit);c('onEnclosingPageletDestroy')(k,function(){l.remove();});},_onSubmit:function(k){j.insertSessionInput(k.getTarget());},insertSessionInput:function(k){var l=c('Parent').bySelector(k,"._119");if(!l)return;var m=c('ComposerXSessionIDs').getSessionID(l.id);if(!m)return;var n=c('DOMQuery').scry(k,"._5r_b")[0];if(!n){c('DOM').prependContent(k,c('ComposerXSessionIDs').createSessionIDInput(m));}else n.value=m;}};f.exports=j;},null);
__d("AudienceSelectorTags",[],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={},i={hasTags:function(j){return h.hasOwnProperty(j);},setHasTags:function(j){if(j)h[j]=true;}};f.exports=i;},null);
__d('DynamicIconSelector',['Button','CSS','DOM','SelectorDeprecated'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={swapIcon:function(i){var j=c('SelectorDeprecated').getSelectedOptions(i)[0],k=j&&c('DOM').scry(j,'.itemIcon')[0],l=c('SelectorDeprecated').getSelectorButton(i);if(k){c('Button').setIcon(l,k.cloneNode(true));}else{var m=c('DOM').scry(l,'.img')[0];m&&c('DOM').remove(m);}c('CSS').conditionClass(l,'uiSelectorChevronOnly',!k);}};c('SelectorDeprecated').subscribe('change',function(i,j){var k=j.selector;if(c('CSS').hasClass(k,'dynamicIconSelector'))h.swapIcon(k);});f.exports=h;},null);
__d('PrivacySelectorOption',['csx','fbt','Arbiter','AudienceSelectorTags','CSS','CurrentUser','DOM','DynamicIconSelector','Parent','PrivacyConst','SelectorDeprecated','intlList'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();function j(k,l){if(!k)throw new Error("there's no DOM option. Config data: ",l);this._elem=k;this._selector=c('Parent').byClass(this._elem,'audienceSelector');if(!this._selector)return;this._priv_base_val=l.priv_base_val;this._audienceCount=l.audience_count||"";this._hasRestricted=l.has_restricted||false;this._isCustom=l.is_custom||false;this._includedAudience=l.included||"";this._excludedAudience=l.excluded||{};this._excludedTaggees={};this._tagExpansionBehavior=l.tag_expansion_behavior||c('PrivacyConst').TagExpansion.NONE;this._plusLabel=c('DOM').scry(k,'.plusLabel')[0];this._audienceCountLabel=c('DOM').scry(k,'.audienceCountLabel')[0];this._taggedIDs=[];this._tags=[];this._recalculateTooltipAndLabel();this._updateOptionCountLabel();this._updateSelector();c('Arbiter').subscribe('Composer/changedtags',function(m,n){var o=c('CSS').hasClass(this._selector,'composerAudienceSelector');if(!this._getChangedData()||!o)return;this._tags=[];this._taggedIDs=[];for(var p=0;p<n.withTags.length;p++){var q=n.withTags[p].info;if(q.uid!=c('CurrentUser').getID()){this._tags.push(q.text);this._taggedIDs.push(q.uid);}}for(p in n.mention)if(n.mention[p].type=='user'&&n.mention[p].uid!=c('CurrentUser').getID()){this._tags.push(n.mention[p].text);this._taggedIDs.push(n.mention[p].uid);}var r=c('DOM').scry(document.body,"._5l7q")[0];r&&!!this._taggedIDs.length&&c('CSS').hide(r);this._updateOptionCountLabel();var s=this._recalculateTooltipAndLabel();if(s&&c('SelectorDeprecated').isOptionSelected(this._elem)){this._updateSelector();c('Arbiter').inform('SelectedPrivacyOption/changed',this._getChangedData());}}.bind(this));c('SelectorDeprecated').listen(this._selector,'change',this._updateSelector.bind(this));}Object.assign(j.prototype,{updateOption:function(k,l,m,n,o){this._priv_base_val=k;this._includedAudience=l;this._excludedAudience=m;this._tagExpansionBehavior=n;this._audienceCount=o;this._recalculateTooltipAndLabel();this._updateOptionCountLabel();return {label:this._label,tooltip:this._tooltip};},_recalculateTooltipAndLabel:function(){var k=this._label;this._label=this._getNewSelectorLabel();var l=this._tooltip;this._tooltip=this._getNewTooltip();return l!=this._tooltip||k!=this._label;},_getNewTooltip:function(){if(this._isCustom)return this._recalcCustomTooltip();switch(this._priv_base_val){case c('PrivacyConst').FriendsValue.ALL_FRIENDS:return this._recalcFriendsTooltip();case c('PrivacyConst').FriendsValue.FRIENDS_MINUS_ACQUAINTANCES:return this._recalcFriendsMinusTooltip();case c('PrivacyConst').FriendsValue.SELF:var k=this._getTagExpansionText();return k?k:this._getIncludedAudience();default:return this._recalcCustomTooltip();}},_getNewSelectorLabel:function(){var k=this._elem.getAttribute('data-label').replace(/\(.*\)/,"");if(this._showAudienceCount()){var l=' ('+this._audienceCount+')';k+=l;}if(this._isTagExpanded())k+=' (+)';return k;},_updateOptionCountLabel:function(){if(this._audienceCountLabel){if(this._showAudienceCount()){var k=' ('+this._audienceCount+')';c('DOM').setContent(this._audienceCountLabel,k);}c('CSS').conditionShow(this._audienceCountLabel,this._showAudienceCount());}this._plusLabel&&c('CSS').conditionShow(this._plusLabel,this._isTagExpanded());},_getChangedData:function(){return {tags:this._taggedIDs,privacy:this._priv_base_val};},_showAudienceCount:function(){return this._audienceCountLabel&&this._audienceCount&&this._audienceCount.length>0;},_isTagExpanded:function(){var k=this._getTagExpansionBehavior(),l=!!this._taggedIDs.length||this._alreadyHasTags();return l&&k!=c('PrivacyConst').TagExpansion.NONE;},_alreadyHasTags:function(){var k=c('DOM').scry(this._selector,'*[data-oid]')[0];k=k&&k.getAttribute('data-oid');return k&&c('AudienceSelectorTags').hasTags(k);},_updateSelector:function(){if(!this._isSharedAlbum()&&c('SelectorDeprecated').isOptionSelected(this._elem)){var k=c('CSS').hasClass(this._selector,'composerAudienceSelector');k&&c('SelectorDeprecated').setButtonLabel(this._selector,this._label);c('SelectorDeprecated').setButtonTooltip(this._selector,this._tooltip);c('DynamicIconSelector').swapIcon(this._selector);return false;}return true;},_isSharedAlbum:function(){var k=c('DOM').scry(this._selector,'*[data-shared-album]')[0];return k&&k.getAttribute('data-shared-album');},_getTagExpansionBehavior:function(){if(this._tagExpansionBehavior)return this._tagExpansionBehavior;var k=this._priv_base_val===c('PrivacyConst').FriendsValue.SELF,l=this._priv_base_val===c('PrivacyConst').FriendsValue.EVERYONE;if(k&&this._isSharedAlbum()||l){return c('PrivacyConst').TagExpansion.NONE;}else if(this._priv_base_val<c('PrivacyConst').FriendsValue.ALL_FRIENDS)return c('PrivacyConst').TagExpansion.TAGGEES;return c('PrivacyConst').TagExpansion.FRIENDS_OF_TAGGEES;},_getTagExpansionText:function(){var k=this._getTagExpansionBehavior();if(!!this._taggedIDs.length||this._alreadyHasTags()){if(k==c('PrivacyConst').TagExpansion.FRIENDS_OF_TAGGEES){return i._("friends of anyone tagged");}else if(k==c('PrivacyConst').TagExpansion.TAGGEES)return i._("Anyone tagged");return '';}return '';},_getIncludedAudience:function(){if(this._includedAudience)return this._includedAudience;var k=this._priv_base_val===c('PrivacyConst').FriendsValue.SELF;if(k&&!this._isSharedAlbum())return i._("Only Me");return this._elem.getAttribute('data-label');},_getCombinedSentence:function(k,l){if(!l)return k;return i._("{list of people who can see this}; Except: {list of people who cannot see this}",[i.param('list of people who can see this',k),i.param('list of people who cannot see this',l)]);},_recalcFriendsTooltip:function(){var k=this._tags.length;if(k>2){return this._hasRestricted?i._("Your friends and friends of anyone tagged; Except: Restricted"):i._("Your friends and friends of anyone tagged");}else if(k==2){if(this._hasRestricted){return i._("Your friends, {user}'s friends and {user2}'s friends; Except: Restricted",[i.param('user',this._tags[0]),i.param('user2',this._tags[1])]);}else return i._("Your friends, {user}'s friends and {user2}'s friends",[i.param('user',this._tags[0]),i.param('user2',this._tags[1])]);}else if(k==1){if(this._hasRestricted){return i._("Your friends and {user}'s friends; Except: Restricted",[i.param('user',this._tags[0])]);}else return i._("Your friends and {user}'s friends",[i.param('user',this._tags[0])]);}else return this._hasRestricted?i._("Your friends; Except: Restricted"):i._("Your friends");},_recalcFriendsMinusTooltip:function(){var k=this._tags.length;if(k>0||this._alreadyHasTags()){var l=i._("friends of anyone tagged"),m=i._("{people who can see this}, {list of more people who can see this}",[i.param('people who can see this',i._("Your friends")),i.param('list of more people who can see this',l)]),n=i._("Acquaintances");if(this._hasRestricted)n=i._("{Name of Acquaintances friend list}, {restricted}",[i.param('Name of Acquaintances friend list',n),i.param('restricted',i._("Restricted"))]);return this._getCombinedSentence(m,n);}else{if(this._hasRestricted)return i._("Friends; Except: Acquaintances, Restricted");return i._("Friends except Acquaintances");}},_recalcCustomTooltip:function(){var k=this._getIncludedAudience(),l=this._getTagExpansionText();if(l)k=i._("{list of people who can see this}, {list of additional people who can see this}",[i.param('list of people who can see this',k),i.param('list of additional people who can see this',l)]);for(var m=0;m<this._taggedIDs.length;m++){n=this._taggedIDs[m];if(n in this._excludedAudience){delete this._excludedAudience[n];this._excludedTaggees[n]=this._tags[m];break;}}for(var n in this._excludedTaggees)if(this._excludedTaggees.hasOwnProperty(n))if(this._taggedIDs.indexOf(n)===-1){this._excludedAudience[n]=this._excludedTaggees[n];delete this._excludedTaggees[n];break;}var o=[];for(m in this._excludedAudience)if(this._excludedAudience.hasOwnProperty(m))o.push(this._excludedAudience[m]);return this._getCombinedSentence(k,c('intlList')(o));}});f.exports=j;},null);
__d('CustomPrivacyOptionController',['Arbiter','AsyncDialog','AsyncRequest','DOM','Event','Form','Parent','PrivacyConst','PrivacySelectorOption','SelectorDeprecated','XPrivacyCustomDialogController'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();function h(i,j){if(!i)return;setTimeout(function(){this._selector=c('Parent').byClass(i,'audienceSelector');if(!this._selector)return;this.initCustomState(i,j.option_id,j.id);var k={priv_base_val:j.base_audience_value,audience_count:j.audience_count,is_custom:true,included:j.included_audience,excluded:j.excluded_audience,tag_expansion_behavior:j.tag_expansion_behavior};this._optionJSInstance=new (c('PrivacySelectorOption'))(i,k);c('Event').listen(i,'click',function(event){this.openCustomDialog(event,j.option_id,j.explain_tags,j.autosave,j.limit_community,j.limit_facebook,j.limit_fof,j.limit_tagexpand,j.source);}.bind(this));c('SelectorDeprecated').listen(this._selector,'select',function(l){if(l.option._id!=this._id)this.clearCustomState();}.bind(this));}.bind(this),0);}Object.assign(h,{_instances:{},update:function(i,j,k,l,m,n,o,p,q){var r=h._instances[i];r._update(j,k)._updateOption(k,m,n,o,p,q);c('Arbiter').inform('Form/change',{node:r._container});},getData:function(i){var j=h._instances[i];return j&&j._privacyData;},setPrivacyData:function(i,j,k){h._instances[i]._update(j,k);}});Object.assign(h.prototype,{_updateOption:function(i,j,k,l,m,n){var o=c('SelectorDeprecated').getOption(this._selector,i)||c('SelectorDeprecated').getOption(this._selector,c('PrivacyConst').BaseValue.CUSTOM+''),p=this._optionJSInstance.updateOption(j,k,l,m,n);c('Arbiter').inform('CustomPrivacyOptionController/update',{selector:this._selector,option:o,tooltip:p.tooltip,label:p.label});return this;},_update:function(i,j){var k=j==c('PrivacyConst').BaseValue.CUSTOM||!c('SelectorDeprecated').getOption(this._selector,j),l=this._selector.getAttribute('data-name');this.updateCustomState(i,k,l);return this;},initCustomState:function(i,j,k){h._instances[j]=this;this._container=c('DOM').find(i,'.customPrivacyInputs');this._id=k;this._privacyData={};var l=c('Form').serialize(this._container);if(l.audience)this._privacyData=l.audience[k];return i;},openCustomDialog:function(event,i,j,k,l,m,n,o,p){var q=c('XPrivacyCustomDialogController').getURIBuilder().setString('option_id',i).setString('id',this._id).setString('privacy_data',JSON.stringify(this._privacyData)).setBool('explain_tags',j).setBool('autosave',k).setBool('limit_community',l).setBool('limit_facebook',m).setBool('limit_fof',n).setBool('limit_tagexpand',o).setBool('is_new_privacy_selector',false).setString('source',p).getURI(),r=new (c('AsyncRequest'))(q);r.setRelativeTo(event.getTarget());c('AsyncDialog').send(r,function(s){s.subscribe('cancel',function(){c('Arbiter').inform('CustomPrivacyOptionController/cancel',{selector:this._selector});}.bind(this));}.bind(this));},updateCustomState:function(i,j,k){this.clearCustomState();this._privacyData=babelHelpers['extends']({},i);if(j)if(k){k=k.slice(0,-'[value]'.length);var l={};l[k]=i;c('Form').createHiddenInputs(l,this._container,{},true);}},clearCustomState:function(){this._privacyData={};c('DOM').empty(this._container);}});f.exports=h;},null);
__d('AudienceSelector',['Arbiter','AsyncRequest','AudienceSelectorTags','CSS','CustomPrivacyOptionController','DOM','DynamicIconSelector','PrivacyConst','SelectorDeprecated'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h={};c('SelectorDeprecated').subscribe('select',function(j,k){if(!c('CSS').hasClass(k.selector,'audienceSelector'))return;var l=c('SelectorDeprecated').getOptionValue(k.option);k.value=l;c('Arbiter').inform('AudienceSelector/changed',k);if(l==c('PrivacyConst').BaseValue.CUSTOM&&!c('CSS').hasClass(k.option,'noDialog')){c('SelectorDeprecated').toggle(k.selector);return false;}c('Arbiter').inform('AudienceSelector/changedNonCustomDialogButton',k);if(c('CSS').hasClass(k.selector,'dataTooltip')){var m=c('DOM').find(k.option,'.itemAnchor').getAttribute('data-tooltip');c('SelectorDeprecated').setButtonTooltip(k.selector,m||null);}if(!c('CSS').hasClass(k.option,'specialOption'))return;var n=c('DOM').find(k.option,'a').getAttribute('data-type');if(c('CSS').hasClass(k.option,'moreOption')){c('CSS').addClass(k.selector,n);c('CSS').addClass(k.selector,'showSecondaryOptions');return false;}else if(c('CSS').hasClass(k.option,'returnOption')){c('CSS').removeClass(k.selector,'showSecondaryOptions');c('CSS').removeClass(k.selector,'friendList');return false;}});var i={keepSynchronized:function(j,k){h[j]||(h[j]={});h[j][k.id]=k;},setHasTags:function(j){c('AudienceSelectorTags').setHasTags(j);},getComposerInstance:function(){var j=h['PrivacyLiteNav/audience'];if(j){var k;for(var l in j){k=j[l];return k;}}return null;},forceAndKeepSynchronized:function(j,k){i.keepSynchronized(j,k);c('Arbiter').inform('AudienceSelector/update',{option:c('SelectorDeprecated').getSelectedOptions(k)[0],selector:k});},get:function(j){if(c('CSS').hasClass(j,'audienceSelector'))return j;var k=c('DOM').scry(j,'div.audienceSelector');if(k.length!=1)return;return k[0];},setAudience:function(j,k){var l=i.get(j);c('SelectorDeprecated').loadMenu(l,function(m){c('SelectorDeprecated').setSelected(l,k.toString());c('DynamicIconSelector').swapIcon(l);var n=c('SelectorDeprecated').getSelectedOptions(l),o=n[0]&&c('DOM').find(n[0],'a');if(o&&o.getAttribute('ajaxify'))c('AsyncRequest').bootstrap(o.getAttribute('ajaxify'),o,true);c('Arbiter').inform('AudienceSelector/changed',{option:n[0],selector:l});});}};c('Arbiter').subscribe('CustomPrivacyOptionController/update',function(j,k){if(!c('CSS').hasClass(k.selector,'audienceSelector'))return;c('SelectorDeprecated').setSelected(k.selector,c('SelectorDeprecated').getOptionValue(k.option));c('DynamicIconSelector').swapIcon(k.selector);var l=c('CSS').hasClass(k.selector,'composerAudienceSelector');if(l)c('SelectorDeprecated').setButtonLabel(k.selector,k.label);c('SelectorDeprecated').setButtonTooltip(k.selector,k.tooltip);c('Arbiter').inform('AudienceSelector/update',k);});c('Arbiter').subscribe(['AudienceSelector/changed','AudienceSelector/update'],function(event,j){var k=c('SelectorDeprecated').getOptionValue(j.option),l={};if(k==c('PrivacyConst').BaseValue.CUSTOM){if(event=='AudienceSelector/changed')return;l=c('CustomPrivacyOptionController').getData(j.option.id);if(!l)return;}for(var m in h){var n=h[m];if(n[j.selector.id]){c('Arbiter').inform('AudienceSelector/syncNonSelectorIcon',{category:m});for(var o in n){var p=n[o];if(!p||j.selector===p)continue;if(c('SelectorDeprecated').getValue(p)!==k){c('SelectorDeprecated').setSelected(p,k);c('DynamicIconSelector').swapIcon(p);}if(k==c('PrivacyConst').BaseValue.CUSTOM){var q=c('SelectorDeprecated').getOption(p,c('PrivacyConst').BaseValue.CUSTOM+'');if(q){c('CustomPrivacyOptionController').setPrivacyData(q.id,l,k);c('SelectorDeprecated').setButtonTooltip(p,j.tooltip);}}}}}});f.exports=i;},null);
__d("XStickyComposerChangeController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/privacy\/sticky_composer\/change\/",{privacyx:{type:"String"},logging_source:{type:"String"}});},null);
__d('PrivacySelector',['csx','cx','Arbiter','ArbiterMixin','AsyncRequest','AudienceSelector','CSS','DOM','PrivacyConst','DataStore','PrivacySelectorNewDispatcher','Run','SelectorDeprecated','SubscriptionsHandler','XStickyComposerChangeController','mixin'],function a(b,c,d,e,f,g,h,i){var j,k;if(c.__markCompiled)c.__markCompiled();j=babelHelpers.inherits(l,c('mixin')(c('ArbiterMixin')));k=j&&j.prototype;function l(m,n){'use strict';k.constructor.call(this);this.$PrivacySelector1=n;if(n){this.$PrivacySelector2=m;}else this.$PrivacySelector3=m;this.$PrivacySelector4=null;this.$PrivacySelector5=new (c('SubscriptionsHandler'))();this.$PrivacySelector6=new (c('SubscriptionsHandler'))();if(this.$PrivacySelector1){this.$PrivacySelector7();}else this.$PrivacySelector8();c('Run').onLeave(this.cleanup.bind(this));}l.prototype.select=function(m,n,o){'use strict';if(!m||!n)throw new Error('PrivacySelector.select: you must pass in privacyParam '+'and privacyBase');if(this.$PrivacySelector1){if(o)this.$PrivacySelector5.addSubscriptions(this.$PrivacySelector2.subscribeOnce('changed',function(p,q){o('changed',{post_param:q.post_param});}));this.$PrivacySelector2.selectOption(m);}else{if(o)this.$PrivacySelector6.addSubscriptions(c('Arbiter').subscribe('AudienceSelector/changed',function(p,q){if(this.$PrivacySelector9(q.selector)){var r=c('SelectorDeprecated').getOptionValue(q.option);o('changed',{privacy_base:r});}}.bind(this)));c('AudienceSelector').setAudience(this.$PrivacySelector3,n);}};l.prototype.expandFull=function(m){'use strict';if(this.$PrivacySelector1){this.$PrivacySelector2.openSelectorExpanded(m);}else this.expand(m);};l.prototype.expandFullAndShowFlyout=function(m){'use strict';this.expandFull(this.showFlyoutOnMenu.bind(this,m));};l.prototype.expand=function(m){'use strict';if(this.$PrivacySelector1){this.$PrivacySelector2.openSelector(m);}else{var n=c('SelectorDeprecated').getSelectorMenu(this.$PrivacySelector3);if(!n){c('SelectorDeprecated').loadMenu(this.$PrivacySelector3,function(){m&&m();});}else this.$PrivacySelector6.addSubscriptions(c('SelectorDeprecated').listen(this.$PrivacySelector3,'open',function(){m&&m();this.$PrivacySelector9(this.$PrivacySelector3);}.bind(this)));c('SelectorDeprecated').toggle(this.$PrivacySelector3,m);}};l.prototype.showFlyoutOnMenu=function(m){'use strict';this.$PrivacySelector10&&this.$PrivacySelector10.hide();this.$PrivacySelector10=m;var n;if(this.$PrivacySelector1){n=this.$PrivacySelector2.getMenuElement();m.setOffsetY(85);}else{n=c('DOM').scry(this.$PrivacySelector3,'div.uiSelectorMenuWrapper')[0];m.setOffsetY(13);}m.setContext(n);m.show();};l.prototype.setOnClose=function(m){'use strict';this.$PrivacySelector4=m;};l.prototype.cleanup=function(){'use strict';this.$PrivacySelector5.release();this.$PrivacySelector5=new (c('SubscriptionsHandler'))();this.$PrivacySelector6.release();this.$PrivacySelector6=new (c('SubscriptionsHandler'))();this.$PrivacySelector10&&this.$PrivacySelector10.hide();this.$PrivacySelector10=null;this.$PrivacySelector4=null;};l.prototype.disable=function(){'use strict';if(this.$PrivacySelector1){this.$PrivacySelector2.getPopoverMenu().disable();}else c('SelectorDeprecated').setEnabled(this.$PrivacySelector3,false);};l.prototype.enable=function(){'use strict';if(this.$PrivacySelector1){this.$PrivacySelector2.getPopoverMenu().enable();}else c('SelectorDeprecated').setEnabled(this.$PrivacySelector3,true);};l.get=function(m){'use strict';if(!m)return;var n=c('DataStore').get(m,'selector');if(!n){m=l.getDOMFromStory(m);if(!m)return;n=c('DataStore').get(m,'selector');}if(n)return new l(n,true);return new l(m,false);};l.getAdamaSelectorInstance=function(m){'use strict';if(!m)return;var n=c('DataStore').get(m,'selector');if(!n){m=l.getDOMFromStory(m);if(!m)return;n=c('DataStore').get(m,'selector');}return n;};l.getDOMFromStory=function(m){'use strict';if(!m)return;var n=c('DOM').scry(m,"._43_1")[0];if(n)return n;return c('AudienceSelector').get(m);};l.getIconFromSelectorDOM=function(m){'use strict';return c('DOM').scry(m,'i.img')[0];};l.setComposerPrivacy=function(m,n,o){'use strict';var p=c('XStickyComposerChangeController').getURIBuilder().setString('privacyx',m);o&&p.setString('logging_source',o);new (c('AsyncRequest'))(p.getURI()).send();c('PrivacySelectorNewDispatcher').handleUpdateFromSelector({selector_type:c('PrivacyConst').PrivacyField.CURRENT_COMPOSER,post_param:m,unique_value:'_updateStickyComposerPrivacy'});var q=c('AudienceSelector').getComposerInstance(n);if(q)c('AudienceSelector').setAudience(q,n);};l.isFakeOrUneditableSelector=function(m){'use strict';return (c('CSS').matchesSelector(m,"._2qwi")||c('CSS').matchesSelector(m,"._29ee")||c('CSS').matchesSelector(m,"._jl")||c('DOM').scry(m,"._2qwi")[0]||c('DOM').scry(m,"._29ee")[0]||c('DOM').scry(m,"._jl")[0]);};l.prototype.$PrivacySelector7=function(){'use strict';this.$PrivacySelector5.addSubscriptions(this.$PrivacySelector2.subscribe('changed',function(m,n){this.inform('changed',{post_param:n.post_param});}.bind(this)),this.$PrivacySelector2.subscribe('selectorFinished',function(){this.$PrivacySelector4&&this.$PrivacySelector4();}.bind(this)));};l.prototype.$PrivacySelector8=function(){'use strict';this.$PrivacySelector5.addSubscriptions(c('Arbiter').subscribe('AudienceSelector/update',function(m,n){if(this.$PrivacySelector3!==n.selector)return;var o=c('SelectorDeprecated').getOptionValue(n.option);this.inform('changed',{privacy_base:o});}.bind(this)),c('Arbiter').subscribe('AudienceSelector/changed',function(m,n){if(this.$PrivacySelector3!==n.selector)return;if(c('CSS').hasClass(n.option,'moreOption')||c('CSS').hasClass(n.option,'returnOption'))return;if(n.value!=c('PrivacyConst').BaseValue.CUSTOM){this.inform('changed',{privacy_base:n.value});}else if(n.value==c('PrivacyConst').BaseValue.CUSTOM)this.$PrivacySelector11=true;}.bind(this)),c('SelectorDeprecated').listen(this.$PrivacySelector3,'close',function(){if(this.$PrivacySelector11){this.$PrivacySelector11=false;return;}this.$PrivacySelector4&&this.$PrivacySelector4();}.bind(this)),c('Arbiter').subscribe('CustomPrivacyOptionController/cancel',function(m,n){if(this.$PrivacySelector3!==n.selector)return;this.$PrivacySelector4&&this.$PrivacySelector4();}.bind(this)));};l.prototype.$PrivacySelector9=function(m){'use strict';if(m!=this.$PrivacySelector3)return false;this.$PrivacySelector6.release();this.$PrivacySelector6=new (c('SubscriptionsHandler'))();return true;};f.exports=l;},null);
__d('ComposerX',['csx','cx','ActorURI','Arbiter','ComposerXAttachmentBootstrap','ComposerXContext','ComposerXMarauderLogger','ComposerXSessionIDs','ComposerXSessionIDInserter','ComposerXStore','CSS','DOM','DOMQuery','PrivacyConst','PrivacySelector','PrivacySelectorNewDispatcher','URI','SubscriptionsHandler','arrayContains','getObjectValues','removeFromArray'],function a(b,c,d,e,f,g,h,i){if(c.__markCompiled)c.__markCompiled();var j='any';function k(l){'use strict';this._root=l;this._composerID=l.id;this._attachments={};this._context=new (c('ComposerXContext'))({});c('ComposerXSessionIDs').resetSessionID(this._composerID);c('ComposerXSessionIDInserter').init(this._root);this._subscriptionsHandler=new (c('SubscriptionsHandler'))();this._subscriptionsHandler.addSubscriptions(c('Arbiter').subscribe(['composer/publish','composer/close'],function(m,n){if(n.composer_id===this._composerID){this.reset();var o=c('DOMQuery').scry(l,'.hidden_target_specs');if(o&&o.length)o.forEach(c('DOM').remove);c('Arbiter').inform('composer/publishDone',n);}}.bind(this)));this._subscriptionsHandler.addSubscriptions.apply(this._subscriptionsHandler,c('ComposerXMarauderLogger').listenForPostEvents(this._composerID,this._getContent()));this._attachmentFetchForm=c('DOMQuery').find(l,"._2_4");c('Arbiter').inform('composer/ready',{},c('Arbiter').BEHAVIOR_STATE);}k.prototype.getAttachment=function(l,m,n,o){'use strict';l=this._augmentURI(l);var p=c('ComposerXAttachmentBootstrap').getURIHash(l);this._endpointHashToShow=p;var q=this._attachments[p];if(q&&!o){this._showAttachmentAfterComponentsLoaded(p,n);}else this.fetchAttachmentData(l,m,o);};k.prototype.fetchAttachmentData=function(l,m,n){'use strict';l=this._augmentURI(l);var o=c('ComposerXAttachmentBootstrap').getURIHash(l);if(this._attachments[o]&&!n)return;if(!c('arrayContains')(this._currentFetchEndpoints,o)){c('ComposerXAttachmentBootstrap').load(this._attachmentFetchForm,l,m);this._currentFetchEndpoints.push(o);}};k.prototype.setAttachment=function(l,m,n,o){'use strict';c('removeFromArray')(this._currentFetchEndpoints,l);this._setupAttachment(l,m,n,o);this._showAttachmentAfterComponentsLoaded(l,false);};k.prototype.setInitialAttachment=function(l,m,n,o,p){'use strict';if(p)this._context=p;l=this._augmentURI(l);var q=c('ComposerXAttachmentBootstrap').getURIHash(l);this._setupAttachment(q,m,n,o);this._initialAttachmentEndpoint=l;if(!this._currentInstance)this._showAttachmentAfterComponentsLoaded(q,true);};k.prototype.setComponent=function(l,m){'use strict';if(!c('ComposerXStore').get(this._composerID,l)){c('ComposerXStore').set(this._composerID,l,m);c('DOM').appendContent(this._attachmentFetchForm,c('DOM').create('input',{type:'hidden',name:'loaded_components[]',value:l}));}};k.prototype.reset=function(){'use strict';if(this._currentInstance){this._currentInstance.cleanup();this._currentInstance=null;}c('ComposerXSessionIDs').resetSessionID(this._composerID);for(var l in this._attachments)this._attachments[l].instance.reset();var m=c('ComposerXStore').getAllForComposer(this._composerID);c('getObjectValues')(m).forEach(function(q){if(q.reset)q.reset(q);});var n=c('PrivacySelector').getAdamaSelectorInstance(c('DOM').scry(this._root,"div._1lo2")[0]),o=c('ComposerXStore').get(this._composerID,'mainprivacywidget'),p=o&&o.instance&&o.instance.getInstance();if(n){p.setInstance(n);}else n=p&&p.getInstance();if(n&&n.shouldReplaceOnPost())if(n.isComposerWithDefault()){n.selectDefaultOption();c('PrivacySelectorNewDispatcher').handleUpdateFromSelector({selector_type:c('PrivacyConst').PrivacyField.DEFAULT_COMPOSER.toString(),post_param:'',unique_id:'_reloadDefaultSelectors',reload:true});}else c('PrivacySelectorNewDispatcher').handleUpdateFromSelector({selector_type:c('PrivacyConst').PrivacyField.CURRENT_COMPOSER.toString(),post_param:'',unique_id:'_reloadStickySelectors',reload:true});this.getAttachment(this._initialAttachmentEndpoint,false,true);c('Arbiter').inform('composer/reset');};k.prototype.destroy=function(){'use strict';this._subscriptionsHandler.release();};k.prototype.addPlaceholders=function(l,m){'use strict';var n;for(var o in this._attachments){n=this._attachments[o];if(n.instance===l){m.forEach(function(p){n.placeholders.push(p);n.required_components.push(p.component_name);});break;}}if(this._currentInstance===l)this._fillPlaceholders(m);};k.prototype.hasAttachmentWithClassName=function(l){'use strict';return c('DOMQuery').scry(this._root,'.'+l).length>0;};k.prototype.showAttachmentThrobber=function(){'use strict';c('CSS').addClass(this._attachmentFetchForm,'async_saving');};k.prototype.hideAttachmentThrobber=function(){'use strict';c('CSS').removeClass(this._attachmentFetchForm,'async_saving');};k.prototype.getContext=function(){'use strict';return this._context;};k.prototype.getID=function(){'use strict';return this._composerID;};k.prototype._setupAttachment=function(l,m,n,o){'use strict';m.setComposerID(this._composerID);this._attachments[l]={instance:m,placeholders:n,required_components:o};var p=this._getContent(),q=m.getRoot();if(q.parentNode!==p){c('CSS').hide(q);c('DOM').appendContent(p,q);}};k.prototype._getContent=function(){'use strict';return c('DOMQuery').find(this._root,"div._55d0");};k.prototype._showAttachment=function(l,m,n,o){'use strict';if(this._currentInstance===l)return;if(this._endpointHashToShow===j){this._endpointHashToShow=null;}else if(this._endpointHashToShow!==m)return;if(this._currentInstance){if(!this._currentInstance.canSwitchAway())return;this._currentInstance.cleanup();}this._currentInstance=l;var p=this._getContent().childNodes,q=l.getRoot();for(var r=0;r<p.length;r++)if(p[r]!==q)c('CSS').hide(p[r]);c('CSS').show(q);this._fillPlaceholders(n);l.initWithComponents(o);this._setAttachmentSelectedClass(l.attachmentClassName);c('Arbiter').inform('composer/initializedAttachment',{composerRoot:this._root,isInitial:o});};k.prototype._showAttachmentAfterComponentsLoaded=function(l,m){'use strict';var n=this._attachments[l];c('ComposerXStore').waitForComponents(this._composerID,n.required_components,this._showAttachment.bind(this,n.instance,l,n.placeholders,m));};k.prototype._fillPlaceholders=function(l){'use strict';l.forEach(function(m){var n=c('ComposerXStore').get(this._composerID,m.component_name);if(n.element&&m.element!==n.element.parentNode)c('DOM').setContent(m.element,n.element);}.bind(this));};k.prototype._setAttachmentSelectedClass=function(l){'use strict';var m=c('DOMQuery').scry(this._root,"._519b")[0],n;if(m){c('CSS').removeClass(m,"_519b");n=c('DOMQuery').scry(m,'*[aria-pressed="true"]')[0];if(n)n.setAttribute('aria-pressed','false');}if(l){var o=c('DOMQuery').scry(this._root,'.'+l)[0];if(o){c('CSS').addClass(o,"_519b");n=c('DOMQuery').scry(o,'*[aria-pressed="false"]')[0];if(n)n.setAttribute('aria-pressed','true');}}};k.prototype._augmentURI=function(l){'use strict';var m=this._context.getProperty(c('ComposerXContext').PROPERTIES.ACTOR_ID),n=m?c('ActorURI').create(l,m):new (c('URI'))(l),o=this._context.getProperty(c('ComposerXContext').PROPERTIES.POST_ID);if(o)n.addQueryData('post_id',o);return n.toString();};Object.assign(k.prototype,{_endpointHashToShow:j,_currentFetchEndpoints:[],_initialAttachmentEndpoint:''});f.exports=k;},null);
__d('registerForLeaveWarning',['fbt','Run','URI','createCancelableFunction'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();function i(k){var l=c('URI').getNextURI(),m=c('createCancelableFunction')(k);c('Run').onBeforeUnload(function(){return j(m,l);});return m;}function j(k,l){var m=c('URI').getMostRecentURI(),n=c('URI').getNextURI(),o=m.getQueryData().hasOwnProperty('theater')&&l.path===n.path,p=n.getQueryData().hasOwnProperty('theater'),q=b.DialogNavigationStack&&b.DialogNavigationStack.isActiveURI(n);if(o||p||q){c('Run').onAfterLoad(function(){c('Run').onBeforeUnload(function(){return j(k,l);});});return;}if(b.Dialog&&b.Dialog.getCurrent())return;if(k())return h._("You haven't finished your post yet. Do you want to leave without finishing?");}f.exports=i;},null);
__d('ComposerXController',['csx','cx','invariant','ActorURI','Arbiter','ComposerX','ComposerXAttachmentBootstrap','ComposerXContext','ComposerXMarauderLogger','Event','Parent','$','emptyFunction','ge','registerForLeaveWarning'],function a(b,c,d,e,f,g,h,i,j){if(c.__markCompiled)c.__markCompiled();var k={},l={},m={};function n(r){var s=c('ge')(r);if(!s)return null;var t=c('Parent').bySelector(c('$')(r),"._119"),u=t.id;if(!m[u])m[u]=new (c('ComposerX'))(t);return m[u];}function o(r){var s=n(r);!(s!==null)?j(0):void 0;return s;}function p(r){if(!l[r])return;l[r].forEach(function(s){return s.cancel();});delete l[r];}var q={registerConditionForComposerCancel:function(r,s){var t=o(r).getID();if(!(t in k))k[t]=[];k[t].push(s);if(!(t in l))l[t]=[];l[t].push(c('registerForLeaveWarning')(s));},hasChanges:function(r){var s=k[r];if(!s)return false;return s.some(function(t){return t();});},getAttachment:function(r,s,t,u){var v=o(r);v.getAttachment(s,t,null,u);},fetchAttachmentData:function(r,s,t){o(r).fetchAttachmentData(s,t);},setAttachment:function(r,s,t,u,v){var w=n(r);if(w)w.setAttachment(s,t,u,v);},setInitialAttachment:function(r,s,t,u,v,w){var x=o(r);x.setInitialAttachment(s,t,u,v,w);},setComponent:function(r,s,t){var u=n(r);if(u)u.setComponent(s,t);},reset:function(r){var s=o(r);s.reset();},holdTheMarkup:c('emptyFunction'),getEndpoint:function(r,s,t){var u=o(r),v=u.getContext();s=c('ActorURI').create(s,v.getProperty(c('ComposerXContext').PROPERTIES.ACTOR_ID)).toString();c('ComposerXAttachmentBootstrap').load(u._attachmentFetchForm,s,t);},addPlaceholders:function(r,s,t){var u=o(r);u.addPlaceholders(s,t);},hasAttachmentWithClassName:function(r,s){var t=o(r);return t.hasAttachmentWithClassName(s);},showAttachmentThrobber:function(r){var s=o(r);s.showAttachmentThrobber();},hideAttachmentThrobber:function(r){var s=o(r);s.hideAttachmentThrobber();},logEventForElement:function(r,s){c('Event').listen(r,'click',function(){var t=q.getComposerID(r);c('ComposerXMarauderLogger').logEvent(s,t);});},getComposerID:function(r){return o(r).getID();},destroyComposer:function(r){if(!(r in m))return;m[r].destroy();delete m[r];delete k[r];p(r);}};c('ComposerXAttachmentBootstrap').bootstrap=function(r){q.getAttachment(r,r.getAttribute('data-endpoint'));};c('Arbiter').subscribe('page_transition',function(){for(var r in m)if(!c('ge')(r))q.destroyComposer(r);});f.exports=q;},null);
__d('QE',['Banzai','Cache'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h='qe_log_exposure',i=60,j=new (c('Cache'))(),k={logExposure:function(l,m){var n=m?l+'|'+m:l;if(j.has(n))return;var o={signal:true},p={name:l,id:null};if(m)p.id=m;c('Banzai').post(h,p,o);j.set(n,true,1,i);}};f.exports=k;},null);
__d("isAnimatedGif",["Promise"],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=1e+06;function i(m){return m[0]===71&&m[1]===73&&m[2]===70;}function j(m,n){return m[n]===0&&m[n+1]===33&&m[n+2]===249&&m[n+3]===4&&m[n+8]===0&&(m[n+9]===44||m[n+9]===33);}function k(m){if(!i(m))return false;var n=0;for(var o=0;o+9<m.length;++o){if(j(m,o))n++;if(n>1)return true;}return false;}function l(m){return new (c("Promise"))(function(n){var o=new FileReader();o.onloadend=function(r){if(r.target.readyState==FileReader.DONE){var s=new Uint8Array(r.target.result);if(k(s)){n(true);}else n(false);}};o.onerror=function(r){n(false);};var p=Math.min(h,m.size),q=m.slice(0,p);o.readAsArrayBuffer(q);});}f.exports=l;},null);
__d('ComposerXMediaUploadHandler',['fbt','Arbiter','AsyncRequest','ComposerXAjaxEndpoint','ComposerXController','CSS','Dialog','ImageExtensions','QE','ReloadPage','SubscriptionsHandler','URI','VideoUploadConfig','VideoUploadFile','isAnimatedGif'],function a(b,c,d,e,f,g,h){if(c.__markCompiled)c.__markCompiled();var i=c('ComposerXAjaxEndpoint').MEDIA_UPLOAD,j='/ajax/composerx/attachment/video/upload/',k=0;function l(m,n){'use strict';this.$ComposerXMediaUploadHandler1=m;this.$ComposerXMediaUploadHandler2=n;}l.prototype.fetchAttachments=function(){'use strict';[this.getPhotoUploadAttachmentEndpoint(),j].forEach(function(m){c('ComposerXController').fetchAttachmentData(this.$ComposerXMediaUploadHandler1,m);}.bind(this));};l.prototype.handleFileSelected=function(m){'use strict';var n=this;l.isVideoOrAnimatedGifAsync(m,function(o){if(o){n.handleVideoSelected(m);}else n.handlePhotoSelected(m);});};l.canUploadAnimatedGIF=function(){'use strict';return c('ImageExtensions').GIF in c('VideoUploadConfig').videoExtensions;};l.isVideoOrAnimatedGifAsync=function(m,n){'use strict';var o=c('VideoUploadFile').getExtensionFromFileInput(m.getInput());if(l.canUploadAnimatedGIF()&&o===c('ImageExtensions').GIF){c('isAnimatedGif')(m.getInput().files[0]).then(n);}else if(c('VideoUploadConfig').videoExtensions[o]){n(true);}else n(false);};l.prototype.$ComposerXMediaUploadHandler3=function(){'use strict';c('QE').logExposure('www_videos_user_upload_flow');};l.prototype.handleVideoSelected=function(m){'use strict';this.$ComposerXMediaUploadHandler3();if(this.$ComposerXMediaUploadHandler2&&this.$ComposerXMediaUploadHandler2.imagesOnly){var n=new (c('Dialog'))().setModal(true).setButtons([c('Dialog').OK]);if(this.$ComposerXMediaUploadHandler2.isEditComposer){n.setTitle(h._("Can't add video")).setBody(h._("Sorry, you can't add a video to a post you're editing."));}else n.setTitle(h._("Invalid Image File")).setBody(h._("Please upload a valid image file."));n.show();return;}c('ComposerXController').getAttachment(this.$ComposerXMediaUploadHandler1,j);c('Arbiter').inform('ComposerXFilesStore/filesAdded/'+this.$ComposerXMediaUploadHandler1+'/videoupload',{fileInput:m},c('Arbiter').BEHAVIOR_PERSISTENT);};l.prototype.handlePhotoSelected=function(m){'use strict';c('ComposerXController').getAttachment(this.$ComposerXMediaUploadHandler1,this.getPhotoUploadAttachmentEndpoint());l.$ComposerXMediaUploadHandler4(this.$ComposerXMediaUploadHandler1,m);};l.isVideoFile=function(m){'use strict';var n=c('VideoUploadFile').getExtensionFromFileInput(m.getInput());return !!c('VideoUploadConfig').videoExtensions[n];};l.prototype.$ComposerXMediaUploadHandler5=function(){'use strict';return this.$ComposerXMediaUploadHandler2?this.$ComposerXMediaUploadHandler2.photoUploadOverrideEndpoint:null;};l.prototype.getPhotoUploadAttachmentEndpoint=function(){'use strict';var m=this.$ComposerXMediaUploadHandler5();return m?m:i;};l.$ComposerXMediaUploadHandler4=function(m,n){'use strict';c('Arbiter').inform('ComposerXFilesStore/filesAdded/'+m+'/mediaupload',{fileInput:n,receivedBySubscriber:false},c('Arbiter').BEHAVIOR_PERSISTENT);};l.setupFileUploadToComposerDialog=function(m,n,o,p){'use strict';var q='composerxmediauploadhandler'+k++,r=function(u){c('CSS').conditionClass(m.getControl(),o,u);m.getInput().disabled=u;},s=new (c('URI'))(n),t=s.getQueryData();t.client_ref=q;s.setQueryData(t);n=s.toString();m.subscribe('change',function(){new (c('AsyncRequest'))().setURI(n).setErrorHandler(function(){m.clear();r(false);}).send();r(true);});c('Arbiter').subscribe('composer/dialog/'+q+'/new',function(u,v){this.$ComposerXMediaUploadHandler4(v.composerID,m);var w=new (c('SubscriptionsHandler'))();w.addSubscriptions(c('Arbiter').subscribe('composer/publish',function(event,x){if(p&&v.composerID===x.composer_id)c('ReloadPage').now();}),v.dialog.subscribe('hide',function(){w.release();m.clear();r(false);}));}.bind(this));};f.exports=l;},null);
__d('legacy:AudienceSelector',['AudienceSelector'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();c('AudienceSelector');},3);
__d("XFamilyMentionsNUXDialogController",["XController"],function a(b,c,d,e,f,g){c.__markCompiled&&c.__markCompiled();f.exports=c("XController").create("\/family_mentions\/nux_dialog\/",{__asyncDialog:{type:"Int"}});},null);
__d('FamilyRelationshipMentions',['AsyncDialog','AsyncRequest','FamilyMentionsData','XFamilyMentionsNUXDialogController'],function a(b,c,d,e,f,g){if(c.__markCompiled)c.__markCompiled();var h=function(){var i={},j=false;i.shouldShowNUX=function(k){if(c('FamilyMentionsData').hasAcceptedNUX||j)return false;var l=k.family_names;if(l==undefined)return false;for(var m=0;m<l.length;m++)if(l[m]==k.text)return true;return false;};i.showNUX=function(k,l){var m=c('XFamilyMentionsNUXDialogController').getURIBuilder().getURI();c('AsyncDialog').send(new (c('AsyncRequest'))(m),function(n){n.subscribe('cancel',function(){k.text=k.default_name;new (c('AsyncRequest'))().setURI('/ajax/family_mentions/deny_nux').send();l(k);});n.subscribe('confirm',function(){j=true;new (c('AsyncRequest'))().setURI('/ajax/family_mentions/confirm_nux').send();l(k);n.finishHide();});});};return i;}();f.exports=h;},null);
__d('MentionsTypeaheadAreaView',['ContextualTypeaheadView','FamilyRelationshipMentions','Parent'],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.getContext=function(){'use strict';return c('Parent').byClass(this.element,'uiMentionsInput');};j.prototype.shouldValidateTypeaheadSelection=function(k){'use strict';return c('FamilyRelationshipMentions').shouldShowNUX(k);};j.prototype.validateTypeaheadSelection=function(k,l){'use strict';c('FamilyRelationshipMentions').showNUX(k,l);};function j(){'use strict';h.apply(this,arguments);}f.exports=j;},null);