(function(){var n={displayName:"AutoSuggest:CortanaIcon",getInitialState:function(){var n=this.props||{},i=n.viewData||{},r=n.properties||{},t={};return t.opacity={opacity:.5},t},render:function(){var d=this,n=this.props||{},g=n.viewData||{},nt=n.properties||{},e=[],t=n.encoder||Sparkle.defaultEncoder,k=this.state.opacity,o={},i=[],r,v,y,u,p,f,w,b;o.viewBox=t.writeAttribute("0 0 36 36");var s=Sparkle.copyContext(n,o),h={},c=[];h.style=t.writeAttribute(k);var l=Sparkle.copyContext(n,h),a={};return a.d=t.writeAttribute("M18 2c8.8 0 16 7.2 16 16s-7.2 16-16 16S2 26.8 2 18S9.2 2 18 2 M18 0C8.1 0 0 8.1 0 18s8.1 18 18 18s18-8.1 18-18S27.9 0 18 0L18 0z"),r=Sparkle.copyContext(n,a),r.defaultSegment=[],v=Sparkle.resolveView("path").renderView(r),c.push(v),l.defaultSegment=c,y=Sparkle.resolveView("g").renderView(l),i.push(y),u={},p=[],u.d=t.writeAttribute("M18 2C9.2 2 2 9.2 2 18s7.2 16 16 16s16-7.2 16-16S26.8 2 18 2z M18 31c-7.2 0-13-5.8-13-13S10.8 5 18 5s13 5.8 13 13S25.2 31 18 31z"),f=Sparkle.copyContext(n,u),f.defaultSegment=p,w=Sparkle.resolveView("path").renderView(f),i.push(w),s.defaultSegment=i,b=Sparkle.resolveView("svg").renderView(s),e.push(b),Sparkle.ReactImpl.returnSingleNode(e)}};Sparkle.ReactImpl.registerView(n)})(),function(){var n={displayName:"AutoSuggest:Icon",getInitialState:function(){var i=this.props||{},o=i.viewData||{},r=i.properties||{},n={},s=o.TestHooksEnabled,h=r.Icon,t=r.useRoundIcon,u,f,e;return(t===undefined||t===null)&&(t=!1),u=string.Empty,n.fontIcon=u,f={},n.bgColor=f,e=string.Empty,n.stretchClass=e,n},render:function(){var st=this,t=this.props||{},ut=t.viewData||{},y=t.properties||{},p=[],i=t.encoder||Sparkle.defaultEncoder,ft=ut.TestHooksEnabled,n=y.Icon,e=y.useRoundIcon,c,o,f,r,l,s,g,nt,v,tt,it,rt;(e===undefined||e===null)&&(e=!1);var w=this.state.fontIcon,b=this.state.bgColor,k=this.state.stretchClass,h={},d=[];if(ft&&(h["data-partnertag"]=i.writeAttribute("Suggestion.Icon")),h.className=i.writeAttribute("iconContainer"),c=Sparkle.copyContext(t,h),b=n&&n.bgColor?{backgroundColor:n.bgColor}:{},n&&n.ratio>0&&(k=n.ratio==2?"wide":"tall"),o={},f=[],o.style=i.writeAttribute(b),r="",r+="icon",n&&n.bgColor&&(r+=" iconWithBackground"),n&&n.type==5&&(r+=" roundIcon"),r+=" "+k,r&&(o.className=i.writeAttribute(r)),l=Sparkle.copyContext(t,o),n)if(n.type==4){var et=Sparkle.resolveView("AutoSuggest:CortanaIcon"),ot=Sparkle.copyContext(t,{});f.push(et.renderView(ot))}else if(n.content)if(n.type==0||n.type==5)s={},s.src=i.writeAttribute(n.content),s.role=i.writeAttribute("presentation"),g=Sparkle.resolveView("img"),nt=Sparkle.copyContext(t,s),f.push(g.renderView(nt));else{var a={},u="";u+="iconContent";n.needsAccentColor&&(u+=" accentColor");e&&(u+=" roundIcon");n.type==3&&(u+=" bingFontIcon");n.type==2&&(u+=" cortanaFontIcon");u&&(a.className=i.writeAttribute(u));v=Sparkle.copyContext(t,a);w=n.content;a.dangerouslySetInnerHTML={__html:i.writeUnencodedContent(w)};v.defaultSegment=[];tt=Sparkle.resolveView("span").renderView(v);f.push(tt)}return l.defaultSegment=f,it=Sparkle.resolveView("div").renderView(l),d.push(it),c.defaultSegment=d,rt=Sparkle.resolveView("div").renderView(c),p.push(rt),Sparkle.ReactImpl.returnSingleNode(p)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"AutoSuggest:LocStringsShim",getInitialState:function(){var n=this.props||{},t=n.viewData||{},i=n.properties||{},r=LocStringManager.getLocString({uiCulture:n.uiCulture,name:"CortanaQF",namespace:"AutoSuggest"});return{}},render:function(){var u=this,r=this.props||{},f=r.viewData||{},e=r.properties||{},n=[],t=r.encoder||Sparkle.defaultEncoder,i=LocStringManager.getLocString({uiCulture:r.uiCulture,name:"CortanaQF",namespace:"AutoSuggest"});return t.writeContent(i.PlaySongPrompt,n),t.writeContent(i.PlayVideoPrompt,n),t.writeContent(i.ViewPhotoPrompt,n),t.writeContent(i.RunCommandPrompt,n),t.writeContent(i.CommandGroup,n),t.writeContent(i.CortanaGroup,n),t.writeContent(i.StoreGroup,n),t.writeContent(i.PowerBIGroup,n),t.writeContent(i.PowerBIDashboard,n),t.writeContent(i.PowerBIContentPack,n),t.writeContent(i.EdgeHistoryGroup,n),t.writeContent(i.BingSearchAnnotation,n),t.writeContent(i.ControlPanelAnnotation,n),t.writeContent(i.SystemSettingsAnnotation,n),t.writeContent(i.WindowsAppAnnotation,n),t.writeContent(i.DesktopAppAnnotation,n),t.writeContent(i.TrustedWindowsAppAnnotation,n),t.writeContent(i.TrustedDesktopAppAnnotation,n),t.writeContent(i.LastModifiedAnnotation,n),t.writeContent(i.SearchMyStuff,n),t.writeContent(i.SearchTheWeb,n),t.writeContent(i.SearchFor,n),t.writeContent(i.InSourceLabel,n),t.writeContent(i.InfoTextWithSource,n),t.writeContent(i.DisambigWeb,n),t.writeContent(i.DisambigMyStuff,n),t.writeContent(i.DirectNavSuggestion,n),t.writeContent(i.MicrosoftRecommendedBrowser,n),t.writeContent(i.ScopeAll,n),t.writeContent(i.ScopeApps,n),t.writeContent(i.ScopeSettings,n),t.writeContent(i.ScopeFiles,n),t.writeContent(i.ScopeMusic,n),t.writeContent(i.ScopePhotos,n),t.writeContent(i.ScopeVideos,n),t.writeContent(i.ScopeDocuments,n),t.writeContent(i.ScopeFolders,n),t.writeContent(i.ScopeEmails,n),t.writeContent(i.ScopeCalendar,n),t.writeContent(i.ScopePeople,n),t.writeContent(i.ScopeWeb,n),t.writeContent(i.BestMatch,n),t.writeContent(i.BestMatchFor,n),t.writeContent(i.EmptyScopeMessage,n),t.writeContent(i.EmptyScopeMessageWeb,n),t.writeContent(i.EnterOnAmbiguousTopHitMessageText,n),t.writeContent(i.JumpListItemUnavailable,n),t.writeContent(i.GroupHeaderSecondaryText,n),t.writeContent(i.RemoveFromDeviceHistory,n),t.writeContent(i.ManageSearchHistory,n),t.writeContent(i.NoResults,n),t.writeContent(i.OpenFileLocation,n),t.writeContent(i.ProactivePeek_CreateReminder,n),t.writeContent(i.ProactivePeek_HelpAndTips,n),t.writeContent(i.ProactivePeek_MyInterests,n),t.writeContent(i.ProactivePeek_PersonaTextDefault,n),t.writeContent(i.AddingScopeNarratorText,n),t.writeContent(i.RemovingScopeNarratorText,n),t.writeContent(i.SearchMyStuffFor,n),t.writeContent(i.SearchTheWebFor,n),t.writeContent(i.ResultsList,n),t.writeContent(i.ScopesList,n),t.writeContent(i.SearchTheWebFor,n),t.writeContent(i.OpenIn,n),t.writeContent(i.RemoveFromThisList,n),Sparkle.ReactImpl.returnSingleNode(n)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"AutoSuggest:Proactive",getInitialState:function(){var n=this.props||{},i=n.viewData||{},r=n.properties||{},t={},f=i.TestHooksEnabled,e=r.Suggestions,u=string.Empty;return t.answer=u,t},render:function(){var y=this,t=this.props||{},a=t.viewData||{},v=t.properties||{},f=[],n=t.encoder||Sparkle.defaultEncoder,e=a.TestHooksEnabled,o=v.Suggestions,s=this.state.answer,i={},h=[],r,c,u,l;i.id=n.writeAttribute("b_results");i.className=n.writeAttribute("b_slideListHide");r=Sparkle.copyContext(t,i);for(c in o)u=o[c],typeof u!="function"&&function(i){var r={},o=[],f,l,a;r.className=n.writeAttribute("b_ans suggestion cf");r.id=n.writeAttribute(i.id);e&&(r["data-partnertag"]=n.writeAttribute("AutoSuggest.ProactiveCard"));r.role=n.writeAttribute("listitem");r["aria-selected"]=n.writeAttribute("false");i.narratorText&&(r["aria-label"]=n.writeAttribute(i.narratorText));e&&(r["data-stype"]=n.writeAttribute(i.type));r.title=n.writeAttribute(i.tooltip);var c=Sparkle.copyContext(t,r),u={};u.className=n.writeAttribute("answer");f=Sparkle.copyContext(t,u);s=i.answerHtml;u.dangerouslySetInnerHTML={__html:n.writeUnencodedContent(s)};f.defaultSegment=[];l=Sparkle.resolveView("div").renderView(f);o.push(l);c.defaultSegment=o;a=Sparkle.resolveView("li").renderView(c);h.push(a)}(u);return r.defaultSegment=h,l=Sparkle.resolveView("ol").renderView(r),f.push(l),Sparkle.ReactImpl.returnSingleNode(f)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"AutoSuggest:ProactivePeek",getInitialState:function(){var n=this.props||{},i=n.viewData||{},t=n.properties||{},r=t.Actions;return{}},render:function(){var c=this,n=this.props||{},a=n.viewData||{},l=n.properties||{},u=[],t=n.encoder||Sparkle.defaultEncoder,f=l.Actions,e={},o=[],i,s,r,h;e.id=t.writeAttribute("peek");i=Sparkle.copyContext(n,e);for(s in f)r=f[s],typeof r!="function"&&function(i){var r={},u=[],f,e,p,w,b,s,h,l,k,d;r.className=t.writeAttribute("peekAction");r.onClick=function(n){var t=new Sparkle.RenderedView(c),r=n;i.action()};var a=Sparkle.copyContext(n,r),v={},y=[];v.className=t.writeAttribute("iconWrapper");f=Sparkle.copyContext(n,v);e={};e.Icon=t.writeAttribute(i.icon);p=Sparkle.resolveView("AutoSuggest:Icon");w=Sparkle.copyContext(n,e);y.push(p.renderView(w));f.defaultSegment=y;b=Sparkle.resolveView("div").renderView(f);u.push(b);s={};h=[];s.className=t.writeAttribute("text");l=Sparkle.copyContext(n,s);t.writeContent(i.text,h);l.defaultSegment=h;k=Sparkle.resolveView("div").renderView(l);u.push(k);a.defaultSegment=u;d=Sparkle.resolveView("a").renderView(a);o.push(d)}(r);return i.defaultSegment=o,h=Sparkle.resolveView("div").renderView(i),u.push(h),Sparkle.ReactImpl.returnSingleNode(u)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"AutoSuggest:ToggleSwitch",getInitialState:function(){var t=this.props||{},r=t.viewData||{},n=t.properties||{},i={},e=LocStringManager.getLocString({uiCulture:t.uiCulture,name:"CortanaQF",namespace:"AutoSuggest"}),o=r.TestHooksEnabled,u=n.Id,s=n.NarratorText,h=n.IsToggled,c=n.ToggleHandler,f=u+"label";return i.labelId=f,i},render:function(){var v=this,t=this.props||{},at=t.viewData||{},u=t.properties||{},y=[],n=t.encoder||Sparkle.defaultEncoder,p=LocStringManager.getLocString({uiCulture:t.uiCulture,name:"CortanaQF",namespace:"AutoSuggest"}),yt=at.TestHooksEnabled,w=u.Id,vt=u.NarratorText,b=u.IsToggled,k=u.ToggleHandler,d=this.state.labelId,g={},nt=[],s,rt,f,e,h,ot,c,l,a,st,ht,ct,lt;g.className=n.writeAttribute("toggleSwitch");var tt=Sparkle.copyContext(t,g),i={},o=[];i.href=n.writeAttribute("#");i["aria-label"]=n.writeAttribute(vt);i.role=n.writeAttribute("checkbox");i["aria-checked"]=n.writeAttribute(b);i.onClick=function(n){var t=new Sparkle.RenderedView(v),i=n;_ge(d).click()};i.className=n.writeAttribute("focusable");var it=Sparkle.copyContext(t,i),r={};r.id=n.writeAttribute(w);r.type=n.writeAttribute("checkbox");b&&(r.checked=n.writeAttribute("checked"));r.onChange=function(n){var t=new Sparkle.RenderedView(v),i=n;k&&k(event)};s=Sparkle.copyContext(t,r);s.defaultSegment=[];rt=Sparkle.resolveView("input").renderView(s);o.push(rt);f={};e=[];f.id=n.writeAttribute(d);f.htmlFor=n.writeAttribute(w);var ut=Sparkle.copyContext(t,f),ft={},et=[];return ft.className=n.writeAttribute("off"),h=Sparkle.copyContext(t,ft),n.writeContent(p.ToggleSwitchOff,et),h.defaultSegment=et,ot=Sparkle.resolveView("span").renderView(h),e.push(ot),c={},l=[],c.className=n.writeAttribute("on"),a=Sparkle.copyContext(t,c),n.writeContent(p.ToggleSwitchOn,l),a.defaultSegment=l,st=Sparkle.resolveView("span").renderView(a),e.push(st),ut.defaultSegment=e,ht=Sparkle.resolveView("label").renderView(ut),o.push(ht),it.defaultSegment=o,ct=Sparkle.resolveView("a").renderView(it),nt.push(ct),tt.defaultSegment=nt,lt=Sparkle.resolveView("div").renderView(tt),y.push(lt),Sparkle.ReactImpl.returnSingleNode(y)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"AutoSuggest:TopHitHeader",getInitialState:function(){var t=this.props||{},i=t.viewData||{},n=t.properties||{},r=LocStringManager.getLocString({uiCulture:t.uiCulture,name:"CortanaQF",namespace:"AutoSuggest"}),u=i.TestHooksEnabled,f=n.ShowModule,e=n.HeaderText,o=n.Scopes,s=n.CarouselButtons,h=n.ClickHandler,c=n.Message,l=n.MessageIcon;return{}},render:function(){var st=this,t=this.props||{},hi=t.viewData||{},i=t.properties||{},ht=[],n=t.encoder||Sparkle.defaultEncoder,ci=LocStringManager.getLocString({uiCulture:t.uiCulture,name:"CortanaQF",namespace:"AutoSuggest"}),li=hi.TestHooksEnabled,ai=i.ShowModule,l=i.HeaderText,a=i.Scopes,ct=i.CarouselButtons,yi=i.ClickHandler,e=i.Message,vi=i.MessageIcon,at,v,y,o,p,f,w,b,wt,k,bt,kt,d,g,nt,ni,ti,ii,h,tt,it,rt,c,ut,ft,ri,ui,r,et,ot,fi,ei,oi,si;if(ai){var u=[],lt=Sparkle.copyContext(t,{});for(at in ct)v=ct[at],typeof v!="function"&&function(i){var r={},e,c,f,o,s,h,l,a,v;r.type=n.writeAttribute("radio");r.id=n.writeAttribute(i.id);r.name=n.writeAttribute(i.name);r.value=n.writeAttribute(i.value);r.onChange=function(n){var t=new Sparkle.RenderedView(st),r=n;i.change()};e=Sparkle.copyContext(t,r);e.defaultSegment=[];c=Sparkle.resolveView("input").renderView(e);u.push(c);f={};o=[];f.htmlFor=n.writeAttribute(i.id);f.className=n.writeAttribute(i.className);s=Sparkle.copyContext(t,f);h={};h.Icon=n.writeAttribute(i.icon);l=Sparkle.resolveView("AutoSuggest:Icon");a=Sparkle.copyContext(t,h);o.push(l.renderView(a));s.defaultSegment=o;v=Sparkle.resolveView("label").renderView(s);u.push(v)}(v);y={};o=[];y.className=n.writeAttribute("searchScopes");var vt=Sparkle.copyContext(t,y),yt={},pt=[];if(yt.className=n.writeAttribute("searchScopesBar"),p=Sparkle.copyContext(t,yt),a){f={};w=[];f.id=n.writeAttribute("scopeTilesList");f["aria-label"]=n.writeAttribute(ci.ScopesList);f.role=n.writeAttribute("listbox");b=Sparkle.copyContext(t,f);for(wt in a)k=a[wt],typeof k!="function"&&function(i){var r={},s=[],u,e,o,l,a,p,b,k;r.href=n.writeAttribute("#");u="";u+="scopeTile";i.selected&&(u+=" selectedScope");u+=" focusable";u&&(r.className=n.writeAttribute(u));r.onClick=function(n){var t=new Sparkle.RenderedView(st),r=n;i.click()};r.role=n.writeAttribute("listitem");r["aria-selected"]=n.writeAttribute(i.selected?"true":"false");r["aria-label"]=n.writeAttribute(i.description);r.title=n.writeAttribute(i.description);r.tabIndex=n.writeAttribute(i.tabindex?i.tabindex:-1);var h=Sparkle.copyContext(t,r),c={},f=[];c.role=n.writeAttribute("presentation");e=Sparkle.copyContext(t,c);o={};o.Icon=n.writeAttribute(i.icon);l=Sparkle.resolveView("AutoSuggest:Icon");a=Sparkle.copyContext(t,o);f.push(l.renderView(a));var v=[],y=Sparkle.copyContext(t,{});n.writeContent(i.text,v);y.defaultSegment=v;p=Sparkle.resolveView("div").renderView(y);f.push(p);e.defaultSegment=f;b=Sparkle.resolveView("li").renderView(e);s.push(b);h.defaultSegment=s;k=Sparkle.resolveView("a").renderView(h);w.push(k)}(k);b.defaultSegment=w;bt=Sparkle.resolveView("ul").renderView(b);pt.push(bt)}if(p.defaultSegment=pt,kt=Sparkle.resolveView("div").renderView(p),o.push(kt),l){d={};g=[];d.className=n.writeAttribute("groupHeader");var dt=Sparkle.copyContext(t,d),s={},gt=[];s.className=n.writeAttribute("groupTitle");s["aria-label"]=n.writeAttribute(l);s.role=n.writeAttribute("heading");nt=Sparkle.copyContext(t,s);n.writeContent(l,gt);nt.defaultSegment=gt;ni=Sparkle.resolveView("span").renderView(nt);g.push(ni);dt.defaultSegment=g;ti=Sparkle.resolveView("div").renderView(dt);o.push(ti)}vt.defaultSegment=o;ii=Sparkle.resolveView("div").renderView(vt);u.push(ii);h={};tt=[];e||(h.className=n.writeAttribute("b_hide"));h["aria-live"]=n.writeAttribute("assertive");it=Sparkle.copyContext(t,h);!e||(rt={},c=[],rt.className=n.writeAttribute("scopeMessage"),ut=Sparkle.copyContext(t,rt),ft={},ft.Icon=n.writeAttribute(vi),ri=Sparkle.resolveView("AutoSuggest:Icon"),ui=Sparkle.copyContext(t,ft),c.push(ri.renderView(ui)),r={},et=[],r.className=n.writeAttribute("details"),r["aria-label"]=n.writeAttribute(e),r.role=n.writeAttribute("heading"),li&&(r["data-partnertag"]=n.writeAttribute("Message")),ot=Sparkle.copyContext(t,r),n.writeContent(e,et),ot.defaultSegment=et,fi=Sparkle.resolveView("div").renderView(ot),c.push(fi),ut.defaultSegment=c,ei=Sparkle.resolveView("div").renderView(ut),tt.push(ei));it.defaultSegment=tt;oi=Sparkle.resolveView("div").renderView(it);u.push(oi);lt.defaultSegment=u;si=Sparkle.resolveView("div").renderView(lt);ht.push(si)}return Sparkle.ReactImpl.returnSingleNode(ht)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"AutoSuggest:WindowsSuggestionUpsell",getInitialState:function(){var t=this.props||{},i=t.viewData||{},n=t.properties||{},r=i.TestHooksEnabled,u=n.Suggestion,f=n.ContextMenuHandler,e=n.ClickHandler,o=n.RemoveClickHandler;return{}},render:function(){var k=this,i=this.props||{},yt=i.viewData||{},o=i.properties||{},d=[],n=i.encoder||Sparkle.defaultEncoder,l=yt.TestHooksEnabled,t=o.Suggestion,pt=o.ContextMenuHandler,wt=o.ClickHandler,bt=o.RemoveClickHandler,r={},g=[],v,f,ut,ft,et,y,p,w,c,ot,st,ht,b,lt,at,vt;r.className=n.writeAttribute("suggestion");r.onContextMenu=function(n){var i=new Sparkle.RenderedView(k),r=n;pt(t,event)};r.id=n.writeAttribute(t.id);l&&(r["data-partnertag"]=n.writeAttribute("AutoSuggest.Upsell"));r.role=n.writeAttribute("listitem");t.narratorText&&(r["aria-label"]=n.writeAttribute(t.narratorText));l&&(r["data-stype"]=n.writeAttribute(t.type));r.title=n.writeAttribute(t.tooltip);var nt=Sparkle.copyContext(i,r),tt={},s=[];tt.className=n.writeAttribute("details upSellDetails");var it=Sparkle.copyContext(i,tt),a={},rt=[],h="";h+="primaryText";string.IsNullOrEmpty(t.primaryTextClass)||(h+=" "+t.primaryTextClass);h&&(a.className=n.writeAttribute(h));l&&(a["data-partnertag"]=n.writeAttribute("Suggestion.PrimaryText"));v=Sparkle.copyContext(i,a);f={};f.Text=n.writeAttribute(t.text);f.Dir=n.writeAttribute("ltr");f.Reverse=n.writeAttribute(AutoSuggest.Windows.hasReverseHighlighting(t));ut=Sparkle.resolveView("AutoSuggest:HighlightedText");ft=Sparkle.copyContext(i,f);rt.push(ut.renderView(ft));v.defaultSegment=rt;et=Sparkle.resolveView("div").renderView(v);s.push(et);y={};p=[];y.className=n.writeAttribute("connectAccountLogo");w=Sparkle.copyContext(i,y);c={};c.src=n.writeAttribute(t.icon.content);c.role=n.writeAttribute("presentation");ot=Sparkle.resolveView("img");st=Sparkle.copyContext(i,c);p.push(ot.renderView(st));w.defaultSegment=p;ht=Sparkle.resolveView("div").renderView(w);s.push(ht);var u={},ct=[],e="";return t.selected&&(e+="sa_hv"),!t.click||(e+=" selectable"),e+=" connectButton",e&&(u.className=n.writeAttribute(e)),u.onClick=function(n){var i=new Sparkle.RenderedView(k),r=n;wt(t)},u["aria-selected"]=n.writeAttribute(t.selected?"true":"false"),u["data-h"]=n.writeAttribute(t.instItem.getHValue()),u["data-clicks"]=n.writeAttribute("true"),u.role=n.writeAttribute("button"),b=Sparkle.copyContext(i,u),n.writeContent(t.secondaryText,ct),b.defaultSegment=ct,lt=Sparkle.resolveView("div").renderView(b),s.push(lt),it.defaultSegment=s,at=Sparkle.resolveView("div").renderView(it),g.push(at),nt.defaultSegment=g,vt=Sparkle.resolveView("div").renderView(nt),d.push(vt),Sparkle.ReactImpl.returnSingleNode(d)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"AutoSuggest:WindowsGroup",getInitialState:function(){var t=this.props||{},i=t.viewData||{},n=t.properties||{},r=i.TestHooksEnabled,u=n.Group,f=n.ContextMenuHandler,e=n.ClickHandler,o=n.RemoveClickHandler;return{}},render:function(){var lt=this,i=this.props||{},at=i.viewData||{},e=i.properties||{},g=[],n=i.encoder||Sparkle.defaultEncoder,vt=at.TestHooksEnabled,t=e.Group,h=e.ContextMenuHandler,o=e.ClickHandler,c=e.RemoveClickHandler,l={},a=[],s="",y,ut,p,ft,w,et,ot,b,f,k,st,d,ht,ct;s+="group";string.IsNullOrEmpty(t.cssClasses)||(s+=" "+t.cssClasses);s&&(l.className=n.writeAttribute(s));l["data-region"]=n.writeAttribute(t.instRegionName);var nt=Sparkle.copyContext(i,l),r={},v=[],u="";u+="groupHeader";!t.click||(u+=" selectable");t.selected&&(u+=" sa_hv");u&&(r.className=n.writeAttribute(u));r.id=n.writeAttribute(t.id);r.onClick=function(n){var i=new Sparkle.RenderedView(lt),r=n;!t.click||o(t)};t.instItem&&(r["data-h"]=n.writeAttribute(t.instItem.getHValue()));r["data-clicks"]=n.writeAttribute("true");!t.click||(r.role=n.writeAttribute("listitem"));r["aria-label"]=n.writeAttribute(t.narratorText);r["aria-selected"]=n.writeAttribute(t.selected?"true":"false");var tt=Sparkle.copyContext(i,r),it={},rt=[];it.className=n.writeAttribute("groupTitle");y=Sparkle.copyContext(i,it);n.writeContent(t.title,rt);y.defaultSegment=rt;ut=Sparkle.resolveView("span").renderView(y);v.push(ut);!t.click||(p={},ft=[],p.className=n.writeAttribute("groupAnnotations"),w=Sparkle.copyContext(i,p),w.defaultSegment=ft,et=Sparkle.resolveView("span").renderView(w),v.push(et));tt.defaultSegment=v;ot=Sparkle.resolveView("div").renderView(tt);a.push(ot);b={};f=[];b.className=n.writeAttribute("suggsList");k=Sparkle.copyContext(i,b);for(st in t.suggestions)d=t.suggestions[st],typeof d!="function"&&function(t){var r,s,l,u,a,v,e,y,p;t.template==2?(r={},r.Suggestion=n.writeAttribute(t),r.ContextMenuHandler=n.writeAttribute(h),r.ClickHandler=n.writeAttribute(o),r.RemoveClickHandler=n.writeAttribute(c),s=Sparkle.resolveView("AutoSuggest:WindowsSuggestionUpsell"),l=Sparkle.copyContext(i,r),f.push(s.renderView(l))):t.template==1?(u={},u.Suggestion=n.writeAttribute(t),u.ContextMenuHandler=n.writeAttribute(h),u.ClickHandler=n.writeAttribute(o),u.RemoveClickHandler=n.writeAttribute(c),a=Sparkle.resolveView("AutoSuggest:WindowsSuggestionTwoColumn"),v=Sparkle.copyContext(i,u),f.push(a.renderView(v))):t.template==0&&(e={},e.Suggestion=n.writeAttribute(t),e.ContextMenuHandler=n.writeAttribute(h),e.ClickHandler=n.writeAttribute(o),e.RemoveClickHandler=n.writeAttribute(c),y=Sparkle.resolveView("AutoSuggest:WindowsSuggestionSingleLine"),p=Sparkle.copyContext(i,e),f.push(y.renderView(p)))}(d);return k.defaultSegment=f,ht=Sparkle.resolveView("div").renderView(k),a.push(ht),nt.defaultSegment=a,ct=Sparkle.resolveView("div").renderView(nt),g.push(ct),Sparkle.ReactImpl.returnSingleNode(g)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"AutoSuggest:WindowsIndexingMessage",getInitialState:function(){var t=this.props||{},i=t.viewData||{},n=t.properties||{},r=LocStringManager.getLocString({uiCulture:t.uiCulture,name:"CortanaQF",namespace:"AutoSuggest"}),u=i.TestHooksEnabled,f=n.Icon,e=n.Running,o=n.Visible,s=n.ClickHandler;return{}},render:function(){var w=this,r=this.props||{},v=r.viewData||{},f=r.properties||{},e=[],n=r.encoder||Sparkle.defaultEncoder,u=LocStringManager.getLocString({uiCulture:r.uiCulture,name:"CortanaQF",namespace:"AutoSuggest"}),b=v.TestHooksEnabled,s=f.Icon,y=f.Running,o=f.Visible,p=f.ClickHandler,i,h,c,t,l,a;return o&&(y?s!=null&&(i={},i.Visible=n.writeAttribute(o),i.Icon=n.writeAttribute(s),i.MessageClassName=n.writeAttribute("indexingMessage"),i.Title=n.writeAttribute(u.WindowsIndexingInProgressToolTip),i.MessageText=n.writeAttribute(u.WindowsIndexingInProgressMessage),h=Sparkle.resolveView("AutoSuggest:WindowsMessage"),c=Sparkle.copyContext(r,i),e.push(h.renderView(c))):(t={},t.Visible=n.writeAttribute(o),t.MessageClassName=n.writeAttribute("indexingMessage"),t.Title=n.writeAttribute(u.WindowsIndexingDisabledToolTip),t.MessageText=n.writeAttribute(u.WindowsIndexingDisabledMessage),t.ActionText=n.writeAttribute(u.WindowsIndexingDisabledAction),t.ClickHandler=n.writeAttribute(p+" "),l=Sparkle.resolveView("AutoSuggest:WindowsMessage"),a=Sparkle.copyContext(r,t),e.push(l.renderView(a)))),Sparkle.ReactImpl.returnSingleNode(e)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"AutoSuggest:WindowsOemToggleBar",getInitialState:function(){var t=this.props||{},i=t.viewData||{},n=t.properties||{},r=i.TestHooksEnabled,u=n.Id,f=n.Visible,e=n.ProviderName,o=n.LogoIcon,s=n.LogoTextFallback,h=n.IsToggled,c=n.ToggleHandler;return{}},render:function(){var it=this,i=this.props||{},p=i.viewData||{},t=i.properties||{},s=[],n=i.encoder||Sparkle.defaultEncoder,w=p.TestHooksEnabled,b=t.Id,k=t.Visible,d=t.ProviderName,h=t.LogoIcon,g=t.LogoTextFallback,nt=t.IsToggled,tt=t.ToggleHandler,f,e,o,u,c,l,r,a,v,y;return k&&(f={},e=[],f.className=n.writeAttribute("oemMessage flexParent"),w&&(f["data-partnertag"]=n.writeAttribute("OemToggleBar")),o=Sparkle.copyContext(i,f),u={},u.Visible=n.writeAttribute("true"),u.Icon=n.writeAttribute(h),h||(u.MessageText=n.writeAttribute(g)),c=Sparkle.resolveView("AutoSuggest:WindowsMessage"),l=Sparkle.copyContext(i,u),e.push(c.renderView(l)),r={},r.Id=n.writeAttribute(b),r.NarratorText=n.writeAttribute(d),r.IsToggled=n.writeAttribute(nt),r.ToggleHandler=n.writeAttribute(tt),a=Sparkle.resolveView("AutoSuggest:ToggleSwitch"),v=Sparkle.copyContext(i,r),e.push(a.renderView(v)),o.defaultSegment=e,y=Sparkle.resolveView("div").renderView(o),s.push(y)),Sparkle.ReactImpl.returnSingleNode(s)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"AutoSuggest:WindowsMessage",getInitialState:function(){var t=this.props||{},i=t.viewData||{},n=t.properties||{},r=i.TestHooksEnabled,u=n.Visible,f=n.Icon,e=n.MessageClassName,o=n.Title,s=n.MessageText,h=n.ActionText,c=n.ClickHandler;return{}},render:function(){var lt=this,t=this.props||{},at=t.viewData||{},i=t.properties||{},p=[],n=t.encoder||Sparkle.defaultEncoder,vt=at.TestHooksEnabled,yt=i.Visible,o=i.Icon,w=i.MessageClassName,b=i.Title,pt=i.MessageText,wt=i.ActionText,k=i.ClickHandler,r={},d=[],u="",h,c,tt,it,l,f,a,et,e,v,y,ot,st,ht,ct;string.IsNullOrEmpty(w)||(u+=w);yt&&(u+=" visible");u&&(r.className=n.writeAttribute(u));vt&&(r["data-partnertag"]=n.writeAttribute("Message"));string.IsNullOrEmpty(b)||(r.title=n.writeAttribute(b));var g=Sparkle.copyContext(t,r),nt={},s=[];nt.className=n.writeAttribute("message");h=Sparkle.copyContext(t,nt);o!=null&&(c={},c.Icon=n.writeAttribute(o),tt=Sparkle.resolveView("AutoSuggest:Icon"),it=Sparkle.copyContext(t,c),s.push(tt.renderView(it)));l={};f=[];o!=null&&(l.className=n.writeAttribute("details"));var rt=Sparkle.copyContext(t,l),ut={},ft=[];return ut.className=n.writeAttribute("primaryText"),a=Sparkle.copyContext(t,ut),n.writeContent(pt,ft),a.defaultSegment=ft,et=Sparkle.resolveView("div").renderView(a),f.push(et),k!=null&&(e={},v=[],e.className=n.writeAttribute("primaryText accentColor"),e.onClick=function(n){var t=new Sparkle.RenderedView(lt),i=n;k()},y=Sparkle.copyContext(t,e),n.writeContent(wt,v),y.defaultSegment=v,ot=Sparkle.resolveView("div").renderView(y),f.push(ot)),rt.defaultSegment=f,st=Sparkle.resolveView("div").renderView(rt),s.push(st),h.defaultSegment=s,ht=Sparkle.resolveView("div").renderView(h),d.push(ht),g.defaultSegment=d,ct=Sparkle.resolveView("div").renderView(g),p.push(ct),Sparkle.ReactImpl.returnSingleNode(p)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"AutoSuggest:WindowsSuggestionTwoColumn",getInitialState:function(){var t=this.props||{},r=t.viewData||{},n=t.properties||{},i={},f=LocStringManager.getLocString({uiCulture:t.uiCulture,name:"CortanaQF",namespace:"AutoSuggest"}),e=r.TestHooksEnabled,o=n.Suggestion,s=n.ContextMenuHandler,h=n.ClickHandler,c=n.RemoveClickHandler,u=string.Empty;return i.answer=u,i},render:function(){var tt=this,i=this.props||{},ar=i.viewData||{},h=i.properties||{},gt=[],t=i.encoder||Sparkle.defaultEncoder,vr=LocStringManager.getLocString({uiCulture:i.uiCulture,name:"CortanaQF",namespace:"AutoSuggest"}),u=ar.TestHooksEnabled,n=h.Suggestion,yr=h.ContextMenuHandler,pr=h.ClickHandler,wr=h.RemoveClickHandler,ni=this.state.answer,r={},c=[],f="",it,l,ti,ii,rt,a,ft,y,si,hi,ci,p,et,ot,li,st,ai,ht,vi,lt,pi,wi,vt,k,ki,di,gi,pt,g,tr,ir,rr,ur,e,wt,bt,kt,fr,er,or,sr,nt,hr,dt,cr,lr;if(f+="suggestion cf",n.selected&&(f+=" sa_hv"),n.hasJumpListDisplayed&&(f+=" jumpList"),!n.click||(f+=" selectable"),AutoSuggest.Windows.isWebSuggestion(n)&&(f+=" webSuggestion"),f&&(r.className=t.writeAttribute(f)),r.onContextMenu=function(t){var i=new Sparkle.RenderedView(tt),r=t;yr(n,event)},r.onClick=function(t){var i=new Sparkle.RenderedView(tt),r=t;n.click&&pr(n)},r.id=t.writeAttribute(n.id),u&&(r["data-partnertag"]=t.writeAttribute("AutoSuggest.RegularSuggestion")),r.role=t.writeAttribute("listitem"),r["aria-selected"]=t.writeAttribute(n.selected?"true":"false"),n.narratorText&&(r["aria-label"]=t.writeAttribute(n.narratorText)),u&&(r["data-stype"]=t.writeAttribute(n.type)),n.click&&(r["data-h"]=t.writeAttribute(n.instItem.getHValue())),n.click&&(r["data-clicks"]=t.writeAttribute("true")),r.title=t.writeAttribute(n.tooltip),it=Sparkle.copyContext(i,r),string.IsNullOrEmpty(n.answerHtml)){l={};l.useRoundIcon=t.writeAttribute("true");l.Icon=t.writeAttribute(n.icon);ti=Sparkle.resolveView("AutoSuggest:Icon");ii=Sparkle.copyContext(i,l);c.push(ti.renderView(ii));rt={};a=[];rt.className=t.writeAttribute("details roundIcon");var ri=Sparkle.copyContext(i,rt),v=[],ui=Sparkle.copyContext(i,{}),fi={},o=[];string.IsNullOrEmpty(n.rightAlignedText)||(fi.className=t.writeAttribute("flexParent"));var ei=Sparkle.copyContext(i,fi),ut={},oi=[],s="";if(s+="primaryText nowrap",string.IsNullOrEmpty(n.primaryTextClass)||(s+=" "+n.primaryTextClass),n.truncateRightColumn||(s+=" truncate"),s&&(ut.className=t.writeAttribute(s)),u&&(ut["data-partnertag"]=t.writeAttribute("Suggestion.PrimaryText")),ft=Sparkle.copyContext(i,ut),y={},y.Text=t.writeAttribute(n.text),y.Dir=t.writeAttribute("ltr"),si=Sparkle.resolveView("AutoSuggest:HighlightedText"),hi=Sparkle.copyContext(i,y),oi.push(si.renderView(hi)),ft.defaultSegment=oi,ci=Sparkle.resolveView("div").renderView(ft),o.push(ci),string.IsNullOrEmpty(n.textLabel)||(p={},et=[],p.className=t.writeAttribute("secondaryText annotation"),u&&(p["data-partnertag"]=t.writeAttribute("Suggestion.textLabel")),ot=Sparkle.copyContext(i,p),t.writeContent(n.textLabel,et),ot.defaultSegment=et,li=Sparkle.resolveView("div").renderView(ot),o.push(li)),!string.IsNullOrEmpty(n.rightAlignedText)&&string.IsNullOrEmpty(n.textLabel)&&(st={},ai=[],st.className=t.writeAttribute("b_flexboxSpacer"),ht=Sparkle.copyContext(i,st),ht.defaultSegment=ai,vi=Sparkle.resolveView("span").renderView(ht),o.push(vi)),!string.IsNullOrEmpty(n.rightAlignedText)){var ct={},yi=[],w="";w+="secondaryText annotation";n.truncateRightColumn&&(w+=" truncate");w&&(ct.className=t.writeAttribute(w));u&&(ct["data-partnertag"]=t.writeAttribute("Suggestion.RightAlignedText"));lt=Sparkle.copyContext(i,ct);t.writeContent(n.rightAlignedText,yi);lt.defaultSegment=yi;pi=Sparkle.resolveView("div").renderView(lt);o.push(pi)}if(ei.defaultSegment=o,wi=Sparkle.resolveView("div").renderView(ei),v.push(wi),!string.IsNullOrEmpty(n.additionalInfoText)){var at={},bi=[],b="";b+="secondaryText annotation";string.IsNullOrEmpty(n.additionalInfoTextClass)||(b+=" "+n.additionalInfoTextClass);b&&(at.className=t.writeAttribute(b));u&&(at["data-partnertag"]=t.writeAttribute("Suggestion.AdditionalInfoText"));vt=Sparkle.copyContext(i,at);k={};k.Text=t.writeAttribute(n.additionalInfoText);k.Dir=t.writeAttribute("ltr");ki=Sparkle.resolveView("AutoSuggest:HighlightedText");di=Sparkle.copyContext(i,k);bi.push(ki.renderView(di));vt.defaultSegment=bi;gi=Sparkle.resolveView("div").renderView(vt);v.push(gi)}if(!string.IsNullOrEmpty(n.secondaryText)){var yt={},nr=[],d="";d+="secondaryText";string.IsNullOrEmpty(n.secondaryTextClass)||(d+=" "+n.secondaryTextClass);d&&(yt.className=t.writeAttribute(d));u&&(yt["data-partnertag"]=t.writeAttribute("Suggestion.SecondaryText"));pt=Sparkle.copyContext(i,yt);g={};g.Text=t.writeAttribute(n.secondaryText);g.Dir=t.writeAttribute("ltr");tr=Sparkle.resolveView("AutoSuggest:HighlightedText");ir=Sparkle.copyContext(i,g);nr.push(tr.renderView(ir));pt.defaultSegment=nr;rr=Sparkle.resolveView("div").renderView(pt);v.push(rr)}ui.defaultSegment=v;ur=Sparkle.resolveView("div").renderView(ui);a.push(ur);n.removeIcon!=null&&(e={},wt=[],e.className=t.writeAttribute("removeIcon"),e.title=t.writeAttribute(vr.RemoveFromDeviceHistory),e.onClick=function(t){var i=new Sparkle.RenderedView(tt),r=t;wr(n)},u&&(e["data-partnertag"]=t.writeAttribute("Suggestion.RemoveIcon")),bt=Sparkle.copyContext(i,e),kt={},kt.Icon=t.writeAttribute(n.removeIcon),fr=Sparkle.resolveView("AutoSuggest:Icon"),er=Sparkle.copyContext(i,kt),wt.push(fr.renderView(er)),bt.defaultSegment=wt,or=Sparkle.resolveView("span").renderView(bt),a.push(or));ri.defaultSegment=a;sr=Sparkle.resolveView("div").renderView(ri);c.push(sr)}else nt={},hr=[],nt.className=t.writeAttribute("answer"),dt=Sparkle.copyContext(i,nt),ni=n.answerHtml,nt.dangerouslySetInnerHTML={__html:t.writeUnencodedContent(ni)},dt.defaultSegment=hr,cr=Sparkle.resolveView("div").renderView(dt),c.push(cr);return it.defaultSegment=c,lr=Sparkle.resolveView("div").renderView(it),gt.push(lr),Sparkle.ReactImpl.returnSingleNode(gt)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"AutoSuggest:WindowsTopResults",getInitialState:function(){var t=this.props||{},i=t.viewData||{},n=t.properties||{},r=i.TestHooksEnabled,u=n.Suggestions,f=n.ContextMenuHandler,e=n.ClickHandler,o=n.RemoveClickHandler;return{}},render:function(){var y=this,n=this.props||{},c=n.viewData||{},t=n.properties||{},u=[],i=n.encoder||Sparkle.defaultEncoder,p=c.TestHooksEnabled,f=t.Suggestions,l=t.ContextMenuHandler,a=t.ClickHandler,v=t.RemoveClickHandler,e=[],o=Sparkle.copyContext(n,{}),s,r,h;for(s in f)r=f[s],typeof r!="function"&&function(t){var r={},u,f;r.Suggestion=i.writeAttribute(t);r.ContextMenuHandler=i.writeAttribute(l);r.ClickHandler=i.writeAttribute(a);r.RemoveClickHandler=i.writeAttribute(v);u=Sparkle.resolveView("AutoSuggest:WindowsSuggestionThreeLines");f=Sparkle.copyContext(n,r);e.push(u.renderView(f))}(r);return o.defaultSegment=e,h=Sparkle.resolveView("div").renderView(o),u.push(h),Sparkle.ReactImpl.returnSingleNode(u)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"AutoSuggest:WindowsGroups",getInitialState:function(){var t=this.props||{},r=t.viewData||{},n=t.properties||{},i={},u=r.TestHooksEnabled,f=n.Groups,e=n.ContextMenuHandler,o=n.ClickHandler,s=n.RemoveClickHandler;return i.previousGroup=null,i},render:function(){var b=this,t=this.props||{},a=t.viewData||{},i=t.properties||{},s=[],n=t.encoder||Sparkle.defaultEncoder,v=a.TestHooksEnabled,h=i.Groups,y=i.ContextMenuHandler,p=i.ClickHandler,w=i.RemoveClickHandler,r=this.state.previousGroup,u={},f=[],e,c,o,l;v&&(u["data-partnertag"]=n.writeAttribute("AutoSuggest.GroupContainer"));u["data-region"]=n.writeAttribute("Groups");e=Sparkle.copyContext(t,u);for(c in h)o=h[c],typeof o!="function"&&function(i){var e,s,o,h,u,c,l;!AutoSuggest.Windows.isJumpListGroup(i.type)&&r&&AutoSuggest.Windows.isJumpListGroup(r.type)&&(e={},s=[],e.className=n.writeAttribute("divider jumpList"),o=Sparkle.copyContext(t,e),o.defaultSegment=s,h=Sparkle.resolveView("hr").renderView(o),f.push(h));u={};u.Group=n.writeAttribute(i);u.ContextMenuHandler=n.writeAttribute(y);u.ClickHandler=n.writeAttribute(p);u.RemoveClickHandler=n.writeAttribute(w);c=Sparkle.resolveView("AutoSuggest:WindowsGroup");l=Sparkle.copyContext(t,u);f.push(c.renderView(l));r=i}(o);return e.defaultSegment=f,l=Sparkle.resolveView("div").renderView(e),s.push(l),Sparkle.ReactImpl.returnSingleNode(s)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"AutoSuggest:HighlightedText",getInitialState:function(){var t=this.props||{},i=t.viewData||{},n=t.properties||{},r=n.Text,u=n.Dir,f=n.Reverse;return{}},render:function(){var v=this,n=this.props||{},y=n.viewData||{},i=n.properties||{},f=[],t=n.encoder||Sparkle.defaultEncoder,e=i.Text,a=i.Dir,o=i.Reverse,s={},h=[],r,c,u,l;s.dir=t.writeAttribute(a);r=Sparkle.copyContext(n,s);for(c in HitHighlightingParser.split(e,o))u=HitHighlightingParser.split(e,o)[c],typeof u!="function"&&function(i){var f={},r=[],u,e;i.highlighted&&(f.className=t.writeAttribute("highlighted"));u=Sparkle.copyContext(n,f);t.writeContent(i.text,r);t.writeContent("‍",r);u.defaultSegment=r;e=Sparkle.resolveView("span").renderView(u);h.push(e)}(u);return r.defaultSegment=h,l=Sparkle.resolveView("span").renderView(r),f.push(l),Sparkle.ReactImpl.returnSingleNode(f)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"AutoSuggest:WindowsPermanentDisambig",getInitialState:function(){var t=this.props||{},i=t.viewData||{},n=t.properties||{},r=i.TestHooksEnabled,u=n.Suggestions,f=n.ContextMenuHandler,e=n.ClickHandler,o=n.RemoveClickHandler;return{}},render:function(){var p=this,t=this.props||{},l=t.viewData||{},i=t.properties||{},o=[],n=t.encoder||Sparkle.defaultEncoder,w=l.TestHooksEnabled,r=i.Suggestions,a=i.ContextMenuHandler,v=i.ClickHandler,y=i.RemoveClickHandler,u={},s=[],f,h,e,c;u.className=n.writeAttribute(r.length>1?"permanentDisambig":"permanentSingle");u["data-region"]=n.writeAttribute("Disambig");f=Sparkle.copyContext(t,u);for(h in r)e=r[h],typeof e!="function"&&function(i){var r={},u,f;r.Suggestion=n.writeAttribute(i);r.ContextMenuHandler=n.writeAttribute(a);r.ClickHandler=n.writeAttribute(v);r.RemoveClickHandler=n.writeAttribute(y);u=Sparkle.resolveView("AutoSuggest:WindowsSuggestionSingleLine");f=Sparkle.copyContext(t,r);s.push(u.renderView(f))}(e);return f.defaultSegment=s,c=Sparkle.resolveView("div").renderView(f),o.push(c),Sparkle.ReactImpl.returnSingleNode(o)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"AutoSuggest:WindowsSuggestionSingleLine",getInitialState:function(){var t=this.props||{},i=t.viewData||{},n=t.properties||{},r=LocStringManager.getLocString({uiCulture:t.uiCulture,name:"CortanaQF",namespace:"AutoSuggest"}),u=i.TestHooksEnabled,f=n.Suggestion,e=n.ContextMenuHandler,o=n.ClickHandler,s=n.RemoveClickHandler;return{}},render:function(){var v=this,i=this.props||{},ii=i.viewData||{},o=i.properties||{},ft=[],n=i.encoder||Sparkle.defaultEncoder,ri=LocStringManager.getLocString({uiCulture:i.uiCulture,name:"CortanaQF",namespace:"AutoSuggest"}),s=ii.TestHooksEnabled,t=o.Suggestion,ui=o.ContextMenuHandler,fi=o.ClickHandler,ei=o.RemoveClickHandler,p,w,et,ot,b,h,d,lt,at,vt,g,nt,tt,yt,e,pt,wt,bt,f,it,rt,ut,kt,dt,gt,ni,ti;if(!t.suppressed){var r={},y=[],u="";u+="suggestion";t.selected&&(u+=" sa_hv");!t.click||(u+=" selectable");AutoSuggest.Windows.isWebSuggestion(t)&&(u+=" webSuggestion");u&&(r.className=n.writeAttribute(u));r.onContextMenu=function(n){var i=new Sparkle.RenderedView(v),r=n;ui(t,event)};r.onClick=function(n){var i=new Sparkle.RenderedView(v),r=n;fi(t)};r.id=n.writeAttribute(t.id);s&&(r["data-partnertag"]=n.writeAttribute("AutoSuggest.RegularSuggestion"));r.role=n.writeAttribute("listitem");r["aria-selected"]=n.writeAttribute(t.selected?"true":"false");t.narratorText&&(r["aria-label"]=n.writeAttribute(t.narratorText));s&&(r["data-stype"]=n.writeAttribute(t.type));r["data-h"]=n.writeAttribute(t.instItem.getHValue());r["data-clicks"]=n.writeAttribute("true");r.title=n.writeAttribute(t.tooltip);p=Sparkle.copyContext(i,r);w={};w.Icon=n.writeAttribute(t.icon);et=Sparkle.resolveView("AutoSuggest:Icon");ot=Sparkle.copyContext(i,w);y.push(et.renderView(ot));b={};h=[];b.className=n.writeAttribute("details");var st=Sparkle.copyContext(i,b),k={},c=[],l="";if(l+="primaryText",string.IsNullOrEmpty(t.primaryTextClass)||(l+=" "+t.primaryTextClass),l&&(k.className=n.writeAttribute(l)),s&&(k["data-partnertag"]=n.writeAttribute("Suggestion.PrimaryText")),d=Sparkle.copyContext(i,k),t.additionalInfoText){var ht=[],ct=Sparkle.copyContext(i,{}),a={};a.Text=n.writeAttribute(t.text);a.Dir=n.writeAttribute("ltr");a.Reverse=n.writeAttribute(AutoSuggest.Windows.hasReverseHighlighting(t));lt=Sparkle.resolveView("AutoSuggest:HighlightedText");at=Sparkle.copyContext(i,a);ht.push(lt.renderView(at));ct.defaultSegment=ht;vt=Sparkle.resolveView("span").renderView(ct);c.push(vt);g={};nt=[];g.className=n.writeAttribute("additionalInfoText annotation");tt=Sparkle.copyContext(i,g);n.writeContent(t.additionalInfoText,nt);tt.defaultSegment=nt;yt=Sparkle.resolveView("span").renderView(tt);c.push(yt)}else e={},e.Text=n.writeAttribute(t.text),e.Dir=n.writeAttribute("ltr"),e.Reverse=n.writeAttribute(AutoSuggest.Windows.hasReverseHighlighting(t)),pt=Sparkle.resolveView("AutoSuggest:HighlightedText"),wt=Sparkle.copyContext(i,e),c.push(pt.renderView(wt));d.defaultSegment=c;bt=Sparkle.resolveView("div").renderView(d);h.push(bt);t.removeIcon!=null&&(f={},it=[],f.className=n.writeAttribute("removeIcon"),f.title=n.writeAttribute(ri.RemoveFromDeviceHistory),f.onClick=function(n){var i=new Sparkle.RenderedView(v),r=n;ei(t)},s&&(f["data-partnertag"]=n.writeAttribute("Suggestion.RemoveIcon")),rt=Sparkle.copyContext(i,f),ut={},ut.Icon=n.writeAttribute(t.removeIcon),kt=Sparkle.resolveView("AutoSuggest:Icon"),dt=Sparkle.copyContext(i,ut),it.push(kt.renderView(dt)),rt.defaultSegment=it,gt=Sparkle.resolveView("span").renderView(rt),h.push(gt));st.defaultSegment=h;ni=Sparkle.resolveView("div").renderView(st);y.push(ni);p.defaultSegment=y;ti=Sparkle.resolveView("div").renderView(p);ft.push(ti)}return Sparkle.ReactImpl.returnSingleNode(ft)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"AutoSuggest:WindowsSuggestionThreeLines",getInitialState:function(){var t=this.props||{},u=t.viewData||{},n=t.properties||{},i={},e=LocStringManager.getLocString({uiCulture:t.uiCulture,name:"CortanaQF",namespace:"AutoSuggest"}),o=u.TestHooksEnabled,s=n.Suggestion,h=n.ContextMenuHandler,c=n.ClickHandler,l=n.RemoveClickHandler,f=string.Empty,r;return i.answer=f,r=string.Empty,i.stars=r,i},render:function(){var w=this,i=this.props||{},nr=i.viewData||{},s=i.properties||{},pt=[],t=i.encoder||Sparkle.defaultEncoder,tr=LocStringManager.getLocString({uiCulture:i.uiCulture,name:"CortanaQF",namespace:"AutoSuggest"}),f=nr.TestHooksEnabled,n=s.Suggestion,ir=s.ContextMenuHandler,rr=s.ClickHandler,ur=s.RemoveClickHandler,wt=this.state.answer,bt=this.state.stars,r={},h=[],u="",b,k,kt,dt,d,c,nt,a,ii,ri,ui,v,tt,it,fi,rt,ut,ft,ei,et,ot,st,hi,ci,ct,ai,vi,o,lt,at,vt,yi,pi,wi,bi,p,ki,yt,di,gi;if(u+="suggestion cf",n.selected&&(u+=" sa_hv"),n.hasJumpListDisplayed&&(u+=" jumpList"),!n.click||(u+=" selectable"),AutoSuggest.Windows.isWebSuggestion(n)&&(u+=" webSuggestion"),u&&(r.className=t.writeAttribute(u)),r.onContextMenu=function(t){var i=new Sparkle.RenderedView(w),r=t;ir(n,event)},r.onClick=function(t){var i=new Sparkle.RenderedView(w),r=t;n.click&&rr(n)},r.id=t.writeAttribute(n.id),f&&(r["data-partnertag"]=t.writeAttribute("AutoSuggest.RegularSuggestion")),r.role=t.writeAttribute("listitem"),r["aria-selected"]=t.writeAttribute(n.selected?"true":"false"),n.narratorText&&(r["aria-label"]=t.writeAttribute(n.narratorText)),f&&(r["data-stype"]=t.writeAttribute(n.type)),n.click&&(r["data-h"]=t.writeAttribute(n.instItem.getHValue())),n.click&&(r["data-clicks"]=t.writeAttribute("true")),r.title=t.writeAttribute(n.tooltip),b=Sparkle.copyContext(i,r),string.IsNullOrEmpty(n.answerHtml)){k={};k.Icon=t.writeAttribute(n.icon);kt=Sparkle.resolveView("AutoSuggest:Icon");dt=Sparkle.copyContext(i,k);h.push(kt.renderView(dt));d={};c=[];d.className=t.writeAttribute("details");var gt=Sparkle.copyContext(i,d),e=[],ni=Sparkle.copyContext(i,{}),g={},ti=[],l="";if(l+="primaryText",string.IsNullOrEmpty(n.primaryTextClass)||(l+=" "+n.primaryTextClass),l&&(g.className=t.writeAttribute(l)),f&&(g["data-partnertag"]=t.writeAttribute("Suggestion.PrimaryText")),nt=Sparkle.copyContext(i,g),a={},a.Text=t.writeAttribute(n.text),a.Dir=t.writeAttribute("ltr"),ii=Sparkle.resolveView("AutoSuggest:HighlightedText"),ri=Sparkle.copyContext(i,a),ti.push(ii.renderView(ri)),nt.defaultSegment=ti,ui=Sparkle.resolveView("div").renderView(nt),e.push(ui),string.IsNullOrEmpty(n.additionalInfoTextForTopResult)||(v={},tt=[],v.className=t.writeAttribute("secondaryText annotation"),f&&(v["data-partnertag"]=t.writeAttribute("Suggestion.AdditionalInfoText")),it=Sparkle.copyContext(i,v),t.writeContent(n.additionalInfoTextForTopResult,tt),it.defaultSegment=tt,fi=Sparkle.resolveView("div").renderView(it),e.push(fi)),typeof n.stars!="undefined"){rt={};ut=[];rt.className=t.writeAttribute("secondaryText starBg iconContent");ft=Sparkle.copyContext(i,rt);t.writeContent("",ut);ft.defaultSegment=ut;ei=Sparkle.resolveView("div").renderView(ft);e.push(ei);et={};ot=[];et.className=t.writeAttribute("secondaryText star iconContent");st=Sparkle.copyContext(i,et);bt=n.stars;var oi={},si=Sparkle.copyContext(i,oi);oi.dangerouslySetInnerHTML={__html:t.writeUnencodedContent(bt)};si.defaultSegment=[];hi=Sparkle.resolveView("span").renderView(si);ot.push(hi);st.defaultSegment=ot;ci=Sparkle.resolveView("div").renderView(st);e.push(ci)}if(!string.IsNullOrEmpty(n.secondaryText)){var ht={},li=[],y="";y+="secondaryText";string.IsNullOrEmpty(n.secondaryTextClass)||(y+=" "+n.secondaryTextClass);y&&(ht.className=t.writeAttribute(y));f&&(ht["data-partnertag"]=t.writeAttribute("Suggestion.SecondaryText"));ct=Sparkle.copyContext(i,ht);t.writeContent(n.secondaryText,li);ct.defaultSegment=li;ai=Sparkle.resolveView("div").renderView(ct);e.push(ai)}ni.defaultSegment=e;vi=Sparkle.resolveView("div").renderView(ni);c.push(vi);n.removeIcon!=null&&(o={},lt=[],o.className=t.writeAttribute("removeIcon"),o.title=t.writeAttribute(tr.RemoveFromDeviceHistory),o.onClick=function(t){var i=new Sparkle.RenderedView(w),r=t;ur(n)},f&&(o["data-partnertag"]=t.writeAttribute("Suggestion.RemoveIcon")),at=Sparkle.copyContext(i,o),vt={},vt.Icon=t.writeAttribute(n.removeIcon),yi=Sparkle.resolveView("AutoSuggest:Icon"),pi=Sparkle.copyContext(i,vt),lt.push(yi.renderView(pi)),at.defaultSegment=lt,wi=Sparkle.resolveView("span").renderView(at),c.push(wi));gt.defaultSegment=c;bi=Sparkle.resolveView("div").renderView(gt);h.push(bi)}else p={},ki=[],p.className=t.writeAttribute("answer"),yt=Sparkle.copyContext(i,p),wt=n.answerHtml,p.dangerouslySetInnerHTML={__html:t.writeUnencodedContent(wt)},yt.defaultSegment=ki,di=Sparkle.resolveView("div").renderView(yt),h.push(di);return b.defaultSegment=h,gi=Sparkle.resolveView("div").renderView(b),pt.push(gi),Sparkle.ReactImpl.returnSingleNode(pt)}};Sparkle.ReactImpl.registerView(n)}()