(function(){var n={displayName:"AutoSuggest:WindowsSuggestionSingleLine",getInitialState:function(){var n=this.props||{},i=n.viewData||{},t=n.properties||{},r=LocStringManager.getLocString({uiCulture:n.uiCulture,name:"CortanaQF",namespace:"AutoSuggest"}),u=i.TestHooksEnabled,f=t.Suggestion,e=t.ContextMenuHandler,o=t.ClickHandler;return{}},render:function(){var g=this,i=this.props||{},pt=i.viewData||{},s=i.properties||{},nt=[],n=i.encoder||Sparkle.defaultEncoder,wt=LocStringManager.getLocString({uiCulture:i.uiCulture,name:"CortanaQF",namespace:"AutoSuggest"}),h=pt.TestHooksEnabled,t=s.Suggestion,bt=s.ContextMenuHandler,kt=s.ClickHandler,r={},c=[],u="",l,a,tt,it,v,y,w,et,ot,st,k,e,d,ht,o,ct,lt,at,vt,yt;u+="suggestion";t.selected&&(u+=" sa_hv");u&&(r.className=n.writeAttribute(u));r.onContextMenu=function(n){var i=new Sparkle.RenderedView(g),r=n;bt(t,event)};r.onClick=function(n){var i=new Sparkle.RenderedView(g),r=n;kt(t)};r.id=n.writeAttribute(t.id);h&&(r["data-partnertag"]=n.writeAttribute("AutoSuggest.RegularSuggestion"));r.role=n.writeAttribute("listitem");r["aria-selected"]=n.writeAttribute(t.selected?"true":"false");t.narratorText&&(r["aria-label"]=n.writeAttribute(t.narratorText));h&&(r["data-stype"]=n.writeAttribute(t.type));r["data-h"]=n.writeAttribute(t.instItem.getHValue());r.title=n.writeAttribute(t.tooltip);l=Sparkle.copyContext(i,r);a={};a.Icon=n.writeAttribute(t.icon);tt=Sparkle.resolveView("AutoSuggest:Icon");it=Sparkle.copyContext(i,a);c.push(tt.renderView(it));v={};y=[];v.className=n.writeAttribute("details");var rt=Sparkle.copyContext(i,v),p={},f=[];if(p.className=n.writeAttribute("primaryText"),h&&(p["data-partnertag"]=n.writeAttribute("Suggestion.PrimaryText")),w=Sparkle.copyContext(i,p),t.additionalSourceText){var ut=[],ft=Sparkle.copyContext(i,{}),b={};b.Text=n.writeAttribute(t.text);b.Dir=n.writeAttribute("ltr");et=Sparkle.resolveView("AutoSuggest:HighlightedText");ot=Sparkle.copyContext(i,b);ut.push(et.renderView(ot));ft.defaultSegment=ut;st=Sparkle.resolveView("span").renderView(ft);f.push(st);k={};e=[];k.className=n.writeAttribute("sourceInfoText annotation");d=Sparkle.copyContext(i,k);n.writeContent(wt.InSourceLabel,e);n.writeContent(t.additionalSourceText,e);d.defaultSegment=e;ht=Sparkle.resolveView("span").renderView(d);f.push(ht)}else o={},o.Text=n.writeAttribute(t.text),o.Dir=n.writeAttribute("ltr"),ct=Sparkle.resolveView("AutoSuggest:HighlightedText"),lt=Sparkle.copyContext(i,o),f.push(ct.renderView(lt));return w.defaultSegment=f,at=Sparkle.resolveView("div").renderView(w),y.push(at),rt.defaultSegment=y,vt=Sparkle.resolveView("div").renderView(rt),c.push(vt),l.defaultSegment=c,yt=Sparkle.resolveView("div").renderView(l),nt.push(yt),Sparkle.ReactImpl.returnSingleNode(nt)}};Sparkle.ReactImpl.registerView(n)})()