if (self.CavalryLogger) { CavalryLogger.start_js(["RAL3E"]); } __d("PrivacyBaseFilterConst",[],(function(a,b,c,d,e,f){e.exports={FRIEND_LIST:129,FRIENDS_PLUS_GAMER_FRIENDS:128,FRIENDS_MINUS_ACQUAINTANCES:127,FACEBOOK_EMPLOYEES:112,FACEBOOK_EMPLOYEE_DOGFOODING:113,CUSTOM:111,EVERYONE:80,EVERYONE_MINOR_DEPRECATED:75,NETWORKS_FRIENDS_OF_FRIENDS:60,NETWORKS_FRIENDS:55,FRIENDS_OF_FRIENDS:50,ALL_FRIENDS:40,MUTUAL_FRIENDS_DEPRECATED:35,SELF:10,NOBODY:0}}),null); __d("ReactComposerJSONCollageLayoutData",[],(function(a,b,c,d,e,f){e.exports={1:[{validActors:3,photoLayouts:[[0,1,1,0]]}],2:[{validActors:3,photoLayouts:[[0,3,3,0],[0,6,3,3]]},{validActors:3,photoLayouts:[[0,6,3,0],[3,6,6,0]]},{validActors:3,photoLayouts:[[0,3,6,0],[0,6,6,3]]},{validActors:1,photoLayouts:[[0,6,2,0],[2,6,4,0]]}],3:[{validActors:3,photoLayouts:[[0,6,3,0],[3,3,6,0],[3,6,6,3]]},{validActors:3,photoLayouts:[[0,3,6,0],[0,6,3,3],[3,6,6,3]]},{validActors:2,photoLayouts:[[0,2,2,0],[0,4,2,2],[0,6,2,4]]},{validActors:1,photoLayouts:[[0,6,4,0],[4,3,6,0],[4,6,6,3]]},{validActors:1,photoLayouts:[[0,4,6,0],[0,6,3,4],[3,6,6,4]]},{validActors:1,photoLayouts:[[0,6,2,0],[2,6,4,0],[4,6,6,0]]},{validActors:1,photoLayouts:[[0,2,6,0],[0,4,6,2],[0,6,6,4]]}],4:[{validActors:3,photoLayouts:[[0,3,3,0],[0,6,3,3],[3,3,6,0],[3,6,6,3]]},{validActors:3,photoLayouts:[[0,6,4,0],[4,2,6,0],[4,4,6,2],[4,6,6,4]]},{validActors:3,photoLayouts:[[0,4,6,0],[0,6,2,4],[2,6,4,4],[4,6,6,4]]}],5:[{validActors:1,photoLayouts:[[0,3,3,0],[3,3,6,0],[0,6,2,3],[2,6,4,3],[4,6,6,3]]},{validActors:1,photoLayouts:[[0,3,3,0],[0,6,3,3],[3,2,5,0],[3,4,5,2],[3,6,5,4]]}]}}),null); __d("MentionResultsPropTypes",["React","SearchableEntry","SelectionState"],(function(a,b,c,d,e,f){a=b("React").PropTypes;c={viewID:a.string.isRequired,selection:a.instanceOf(b("SelectionState")).isRequired,contextComponent:a.object.isRequired,mentionableEntries:a.array.isRequired,highlightedMentionable:a.instanceOf(b("SearchableEntry")),onMentionSelect:a.func.isRequired,onMentionHighlight:a.func.isRequired,onMentionRenderHighlight:a.func.isRequired};e.exports=c}),null); __d("MentionsLayer.react",["Bootloader","Locale","MentionResultsPropTypes","React","areEqual"],(function(a,b,c,d,e,f){__p&&__p();a=b("React").PropTypes;var g=!1,h=b("Locale").isRTL(),i,j,k,l,m=5;c=b("React").createClass({displayName:"MentionsLayer",propTypes:babelHelpers["extends"]({},b("MentionResultsPropTypes"),{typeaheadView:a.func.isRequired,typeaheadViewProps:a.object,autoflip:a.bool,reverseOrder:a.bool,position:a.oneOf(["above","below"])}),getInitialState:function(){return{bootloaded:g}},getDefaultProps:function(){return{offset:m}},componentDidMount:function(){var a=this;this.state.bootloaded||n(function(){a.isMounted()&&a.setState({bootloaded:!0})})},_onMentionSelect:function(a,b){b.preventDefault(),this.props.onMentionSelect(a,b)},shouldComponentUpdate:function(a,c){return this.state.bootloaded!==c.bootloaded||!b("areEqual")(this.props.mentionableEntries,a.mentionableEntries)||this.props.highlightedMentionable!==a.highlightedMentionable||this.props.characterOffset!==a.characterOffset},render:function(){__p&&__p();if(!this.state.bootloaded)return null;var a=this.props.mentionableEntries,c=this.props.selection;c=c.isCollapsed()&&c.getHasFocus()&&a&&a.length;var d=null,e=this.props.typeaheadViewProps,f=!1;e&&e.positionAtContext?f=!0:c&&(d=l(this.props.characterOffset,h));e={};this.props.autoflip&&(e.ContextualLayerAutoFlip=j,e.ContextualLayerUpdateOnScroll=k);var g=this.props.typeaheadView;return b("React").createElement(i,{shown:c,context:this.props.contextComponent,contextBounds:d,containerWidthMatchContext:f,offsetY:this.props.offset,offsetX:this.props.offset,position:this.props.position||"below",behaviors:e,shouldSetARIAProperties:!1},b("React").createElement("div",{"data-testid":"mentions-contextual-layer"},b("React").createElement(g,{id:this.props.viewID,viewProps:this.props.typeaheadViewProps,highlightedEntry:this.props.highlightedMentionable,reverseOrder:this.props.reverseOrder,entries:a||[],onSelect:this._onMentionSelect,onHighlight:this.props.onMentionHighlight,onRenderHighlight:this.props.onMentionRenderHighlight})))}});function n(a){b("Bootloader").loadModules(["ContextualLayer.react","ContextualLayerAutoFlip","ContextualLayerUpdateOnScroll","getMentionableRect"],function(b,c,d,e){i=b,j=c,k=d,l=e,g=!0,a()},"MentionsLayer.react")}e.exports=c}),null); __d("DraggableToken.react",["cx","React","ReactDOM","Rect","emptyFunction","joinClasses"],(function(a,b,c,d,e,f,g){__p&&__p();a=b("React").PropTypes;c=b("React").PureComponent;d={isDragDropEnabled:!0,onTokenDragEnd:b("emptyFunction"),onTokenDragLeave:b("emptyFunction"),onTokenDragOver:b("emptyFunction"),onTokenDragStart:b("emptyFunction"),onTokenDrop:b("emptyFunction")};f=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){__p&&__p();var c,d;for(var e=arguments.length,f=new Array(e),g=0;g0)return c[0]}return a},d.$3=function(a){a=a.dataTransfer;a&&(a.setData("text",""),a.setDragImage&&a.setDragImage(d.$2(),0,0),a.effectAllowed="move");d.props.onTokenDragStart(d.props.entry,d.props.index)},d.$4=function(a){d.props.onTokenDragEnd(d.props.entry,d.props.index)},d.$5=function(a){d.props.onTokenDragLeave(d.props.entry,d.props.index)},d.$6=function(a){__p&&__p();a.preventDefault();a.stopPropagation();var c=a.dataTransfer;c&&(c.dropEffect="move");if(a.pageX!==d.lastDragEventPageX){c=b("ReactDOM").findDOMNode(babelHelpers.assertThisInitialized(d));c=b("Rect").getElementBounds(c).getCenter().x;a=a.pageX0}).sort();var f=a.findLastIndex(function(a){return a<=c});c=a.get(f>=0?f:a.findIndex(function(a){return a>=c}))}if(!e.get(c).get(d)){f=e.get(c).keySeq().filter(function(a){return b(e.get(c).get(a))}).sort();a=f.findLastIndex(function(a){return a<=d});d=f.get(a>=0?a:f.findIndex(function(a){return a>=d}))}return[c,d]};c.$9=function(a,b,c,d){__p&&__p();c===void 0&&(c=function(){return!0});d===void 0&&(d=!1);var e=this.getGridMap(),f=a[0];a=e.keySeq().filter(function(a){return e.get(a).filter(function(a){return c(a)}).size>0}).sort();if(d)if(b>0)return a.max();else return a.min();b>0?(d=a.findLastIndex(function(a){return a<=f}),d===-1?d=0:d!==a.size-1&&(d+=b)):(d=a.findIndex(function(a){return a>=f}),d===-1?d=a.size-1:d!==0&&(d+=b));b=a.get(d);return b===void 0?null:b};c.$10=function(a,b,c,d){__p&&__p();c===void 0&&(c=function(){return!0});d===void 0&&(d=!1);var e=this.getGridMap(),f=a[0],g=a[1];a=e.get(f);if(a===void 0)return null;a=a.keySeq().filter(function(a){return c(e.get(f).get(a))}).sort();if(d)return b>0?a.max():a.min();if(b>0){d=a.findLastIndex(function(a){return a<=g});if(d===-1)d=0;else if(d!==a.size-1)d+=b;else return null}else{d=a.findIndex(function(a){return a>=g});if(d===-1)d=a.size-1;else if(d!==0)d+=b;else return null}b=a.get(d);return b===void 0?null:b};c.$11=function(a,c,d){__p&&__p();d===void 0&&(d=!1);var e=this.getFocusedCellCoordinate();if(!e)return!1;e=this.$8(e);var f=e[0],g=e[1],h=e[0],i=e[1],j=function(a){return!d||a.isTabbable};if(c!==0){var k=this.$10(e,c,j);if(k===null){var l=this.$9(e,c,j);l!==f&&l!==null&&(k=this.$10([l,g],-c,j,!0),k!==null&&(f=l,g=k))}else g=k}else if(a!==0){c=this.$9(e,a,j);if(c!==null){l=this.$8([c,g],j);f=l[0];g=l[1]}}k=h!==f||i!==g;k&&(this.focusCell([f,g]),new(b("AccessibilityWebLogicalGridTypedLogger"))().log());return k};c.$12=function(a,c){__p&&__p();var d=this.getFocusedCellCoordinate();if(!d)return!1;d=this.$8(d);var e=d[0],f=d[1],g=d[0],h=d[1];c&&(e=this.$9(d,a,function(){return!0},!0));if(e!==null){c=this.$10([e,f],a,function(){return!0},!0);c!==null&&(f=c)}else e=g;d=g!==e||h!==f;d&&(this.focusCell([e,f]),new(b("AccessibilityWebLogicalGridTypedLogger"))().log());return d};c.moveFocusLeft=function(){return this.$11(0,-1)};c.moveFocusRight=function(){return this.$11(0,1)};c.moveFocusUp=function(){return this.$11(-1,0)};c.moveFocusDown=function(){return this.$11(1,0)};c.moveFocusHome=function(a){return this.$12(-1,a)};c.moveFocusEnd=function(a){return this.$12(1,a)};c.tabFocusForward=function(){return this.$11(0,1,!0)};c.tabFocusBackward=function(){return this.$11(0,-1,!0)};c.recoverFocus=function(){var a=this.$6&&this.getLastFocusedCellCoordinate();a=this.getFocusedCellCoordinate()||a||this.getDefaultCellCoordinate();this.focusCell(this.$8(a))};c.isFocusedCoordinate=function(b){return a.coordinatesAreEquivalent(b,this.getFocusedCellCoordinate())};c.isManagingFocus=function(){return!!this.$2};c.clearFocusedCell=function(){var a=!!this.$2;if(this.$2){var b=this.getCellMap(this.$2);this.emit("cellBlur",this.$2,b)}this.$2=null;a&&this.emit("manageFocus",!1);this.deactivateCell()};c.clearLastFocusedCell=function(){this.$5=null};c.getFocusedCell=function(){var a=this.$2;return a?this.getCellMap(a):null};c.getFocusedCellCoordinate=function(){return this.$2};c.getLastFocusedCellCoordinate=function(){return this.$5};c.preserveFocusCellCoordinate=function(a){this.$6=a};c.setGridRef=function(a){this.$4=a};c.getGridRef=function(){return this.$4};c.muteTabbables=function(a){__p&&__p();a===void 0&&(a=[]);if(!this.$4)return;var c=b("TabbableElements").find(this.$4);if(c.length){var d=i(c);c=this.$3.toList().flatten(!0).map(function(a){return a.refElement}).map(function(a){return d.filter(function(b){return a.contains(b)})}).flatten(!0).toSet();this.$7=d.subtract(c).subtract(i(a)).toMap().mapEntries(function(a){a=a[0];return[a,a.getAttribute("tabindex")||""]}).merge(this.$7);this.$7.keySeq().forEach(function(a){a.getAttribute("tabindex")!=="-1"&&a.setAttribute("tabindex","-1")})}};c.restoreTabbables=function(){this.$7.entrySeq().forEach(function(a){var b=a[0];a=a[1];a===""?b.removeAttribute("tabindex"):b.setAttribute("tabindex",a)})};c.purgeCell=function(a){var b=a[0],c=a[1],d;if(b!=null&&c!=null){b=this.getCellMap(a);b&&(d=b,this.$3=this.$3.deleteIn(a))}return d};c.deleteCell=function(a){var b=this.$3,c=this.purgeCell(a);c&&this.emit("cellDelete",b,this.$3,c,a)};c.purgeRow=function(a){var b=this;if(a!=null){var c=this.getRowMap(a);c&&(c.forEach(function(c,d){a!=null&&b.purgeCell([a,d])},this),this.$3=this.$3["delete"](a))}};c.deleteRow=function(a){__p&&__p();var b=this;if(a!=null){var c=this.getRowMap(a);if(c){var d=this.$3;c.forEach(function(c,d){a!=null&&b.deleteCell([a,d])},this);this.$3=this.$3["delete"](a);this.emit("rowDelete",d,this.$3,c,a)}}};c.setDefaultCellCoordinate=function(a){this.$1=a};c.getDefaultCellCoordinate=function(){return this.$1};return a}();a.TRAVERSAL_KEY_CODES=i([b("RTLKeys").UP,b("RTLKeys").DOWN,b("RTLKeys").getRight(),b("RTLKeys").getLeft(),b("RTLKeys").TAB]);b("mixInEventEmitter")(a,{cellActivate:!0,cellBlur:!0,cellDeactivate:!0,cellDelete:!0,cellFocus:!0,cellPut:!0,manageFocus:!0,rowDelete:!0,rowPut:!0});var j={createFromArray:function(a){return h(a.map(function(a,b){return[b,a]}))}},k={createFromArray:function(a){return h(a.map(function(a,b){return[b,a]}))}};e.exports=a}),null); __d("LogicalGridGKCheck",["gkx"],(function(a,b,c,d,e,f){a={passed:function(){return b("gkx")("678297")},decorator:function(a,c){return function(){if(b("gkx")("678297"))return a.apply(c,Array.prototype.slice.call(arguments))}}};e.exports=a}),null); __d("LogicalGridFocusHook.react",["LogicalGridController","LogicalGridGKCheck","React","SubscriptionsHandler","clearTimeout","emptyFunction","setTimeout"],(function(a,b,c,d,e,f){__p&&__p();a=b("React").Component;c=b("React").PropTypes;var g=b("LogicalGridGKCheck").decorator;d=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c){__p&&__p();var d;d=a.call(this,c)||this;d.$4=function(){var a=d.$1;d.$2.addSubscriptions(a.addListener("manageFocus",d.$8))};d.$6=function(a){a.preventDefault(),a.stopPropagation(),d.props.onFocus(a)};d.$8=function(a){var c=a?-1:0;d.$3.push(b("setTimeout")(function(){d.setState({tabIndex:c})},0))};d.$7=function(a){d.props.onRef(a)};d.$1=d.props.logicalGridController;d.$2=new(b("SubscriptionsHandler"))();d.$3=[];d.$4=g(d.$4,babelHelpers.assertThisInitialized(d));d.state={tabIndex:0};return d}var d=c.prototype;d.UNSAFE_componentWillMount=function(){this.$4()};d.componentWillUnmount=function(){this.$2.release();var a=this.$3.pop();while(a)b("clearTimeout")(a),a=this.$3.pop()};d.render=function(){return b("React").createElement("span",{className:this.props.className,onBlur:this.$5,onFocus:this.$6,ref:this.$7,tabIndex:this.state.tabIndex})};d.$5=function(a){a.preventDefault(),a.stopPropagation()};return c}(a);d.propTypes={logicalGridController:c.instanceOf(b("LogicalGridController")),onFocus:c.func,onRef:c.func};d.defaultProps={onRef:b("emptyFunction")};e.exports=d}),null); __d("LogicalGrid.react",["cx","Event","Focus","LogicalGridController","LogicalGridFocusHook.react","LogicalGridGKCheck","React","ReactDOM","RTLKeys","SubscriptionsHandler","debounce","emptyFunction","joinClasses","setTimeout"],(function(a,b,c,d,e,f,g){__p&&__p();var h=b("Event").getKeyCode;a=b("React").Component;c=b("React").PropTypes;var i=b("LogicalGridGKCheck").passed,j=b("LogicalGridGKCheck").decorator,k=20,l=20;d=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c,d){__p&&__p();var e;e=a.call(this,c)||this;e.$8=function(){var a=e.$5;e.$7.addSubscriptions(a.addListener("cellActivate",e.$15),a.addListener("cellBlur",e.$16),a.addListener("cellDeactivate",e.$17),a.addListener("cellDelete",e.$18),a.addListener("cellFocus",e.$19),a.addListener("cellPut",e.$20),a.addListener("manageFocus",e.$27),a.addListener("rowDelete",e.$28),a.addListener("rowPut",e.$29))};e.$9=b("debounce")(function(){e.$4&&e.forceUpdate()},k);e.$10=function(a){var c=h(a),d=e.$5;switch(c){case b("RTLKeys").TAB:e.$12();break;case b("RTLKeys").ESC:d.deactivateCell();break;case b("RTLKeys").UP:case b("RTLKeys").DOWN:case b("RTLKeys").getLeft():case b("RTLKeys").getRight():case b("RTLKeys").HOME:case b("RTLKeys").END:a.preventDefault();break;default:return}};e.$11=function(a){__p&&__p();var c=h(a),d=e.$5,f=!0;switch(c){case b("RTLKeys").TAB:var g=a.shiftKey?d.tabFocusBackward():d.tabFocusForward();if(!g){e.$31();return}break;case b("RTLKeys").UP:d.moveFocusUp();break;case b("RTLKeys").DOWN:d.moveFocusDown();break;case b("RTLKeys").getLeft():d.moveFocusLeft();break;case b("RTLKeys").getRight():d.moveFocusRight();break;case b("RTLKeys").HOME:d.moveFocusHome(a.ctrlKey);break;case b("RTLKeys").END:d.moveFocusEnd(a.ctrlKey);break;default:f=!1;return}f&&a.preventDefault();!e.props.isCompositeWidget&&b("LogicalGridController").TRAVERSAL_KEY_CODES.has(c)&&e.$32(!1)};e.$12=function(){e.$6=!0,b("setTimeout")(function(){e.$6=!1},0)};e.$13=function(a){if(e.props.isCompositeWidget&&a!==e.$1){var b=e.$5.getGridRef();b&&(e.$1=a,b.setAttribute("aria-activedescendant",a))}};e.$14=function(a){e.$6||e.$31()};e.$15=function(){e.$3=!0,e.$12(),e.props.isCompositeWidget&&e.$32(!1)};e.$16=function(){e.$12()};e.$17=function(){e.$3=!1,e.$5.isManagingFocus()&&(e.$12(),e.props.isCompositeWidget&&(e.$32(!0),b("Focus").set(e.$5.getGridRef())),e.$30())};e.$18=function(a,b,c,d){e.$5.isFocusedCoordinate(d)&&(!c.disableFocusRecovery?(e.$12(),e.$30()):e.$31())};e.$19=function(a,b,c){e.props.onCellFocus(a,b,c)};e.$20=function(){e.$12()};e.$21=function(){e.$32(!0)};e.$22=function(a){e.$2[1]=a};e.$23=function(){e.props.isCompositeWidget?(e.$32(!0),b("Focus").set(e.$5.getGridRef())):e.$32(!1),e.$30()};e.$24=function(a){e.$2[0]=a};e.$25=function(a){if(!e.$5.isManagingFocus())return;e.$3?e.$10(a):e.$11(a)};e.$26=function(a){var b=e.$5.getFocusedCellCoordinate()||[];b=b[0];b!=null&&e.props.onRowKeyPress(a,b)};e.$27=function(a){a?e.$5.muteTabbables(e.$2):b("setTimeout")(function(){e.$5.restoreTabbables()},0),e.props.onManageFocus(a)};e.$28=function(a,b){a.count()===1&&b.count()===0&&e.$9()};e.$29=function(a,b){a.count()===0&&b.count()===1&&e.$9()};e.$30=b("debounce")(function(){e.$5.recoverFocus()},l);e.$31=function(a){a===void 0&&(a=!1);e.$5.clearFocusedCell();a&&e.$5.clearLastFocusedCell();if(e.props.isCompositeWidget){a=e.$5.getGridRef();a&&(e.$1="",a.setAttribute("aria-activedescendant",""))}};e.$32=function(a){a!==e.state.hideFocusRing&&!e.props.isCompositeWidget&&e.$34({hideFocusRing:a})};e.$33=function(a){e.$5.setGridRef(b("ReactDOM").findDOMNode(a))};e.$34=function(a){e.$4&&e.setState(a)};e.$1="";e.$2=[null,null];e.$3=!1;e.$4=!1;e.$5=b("LogicalGridController").create();e.$5.preserveFocusCellCoordinate(e.props.preserveFocusCellCoordinate);e.$6=!1;e.$7=new(b("SubscriptionsHandler"))();e.$8=j(e.$8,babelHelpers.assertThisInitialized(e));e.$9=j(e.$9,babelHelpers.assertThisInitialized(e));e.$10=j(e.$10,babelHelpers.assertThisInitialized(e));e.$11=j(e.$11,babelHelpers.assertThisInitialized(e));e.$12=j(e.$12,babelHelpers.assertThisInitialized(e));e.$13=j(e.$13,babelHelpers.assertThisInitialized(e));e.$14=j(e.$14,babelHelpers.assertThisInitialized(e));e.$15=j(e.$15,babelHelpers.assertThisInitialized(e));e.$16=j(e.$16,babelHelpers.assertThisInitialized(e));e.$17=j(e.$17,babelHelpers.assertThisInitialized(e));e.$18=j(e.$18,babelHelpers.assertThisInitialized(e));e.$19=j(e.$19,babelHelpers.assertThisInitialized(e));e.$20=j(e.$20,babelHelpers.assertThisInitialized(e));e.$21=j(e.$21,babelHelpers.assertThisInitialized(e));e.$22=j(e.$22,babelHelpers.assertThisInitialized(e));e.$23=j(e.$23,babelHelpers.assertThisInitialized(e));e.$24=j(e.$24,babelHelpers.assertThisInitialized(e));e.$25=j(e.$25,babelHelpers.assertThisInitialized(e));e.$26=j(e.$26,babelHelpers.assertThisInitialized(e));e.$27=j(e.$27,babelHelpers.assertThisInitialized(e));e.$28=j(e.$28,babelHelpers.assertThisInitialized(e));e.$29=j(e.$29,babelHelpers.assertThisInitialized(e));e.$30=j(e.$30,babelHelpers.assertThisInitialized(e));e.$31=j(e.$31,babelHelpers.assertThisInitialized(e));e.$32=j(e.$32,babelHelpers.assertThisInitialized(e));e.$33=j(e.$33,babelHelpers.assertThisInitialized(e));e.$34=j(e.$34,babelHelpers.assertThisInitialized(e));e.$8();e.state={hideFocusRing:!0};return e}var d=c.prototype;d.getChildContext=function(){return{logicalGridController:this.$5,logicalGridIsCompositeWidget:this.props.isCompositeWidget,logicalGridOnActivedescendant:this.$13}};d.render=function(){__p&&__p();var a=this,c=this.props,d=c.children,e=c.component;c=c.rowCount;var f=0,g=this.$5.getGridMap().count();c==null?f=g:f=c;c={className:b("joinClasses")(e.props.className,this.props.className)};var h=null,j=null;if(i()&&g>0){g=e.props;var k=g.onBlur,l=k===void 0?b("emptyFunction"):k;k=g.onClick;var m=k===void 0?b("emptyFunction"):k;k=g.onKeyDown;var n=k===void 0?b("emptyFunction"):k;k=g.onKeyPress;var o=k===void 0?b("emptyFunction"):k;k=g.ref;var p=k===void 0?b("emptyFunction"):k;h=b("React").createElement(b("LogicalGridFocusHook.react"),{className:(this.props.autofocus?"autofocus":"")+" accessible_elem",logicalGridController:this.$5,key:"uiLogicalGridHook-top",onFocus:this.$23,onRef:this.$24});j=b("React").createElement(b("LogicalGridFocusHook.react"),{className:"accessible_elem",logicalGridController:this.$5,key:"uiLogicalGridHook-bottom",onFocus:this.$23,onRef:this.$22});g=this.props.isCompositeWidget?this.$1:null;c={"aria-activedescendant":g,"aria-rowcount":f,className:b("joinClasses")(c.className,this.state.hideFocusRing?"_1lty":""),role:"grid",onBlur:function(b){l(b),a.$14(b)},onClick:function(b){m(b),a.$21(b)},onKeyDown:function(b){n(b),a.$25(b)},onKeyPress:function(b){o(b),a.$26(b)},ref:function(b){p(b),a.$33(b)},tabIndex:-1}}return b("React").cloneElement(e,c,[h,d,j])};d.componentDidMount=function(){this.$4=!0,this.$5.muteTabbables(this.$2),this.$5.setDefaultCellCoordinate(this.props.initialFocusCellCoordinate)};d.componentDidUpdate=function(a){this.$5.isManagingFocus()&&this.$5.muteTabbables(this.$2),a.initialFocusCellCoordinate!==this.props.initialFocusCellCoordinate&&this.$5.setDefaultCellCoordinate(this.props.initialFocusCellCoordinate),a.preserveFocusCellCoordinate!==this.props.preserveFocusCellCoordinate&&this.$5.preserveFocusCellCoordinate(this.props.preserveFocusCellCoordinate),this.$5.getGridMap().size===0&&this.$31(!0)};d.componentWillUnmount=function(){this.$4=!1,this.$31(),this.$5.restoreTabbables(),this.$7.release()};return c}(a);d.contextTypes={logicalGridController:c.instanceOf(b("LogicalGridController"))};d.childContextTypes={logicalGridController:c.instanceOf(b("LogicalGridController")),logicalGridIsCompositeWidget:c.bool,logicalGridOnActivedescendant:c.func};d.propTypes={autofocus:c.bool,initialFocusCellCoordinate:c.arrayOf(c.number),component:c.element,onCellFocus:c.func,onManageFocus:c.func,onRowKeyPress:c.func,preserveFocusCellCoordinate:c.bool,rowCount:c.number};d.defaultProps={autofocus:!1,initialFocusCellCoordinate:[0,0],isCompositeWidget:!1,component:b("React").createElement("div"),onCellFocus:b("emptyFunction"),onManageFocus:b("emptyFunction"),onRowKeyPress:b("emptyFunction"),preserveFocusCellCoordinate:!1};e.exports=d}),null); __d("LogicalGridFocusStrategyBase",["csx","cx","CSS","DOM","TabbableElements","getOrCreateDOMID"],(function(a,b,c,d,e,f,g,h){__p&&__p();a=function(){"use strict";__p&&__p();function a(a,b){this.activeClass="_5-1x",this.activeClassSelector="._5-1x",this.elements=new Map([]),this.focusClass="_5-1y",this.focusClassSelector="._5-1y",this.isCompositeWidget=a,this.onActivedescendant=b,this.root=null}var c=a.prototype;c.update=function(a){a&&a!==this.root&&(this.root=a),this.neuterTabbables()};c.focus=function(a){a&&this.applyFocusClass(a)};c.activate=function(a){a&&this.applyActiveClass(a)};c.deactivate=function(){this.clearActiveClass()};c.blur=function(){this.clearFocusClass()};c.destroy=function(){this.restoreTabbables(),this.elements=new Map([])};c.activateDescendant=function(a){this.onActivedescendant.call(null,b("getOrCreateDOMID")(a))};c.applyActiveClass=function(a){b("CSS").addClass(a,this.activeClass)};c.applyFocusClass=function(a){b("CSS").addClass(a,this.focusClass)};c.canActivate=function(){return!1};c.clearActiveClass=function(){var a=this;if(this.root){var c=b("DOM").scry(this.root,this.activeClassSelector);c.push(this.root);c.forEach(function(c){return b("CSS").removeClass(c,a.activeClass)})}};c.clearFocusClass=function(){var a=this;if(this.root){var c=b("DOM").scry(this.root,this.focusClassSelector);c.push(this.root);c.forEach(function(c){return b("CSS").removeClass(c,a.focusClass)})}};c.neuterTabbables=function(){var a=this;this.root&&b("TabbableElements").find(this.root).filter(function(b){return!a.elements.has(b)}).forEach(function(b){var c=b.getAttribute("tabIndex");b.setAttribute("tabIndex","-1");a.elements.set(b,c)},this)};c.restoreTabbables=function(){this.elements.forEach(function(a,b){a!=null?b.setAttribute("tabIndex",a):b.removeAttribute("tabIndex")}),this.elements=new Map([])};return a}();e.exports=a}),null); __d("LogicalGridItemFocusStrategy",["Focus","LogicalGridFocusStrategyBase","getActiveElement"],(function(a,b,c,d,e,f){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.focus=function(){var c=this.elements.keys().next().value;c&&(this.isCompositeWidget?this.activateDescendant(c):c!==b("getActiveElement")()&&b("Focus").set(c,!0),a.prototype.focus.call(this,c))};d.applyFocusClass=function(){this.root&&a.prototype.applyFocusClass.call(this,this.root)};return c}(b("LogicalGridFocusStrategyBase"));e.exports=a}),null); __d("LogicalGridCell.react",["cx","invariant","LogicalGridController","LogicalGridGKCheck","LogicalGridItemFocusStrategy","React","ReactDOM","RTLKeys","SubscriptionsHandler","emptyFunction","joinClasses","setTimeout"],(function(a,b,c,d,e,f,g,h){__p&&__p();a=b("React").Component;c=b("React").PropTypes;var i=b("LogicalGridGKCheck").passed,j=b("LogicalGridGKCheck").decorator;d=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c,d){__p&&__p();var e;e=a.call(this,c)||this;e.$6=function(){var a=e.context.logicalGridController;a&&e.$5.addSubscriptions(a.addListener("cellActivate",e.$11),a.addListener("cellBlur",e.$12),a.addListener("cellDeactivate",e.$13),a.addListener("cellFocus",e.$14),a.addListener("cellPut",e.$15))};e.$7=function(a,b){var c=e.context.logicalGridController;c&&a!=null&&b!=null&&c.deleteCell([a,b])};e.$8=function(){e.$10()&&e.$1.focus()};e.$9=function(){var a=e.context,b=a.logicalGridController;a=a.logicalGridRowIndex;var c=e.props.columnIndex;b&&!e.$10()&&!e.$4&&a!=null&&c!=null&&b.focusCell([a,c])};e.$10=function(){var a=e.context,b=a.logicalGridController;a=a.logicalGridRowIndex;var c=e.props.columnIndex,d=!1;if(b&&a!=null&&c!=null){var f=b.getFocusedCell();b=b.isFocusedCoordinate([a,c]);d=b&&f!=null&&e.$2===f.refElement}return d};e.$11=function(){e.$10()&&e.$1.activate()};e.$12=function(){e.$1.deactivate(),e.$1.blur()};e.$13=function(){e.$1.deactivate()};e.$14=function(a,b){e.$8()};e.$15=function(){e.$8()};e.$16=function(){e.$1.canActivate()&&e.context.logicalGridController.activateCell()};e.$17=function(){e.$4||e.$9()};e.$18=function(a){var c=e.context.logicalGridController;a.charCode===b("RTLKeys").RETURN&&e.$1.canActivate()&&c.activateCell()};e.$19=function(){e.props.disableFocusRecovery&&e.$20()};e.$20=function(){e.$4=!0,b("setTimeout")(function(){e.$4=!1},0)};e.$21=function(a,b){var c=e.context.logicalGridController;c&&a!=null&&b!=null&&c.purgeCell([a,b])};e.$22=function(a,b,c){c===void 0&&(c=!1);var d=e.context.logicalGridController;d&&a!=null&&b!=null&&d.putCell([a,b],{refElement:e.$2,isRowHeader:e.props.isRowHeader,isTabbable:e.props.isTabbable,disableFocusRecovery:c})};e.$23=function(a){if(e.context.logicalGridController){a=b("ReactDOM").findDOMNode(a);a&&a!==e.$2&&(e.$2=a,e.$1.update(a))}};e.$1=new c.focusStrategy(d.logicalGridIsCompositeWidget,d.logicalGridOnActivedescendant);e.$4=!1;e.$5=new(b("SubscriptionsHandler"))();e.$6=j(e.$6,babelHelpers.assertThisInitialized(e));e.$7=j(e.$7,babelHelpers.assertThisInitialized(e));e.$8=j(e.$8,babelHelpers.assertThisInitialized(e));e.$9=j(e.$9,babelHelpers.assertThisInitialized(e));e.$10=j(e.$10,babelHelpers.assertThisInitialized(e));e.$11=j(e.$11,babelHelpers.assertThisInitialized(e));e.$12=j(e.$12,babelHelpers.assertThisInitialized(e));e.$13=j(e.$13,babelHelpers.assertThisInitialized(e));e.$14=j(e.$14,babelHelpers.assertThisInitialized(e));e.$15=j(e.$15,babelHelpers.assertThisInitialized(e));e.$16=j(e.$16,babelHelpers.assertThisInitialized(e));e.$17=j(e.$17,babelHelpers.assertThisInitialized(e));e.$18=j(e.$18,babelHelpers.assertThisInitialized(e));e.$19=j(e.$19,babelHelpers.assertThisInitialized(e));e.$20=j(e.$20,babelHelpers.assertThisInitialized(e));e.$21=j(e.$21,babelHelpers.assertThisInitialized(e));e.$22=j(e.$22,babelHelpers.assertThisInitialized(e));e.$23=j(e.$23,babelHelpers.assertThisInitialized(e));return e}var d=c.prototype;d.render=function(){__p&&__p();var a=this,c=this.context,d=c.logicalGridController,e=c.logicalGridRowIndex;c=c.logicalGridIsColumnHeader;var f=this.props,g=f.children,h=f.columnIndex,j=f.component;f=f.isRowHeader;var k={className:b("joinClasses")(j.props.className,this.props.className)};if(i()&&d&&e!=null){d=j.props;e=d.onClick;var l=e===void 0?b("emptyFunction"):e;e=d.onFocus;var m=e===void 0?b("emptyFunction"):e;e=d.onKeyPress;var n=e===void 0?b("emptyFunction"):e;e=d.onMouseDown;var o=e===void 0?b("emptyFunction"):e;e=d.ref;var p=e===void 0?b("emptyFunction"):e;k={"aria-colindex":h!=null&&h>-1?h+1:null,className:b("joinClasses")(k.className,"_4f7k"),role:c?"columnheader":f?"rowheader":"gridcell",onClick:function(b){l(b),a.$16(b)},onFocus:function(b){m(b),a.$17(b)},onKeyPress:function(b){n(b),a.$18(b)},onMouseDown:function(b){o(b),a.$19(b)},ref:function(b){p(b),a.$23(b)},tabIndex:-1}}return b("React").cloneElement(j,k,g)};d.componentDidMount=function(){this.$6(),this.$3=this.context.logicalGridRowIndex,this.context.logicalGridIsInvisible||this.$22(this.context.logicalGridRowIndex,this.props.columnIndex,this.props.disableFocusRecovery)};d.componentDidUpdate=function(a){__p&&__p();var b=a.columnIndex,c=a.focusStrategy,d=a.disableFocusRecovery,e=a.isRowHeader;a=a.isTabbable;if(c!==this.props.focusStrategy){this.$1.destroy();c=this.context||{};var f=c.logicalGridIsCompositeWidget;c=c.logicalGridOnActivedescendant;this.$1=new this.props.focusStrategy(f,c);this.$1.update()}f=this.context.logicalGridRowIndex;c=this.props.disableFocusRecovery;var g=this.props.columnIndex,h=this.props.isRowHeader,i=this.props.isTabbable;(this.$3!==f||b!==g||d!==c||e!==h||a!==i)&&this.$21(this.$3,b);this.$3=this.context.logicalGridRowIndex;(!this.context||!this.context.logicalGridIsInvisible)&&this.$22(this.context&&this.$3,this.props.columnIndex,this.props.disableFocusRecovery);this.$1.update();this.$8()};d.componentWillUnmount=function(){var a=this.context.logicalGridRowIndex,b=this.props.columnIndex;this.$5.release();this.$1.destroy();this.$7(a,b)};return c}(a);d.contextTypes={logicalGridController:c.instanceOf(b("LogicalGridController")),logicalGridRowIndex:c.number,logicalGridIsColumnHeader:c.bool,logicalGridIsCompositeWidget:c.bool,logicalGridIsInvisible:c.bool,logicalGridOnActivedescendant:c.func};d.propTypes={columnIndex:c.number,disableFocusRecovery:c.bool,focusStrategy:c.func,component:c.element,isRowHeader:c.bool,isTabbable:c.bool};d.defaultProps={disableFocusRecovery:!1,focusStrategy:b("LogicalGridItemFocusStrategy"),component:b("React").createElement("span"),isRowHeader:!1,isTabbable:!1};e.exports=d}),null); __d("LogicalGridRow.react",["cx","invariant","LogicalGridController","LogicalGridGKCheck","React","SubscriptionsHandler","joinClasses"],(function(a,b,c,d,e,f,g,h){__p&&__p();a=b("React").Component;c=b("React").PropTypes;var i=b("LogicalGridGKCheck").passed,j=b("LogicalGridGKCheck").decorator;d=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c,d){__p&&__p();var e;e=a.call(this,c)||this;e.$3=function(){var a=e.context.logicalGridController;a&&e.$2.addSubscriptions(a.addListener("cellDelete",e.$6))};e.$5=function(){e.$1&&e.forceUpdate()};e.$8=function(a){var b=e.context.logicalGridController;b&&!(a==null)&&b.putRow(a)};e.$7=function(a){var b=e.context.logicalGridController;b&&a!=null&&b.purgeRow(a)};e.$4=function(a){var b=e.context.logicalGridController;b&&a!=null&&b.deleteRow(a)};e.$6=function(a,b,c,d){b=e.props.rowIndex;a=b!=null&&a.get(b);var f=d[0];d=d[1];a&&b===f&&d&&c===a.get(d)&&e.$5()};e.$1=!1;e.$2=new(b("SubscriptionsHandler"))();e.$3=j(e.$3,babelHelpers.assertThisInitialized(e));e.$4=j(e.$4,babelHelpers.assertThisInitialized(e));e.$5=j(e.$5,babelHelpers.assertThisInitialized(e));e.$6=j(e.$6,babelHelpers.assertThisInitialized(e));e.$7=j(e.$7,babelHelpers.assertThisInitialized(e));e.$8=j(e.$8,babelHelpers.assertThisInitialized(e));return e}var d=c.prototype;d.getChildContext=function(){return{logicalGridRowIndex:this.props.rowIndex,logicalGridIsColumnHeader:this.props.isColumnHeader,logicalGridIsInvisible:this.props.isInvisible}};d.render=function(){var a=this.context.logicalGridController,c=this.props,d=c.children,e=c.className,f=c.component,g=c.isInvisible;c=c.rowIndex;e={className:b("joinClasses")(f.props.className,e)};if(i()&&a)e={"aria-rowindex":c!=null&&c>-1?c+1:null,className:b("joinClasses")(e.className,g?"accessible_elem":""),role:"row",tabIndex:-1};else if(g)return null;return b("React").cloneElement(f,e,d)};d.componentDidMount=function(){this.$1=!0,this.$3(),this.props.isInvisible||this.$8(this.props.rowIndex)};d.componentDidUpdate=function(a){this.props.isInvisible||this.$8(this.props.rowIndex);a=a.rowIndex;a!==this.props.rowIndex&&this.$7(a)};d.componentWillUnmount=function(){this.$1=!1,this.$4(this.props.rowIndex),this.$2.release()};return c}(a);d.contextTypes={logicalGridController:c.instanceOf(b("LogicalGridController"))};d.childContextTypes={logicalGridRowIndex:c.number,logicalGridIsColumnHeader:c.bool,logicalGridIsInvisible:c.bool};d.propTypes={rowIndex:c.number,component:c.element,isColumnHeader:c.bool,isInvisible:c.bool};d.defaultProps={component:b("React").createElement("div"),isColumnHeader:!1,isInvisible:!1};e.exports=d}),null); __d("LogicalGridCellFocusStrategy",["Focus","LogicalGridFocusStrategyBase"],(function(a,b,c,d,e,f){__p&&__p();a=function(a){"use strict";babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.focus=function(){a.prototype.focus.call(this,this.root),this.isCompositeWidget&&this.root?this.activateDescendant(this.root):b("Focus").set(this.root)};return c}(b("LogicalGridFocusStrategyBase"));e.exports=a}),null); __d("AbstractTokenizer.react",["cx","AbstractTypeahead.react","LogicalGrid.react","React","ReactDOM","TokenizerToken.react","emptyFunction","ex","getActiveElement","joinClasses"],(function(a,b,c,d,e,f,g){__p&&__p();a=b("React").PropTypes;c=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){__p&&__p();var c,d;for(var e=arguments.length,f=new Array(e),g=0;g=d.props.limit:!1},d.clearActiveEntries=function(){d.refs.typeahead&&d.refs.typeahead.clearActiveEntries()},d.focusInput=function(){d.refs&&d.refs.typeahead&&d.refs.typeahead.focusInput()},d.blurInput=function(){d.refs&&d.refs.typeahead&&d.refs.typeahead.blurInput()},d.$6=function(a){a.preventDefault();if(d.refs&&d.refs.typeahead){var c=d.refs.typeahead.getTextFieldDOM();(c!==a.target||c!==b("getActiveElement")())&&d.focusInput()}},d.$7=function(){d.props.onTypeaheadMouseDown&&d.props.onTypeaheadMouseDown()},d.$9=function(a){if(d.$2())return;var b=a.target.value,c=d.props.tokenizeQueryString(b);c?d.$8(c,a):d.props.queryString==null&&d.setState({queryString:b});d.props.onQueryStringChange&&d.props.onQueryStringChange(a)},d.$10=function(){var a=d.$1();a=d.props.tokenizeQueryStringOnBlur(a);a&&d.$14(a);d.props.onInputBlur()},d.$8=function(a,b){if(d.props.onSelectAttemptDelegate){d.props.onSelectAttemptDelegate(a,b);return}d.$15(a);d.props.focusAfterSelection&&setTimeout(d.focusInput,0)},d.$14=function(a){d.$15(a)},d.$15=function(a){a&&(d.props.onAddEntryAttempt(a),d.props.queryString==null&&d.props.shouldClearQueryStringAfterSelect&&d.setState({queryString:""}))},d.$16=function(a){d.props.onRemoveEntryAttempt(a)},d.$11=function(a){__p&&__p();var b=d.props.entries;if(b&&!d.$1()&&b.length){var c=d.getInputPosition();if(c>0){b=b[c-1];d.props.onRemoveEntryAttempt(b);a.preventDefault()}setTimeout(d.focusInput,0)}},d.$13=function(){var a=b("ReactDOM").findDOMNode(d.refs.textSizeProxy).offsetWidth;if(a===0)return;d.refs.typeahead.getTextFieldDOM().style.width=a+"px"},d.onBackgroundDragOver=function(a){a.preventDefault();a=a.nativeEvent.dataTransfer;a&&(a.dropEffect="move");a=d.props.entries;d.onTokenDragOver(a[a.length-1],a.length-1,!1)},d.onBackgroundDrop=function(a){d.onTokenDrop(null,d.props.entries.length)},d.onTokenDragStart=function(a,b){d.setState({draggingIndex:b})},d.onTokenDragEnd=function(a,b){d.setState({draggingIndex:null})},d.onTokenDragLeave=function(a,b){if(d.leaveTimer)return;d.leaveTimer=setTimeout(function(){d.leaveTimer=null;if(d.state.dragTargetIndex===null)return;d.setState({dragTargetIndex:null})},100)},d.onTokenDragOver=function(a,b,c){d.leaveTimer&&(clearTimeout(d.leaveTimer),d.leaveTimer=null);if(d.state.draggingIndex!==null&&d.state.draggingIndex!==b&&d.props.onReorderEntryAttempt){if(d.state.dragTargetIndex===b&&d.state.draggedOverLeftSideOfElement===c)return;d.setState({dragTargetIndex:b,draggedOverLeftSideOfElement:c})}},d.onTokenDrop=function(a,b){d.state.draggingIndex!==null&&d.props.onReorderEntryAttempt&&(d.state.draggedOverLeftSideOfElement||b++,d.state.draggingIndex!==b&&d.props.onReorderEntryAttempt(d.state.draggingIndex,b)),d.setState({draggingIndex:null,dragTargetIndex:null,draggedOverLeftSideOfElement:null})},c)||babelHelpers.assertThisInitialized(d)}var d=c.prototype;d.UNSAFE_componentWillReceiveProps=function(a){a.queryString==null&&this.props.queryString!=null&&this.setState({queryString:this.props.queryString})};d.getInputPosition=function(){var a=this.props.entries?this.props.entries.length:0,b=this.props.inputPosition;if(b===void 0||b===null)return a;if(b<0)return 0;return b>a?a:b};d.$3=function(a){var b=this.props.onChangeInputPositionAttempt;b&&(b(a),setTimeout(this.focusInput,0))};d.$4=function(a){var c=this;return b("React").createElement("span",{key:"inputSelectionArea"+a,className:b("joinClasses")("_4tb6",this.props.inputPostionAreaClassName),onClick:function(){return c.$3(a)}})};d.render=function(){__p&&__p();var a=!!this.props.onReorderEntryAttempt;a=b("joinClasses")("_58-2"+(a?" _5ph3":""),"clearfix",this.props.className);var c=[],d=this.props.entries,e={},f=d&&d.length>0,g;if(f)for(var h=0,i=d.length;h0;return!a?new Error(b("ex")("Invalid entries limit `%s` provided, must be a positive number if set.",d)):null},selectOnBlur:a.bool,selectOnComma:a.bool,selectOnTab:a.bool,selectOnSpace:a.bool,tokenizeQueryString:a.func,tokenizeQueryStringOnBlur:a.func,inputPosition:a.number,onChangeInputPositionAttempt:a.func,inputPostionAreaClassName:a.string};c.defaultProps={autoHighlight:!0,autoComplete:"off",excludeTokenEntries:!0,focusAfterSelection:!0,hideViewWithEntries:!0,onInputBlur:b("emptyFunction"),selectOnBlur:!1,selectOnComma:!1,selectOnTab:!0,selectOnSpace:!1,shouldClearQueryStringAfterSelect:!0,tokenizeQueryString:b("emptyFunction").thatReturnsNull,tokenizeQueryStringOnBlur:b("emptyFunction").thatReturnsNull,entriesWidthMatchContext:!0};e.exports=c}),null); __d("XUITokenizerRichToken.react",["cx","fbt","DraggableTokenMixin.react","Image.react","React","SearchableEntry","XUICloseButton.react"],(function(a,b,c,d,e,f,g,h){__p&&__p();a=b("React").PropTypes;c=b("React").createClass({displayName:"XUITokenizerRichToken",mixins:[b("DraggableTokenMixin.react")],propTypes:{label:a.string.isRequired,entry:a.instanceOf(b("SearchableEntry")),onRemove:a.func,highlighted:a.bool},_onRemove:function(a){a.preventDefault(),this.props.onRemove(this.props.entry)},getText:function(a){if(a.getSubtitle().length>0)return a.getTitle()+" - "+a.getSubtitle();else return a.getTitle()},render:function(){var a;this.props.onRemove&&(a=b("React").createElement(b("XUICloseButton.react"),{type:"button","aria-label":h._("Remove {item}",[h._param("item",this.props.label)]),className:"_5yii",size:"small",onClick:this._onRemove}));var c=this.props.entry;return this.renderDraggableToken(b("React").createElement("span",this.props,b("React").createElement("div",{className:"_5yij",label:null},b("React").createElement(b("Image.react"),{className:"_5yik",src:c.getPhoto()}),this.getText(c),a)))}});e.exports=c}),null); __d("XUITokenizerToken.react",["cx","fbt","DraggableTokenMixin.react","LogicalGridCell.react","LogicalGridCellFocusStrategy","LogicalGridRow.react","React","SearchableEntry","XUICloseButton.react","joinClasses"],(function(a,b,c,d,e,f,g,h){__p&&__p();a=b("React").PropTypes;c=b("React").createClass({displayName:"XUITokenizerToken",mixins:[b("DraggableTokenMixin.react")],propTypes:{disabled:a.bool,label:a.string.isRequired,entry:a.instanceOf(b("SearchableEntry")),onRemove:a.func,highlighted:a.bool,onEditEntryAttempt:a.func},_onRemove:function(a){a.preventDefault(),this.props.onRemove(this.props.entry)},renderLabelCellComponent:function(){return b("React").createElement("span",{"aria-label":this.props.label,title:this.props.label,className:"_5aab _87n9"})},render:function(){__p&&__p();var a;this.props.onRemove&&!this.props.disabled&&(a=b("React").createElement(b("LogicalGridCell.react"),{columnIndex:1},b("React").createElement(b("XUICloseButton.react"),{type:"button","aria-label":h._("Remove {item}",[h._param("item",this.props.label)]),className:"_1z6_",size:"small",onClick:this._onRemove})));var c="_59_o"+(a?"":" _2lo5")+(this.props.highlighted?" _59_r":""),d=this.props,e=d.onEditEntryAttempt,f=d.entry;d=babelHelpers.objectWithoutPropertiesLoose(d,["onEditEntryAttempt","entry"]);delete d.onRemove;delete d.index;delete d.isDragDropEnabled;delete d.onTokenDragStart;delete d.onTokenDragEnd;delete d.onTokenDragOver;delete d.onTokenDragLeave;delete d.onTokenDrop;d=b("React").createElement("span",babelHelpers["extends"]({},d,{onDoubleClick:function(){e&&e(f)},className:b("joinClasses")(this.props.className,c),label:null}));c=this.renderLabelCellComponent();return this.renderDraggableToken(b("React").createElement(b("LogicalGridRow.react"),{rowIndex:this.props.index,component:d},b("React").createElement(b("LogicalGridCell.react"),{columnIndex:0,focusStrategy:b("LogicalGridCellFocusStrategy"),component:c},this.props.label),a))}});e.exports=c}),null); __d("XUITokenizer.react",["ix","cx","fbt","AbstractTokenizer.react","Image.react","React","XUICloseButton.react","XUIError.react","XUITokenizerRichToken.react","XUITokenizerToken.react","XUITypeaheadTextOnlyView.react","XUITypeaheadView.react","fbglyph","joinClasses"],(function(a,b,c,d,e,f,g,h,i){__p&&__p();a=b("React").PropTypes;var j={ViewRenderer:b("XUITypeaheadView.react"),TokenRenderer:b("XUITokenizerToken.react"),useLayer:!0},k={ViewRenderer:b("XUITypeaheadTextOnlyView.react"),TokenRenderer:b("XUITokenizerToken.react"),useLayer:!0};c=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f0;return!this.props.clearable||!a||!this.props.onClear?null:b("React").createElement(b("XUICloseButton.react"),{className:"_3bm-",onClick:this.props.onClear,size:"medium",tooltip:i._("Clear")})};d.$1=function(){return!this.props.displaySearchIcon?null:b("React").createElement(b("Image.react"),{className:"_63yf",src:g("142454")})};d.$3=function(){return!this.props.rightChild?null:b("React").createElement("div",{className:"_7f8k"},this.props.rightChild)};return c}(b("React").Component);c.propTypes=babelHelpers["extends"]({additionalEntries:a.array,alwaysShowPlaceholder:a.bool,autoHighlight:a.bool,className:a.string,context:a.object,entries:a.array,entrySpecificClassNamesMap:a.object,excludedEntries:a.object,excludeTokenEntries:a.bool,extraTokenRendererProps:a.object,extraTypeaheadProps:a.object,focusAfterSelection:a.bool,focusedOnInit:a.bool,getDynamicTokenRendererProps:a.func,limit:a.number,maxEntries:a.number,onAddEntryAttempt:a.func.isRequired,onClear:a.func,onEntriesFound:a.func,onInputFocus:a.func,onPaste:a.func,onQueryStringChange:a.func,onRemoveEntryAttempt:a.func.isRequired,onReorderEntryAttempt:a.func,onEditEntryAttempt:a.func,placeholder:a.string,presenter:a.object,queryString:a.string,rightChild:a.element,searchSource:a.object.isRequired,searchSourceOptions:a.object,selectOnBlur:a.bool,selectOnComma:a.bool,selectOnTab:a.bool,selectOnSpace:a.bool,testID:a.string,tokenizeQueryString:a.func,viewStyle:a.oneOf(["textonly","rich"]),inputID:a.string,entriesWidthMatchContext:a.bool,disabled:a.bool,clearable:a.bool,displaySearchIcon:a.bool,onChangeInputPositionAttempt:a.func,inputPosition:a.number,tokenClassName:a.string,typeaheadInputStyle:a.object,showEntriesOnFocus:a.bool},b("XUIError.react").propTypes);c.defaultProps={clearable:!1,displaySearchIcon:!1,viewStyle:"rich",entriesWidthMatchContext:!0,focusAfterSelection:!0,focusedOnInit:!1};e.exports=c}),null); __d("OldPrivacySelectorTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(){this.$1={}}var c=a.prototype;c.log=function(){b("GeneratedLoggerUtils").log("logger:OldPrivacySelectorLoggerConfig",this.$1,b("Banzai").BASIC)};c.logVital=function(){b("GeneratedLoggerUtils").log("logger:OldPrivacySelectorLoggerConfig",this.$1,b("Banzai").VITAL)};c.logImmediately=function(){b("GeneratedLoggerUtils").log("logger:OldPrivacySelectorLoggerConfig",this.$1,{signal:!0})};c.clear=function(){this.$1={};return this};c.getData=function(){return babelHelpers["extends"]({},this.$1)};c.updateData=function(a){this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.setAdamaRenderLocation=function(a){this.$1.adama_render_location=a;return this};c.setEvent=function(a){this.$1.event=a;return this};c.setFbid=function(a){this.$1.fbid=a;return this};c.setTime=function(a){this.$1.time=a;return this};c.setVC=function(a){this.$1.vc=a;return this};c.setWeight=function(a){this.$1.weight=a;return this};return a}();c={adama_render_location:!0,event:!0,fbid:!0,time:!0,vc:!0,weight:!0};e.exports=a}),null); __d("WorkContentActivityTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(){__p&&__p();function a(){this.$1={}}var c=a.prototype;c.log=function(){b("GeneratedLoggerUtils").log("logger:WorkContentActivityLoggerConfig",this.$1,b("Banzai").BASIC)};c.logVital=function(){b("GeneratedLoggerUtils").log("logger:WorkContentActivityLoggerConfig",this.$1,b("Banzai").VITAL)};c.logImmediately=function(){b("GeneratedLoggerUtils").log("logger:WorkContentActivityLoggerConfig",this.$1,{signal:!0})};c.clear=function(){this.$1={};return this};c.getData=function(){return babelHelpers["extends"]({},this.$1)};c.updateData=function(a){this.$1=babelHelpers["extends"]({},this.$1,a);return this};c.setAdditionalData=function(a){this.$1.additional_data=b("GeneratedLoggerUtils").serializeMap(a);return this};c.setAppContentID=function(a){this.$1.app_content_id=a;return this};c.setAppID=function(a){this.$1.app_id=a;return this};c.setAppVersion=function(a){this.$1.app_version=a;return this};c.setAssociatedPostID=function(a){this.$1.associated_post_id=a;return this};c.setAttachmentFileType=function(a){this.$1.attachment_file_type=a;return this};c.setContentID=function(a){this.$1.content_id=a;return this};c.setContentType=function(a){this.$1.content_type=a;return this};c.setEvent=function(a){this.$1.event=a;return this};c.setParentContentID=function(a){this.$1.parent_content_id=a;return this};c.setParentContentType=function(a){this.$1.parent_content_type=a;return this};c.setSurfaceType=function(a){this.$1.surface_type=a;return this};c.setTargetID=function(a){this.$1.target_id=a;return this};c.setTime=function(a){this.$1.time=a;return this};c.setVC=function(a){this.$1.vc=a;return this};c.setWeight=function(a){this.$1.weight=a;return this};return a}();c={additional_data:!0,app_content_id:!0,app_id:!0,app_version:!0,associated_post_id:!0,attachment_file_type:!0,content_id:!0,content_type:!0,event:!0,parent_content_id:!0,parent_content_type:!0,surface_type:!0,target_id:!0,time:!0,vc:!0,weight:!0};e.exports=a}),null); __d("AudienceSelectorTags",[],(function(a,b,c,d,e,f){var g={};a={hasTags:function(a){return Object.prototype.hasOwnProperty.call(g,a)},setHasTags:function(a){a&&(g[a]=!0)}};e.exports=a}),null); __d("DynamicIconSelector",["Button","CSS","DOM","SelectorDeprecated"],(function(a,b,c,d,e,f){__p&&__p();var g={swapIcon:function(a){var c=b("SelectorDeprecated").getSelectedOptions(a)[0];c=c&&b("DOM").scry(c,".itemIcon")[0];a=b("SelectorDeprecated").getSelectorButton(a);if(c)b("Button").setIcon(a,c.cloneNode(!0));else{var d=b("DOM").scry(a,".img")[0];d&&b("DOM").remove(d)}b("CSS").conditionClass(a,"uiSelectorChevronOnly",!c)}};b("SelectorDeprecated").subscribe("change",function(a,c){a=c.selector;b("CSS").hasClass(a,"dynamicIconSelector")&&g.swapIcon(a)});e.exports=g}),null); __d("PrivacySelectorOption",["csx","fbt","Arbiter","AudienceSelectorTags","CSS","CurrentUser","DOM","DynamicIconSelector","Parent","PrivacyBaseFilterConst","PrivacyConst","SelectorDeprecated","intlList"],(function(a,b,c,d,e,f,g,h){__p&&__p();function a(a,c){__p&&__p();if(!a)throw new Error("there's no DOM option. Config data: ",c);this._elem=a;this._selector=b("Parent").byClass(this._elem,"audienceSelector");if(!this._selector)return;this._priv_base_val=c.priv_base_val;this._audienceCount="";this._hasRestricted=c.has_restricted||!1;this._isCustom=c.is_custom||!1;this._includedAudience=c.included||"";this._excludedAudience=c.excluded||{};this._excludedTaggees={};this._tagExpansionBehavior=c.tag_expansion_behavior||b("PrivacyConst").TagExpansion.NONE;this._plusLabel=b("DOM").scry(a,".plusLabel")[0];this._audienceCountLabel=b("DOM").scry(a,".audienceCountLabel")[0];this._taggedIDs=[];this._tags=[];this._recalculateTooltipAndLabel();this._updateOptionCountLabel();this._updateSelector();b("Arbiter").subscribe("Composer/changedtags",function(a,c){__p&&__p();a=b("CSS").hasClass(this._selector,"composerAudienceSelector");if(!this._getChangedData()||!a)return;this._tags=[];this._taggedIDs=[];for(var a=0;a0},_isTagExpanded:function(){var a=this._getTagExpansionBehavior(),c=!!this._taggedIDs.length||this._alreadyHasTags();return c&&a!=b("PrivacyConst").TagExpansion.NONE},_alreadyHasTags:function(){var a=b("DOM").scry(this._selector,"*[data-oid]")[0];a=a&&a.getAttribute("data-oid");return a&&b("AudienceSelectorTags").hasTags(a)},_updateSelector:function(){if(!this._isSharedAlbum()&&b("SelectorDeprecated").isOptionSelected(this._elem)){var a=b("CSS").hasClass(this._selector,"composerAudienceSelector");a&&b("SelectorDeprecated").setButtonLabel(this._selector,this._label);b("SelectorDeprecated").setButtonTooltip(this._selector,this._tooltip);b("DynamicIconSelector").swapIcon(this._selector);return!1}return!0},_isSharedAlbum:function(){var a=b("DOM").scry(this._selector,"*[data-shared-album]")[0];return a&&a.getAttribute("data-shared-album")},_getTagExpansionBehavior:function(){if(this._tagExpansionBehavior)return this._tagExpansionBehavior;var a=this._priv_base_val===b("PrivacyConst").FriendsValue.SELF,c=this._priv_base_val===b("PrivacyConst").FriendsValue.EVERYONE;if(a&&this._isSharedAlbum()||c)return b("PrivacyConst").TagExpansion.NONE;else if(this._priv_base_val2)return this._hasRestricted?h._("Your friends and friends of anyone tagged; Except: Restricted"):h._("Your friends and friends of anyone tagged");else if(a==2)if(this._hasRestricted)return h._("Your friends, {user}'s friends and {user2}'s friends; Except: Restricted",[h._param("user",this._tags[0]),h._param("user2",this._tags[1])]);else return h._("Your friends, {user}'s friends and {user2}'s friends",[h._param("user",this._tags[0]),h._param("user2",this._tags[1])]);else if(a==1)if(this._hasRestricted)return h._("Your friends and {user}'s friends; Except: Restricted",[h._param("user",this._tags[0])]);else return h._("Your friends and {user}'s friends",[h._param("user",this._tags[0])]);else return this._hasRestricted?h._("Your friends; Except: Restricted"):h._("Your friends")},_recalcFriendsMinusTooltip:function(){var a=this._tags.length;if(a>0||this._alreadyHasTags()){a=h._("friends of anyone tagged");a=h._("{people who can see this}, {list of more people who can see this}",[h._param("people who can see this",h._("Your friends")),h._param("list of more people who can see this",a)]);var b=h._("Acquaintances");this._hasRestricted&&(b=h._("{Name of Acquaintances friend list}, {restricted}",[h._param("Name of Acquaintances friend list",b),h._param("restricted",h._("Restricted"))]));return this._getCombinedSentence(a,b)}else return this._hasRestricted?h._("Friends; Except: Acquaintances, Restricted"):h._("Friends except Acquaintances")},_recalcCustomTooltip:function(){__p&&__p();var a=this._getIncludedAudience(),c=this._getTagExpansionText();c&&(a=h._("{list of people who can see this}, {list of additional people who can see this}",[h._param("list of people who can see this",a),h._param("list of additional people who can see this",c)]));for(var c=0;c=0&&a.bottom<=(window.innerHeight||b.clientHeight)&&a.left>=0&&a.right<=(window.innerWidth||b.clientWidth)}b("SelectorDeprecated").subscribe(["open","close"],function(a,c){if(!b("CSS").hasClass(c.selector,"audienceSelector"))return;var d=b("DOMQuery").scry(c.selector,".uiSelectorMenuWrapper");if(d.length>0){d=d[0];b("CSS").conditionClass(d,"audienceSelectorUpwards",!j(d))}d=a==="open"?"open_menu":"close_menu";h(c.selector,d)});var k={keepSynchronized:function(a,b){g[a]||(g[a]={}),g[a][b.id]=b},setHasTags:function(a){b("AudienceSelectorTags").setHasTags(a)},getComposerInstance:function(){var a=g["PrivacyLiteNav/audience"];if(a){var b;for(var c in a){b=a[c];return b}}return null},forceAndKeepSynchronized:function(a,c){k.keepSynchronized(a,c),b("Arbiter").inform("AudienceSelector/update",{option:b("SelectorDeprecated").getSelectedOptions(c)[0],selector:c})},get:function(a){if(b("CSS").hasClass(a,"audienceSelector"))return a;a=b("DOM").scry(a,"div.audienceSelector");if(a.length!=1)return;return a[0]},setAudience:function(a,c){var d=k.get(a);b("SelectorDeprecated").loadMenu(d,function(a){b("SelectorDeprecated").setSelected(d,c.toString());b("DynamicIconSelector").swapIcon(d);a=b("SelectorDeprecated").getSelectedOptions(d);var e=a[0]&&b("DOM").find(a[0],"a");e&&e.getAttribute("ajaxify")&&b("AsyncRequest").bootstrap(e.getAttribute("ajaxify"),e,!0);b("Arbiter").inform("AudienceSelector/changed",{option:a[0],selector:d})})}};b("Arbiter").subscribe("CustomPrivacyOptionController/update",function(a,c){if(!b("CSS").hasClass(c.selector,"audienceSelector"))return;b("SelectorDeprecated").setSelected(c.selector,b("SelectorDeprecated").getOptionValue(c.option));b("DynamicIconSelector").swapIcon(c.selector);a=b("CSS").hasClass(c.selector,"composerAudienceSelector");a&&b("SelectorDeprecated").setButtonLabel(c.selector,c.label);b("SelectorDeprecated").setButtonTooltip(c.selector,c.tooltip);h(c.selector,"custom_save");b("Arbiter").inform("AudienceSelector/update",c)});b("Arbiter").subscribe("CustomPrivacyOptionController/cancel",function(a,c){if(!b("CSS").hasClass(c.selector,"audienceSelector"))return;h(c.selector,"custom_cancel")});b("Arbiter").subscribe(["AudienceSelector/changed","AudienceSelector/update"],function(a,c){__p&&__p();var d=b("SelectorDeprecated").getOptionValue(c.option),e=null;d==b("PrivacyConst").BaseValue.EVERYONE?e="select_everyone":d==b("PrivacyConst").BaseValue.FRIENDS_OF_FRIENDS?e="select_friends_of_friends":d==b("PrivacyConst").BaseValue.ALL_FRIENDS?e="select_friends":d==b("PrivacyConst").BaseValue.FRIENDS_MINUS_ACQUAINTANCES?e="select_friends_except_acquaintances":d==b("PrivacyConst").BaseValue.SELF?e="select_only_me":d==b("PrivacyConst").BaseValue.CUSTOM?a==="AudienceSelector/changed"&&(e="select_custom"):d==b("PrivacyConst").BaseValue.FACEBOOK_EMPLOYEES?e="select_fb_only":b("CSS").hasClass(c.option,"friendListOption")?e="select_friendlist":b("CSS").hasClass(c.option,"moreOption")?e="select_see_all_lists":b("CSS").hasClass(c.option,"returnOption")?e="select_return":e="select_other";e!=null&&h(c.selector,e);e={};if(d==b("PrivacyConst").BaseValue.CUSTOM){if(a=="AudienceSelector/changed")return;e=b("CustomPrivacyOptionController").getData(c.option.id);if(!e)return}for(var f in g){a=g[f];if(a[c.selector.id]){b("Arbiter").inform("AudienceSelector/syncNonSelectorIcon",{category:f});for(var i in a){var j=a[i];if(!j||c.selector===j)continue;b("SelectorDeprecated").getValue(j)!==d&&(b("SelectorDeprecated").setSelected(j,d),b("DynamicIconSelector").swapIcon(j));if(d==b("PrivacyConst").BaseValue.CUSTOM){var k=b("SelectorDeprecated").getOption(j,b("PrivacyConst").BaseValue.CUSTOM+"");k&&(b("CustomPrivacyOptionController").setPrivacyData(k.id,e,d),b("SelectorDeprecated").setButtonTooltip(j,c.tooltip))}}}}});e.exports=k}),null); __d("XStickyComposerChangeController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/privacy/sticky_composer/change/",{privacyx:{type:"String"},logging_source:{type:"String"}})}),null); __d("PrivacySelector",["csx","Promise","regeneratorRuntime","Arbiter","ArbiterMixin","AsyncRequest","AudienceSelector","CSS","DataStore","DOM","PrivacyConst","PrivacySelectorNewDispatcher","Run","SelectorDeprecated","SubscriptionsHandler","XStickyComposerChangeController","mixin","promiseDone"],(function(a,b,c,d,e,f,g){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c){var d;d=a.call(this)||this;c instanceof HTMLElement?d.$PrivacySelector3=c:d.$PrivacySelector1=c;d.$PrivacySelector7=null;d.$PrivacySelector6=new(b("SubscriptionsHandler"))();d.$PrivacySelector5=new(b("SubscriptionsHandler"))();d.$PrivacySelector1!=null?d.$PrivacySelector8():d.$PrivacySelector9();b("Run").onLeave(d.cleanup.bind(babelHelpers.assertThisInitialized(d)));return d}var d=c.prototype;d.select=function(a,c,d){__p&&__p();var e=this;if(a==null||c==null)throw new Error("PrivacySelector.select: you must pass in privacyParam and privacyBase");if(this.$PrivacySelector1!=null){var f=this.$PrivacySelector1;d&&this.$PrivacySelector6.addSubscriptions(f.subscribeOnce("changed",function(a,b){d&&d("changed",{post_param:b.post_param})}));f.selectOption(a)}else d&&this.$PrivacySelector5.addSubscriptions(b("Arbiter").subscribe("AudienceSelector/changed",function(a,c){if(e.$PrivacySelector10(c.selector)){a=b("SelectorDeprecated").getOptionValue(c.option);d&&d("changed",{privacy_base:a})}})),b("AudienceSelector").setAudience(this.$PrivacySelector3,c)};d.expandFull=function(a){this.$PrivacySelector1!=null?this.$PrivacySelector1.openSelectorExpanded(a):this.expand(a)};d.expandFullAndShowFlyout=function(a){this.expandFull(this.showFlyoutOnMenu.bind(this,a))};d.expand=function(a){var c=this;if(this.$PrivacySelector1!=null)this.$PrivacySelector1.openSelector(a);else{var d=b("SelectorDeprecated").getSelectorMenu(this.$PrivacySelector3);!d?b("SelectorDeprecated").loadMenu(this.$PrivacySelector3,function(){a&&a()}):this.$PrivacySelector5.addSubscriptions(b("SelectorDeprecated").listen(this.$PrivacySelector3,"open",function(){a&&a(),c.$PrivacySelector10(c.$PrivacySelector3)}));b("SelectorDeprecated").toggle(this.$PrivacySelector3,a)}};d.showFlyoutOnMenu=function(a){this.$PrivacySelector2&&this.$PrivacySelector2.hide();this.$PrivacySelector2=a;var c;this.$PrivacySelector1!=null?(c=this.$PrivacySelector1.getMenuElement(),a.setOffsetY(85)):(c=b("DOM").scry(this.$PrivacySelector3,"div.uiSelectorMenuWrapper")[0],a.setOffsetY(13));a.setContext(c);a.show()};d.setOnClose=function(a){this.$PrivacySelector7=a};d.cleanup=function(){this.$PrivacySelector6.release(),this.$PrivacySelector6=new(b("SubscriptionsHandler"))(),this.$PrivacySelector5.release(),this.$PrivacySelector5=new(b("SubscriptionsHandler"))(),this.$PrivacySelector2&&this.$PrivacySelector2.hide(),this.$PrivacySelector2=null,this.$PrivacySelector7=null};d.disable=function(){this.$PrivacySelector1!=null?this.$PrivacySelector1.disable():b("SelectorDeprecated").setEnabled(this.$PrivacySelector3,!1)};d.enable=function(){this.$PrivacySelector1!=null?this.$PrivacySelector1.enable():b("SelectorDeprecated").setEnabled(this.$PrivacySelector3,!0)};c.get=function(a){if(!a)return null;var b=c.getAdamaSelectorInstance(a);return b?new c(b):new c(a)};c.genAndThen=function(a,d){__p&&__p();a=c.getViableIDsForSelectorFetch(a);if(!a.length)return;a=c.$PrivacySelector12(a);var e=a.then(function(a){var b=a[0];a=a[1];d(b);return[b,a]});b("promiseDone")(e,function(a){a[0];a=a[1];c.$PrivacySelector11[a]=e})};c.getViableIDsForSelectorFetch=function(a){var b=[];a.id&&b.push(a.id);a=c.getDOMFromStory(a);a&&a.id&&b.push(a.id);return b};c.$PrivacySelector12=function(a){__p&&__p();for(var d=a,e=Array.isArray(d),f=0,d=e?d:d[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var g;if(e){if(f>=d.length)break;g=d[f++]}else{f=d.next();if(f.done)break;g=f.value}g=g;g=c.$PrivacySelector11[g];if(g!=null)return g}return new(b("Promise"))(function(d){__p&&__p();var e;return b("regeneratorRuntime").async(function(f){__p&&__p();while(1)switch(f.prev=f.next){case 0:e=null;case 1:if(e=c.$PrivacySelector13(a)){f.next=6;break}f.next=4;return b("regeneratorRuntime").awrap(new(b("Promise"))(function(a){return setTimeout(a,500)}));case 4:f.next=1;break;case 6:d(e);case 7:case"end":return f.stop()}},null,this)})};c.$PrivacySelector13=function(a){__p&&__p();for(var a=a,c=Array.isArray(a),d=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=a.length)break;e=a[d++]}else{d=a.next();if(d.done)break;e=d.value}e=e;var f=b("DataStore").get(e,"selector");if(f)return[f,e]}return null};c.getAdamaSelectorInstance=function(a){return c.$PrivacySelector14(a)||c.$PrivacySelector14(c.getDOMFromStory(a))};c.$PrivacySelector14=function(a){a=a&&a.id;return!a?null:b("DataStore").get(a,"selector")};c.getDOMFromStory=function(a){if(!a)return null;var c=b("DOM").scry(a,"._43_1")[0];return c?c:b("AudienceSelector").get(a)};c.getIconFromSelectorDOM=function(a){return b("DOM").scry(a,"i.img")[0]};c.setComposerPrivacy=function(a,c,d){d=b("XStickyComposerChangeController").getURIBuilder().setString("privacyx",a).setString("logging_source",d);new(b("AsyncRequest"))(d.getURI()).send();b("PrivacySelectorNewDispatcher").handleUpdateFromSelector({selector_type:8787670733..toString(),post_param:a,unique_value:"_updateStickyComposerPrivacy"});d=b("AudienceSelector").getComposerInstance(c);d&&b("AudienceSelector").setAudience(d,c)};c.isFakeOrUneditableSelector=function(a){return b("CSS").matchesSelector(a,"._2qwi")||b("CSS").matchesSelector(a,"._29ee")||b("CSS").matchesSelector(a,"._jl")||b("DOM").scry(a,"._2qwi")[0]||b("DOM").scry(a,"._29ee")[0]||b("DOM").scry(a,"._jl")[0]};d.$PrivacySelector8=function(){var a=this,b=this.$PrivacySelector1;if(!b)return;this.$PrivacySelector6.addSubscriptions(b.subscribe("changed",function(b,c){return a.inform("changed",{post_param:c.post_param})}),b.subscribe("selectorFinished",function(){return a.$PrivacySelector7&&a.$PrivacySelector7()}))};d.$PrivacySelector9=function(){__p&&__p();var a=this;this.$PrivacySelector6.addSubscriptions(b("Arbiter").subscribe("AudienceSelector/update",function(c,d){if(a.$PrivacySelector3!==d.selector)return;c=b("SelectorDeprecated").getOptionValue(d.option);a.inform("changed",{privacy_base:c})}),b("Arbiter").subscribe("AudienceSelector/changed",function(c,d){if(a.$PrivacySelector3!==d.selector)return;if(b("CSS").hasClass(d.option,"moreOption")||b("CSS").hasClass(d.option,"returnOption"))return;d.value!=b("PrivacyConst").BaseValue.CUSTOM?a.inform("changed",{privacy_base:d.value}):d.value==b("PrivacyConst").BaseValue.CUSTOM&&(a.$PrivacySelector4=!0)}),b("SelectorDeprecated").listen(this.$PrivacySelector3,"close",function(){if(a.$PrivacySelector4){a.$PrivacySelector4=!1;return}a.$PrivacySelector7&&a.$PrivacySelector7()}),b("Arbiter").subscribe("CustomPrivacyOptionController/cancel",function(b,c){if(a.$PrivacySelector3!==c.selector)return;a.$PrivacySelector7&&a.$PrivacySelector7()}))};d.$PrivacySelector10=function(a){if(a!=this.$PrivacySelector3)return!1;this.$PrivacySelector5.release();this.$PrivacySelector5=new(b("SubscriptionsHandler"))();return!0};return c}(b("mixin")(b("ArbiterMixin")));a.$PrivacySelector11={};e.exports=a}),null); __d("ReactComposerPostToGroupActionType",["keyMirrorRecursive"],(function(a,b,c,d,e,f){e.exports=b("keyMirrorRecursive")({SELECT_TAB:null,UNSELECT_TAB:null,UPDATE_SELECTED_GROUP:null,CLOSE_NUX:null,LOG_EVENT:null},"ReactComposerPostToGroupActionType")}),null); __d("XReactComposerPostToGroupLoggingODSController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/react_composer/logging/post_to_group/ods/",{event:{type:"String",required:!0}})}),null); __d("ReactComposerPostToGroupStore",["AsyncRequest","ReactComposerPostToGroupActionType","ReactComposerStoreBase","XReactComposerPostToGroupLoggingODSController"],(function(a,b,c,d,e,f){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){__p&&__p();var c,d;c=a.call(this,function(){return{isTabSelected:!1,selectedGroup:null,showNux:!0}},function(a){__p&&__p();switch(a.type){case b("ReactComposerPostToGroupActionType").SELECT_TAB:d&&d.$ReactComposerPostToGroupStore1(a,!0);break;case b("ReactComposerPostToGroupActionType").UNSELECT_TAB:d&&d.$ReactComposerPostToGroupStore1(a,!1);break;case b("ReactComposerPostToGroupActionType").UPDATE_SELECTED_GROUP:d&&d.$ReactComposerPostToGroupStore2(a);break;case b("ReactComposerPostToGroupActionType").CLOSE_NUX:d&&d.$ReactComposerPostToGroupStore3(a);break;case b("ReactComposerPostToGroupActionType").LOG_EVENT:d&&d.$ReactComposerPostToGroupStore4(a);break}})||this;d=babelHelpers.assertThisInitialized(c);return c}var d=c.prototype;d.getIsTabSelected=function(a){return this.getComposerData(a).isTabSelected};d.getSelectedGroup=function(a){return this.getComposerData(a).selectedGroup};d.getSelectedGroupID=function(a){a=this.getComposerData(a).selectedGroup;return a?a.getUniqueID():null};d.getShowNux=function(a){return this.getComposerData(a).showNux};d.$ReactComposerPostToGroupStore1=function(a,b){a=this.validateAction(a,["composerID"]);var c=this.getComposerData(a);c.isTabSelected=b;this.emitChange(a)};d.$ReactComposerPostToGroupStore2=function(a){a=this.validateAction(a,["composerID","group"]);var b=a[0];a=a[1];var c=this.getComposerData(b);c.selectedGroup=a;this.emitChange(b)};d.$ReactComposerPostToGroupStore3=function(a){a=this.validateAction(a,["composerID"]);var b=this.getComposerData(a);b.showNux=!1;this.emitChange(a)};d.$ReactComposerPostToGroupStore4=function(a){a=this.validateAction(a,["event"]);a=b("XReactComposerPostToGroupLoggingODSController").getURIBuilder().setString("event",a).getURI();new(b("AsyncRequest"))(a).send()};return c}(b("ReactComposerStoreBase"));e.exports=new a()}),null); __d("ReactComposerAttachmentSelectorContainer.react",["Arbiter","FluxContainer","React","ReactComposerAttachmentActions","ReactComposerAttachmentSelector.react","ReactComposerAttachmentStore","ReactComposerEvents","ReactComposerPostToGroupStore","ReactComposerStore","emptyFunction","ifRequired","ReactComposerContextTypes"],(function(a,b,c,d,e,f){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){__p&&__p();var c,d;for(var e=arguments.length,f=new Array(e),g=0;gc)return b("ReactComposerMediaAspectTypes").LANDSCAPE;else if(a=c.length)){b.next=4;break}return b.abrupt("break",16);case 4:f=c[e++];b.next=11;break;case 7:e=c.next();if(!e.done){b.next=10;break}return b.abrupt("break",16);case 10:f=e.value;case 11:g=f;b.next=14;return g;case 14:b.next=1;break;case 16:case"end":return b.stop()}},h,this)}a=function(){__p&&__p();function a(a,c){this.$1=!!(a&b("ReactComposerCollageLayoutActor").USER),this.$2=!!(a&b("ReactComposerCollageLayoutActor").PAGE),this.$3=[],c&&this.addPhotoLayouts(c)}var c=a.prototype;c.addPhotoLayout=function(a){this.$3.push(a);return this};c.addPhotoLayouts=function(a){var b=this;a.forEach(function(a){return b.$3.push(a)});return this};c.getNumPhotoLayouts=function(){return this.$3.length};c.getPhotoLayouts=function(){return this.$3};c.getIsValidForPages=function(){return this.$2};c.getIsValidForUsers=function(){return this.$1};c.getIsValidFor=function(a){switch(a){case b("ReactComposerCollageLayoutActor").USER:return this.getIsValidForUsers();case b("ReactComposerCollageLayoutActor").PAGE:return this.getIsValidForPages()}return!1};c.hasMatchingCollagePhotoLayoutType=function(a){var c=b("ReactComposerMediaAspect").fromRect(this.$3[0]);a=b("ReactComposerMediaAspect").fromDimensions(a);return c===a};c.score=function(a){__p&&__p();var b=0;for(var a=i(j(this.getPhotoLayouts()),a.values()),c=Array.isArray(a),d=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e;if(c){if(d>=a.length)break;e=a[d++]}else{d=a.next();if(d.done)break;e=d.value}e=e;var f=e[0];e=e[1];if(!e)continue;var g=f.w();f=f.h();var h=e[0];e=e[1];var k=0;if(h===0||e===0)k=0;else if(g*e/h>=f){var l=g*e/h;k=(l-f)/l}else if(f*h/e>g){l=f*h/e;k=(l-g)/l}b-=k*100;e===h?b-=k*5:g>f?h>e?b+=k*25:b-=k*25:g=a.length)break;j=a[i++]}else{i=a.next();if(i.done)break;j=i.value}j=j;var k=e[g++];k&&f.set(j,k)}return f},getBestUserCollageLayout:function(a){__p&&__p();var c=this._getCollageLayoutsFor(b("ReactComposerCollageLayoutActor").USER).filter(function(b){return b.getNumPhotoLayouts()<=a.size});if(!c.length)throw new Error("no valid layout for these media");c=this._bestLayoutByScore(c,a);if(!c)throw new Error("no best layout? Should not happen!");var d=new Map(),e=0;c=c.getPhotoLayouts();for(var f=a.keys(),g=Array.isArray(f),h=0,f=g?f:f[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var i;if(g){if(h>=f.length)break;i=f[h++]}else{h=f.next();if(h.done)break;i=h.value}i=i;var j=c[e++];j&&d.set(i,j)}return d},_bestLayoutByScore:function(a,b){__p&&__p();a=a.map(function(a){return[a,a.score(b)]});a=a.reduce(function(a,b){var c=a[0];a=a[1];var d=b[0];b=b[1];return a===null||b>a?[d,b]:[c,a]},[null,null]);a=a[0];return a}}}),null); __d("ReactComposerPrefillUtils",["Arbiter","Bootloader","PagesComposerContextUtils","PagesComposerUtils","ReactComposerAsset3dAttachmentActions","ReactComposerAttachmentActions","ReactComposerAttachmentStore","ReactComposerAttachmentType","ReactComposerAudienceActions","ReactComposerEvents","ReactComposerFocusActions","ReactComposerLoggingName","ReactComposerMediaUploadActions","ReactComposerMediaUploadType","ReactComposerPrefillActions","ReactComposerStore","ReactComposerTaskActions","TextDelightInComposerController"],(function(a,b,c,d,e,f){__p&&__p();var g=b("PagesComposerContextUtils").getIsDraftComposer,h=b("PagesComposerUtils").shouldUsePageDefaultDestination,i=b("TextDelightInComposerController").matcher;a={prefill:function(a,c,d){b("ReactComposerPrefillActions").setPrefillData(a,c),this._prefillMedia(a,c),this._prefillDestinationPicker(a,c,d),this._prefillCTAAttachment(a,c),this._prefillAsset3d(a,c),this._prefillStatusText(a,c),this._prefillTask(a,c),this._prefillBrandedContentDeal(a,c)},_prefillCTAAttachment:function(a,c){__p&&__p();if(!c.ctaConfig)return;c=c.ctaConfig;var d=c.attachmentID;c=c.entryPointRef;if(!b("ReactComposerAttachmentStore").hasAttachment(a,d))return;c=g(c);var e=c?b("ReactComposerLoggingName").AYMT_CTA_UPSELL:null;b("ReactComposerAttachmentActions").selectAttachment(a,d,!0,e,c?b("ReactComposerStore").getSproutSurface(a):null,null,e);b("Arbiter").subscribe("ReactComposerFocus/initialized"+a,function(){b("Arbiter").inform("ReactFeedComposerXBootloader/focuscomposer/"+a),b("ReactComposerFocusActions").notifyFocusAcquired(a)})},_prefillAsset3d:function(a,c){c=c.asset3dAttachment;if(!c)return;b("ReactComposerAsset3dAttachmentActions").prefill(a,c)},_prefillStatusText:function(a,c){var d=this,e=c.composedText,f=c.mentionsInput;e?b("Bootloader").loadModules(["ReactComposerPrefillComposedText","ReactComposerStatusActions"],function(b,c){b=b.createEditorState(e.blocks,e.entities);c.setEditorState(a,b);d._informComposerUpdated(a)},"ReactComposerPrefillUtils"):f?b("Bootloader").loadModules(["ReactComposerPrefillMentionsInput","ReactComposerStatusActions"],function(b,c){b=b.createEditorState(f.textWithEntities,f.selection);i&&f.textWithEntities&&(b=i.addDelightsIntoEditorState(f.textWithEntities.text,f.textWithEntities.textdelightranges,"post",b,a));c.setEditorState(a,b);d._informComposerUpdated(a)},"ReactComposerPrefillUtils"):b("Arbiter").inform(b("ReactComposerEvents").SET_PREFILL_DATA+a,null,"state")},_informComposerUpdated:function(a){b("Arbiter").inform(b("ReactComposerEvents").SET_PREFILL_DATA+a,null,"state"),b("Arbiter").inform(b("ReactComposerEvents").RERENDER_MENTION_INPUT+a)},_prefillMedia:function(a,c){var d=c.photosData;d&&d.length>0&&d.forEach(function(a){a.mediaType=b("ReactComposerMediaUploadType").PHOTO});c=c.mediasData;c=c||d;c&&c.length>0&&(b("ReactComposerAttachmentStore").getSelectedAttachmentID(a)!==b("ReactComposerAttachmentType").MEDIA&&b("ReactComposerAttachmentActions").selectAttachment(a,b("ReactComposerAttachmentType").MEDIA,!0,"MEDIA",b("ReactComposerStore").getSproutSurface(a),null,b("ReactComposerLoggingName").MEDIA_SPROUT),b("ReactComposerMediaUploadActions").prefillMedias(a,c))},_prefillTask:function(a,c){c=c.taskData;if(!c)return;b("ReactComposerTaskActions").setAssignee(a,c.assigneeID);b("ReactComposerTaskActions").setAssigneeName(a,c.assigneeName);b("ReactComposerTaskActions").setDescription(a,c.description);b("ReactComposerTaskActions").setDueDate(a,c.dueDate);b("ReactComposerTaskActions").setStatus(a,c.status);b("ReactComposerTaskActions").setTitle(a,c.title)},_prefillDestinationPicker:function(a,c,d){c.timelineSelected===void 0&&c.storiesSelected===void 0&&d&&d.defaultDestination&&!h(d.defaultDestination)?(b("ReactComposerAudienceActions").setTimelineSelected(a,d.defaultDestination==="TIMELINE"),b("ReactComposerAudienceActions").setStoriesSelected(a,d.defaultDestination==="STORIES")):(c.timelineSelected!==void 0&&b("ReactComposerAudienceActions").setTimelineSelected(a,c.timelineSelected),c.storiesSelected!==void 0&&b("ReactComposerAudienceActions").setStoriesSelected(a,c.storiesSelected)),c.messengerSectionVisible&&b("ReactComposerAudienceActions").clickSeeMessenger(a)},_prefillBrandedContentDeal:function(a,c){var d=c.brandedContentDealData;if(!d)return;b("Bootloader").loadModules(["ReactComposerBrandedContentDealUtil"],function(b){b.bootloadBCMPDealComposer(a,d.bcmpDealID,d.sponsorID)},"ReactComposerPrefillUtils")}};e.exports=a}),null); __d("DummySearchSource",["AbstractSearchSource","emptyFunction"],(function(a,b,c,d,e,f){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){var c;c=a.call(this)||this;c.sessionStart=b("emptyFunction");c.sessionEnd=b("emptyFunction");return c}var d=c.prototype;d.searchImpl=function(a,b,c){b([],a)};return c}(b("AbstractSearchSource"));e.exports=a}),null); __d("WebAsyncPlusRegexSearchSource",["invariant","AbstractSearchSource"],(function(a,b,c,d,e,f,g){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(b,a);function b(b){var c;c=a.call(this)||this;c.$WebAsyncPlusRegexSearchSource1=b.asyncSource;c.$WebAsyncPlusRegexSearchSource2=b.regexSource;c.$WebAsyncPlusRegexSearchSource3=!!b.appendRegexEntries;c.$WebAsyncPlusRegexSearchSource4=!!b.preferRegexEntries;!c.$WebAsyncPlusRegexSearchSource1&&g(0,5203);!c.$WebAsyncPlusRegexSearchSource2&&g(0,5204);return c}var c=b.prototype;c.bootstrapImpl=function(a){this.$WebAsyncPlusRegexSearchSource1.bootstrap(a)};c.$WebAsyncPlusRegexSearchSource5=function(a,b){__p&&__p();var c=[],d=!1,e;for(var f=0;f=a&&c.top+c.height>=b});return c===-1?null:c};b.getCalculatedHeight=function(){return this.$4};b.getSpacing=function(){return this.$2};b.getWidth=function(){return this.$3};b.$6=function(a){var b=this,c=this.$7(a),d=this.$8(a),e=this.$2*(d-1),f=Math.ceil((this.$3-e)/d);this.$4=this.$5||(f+this.$2)*c-this.$2;e=this.$2*(c-1);var g=Math.ceil((this.$4-e)/c);this.$1=[];a.forEach(function(a){a={left:(f+b.$2)*a.x,top:(g+b.$2)*a.y,width:(f+b.$2)*a.width-b.$2,height:(g+b.$2)*a.height-b.$2};a.left+a.width>b.$3&&(a.width=b.$3-a.left);b.$1.push(a)})};b.$8=function(a){var b=0;a.forEach(function(a){b=Math.max(b,a.x+a.width)});return b};b.$7=function(a){var b=0;a.forEach(function(a){b=Math.max(b,a.y+a.height)});return b};return a}();e.exports=a}),null); __d("RegexMatchSearchSource",["AbstractSearchSource","SearchableEntry"],(function(a,b,c,d,e,f){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(b,c,d){var e;e=a.call(this)||this;e.$RegexMatchSearchSource2=new RegExp(b);e.$RegexMatchSearchSource3=c||"";e.$RegexMatchSearchSource1=d||{};return e}var d=c.prototype;d.searchImpl=function(a,c,d){if(a&&this.$RegexMatchSearchSource2.test(a)){d=new(b("SearchableEntry"))({uniqueID:a,title:a,type:this.$RegexMatchSearchSource3,auxiliaryData:babelHelpers["extends"]({},this.$RegexMatchSearchSource1,{isRegexEntry:!0})});c([d],a);return}c([],a)};return c}(b("AbstractSearchSource"));e.exports=a}),null);