(function(n){n.registerView("Threshold:ScopeBar",new Sparkle.View(React.createClass({displayName:"Threshold:ScopeBar",componentWillMount:function(){Sparkle.inst&&Sparkle.inst.start("render","Threshold:ScopeBar")},componentDidMount:function(){Sparkle.inst&&Sparkle.inst.stop("render","Threshold:ScopeBar")},componentWillUpdate:function(){Sparkle.inst&&Sparkle.inst.start("update","Threshold:ScopeBar")},componentDidUpdate:function(){Sparkle.inst&&Sparkle.inst.stop("update","Threshold:ScopeBar")},getInitialState:function(){var n=this.props||{},r=n.viewData||{},i=n.properties||{},t={},e=LocStringManager.getLocString({uiCulture:n.uiCulture,name:"LocStrings",namespace:"Threshold"}),f=r.TestHooksEnabled,u=i.ViewModel;return t},render:function(){var wt=this,t=this.props||{},lt=t.viewData||{},ct=t.properties||{},p=[],n=t.encoder||Sparkle.defaultEncoder,ut=LocStringManager.getLocString({uiCulture:t.uiCulture,name:"LocStrings",namespace:"Threshold"}),r=lt.TestHooksEnabled,i=ct.ViewModel,ft={},et,a,l,rt,st,w,b,s,e,h,tt,it,nt,f,o,y,d,g,k,ht;ft.Name=n.writeAttribute("Header");var yt=Sparkle.resolveView("Threshold:Region"),ot=Sparkle.copyContext(t,ft),at={},vt=Sparkle.resolveView("Shared:HorizontalList"),u=Sparkle.copyContext(t,at);for(et in i.Scopes)a=i.Scopes[et],typeof a!="function"&&function(i){var l={},c,f,s,p,e,h,v,y;i.IsActive&&(l.className=n.writeAttribute("b_active")),i.IsActive&&r&&(l["data-tag"]=n.writeAttribute("common.ActiveScope")),c=Sparkle.copyContext(t,l),f={},f.InstItem=n.writeAttribute(i.InstItem),f.role=n.writeAttribute("menuitem");var w=Sparkle.resolveView("Threshold:InstLink"),a=Sparkle.copyContext(t,f),o={};o.className=n.writeAttribute("bold"),o["aria-hidden"]=n.writeAttribute("true"),s=Sparkle.copyContext(t,o),n.writeContent(i.Title,s.defaultSegment),p=Sparkle.resolveView("span").renderView(s),a.defaultSegment.push(p),e={},e.className=n.writeAttribute("visible"),r&&(e["data-tag"]=n.writeAttribute("scope.Title")),h=Sparkle.copyContext(t,e),n.writeContent(i.Title,h.defaultSegment),v=Sparkle.resolveView("span").renderView(h),a.defaultSegment.push(v),c.defaultSegment.push(w.renderView(a)),y=Sparkle.resolveView("li").renderView(c),u.defaultSegment.push(y)}(a);if(i.RecourseLink!=null){l={},l.className=n.writeAttribute("b_spacer"),rt=Sparkle.copyContext(t,l),st=Sparkle.resolveView("li").renderView(rt),u.defaultSegment.push(st),w={},r&&(w["data-tag"]=n.writeAttribute("common.WebRecourse")),b=Sparkle.copyContext(t,w),s={},s.InstItem=n.writeAttribute(i.RecourseLink),s.role=n.writeAttribute("menuitem");var pt=Sparkle.resolveView("Threshold:InstLink"),c=Sparkle.copyContext(t,s),v={};v.className=n.writeAttribute("visible"),r&&(v["data-tag"]=n.writeAttribute("scope.Title")),e=Sparkle.copyContext(t,v),h={},h.className=n.writeAttribute("b_wri"),tt=Sparkle.copyContext(t,h),it=Sparkle.resolveView("span").renderView(tt),e.defaultSegment.push(it),n.writeContent(ut.WebRecourse,e.defaultSegment),nt=Sparkle.resolveView("span").renderView(e),c.defaultSegment.push(nt),f={},f.className=n.writeAttribute("bold"),f["aria-hidden"]=n.writeAttribute("true"),o=Sparkle.copyContext(t,f),y={},y.className=n.writeAttribute("b_wri"),d=Sparkle.copyContext(t,y),g=Sparkle.resolveView("span").renderView(d),o.defaultSegment.push(g),n.writeContent(ut.WebRecourse,o.defaultSegment),k=Sparkle.resolveView("span").renderView(o),c.defaultSegment.push(k),b.defaultSegment.push(pt.renderView(c)),ht=Sparkle.resolveView("li").renderView(b),u.defaultSegment.push(ht)}return ot.defaultSegment.push(vt.renderView(u)),p.push(yt.renderView(ot)),p[p.length-1]}})))})(Sparkle.viewFolder)