(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,f=n.ClickHandler,r=string.Empty;return t.answer=r,t},render:function(){var lt=this,i=this.props||{},bt=i.viewData||{},b=i.properties||{},w=[],n=i.encoder||Sparkle.defaultEncoder,e=bt.TestHooksEnabled,t=b.Suggestion,wt=b.ContextMenuHandler,kt=b.ClickHandler,ct=this.state.answer,r,o,f,y,st,ht,v,g,p,at,vt,nt,l,a,ft,c,u,k,ot,ut,tt,h,it,rt,et;if(t){if(r={},o="",o+="suggestion cf",t.selected&&(o+=" sa_hv"),o&&(r.className=n.writeAttribute(o)),r.onContextMenu=function(n){var r=new Sparkle.RenderedView(lt),i=n;wt(t,event)},r.onClick=function(n){var r=new Sparkle.RenderedView(lt),i=n;kt(t)},e&&(r["data-partnertag"]=n.writeAttribute(t.dataPartnerTag)),r.id=n.writeAttribute(t.id),r.role=n.writeAttribute("listitem"),r["aria-selected"]=n.writeAttribute(t.selected?"true":"false"),e&&(r["data-stype"]=n.writeAttribute(t.type)),r["data-h"]=n.writeAttribute(t.instItem.getHValue()),f=Sparkle.copyContext(i,r),string.IsNullOrEmpty(t.answerHtml)){y={},y.Icon=n.writeAttribute(t.icon),st=Sparkle.resolveView("AutoSuggest:Icon"),ht=Sparkle.copyContext(i,y),f.defaultSegment.push(st.renderView(ht)),v={},v.className=n.writeAttribute("details");var yt=Sparkle.copyContext(i,v),dt={},s=Sparkle.copyContext(i,dt),d={};d.className=n.writeAttribute("primaryText"),e&&(d["data-partnertag"]=n.writeAttribute("Suggestion.PrimaryText")),g=Sparkle.copyContext(i,d),p={},p.Text=n.writeAttribute(t.text),at=Sparkle.resolveView("AutoSuggest:HighlightedText"),vt=Sparkle.copyContext(i,p),g.defaultSegment.push(at.renderView(vt)),nt=Sparkle.resolveView("div").renderView(g),s.defaultSegment.push(nt),string.IsNullOrEmpty(t.additionalInfoText)||(l={},l.className=n.writeAttribute("secondaryText annotation"),e&&(l["data-partnertag"]=n.writeAttribute("Suggestion.AdditionalInfoText")),a=Sparkle.copyContext(i,l),n.writeContent(t.additionalInfoText,a.defaultSegment),ft=Sparkle.resolveView("div").renderView(a),s.defaultSegment.push(ft)),c={},u="",u+="secondaryText",string.IsNullOrEmpty(t.secondaryTextClass)||(u+=" "+t.secondaryTextClass),u&&(c.className=n.writeAttribute(u)),e&&(c["data-partnertag"]=n.writeAttribute("Suggestion.SecondaryText")),k=Sparkle.copyContext(i,c),n.writeContent(t.secondaryText,k.defaultSegment),ot=Sparkle.resolveView("div").renderView(k),s.defaultSegment.push(ot),ut=Sparkle.resolveView("div").renderView(s),yt.defaultSegment.push(ut),tt=Sparkle.resolveView("div").renderView(yt),f.defaultSegment.push(tt)}else h={},h.className=n.writeAttribute("answer"),it=Sparkle.copyContext(i,h),ct=t.answerHtml,h.dangerouslySetInnerHTML={__html:n.writeUnencodedContent(ct)},rt=Sparkle.resolveView("div").renderView(it),f.defaultSegment.push(rt);et=Sparkle.resolveView("div").renderView(f),w.push(et)}else{var ni={},gt=Sparkle.copyContext(i,ni),pt=Sparkle.resolveView("span").renderView(gt);w.push(pt)}return Sparkle.ReactImpl.returnSingleNode(w,i)}};Sparkle.ReactImpl.registerView(n)})()