Sunteți pe pagina 1din 12

(function(){var

n={displayName:"AutoSuggest:AdvancedOptions",getInitialState:function(){var
n=this.props||{},r=n.viewData||{},t=n.properties||
{},i={},e=LocStringManager.getLocString({uiCulture:n.uiCulture,name:"CortanaQF",nam
espace:"AutoSuggest"}),o=r.TestHooksEnabled,s=t.AdvancedOptions,u=t.TabIndex,h=t.Sh
owHeader,f=u;return i.tabIndex=f,i},render:function(){var v=this,t=this.props||
{},it=t.viewData||{},f=t.properties||{},y=[],n=t.encoder||
Sparkle.defaultEncoder,e=LocStringManager.getLocString({uiCulture:t.uiCulture,name:
"CortanaQF",namespace:"AutoSuggest"}),p=it.TestHooksEnabled,i=f.AdvancedOptions,ut=
f.TabIndex,rt=f.ShowHeader,r=this.state.tabIndex,o,u,s,h,c,l,d,g,nt,a,tt;if(i&&i.le
ngth)
{if(o={},u=[],o.className=n.writeAttribute("advancedOptions"),s=Sparkle.copyContext
(t,o),rt){h={};c=[];h.className=n.writeAttribute("groupHeader");var
w=Sparkle.copyContext(t,h),b={},k=[];b.className=n.writeAttribute("groupTitle");l=S
parkle.copyContext(t,b);n.writeContent(e.AdvancedOptions,k);l.defaultSegment=k;d=Sp
arkle.resolveView("span").renderView(l);c.push(d);w.defaultSegment=c;g=Sparkle.reso
lveView("div").renderView(w);u.push(g)}for(nt in i)a=i[nt],typeof a!
="function"&&function(i){var
h,s,c,g,f,nt,l,tt,o,a,y,w,it,rt,ut,ft;r=r+1;h={};s=[];h.className=n.writeAttribute(
"advancedOption");var
b=Sparkle.copyContext(t,h),k={},d=[];k.className=n.writeAttribute("advancedOptionHe
ading");c=Sparkle.copyContext(t,k);n.writeContent(i.heading,d);c.defaultSegment=d;g
=Sparkle.resolveView("div").renderView(c);s.push(g);f={};nt=[];f.type=n.writeAttrib
ute("button");f.className=n.writeAttribute("focusable");p&&(f["data-
partnertag"]=n.writeAttribute("AutoSuggest.ScopesL2.AdvancedOption"));f.tabIndex=n.
writeAttribute(r);f.onClick=function(n){var t=new
Sparkle.RenderedView(v),r=n;i.click()};f["data-
h"]=n.writeAttribute(i.instItem.getHValue());f["data-
clicks"]=n.writeAttribute("true");f.value=n.writeAttribute(i.text);l=Sparkle.copyCo
ntext(t,f);l.defaultSegment=nt;tt=Sparkle.resolveView("input").renderView(l);s.push
(tt);i.dismissIcon!=null&&(o={},a=[],o.href=n.writeAttribute("#"),p&&(o["data-
partnertag"]=n.writeAttribute("AdvancedOption.Dismiss")),o["aria-
label"]=n.writeAttribute(e.DismissUpsell),o.title=n.writeAttribute(e.DismissUpsell)
,o.className=n.writeAttribute("cancelIcon focusable"),o.onClick=function(n){var
t=new
Sparkle.RenderedView(v),r=n;i.dismissAction()},o.tabIndex=n.writeAttribute(r),y=Spa
rkle.copyContext(t,o),w={},w.Icon=n.writeAttribute(i.dismissIcon),it=Sparkle.resolv
eView("AutoSuggest:Icon"),rt=Sparkle.copyContext(t,w),a.push(it.renderView(rt)),y.d
efaultSegment=a,ut=Sparkle.resolveView("a").renderView(y),s.push(ut));b.defaultSegm
ent=s;ft=Sparkle.resolveView("div").renderView(b);u.push(ft)}
(a);s.defaultSegment=u;tt=Sparkle.resolveView("div").renderView(s);y.push(tt)}retur
n Sparkle.ReactImpl.returnSingleNode(y)}};Sparkle.ReactImpl.registerView(n)})
(),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.w
riteAttribute("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").r
enderView(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").r
enderView(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||{},s=i.viewData||{},r=i.properties||
{},n={},h=s.TestHooksEnabled,c=r.Icon,t=r.IsSecondary,u,f,e,o;return(t===undefined|
|t===null)&&(t=!
1),u=string.Empty,n.fontIcon=u,f={},n.bgColor=f,e=string.Empty,n.stretchClass=e,o=t
?"Suggestion.SecondaryIcon":"Suggestion.Icon",n.dataPartnerTag=o,n},render:function
(){var yt=this,t=this.props||{},ht=t.viewData||{},k=t.properties||
{},d=[],i=t.encoder||
Sparkle.defaultEncoder,ct=ht.TestHooksEnabled,n=k.Icon,o=k.IsSecondary,e,v,s,u,r,y,
h,it,rt,w,ut,b,et,ot,st;(o===undefined||o===null)&&(o=!1);var
g=this.state.fontIcon,nt=this.state.bgColor,l=this.state.stretchClass,lt=this.state
.dataPartnerTag,a={},tt=[];if(ct&&(a["data-
partnertag"]=i.writeAttribute(lt)),e="",e+="iconContainer",o&&(e+="
secondaryIcon"),e&&(a.className=i.writeAttribute(e)),v=Sparkle.copyContext(t,a),nt=
n&&n.bgColor?{backgroundColor:n.bgColor}:{},n&&(n.ratio==2?
l="wide":n.ratio==3&&(l="tall")),n)
{if(s={},u=[],s.style=i.writeAttribute(nt),r="",r+="icon",n.bgColor&&(r+="
iconWithBackground"),r+=" "+l,n.className&&n.type!=4&&(r+="
"+n.className),r&&(s.className=i.writeAttribute(r)),y=Sparkle.copyContext(t,s),n.ty
pe==3){var
at=Sparkle.resolveView("AutoSuggest:CortanaIcon"),vt=Sparkle.copyContext(t,
{});u.push(at.renderView(vt))}else
if(n.content)if(n.type==0)h={},h.src=i.writeAttribute(n.content),h.role=i.writeAttr
ibute("presentation"),it=Sparkle.resolveView("img"),rt=Sparkle.copyContext(t,h),u.p
ush(it.renderView(rt));else{var
p={},f="";f+="iconContent";n.needsAccentColor&&(f+=" accentColor");n.type==2&&(f+="
cortanaFontIcon");n.type==5&&(f+="
segoeRegularFont");f&&(p.className=i.writeAttribute(f));w=Sparkle.copyContext(t,p);
g=n.content;p.dangerouslySetInnerHTML={__html:i.writeUnencodedContent(g)};w.default
Segment=[];ut=Sparkle.resolveView("span").renderView(w);u.push(ut)}else
if(n.className){var ft={},c="";c+="iconContent "+n.className;n.type==4&&(c+="
bookmarksFontIcon");c&&(ft.className=i.writeAttribute(c));b=Sparkle.copyContext(t,f
t);b.defaultSegment=[];et=Sparkle.resolveView("span").renderView(b);u.push(et)}y.de
faultSegment=u;ot=Sparkle.resolveView("div").renderView(y);tt.push(ot)}return
v.defaultSegment=tt,st=Sparkle.resolveView("div").renderView(v),d.push(st),Sparkle.
ReactImpl.returnSingleNode(d)}};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",namespac
e:"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.AddingScopeNarratorText,n),t.writeContent(i.AddingScopeNarratorTex
tAll2,n),t.writeContent(i.AdvancedOptions,n),t.writeContent(i.Answers,n),t.writeCon
tent(i.BestMatch,n),t.writeContent(i.BestMatchFor,n),t.writeContent(i.BingSearchAnn
otation,n),t.writeContent(i.Bookmarks,n),t.writeContent(i.Business,n),t.writeConten
t(i.Cancel,n),t.writeContent(i.CloudServices,n),t.writeContent(i.Comma,n),t.writeCo
ntent(i.CommandGroup,n),t.writeContent(i.CommunicationConsentUpsellMessage,n),t.wri
teContent(i.ConnectOffice365Account,n),t.writeContent(i.ControlPanelAnnotation,n),t
.writeContent(i.CortanaAnnotation_Email,n),t.writeContent(i.CortanaGroup,n),t.write
Content(i.DesktopAppAnnotation,n),t.writeContent(i.DirectNavSuggestion,n),t.writeCo
ntent(i.DismissUpsell,n),t.writeContent(i.EdgeHistoryGroup,n),t.writeContent(i.Empt
yScopeMessage,n),t.writeContent(i.EmptyScopeMessageWeb,n),t.writeContent(i.Enable,n
),t.writeContent(i.EnterOnAmbiguousTopHitMessageText,n),t.writeContent(i.GroupHeade
rSecondaryText,n),t.writeContent(i.InfoTextWithSource,n),t.writeContent(i.Installed
,n),t.writeContent(i.JumpListItemUnavailable,n),t.writeContent(i.JumpListItemUnavai
lableDeleteConfirmation,n),t.writeContent(i.LastModifiedAnnotation,n),t.writeConten
t(i.LocalPlacesGroup,n),t.writeContent(i.ManageSearchHistory,n),t.writeContent(i.Mi
crosoftRecommendedBrowser,n),t.writeContent(i.MostRelevantOnThisPC,n),t.writeConten
t(i.NoResults,n),t.writeContent(i.Office365UpsellMessage,n),t.writeContent(i.OneDri
veForBusiness,n),t.writeContent(i.OpenFileLocation,n),t.writeContent(i.OpenFileLoca
tionIn,n),t.writeContent(i.OpenIn,n),t.writeContent(i.Personal,n),t.writeContent(i.
PinnedToStart,n),t.writeContent(i.PinnedToTaskbar,n),t.writeContent(i.PowerBIConten
tPack,n),t.writeContent(i.PowerBIDashboard,n),t.writeContent(i.PowerBIGroup,n),t.wr
iteContent(i.RelatedSuggestionsGroup,n),t.writeContent(i.Remove,n),t.writeContent(i
.RemovedFromDeviceHistory,n),t.writeContent(i.RemovedFromList,n),t.writeContent(i.R
emoveFromDeviceHistory,n),t.writeContent(i.RemoveFromThisList,n),t.writeContent(i.R
emovingScopeNarratorText2,n),t.writeContent(i.ResultsList,n),t.writeContent(i.RunCo
mmandPrompt,n),t.writeContent(i.ScopeAll,n),t.writeContent(i.ScopeApps,n),t.writeCo
ntent(i.ScopeCalendar,n),t.writeContent(i.ScopeDocuments,n),t.writeContent(i.ScopeE
mails,n),t.writeContent(i.ScopeFolders,n),t.writeContent(i.ScopeMusic,n),t.writeCon
tent(i.ScopePeople,n),t.writeContent(i.ScopePhotos,n),t.writeContent(i.ScopesDismis
sFilters,n),t.writeContent(i.ScopeSettings,n),t.writeContent(i.ScopesList,n),t.writ
eContent(i.ScopesListToolTip,n),t.writeContent(i.ScopeVideos,n),t.writeContent(i.Sc
opeWeb,n),t.writeContent(i.SearchForAppsInTheStore,n),t.writeContent(i.SearchForWeb
Images,n),t.writeContent(i.SearchForWebVideos,n),t.writeContent(i.SearchSuggestions
,n),t.writeContent(i.SearchTheWeb,n),t.writeContent(i.SeeAllResults,n),t.writeConte
nt(i.SeeResultsFromOneDrive,n),t.writeContent(i.SendInstantMessage,n),t.writeConten
t(i.SignInToCortana,n),t.writeContent(i.Sign
InToSeeResults,n),t.writeContent(i.StoreGroup,n),t.writeContent(i.SystemSettingsAnn
otation,n),t.writeContent(i.TenantBookmarkAnnotation,n),t.writeContent(i.TenantBook
marksGroup,n),t.writeContent(i.ThisPC,n),t.writeContent(i.TrustedWindowsAppAnnotati
on,n),t.writeContent(i.UninstallationInProgress,n),t.writeContent(i.UninstallConfir
mation,n),t.writeContent(i.UnpinnedFromStart,n),t.writeContent(i.UnpinnedFromTaskba
r,n),t.writeContent(i.VCDExamplesGroup,n),t.writeContent(i.Websites,n),t.writeConte
nt(i.WindowsAppAnnotation,n),t.writeContent(i.WindowsIndexingDisabledAction,n),t.wr
iteContent(i.GroupHeaderAnnotation,n),Sparkle.ReactImpl.returnSingleNode(n)}};Spark
le.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",namespac
e:"AutoSuggest"}),u=i.TestHooksEnabled,f=n.ShowModule,e=n.HeaderText,o=n.Scopes,s=n
.ClickHandler,h=n.MoreClickHandler,c=n.Message,l=n.MessageIcon,a=n.ChevronDownIcon,
v=n.AdvancedOptions;return{}},render:function(){var ni=this,t=this.props||
{},yr=t.viewData||{},i=t.properties||{},ti=[],n=t.encoder||
Sparkle.defaultEncoder,o=LocStringManager.getLocString({uiCulture:t.uiCulture,name:
"CortanaQF",namespace:"AutoSuggest"}),p=yr.TestHooksEnabled,pr=i.ShowModule,w=i.Hea
derText,b=i.Scopes,dr=i.ClickHandler,wr=i.MoreClickHandler,s=i.Message,br=i.Message
Icon,kr=i.ChevronDownIcon,ii=i.AdvancedOptions,d,f,c,g,si,nt,l,tt,rt,vi,ut,ft,et,ot
,yi,pi,wi,bi,ki,di,gi,st,ht,ct,ir,rr,ur,v,lt,at,vt,y,yt,pt,fr,er,u,wt,bt,or,sr,hr,k
t,dt,gt,e,cr,lr,ar,vr;if(pr){var h=[],ri=Sparkle.copyContext(t,
{}),ui={},k=[];ui.className=n.writeAttribute("searchScopes");var
fi=Sparkle.copyContext(t,ui),ei={},oi=[];if(ei.className=n.writeAttribute("scopesLi
stContainer"),d=Sparkle.copyContext(t,ei),b)
{f={};c=[];f.className=n.writeAttribute("scopesList");f["aria-
label"]=n.writeAttribute(o.ScopesList);f.role=n.writeAttribute("listbox");g=Sparkle
.copyContext(t,f);for(si in b)nt=b[si],typeof nt!="function"&&function(i){var
a={},v=[],e,o,w,b,s,h,l,k,d,g;a.role=n.writeAttribute("presentation");var
y=Sparkle.copyContext(t,a),r={},f=[],u="";u+="scopeTile
focusable";i.selected&&(u+="
selectedScope");u&&(r.className=n.writeAttribute(u));p&&(r["data-
partnertag"]=n.writeAttribute("AutoSuggest.ScopesL1.ScopeTile"));r.href=n.writeAttr
ibute("#");r.onClick=function(n){var t=new
Sparkle.RenderedView(ni),r=n;i.click()};r.role=n.writeAttribute("listitem");r["aria
-selected"]=n.writeAttribute(i.selected?"true":"false");r["aria-
label"]=n.writeAttribute(i.narratorText);r.title=n.writeAttribute(i.narratorText);r
.tabIndex=n.writeAttribute(i.tabindex?i.tabindex:-
1);e=Sparkle.copyContext(t,r);o={};o.Icon=n.writeAttribute(i.icon);w=Sparkle.resolv
eView("AutoSuggest:Icon");b=Sparkle.copyContext(t,o);f.push(w.renderView(b));i.text
&&(s={},h=[],s.className=n.writeAttribute("details"),l=Sparkle.copyContext(t,s),n.w
riteContent(i.text,h),l.defaultSegment=h,k=Sparkle.resolveView("div").renderView(l)
,f.push(k));e.defaultSegment=f;d=Sparkle.resolveView("a").renderView(e);v.push(d);y
.defaultSegment=v;g=Sparkle.resolveView("li").renderView(y);c.push(g)}
(nt);l={};tt=[];l.role=n.writeAttribute("presentation");l.className=n.writeAttribut
e("more");var
hi=Sparkle.copyContext(t,l),r={},it=[];r.className=n.writeAttribute("scopeTile
focusable");r.onClick=function(n){var t=new
Sparkle.RenderedView(ni),i=n;wr()};p&&(r["data-
partnertag"]=n.writeAttribute("AutoSuggest.ScopesL1.More"));r.href=n.writeAttribute
("#");r.role=n.writeAttribute("listitem");r["aria-
label"]=n.writeAttribute(o.ScopesList);r.title=n.writeAttribute(o.ScopesListToolTip
);r.tabIndex=n.writeAttribute("-1");var
ci=Sparkle.copyContext(t,r),li={},ai=[];li.className=n.writeAttribute("details");rt
=Sparkle.copyContext(t,li);n.writeContent(o.ScopesList,ai);rt.defaultSegment=ai;vi=
Sparkle.resolveView("div").renderView(rt);it.push(vi);ut={};ft=[];ut.className=n.wr
iteAttribute("chevronDownIcon");et=Sparkle.copyContext(t,ut);ot={};ot.Icon=n.writeA
ttribute(kr);yi=Sparkle.resolveView("AutoSuggest:Icon");pi=Sparkle.copyContext(t,ot
);ft.push(yi.renderView(pi));et.defaultSegment=ft;wi=Sparkle.resolveView("span").re
nderView(et);it.push(wi);ci.defaultSegment=it;bi=Sparkle.resolveView("a").renderVie
w(ci);tt.push(bi);hi.defaultSegment=tt;ki=Sparkle.resolveView("li").renderView(hi);
c.push(ki);g.defaultSegment=c;di=Sparkle.resolveView("ul").renderView(g);oi.push(di
)}if(d.defaultSegment=oi,gi=Sparkle.resolveView("div").renderView(d),k.push(gi),w)
{st={};ht=[];st.className=n.writeAttribute("groupHeader");var
nr=Sparkle.copyContext(t,st),a={},tr=[];a.className=n.writeAttribute("groupTitle");
a["aria-
label"]=n.writeAttribute(w);a.role=n.writeAttribute("heading");ct=Sparkle.copyConte
xt(t,a);n.writeContent(w,tr);ct.defaultSegment=tr;ir=Sparkle.resolveView("span").re
nderView(ct);ht.push(ir);nr.defaultSegment=ht;rr=Sparkle.resolveView("div").renderV
iew(nr);k.push(rr)}fi.defaultSegment=k;ur=Sparkle.resolveView("div").renderView(fi)
;h.push(ur);v={};lt=[];s||(v.className=n.writeAttribute("b_hide"));v["aria-
live"]=n.writeAttribute("assertive");at=Sparkle.copyContext(t,v);!s||
(vt={},y=[],vt.className=n.writeAttribute("scopeMessage"),yt=Sparkle.copyContext(t,
vt),pt={},pt.Icon=n.writeAttribute(br),fr=Sparkle.resolveView("AutoSuggest:Icon"),e
r=Sparkle.copyContext(t,pt),y.push(fr.renderView(er)),u={},wt=[],u.className=n.writ
eAttribute("details"),u["aria-
label"]=n.writeAttribute(s),u.role=n.writeAttribute("heading"),p&&(u["data-
partnertag"]=n.writeAttribute("Message")),bt=Sparkle.copyContext(t,u),n.writeConten
t(s,wt),bt.defaultSegment=wt,or=Sparkle.resolveView("div").renderView(bt),y.push(or
),yt.defaultSegment=y,sr=Sparkle.resolveView("div").renderView(yt),lt.push(sr));at.
defaultSegment=lt;hr=Sparkle.resolveView("div").renderView(at);h.push(hr);ii.length
&&(kt={},dt=[],kt.className=n.writeAttribute("scopeOptions"),gt=Sparkle.copyContext
(t,kt),e={},e.AdvancedOptions=n.writeAttribute(ii),e.TabIndex=n.writeAttribute(1),e
.ShowHeader=n.writeAttribute(!
1),cr=Sparkle.resolveView("AutoSuggest:AdvancedOptions"),lr=Sparkle.copyContext(t,e
),dt.push(cr.renderView(lr)),gt.defaultSegment=dt,ar=Sparkle.resolveView("div").ren
derView(gt),h.push(ar));ri.defaultSegment=h;vr=Sparkle.resolveView("div").renderVie
w(ri);ti.push(vr)}return
Sparkle.ReactImpl.returnSingleNode(ti)}};Sparkle.ReactImpl.registerView(n)}
(),function(){var
n={displayName:"AutoSuggest:WindowsDialogBox",getInitialState:function(){var
t=this.props||{},i=t.viewData||{},n=t.properties||
{},r=i.TestHooksEnabled,u=n.Visible,f=n.MessageText,e=n.Buttons;return{}},render:fu
nction(){var tt=this,t=this.props||{},d=t.viewData||{},r=t.properties||
{},h=[],n=t.encoder||
Sparkle.defaultEncoder,u=d.TestHooksEnabled,g=r.Visible,nt=r.MessageText,c=r.Button
s,i,f,o,p,s,w,b,k;if(g)
{i={};f=[];i.id=n.writeAttribute("dialog_overlay");u&&(i["data-
partnertag"]=n.writeAttribute("DialogBoxOverlay"));var
l=Sparkle.copyContext(t,i),a={},e=[];u&&(a["data-
partnertag"]=n.writeAttribute("DialogBox"));o=Sparkle.copyContext(t,a);n.writeConte
nt(nt,e);var v=[],y=Sparkle.copyContext(t,{});for(p in c)s=c[p],typeof s!
="function"&&function(i){var
r={},f,e;r.type=n.writeAttribute("button");r.value=n.writeAttribute(i.text);r.id=n.
writeAttribute(i.id);r.tabIndex=n.writeAttribute("1");u&&(r["data-
partnertag"]=n.writeAttribute("DialogBoxButton"));f=Sparkle.copyContext(t,r);f.defa
ultSegment=[];e=Sparkle.resolveView("input").renderView(f);v.push(e)}
(s);y.defaultSegment=v;w=Sparkle.resolveView("div").renderView(y);e.push(w);o.defau
ltSegment=e;b=Sparkle.resolveView("div").renderView(o);f.push(b);l.defaultSegment=f
;k=Sparkle.resolveView("div").renderView(l);h.push(k)}return
Sparkle.ReactImpl.returnSingleNode(h)}};Sparkle.ReactImpl.registerView(n)}
(),function(){var
n={displayName:"AutoSuggest:WindowsSearchScopesL2",getInitialState:function(){var
t=this.props||{},r=t.viewData||{},n=t.properties||
{},i={},u=LocStringManager.getLocString({uiCulture:t.uiCulture,name:"CortanaQF",nam
espace:"AutoSuggest"}),f=r.TestHooksEnabled,e=n.Scopes,o=n.CancelIcon,s=n.CancelHan
dler,h=n.AdvancedOptionsBottom,c=n.AdvancedOptionsTop;return
i.tabIndex=1,i},render:function(){var it=this,t=this.props||{},pi=t.viewData||
{},u=t.properties||{},rt=[],n=t.encoder||
Sparkle.defaultEncoder,o=LocStringManager.getLocString({uiCulture:t.uiCulture,name:
"CortanaQF",namespace:"AutoSuggest"}),ut=pi.TestHooksEnabled,s=u.Scopes,wi=u.Cancel
Icon,bi=u.CancelHandler,ki=u.AdvancedOptionsBottom,ft=u.AdvancedOptionsTop,et=this.
state.tabIndex,c,r,a,pt,wt,i,v,y,p,gt,ni,ti,ii,ri,w,b,k,f,ui,fi,ei,d,g,nt,hi,tt,ci,
li,e,ai,vi,yi;if(s&&s.length)
{c={};r=[];c.className=n.writeAttribute("searchScopes");var
ot=Sparkle.copyContext(t,c),st={},l=[];st.className=n.writeAttribute("searchByCat")
;var
ht=Sparkle.copyContext(t,st),ct={},lt=[];ct.className=n.writeAttribute("groupHeader
");var
at=Sparkle.copyContext(t,ct),vt={},yt=[];vt.className=n.writeAttribute("groupTitle"
);a=Sparkle.copyContext(t,vt);n.writeContent(o.ScopesList,yt);a.defaultSegment=yt;p
t=Sparkle.resolveView("span").renderView(a);lt.push(pt);at.defaultSegment=lt;wt=Spa
rkle.resolveView("div").renderView(at);l.push(wt);i={};v=[];i.href=n.writeAttribute
("#");ut&&(i["data-
partnertag"]=n.writeAttribute("AutoSuggest.ScopesL2.Dismiss"));i["aria-
label"]=n.writeAttribute(o.ScopesDismissFilters);i.title=n.writeAttribute(o.ScopesD
ismissFilters);i.className=n.writeAttribute("focusable
filterIcon");i.onClick=function(n){var t=new
Sparkle.RenderedView(it),i=n;bi()};i.tabIndex=n.writeAttribute("1");var
bt=Sparkle.copyContext(t,i),kt={},dt=[];kt.className=n.writeAttribute("chevronDownI
con");y=Sparkle.copyContext(t,kt);p={};p.Icon=n.writeAttribute(wi);gt=Sparkle.resol
veView("AutoSuggest:Icon");ni=Sparkle.copyContext(t,p);dt.push(gt.renderView(ni));y
.defaultSegment=dt;ti=Sparkle.resolveView("span").renderView(y);v.push(ti);bt.defau
ltSegment=v;ii=Sparkle.resolveView("a").renderView(bt);l.push(ii);ht.defaultSeg
ment=l;ri=Sparkle.resolveView("div").renderView(ht);r.push(ri);ft.length&&(w={},b=[
],w.className=n.writeAttribute("topOptions"),k=Sparkle.copyContext(t,w),f={},f.Adva
ncedOptions=n.writeAttribute(ft),f.TabIndex=n.writeAttribute(et),f.ShowHeader=n.wri
teAttribute(!
1),ui=Sparkle.resolveView("AutoSuggest:AdvancedOptions"),fi=Sparkle.copyContext(t,f
),b.push(ui.renderView(fi)),k.defaultSegment=b,ei=Sparkle.resolveView("div").render
View(k),r.push(ei));d={};g=[];d.className=n.writeAttribute("scopesListContainer");v
ar
oi=Sparkle.copyContext(t,d),h={},si=[];h.className=n.writeAttribute("scopesL2List")
;h["aria-
label"]=n.writeAttribute(o.ScopesList);h.role=n.writeAttribute("listbox");nt=Sparkl
e.copyContext(t,h);for(hi in s)tt=s[hi],typeof tt!="function"&&function(i){var
y={},p=[],e,o,b,k,s,h,c,d,l,a,v,g,nt,tt;y.role=n.writeAttribute("presentation");var
w=Sparkle.copyContext(t,y),r={},u=[],f="";f+="scopeTile
focusable";i.selected&&(f+="
selectedScope");f&&(r.className=n.writeAttribute(f));r.id=n.writeAttribute(i.id);ut
&&(r["data-
partnertag"]=n.writeAttribute("AutoSuggest.ScopesL2.ScopeTile"));r.href=n.writeAttr
ibute("#");r.onClick=function(n){var t=new
Sparkle.RenderedView(it),r=n;i.click()};r.role=n.writeAttribute("listitem");r["aria
-selected"]=n.writeAttribute(i.selected?"true":"false");r["aria-
label"]=n.writeAttribute(i.narratorText);r.title=n.writeAttribute(i.narratorText);r
.tabIndex=n.writeAttribute("-
1");e=Sparkle.copyContext(t,r);o={};o.Icon=n.writeAttribute(i.icon);b=Sparkle.resol
veView("AutoSuggest:Icon");k=Sparkle.copyContext(t,o);u.push(b.renderView(k));s={};
h=[];s.className=n.writeAttribute("details");c=Sparkle.copyContext(t,s);n.writeCont
ent(i.text,h);c.defaultSegment=h;d=Sparkle.resolveView("div").renderView(c);u.push(
d);i.description&&(l={},a=[],l.className=n.writeAttribute("details secondaryText
annotation"),v=Sparkle.copyContext(t,l),n.writeContent(i.description,a),v.defaultSe
gment=a,g=Sparkle.resolveView("div").renderView(v),u.push(g));e.defaultSegment=u;nt
=Sparkle.resolveView("a").renderView(e);p.push(nt);w.defaultSegment=p;tt=Sparkle.re
solveView("li").renderView(w);si.push(tt)}
(tt);nt.defaultSegment=si;ci=Sparkle.resolveView("ul").renderView(nt);g.push(ci);oi
.defaultSegment=g;li=Sparkle.resolveView("div").renderView(oi);r.push(li);e={};e.Ad
vancedOptions=n.writeAttribute(ki);e.TabIndex=n.writeAttribute(et);e.ShowHeader=n.w
riteAttribute(!
0);ai=Sparkle.resolveView("AutoSuggest:AdvancedOptions");vi=Sparkle.copyContext(t,e
);r.push(ai.renderView(vi));ot.defaultSegment=r;yi=Sparkle.resolveView("div").rende
rView(ot);rt.push(yi)}return
Sparkle.ReactImpl.returnSingleNode(rt)}};Sparkle.ReactImpl.registerView(n)}
(),function(){var
n={displayName:"AutoSuggest:WindowsGroup",getInitialState:function(){var
t=this.props||{},r=t.viewData||{},n=t.properties||
{},i={},u=r.TestHooksEnabled,f=n.Group,e=n.ContextMenuHandler,o=n.ClickHandler,s=n.
RemoveClickHandler,h=n.OpenPreviewPaneButton;return i.isFirst=!
0,i},render:function(){var bt=this,i=this.props||{},kt=i.viewData||
{},u=i.properties||{},g=[],n=i.encoder||
Sparkle.defaultEncoder,dt=kt.TestHooksEnabled,t=u.Group,nt=u.ContextMenuHandler,h=u
.ClickHandler,tt=u.RemoveClickHandler,it=u.OpenPreviewPaneButton,rt=this.state.isFi
rst,c={},l=[],e="",y,p,ot,st,ht,w,at,vt,b,s,k,yt,d,pt,wt;e+="group";string.IsNullOr
Empty(t.cssClasses)||(e+="
"+t.cssClasses);e&&(c.className=n.writeAttribute(e));c["data-
region"]=n.writeAttribute(t.instRegionName);var
ut=Sparkle.copyContext(i,c),r={},a=[],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(bt),r=n;t.click&&h(t)};t.instItem&&(r["data-
h"]=n.writeAttribute(t.instItem.getHValue()));r["data-
clicks"]=n.writeAttribute("true");r.role=n.writeAttribute(t.click?"listitem":"headi
ng");r["aria-
label"]=n.writeAttribute(t.narratorText);r.title=n.writeAttribute(t.tooltip);r["ari
a-selected"]=n.writeAttribute(t.selected?"true":"false");dt&&(r["data-
partnertag"]=n.writeAttribute("AutoSuggest.GroupHeader"));var
ft=Sparkle.copyContext(i,r),et={},v=[];if(et.className=n.writeAttribute("groupTitle
"),y=Sparkle.copyContext(i,et),t.icon?
(p={},p.Icon=n.writeAttribute(t.icon),ot=Sparkle.resolveView("AutoSuggest:Icon"),st
=Sparkle.copyContext(i,p),v.push(ot.renderView(st))):n.writeContent(t.text,v),y.def
aultSegment=v,ht=Sparkle.resolveView("span").renderView(y),a.push(ht),t.click){var
ct={},lt=[],o="";o+="groupAnnotations";t.annotationText&&(o+="
withAnnotationText");o&&(ct.className=n.writeAttribute(o));w=Sparkle.copyContext(i,
ct);n.writeContent(t.annotationText,lt);w.defaultSegment=lt;at=Sparkle.resolveView(
"span").renderView(w);a.push(at)}ft.defaultSegment=a;vt=Sparkle.resolveView("div").
renderView(ft);l.push(vt);b={};s=[];b.className=n.writeAttribute("suggsList");k=Spa
rkle.copyContext(i,b);for(yt in t.suggestions)d=t.suggestions[yt],typeof d!
="function"&&function(t){var r,f,e,u,o,c;t.suppressed||t.template!=0?
t.template==1&&(u={},u.Suggestion=n.writeAttribute(t),u.ContextMenuHandler=n.writeA
ttribute(nt),u.ClickHandler=n.writeAttribute(h),u.RemoveClickHandler=n.writeAttribu
te(tt),u.OpenPreviewPaneButton=n.writeAttribute(it),o=Sparkle.resolveView("AutoSugg
est:WindowsSuggestionThreeLines"),c=Sparkle.copyContext(i,u),s.push(o.renderView(c)
)):
(r={},r.IsFirst=n.writeAttribute(rt),r.Suggestion=n.writeAttribute(t),r.ContextMenu
Handler=n.writeAttribute(nt),r.ClickHandler=n.writeAttribute(h),r.RemoveClickHandle
r=n.writeAttribute(tt),r.OpenPreviewPaneButton=n.writeAttribute(it),f=Sparkle.resol
veView("AutoSuggest:WindowsSuggestionSingleLine"),e=Sparkle.copyContext(i,r),s.push
(f.renderView(e)),rt=!1)}(d);return
k.defaultSegment=s,pt=Sparkle.resolveView("div").renderView(k),l.push(pt),ut.defaul
tSegment=l,wt=Sparkle.resolveView("div").renderView(ut),g.push(wt),Sparkle.ReactImp
l.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",namespac
e:"AutoSuggest"}),u=i.TestHooksEnabled,f=n.Icon,e=n.Running,o=n.Visible,s=n.Action;
return{}},render:function(){var w=this,r=this.props||{},a=r.viewData||
{},f=r.properties||{},e=[],n=r.encoder||
Sparkle.defaultEncoder,u=LocStringManager.getLocString({uiCulture:r.uiCulture,name:
"CortanaQF",namespace:"AutoSuggest"}),b=a.TestHooksEnabled,v=f.Icon,y=f.Running,o=f
.Visible,p=f.Action,i,s,h,t,c,l;return o&&(y?
(i={},i.Visible=n.writeAttribute(o),i.Icon=n.writeAttribute(v),i.MessageClassName=n
.writeAttribute("indexingMessage"),i.Title=n.writeAttribute(u.WindowsIndexingInProg
ressToolTip),i.MessageText=n.writeAttribute(u.WindowsIndexingInProgressMessage),s=S
parkle.resolveView("AutoSuggest:WindowsMessage"),h=Sparkle.copyContext(r,i),e.push(
s.renderView(h))):
(t={},t.Visible=n.writeAttribute(o),t.MessageClassName=n.writeAttribute("indexingMe
ssage"),t.Title=n.writeAttribute(u.WindowsIndexingDisabledToolTip),t.MessageText=n.
writeAttribute(u.WindowsIndexingDisabledMessage),t.ActionText=n.writeAttribute(u.Wi
ndowsIndexingDisabledAction),t.Action=n.writeAttribute(p),c=Sparkle.resolveView("Au
toSuggest:WindowsMessage"),l=Sparkle.copyContext(r,t),e.push(c.renderView(l)))),Spa
rkle.ReactImpl.returnSingleNode(e)}};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.Mes
sageText,h=n.Action,c=n.ClickHandler;return{}},render:function(){var
w=this,t=this.props||{},vt=t.viewData||{},i=t.properties||{},b=[],n=t.encoder||
Sparkle.defaultEncoder,yt=vt.TestHooksEnabled,pt=i.Visible,s=i.Icon,k=i.MessageClas
sName,d=i.Title,wt=i.MessageText,f=i.Action,g=i.ClickHandler,u={},nt=[],e="",c,l,rt
,ut,a,o,v,st,r,y,p,ht,ct,lt,at;string.IsNullOrEmpty(k)||(e+=k);pt&&(e+="
visible");e&&(u.className=n.writeAttribute(e));yt&&(u["data-
partnertag"]=n.writeAttribute("Message"));string.IsNullOrEmpty(d)||
(u.title=n.writeAttribute(d));u.onClick=function(n){var t=new
Sparkle.RenderedView(w),i=n;g!=null&&g()};var
tt=Sparkle.copyContext(t,u),it={},h=[];it.className=n.writeAttribute("message");c=S
parkle.copyContext(t,it);s!
=null&&(l={},l.Icon=n.writeAttribute(s),rt=Sparkle.resolveView("AutoSuggest:Icon"),
ut=Sparkle.copyContext(t,l),h.push(rt.renderView(ut)));a={};o=[];s!
=null&&(a.className=n.writeAttribute("details"));var
ft=Sparkle.copyContext(t,a),et={},ot=[];return
et.className=n.writeAttribute("primaryText"),v=Sparkle.copyContext(t,et),n.writeCon
tent(wt,ot),v.defaultSegment=ot,st=Sparkle.resolveView("div").renderView(v),o.push(
st),f!=null&&(r={},y=[],r.className=n.writeAttribute("primaryText
accentColor"),r.onClick=function(n){var t=new
Sparkle.RenderedView(w),i=n;f.click()},r["data-
h"]=n.writeAttribute(f.instItem.getHValue()),r["data-
clicks"]=n.writeAttribute("true"),p=Sparkle.copyContext(t,r),n.writeContent(f.text,
y),p.defaultSegment=y,ht=Sparkle.resolveView("div").renderView(p),o.push(ht)),ft.de
faultSegment=o,ct=Sparkle.resolveView("div").renderView(ft),h.push(ct),c.defaultSeg
ment=h,lt=Sparkle.resolveView("div").renderView(c),nt.push(lt),tt.defaultSegment=nt
,at=Sparkle.resolveView("div").renderView(tt),b.push(at),Sparkle.ReactImpl.returnSi
ngleNode(b)}};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,s=n.OpenPreviewPaneButton;return{}},render:function(){var
p=this,n=this.props||{},c=n.viewData||{},t=n.properties||{},u=[],i=n.encoder||
Sparkle.defaultEncoder,w=c.TestHooksEnabled,f=t.Suggestions,l=t.ContextMenuHandler,
a=t.ClickHandler,v=t.RemoveClickHandler,y=t.OpenPreviewPaneButton,e=[],o=Sparkle.co
pyContext(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);r.OpenP
reviewPaneButton=i.writeAttribute(y);u=Sparkle.resolveView("AutoSuggest:WindowsSugg
estionThreeLines");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.Rea
ctImpl.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,h=n.OpenPreviewPaneButton;return
i.previousGroup=null,i},render:function(){var tt=this,t=this.props||
{},w=t.viewData||{},i=t.properties||{},c=[],n=t.encoder||
Sparkle.defaultEncoder,b=w.TestHooksEnabled,l=i.Groups,k=i.ContextMenuHandler,d=i.C
lickHandler,g=i.RemoveClickHandler,nt=i.OpenPreviewPaneButton,r=this.state.previous
Group,f={},u=[],e,a,o,s,v,h,y,p;b&&(f["data-
partnertag"]=n.writeAttribute("AutoSuggest.GroupContainer"));f["data-
region"]=n.writeAttribute("Groups");e=Sparkle.copyContext(t,f);for(a in
l)o=l[a],typeof o!="function"&&function(i){var e,s,o,h,f,c,l;!
AutoSuggest.Windows.isTopHitChildGroup(i.type)&&r&&AutoSuggest.Windows.isTopHitChil
dGroup(r.type)&&(e={},s=[],e.className=n.writeAttribute("divider
topHitConnectedToGroup"),o=Sparkle.copyContext(t,e),o.defaultSegment=s,h=Sparkle.re
solveView("hr").renderView(o),u.push(h));f={};f.Group=n.writeAttribute(i);f.Context
MenuHandler=n.writeAttribute(k);f.ClickHandler=n.writeAttribute(d);f.RemoveClickHan
dler=n.writeAttribute(g);f.OpenPreviewPaneButton=n.writeAttribute(nt);c=Sparkle.res
olveView("AutoSuggest:WindowsGroup");l=Sparkle.copyContext(t,f);u.push(c.renderView
(l));r=i}(o);return
r&&AutoSuggest.Windows.isTopHitChildGroup(r.type)&&(s={},v=[],s.className=n.writeAt
tribute("divider
topHitConnectedToGroup"),h=Sparkle.copyContext(t,s),h.defaultSegment=v,y=Sparkle.re
solveView("hr").renderView(h),u.push(y)),e.defaultSegment=u,p=Sparkle.resolveView("
div").renderView(e),c.push(p),Sparkle.ReactImpl.returnSingleNode(c)}};Sparkle.React
Impl.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.write
Attribute(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=Sparkl
e.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.Re
actImpl.returnSingleNode(f)}};Sparkle.ReactImpl.registerView(n)}(),function(){var
n={displayName:"AutoSuggest:WindowsSuggestionSingleLine",getInitialState:function()
{var t=this.props||{},r=t.viewData||{},n=t.properties||
{},i={},u=LocStringManager.getLocString({uiCulture:t.uiCulture,name:"CortanaQF",nam
espace:"AutoSuggest"}),f=r.TestHooksEnabled,e=n.Suggestion,o=n.ContextMenuHandler,s
=n.ClickHandler,h=n.RemoveClickHandler,c=n.IsFirst,l=n.OpenPreviewPaneButton;return
i.additionalInfoText=null,i},render:function(){var c=this,i=this.props||
{},er=i.viewData||{},e=i.properties||{},pt=[],n=i.encoder||
Sparkle.defaultEncoder,k=LocStringManager.getLocString({uiCulture:i.uiCulture,name:
"CortanaQF",namespace:"AutoSuggest"}),s=er.TestHooksEnabled,t=e.Suggestion,or=e.Con
textMenuHandler,sr=e.ClickHandler,hr=e.RemoveClickHandler,wt=e.IsFirst,d=e.OpenPrev
iewPaneButton,l=this.state.additionalInfoText,r={},a=[],u="",g,nt,bt,kt,tt,v,ui,fi,
ei,rt,ut,ft,oi,h,si,hi,ci,li,o,et,ot,st,ai,vi,yi,pi,f,b,ht,ct,di,gi,nr,lt,at,vt,yt,
tr,ir,rr,ur,fr;u+="suggestion";t.selected&&(u+=" sa_hv");!t.click||(u+="
selectable");string.IsNullOrEmpty(t.suggestionClass)||(u+="
"+t.suggestionClass);AutoSuggest.Windows.supportsPreview(t)&&(u+="
withOpenPreviewPaneBtn");t.hasPreviewPaneOpened&&(u+="
previewPaneOpened");wt&&AutoSuggest.isWebSuggestion(t)&&(u+="
firstWebSuggestion");u&&(r.className=n.writeAttribute(u));r.onContextMenu=function(
n){var i=new Sparkle.RenderedView(c),r=n;or(t,event)};r.onClick=function(n){var
i=new Sparkle.RenderedView(c),r=n;sr(t)};r.id=n.writeAttribute(t.id);s&&(r["data-
partnertag"]=n.writeAttribute("AutoSuggest.RegularSuggestion"));r.role=n.writeAttri
bute("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);g=Sparkle.cop
yContext(i,r);nt={};nt.Icon=n.writeAttribute(t.icon);bt=Sparkle.resolveView("AutoSu
ggest:Icon");kt=Sparkle.copyContext(i,nt);a.push(bt.renderView(kt));tt={};v=[];tt.c
lassName=n.writeAttribute("details");var
dt=Sparkle.copyContext(i,tt),it={},gt=[],y="";y+="primaryText";t.removeIcon!
=null&&(y+="
removeIconPadding");y&&(it.className=n.writeAttribute(y));s&&(it["data-
partnertag"]=n.writeAttribute("Suggestion.PrimaryText"));var
ni=Sparkle.copyContext(i,it),p=[],ti=Sparkle.copyContext(i,
{});if(l=t.additionalInfoText,wt&&AutoSuggest.isWebSuggestion(t)&&(l=" -
"+k.SearchTheWeb),l){var ii=[],ri=Sparkle.copyContext(i,
{}),w={};w.Text=n.writeAttribute(t.text);w.Dir=n.writeAttribute("ltr");w.Reverse=n.
writeAttribute(AutoSuggest.Windows.hasReverseHighlighting(t));ui=Sparkle.resolveVie
w("AutoSuggest:HighlightedText");fi=Sparkle.copyContext(i,w);ii.push(ui.renderView(
fi));ri.defaultSegment=ii;ei=Sparkle.resolveView("span").renderView(ri);p.push(ei);
rt={};ut=[];rt.className=n.writeAttribute("additionalInfoText
annotation");ft=Sparkle.copyContext(i,rt);n.writeContent(l,ut);ft.defaultSegment=ut
;oi=Sparkle.resolveView("span").renderView(ft);p.push(oi)}else
h={},h.Text=n.writeAttribute(t.text),h.Dir=n.writeAttribute("ltr"),h.Reverse=n.writ
eAttribute(AutoSuggest.Windows.hasReverseHighlighting(t)),si=Sparkle.resolveView("A
utoSuggest:HighlightedText"),hi=Sparkle.copyContext(i,h),p.push(si.renderView(hi));
if(ti.defaultSegment=p,ci=Sparkle.resolveView("div").renderView(ti),gt.push(ci),ni.
defaultSegment=gt,li=Sparkle.resolveView("div").renderView(ni),v.push(li),t.removeI
con!
=null&&(o={},et=[],o.className=n.writeAttribute("removeIcon"),o.title=n.writeAttrib
ute(k.RemoveFromDeviceHistory),o.onClick=function(n){var r=new
Sparkle.RenderedView(c),i=n;hr(t,i)},s&&(o["data-
partnertag"]=n.writeAttribute("Suggestion.RemoveIcon")),ot=Sparkle.copyContext(i,o)
,st={},st.Icon=n.writeAttribute(t.removeIcon),ai=Sparkle.resolveView("AutoSuggest:I
con"),vi=Sparkle.copyContext(i,st),et.push(ai.renderView(vi)),ot.defaultSegment=et,
yi=Sparkle.resolveView("span").renderView(ot),v.push(yi)),dt.defaultSegment=v,pi=Sp
arkle.resolveView("div").renderView(dt),a.push(pi),AutoSuggest.Windows.supportsPrev
iew(t))
{f={};b=[];f.className=n.writeAttribute("openPreviewPaneBtn");f.onClick=function(n)
{var r=new Sparkle.RenderedView(c),i=n;d.clickHandler(t,i)};s&&(f["data-
partnertag"]=n.writeAttribute("Suggestion.OpenPreviewPaneButton"));f["data-
noct"]=n.writeAttribute("true");f.title=n.writeAttribute(k.OpenWebPreviewPaneToolti
p);var
wi=Sparkle.copyContext(i,f),bi={},ki=[];bi.className=n.writeAttribute("openPreviewI
con");ht=Sparkle.copyContext(i,bi);ct={};ct.Icon=n.writeAttribute(d.defaultIcon);di
=Sparkle.resolveView("AutoSuggest:Icon");gi=Sparkle.copyContext(i,ct);ki.push(di.re
nderView(gi));ht.defaultSegment=ki;nr=Sparkle.resolveView("span").renderView(ht);b.
push(nr);lt={};at=[];lt.className=n.writeAttribute("hovOpenPreviewIcon");vt=Sparkle
.copyContext(i,lt);yt={};yt.Icon=n.writeAttribute(d.hoverIcon);tr=Sparkle.resolveVi
ew("AutoSuggest:Icon");ir=Sparkle.copyContext(i,yt);at.push(tr.renderView(ir));vt.d
efaultSegment=at;rr=Sparkle.resolveView("span").renderView(vt);b.push(rr);wi.defaul
tSegment=b;ur=Sparkle.resolveView("div").renderView(wi);a.push(ur)}return
g.defaultSegment=a,fr=Sparkle.resolveView("div").renderView(g),pt.push(fr),Sparkle.
ReactImpl.returnSingleNode(pt)}};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",nam
espace:"AutoSuggest"}),o=u.TestHooksEnabled,s=n.Suggestion,h=n.ContextMenuHandler,c
=n.ClickHandler,l=n.RemoveClickHandler,a=n.OpenPreviewPaneButton,f=string.Empty,r;r
eturn i.answer=f,r=string.Empty,i.stars=r,i},render:function(){var
l=this,i=this.props||{},pu=i.viewData||{},c=i.properties||{},hi=[],n=i.encoder||
Sparkle.defaultEncoder,ci=LocStringManager.getLocString({uiCulture:i.uiCulture,name
:"CortanaQF",namespace:"AutoSuggest"}),f=pu.TestHooksEnabled,t=c.Suggestion,wu=c.Co
ntextMenuHandler,bu=c.ClickHandler,ku=c.RemoveClickHandler,tt=c.OpenPreviewPaneButt
on,li=this.state.answer,ai=this.state.stars,r={},o=[],u="",it,rt,vi,yi,ut,a,gi,nr,t
r,ot,st,ht,ir,rr,p,ct,lt,w,ur,fr,er,at,vt,yt,or,pt,wt,bt,cr,lr,dt,k,vr,yr,pr,wr,h,g
t,ni,ti,br,kr,dr,gr,d,nu,tu,e,g,ii,ri,fu,eu,ou,ui,fi,ei,oi,su,hu,cu,lu,nt,au,si,vu,
yu;if(u+="suggestion cf",t.selected&&(u+="
sa_hv"),t.hasChildSuggestionsDisplayed&&(u+=" topHitConnectedToGroup"),!t.click||
(u+=" selectable"),string.IsNullOrEmpty(t.suggestionClass)||(u+="
"+t.suggestionClass),string.IsNullOrEmpty(t.secondaryIcon)||(u+="
withSecondaryIcon"),AutoSuggest.Windows.supportsPreview(t)&&(u+="
withOpenPreviewPaneBtn"),t.hasPreviewPaneOpened&&(u+="
previewPaneOpened"),u&&(r.className=n.writeAttribute(u)),r.onContextMenu=function(n
){var i=new Sparkle.RenderedView(l),r=n;wu(t,event)},r.onClick=function(n){var
i=new
Sparkle.RenderedView(l),r=n;t.click&&bu(t)},r.id=n.writeAttribute(t.id),f&&(r["data
-
partnertag"]=n.writeAttribute("AutoSuggest.RegularSuggestion")),r.role=n.writeAttri
bute("listitem"),r["aria-
selected"]=n.writeAttribute(t.selected?"true":"false"),t.narratorText&&(r["aria-
label"]=n.writeAttribute(t.narratorText)),f&&(r["data-
stype"]=n.writeAttribute(t.type)),r["data-
h"]=n.writeAttribute(t.instItem.getHValue()),t.click&&(r["data-
clicks"]=n.writeAttribute("true")),r.title=n.writeAttribute(t.tooltip),it=Sparkle.c
opyContext(i,r),string.IsNullOrEmpty(t.answerHtml))
{rt={};rt.Icon=n.writeAttribute(t.icon);vi=Sparkle.resolveView("AutoSuggest:Icon");
yi=Sparkle.copyContext(i,rt);o.push(vi.renderView(yi));ut={};a=[];ut.className=n.wr
iteAttribute("details");var
pi=Sparkle.copyContext(i,ut),s=[],wi=Sparkle.copyContext(i,
{}),ft={},et=[],v="";v+="primaryText";t.removeIcon!=null&&(v+="
removeIconPadding");v&&(ft.className=n.writeAttribute(v));f&&(ft["data-
partnertag"]=n.writeAttribute("Suggestion.PrimaryText"));var
bi=Sparkle.copyContext(i,ft),ki=[],di=Sparkle.copyContext(i,
{}),y={};if(y.Text=n.writeAttribute(t.text),y.Dir=n.writeAttribute("ltr"),y.Reverse
=n.writeAttribute(AutoSuggest.Windows.hasReverseHighlighting(t)),gi=Sparkle.resolve
View("AutoSuggest:HighlightedText"),nr=Sparkle.copyContext(i,y),ki.push(gi.renderVi
ew(nr)),di.defaultSegment=ki,tr=Sparkle.resolveView("div").renderView(di),et.push(t
r),string.IsNullOrEmpty(t.rightAlignedText)||
(ot={},st=[],ot.className=n.writeAttribute("secondaryText annotation
rightAlignedText"),ht=Sparkle.copyContext(i,ot),n.writeContent(t.rightAlignedText,s
t),ht.defaultSegment=st,ir=Sparkle.resolveView("div").renderView(ht),et.push(ir)),b
i.defaultSegment=et,rr=Sparkle.resolveView("div").renderView(bi),s.push(rr),string.
IsNullOrEmpty(t.additionalInfoTextFor3LinesTemplate)||
(p={},ct=[],p.className=n.writeAttribute("secondaryText annotation"),f&&(p["data-
partnertag"]=n.writeAttribute("Suggestion.AdditionalInfoText")),lt=Sparkle.copyCont
ext(i,p),w={},w.Text=n.writeAttribute(t.additionalInfoTextFor3LinesTemplate),w.Dir=
n.writeAttribute("ltr"),ur=Sparkle.resolveView("AutoSuggest:HighlightedText"),fr=Sp
arkle.copyContext(i,w),ct.push(ur.renderView(fr)),lt.defaultSegment=ct,er=Sparkle.r
esolveView("div").renderView(lt),s.push(er)),typeof t.stars!="undefined")
{at={};vt=[];at.className=n.writeAttribute("secondaryText starBg
iconContent");yt=Sparkle.copyContext(i,at);n.writeContent("",vt);yt.defaul
tSegment=vt;or=Sparkle.resolveView("div").renderView(yt);s.push(or);pt={};wt=[];pt.
className=n.writeAttribute("secondaryText star
iconContent");bt=Sparkle.copyContext(i,pt);ai=t.stars;var
sr={},hr=Sparkle.copyContext(i,sr);sr.dangerouslySetInnerHTML={__html:n.writeUnenco
dedContent(ai)};hr.defaultSegment=[];cr=Sparkle.resolveView("span").renderView(hr);
wt.push(cr);bt.defaultSegment=wt;lr=Sparkle.resolveView("div").renderView(bt);s.pus
h(lr)}if(!string.IsNullOrEmpty(t.secondaryText)){var
kt={},ar=[],b="";b+="secondaryText";string.IsNullOrEmpty(t.secondaryTextClass)||
(b+=" "+t.secondaryTextClass);b&&(kt.className=n.writeAttribute(b));f&&(kt["data-
partnertag"]=n.writeAttribute("Suggestion.SecondaryText"));dt=Sparkle.copyContext(i
,kt);k={};k.Text=n.writeAttribute(t.secondaryText);k.Dir=n.writeAttribute("ltr");vr
=Sparkle.resolveView("AutoSuggest:HighlightedText");yr=Sparkle.copyContext(i,k);ar.
push(vr.renderView(yr));dt.defaultSegment=ar;pr=Sparkle.resolveView("div").renderVi
ew(dt);s.push(pr)}if(wi.defaultSegment=s,wr=Sparkle.resolveView("div").renderView(w
i),a.push(wr),t.removeIcon!
=null&&(h={},gt=[],h.className=n.writeAttribute("removeIcon"),h.title=n.writeAttrib
ute(ci.RemoveFromDeviceHistory),h.onClick=function(n){var r=new
Sparkle.RenderedView(l),i=n;ku(t,i)},f&&(h["data-
partnertag"]=n.writeAttribute("Suggestion.RemoveIcon")),ni=Sparkle.copyContext(i,h)
,ti={},ti.Icon=n.writeAttribute(t.removeIcon),br=Sparkle.resolveView("AutoSuggest:I
con"),kr=Sparkle.copyContext(i,ti),gt.push(br.renderView(kr)),ni.defaultSegment=gt,
dr=Sparkle.resolveView("span").renderView(ni),a.push(dr)),pi.defaultSegment=a,gr=Sp
arkle.resolveView("div").renderView(pi),o.push(gr),string.IsNullOrEmpty(t.secondary
Icon)||
(d={},d.Icon=n.writeAttribute(t.secondaryIcon),d.IsSecondary=n.writeAttribute("true
"),nu=Sparkle.resolveView("AutoSuggest:Icon"),tu=Sparkle.copyContext(i,d),o.push(nu
.renderView(tu))),AutoSuggest.Windows.supportsPreview(t))
{e={};g=[];e.className=n.writeAttribute("openPreviewPaneBtn");e.onClick=function(n)
{var r=new Sparkle.RenderedView(l),i=n;tt.clickHandler(t,i)};f&&(e["data-
partnertag"]=n.writeAttribute("Suggestion.OpenPreviewPaneButton"));e["data-
noct"]=n.writeAttribute("true");e.title=n.writeAttribute(ci.OpenWebPreviewPaneToolt
ip);var
iu=Sparkle.copyContext(i,e),ru={},uu=[];ru.className=n.writeAttribute("openPreviewI
con");ii=Sparkle.copyContext(i,ru);ri={};ri.Icon=n.writeAttribute(tt.defaultIcon);f
u=Sparkle.resolveView("AutoSuggest:Icon");eu=Sparkle.copyContext(i,ri);uu.push(fu.r
enderView(eu));ii.defaultSegment=uu;ou=Sparkle.resolveView("span").renderView(ii);g
.push(ou);ui={};fi=[];ui.className=n.writeAttribute("hovOpenPreviewIcon");ei=Sparkl
e.copyContext(i,ui);oi={};oi.Icon=n.writeAttribute(tt.hoverIcon);su=Sparkle.resolve
View("AutoSuggest:Icon");hu=Sparkle.copyContext(i,oi);fi.push(su.renderView(hu));ei
.defaultSegment=fi;cu=Sparkle.resolveView("span").renderView(ei);g.push(cu);iu.defa
ultSegment=g;lu=Sparkle.resolveView("div").renderView(iu);o.push(lu)}}else
nt={},au=[],nt.className=n.writeAttribute("answer"),si=Sparkle.copyContext(i,nt),li
=t.answerHtml,nt.dangerouslySetInnerHTML={__html:n.writeUnencodedContent(li)},si.de
faultSegment=au,vu=Sparkle.resolveView("div").renderView(si),o.push(vu);return
it.defaultSegment=o,yu=Sparkle.resolveView("div").renderView(it),hi.push(yu),Sparkl
e.ReactImpl.returnSingleNode(hi)}};Sparkle.ReactImpl.registerView(n)}()

S-ar putea să vă placă și