(function(n){n.registerView("Threshold:SpellerSuggestion",new Sparkle.View(React.createClass({displayName:"Threshold:SpellerSuggestion",componentWillMount:function(){Sparkle.inst&&Sparkle.inst.start("render","Threshold:SpellerSuggestion")},componentDidMount:function(){Sparkle.inst&&Sparkle.inst.stop("render","Threshold:SpellerSuggestion")},componentWillUpdate:function(){Sparkle.inst&&Sparkle.inst.start("update","Threshold:SpellerSuggestion")},componentDidUpdate:function(){Sparkle.inst&&Sparkle.inst.stop("update","Threshold:SpellerSuggestion")},getInitialState:function(){var n=this.props||{},r=n.viewData||{},i=n.properties||{},t={},e=LocStringManager.getLocString({uiCulture:n.uiCulture,name:"LocStrings",namespace:"Threshold"}),f=r.TestHooksEnabled,u=i.Speller;return t},render:function(){var g=this,t=this.props||{},w=t.viewData||{},b=t.properties||{},s=[],n=t.encoder||Sparkle.defaultEncoder,a=LocStringManager.getLocString({uiCulture:t.uiCulture,name:"LocStrings",namespace:"Threshold"}),y=w.TestHooksEnabled,i=b.Speller,f,v,o,e,r,c,h,p;if(i){if(f={},f.Name=n.writeAttribute("Speller"),f.InstItem=n.writeAttribute(i.LayoutInstItem),v=Sparkle.resolveView("Threshold:Region"),o=Sparkle.copyContext(t,f),i.IsComplete){e={},e.className=n.writeAttribute("Speller"),y&&(e["data-tag"]=n.writeAttribute("DeviceContent.Speller"));var l=Sparkle.copyContext(t,e),k={},d=Sparkle.resolveView("Shared:AlertWrapper"),u=Sparkle.copyContext(t,k);n.writeContent(a.SpellerSuggestionPrefix,u.defaultSegment),r={},r.InstItem=n.writeAttribute(i.InstItem),y&&(r["data-tag"]=n.writeAttribute("DeviceContent.SpellerLink")),c=Sparkle.resolveView("Threshold:InstLink"),h=Sparkle.copyContext(t,r),n.writeContent(i.SpellSuggestion,h.defaultSegment),u.defaultSegment.push(c.renderView(h)),n.writeContent(a.SpellerSuggestionSuffix,u.defaultSegment),l.defaultSegment.push(d.renderView(u)),p=Sparkle.resolveView("div").renderView(l),o.defaultSegment.push(p)}s.push(v.renderView(o))}return s[s.length-1]}})))})(Sparkle.viewFolder)