(function(n){n.registerView("AutoSuggest:Icon",new Sparkle.View(React.createClass({displayName:"AutoSuggest:Icon",componentWillMount:function(){Sparkle.inst&&Sparkle.inst.start("render","AutoSuggest:Icon")},componentDidMount:function(){Sparkle.inst&&Sparkle.inst.stop("render","AutoSuggest:Icon")},componentWillUpdate:function(){Sparkle.inst&&Sparkle.inst.start("update","AutoSuggest:Icon")},componentDidUpdate:function(){Sparkle.inst&&Sparkle.inst.stop("update","AutoSuggest:Icon")},getInitialState:function(){var t=this.props||{},r=t.viewData||{},i=t.properties||{},n={},f=r.TestHooksEnabled,u=i.Icon;return n.fontIcon=string.Empty,n.bgColor={},n},render:function(){var ut=this,t=this.props||{},nt=t.viewData||{},d=t.properties||{},o=[],i=t.encoder||Sparkle.defaultEncoder,g=nt.TestHooksEnabled,n=d.Icon,b=this.state.fontIcon,k=this.state.bgColor,w={},h,f,u,e,r,y,v,s,a,l,c,p;if(g&&(w["data-partnertag"]=i.writeAttribute("Suggestion.Icon")),h=Sparkle.copyContext(t,w),k=n&&n.bgColor?{backgroundColor:n.bgColor}:{},f={},f.style=i.writeAttribute(k),f.className=i.writeAttribute("icon"),u=Sparkle.copyContext(t,f),n)if(n.cortanaIcon){var it={},rt=Sparkle.resolveView("AutoSuggest:CortanaIcon"),tt=Sparkle.copyContext(t,it);u.defaultSegment.push(rt.renderView(tt))}else n.content&&(n.fromFont?(e={},r="",r+="iconContent",n.needsAccentColor&&(r+=" accentColor"),r&&(e.className=i.writeAttribute(r)),y=Sparkle.copyContext(t,e),b=n.content,e.dangerouslySetInnerHTML={__html:i.writeUnencodedContent(b)},v=Sparkle.resolveView("span").renderView(y),u.defaultSegment.push(v)):(s={},s.src=i.writeAttribute(n.content),a=Sparkle.resolveView("img"),l=Sparkle.copyContext(t,s),u.defaultSegment.push(a.renderView(l))));return c=Sparkle.resolveView("div").renderView(u),h.defaultSegment.push(c),p=Sparkle.resolveView("div").renderView(h),o.push(p),o[o.length-1]}})))})(Sparkle.viewFolder)