(function(n){n.registerView("Shared:ImagePair",new Sparkle.View(React.createClass({displayName:"Shared:ImagePair",componentWillMount:function(){Sparkle.inst&&Sparkle.inst.start("render","Shared:ImagePair")},componentDidMount:function(){Sparkle.inst&&Sparkle.inst.stop("render","Shared:ImagePair")},componentWillUpdate:function(){Sparkle.inst&&Sparkle.inst.start("update","Shared:ImagePair")},componentDidUpdate:function(){Sparkle.inst&&Sparkle.inst.stop("update","Shared:ImagePair")},getInitialState:function(){var u=this.props||{},e=u.viewData||{},t=u.properties||{},n={},c=e.TestHooksEnabled,o=t.Configs,h=t.ImageAspectRatio,s=t.ImageGenericSize,f=t.DisplayMode,r=t.IsLeft,i;return(r===undefined||r===null)&&(r=!0),i=t.PartnerTestHook,(i===undefined||i===null)&&(i=null),n.HasFootnote=this.Segments!=null&&this.Segments.ContainsKey("footnote"),n.config=o.GetBestLayoutStrategy(h,s,f),n.inner="inner",n.reverse=string.Empty,n.fontStyle=string.Empty,n},render:function(){var wi=this,n=this.props||{},ci=n.viewData||{},e=n.properties||{},o=[],t=n.encoder||Sparkle.defaultEncoder,d=ci.TestHooksEnabled,li=e.Configs,di=e.ImageAspectRatio,ki=e.ImageGenericSize,bi=e.DisplayMode,i=e.IsLeft,f,ot,ri,gt,et,ii,ti,r,v,a,y,fi,l,h,s,u,kt,tt,nt,k,bt,g,vt,st,it,ht,ni,p,c,b,pt,w,yt;(i===undefined||i===null)&&(i=!0),f=e.PartnerTestHook,(f===undefined||f===null)&&(f=null);var rt=this.state.HasFootnote,at=this.state.config,lt=this.state.inner,ui=this.state.reverse,si=this.state.fontStyle;if(li!=null){ot={},ot.key=t.writeAttribute("rms:answers:Web:"+at.ImageCssRMSKey),ri=Sparkle.resolveView("rms:Css"),gt=Sparkle.copyContext(n,ot),o.push(ri.renderView(gt)),et={},et.key=t.writeAttribute("rms:answers:Shared:ImagePairNonWinBlueShip"),ii=Sparkle.resolveView("rms:Css"),ti=Sparkle.copyContext(n,et),o.push(ii.renderView(ti)),i||(ui=" reverse"),rt&&(lt="inner b_creditedImg"),r={},r.Config=t.writeAttribute(at),r.Reverse=t.writeAttribute(ui),r.FontStyle=t.writeAttribute(si),d&&(r.TestHook=t.writeAttribute("common.ImagePair")),!string.IsNullOrEmpty(f)&&d&&(r.PartnerTestHook=t.writeAttribute(f));var hi=Sparkle.resolveView("Shared:ImagePairWrapper"),ft=Sparkle.copyContext(n,r),ut={};for(ut.className=t.writeAttribute(lt),d&&(ut["data-partnertag"]=t.writeAttribute("common.ImagePair.inner")),v=Sparkle.copyContext(n,ut),a=0;a