(function(){var n={displayName:"AutoSuggest:WindowsSuggestionThreeLines",getInitialState:function(){var i=this.props||{},u=i.viewData||{},n=i.properties||{},t={},e=u.TestHooksEnabled,o=n.Suggestion,s=n.ContextMenuHandler,h=n.ClickHandler,f=string.Empty,r;return t.answer=f,r=string.Empty,t.stars=r,t},render:function(){var ct=this,i=this.props||{},pi=i.viewData||{},a=i.properties||{},v=[],n=i.encoder||Sparkle.defaultEncoder,f=pi.TestHooksEnabled,t=a.Suggestion,wi=a.ContextMenuHandler,bi=a.ClickHandler,lt=this.state.answer,at=this.state.stars,yt,y,p,pt,wt,w,b,d,s,gt,ni,ti,h,g,nt,ii,tt,it,rt,ri,ut,ft,et,ei,oi,st,hi,ci,li,l,ai,ht,vi,yi;if(t){var r={},e=[],o="";if(o+="suggestion cf",t.selected&&(o+=" sa_hv"),o&&(r.className=n.writeAttribute(o)),r.onContextMenu=function(n){var i=new Sparkle.RenderedView(ct),r=n;wi(t,event)},r.onClick=function(n){var i=new Sparkle.RenderedView(ct),r=n;bi(t)},r.id=n.writeAttribute(t.id),f&&(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)),f&&(r["data-stype"]=n.writeAttribute(t.type)),r["data-h"]=n.writeAttribute(t.instItem.getHValue()),r.title=n.writeAttribute(t.tooltip),y=Sparkle.copyContext(i,r),string.IsNullOrEmpty(t.answerHtml)){p={};p.Icon=n.writeAttribute(t.icon);pt=Sparkle.resolveView("AutoSuggest:Icon");wt=Sparkle.copyContext(i,p);e.push(pt.renderView(wt));w={};b=[];w.className=n.writeAttribute("details");var bt=Sparkle.copyContext(i,w),u=[],kt=Sparkle.copyContext(i,{}),k={},dt=[];if(k.className=n.writeAttribute("primaryText"),f&&(k["data-partnertag"]=n.writeAttribute("Suggestion.PrimaryText")),d=Sparkle.copyContext(i,k),s={},s.Text=n.writeAttribute(t.text),s.Dir=n.writeAttribute("ltr"),gt=Sparkle.resolveView("AutoSuggest:HighlightedText"),ni=Sparkle.copyContext(i,s),dt.push(gt.renderView(ni)),d.defaultSegment=dt,ti=Sparkle.resolveView("div").renderView(d),u.push(ti),string.IsNullOrEmpty(t.additionalInfoText)||(h={},g=[],h.className=n.writeAttribute("secondaryText annotation"),f&&(h["data-partnertag"]=n.writeAttribute("Suggestion.AdditionalInfoText")),nt=Sparkle.copyContext(i,h),n.writeContent(t.additionalInfoText,g),nt.defaultSegment=g,ii=Sparkle.resolveView("div").renderView(nt),u.push(ii)),typeof t.stars!="undefined"){tt={};it=[];tt.className=n.writeAttribute("secondaryText starBg iconContent");rt=Sparkle.copyContext(i,tt);n.writeContent("",it);rt.defaultSegment=it;ri=Sparkle.resolveView("div").renderView(rt);u.push(ri);ut={};ft=[];ut.className=n.writeAttribute("secondaryText star iconContent");et=Sparkle.copyContext(i,ut);at=t.stars;var ui={},fi=Sparkle.copyContext(i,ui);ui.dangerouslySetInnerHTML={__html:n.writeUnencodedContent(at)};fi.defaultSegment=[];ei=Sparkle.resolveView("span").renderView(fi);ft.push(ei);et.defaultSegment=ft;oi=Sparkle.resolveView("div").renderView(et);u.push(oi)}var ot={},si=[],c="";c+="secondaryText";string.IsNullOrEmpty(t.secondaryTextClass)||(c+=" "+t.secondaryTextClass);c&&(ot.className=n.writeAttribute(c));f&&(ot["data-partnertag"]=n.writeAttribute("Suggestion.SecondaryText"));st=Sparkle.copyContext(i,ot);n.writeContent(t.secondaryText,si);st.defaultSegment=si;hi=Sparkle.resolveView("div").renderView(st);u.push(hi);kt.defaultSegment=u;ci=Sparkle.resolveView("div").renderView(kt);b.push(ci);bt.defaultSegment=b;li=Sparkle.resolveView("div").renderView(bt);e.push(li)}else l={},ai=[],l.className=n.writeAttribute("answer"),ht=Sparkle.copyContext(i,l),lt=t.answerHtml,l.dangerouslySetInnerHTML={__html:n.writeUnencodedContent(lt)},ht.defaultSegment=ai,vi=Sparkle.resolveView("div").renderView(ht),e.push(vi);y.defaultSegment=e;yi=Sparkle.resolveView("div").renderView(y);v.push(yi)}else{var vt=Sparkle.copyContext(i,{});vt.defaultSegment=[];yt=Sparkle.resolveView("span").renderView(vt);v.push(yt)}return Sparkle.ReactImpl.returnSingleNode(v)}};Sparkle.ReactImpl.registerView(n)})()