(function(){var n={displayName:"AutoSuggest:WindowsTopResults",getInitialState:function(){var t=this.props||{},i=t.viewData||{},n=t.properties||{},r=LocStringManager.getLocString({uiCulture:t.uiCulture,name:"CortanaQF",namespace:"AutoSuggest"}),u=i.TestHooksEnabled,f=n.Suggestions,e=n.ContextMenuHandler,o=n.ClickHandler,s=n.SingleLineTopHits;return{}},render:function(){var d=this,n=this.props||{},w=n.viewData||{},i=n.properties||{},h=[],t=n.encoder||Sparkle.defaultEncoder,b=LocStringManager.getLocString({uiCulture:n.uiCulture,name:"CortanaQF",namespace:"AutoSuggest"}),g=w.TestHooksEnabled,u=i.Suggestions,c=i.ContextMenuHandler,l=i.ClickHandler,k=i.SingleLineTopHits,r=[],a=Sparkle.copyContext(n,{}),f,e,o,v,y,s,p;u.length>0&&(f={},e=[],f.className=t.writeAttribute("groupHeader bestMatch"),o=Sparkle.copyContext(n,f),t.writeContent(b.BestMatch,e),o.defaultSegment=e,v=Sparkle.resolveView("div").renderView(o),r.push(v));for(y in u)s=u[y],typeof s!="function"&&function(i){var u,e,o,f,s,h;k&&string.IsNullOrEmpty(i.answerHtml)?(u={},u.Suggestion=t.writeAttribute(i),u.ContextMenuHandler=t.writeAttribute(c),u.ClickHandler=t.writeAttribute(l),e=Sparkle.resolveView("AutoSuggest:WindowsSuggestionSingleLine"),o=Sparkle.copyContext(n,u),r.push(e.renderView(o))):(f={},f.Suggestion=t.writeAttribute(i),f.ContextMenuHandler=t.writeAttribute(c),f.ClickHandler=t.writeAttribute(l),s=Sparkle.resolveView("AutoSuggest:WindowsSuggestionThreeLines"),h=Sparkle.copyContext(n,f),r.push(s.renderView(h)))}(s);return a.defaultSegment=r,p=Sparkle.resolveView("div").renderView(a),h.push(p),Sparkle.ReactImpl.returnSingleNode(h)}};Sparkle.ReactImpl.registerView(n)})()