(function(n){n.registerView("Threshold:SimpleItem",new Sparkle.View(React.createClass({displayName:"Threshold:SimpleItem",componentWillMount:function(){Sparkle.inst&&Sparkle.inst.start("render","Threshold:SimpleItem")},componentDidMount:function(){Sparkle.inst&&Sparkle.inst.stop("render","Threshold:SimpleItem")},componentWillUpdate:function(){Sparkle.inst&&Sparkle.inst.start("update","Threshold:SimpleItem")},componentDidUpdate:function(){Sparkle.inst&&Sparkle.inst.stop("update","Threshold:SimpleItem")},getInitialState:function(){var n=this.props||{},f=n.viewData||{},r=n.properties||{},t={},e=LocStringManager.getLocString({uiCulture:n.uiCulture,name:"LocStrings",namespace:"Threshold"}),i=r.Item,u=r.Configs;return t.BackgroundColor=string.IsNullOrEmpty(i.ThumbnailBackground)?null:i.ThumbnailBackground,t},render:function(){var tt=this,t=this.props||{},it=t.viewData||{},b=t.properties||{},s=[],n=t.encoder||Sparkle.defaultEncoder,rt=LocStringManager.getLocString({uiCulture:t.uiCulture,name:"LocStrings",namespace:"Threshold"}),f=b.Item,g=b.Configs,nt=this.state.BackgroundColor,u={},k,i,o,e,r,w,p,y,h,a,l,c,v,d;return u.IsLeft=n.writeAttribute("false"),u.Configs=n.writeAttribute(g),u.PartnerTestHook=n.writeAttribute("DeviceContent.Item"),k=Sparkle.resolveView("Shared:ImagePair"),i=Sparkle.copyContext(t,u),i.segments.image=[],string.IsNullOrEmpty(f.Thumbnail)?(h={},h.Item=n.writeAttribute(f),a=Sparkle.resolveView("Threshold:PlaceHolderImage"),l=Sparkle.copyContext(t,h),i.segments.image.push(a.renderView(l))):(o={},o.style=n.writeAttribute({backgroundColor:nt}),e=Sparkle.copyContext(t,o),r={},r.width=n.writeAttribute("32"),r.height=n.writeAttribute("32"),r.src=n.writeAttribute(f.Thumbnail),r.role=n.writeAttribute("presentation"),w=Sparkle.resolveView("img"),p=Sparkle.copyContext(t,r),e.defaultSegment.push(w.renderView(p)),y=Sparkle.resolveView("div").renderView(e),i.segments.image.push(y)),i.segments.caption=[],c={},c.Item=n.writeAttribute(f),v=Sparkle.resolveView("Threshold:ItemTitle"),d=Sparkle.copyContext(t,c),i.segments.caption.push(v.renderView(d)),s.push(k.renderView(i)),s[s.length-1]}})))})(Sparkle.viewFolder)