(function(n){n.registerView("Threshold:ItemList",new Sparkle.View(React.createClass({displayName:"Threshold:ItemList",componentWillMount:function(){Sparkle.inst&&Sparkle.inst.start("render","Threshold:ItemList")},componentDidMount:function(){Sparkle.inst&&Sparkle.inst.stop("render","Threshold:ItemList")},componentWillUpdate:function(){Sparkle.inst&&Sparkle.inst.start("update","Threshold:ItemList")},componentDidUpdate:function(){Sparkle.inst&&Sparkle.inst.stop("update","Threshold:ItemList")},getInitialState:function(){var t=this.props||{},n=t.viewData||{},r=t.properties||{},i={},o=LocStringManager.getLocString({uiCulture:t.uiCulture,name:"LocStrings",namespace:"Threshold"}),s=r.ViewModel,e=n.TestHooksEnabled,u=n.SmallImageConfig,f=n.LargeImageConfig;return i},render:function(){var v=this,t=this.props||{},u=t.viewData||{},a=t.properties||{},i=[],n=t.encoder||Sparkle.defaultEncoder,p=LocStringManager.getLocString({uiCulture:t.uiCulture,name:"LocStrings",namespace:"Threshold"}),l=a.ViewModel,y=u.TestHooksEnabled,h=u.SmallImageConfig,e=u.LargeImageConfig,o={},r,s,f,c;o.className=n.writeAttribute("b_flex"),r=Sparkle.copyContext(t,o);for(s in l.Items)f=l.Items[s],typeof f!="function"&&function(i){var l={},u,o,k,b,f,d,nt,c,g,a,s,w,p,y;(i.Type=="photo"||i.Type=="video")&&(l.className=n.writeAttribute("b_mmItem")),l.onContextMenu=function(n){var r=new Sparkle.RenderedView(v),t=n;i.ContextMenu(event)},u=Sparkle.copyContext(t,l),i.Type=="photo"?(o={},o.Item=n.writeAttribute(i),o.IsPicture=n.writeAttribute(!0),o.Configs=n.writeAttribute(e),k=Sparkle.resolveView("Threshold:MyStuffMMItem"),b=Sparkle.copyContext(t,o),u.defaultSegment.push(k.renderView(b))):i.Type=="video"?(f={},f.Item=n.writeAttribute(i),f.IsPicture=n.writeAttribute(!1),f.Configs=n.writeAttribute(e),d=Sparkle.resolveView("Threshold:MyStuffMMItem"),nt=Sparkle.copyContext(t,f),u.defaultSegment.push(d.renderView(nt))):i.Type=="music"||i.Type=="email"||i.Type=="doc"?(c={},c.Item=n.writeAttribute(i),c.Configs=n.writeAttribute(h),g=Sparkle.resolveView("Threshold:DetailedItem"),a=Sparkle.copyContext(t,c),u.defaultSegment.push(g.renderView(a))):(s={},s.Item=n.writeAttribute(i),s.Configs=n.writeAttribute(h),w=Sparkle.resolveView("Threshold:SimpleItem"),p=Sparkle.copyContext(t,s),u.defaultSegment.push(w.renderView(p))),y=Sparkle.resolveView("li").renderView(u),r.defaultSegment.push(y)}(f);return c=Sparkle.resolveView("ul").renderView(r),i.push(c),i[i.length-1]}})))})(Sparkle.viewFolder)