(function(){var n={displayName:"AutoSuggest:WindowsGroup",getInitialState:function(){var t=this.props||{},r=t.viewData||{},n=t.properties||{},i={},e=r.TestHooksEnabled,o=n.Group,u=n.ContextMenuHandler,f=n.ClickHandler;return i},render:function(){var b=this,i=this.props||{},k=i.viewData||{},o=i.properties||{},p=[],t=i.encoder||Sparkle.defaultEncoder,nt=k.TestHooksEnabled,n=o.Group,g=o.ContextMenuHandler,y=o.ClickHandler,e={},a,h,l,s,w;e.className=t.writeAttribute("group"),e["data-region"]=t.writeAttribute(n.instRegionName);var f=Sparkle.copyContext(i,e),r={},u="";u+="groupHeader",n.selectable&&(u+=" selectable"),u&&(r.className=t.writeAttribute(u)),r.id=t.writeAttribute(n.id),r.onClick=function(t){var r=new Sparkle.RenderedView(b),i=t;y(n)},n.instItem&&(r["data-h"]=t.writeAttribute(n.instItem.getHValue()));var c=Sparkle.copyContext(i,r),d={},v=Sparkle.copyContext(i,d);t.writeContent(n.title,v.defaultSegment),a=Sparkle.resolveView("span").renderView(v),c.defaultSegment.push(a),h=Sparkle.resolveView("div").renderView(c),f.defaultSegment.push(h);for(l in n.suggestions)s=n.suggestions[l],typeof s!="function"&&function(n){var r={},e,u;r.Suggestion=t.writeAttribute(n),r.ContextMenuHandler=t.writeAttribute(g),r.ClickHandler=t.writeAttribute(y),e=Sparkle.resolveView("AutoSuggest:WindowsSuggestionSingleLine"),u=Sparkle.copyContext(i,r),f.defaultSegment.push(e.renderView(u))}(s);return w=Sparkle.resolveView("div").renderView(f),p.push(w),Sparkle.ReactImpl.returnSingleNode(p,i)}};Sparkle.ReactImpl.registerView(n)})()