You are on page 1of 12

/*!CK:3480825382!

*//*1423454611,*/

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

__d("ContextualLayer.react",
["ContextualLayer","React","ReactLayer","Style"],function(a,b,c,d,e,f,g,h,i,j){var
k=h.PropTypes,l=i.createClass({propTypes:
{contextRef:k.string,context:function(m,n,o)
{if((m.context==null)==(m.contextRef==null))return new Error(("Exactly one of
`context` or `contextRef` must be set on `")+(o+"`."));var p=m[n];if(p!=null)
{if(typeof p!=='object')return new Error(("Invalid `"+n+"` supplied to `"+o+"`, ")+
("expected a React component."));if(h.isValidElement(p))return new Error(("Invalid
`"+n+"` supplied to `"+o+"`, ")+("expected a React component instance. You're
passing a React ")+("descriptor."));}}},immutableProps:
{modal:null},createLayer:function(m){var
n=this._getContextNode(),o={context:n,contextBounds:this.props.contextBounds,positi
on:this.props.position,alignment:this.props.alignment,offsetX:this.props.offsetX,of
fsetY:this.props.offsetY,addedBehaviors:this.enumerateBehaviors(this.props.behavior
s),shouldSetARIAProperties:this.props.shouldSetARIAProperties},p=new
g(o,m);this._node=m;this._matchContextSize(this.props);if(this.props.contextBounds)
p.setContextWithBounds(n,this.props.contextBounds);p.conditionShow(this.props.shown
);return p;},receiveProps:function(m){this.updateBehaviors(m.behaviors);var
n=this._getContextNode();if(m.contextBounds)
{this.layer.setContextWithBounds(n,m.contextBounds);}else
this.layer.setContext(n);this._matchContextSize(m);this.layer.setPosition(m.positio
n);this.layer.setAlignment(m.alignment);this.layer.setOffsetX(m.offsetX);this.layer
.setOffsetY(m.offsetY);this.layer.conditionShow(m.shown);},_getContextNode:function
(){var m;if(this.props.context){m=this.props.context.getDOMNode();}else
if(this.props.contextRef)m=this.getNodeForOwnerRef(this.props.contextRef);return
m;},_matchContextSize:function(m){var
n=this._node,o=this._getContextNode();if(m.containerWidthMatchContext)j.set(n,'widt
h',o.offsetWidth+'px');if(m.containerHeightMatchContext)j.set(n,'height',o.offsetHe
ight+'px');}});e.exports=l;},null);
__d("TypeaheadView.react",["React","cx","merge"],function(a,b,c,d,e,f,g,h,i){var
j=g.createClass({displayName:"TypeaheadView",propTypes:
{entries:g.PropTypes.array.isRequired,extraRendererProps:g.PropTypes.object,highlig
htedEntry:g.PropTypes.object,isVisible:g.PropTypes.bool,queryString:g.PropTypes.str
ing,Renderer:g.PropTypes.func.isRequired,selectedEntry:g.PropTypes.object},_onSelec
t:function(k,l)
{if(this.props.onSelect)this.props.onSelect(k,l);},_onHighlight:function(k)
{this.props.onHighlight(k);},render:function(){var k=((!
this.props.isVisible?"hidden_elem":'')),l=i({highlightedEntry:this.props.highlighte
dEntry,selectedEntry:this.props.selectedEntry,entries:this.props.entries,onSelect:t
his._onSelect,onHighlight:this._onHighlight,onRenderHighlight:this.props.onRenderHi
ghlight,ariaOwneeID:this.props.ariaOwneeID,queryString:this.props.queryString},this
.props.extraRendererProps),m=this.props.Renderer;return (g.createElement("div",
{className:k},g.createElement(m,g.__spread({},l))));}});e.exports=j;},null);
__d("AbstractTypeahead.react",
["AbstractTextFieldMixin.react","ContextualLayer.react","InputSelection","React","R
eactLayeredComponentMixin","SearchableTextInput.react","TypeaheadNavigation","Typea
headView.react","cx","getOrCreateDOMID","joinClasses","uniqueID"],function(a,b,c,d,
e,f,g,h,i,j,k,l,m,n,o,p,q,r){var
s=[],t=10,u=j.createClass({displayName:"AbstractTypeahead",mixins:
[k],propTypes:Object.assign({},g.propTypes,
{inputClassName:j.PropTypes.string,inputID:j.PropTypes.string,autoCapitalize:j.Prop
Types.string,autoComplete:j.PropTypes.string,autoCorrect:j.PropTypes.string,querySt
ring:j.PropTypes.string,searchSource:j.PropTypes.object.isRequired,searchSourceOpti
ons:j.PropTypes.object,excludedEntries:j.PropTypes.object,presenter:j.PropTypes.obj
ect.isRequired,onSelectAttempt:j.PropTypes.func,onEntriesFound:j.PropTypes.func,onE
nterWithoutSelection:j.PropTypes.func,autoHighlight:j.PropTypes.bool,showEntriesOnF
ocus:j.PropTypes.bool,selectOnBlur:j.PropTypes.bool,selectOnTab:j.PropTypes.bool,fo
cusedOnInit:j.PropTypes.bool,hideViewWithEntries:j.PropTypes.bool,disabled:j.PropTy
pes.bool,entriesWidthMatchContext:j.PropTypes.bool,selectedEntry:j.PropTypes.object
,onTypeaheadVisibilityChanged:j.PropTypes.func,onPaste:j.PropTypes.func}),getDefaul
tProps:function(){return
{autoComplete:'off',autoCorrect:'off',selectOnBlur:false,selectOnTab:true,hideViewW
ithEntries:true,entriesWidthMatchContext:true};},getInitialState:function(){return
{highlightedEntry:null,isAutoHighlight:this.props.autoHighlight,activeDescendant:nu
ll,ariaOwneeID:r(),activeEntries:null,focused:!!
this.props.focusedOnInit,viewIsVisible:!!
this.props.focusedOnInit};},_onRenderHighlight:function(v){var
w=p(v);this.setState({activeDescendant:w});},_determineViewVisibility:function(v,w)
{if(!v)return false;var x=v.length>0&&(this.props.showEntriesOnFocus||
this.props.queryString.length>0);return !!
(w&&(this.props.presenter.alwaysVisibleOnFocus||x));},_onEntriesFound:function(v)
{if(!this.isMounted())return;if(this.props.excludedEntries){var
w=this.props.excludedEntries;v=v.filter(function(ea){return !
w.hasOwnProperty(ea.getUniqueID());});}var x=this.props.presenter,y=typeof
x.sortEntries=='function'?
x.sortEntries(v,this.state.activeEntries,this.props.queryString):v,z=y.slice(0,x.ma
xEntries||t),aa=this._determineViewVisibility(z,this.state.focused);if(!z.length)
{this.setState({activeDescendant:null,activeEntries:z,highlightedEntry:null,isAutoH
ighlight:this.props.autoHighlight});this._setViewIsVisible(aa);return;}if(this.prop
s.onEntriesFound)this.props.onEntriesFound(z);var
ba=this.state.highlightedEntry,ca=ba&&z.indexOf(ba)!==-1;if(!
this.props.autoHighlight){this.setState({activeEntries:z,highlightedEntry:ca?
ba:null});if(aa)this._setViewIsVisible(true);return;}var
da=this.state.isAutoHighlight;if(da){ba=z[0];}else{ba=ca?ba:z[0];da=!
ca;}this.setState({activeEntries:z,highlightedEntry:ba,isAutoHighlight:da});if(aa)t
his._setViewIsVisible(true);},_onInputFocus:function(){var
v=this._determineViewVisibility(this.state.activeEntries,true);if(v)this._setViewIs
Visible(true);this.setState({focused:true});this.props.onFocus&&this.props.onFocus(
);},_onInputBlur:function()
{if(this.props.hideViewWithEntries)this._close();if(this.props.selectOnBlur&&this.s
tate.highlightedEntry)this.props.onSelectAttempt(this.state.highlightedEntry);this.
setState({focused:false});this.props.onBlur&&this.props.onBlur();},_onInputClick:fu
nction(){var
v=this.getTextFieldDOM(),w=i.get(v);if(w&&w.start==w.end)v.select();this.props.onCl
ick&&this.props.onClick();},_onEscape:function()
{this._close();this.blurInput();this.setState({focused:false});this.props.onEscape&
&this.props.onEscape();},_onEnter:function(event)
{if(this.props.onEnterWithoutSelection&&(!this.state.viewIsVisible||!
this.state.highlightedEntry))
{this.props.onEnterWithoutSelection(event);return;}if(!
this.state.viewIsVisible)return;if(!this.state.highlightedEntry)
{event.preventDefault();return;}if(this.props.hideViewWithEntries)this._close();if(
this.props.onSelectAttempt)this.props.onSelectAttempt(this.state.highlightedEntry);
event.preventDefault();},_onTab:function(event)
{if(this.props.selectOnTab&&this.state.viewIsVisible&&this.props.onSelectAttempt&&t
his.state.highlightedEntry){if(this.props.hideViewWithEntries)
{this._close();event.preventDefault();}this.props.onSelectAttempt(this.state.highli
ghtedEntry);}},_onDownArrow:function(event)
{event.preventDefault();m.moveDown(this.state.activeEntries||
s,this.state.highlightedEntry,this._setHighlight);},_onUpArrow:function(event)
{event.preventDefault();m.moveUp(this.state.activeEntries||
s,this.state.highlightedEntry,this._setHighlight);},_setHighlight:function(v)
{this.setState({highlightedEntry:v,isAutoHighlight:!
v});},_onInputChange:function(event)
{if(this.props.onChange)this.props.onChange(event);this._setViewIsVisible(this.stat
e.focused&&(this.props.showEntriesOnFocus||
event.target.value.length>0)&&(this.state.activeEntries!
=null&&this.state.activeEntries.length>0));},_onViewHighlight:function(v)
{this.setState({highlightedEntry:v,isAutoHighlight:false});},_getView:function()
{return (j.createElement(n,
{Renderer:this.props.presenter.ViewRenderer,extraRendererProps:this.props.presenter
.extraRendererProps,highlightedEntry:this.state.highlightedEntry,selectedEntry:this
.props.selectedEntry,isVisible:this.state.viewIsVisible,ariaOwneeID:this.state.aria
OwneeID,onHighlight:this._onViewHighlight,onRenderHighlight:this._onRenderHighlight
,onSelect:this.props.onSelectAttempt,entries:this.state.activeEntries||
s,queryString:this.props.queryString}));},_setViewIsVisible:function(v){if(v!
==this.state.viewIsVisible)
{if(this.props.onTypeaheadVisibilityChanged)this.props.onTypeaheadVisibilityChanged
(v,this.state.activeEntries||
s);this.setState({viewIsVisible:v});}},componentWillReceiveProps:function(v){if(!
v.queryString&&!
this.props.showEntriesOnFocus)this.clearActiveEntries();},componentDidUpdate:functi
on(){var
v=this._determineViewVisibility(this.state.activeEntries,this.state.focused);if(v)t
his._setViewIsVisible(true);},renderLayers:function(){if(!
this.props.presenter.useLayer)return {};var v=null,w=null;if(this.props.context)
{v=this.props.context;}else w='input';return {typeaheadView:j.createElement(h,
{behaviors:this.props.presenter.layerBehaviors,containerWidthMatchContext:this.prop
s.entriesWidthMatchContext,contextRef:w,context:v,position:this.props.presenter.lay
erPosition||"below",shown:this.state.viewIsVisible,shouldSetARIAProperties:false},t
his._getView())};},render:function(){var v=j.createElement(l,{"aria-
activedescendant":this.state.activeDescendant,"aria-autocomplete":"list","aria-
owns":this.state.ariaOwneeID,ref:"input",autoCapitalize:this.props.autoCapitalize,a
utoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:th
is.props.inputClassName,id:this.props.inputID,queryString:this.props.queryString,pl
aceholder:this.props.placeholder,searchSource:this.props.searchSource,searchSourceO
ptions:this.props.searchSourceOptions,searchOnFocus:!!
this.props.showEntriesOnFocus,disabled:this.props.disabled,onEntriesFound:this._onE
ntriesFound,onEscape:this._onEscape,onBlur:this._onInputBlur,onFocus:this._onInputF
ocus,onChange:this._onInputChange,onDownArrow:this._onDownArrow,onUpArrow:this._onU
pArrow,onTab:this._onTab,onEnter:this._onEnter,onBackspace:this.props.onBackspace,o
nPaste:this.props.onPaste,onClick:this._onInputClick}),w=null;if(!
this.props.presenter.useLayer)w=this._getView();return
(j.createElement("span",j.__spread({},this.props,
{className:q(this.props.className,"_58ah"),onBlur:null,onClick:null,onFocus:null}),
{searchableInput:v,view:w}));},componentDidMount:function()
{if(this.props.focusedOnInit)this.refs.input.focusInput();},clearActiveEntries:func
tion()
{this.setState({activeDescendant:null,activeEntries:null,highlightedEntry:null});},
focusInput:function(){this.refs.input.focusInput();},blurInput:function()
{if(this.refs.input.blur){this.refs.input.blur();}else
if(this.refs.input.blurInput)this.refs.input.blurInput();},hideView:function()
{this._setViewIsVisible(false);},_close:function()
{this._setViewIsVisible(false);this.clearActiveEntries();},getTextFieldDOM:function
(){return this.refs.input.getTextFieldDOM();}});e.exports=u;},null);
__d("XUITypeaheadTextOnlyView.react",
["React","TypeaheadViewItem","TypeaheadViewPropTypes","cx"],function(a,b,c,d,e,f,g,
h,i,j){var k=g.createClass({displayName:"XUITypeaheadTextOnlyViewItem",mixins:
[h.Mixin],propTypes:h.propTypes,render:function(){var
m=this.props.entry,n=(("_599m")+(this.props.highlighted?' '+"_599n":''));return
(g.createElement("li",{"aria-label":m.getTitle(),"aria-
selected":this.props.highlighted,className:n,key:m.getUniqueID(),onMouseDown:this._
onSelect,onMouseEnter:this._onHighlight,role:this.props.role,title:m.getTitle()},g.
createElement("div",
{className:"_599p"},m.getTitle())));}}),l=g.createClass({displayName:"XUITypeaheadT
extOnlyView",propTypes:i,getDefaultProps:function(){return
{role:'listbox'};},_renderItem:function(m){var
n=m===this.props.highlightedEntry;return (g.createElement(k,
{entry:m,highlighted:n,key:m.getUniqueID(),onSelect:this.props.onSelect,onHighlight
:this.props.onHighlight,onRenderHighlight:this.props.onRenderHighlight}));},render:
function(){var m=(("_599r")+(!this.props.entries.length?' '+"_599s":''));return
(g.createElement("ul",
{className:m,id:this.props.ariaOwneeID,role:this.props.role},this.props.entries.map
(this._renderItem)));}});e.exports=l;},null);
__d("XUITypeaheadViewItem.react",
["React","TypeaheadViewItem","BackgroundImage.react","Badge.react","ImageBlock.reac
t","cx","joinClasses"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){var
n=g.createClass({displayName:"XUITypeaheadViewItem",mixins:
[h.Mixin],propTypes:h.propTypes,render:function(){var
o=this.props.entry,p=o.getSubtitle().split(' \u00b7 ')[0],q=p?
g.createElement("div",{className:"_599q"},p):null,r=o.getPhoto()?g.createElement(i,
{width:32,height:32,backgroundSize:"cover",src:o.getPhoto()}):g.createElement("span
",null),s=o.getAuxiliaryData(),t=null;if(s&&s.verified)t=g.createElement(j,null);va
r u=(("_599m")+(!q?' '+"_5mne":'')+(this.props.highlighted?'
'+"_599n":''));u=m(u,this.props.className);return (g.createElement("li",{"aria-
selected":this.props.highlighted,className:u,onMouseDown:this._onSelect,onMouseEnte
r:this._onHighlight,role:this.props.role},g.createElement(k,
{spacing:"medium"},r,g.createElement("div",null,g.createElement("div",
{className:"_599p"},o.getTitle(),t),q))));}});e.exports=n;},null);
__d("XUITypeaheadView.react",
["React","TypeaheadViewPropTypes","XUITypeaheadViewItem.react","cx"],function(a,b,c
,d,e,f,g,h,i,j){var
k=g.createClass({displayName:"XUITypeaheadView",propTypes:h,getDefaultProps:functio
n(){return {role:'listbox'};},_renderItem:function(l){var
m=l===this.props.highlightedEntry;return (g.createElement(i,
{key:l.getUniqueID(),entry:l,highlighted:m,onSelect:this.props.onSelect,onHighlight
:this.props.onHighlight,onRenderHighlight:this.props.onRenderHighlight}));},render:
function(){var l=(("_599r")+(!this.props.entries.length?' '+"_599s":''));return
(g.createElement("ul",
{className:l,id:this.props.ariaOwneeID,role:this.props.role},this.props.entries.map
(this._renderItem)));}});e.exports=k;},null);
__d("XUITypeahead.react",
["AbstractTypeahead.react","React","Image.react","SearchableEntry","XUICloseButton.
react","XUIError.react","XUITypeaheadTextOnlyView.react","XUITypeaheadView.react","
cx","joinClasses"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){var
q=h.PropTypes,r={ViewRenderer:n,useLayer:true},s={ViewRenderer:n,useLayer:false},t=
{ViewRenderer:m,useLayer:true},u=h.createClass({displayName:"XUITypeahead",propType
s:Object.assign({maxEntries:q.number,onChange:q.func.isRequired,onSelectAttempt:q.f
unc.isRequired,onEntriesFound:q.func,selectedEntry:q.instanceOf(j),tallInput:q.bool
,viewStyle:q.oneOf(['textonly','rich','richNoLayer']),clearable:q.bool,onClear:q.fu
nc,showPhoto:q.bool,highlightOnSelect:q.bool,presenter:q.object,inputID:q.string},l
.propTypes),getDefaultProps:function(){return
{viewStyle:'rich'};},componentWillMount:function(){if(!
this.props.presenter&&this.props.maxEntries)r.maxEntries=s.maxEntries=t.maxEntries=
this.props.maxEntries;},focusInput:function()
{this.refs.typeahead.focusInput();},blurInput:function()
{this.refs.typeahead.blurInput();},hideView:function()
{this.refs.typeahead.hideView();},getTextFieldDOM:function(){return
this.refs.typeahead.getTextFieldDOM();},_onClear:function()
{this.props.onClear();setTimeout(function(){return
this.focusInput();}.bind(this),0);},render:function(){var v=(("_55r1")+(!!
this.props.tallInput?' '+"_55r2":'')),w=null;if(this.props.presenter)
{w=this.props.presenter;}else if(this.props.viewStyle=='rich'){w=r;}else
if(this.props.viewStyle=='richNoLayer'){w=s;}else w=t;var
x=this.props.showPhoto&&this.props.selectedEntry?h.createElement(i,
{className:"_wrl",src:this.props.selectedEntry.getPhoto()}):null,y=this.props.clear
able?h.createElement(k,{className:(("_wrm")+(!this.props.queryString?'
'+"hidden_elem":'')),size:this.props.tallInput?'medium':'small',type:"button",onCli
ck:this._onClear}):null,z=this.props,aa=z.className,ba=(function(ca,da){var
ea={},fa=Object.prototype.hasOwnProperty;if(ca==null)throw new TypeError();for(var
ga in ca)if(fa.call(ca,ga)&&!fa.call(da,ga))ea[ga]=ca[ga];return ea;})(z,
{className:1});return
(h.createElement(l,h.__spread({},this.props),h.createElement("span",
{className:p((("_wrn")+(!!this.props.tallInput?' '+"_213j":'')+(!!y?' '+"_4ehf":'')
+(!!x?' '+"_4ehg":'')+(!!this.props.queryString?' '+"_4in7":'')+
(this.props.highlightOnSelect&&this.props.selectedEntry?'
'+"_wrr":'')),aa)},x,h.createElement(g,h.__spread({},ba,
{inputClassName:v,ref:"typeahead",presenter:w})),y)));}});e.exports=u;},null);
__d("requiredIfPropIsTruthy",["invariant"],function(a,b,c,d,e,f,g){function h(i,j)
{return function(k,l,m){if(!k[i])return;g(k[l]!==(void
0));j(k,l,m);};}e.exports=h;},null);
__d("ProfileChecklistMixin",
["OrderedMap","React","requestAnimationFrame","requiredIfPropIsTruthy"],function(a,
b,c,d,e,f,g,h,i,j){var k=h.PropTypes,l={propTypes:
{baseName:k.string.isRequired,fetchOnScroll:k.bool,imageSize:k.number,multiSelect:k
.bool,onChange:k.func,options:k.array,overflow:k.oneOf(['scroll','show']),pagerEndp
oint:j('showPager',k.string),pagerPlaceholder:j('showPager',k.string),requireSelect
:k.bool,scrollOnFetch:k.bool,showPager:k.bool},addOption:function(m,n,o,p,q,r)
{this.props.multiSelect||
this._uncheckAllOptions();this._insertSingleOption.apply(this,
[false].concat(Array.prototype.slice.call(arguments)));},replaceWithSingleOption:fu
nction(m,n,o,p,q,r){this._insertSingleOption.apply(this,
[true].concat(Array.prototype.slice.call(arguments)));this._optionsWereReplaced&&th
is._optionsWereReplaced();},clearSelection:function()
{this._uncheckAllOptions();},getSelection:function(){var
m={};this.state.options.forEach(function(n,o){if(n.checked)m[o]=n;});return
m;},getSelectionCount:function(){return
Object.keys(this.getSelection()).length;},hasSelection:function(){return
this.getSelectionCount()>0;},getInitialState:function(){return
{options:g.fromArray(this.props.options,function(m){return
m.id;}),showPager:this.props.showPager};},shouldComponentUpdate:function(m,n)
{return (this.state.options!==n.options||this.state.showPager!
==n.showPager);},_getOptionNameOrFallback:function(m){var n=m.name||
this.props.baseName;if(this.props.multiSelect&&!
n.endsWith('[]'))n+='['+m.id+']';return n;},_changeHandler:function(event)
{if(this.props.requireSelect&&!
event.target.checked&&this.getSelectionCount()===1)return;if(event.target.checked&&
!
this.props.multiSelect)this._uncheckAllOptions();this.setState({options:this.state.
options.map(function(m,n)
{if(n===event.target.value)m.checked=event.target.checked;return m;})},function()
{if(this.props.onChange)this.props.onChange(this.getSelection());}.bind(this));},_e
xhaustionHandler:function()
{this.setState({showPager:false});},_fetchHandler:function(m){if(!m.options.length)
{this._exhaustionHandler();return;}this._insertOptions(g.fromArray(m.options,functi
on(n){return n.id;}),false,function()
{if(this.props.scrollOnFetch&&this.scrollOptionToTop)this.scrollOptionToTop(m.optio
ns[0].id);}.bind(this));if(this.refs.container&&this.refs.container.updateShadows)i
(this.refs.container.updateShadows);},_insertSingleOption:function(m,n,o,p,q,r,s)
{var t=g.fromArray([{id:n,title:o,subtitle:p,image:q,checked:!!
r,name:s}],function(u){return
u.id;});this._insertOptions(t,m);if(this._optionWasAdded)i(function(){return
this._optionWasAdded(n);}.bind(this));},_insertOptions:function(m,n,o)
{this.setState({options:n?
m:this.state.options.merge(m)},o);},_uncheckAllOptions:function()
{this.setState({options:this.state.options.map(function(m){m.checked=false;return
m;})});}};e.exports=l;},null);
__d("ProfileChecklistPagerMixin",["React"],function(a,b,c,d,e,f,g){var
h={propTypes:
{endpoint:g.PropTypes.string.isRequired,onExhaustion:g.PropTypes.func.isRequired,on
Fetch:g.PropTypes.func,placeholder:g.PropTypes.string.isRequired},getInitialState:f
unction(){return
{endpoint:this.props.endpoint,loading:false};},_shouldFetchMore:function()
{if(this.state.loading||!this.state.endpoint)return
false;this.setState({loading:true});return true;},_onFetch:function(i)
{this.setState({endpoint:i.endpoint,loading:false});this.props.onFetch&&this.props.
onFetch(i);!i.endpoint&&this.props.onExhaustion();}};e.exports=h;},null);
__d("AbstractAsyncSearchSource",
["AbstractSearchSource","SearchSourceCallbackManager","SearchableEntry","TokenizeUt
il","copyProperties","emptyFunction","isValidUniqueID"],function(a,b,c,d,e,f,g,h,i,
j,k,l,m){for(var n in g)if(g.hasOwnProperty(n))p[n]=g[n];var o=g===null?
null:g.prototype;p.prototype=Object.create(o);p.prototype.constructor=p;p.__superCo
nstructor__=g;function p(q,r,s){"use strict";this.
$AbstractAsyncSearchSource0=q.bootstrapRequests;this.
$AbstractAsyncSearchSource1=q.queryRequests;this.
$AbstractAsyncSearchSource2=q.auxiliaryFields;this.
$AbstractAsyncSearchSource3=q.asyncErrorHandler||l;this.
$AbstractAsyncSearchSource4=q.packageFn||this.$AbstractAsyncSearchSource5;this.
$AbstractAsyncSearchSource6=q.getAllForEmptyQuery;this.
$AbstractAsyncSearchSource7=[];this.$AbstractAsyncSearchSource8=new
h({parseFn:j.parse,matchFn:j.isQueryMatch,indexFn:q.indexFn});this.
$AbstractAsyncSearchSource9=r;this.
$AbstractAsyncSearchSourcea=s;}p.prototype.bootstrapImpl=function(q){"use
strict";if(!this.$AbstractAsyncSearchSource0||!this.
$AbstractAsyncSearchSource0.length){q();return;}var r=this.
$AbstractAsyncSearchSource0.length,s=0;this.
$AbstractAsyncSearchSource0.forEach(function(t){this.
$AbstractAsyncSearchSourceb({},t,function(u){this.
$AbstractAsyncSearchSource8.addLocalEntries(u);this.
$AbstractAsyncSearchSource7=this.$AbstractAsyncSearchSource7.concat(u);s+
+;if(s===r)
{q();q=null;}}.bind(this));}.bind(this));};p.prototype.searchImpl=function(q,r,s)
{"use strict";if(this.$AbstractAsyncSearchSource6&&q==='')
{this.getBootstrappedEntries(function(y){r(y,q);});return;}var t=null,u={},v=this.
$AbstractAsyncSearchSource8.search(q,function(y){if(!t){t=y;t.forEach(function(z)
{u[z.getUniqueID()]=true;});}else y.forEach(function(z){var aa=z.getUniqueID();if(!
u[aa]){t.push(z);u[aa]=true;}});r(t,q);},s);if(!v||!this.
$AbstractAsyncSearchSource1||!this.$AbstractAsyncSearchSource1.length)return;var
w={value:q,existing_ids:t&&t.map(function(y){return
y.getUniqueID();}).join(',')},x=this.$AbstractAsyncSearchSource1.length;this.
$AbstractAsyncSearchSource1.forEach(function(y){this.
$AbstractAsyncSearchSourceb(w,y,function(z){this.
$AbstractAsyncSearchSourcec(z,q);x--;if(!x)this.
$AbstractAsyncSearchSource8.setQueryStringAsExhausted(q);}.bind(this));},this);};p.
prototype.getBootstrappedEntries=function(q){"use strict";return
this.bootstrap(function(){return q(this.$AbstractAsyncSearchSource7||
[]);}.bind(this));};p.prototype.getAllEntriesMap=function(){"use strict";return
this.$AbstractAsyncSearchSource8.getAllEntriesMap();};p.prototype.
$AbstractAsyncSearchSourceb=function(q,r,s){"use strict";this.
$AbstractAsyncSearchSource9(q,r,function(t){return s(this.
$AbstractAsyncSearchSourcea(t,this.$AbstractAsyncSearchSource4).filter(function(u)
{return !!u;}));}.bind(this),this.$AbstractAsyncSearchSource3);};p.prototype.
$AbstractAsyncSearchSourced=function(q){"use strict";this.
$AbstractAsyncSearchSource8.addLocalEntries(q);};p.prototype.
$AbstractAsyncSearchSourcec=function(q,r){"use strict";if(q.length)this.
$AbstractAsyncSearchSource8.addQueryEntries(q,r);};p.prototype.
$AbstractAsyncSearchSource5=function(q,r){"use strict";var s=q.title||
q.text,t=q.uniqueID||q.uid;if(!s||!m(t))return null;return new
i({uniqueID:t,order:q.order||q.index||r,title:s,subtitle:q.subtitle||q.category||
q.subtext,keywordString:q.keywordString||
q.tokens,type:q.type,photo:q.photo,uri:q.uri||q.path,auxiliaryData:this.
$AbstractAsyncSearchSourcee(q)});};p.prototype.
$AbstractAsyncSearchSourcee=function(q){"use strict";var r;if(this.
$AbstractAsyncSearchSource2){r={};for(var s in this.$AbstractAsyncSearchSource2)
{var t=this.$AbstractAsyncSearchSource2[s];r[s]=q[t];}}if(q.aux_data){r=r||
{};k(r,q.aux_data);}return r;};e.exports=p;},null);
__d("highlight",["Animation","Style"],function(a,b,c,d,e,f,g,h){function i(j,k,l,m)
{new
g(j).from('background',m||'#fff9d7').to('background',l||'#fff').ease(g.ease.both).d
uration(2000).ondone(function()
{h.set(j,'background','');k&&k();}).go();}e.exports=i;},null);
__d("ShadowedScrollableArea.react",
["React","Vector","cx","throttle","joinClasses"],function(a,b,c,d,e,f,g,h,i,j,k)
{var l=500,m=g.createClass({displayName:"ShadowedScrollableArea",propTypes:
{maxHeight:g.PropTypes.number.isRequired},getInitialState:function(){return
{showBottom:false,showTop:false};},render:function(){var
n=g.createElement("div",g.__spread({},this.props,
{className:k(this.props.className,"scrollable"),ref:"area",style:Object.assign({},
(this.props.style||{}),
{maxHeight:this.props.maxHeight})}),this.props.children),o=(("_2yy7")+
(this.state.showBottom?' '+"_2yy8":'')+(this.state.showTop?' '+"_2yy9":''));return
(g.createElement("div",
{className:o,onScroll:this._scrollHandler},n));},componentWillUnmount:function()
{this.throttled=null;},getArea:function(){return
this.refs.area.getDOMNode();},getScrollPosition:function(){var
n=this.refs.area.getDOMNode(),o=this._getAreaDimensions().height;return
{bottom:n.scrollHeight-n.scrollTop-o,top:n.scrollTop};},updateShadows:function()
{if(this._hasOverflow()){var
n=this.getScrollPosition();this.setState({showBottom:n.bottom!==0,showTop:n.top!
==0});}else if(this.state.showBottom||
this.state.showTop)this.setState({showBottom:false,showTop:false});},_getAreaDimens
ions:function(){var n=this.refs.area.getDOMNode();return
{height:h.getElementDimensions(n).y,scrollHeight:n.scrollHeight};},_hasOverflow:fun
ction(){var n=this._getAreaDimensions();return
n.scrollHeight>n.height;},_scrollHandler:function(event){if(!
this.throttled)this.throttled=j(this.updateShadows,l,this);this.throttled();}});e.e
xports=m;},null);
__d("ProfileChecklistScrollMixin",
["Animation","Style","highlight","throttle"],function(a,b,c,d,e,f,g,h,i,j){var
k=400,l=100,m=300,n=250,o={componentWillUnmount:function()
{this.throttled=null;},scrollToBottom:function()
{this._scrollTo(this._getScrollArea().scrollHeight);},scrollOptionToTop:function(q)
{if(!this.state.options.has(q))return;var
r=this.refs[q].getDOMNode();this._scrollTo(r.offsetTop-
1,null,m);},scrollToOption:function(q){if(!this.state.options.has(q))return;var
r=this._getScrollArea(),s=this.refs[q].getDOMNode(),t=s.offsetTop+s.offsetHeight,u=
r.scrollTop+r.offsetHeight,v=function(){var
w=this._getBackgroundColor();w&&i(s,null,w);}.bind(this);if(s.offsetTop<r.scrollTop
){this._scrollTo(s.offsetTop-1,v);}else if(t>u){this._scrollTo(t-
r.offsetHeight,v);}else{v();return;}},_getScrollArea:function(){return
this.refs.container.getArea();},_getBackgroundColor:function(){var
q=this._getScrollArea();while(q){var r=h.get(q,'backgroundColor');if(!p(r))return
r;q=q.parentElement;}return null;},_maybeFetchMoreOptions:function()
{if(this.props.fetchOnScroll&&this.state.showPager&&this.refs.container.getScrollPo
sition().bottom<k)this.refs.pager.fetchMore();},_scrollHandler:function(){if(!
this.throttled)this.throttled=j(this._maybeFetchMoreOptions,n,this);this.throttled(
);},_scrollTo:function(q,r,s){new
g(this._getScrollArea()).to('scrollTop',q).ease(g.ease.end).duration(s||
l).ondone(function(){r&&r();}).go();}};function p(q){if(!
q.startsWith('rgba'))return false;var r=q.split(',');return
r.length===4&&parseFloat(r[3])===0;}e.exports=o;},null);
__d("ProfileChecklistItem.react",
["React","cx","invariant","joinClasses"],function(a,b,c,d,e,f,g,h,i,j){var
k=g.PropTypes,l=g.createClass({displayName:"ProfileChecklistItem",propTypes:
{context:k.oneOf(['block','inline']),paddingLeft:k.oneOf(['none','small','normal'])
,paddingRight:k.oneOf(['none','small','normal'])},getDefaultProps:function(){return
{context:'block',paddingLeft:'normal',paddingRight:'normal'};},render:function()
{i(Array.isArray(this.props.children)&&(this.props.children.length===2||
this.props.children.length===3));var m,n,o;if(this.props.children.length===3)
{m=this.props.children[0];n=this.props.children[1];o=this.props.children[2];}else{m
=null;n=this.props.children[0];o=this.props.children[1];}var
p=this.props.context==='block'?'div':'span',q=null;if(m)q=g.createElement(p,
{className:"_2anj _2ani"},m);var
r=this.props.paddingLeft,s=this.props.paddingRight,t=(("_2anm")+(r==='none'?'
'+"_2ann":'')+(r==='small'?' '+"_2ano":'')+(s==='none'?' '+"_2anp":'')+
(s==='small'?' '+"_2anq":''));return (g.createElement(p,g.__spread({},this.props,
{className:j(this.props.className,t)}),q,g.createElement(p,{className:(("_2ank")+(!
m?' '+"_2ani":''))},n),g.createElement(p,
{className:"_2anl"},o)));}});e.exports=l;},null);
__d("ProfileChecklistPager.react",
["AsyncRequest","ProfileChecklistPagerMixin","React","XUIText.react","cx"],function
(a,b,c,d,e,f,g,h,i,j,k){var
l=i.createClass({displayName:"ProfileChecklistPager",mixins:
[h],fetchMore:function(){if(!this._shouldFetchMore())return;(new
g()).setURI(this.state.endpoint).setHandler(this._fetchHandler).send();},render:fun
ction(){var m=(("_yon")+(this.state.loading?' '+"_yoo":''));return
(i.createElement("div",{className:m,onClick:this._clickHandler},i.createElement(j,
{size:"small",weight:"bold"},this.props.placeholder),i.createElement("div",
{className:"_yop"})));},_clickHandler:function(event)
{this.fetchMore();},_fetchHandler:function(m){var
n=m.getPayload();this._onFetch(n);}});e.exports=l;},null);
__d("ProfileChecklist.react",
["ProfileChecklistMixin","ProfileChecklistScrollMixin","React","Image.react","Profi
leChecklistItem.react","ProfileChecklistPager.react","ShadowedScrollableArea.react"
,"XUIGrayText.react","cx","uniqueID"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){var
q=248,r=32,s=i.createClass({displayName:"ProfileChecklist",mixins:[g,h],propTypes:
{titleFontShade:i.PropTypes.oneOf(['dark','light','medium'])},getDefaultProps:funct
ion(){return
{overflow:'show',imageSize:r,titleFontShade:'medium'};},getInitialState:function()
{return {instanceID:p()};},render:function(){var
t=[];this.state.options.forEach(function(w,x){var
y=null;if(w.image)y=i.createElement("span",null,i.createElement(j,
{alt:w.title,height:this.props.imageSize,src:w.image,width:this.props.imageSize}));
var z=null;if(w.subtitle)z=i.createElement(n,
{className:"_2uoa",weight:"normal"},w.subtitle);var aa=(("_2uob")+(w.checked?'
'+"_2uoc":'')+(w.focused?'
'+"_2uod":'')),ba=null;if(w.iconSrc&&w.iconExplanation)ba=i.createElement(j,{"aria-
label":w.iconExplanation,className:"_3nbs","data-hover":"tooltip","data-tooltip-
position":"above",src:w.iconSrc});var
ca=[this.state.instanceID,x].join('_');t.push(i.createElement("label",
{className:aa,htmlFor:ca,key:x,ref:x},i.createElement(k,
{context:"inline",paddingLeft:this.props.paddingLeft,paddingRight:this.props.paddin
gRight},y,i.createElement("span",null,i.createElement(n,
{className:"_2uoe",shade:this.props.titleFontShade,size:"small",weight:"bold"},w.ti
tle,ba),z),i.createElement("span",{className:"_2uof"},i.createElement("span",
{className:"_2uog"}),i.createElement("input",
{checked:w.checked,className:"_2uoh",id:ca,name:this._getOptionNameOrFallback(w),on
Blur:this._blurHandler,onChange:this._changeHandler,onFocus:this._focusHandler,type
:"checkbox",value:x})))));},this);var
u=null;if(this.state.showPager)u=i.createElement(l,
{endpoint:this.props.pagerEndpoint,onExhaustion:this._exhaustionHandler,onFetch:thi
s._fetchHandler,placeholder:this.props.pagerPlaceholder,ref:"pager"});var
v=i.createElement("fieldset",
{className:"_2uoi"},t,u);if(this.props.overflow==='scroll')return
(i.createElement(m,
{maxHeight:q,onScroll:this._scrollHandler,ref:"container"},v));return
v;},_blurHandler:function(event)
{this.setState({options:this.state.options.map(function(t,u)
{if(u===event.target.value)t.focused=false;return
t;})});},_focusHandler:function(event)
{this.setState({options:this.state.options.map(function(t,u)
{t.focused=u===event.target.value;return t;})});}});e.exports=s;},null);
__d("SearchSourceWithMetrics",["AbstractSearchSource"],function(a,b,c,d,e,f,g)
{for(var h in g)if(g.hasOwnProperty(h))j[h]=g[h];var i=g===null?
null:g.prototype;j.prototype=Object.create(i);j.prototype.constructor=j;j.__superCo
nstructor__=g;function j(k,l){"use
strict";this.searchSource=k;this.reporter=l;}j.prototype.searchImpl=function(k,l,m)
{"use strict";this.reporter.reportQueryBegin(k);var
n=Date.now();this.searchSource.search(k,function(o,p)
{this.reporter.reportQueryComplete(Date.now()-
n,0);l(o,p);}.bind(this),m);};j.prototype.bootstrapImpl=function(k){"use
strict";this.reporter.reportBootstrapBegin();return
this.searchSource.bootstrap(function()
{this.searchSource.getBootstrappedEntries(function(l)
{this.reporter.reportBootstrapComplete(l.map(function(m){return
m.getType();}));k();}.bind(this));}.bind(this));};e.exports=j;},null);
__d("TypeaheadMetricCounter",["copyProperties"],function(a,b,c,d,e,f,g){function
h(){"use strict";this.reset();}h.prototype.reset=function(){"use
strict";this.stats={};this.avgStats={};};h.prototype.recordStat=function(i,j){"use
strict";this.stats[i]=j;};h.prototype.recordCountStat=function(i){"use strict";var
j=this.stats[i];this.stats[i]=j?j+1:1;};h.prototype.recordAvgStat=function(i,j)
{"use strict";if(this.avgStats[i]){this.avgStats[i][0]+=j;this.avgStats[i]
[1]+=1;}else this.avgStats[i]=[j,1];};h.prototype.hasStats=function(){"use
strict";return !!Object.keys(this.stats).length;};h.prototype.getStats=function()
{"use strict";var i=g({},this.stats);for(var j in this.avgStats){var
k=this.avgStats[j];i[j]=k[0]/k[1];}return i;};e.exports=h;},null);
__d("TypeaheadMetricReporter",
["AsyncRequest","QueriesHistory","TypeaheadMetricCounter","mixInEventEmitter","copy
Properties"],function(a,b,c,d,e,f,g,h,i,j,k){var
l='/ajax/typeahead/record_basic_metrics.php',m=1000;function n(o){"use
strict";this.counter=new
i();this.extraData=o;this.bootstrapped=null;this.bootstrapBegin=null;this.queriesHi
story=new h(m);this.lastQuery=null;this.
$TypeaheadMetricReporter0();}n.prototype.sessionStart=function(){"use
strict";this.sessionActive=true;};n.prototype.sessionEnd=function(){"use
strict";if(this.sessionActive){this.$TypeaheadMetricReporter1();this.
$TypeaheadMetricReporter0();this.sessionActive=false;}};n.prototype.reportSelect=fu
nction(o,p,q,r,s){"use strict";s=s==null?
this.lastQuery:s;this.counter.recordStat('selected_id',o||'SELECT_NULL');this.count
er.recordStat('selected_type',p);this.counter.recordStat('selected_position',q);thi
s.counter.recordStat('selected_with_mouse',r?
1:0);this.counter.recordStat('selected_query',s);};n.prototype.reportBootstrapBegin
=function(){"use
strict";this.bootstrapBegin=Date.now();};n.prototype.reportBootstrapDirty=function(
){"use
strict";this.bootstrapped=false;};n.prototype.reportBootstrapComplete=function(o)
{"use strict";this.counter.recordAvgStat('bootstrap_latency',Date.now()-
this.bootstrapBegin);var p={};o.forEach(function(q){p[q]=(p[q]||
0)+1;});this.counter.recordStat('bootstrap_response_types',p);this.bootstrapped=tru
e;};n.prototype.reportQueryBegin=function(o){"use
strict";this.counter.recordStat('query',o);this.counter.recordCountStat('num_querie
s');this.queriesHistory.add(o);if(this.lastNotBackspacedQuery.indexOf(o)!
==0)this.lastNotBackspacedQuery=o;this.lastQuery=o;};n.prototype.reportQueryComplet
e=function(o,p){"use
strict";this.counter.recordAvgStat('avg_query_latency',o);if(typeof p!
='undefined')this.counter.recordStat('filtered_count',p);};n.prototype.reportResult
s=function(o){"use strict";this.results=o;};n.prototype.
$TypeaheadMetricReporter0=function(){"use
strict";this.sid=Math.floor(Date.now()*Math.random());this.lastNotBackspacedQuery='
';this.queriesHistory.reset();this.results=null;this.counter.reset();this.emit('res
et',{sid:this.sid});};n.prototype.$TypeaheadMetricReporter2=function(){"use
strict";var o={};for(var p in this.extraData){var q=this.extraData[p];o[p]=typeof
q==='function'?q():q;}return o;};n.prototype.$TypeaheadMetricReporter1=function()
{"use strict";if(this.counter.hasStats())
{if(this.results)this.counter.recordStat('candidate_results',JSON.stringify(this.re
sults));if(this.sid)this.counter.recordStat('sid',this.sid);if(this.lastNotBackspac
edQuery)this.counter.recordStat('last_not_backspaced_query',this.lastNotBackspacedQ
uery);this.counter.recordStat('queries_history',JSON.stringify(this.queriesHistory.
getQueries()));if(this.bootstrapped)this.counter.recordStat('bootstrapped',1);var
o=k(this.counter.getStats(),this.$TypeaheadMetricReporter2());new
g().setURI(l).setMethod('POST').setData({stats:o}).send();this.emit('submitted',o);
}};j(n,{reset:true,submitted:true});e.exports=n;},null);
__d("ProfileMaskedTypeahead.react",
["AbstractSearchSource","Arbiter","React","SearchableEntry","SearchSourceWithMetric
s","TypeaheadMetricReporter","XUITypeahead.react","cx","joinClasses","requiredIfPro
pIsTruthy"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){var
q=i.PropTypes,r=i.createClass({displayName:"ProfileMaskedTypeahead",propTypes:
{initialEntry:q.instanceOf(j),initialQuery:q.string,loggerData:p('useLogger',q.obje
ct),metricsData:p('useMetrics',q.object),queryName:q.string,requireSelection:q.bool
,searchSource:q.instanceOf(g).isRequired,selectionName:q.string,useMetrics:q.bool,u
seLogger:q.bool},getDefaultProps:function(){return
{clearable:true,highlightOnSelect:true,initialEntry:null,initialQuery:'',queryName:
'query',requireSelection:false,selectionName:'selected_id'};},componentDidUpdate:fu
nction(){var
s=this.refs.typeahead.getTextFieldDOM(),t=s.scrollWidth>s.clientWidth;if(this.state
.useMask!==t)this.setState({useMask:t});},getInitialState:function(){var
s={queryString:this.props.initialQuery,selectedEntry:this.props.initialEntry,useMas
k:false},t=this.props.searchSource;if(this.props.useMetrics){var u=new
l(this.props.metricsData);t=new k(t,u);s.metricReporter=u;}s.searchSource=t;return
s;},focusInput:function(){this.refs.typeahead.focusInput();},render:function(){var
s=this.state.selectedEntry,t=this.state.queryString,u=null;if(this.state.useMask)u=
i.createElement("div",{className:"_4ejq"});var v=null;if(s)
{v=i.createElement("input",
{name:this.props.selectionName,type:"hidden",value:s.getUniqueID()});}else
if(t)v=i.createElement("input",
{name:this.props.queryName,type:"hidden",value:t});var w=o(this.props.className,
(("_4ejr")+(this.props.clearable?' '+"_4ejs":'')+(this.props.highlightOnSelect?'
'+"_4ejt":'')+(!!s?' '+"_4eju":'')+(this.props.tallInput?' '+"_4ejv":'')));return
(i.createElement("div",{className:w},i.createElement(m,i.__spread({},this.props,
{className:"_4ejw",onBlur:this._blurHandler,onChange:this._changeHandler,onClear:th
is.clearSelection,onFocus:this._focusHandler,onSelectAttempt:this._selectHandler,on
TypeaheadVisibilityChanged:this._typeaheadVisibilityChangeHandler,queryString:s?
s.getTitle():t,ref:"typeahead",searchSource:this.state.searchSource,selectedEntry:t
his.state.selectedEntry})),u,v));},focusInput:function()
{this.refs.typeahead.focusInput();},clearSelection:function()
{this.setState({queryString:'',selectedEntry:null},this.props.onClear);},getSelecte
dEntry:function(){return this.state.selectedEntry;},getQueryString:function()
{return this.state.queryString;},_blurHandler:function()
{if(this.props.requireSelection&&!
this.state.selectedEntry)this.clearSelection();if(this.props.useMetrics)this.state.
metricReporter.sessionEnd();if(this.props.onBlur)setTimeout(this.props.onBlur,0);},
_changeHandler:function(event)
{this.setState({queryString:event.target.value,selectedEntry:null});this.props.onCh
ange&&this.props.onChange(event);},_focusHandler:function()
{if(this.props.useMetrics)this.state.metricReporter.sessionStart();},_logTypeaheadD
ata:function(s,t){var u=/[\w]
+_id/g.exec(this.props.loggerData.selectionname);if(u&&u.length)
{h.inform('SessionLogger/selected',
{sessionType:this.props.loggerData.flowtype.toString(),surface:this.props.loggerDat
a.surface.toString(),eventName:u[0].toString(),eventValue:s.toString()});if(t)h.inf
orm('SessionLogger/selected',
{sessionType:this.props.loggerData.flowtype.toString(),surface:this.props.loggerDat
a.surface.toString(),eventName:'selected_bootstrap',eventValue:s.toString()});}},_s
electHandler:function(s,event){if(this.props.useMetrics)
{this.state.metricReporter.reportSelect(s.getUniqueID(),s.getType(),s.getOrder(),!!
event&&event.button>=0,this.state.queryString);this.state.metricReporter.sessionEnd
();}if(this.props.useLogger)this._logTypeaheadData(s.getUniqueID(),!
this.state.queryString);this.setState({selectedEntry:s});this.props.onSelectAttempt
&&this.props.onSelectAttempt(s);},_typeaheadVisibilityChangeHandler:function(s,t)
{if(this.props.useMetrics)this.state.metricReporter.reportResults(t.map(function(u)
{return u.getUniqueID();}));}});e.exports=r;},null);
__d("ProfileTypeaheadContainer.react",["React","cx"],function(a,b,c,d,e,f,g,h){var
i=g.createClass({displayName:"ProfileTypeaheadContainer",render:function(){return
(g.createElement("div",
{className:"_1ceo"},this.props.children));}});e.exports=i;},null);
__d("ProfileTypeaheadChecklist.react",
["React","ProfileChecklist.react","ProfileMaskedTypeahead.react","ProfileTypeaheadC
ontainer.react","XUITypeahead.react"],function(a,b,c,d,e,f,g,h,i,j,k){var
l=g.PropTypes,m=g.createClass({displayName:"ProfileTypeaheadChecklist",propTypes:
{excludedEntries:l.object,onChange:l.func,placeholder:l.string.isRequired,requireSe
lection:l.bool,searchSource:l.object.isRequired,typeaheadName:l.string,queryName:fu
nction(n,o,p){if(!n.multiSelect&&!n[o])return new Error(("Must supply a query name
to "+p+" for ")+("single-selection mode."));}},getDefaultProps:function(){return
{overflow:'scroll'};},getInitialState:function(){return
{queryString:''};},render:function(){var
n={onSelectAttempt:this._selectHandler,placeholder:this.props.placeholder,searchSou
rce:this.props.searchSource},o=null;if(this.props.multiSelect)
{o=g.createElement(k,g.__spread({},n,
{excludedEntries:this.props.excludedEntries,onBlur:this._typeaheadBlurHandler,onCha
nge:this._typeaheadChangeHandler,queryString:this.state.queryString,ref:"typeahead"
}));}else o=g.createElement(i,g.__spread({},n,
{queryName:this.props.queryName,ref:"typeahead",requireSelection:this.props.require
Selection,selectionName:this.props.typeaheadName}));return (g.createElement("div",
{className:this.props.className},g.createElement(h,g.__spread({},this.props,
{onChange:this._checklistChangeHandler,ref:"checklist"})),g.createElement(j,null,o)
));},clearSelection:function(){return
this.refs.checklist.clearSelection();},getSelection:function(){return
this.refs.checklist.getSelection();},_checklistChangeHandler:function(n)
{this.props.multiSelect||
this.refs.typeahead.clearSelection();this.props.onChange&&this.props.onChange(n);},
_selectHandler:function(n){if(!n)return;if(!this.props.multiSelect)
{this.refs.checklist.clearSelection();return;}this.refs.checklist.addOption(n.getUn
iqueID(),n.getTitle(),n.getSubtitle(),n.getPhoto(),true,this.props.typeaheadName);t
his.setState({queryString:''});setTimeout(function()
{this.refs.checklist.scrollToOption(n.getUniqueID());}.bind(this),0);},_typeaheadBl
urHandler:function()
{this.props.requireSelection&&this.setState({queryString:''});},_typeaheadChangeHan
dler:function(event)
{this.setState({queryString:event.target.value});}});e.exports=m;},null);
__d("ProfileQuestionsTypeaheadChecklist.react",
["Arbiter","React","ProfileTypeaheadChecklist.react"],function(a,b,c,d,e,f,g,h,i)
{var
j='402159529891743',k=h.createClass({displayName:"ProfileQuestionsTypeaheadChecklis
t",propTypes:{},render:function(){return
(h.createElement(i,h.__spread({},this.props,
{onChange:this._onChange})));},_onChange:function(l){var m=l[j];g.inform('no-valid-
answer-select',{selected:m&&m.checked});}});e.exports=k;},null);
__d("WebAsyncSearchSource",
["AbstractAsyncSearchSource","AbstractSearchSource","AsyncRequest","copyProperties"
],function(a,b,c,d,e,f,g,h,i,j){for(var k in h)if(h.hasOwnProperty(k))m[k]=h[k];var
l=h===null?
null:h.prototype;m.prototype=Object.create(l);m.prototype.constructor=m;m.__superCo
nstructor__=h;function m(n){"use strict";this.$WebAsyncSearchSource0=new g(n,this.
$WebAsyncSearchSource1,this.
$WebAsyncSearchSource2);}m.prototype.bootstrapImpl=function(n){"use strict";this.
$WebAsyncSearchSource0.bootstrap(n);};m.prototype.searchImpl=function(n,o,p){"use
strict";this.
$WebAsyncSearchSource0.search(n,o,p);};m.prototype.getBootstrappedEntries=function(
n){"use strict";return this.
$WebAsyncSearchSource0.getBootstrappedEntries(n);};m.prototype.getAllEntriesMap=fun
ction(){"use strict";return this.
$WebAsyncSearchSource0.getAllEntriesMap();};m.prototype.
$WebAsyncSearchSource1=function(n,o,p,q){"use strict";new
i(o.uri).setData(j({},n,o.data)).setMethod('GET').setReadOnly(true).setAllowCrossPa
geTransition(true).setHandler(p).setErrorHandler(q).send();};m.prototype.
$WebAsyncSearchSource2=function(n,o){"use strict";var
p=n.getPayload(),q;if(Array.isArray(p)){q=p;}else if(p&&p.entries)
{q=p.entries;}else q=[];return q.map(o,this);};e.exports=m;},null);

You might also like