(function(n){n.registerView("Threshold:MyStuffMMItem",new Sparkle.View(React.createClass({displayName:"Threshold:MyStuffMMItem",componentWillMount:function(){Sparkle.inst&&Sparkle.inst.start("render","Threshold:MyStuffMMItem")},componentDidMount:function(){Sparkle.inst&&Sparkle.inst.stop("render","Threshold:MyStuffMMItem")},componentWillUpdate:function(){Sparkle.inst&&Sparkle.inst.start("update","Threshold:MyStuffMMItem")},componentDidUpdate:function(){Sparkle.inst&&Sparkle.inst.stop("update","Threshold:MyStuffMMItem")},getInitialState:function(){var t=this.props||{},e=t.viewData||{},n=t.properties||{},i={},o=LocStringManager.getLocString({uiCulture:t.uiCulture,name:"LocStrings",namespace:"Threshold"}),f=n.Item,r=n.IsPicture,u=n.Configs;return i},render:function(){var at=this,i=this.props||{},vt=i.viewData||{},c=i.properties||{},y=[],t=i.encoder||Sparkle.defaultEncoder,pt=LocStringManager.getLocString({uiCulture:i.uiCulture,name:"LocStrings",namespace:"Threshold"}),n=c.Item,yt=c.IsPicture,ft=c.Configs,u,tt,r,f,g,nt,s,rt,ut,v,p,b,o,l,e,a,it;t=new HtmlHitHighlightingEncoder,u={},u.IsLeft=t.writeAttribute("false"),u.Configs=t.writeAttribute(ft),u.PartnerTestHook=t.writeAttribute("DeviceContent.Item"),tt=Sparkle.resolveView("Shared:ImagePair"),r=Sparkle.copyContext(i,u),r.segments.image=[],string.IsNullOrEmpty(n.Thumbnail)?(s={},s.Item=t.writeAttribute(n),rt=Sparkle.resolveView("Threshold:PlaceHolderImage"),ut=Sparkle.copyContext(i,s),r.segments.image.push(rt.renderView(ut))):(f={},f.height=t.writeAttribute("69"),f.src=t.writeAttribute(n.Thumbnail),f.role=t.writeAttribute("presentation"),g=Sparkle.resolveView("img"),nt=Sparkle.copyContext(i,f),r.segments.image.push(g.renderView(nt))),r.segments.caption=[],v={},v.Item=t.writeAttribute(n),p=Sparkle.resolveView("Threshold:ItemTitle"),b=Sparkle.copyContext(i,v),r.segments.caption.push(p.renderView(b));var ht={},st=Sparkle.resolveView("Shared:VerticalStackPanel"),h=Sparkle.copyContext(i,ht);if(n.Metadata&&n.Metadata.length>0){var lt={},ct=Sparkle.resolveView("Shared:VerticalStackPanelItem"),d=Sparkle.copyContext(i,lt);t.writeContent(n.Metadata[0],d.defaultSegment),h.defaultSegment.push(ct.renderView(d))}if(n.Metadata&&n.Metadata.length>1){var ot={},et=Sparkle.resolveView("Shared:VerticalStackPanelItem"),k=Sparkle.copyContext(i,ot),w=0;for(e in n.Metadata)typeof n.Metadata[e]!="function"&&++w;o=0,l=!0;for(e in n.Metadata)a=n.Metadata[e],typeof a!="function"&&(it=o==w-1,function(n,r,u,f){var s,e,o;u||(s={},e=Sparkle.copyContext(i,s),t.writeContent(n,e.defaultSegment),f||t.writeContent(" | ",e.defaultSegment),o=Sparkle.resolveView("span").renderView(e),k.defaultSegment.push(o))}(a,o,l,it),l=!1,++o);h.defaultSegment.push(et.renderView(k))}return r.segments.caption.push(st.renderView(h)),y.push(tt.renderView(r)),y[y.length-1]}})))})(Sparkle.viewFolder)