(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||{},s=[],t=n.encoder||Sparkle.defaultEncoder,k=this.state.opacity,h={},i=[],r,c,l,u,a,f,v,y,e,o;h.viewBox=t.writeAttribute("0 0 36 36");var p=Sparkle.copyContext(n,h),w={},b=[];return w.style=t.writeAttribute(k),e=Sparkle.copyContext(n,w),o={},o.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,o),r.defaultSegment=[],c=Sparkle.resolveView("path").renderView(r),b.push(c),e.defaultSegment=b,l=Sparkle.resolveView("g").renderView(e),i.push(l),u={},a=[],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=a,v=Sparkle.resolveView("path").renderView(f),i.push(v),p.defaultSegment=i,y=Sparkle.resolveView("svg").renderView(p),s.push(y),Sparkle.ReactImpl.returnSingleNode(s)}};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||{},et=t.viewData||{},y=t.properties||{},p=[],i=t.encoder||Sparkle.defaultEncoder,ot=et.TestHooksEnabled,n=y.Icon,e=y.useRoundIcon,c,o,f,u,l,s,w,b,a,k,d,g,ut,ft,h,r;(e===undefined||e===null)&&(e=!1);var nt=this.state.fontIcon,tt=this.state.bgColor,it=this.state.stretchClass,v={},rt=[];return(ot&&(v["data-partnertag"]=i.writeAttribute("Suggestion.Icon")),v.className=i.writeAttribute("iconContainer"),c=Sparkle.copyContext(t,v),tt=n&&n.bgColor?{backgroundColor:n.bgColor}:{},n&&n.ratio>0&&(it=n.ratio==2?"wide":"tall"),o={},f=[],o.style=i.writeAttribute(tt),u="",u+="icon",n&&n.bgColor&&(u+=" iconWithBackground"),n&&n.type==5&&(u+=" roundIcon"),u+=" "+it,u&&(o.className=i.writeAttribute(u)),l=Sparkle.copyContext(t,o),n)&&(n.type==4?(ut=Sparkle.resolveView("AutoSuggest:CortanaIcon"),ft=Sparkle.copyContext(t,{}),f.push(ut.renderView(ft))):n.content&&(n.type==0||n.type==5?(s={},s.src=i.writeAttribute(n.content),s.role=i.writeAttribute("presentation"),w=Sparkle.resolveView("img"),b=Sparkle.copyContext(t,s),f.push(w.renderView(b))):(h={},r="",r+="iconContent",n.needsAccentColor&&(r+=" accentColor"),e&&(r+=" roundIcon"),n.type==3&&(r+=" bingFontIcon"),n.type==2&&(r+=" cortanaFontIcon"),r&&(h.className=i.writeAttribute(r)),a=Sparkle.copyContext(t,h),nt=n.content,h.dangerouslySetInnerHTML={__html:i.writeUnencodedContent(nt)},a.defaultSegment=[],k=Sparkle.resolveView("span").renderView(a),f.push(k)))),l.defaultSegment=f,d=Sparkle.resolveView("div").renderView(l),rt.push(d),c.defaultSegment=rt,g=Sparkle.resolveView("div").renderView(c),p.push(g),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={},c=[],f,l,a,o,u;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);o=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);c.push(l);o.defaultSegment=c;a=Sparkle.resolveView("li").renderView(o);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,a,v,y,s,h,l,p,w;r.className=t.writeAttribute("peekAction");r.onClick=function(n){var t=new Sparkle.RenderedView(c),r=n;i.action()};var b=Sparkle.copyContext(n,r),k={},d=[];k.className=t.writeAttribute("iconWrapper");f=Sparkle.copyContext(n,k);e={};e.Icon=t.writeAttribute(i.icon);a=Sparkle.resolveView("AutoSuggest:Icon");v=Sparkle.copyContext(n,e);d.push(a.renderView(v));f.defaultSegment=d;y=Sparkle.resolveView("div").renderView(f);u.push(y);s={};h=[];s.className=t.writeAttribute("text");l=Sparkle.copyContext(n,s);t.writeContent(i.text,h);l.defaultSegment=h;p=Sparkle.resolveView("div").renderView(l);u.push(p);b.defaultSegment=u;w=Sparkle.resolveView("a").renderView(b);o.push(w)}(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 y=this,t=this.props||{},at=t.viewData||{},u=t.properties||{},p=[],n=t.encoder||Sparkle.defaultEncoder,w=LocStringManager.getLocString({uiCulture:t.uiCulture,name:"CortanaQF",namespace:"AutoSuggest"}),yt=at.TestHooksEnabled,b=u.Id,vt=u.NarratorText,k=u.IsToggled,d=u.ToggleHandler,g=this.state.labelId,nt={},tt=[],o,it,f,e,s,rt,h,c,l,ut,ft,et,ot,v,r;nt.className=n.writeAttribute("toggleSwitch");var st=Sparkle.copyContext(t,nt),i={},a=[];i.href=n.writeAttribute("#");i["aria-label"]=n.writeAttribute(vt);i.role=n.writeAttribute("checkbox");i["aria-checked"]=n.writeAttribute(k);i.onClick=function(n){var t=new Sparkle.RenderedView(y),i=n;_ge(g).click()};i.className=n.writeAttribute("focusable");v=Sparkle.copyContext(t,i);r={};r.id=n.writeAttribute(b);r.type=n.writeAttribute("checkbox");k&&(r.checked=n.writeAttribute("checked"));r.onChange=function(n){var t=new Sparkle.RenderedView(y),i=n;d&&d(event)};o=Sparkle.copyContext(t,r);o.defaultSegment=[];it=Sparkle.resolveView("input").renderView(o);a.push(it);f={};e=[];f.id=n.writeAttribute(g);f.htmlFor=n.writeAttribute(b);var ht=Sparkle.copyContext(t,f),ct={},lt=[];return ct.className=n.writeAttribute("off"),s=Sparkle.copyContext(t,ct),n.writeContent(w.ToggleSwitchOff,lt),s.defaultSegment=lt,rt=Sparkle.resolveView("span").renderView(s),e.push(rt),h={},c=[],h.className=n.writeAttribute("on"),l=Sparkle.copyContext(t,h),n.writeContent(w.ToggleSwitchOn,c),l.defaultSegment=c,ut=Sparkle.resolveView("span").renderView(l),e.push(ut),ht.defaultSegment=e,ft=Sparkle.resolveView("label").renderView(ht),a.push(ft),v.defaultSegment=a,et=Sparkle.resolveView("a").renderView(v),tt.push(et),st.defaultSegment=tt,ot=Sparkle.resolveView("div").renderView(st),p.push(ot),Sparkle.ReactImpl.returnSingleNode(p)}};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 ht=this,t=this.props||{},hi=t.viewData||{},i=t.properties||{},ct=[],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,lt=i.CarouselButtons,yi=i.ClickHandler,e=i.Message,vi=i.MessageIcon,at,v,y,o,p,f,w,b,vt,k,yt,pt,d,g,nt,wt,bt,kt,s,tt,it,rt,h,ut,ft,dt,gt,r,et,ot,ni,ti,ii,ri,u,st;if(ai){u=[];st=Sparkle.copyContext(t,{});for(at in lt)v=lt[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(ht),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 ui=Sparkle.copyContext(t,y),fi={},ei=[];if(fi.className=n.writeAttribute("searchScopesBar"),p=Sparkle.copyContext(t,fi),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(vt in a)k=a[vt],typeof k!="function"&&function(i){var r={},c=[],u,f,e,l,a,v,y,p,s,h;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(ht),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 b=Sparkle.copyContext(t,r),k={},o=[];k.role=n.writeAttribute("presentation");f=Sparkle.copyContext(t,k);e={};e.Icon=n.writeAttribute(i.icon);l=Sparkle.resolveView("AutoSuggest:Icon");a=Sparkle.copyContext(t,e);o.push(l.renderView(a));s=[];h=Sparkle.copyContext(t,{});n.writeContent(i.text,s);h.defaultSegment=s;v=Sparkle.resolveView("div").renderView(h);o.push(v);f.defaultSegment=o;y=Sparkle.resolveView("li").renderView(f);c.push(y);b.defaultSegment=c;p=Sparkle.resolveView("a").renderView(b);w.push(p)}(k);b.defaultSegment=w;yt=Sparkle.resolveView("ul").renderView(b);ei.push(yt)}if(p.defaultSegment=ei,pt=Sparkle.resolveView("div").renderView(p),o.push(pt),l){d={};g=[];d.className=n.writeAttribute("groupHeader");var oi=Sparkle.copyContext(t,d),c={},si=[];c.className=n.writeAttribute("groupTitle");c["aria-label"]=n.writeAttribute(l);c.role=n.writeAttribute("heading");nt=Sparkle.copyContext(t,c);n.writeContent(l,si);nt.defaultSegment=si;wt=Sparkle.resolveView("span").renderView(nt);g.push(wt);oi.defaultSegment=g;bt=Sparkle.resolveView("div").renderView(oi);o.push(bt)}ui.defaultSegment=o;kt=Sparkle.resolveView("div").renderView(ui);u.push(kt);s={};tt=[];e||(s.className=n.writeAttribute("b_hide"));s["aria-live"]=n.writeAttribute("assertive");it=Sparkle.copyContext(t,s);e&&(rt={},h=[],rt.className=n.writeAttribute("scopeMessage"),ut=Sparkle.copyContext(t,rt),ft={},ft.Icon=n.writeAttribute(vi),dt=Sparkle.resolveView("AutoSuggest:Icon"),gt=Sparkle.copyContext(t,ft),h.push(dt.renderView(gt)),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,ni=Sparkle.resolveView("div").renderView(ot),h.push(ni),ut.defaultSegment=h,ti=Sparkle.resolveView("div").renderView(ut),tt.push(ti));it.defaultSegment=tt;ii=Sparkle.resolveView("div").renderView(it);u.push(ii);st.defaultSegment=u;ri=Sparkle.resolveView("div").renderView(st);ct.push(ri)}return Sparkle.ReactImpl.returnSingleNode(ct)}};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=[],a,f,nt,tt,it,v,y,p,s,rt,ut,ft,w,et,ot,st;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 ht=Sparkle.copyContext(i,r),ct={},h=[];ct.className=n.writeAttribute("details upSellDetails");var lt=Sparkle.copyContext(i,ct),b={},at=[],c="";c+="primaryText";string.IsNullOrEmpty(t.primaryTextClass)||(c+=" "+t.primaryTextClass);c&&(b.className=n.writeAttribute(c));l&&(b["data-partnertag"]=n.writeAttribute("Suggestion.PrimaryText"));a=Sparkle.copyContext(i,b);f={};f.Text=n.writeAttribute(t.text);f.Dir=n.writeAttribute("ltr");f.Reverse=n.writeAttribute(AutoSuggest.Windows.hasReverseHighlighting(t));nt=Sparkle.resolveView("AutoSuggest:HighlightedText");tt=Sparkle.copyContext(i,f);at.push(nt.renderView(tt));a.defaultSegment=at;it=Sparkle.resolveView("div").renderView(a);h.push(it);v={};y=[];v.className=n.writeAttribute("connectAccountLogo");p=Sparkle.copyContext(i,v);s={};s.src=n.writeAttribute(t.icon.content);s.role=n.writeAttribute("presentation");rt=Sparkle.resolveView("img");ut=Sparkle.copyContext(i,s);y.push(rt.renderView(ut));p.defaultSegment=y;ft=Sparkle.resolveView("div").renderView(p);h.push(ft);var u={},vt=[],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"),w=Sparkle.copyContext(i,u),n.writeContent(t.secondaryText,vt),w.defaultSegment=vt,et=Sparkle.resolveView("div").renderView(w),h.push(et),lt.defaultSegment=h,ot=Sparkle.resolveView("div").renderView(lt),g.push(ot),ht.defaultSegment=g,st=Sparkle.resolveView("div").renderView(ht),d.push(st),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="",v,nt,y,tt,p,it,rt,w,u,b,ut,k,ft,et;s+="group";string.IsNullOrEmpty(t.cssClasses)||(s+=" "+t.cssClasses);s&&(l.className=n.writeAttribute(s));l["data-region"]=n.writeAttribute(t.instRegionName);var ot=Sparkle.copyContext(i,l),r={},d=[],f="";f+="groupHeader";t.click&&(f+=" selectable");t.selected&&(f+=" sa_hv");f&&(r.className=n.writeAttribute(f));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 st=Sparkle.copyContext(i,r),ht={},ct=[];ht.className=n.writeAttribute("groupTitle");v=Sparkle.copyContext(i,ht);n.writeContent(t.title,ct);v.defaultSegment=ct;nt=Sparkle.resolveView("span").renderView(v);d.push(nt);t.click&&(y={},tt=[],y.className=n.writeAttribute("groupAnnotations"),p=Sparkle.copyContext(i,y),p.defaultSegment=tt,it=Sparkle.resolveView("span").renderView(p),d.push(it));st.defaultSegment=d;rt=Sparkle.resolveView("div").renderView(st);a.push(rt);w={};u=[];w.className=n.writeAttribute("suggsList");b=Sparkle.copyContext(i,w);for(ut in t.suggestions)k=t.suggestions[ut],typeof k!="function"&&function(t){var r,s,l,f,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),u.push(s.renderView(l))):t.template==1?(f={},f.Suggestion=n.writeAttribute(t),f.ContextMenuHandler=n.writeAttribute(h),f.ClickHandler=n.writeAttribute(o),f.RemoveClickHandler=n.writeAttribute(c),a=Sparkle.resolveView("AutoSuggest:WindowsSuggestionTwoColumn"),v=Sparkle.copyContext(i,f),u.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),u.push(y.renderView(p)))}(k);return b.defaultSegment=u,ft=Sparkle.resolveView("div").renderView(b),a.push(ft),ot.defaultSegment=a,et=Sparkle.resolveView("div").renderView(ot),g.push(et),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="",s,h,g,nt,c,f,l,tt,e,a,v,it,rt,ut,ft;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 et=Sparkle.copyContext(t,r),ot={},y=[];ot.className=n.writeAttribute("message");s=Sparkle.copyContext(t,ot);o!=null&&(h={},h.Icon=n.writeAttribute(o),g=Sparkle.resolveView("AutoSuggest:Icon"),nt=Sparkle.copyContext(t,h),y.push(g.renderView(nt)));c={};f=[];o!=null&&(c.className=n.writeAttribute("details"));var st=Sparkle.copyContext(t,c),ht={},ct=[];return ht.className=n.writeAttribute("primaryText"),l=Sparkle.copyContext(t,ht),n.writeContent(pt,ct),l.defaultSegment=ct,tt=Sparkle.resolveView("div").renderView(l),f.push(tt),k!=null&&(e={},a=[],e.className=n.writeAttribute("primaryText accentColor"),e.onClick=function(n){var t=new Sparkle.RenderedView(lt),i=n;k()},v=Sparkle.copyContext(t,e),n.writeContent(wt,a),v.defaultSegment=a,it=Sparkle.resolveView("div").renderView(v),f.push(it)),st.defaultSegment=f,rt=Sparkle.resolveView("div").renderView(st),y.push(rt),s.defaultSegment=y,ut=Sparkle.resolveView("div").renderView(s),d.push(ut),et.defaultSegment=d,ft=Sparkle.resolveView("div").renderView(et),p.push(ft),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,ut,v,ri,ui,fi,y,ft,et,ei,ot,oi,st,si,ht,hi,ci,ct,p,li,ai,vi,lt,w,yi,pi,wi,bi,e,at,vt,yt,ki,di,gi,nr,b,tr,pt,ir,rr;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 ur=Sparkle.copyContext(i,rt),k=[],fr=Sparkle.copyContext(i,{}),er={},o=[];string.IsNullOrEmpty(n.rightAlignedText)||(er.className=t.writeAttribute("flexParent"));var or=Sparkle.copyContext(i,er),wt={},sr=[],s="";if(s+="primaryText nowrap",string.IsNullOrEmpty(n.primaryTextClass)||(s+=" "+n.primaryTextClass),n.truncateRightColumn||(s+=" truncate"),s&&(wt.className=t.writeAttribute(s)),u&&(wt["data-partnertag"]=t.writeAttribute("Suggestion.PrimaryText")),ut=Sparkle.copyContext(i,wt),v={},v.Text=t.writeAttribute(n.text),v.Dir=t.writeAttribute("ltr"),ri=Sparkle.resolveView("AutoSuggest:HighlightedText"),ui=Sparkle.copyContext(i,v),sr.push(ri.renderView(ui)),ut.defaultSegment=sr,fi=Sparkle.resolveView("div").renderView(ut),o.push(fi),string.IsNullOrEmpty(n.textLabel)||(y={},ft=[],y.className=t.writeAttribute("secondaryText annotation"),u&&(y["data-partnertag"]=t.writeAttribute("Suggestion.textLabel")),et=Sparkle.copyContext(i,y),t.writeContent(n.textLabel,ft),et.defaultSegment=ft,ei=Sparkle.resolveView("div").renderView(et),o.push(ei)),!string.IsNullOrEmpty(n.rightAlignedText)&&string.IsNullOrEmpty(n.textLabel)&&(ot={},oi=[],ot.className=t.writeAttribute("b_flexboxSpacer"),st=Sparkle.copyContext(i,ot),st.defaultSegment=oi,si=Sparkle.resolveView("span").renderView(st),o.push(si)),!string.IsNullOrEmpty(n.rightAlignedText)){var bt={},hr=[],d="";d+="secondaryText annotation";n.truncateRightColumn&&(d+=" truncate");d&&(bt.className=t.writeAttribute(d));u&&(bt["data-partnertag"]=t.writeAttribute("Suggestion.RightAlignedText"));ht=Sparkle.copyContext(i,bt);t.writeContent(n.rightAlignedText,hr);ht.defaultSegment=hr;hi=Sparkle.resolveView("div").renderView(ht);o.push(hi)}if(or.defaultSegment=o,ci=Sparkle.resolveView("div").renderView(or),k.push(ci),!string.IsNullOrEmpty(n.additionalInfoText)){var kt={},cr=[],g="";g+="secondaryText annotation";string.IsNullOrEmpty(n.additionalInfoTextClass)||(g+=" "+n.additionalInfoTextClass);g&&(kt.className=t.writeAttribute(g));u&&(kt["data-partnertag"]=t.writeAttribute("Suggestion.AdditionalInfoText"));ct=Sparkle.copyContext(i,kt);p={};p.Text=t.writeAttribute(n.additionalInfoText);p.Dir=t.writeAttribute("ltr");li=Sparkle.resolveView("AutoSuggest:HighlightedText");ai=Sparkle.copyContext(i,p);cr.push(li.renderView(ai));ct.defaultSegment=cr;vi=Sparkle.resolveView("div").renderView(ct);k.push(vi)}if(!string.IsNullOrEmpty(n.secondaryText)){var dt={},lr=[],nt="";nt+="secondaryText";string.IsNullOrEmpty(n.secondaryTextClass)||(nt+=" "+n.secondaryTextClass);nt&&(dt.className=t.writeAttribute(nt));u&&(dt["data-partnertag"]=t.writeAttribute("Suggestion.SecondaryText"));lt=Sparkle.copyContext(i,dt);w={};w.Text=t.writeAttribute(n.secondaryText);w.Dir=t.writeAttribute("ltr");yi=Sparkle.resolveView("AutoSuggest:HighlightedText");pi=Sparkle.copyContext(i,w);lr.push(yi.renderView(pi));lt.defaultSegment=lr;wi=Sparkle.resolveView("div").renderView(lt);k.push(wi)}fr.defaultSegment=k;bi=Sparkle.resolveView("div").renderView(fr);a.push(bi);n.removeIcon!=null&&(e={},at=[],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")),vt=Sparkle.copyContext(i,e),yt={},yt.Icon=t.writeAttribute(n.removeIcon),ki=Sparkle.resolveView("AutoSuggest:Icon"),di=Sparkle.copyContext(i,yt),at.push(ki.renderView(di)),vt.defaultSegment=at,gi=Sparkle.resolveView("span").renderView(vt),a.push(gi));ur.defaultSegment=a;nr=Sparkle.resolveView("div").renderView(ur);c.push(nr)}else b={},tr=[],b.className=t.writeAttribute("answer"),pt=Sparkle.copyContext(i,b),ni=n.answerHtml,b.dangerouslySetInnerHTML={__html:t.writeUnencodedContent(ni)},pt.defaultSegment=tr,ir=Sparkle.resolveView("div").renderView(pt),c.push(ir);return it.defaultSegment=c,rr=Sparkle.resolveView("div").renderView(it),gt.push(rr),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,y,p,et,ot,w,h,b,st,ht,ct,k,d,g,lt,e,at,vt,yt,u,nt,tt,it,pt,wt,bt,kt,dt;if(!t.suppressed){var r={},rt=[],f="";f+="suggestion";t.selected&&(f+=" sa_hv");t.click&&(f+=" selectable");AutoSuggest.Windows.isWebSuggestion(t)&&(f+=" webSuggestion");f&&(r.className=n.writeAttribute(f));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);y=Sparkle.copyContext(i,r);p={};p.Icon=n.writeAttribute(t.icon);et=Sparkle.resolveView("AutoSuggest:Icon");ot=Sparkle.copyContext(i,p);rt.push(et.renderView(ot));w={};h=[];w.className=n.writeAttribute("details");var gt=Sparkle.copyContext(i,w),ut={},c=[],l="";if(l+="primaryText",string.IsNullOrEmpty(t.primaryTextClass)||(l+=" "+t.primaryTextClass),l&&(ut.className=n.writeAttribute(l)),s&&(ut["data-partnertag"]=n.writeAttribute("Suggestion.PrimaryText")),b=Sparkle.copyContext(i,ut),t.additionalInfoText){var ni=[],ti=Sparkle.copyContext(i,{}),a={};a.Text=n.writeAttribute(t.text);a.Dir=n.writeAttribute("ltr");a.Reverse=n.writeAttribute(AutoSuggest.Windows.hasReverseHighlighting(t));st=Sparkle.resolveView("AutoSuggest:HighlightedText");ht=Sparkle.copyContext(i,a);ni.push(st.renderView(ht));ti.defaultSegment=ni;ct=Sparkle.resolveView("span").renderView(ti);c.push(ct);k={};d=[];k.className=n.writeAttribute("additionalInfoText annotation");g=Sparkle.copyContext(i,k);n.writeContent(t.additionalInfoText,d);g.defaultSegment=d;lt=Sparkle.resolveView("span").renderView(g);c.push(lt)}else e={},e.Text=n.writeAttribute(t.text),e.Dir=n.writeAttribute("ltr"),e.Reverse=n.writeAttribute(AutoSuggest.Windows.hasReverseHighlighting(t)),at=Sparkle.resolveView("AutoSuggest:HighlightedText"),vt=Sparkle.copyContext(i,e),c.push(at.renderView(vt));b.defaultSegment=c;yt=Sparkle.resolveView("div").renderView(b);h.push(yt);t.removeIcon!=null&&(u={},nt=[],u.className=n.writeAttribute("removeIcon"),u.title=n.writeAttribute(ri.RemoveFromDeviceHistory),u.onClick=function(n){var i=new Sparkle.RenderedView(v),r=n;ei(t)},s&&(u["data-partnertag"]=n.writeAttribute("Suggestion.RemoveIcon")),tt=Sparkle.copyContext(i,u),it={},it.Icon=n.writeAttribute(t.removeIcon),pt=Sparkle.resolveView("AutoSuggest:Icon"),wt=Sparkle.copyContext(i,it),nt.push(pt.renderView(wt)),tt.defaultSegment=nt,bt=Sparkle.resolveView("span").renderView(tt),h.push(bt));gt.defaultSegment=h;kt=Sparkle.resolveView("div").renderView(gt);rt.push(kt);y.defaultSegment=rt;dt=Sparkle.resolveView("div").renderView(y);ft.push(dt)}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||{},bt=[],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,kt=this.state.answer,dt=this.state.stars,r={},h=[],u="",b,k,gt,ni,d,c,g,l,ti,ii,ri,a,nt,tt,ui,it,rt,ut,fi,ft,et,ot,ei,oi,st,si,hi,e,ht,ct,lt,ci,li,ai,vi,v,yi,at,pi,wi,yt,pt;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);gt=Sparkle.resolveView("AutoSuggest:Icon");ni=Sparkle.copyContext(i,k);h.push(gt.renderView(ni));d={};c=[];d.className=t.writeAttribute("details");var bi=Sparkle.copyContext(i,d),o=[],ki=Sparkle.copyContext(i,{}),vt={},di=[],y="";if((y+="primaryText",string.IsNullOrEmpty(n.primaryTextClass)||(y+=" "+n.primaryTextClass),y&&(vt.className=t.writeAttribute(y)),f&&(vt["data-partnertag"]=t.writeAttribute("Suggestion.PrimaryText")),g=Sparkle.copyContext(i,vt),l={},l.Text=t.writeAttribute(n.text),l.Dir=t.writeAttribute("ltr"),ti=Sparkle.resolveView("AutoSuggest:HighlightedText"),ii=Sparkle.copyContext(i,l),di.push(ti.renderView(ii)),g.defaultSegment=di,ri=Sparkle.resolveView("div").renderView(g),o.push(ri),string.IsNullOrEmpty(n.additionalInfoTextForTopResult)||(a={},nt=[],a.className=t.writeAttribute("secondaryText annotation"),f&&(a["data-partnertag"]=t.writeAttribute("Suggestion.AdditionalInfoText")),tt=Sparkle.copyContext(i,a),t.writeContent(n.additionalInfoTextForTopResult,nt),tt.defaultSegment=nt,ui=Sparkle.resolveView("div").renderView(tt),o.push(ui)),typeof n.stars!="undefined")&&(it={},rt=[],it.className=t.writeAttribute("secondaryText starBg iconContent"),ut=Sparkle.copyContext(i,it),t.writeContent("",rt),ut.defaultSegment=rt,fi=Sparkle.resolveView("div").renderView(ut),o.push(fi),ft={},et=[],ft.className=t.writeAttribute("secondaryText star iconContent"),ot=Sparkle.copyContext(i,ft),dt=n.stars,yt={},pt=Sparkle.copyContext(i,yt),yt.dangerouslySetInnerHTML={__html:t.writeUnencodedContent(dt)},pt.defaultSegment=[],ei=Sparkle.resolveView("span").renderView(pt),et.push(ei),ot.defaultSegment=et,oi=Sparkle.resolveView("div").renderView(ot),o.push(oi)),!string.IsNullOrEmpty(n.secondaryText)){var wt={},gi=[],p="";p+="secondaryText";string.IsNullOrEmpty(n.secondaryTextClass)||(p+=" "+n.secondaryTextClass);p&&(wt.className=t.writeAttribute(p));f&&(wt["data-partnertag"]=t.writeAttribute("Suggestion.SecondaryText"));st=Sparkle.copyContext(i,wt);t.writeContent(n.secondaryText,gi);st.defaultSegment=gi;si=Sparkle.resolveView("div").renderView(st);o.push(si)}ki.defaultSegment=o;hi=Sparkle.resolveView("div").renderView(ki);c.push(hi);n.removeIcon!=null&&(e={},ht=[],e.className=t.writeAttribute("removeIcon"),e.title=t.writeAttribute(tr.RemoveFromDeviceHistory),e.onClick=function(t){var i=new Sparkle.RenderedView(w),r=t;ur(n)},f&&(e["data-partnertag"]=t.writeAttribute("Suggestion.RemoveIcon")),ct=Sparkle.copyContext(i,e),lt={},lt.Icon=t.writeAttribute(n.removeIcon),ci=Sparkle.resolveView("AutoSuggest:Icon"),li=Sparkle.copyContext(i,lt),ht.push(ci.renderView(li)),ct.defaultSegment=ht,ai=Sparkle.resolveView("span").renderView(ct),c.push(ai));bi.defaultSegment=c;vi=Sparkle.resolveView("div").renderView(bi);h.push(vi)}else v={},yi=[],v.className=t.writeAttribute("answer"),at=Sparkle.copyContext(i,v),kt=n.answerHtml,v.dangerouslySetInnerHTML={__html:t.writeUnencodedContent(kt)},at.defaultSegment=yi,pi=Sparkle.resolveView("div").renderView(at),h.push(pi);return b.defaultSegment=h,wi=Sparkle.resolveView("div").renderView(b),bt.push(wi),Sparkle.ReactImpl.returnSingleNode(bt)}};Sparkle.ReactImpl.registerView(n)}()