(function(n){n.registerView("AutoSuggest:WindowsSuggestionThreeLines",new Sparkle.View(React.createClass({displayName:"AutoSuggest:WindowsSuggestionThreeLines",componentWillMount:function(){Sparkle.inst&&Sparkle.inst.start("render","AutoSuggest:WindowsSuggestionThreeLines")},componentDidMount:function(){Sparkle.inst&&Sparkle.inst.stop("render","AutoSuggest:WindowsSuggestionThreeLines")},componentWillUpdate:function(){Sparkle.inst&&Sparkle.inst.start("update","AutoSuggest:WindowsSuggestionThreeLines")},componentDidUpdate:function(){Sparkle.inst&&Sparkle.inst.stop("update","AutoSuggest:WindowsSuggestionThreeLines")},getInitialState:function(){var n=this.props||{},r=n.viewData||{},t=n.properties||{},i={},o=LocStringManager.getLocString({uiCulture:n.uiCulture,name:"OneBox",namespace:"AutoSuggest"}),s=LocStringManager.getLocString({uiCulture:n.uiCulture,name:"CortanaQF",namespace:"AutoSuggest"}),h=r.TestHooksEnabled,u=t.Suggestion,f=t.ContextMenuHandler,e=t.ClickHandler;return i.answer=string.Empty,i},render:function(){var vt=this,i=this.props||{},kt=i.viewData||{},d=i.properties||{},s=[],t=i.encoder||Sparkle.defaultEncoder,ri=LocStringManager.getLocString({uiCulture:i.uiCulture,name:"OneBox",namespace:"AutoSuggest"}),ii=LocStringManager.getLocString({uiCulture:i.uiCulture,name:"CortanaQF",namespace:"AutoSuggest"}),u=kt.TestHooksEnabled,n=d.Suggestion,wt=d.ContextMenuHandler,bt=d.ClickHandler,at=this.state.answer,r,o,e,k,lt,ct,nt,p,y,yt,rt,ht,h,b,et,c,f,g,ft,ot,st,v,tt,it,ut;if(n){if(r={},o="",o+="suggestion cf",n.selected&&(o+=" sa_hv"),o&&(r.className=t.writeAttribute(o)),r.onContextMenu=function(t){var r=new Sparkle.RenderedView(vt),i=t;wt(n,event)},r.onClick=function(t){var r=new Sparkle.RenderedView(vt),i=t;bt(n)},u&&(r["data-partnertag"]=t.writeAttribute(n.dataPartnerTag)),r.id=t.writeAttribute(n.id),u&&(r["data-stype"]=t.writeAttribute(n.type)),r["data-h"]=t.writeAttribute(n.instItem.getHValue()),e=Sparkle.copyContext(i,r),string.IsNullOrEmpty(n.answerHtml)){k={},k.Icon=t.writeAttribute(n.icon),lt=Sparkle.resolveView("AutoSuggest:Icon"),ct=Sparkle.copyContext(i,k),e.defaultSegment.push(lt.renderView(ct)),nt={},nt.className=t.writeAttribute("details");var pt=Sparkle.copyContext(i,nt),gt={},l=Sparkle.copyContext(i,gt),w={},a="";a+="primaryText",string.IsNullOrEmpty(n.topResultPrimaryTextClass)||(a+=" "+n.topResultPrimaryTextClass),a&&(w.className=t.writeAttribute(a)),u&&(w["data-partnertag"]=t.writeAttribute("Suggestion.PrimaryText")),p=Sparkle.copyContext(i,w),y={},y.Text=t.writeAttribute(n.text),yt=Sparkle.resolveView("AutoSuggest:HighlightedText"),rt=Sparkle.copyContext(i,y),p.defaultSegment.push(yt.renderView(rt)),ht=Sparkle.resolveView("div").renderView(p),l.defaultSegment.push(ht),string.IsNullOrEmpty(n.additionalInfoText)||(h={},h.className=t.writeAttribute("secondaryText annotation"),u&&(h["data-partnertag"]=t.writeAttribute("Suggestion.AdditionalInfoText")),b=Sparkle.copyContext(i,h),t.writeContent(n.additionalInfoText,b.defaultSegment),et=Sparkle.resolveView("div").renderView(b),l.defaultSegment.push(et)),c={},f="",f+="secondaryText",string.IsNullOrEmpty(n.secondaryTextClass)||(f+=" "+n.secondaryTextClass),f&&(c.className=t.writeAttribute(f)),u&&(c["data-partnertag"]=t.writeAttribute("Suggestion.SecondaryText")),g=Sparkle.copyContext(i,c),t.writeContent(n.secondaryText,g.defaultSegment),ft=Sparkle.resolveView("div").renderView(g),l.defaultSegment.push(ft),ot=Sparkle.resolveView("div").renderView(l),pt.defaultSegment.push(ot),st=Sparkle.resolveView("div").renderView(pt),e.defaultSegment.push(st)}else v={},v.className=t.writeAttribute("answer"),tt=Sparkle.copyContext(i,v),at=n.answerHtml,v.dangerouslySetInnerHTML={__html:t.writeUnencodedContent(at)},it=Sparkle.resolveView("div").renderView(tt),e.defaultSegment.push(it);ut=Sparkle.resolveView("div").renderView(e),s.push(ut)}else{var ni={},ti=Sparkle.copyContext(i,ni),dt=Sparkle.resolveView("span").renderView(ti);s.push(dt)}return s[s.length-1]}})))})(Sparkle.viewFolder)