(function(){var n={displayName:"AutoSuggest:HighlightedText",getInitialState:function(){var n=this.props||{},u=n.viewData||{},i=n.properties||{},t={},r=i.Text;return t},render:function(){var c=this,n=this.props||{},l=n.viewData||{},s=n.properties||{},o=[],e=n.encoder||Sparkle.defaultEncoder,i=s.Text,h={},r=Sparkle.copyContext(n,h),u,t,f;for(u in AutoSuggest.HitHighlighting.split(i))t=AutoSuggest.HitHighlighting.split(i)[u],typeof t!="function"&&function(t){var f={},i,u;t.highlighted&&(f.className=e.writeAttribute("highlighted")),i=Sparkle.copyContext(n,f),e.writeContent(t.text,i.defaultSegment),u=Sparkle.resolveView("span").renderView(i),r.defaultSegment.push(u)}(t);return f=Sparkle.resolveView("span").renderView(r),o.push(f),Sparkle.ReactImpl.returnSingleNode(o,n)}};Sparkle.ReactImpl.registerView(n)})()