(function(n){n.registerView("Threshold:MyStuffPhotoItem",new Sparkle.View(React.createClass({displayName:"Threshold:MyStuffPhotoItem",componentWillMount:function(){Sparkle.inst&&Sparkle.inst.start("render","Threshold:MyStuffPhotoItem")},componentDidMount:function(){Sparkle.inst&&Sparkle.inst.stop("render","Threshold:MyStuffPhotoItem")},componentWillUpdate:function(){Sparkle.inst&&Sparkle.inst.start("update","Threshold:MyStuffPhotoItem")},componentDidUpdate:function(){Sparkle.inst&&Sparkle.inst.stop("update","Threshold:MyStuffPhotoItem")},getInitialState:function(){var r=this.props||{},f=r.viewData||{},u=r.properties||{},t={},e=LocStringManager.getLocString({uiCulture:r.uiCulture,name:"LocStrings",namespace:"Threshold"}),n=u.Item,i=u.Row;return t.liStyle={width:n.ContainerWidth+"px",height:i.Height+"px"},t.imgStyle={height:i.Height+"px",marginLeft:-n.CropOffset+"px"},t.itemUrl=string.IsNullOrEmpty(n.ClickUrl)?"http://ms-smartsearch/app?"+n.Id:n.ClickUrl,t.liPlaceholderStyle={width:n.ContainerWidth+"px",height:i.Height+"px"},t},render:function(){var w=this,i=this.props||{},tt=i.viewData||{},v=i.properties||{},e=[],n=i.encoder||Sparkle.defaultEncoder,it=LocStringManager.getLocString({uiCulture:i.uiCulture,name:"LocStrings",namespace:"Threshold"}),r=v.Item,rt=v.Row,k=this.state.liStyle,b=this.state.imgStyle,d=this.state.itemUrl,nt=this.state.liPlaceholderStyle,u,h,t,l,y,p,o,s,a;if(r.Thumbnail){u={},u.className=n.writeAttribute("DTLItem"),u.style=n.writeAttribute(k),u.onContextMenu=function(n){var i=new Sparkle.RenderedView(w),t=n;r.ContextMenu(event)},h=Sparkle.copyContext(i,u),t={},t.href=n.writeAttribute(d),t["data-appid"]=n.writeAttribute(r.Id),t["data-itemtype"]=n.writeAttribute(r.Type),t.InstItem=n.writeAttribute(r.InstItem),t.PartnerTestHook=n.writeAttribute("DeviceContent.Item"),t.role=n.writeAttribute("button");var g=Sparkle.resolveView("Threshold:InstLink"),c=Sparkle.copyContext(i,t),f={};f.style=n.writeAttribute(b),f.src=n.writeAttribute(r.Thumbnail),f.role=n.writeAttribute("presentation"),f.title=n.writeAttribute(r.TooltipText),l=Sparkle.resolveView("img"),y=Sparkle.copyContext(i,f),c.defaultSegment.push(l.renderView(y)),h.defaultSegment.push(g.renderView(c)),p=Sparkle.resolveView("li").renderView(h),e.push(p)}else o={},o.className=n.writeAttribute("DTLItem DTLPlaceholder"),o.style=n.writeAttribute(nt),s=Sparkle.copyContext(i,o),n.writeContent("placeholder",s.defaultSegment),a=Sparkle.resolveView("li").renderView(s),e.push(a);return e[e.length-1]}})))})(Sparkle.viewFolder)