(function(){var n={displayName:"Threshold:DenseTileLayout",getInitialState:function(){var n=this.props||{},u=n.viewData||{},i=n.properties||{},t={},r=i.ViewModel;return t},render:function(){var c=this,t=this.props||{},l=t.viewData||{},h=t.properties||{},o=[],n=t.encoder||Sparkle.defaultEncoder,f=h.ViewModel,i={},r,e,u,s;i.className=n.writeAttribute("DTLContainer b_tabgroup"),TestHooksEnabled&&(i["data-tag"]=n.writeAttribute("DTL.Container")),i.role=n.writeAttribute("grid"),r=Sparkle.copyContext(t,i);for(e in f.Rows)u=f.Rows[e],typeof u!="function"&&function(i){var u={},o,h,e,s;u.className=n.writeAttribute("DTLRow"),u.width=n.writeAttribute(f.Width),TestHooksEnabled&&(u["data-tag"]=n.writeAttribute("DTL.Row")),u.role=n.writeAttribute("row"),o=Sparkle.copyContext(t,u);for(h in i.Images)e=i.Images[h],typeof e!="function"&&function(r){var u={},e,f;u.Item=n.writeAttribute(r),u.Row=n.writeAttribute(i),e=Sparkle.resolveView("Threshold:MyStuffPhotoItem"),f=Sparkle.copyContext(t,u),o.defaultSegment.push(e.renderView(f))}(e);s=Sparkle.resolveView("ol").renderView(o),r.defaultSegment.push(s)}(u);return s=Sparkle.resolveView("div").renderView(r),o.push(s),Sparkle.ReactImpl.returnSingleNode(o,t)}};Sparkle.ReactImpl.registerView(n)})(),function(){var n={displayName:"Threshold:ErrorMessage",getInitialState:function(){var t=this.props||{},s=t.viewData||{},n=t.properties||{},i={},o=LocStringManager.getLocString({uiCulture:t.uiCulture,name:"LocStrings",namespace:"Threshold"}),c=n.Speller,h=n.PaginationItems,u=n.Message,r=n.MessageSubtitle,e=n.Recourse,f=n.IsIndexed;return i},render:function(){var si=this,n=this.props||{},hi=n.viewData||{},i=n.properties||{},ht=[],t=n.encoder||Sparkle.defaultEncoder,dt=LocStringManager.getLocString({uiCulture:n.uiCulture,name:"LocStrings",namespace:"Threshold"}),ni=i.Speller,at=i.PaginationItems,gt=i.Message,ti=i.MessageSubtitle,lt=i.Recourse,ei=i.IsIndexed,s={},f,c,bt,e,wt,yt,u,pt,p,b,w,ut,rt,ot,d,k,g,tt,h,nt,ft,kt;s.className=t.writeAttribute("DeviceContent"),TestHooksEnabled&&(s["data-tag"]=t.writeAttribute("MyStuff.Error")),f=Sparkle.copyContext(n,s),c={},c.Name=t.writeAttribute("Error");var oi=Sparkle.resolveView("Threshold:Region"),ct=Sparkle.copyContext(n,c),st={};st.className=t.writeAttribute("b_vList");var r=Sparkle.copyContext(n,st),ii={},vt=Sparkle.copyContext(n,ii),o={};if(o.PartnerTestHook=t.writeAttribute("DeviceContent.NoResults"),o.CssClass=t.writeAttribute("messageHeader"),bt=Sparkle.resolveView("Shared:TitleWrapper"),e=Sparkle.copyContext(n,o),t.writeContent(gt,e.defaultSegment),vt.defaultSegment.push(bt.renderView(e)),wt=Sparkle.resolveView("li").renderView(vt),r.defaultSegment.push(wt),yt={},u=Sparkle.copyContext(n,yt),t.writeContent(" ",u.defaultSegment),t.writeContent(ti,u.defaultSegment),t.writeContent(" ",u.defaultSegment),pt=Sparkle.resolveView("li").renderView(u),r.defaultSegment.push(pt),!ei){var ui={},y=Sparkle.copyContext(n,ui),v={};v.InlineErrorMessage=t.writeAttribute(dt.IndexingError),p=Sparkle.resolveView("Threshold:InlineError"),b=Sparkle.copyContext(n,v),y.defaultSegment.push(p.renderView(b)),w=Sparkle.resolveView("li").renderView(y),r.defaultSegment.push(w)}var ri={},l=Sparkle.copyContext(n,ri),a={};if(a.Speller=t.writeAttribute(ni),ut=Sparkle.resolveView("Threshold:SpellCorrection"),rt=Sparkle.copyContext(n,a),l.defaultSegment.push(ut.renderView(rt)),ot=Sparkle.resolveView("li").renderView(l),r.defaultSegment.push(ot),at){var fi={},et=Sparkle.copyContext(n,fi),it={};it.PaginationItems=t.writeAttribute(at),d=Sparkle.resolveView("Threshold:Pagination"),k=Sparkle.copyContext(n,it),et.defaultSegment.push(d.renderView(k)),g=Sparkle.resolveView("li").renderView(et),r.defaultSegment.push(g)}return tt=Sparkle.resolveView("ul").renderView(r),ct.defaultSegment.push(tt),f.defaultSegment.push(oi.renderView(ct)),lt&&(h={},h.Recourse=t.writeAttribute(lt),nt=Sparkle.resolveView("Threshold:Recourse"),ft=Sparkle.copyContext(n,h),f.defaultSegment.push(nt.renderView(ft))),kt=Sparkle.resolveView("div").renderView(f),ht.push(kt),Sparkle.ReactImpl.returnSingleNode(ht,n)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"Threshold:InlineError",getInitialState:function(){var n=this.props||{},u=n.viewData||{},i=n.properties||{},t={},r=i.InlineErrorMessage;return t},render:function(){var s=this,n=this.props||{},h=n.viewData||{},e=n.properties||{},f=[],t=n.encoder||Sparkle.defaultEncoder,o=e.InlineErrorMessage,i={},r,u;return i.className=t.writeAttribute("inlineError"),TestHooksEnabled&&(i["data-tag"]=t.writeAttribute("MyStuff.InlineError")),r=Sparkle.copyContext(n,i),t.writeContent(o,r.defaultSegment),u=Sparkle.resolveView("div").renderView(r),f.push(u),Sparkle.ReactImpl.returnSingleNode(f,n)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"Threshold:ItemList",getInitialState:function(){var i=this.props||{},n=i.viewData||{},t=i.properties||{},r={},o=t.ViewModel,s=t.ItemType,e=n.TestHooksEnabled,u=n.SmallImageConfig,f=n.LargeImageConfig;return r},render:function(){var v=this,n=this.props||{},u=n.viewData||{},h=n.properties||{},s=[],t=n.encoder||Sparkle.defaultEncoder,c=h.ViewModel,a=h.ItemType,y=u.TestHooksEnabled,p=u.SmallImageConfig,w=u.LargeImageConfig,e={},i="",r,o,f,l;i+="subsection "+a+" b_tabgroup",i&&(e.className=t.writeAttribute(i)),r=Sparkle.copyContext(n,e);for(o in c.Items)f=c.Items[o],typeof f!="function"&&function(i){var c={},e,u,l,a,f,s,h,o;c.onContextMenu=function(n){var r=new Sparkle.RenderedView(v),t=n;i.ContextMenu(event)},e=Sparkle.copyContext(n,c),i.Type=="video"||i.Type=="music"||i.Type=="photo"?(u={},u.Item=t.writeAttribute(i),u.ImageCssRMSKey=t.writeAttribute("CenteredSquareLarge"),u.ImageCssClassName=t.writeAttribute("centeredSquare_l"),l=Sparkle.resolveView("Threshold:ResultItem"),a=Sparkle.copyContext(n,u),e.defaultSegment.push(l.renderView(a))):(f={},f.Item=t.writeAttribute(i),f.ImageCssRMSKey=t.writeAttribute("CenteredSquareSmall"),f.ImageCssClassName=t.writeAttribute("centeredSquare_s"),s=Sparkle.resolveView("Threshold:ResultItem"),h=Sparkle.copyContext(n,f),e.defaultSegment.push(s.renderView(h))),o=Sparkle.resolveView("li").renderView(e),r.defaultSegment.push(o)}(f);return l=Sparkle.resolveView("ul").renderView(r),s.push(l),Sparkle.ReactImpl.returnSingleNode(s,n)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"Threshold:ItemTitle",getInitialState:function(){var i=this.props||{},f=i.viewData||{},u=i.properties||{},t={},n=u.Item,r=string.IsNullOrEmpty(n.ClickUrl)?"http://ms-smartsearch/app?"+n.Id:n.ClickUrl;return t.itemUrl=r,t},render:function(){var a=this,i=this.props||{},v=i.viewData||{},h=i.properties||{},s=[],n=i.encoder||Sparkle.defaultEncoder,r=h.Item,c=this.state.itemUrl,e,u,o;n=new HtmlHitHighlightingEncoder;var l={},f=Sparkle.copyContext(i,l),t={};return t.href=n.writeAttribute(c),t["data-appid"]=n.writeAttribute(r.Id),t["data-itemtype"]=n.writeAttribute(r.Type),t.InstItem=n.writeAttribute(r.InstItem),t.PartnerTestHook=n.writeAttribute("DeviceContent.ItemName"),t.role=n.writeAttribute("button"),e=Sparkle.resolveView("Threshold:InstLink"),u=Sparkle.copyContext(i,t),n.writeContent(r.DisplayName,u.defaultSegment),f.defaultSegment.push(e.renderView(u)),o=Sparkle.resolveView("h4").renderView(f),s.push(o),Sparkle.ReactImpl.returnSingleNode(s,i)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"Threshold:LocalStrings",getInitialState:function(){var n=this.props||{},r=n.viewData||{},u=n.properties||{},t={},i=LocStringManager.getLocString({uiCulture:n.uiCulture,name:"LocStrings",namespace:"Threshold"});return t},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:"LocStrings",namespace:"Threshold"});return t.writeContent(i.AllTitle,n),t.writeContent(i.NoResults,n),t.writeContent(i.NoResultsSubtitle,n),t.writeContent(i.StillWorking,n),t.writeContent(i.StillWorkingSubtitle,n),t.writeContent(i.AppsTitle,n),t.writeContent(i.AppsHeaderNoResult,n),t.writeContent(i.FilesTitle,n),t.writeContent(i.FilesHeaderNoResult,n),t.writeContent(i.FoldersTitle,n),t.writeContent(i.FoldersHeaderNoResult,n),t.writeContent(i.SettingsTitle,n),t.writeContent(i.SettingsHeaderNoResult,n),t.writeContent(i.MusicTitle,n),t.writeContent(i.MusicHeaderNoResult,n),t.writeContent(i.PhotosTitle,n),t.writeContent(i.PhotosHeaderNoResult,n),t.writeContent(i.VideosTitle,n),t.writeContent(i.VideosHeaderNoResult,n),t.writeContent(i.EmailsTitle,n),t.writeContent(i.EmailsHeaderNoResult,n),t.writeContent(i.PageError,n),t.writeContent(i.PageErrorSubtitle,n),t.writeContent(i.TryAgainError,n),t.writeContent(i.ThisPC,n),t.writeContent(i.OneDrive,n),t.writeContent(i.OneDriveOpenFile,n),t.writeContent(i.OneDriveOpenFileLocation,n),t.writeContent(i.Searching,n),t.writeContent(i.SearchCompleted,n),t.writeContent(i.MetadataLabelAuthor,n),t.writeContent(i.MetadataLabelCaptions,n),t.writeContent(i.MetadataLabelDateCreated,n),t.writeContent(i.MetadataLabelDateModified,n),t.writeContent(i.MetadataLabelEmailAccountName,n),t.writeContent(i.MetadataLabelFileOwner,n),t.writeContent(i.MetadataLabelFilePath,n),t.writeContent(i.MetadataLabelGenre,n),t.writeContent(i.MetadataLabelDateAccessed,n),t.writeContent(i.MetadataLabelTags,n),t.writeContent(i.MetadataLabelTitle,n),t.writeContent(i.SeeAll,n),t.writeContent(i.SeeAllPrefix,n),t.writeContent(i.SeeAllSuffix,n),t.writeContent(i.SortBy0,n),t.writeContent(i.SortBy3,n),t.writeContent(i.FilterLabel,n),t.writeContent(i.FileExplorer,n),t.writeContent(i.ProgressBarAriaValueText,n),t.writeContent(i.PaginationNext,n),t.writeContent(i.PaginationPrev,n),Sparkle.ReactImpl.returnSingleNode(n,r)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"Threshold:MyStuffHeader",getInitialState:function(){var n=this.props||{},e=n.viewData||{},u=n.properties||{},t={},f=LocStringManager.getLocString({uiCulture:n.uiCulture,name:"LocStrings",namespace:"Threshold"}),r=u.ViewModel,i="top b_1linetrunc"+(r.IsBackButtonVisible?" hasback":"");return t.classValue=i,t},render:function(){var wi=this,t=this.props||{},bi=t.viewData||{},ai=t.properties||{},ii=[],n=t.encoder||Sparkle.defaultEncoder,f=LocStringManager.getLocString({uiCulture:t.uiCulture,name:"LocStrings",namespace:"Threshold"}),i=ai.ViewModel,vi=this.state.classValue,ri={},et,o,ui,gt,h,ut,ni,ht,c,st,r,rt,p,ti,l,a,ot,ci,hi,li,g,d,ei,it,b,w,si,oi,lt,y,k,kt,tt,nt,v,wt,pt,yt,dt,u,ft,vt,at,fi;ri.className=n.writeAttribute("Header"),et=Sparkle.copyContext(t,ri),o={},o.Name=n.writeAttribute("Header"),o.InstItem=n.writeAttribute(i.InstItem);var yi=Sparkle.resolveView("Threshold:Region"),e=Sparkle.copyContext(t,o),s={};if(s.id=n.writeAttribute("b_progress"),s["aria-valuetext"]=n.writeAttribute(f.ProgressBarAriaValueText),s.className=n.writeAttribute("b_accentColor"),ui=Sparkle.copyContext(t,s),gt=Sparkle.resolveView("progress").renderView(ui),e.defaultSegment.push(gt),h={},h.className=n.writeAttribute(vi),TestHooksEnabled&&(h["data-tag"]=n.writeAttribute("common.echoQuery")),ut=Sparkle.copyContext(t,h),n.writeContent(i.Query,ut.defaultSegment),ni=Sparkle.resolveView("div").renderView(ut),e.defaultSegment.push(ni),ht={},ht.className=n.writeAttribute("lower"),c=Sparkle.copyContext(t,ht),st={},st.className=n.writeAttribute("dropdowns"),r=Sparkle.copyContext(t,st),i.ProviderFilterData&&(rt={},rt["for"]=n.writeAttribute(i.ProviderFilterData.Id),p=Sparkle.copyContext(t,rt),n.writeContent(f.ProviderLabel,p.defaultSegment),ti=Sparkle.resolveView("label").renderView(p),r.defaultSegment.push(ti),l={},l.className=n.writeAttribute("ProviderFilter b_tabgroup"),a=Sparkle.copyContext(t,l),ot={},ot.Data=n.writeAttribute(i.ProviderFilterData),ci=Sparkle.copyContext(t,ot),hi=Sparkle.resolveView("Shared:SelectItem").renderView(ci),a.defaultSegment.push(hi),li=Sparkle.resolveView("span").renderView(a),r.defaultSegment.push(li)),i.ContentTypeSortData&&(g={},g["for"]=n.writeAttribute(i.ContentTypeSortData.Id),d=Sparkle.copyContext(t,g),n.writeContent(f.SortLabel,d.defaultSegment),ei=Sparkle.resolveView("label").renderView(d),r.defaultSegment.push(ei),it={},it.className=n.writeAttribute("b_tabgroup"),b=Sparkle.copyContext(t,it),w={},w.Data=n.writeAttribute(i.ContentTypeSortData),si=Sparkle.copyContext(t,w),oi=Sparkle.resolveView("Shared:SelectItem").renderView(si),b.defaultSegment.push(oi),lt=Sparkle.resolveView("span").renderView(b),r.defaultSegment.push(lt)),y={},y["for"]=n.writeAttribute(i.ContentTypeFilterData.Id),k=Sparkle.copyContext(t,y),n.writeContent(f.FilterLabel,k.defaultSegment),kt=Sparkle.resolveView("label").renderView(k),r.defaultSegment.push(kt),tt={},tt.className=n.writeAttribute("b_tabgroup"),nt=Sparkle.copyContext(t,tt),v={},v.Data=n.writeAttribute(i.ContentTypeFilterData),wt=Sparkle.copyContext(t,v),pt=Sparkle.resolveView("Shared:SelectItem").renderView(wt),nt.defaultSegment.push(pt),yt=Sparkle.resolveView("span").renderView(nt),r.defaultSegment.push(yt),dt=Sparkle.resolveView("div").renderView(r),c.defaultSegment.push(dt),i.RecourseLink!=null){u={},u.InstItem=n.writeAttribute(i.RecourseLink),TestHooksEnabled&&(u["data-tag"]=n.writeAttribute("common.WebRecourse")),u["class"]=n.writeAttribute("b_accentColor b_tabgroup"),u.role=n.writeAttribute("menuitem");var pi=Sparkle.resolveView("Threshold:InstLink"),bt=Sparkle.copyContext(t,u),ct={};ct.className=n.writeAttribute("recourse"),ft=Sparkle.copyContext(t,ct),n.writeContent(f.WebRecourse,ft.defaultSegment),vt=Sparkle.resolveView("div").renderView(ft),bt.defaultSegment.push(vt),c.defaultSegment.push(pi.renderView(bt))}return at=Sparkle.resolveView("div").renderView(c),e.defaultSegment.push(at),et.defaultSegment.push(yi.renderView(e)),fi=Sparkle.resolveView("div").renderView(et),ii.push(fi),Sparkle.ReactImpl.returnSingleNode(ii,t)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"Threshold:MyStuffPhotoItem",getInitialState:function(){var e=this.props||{},c=e.viewData||{},o=e.properties||{},n={},t=o.Item,h=o.Row,s={},u,r,i,f;return n.liStyle=s,u={},n.imgStyle=u,r={},n.instLinkStyle=r,i=string.IsNullOrEmpty(t.ClickUrl)?"http://ms-smartsearch/app?"+t.Id:t.ClickUrl,n.itemUrl=i,f=t.Thumbnail?"DTLItem":"DTLItem DTLPlaceholder",n.liClass=f,n},render:function(){var rt=this,r=this.props||{},ot=r.viewData||{},g=r.properties||{},nt=[],n=r.encoder||Sparkle.defaultEncoder,t=g.Item,et=g.Row,k=this.state.liStyle,d=this.state.imgStyle,it=this.state.instLinkStyle,ft=this.state.itemUrl,ut=this.state.liClass,f,s,c,i,b,o,u,y,p,e,h,l,v,w,a,tt;return k={width:t.ContainerWidth+"px",height:et.Height+"px"},d={height:t.ContainerHeight+"px",marginLeft:-t.HorizontalOffset+"px",marginRight:-t.HorizontalOffset+"px",visibility:t.IsVisible?"visible":"hidden"},it={height:t.ContainerHeight+"px",display:"block",marginTop:t.VerticalOffset+"px"},f={},s="",s+=ut+" imageBackground",s&&(f.className=n.writeAttribute(s)),f.style=n.writeAttribute(k),f.onContextMenu=function(n){var r=new Sparkle.RenderedView(rt),i=n;t.ContextMenu(event)},TestHooksEnabled&&(f["data-tag"]=n.writeAttribute("DTL.Item")),f.role=n.writeAttribute("gridcell"),f["aria-readonly"]=n.writeAttribute("true"),c=Sparkle.copyContext(r,f),i={},i.href=n.writeAttribute(ft),i["data-appid"]=n.writeAttribute(t.Id),i["data-itemtype"]=n.writeAttribute(t.Type),i.InstItem=n.writeAttribute(t.InstItem),i.PartnerTestHook=n.writeAttribute("DeviceContent.Item"),i.role=n.writeAttribute("button"),i.style=n.writeAttribute(it),i.title=n.writeAttribute(t.TooltipText),b=Sparkle.resolveView("Threshold:InstLink"),o=Sparkle.copyContext(r,i),t.Thumbnail?(u={},u.style=n.writeAttribute(d),u.src=n.writeAttribute(t.Thumbnail),u.role=n.writeAttribute("presentation"),u.alt=n.writeAttribute(string.Empty),u.onLoad=n.writeAttribute(t.OnLoad),u.draggable=n.writeAttribute("false"),y=Sparkle.resolveView("img"),p=Sparkle.copyContext(r,u),o.defaultSegment.push(y.renderView(p))):(e={},e.className=n.writeAttribute("b_centeredImagePair"),e.style=n.writeAttribute({height:t.ContainerHeight+"px",backgroundColor:"#ddd"}),h=Sparkle.copyContext(r,e),l={},l.Item=n.writeAttribute(t),v=Sparkle.resolveView("Threshold:PlaceHolderImage"),w=Sparkle.copyContext(r,l),h.defaultSegment.push(v.renderView(w)),a=Sparkle.resolveView("div").renderView(h),o.defaultSegment.push(a)),c.defaultSegment.push(b.renderView(o)),tt=Sparkle.resolveView("li").renderView(c),nt.push(tt),Sparkle.ReactImpl.returnSingleNode(nt,r)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"Threshold:PageCanvas",getInitialState:function(){var t=this.props||{},h=t.viewData||{},n=t.properties||{},i={},s=LocStringManager.getLocString({uiCulture:t.uiCulture,name:"LocStrings",namespace:"Threshold"}),l=n.Sections,c=n.Speller,o=n.LayoutInstItem,u=n.ViewState,r=n.PaginationItems,e=n.Recourse,f=n.IsIndexed;return i},render:function(){var lt=this,n=this.props||{},at=n.viewData||{},i=n.properties||{},it=[],t=n.encoder||Sparkle.defaultEncoder,ot=LocStringManager.getLocString({uiCulture:n.uiCulture,name:"LocStrings",namespace:"Threshold"}),tt=i.Sections,nt=i.Speller,ct=i.LayoutInstItem,ht=i.ViewState,d=i.PaginationItems,g=i.Recourse,st=i.IsIndexed,ft={},r,c,ut,rt,o,y,a,u,k,s,p,f,e,v,w,h,b,l,et;ft.className=t.writeAttribute("DeviceContent"),r=Sparkle.copyContext(n,ft),nt&&(c={},c.Speller=t.writeAttribute(nt),ut=Sparkle.resolveView("Threshold:SpellCorrection"),rt=Sparkle.copyContext(n,c),r.defaultSegment.push(ut.renderView(rt))),st||(o={},o.InlineErrorMessage=t.writeAttribute(ot.IndexingError),y=Sparkle.resolveView("Threshold:InlineError"),a=Sparkle.copyContext(n,o),r.defaultSegment.push(y.renderView(a))),u={},u.Name=t.writeAttribute("Core"),u.InstItem=t.writeAttribute(ct),k=Sparkle.resolveView("Threshold:Region"),s=Sparkle.copyContext(n,u);for(p in tt)f=tt[p],typeof f!="function"&&function(i){var r={},f,u;r.Section=t.writeAttribute(i),r.HideNoResults=t.writeAttribute(!0),r.ViewState=t.writeAttribute(ht),f=Sparkle.resolveView("Threshold:Section"),u=Sparkle.copyContext(n,r),s.defaultSegment.push(f.renderView(u))}(f);return r.defaultSegment.push(k.renderView(s)),d&&(e={},e.PaginationItems=t.writeAttribute(d),v=Sparkle.resolveView("Threshold:Pagination"),w=Sparkle.copyContext(n,e),r.defaultSegment.push(v.renderView(w))),g&&(h={},h.Recourse=t.writeAttribute(g),b=Sparkle.resolveView("Threshold:Recourse"),l=Sparkle.copyContext(n,h),r.defaultSegment.push(b.renderView(l))),et=Sparkle.resolveView("div").renderView(r),it.push(et),Sparkle.ReactImpl.returnSingleNode(it,n)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"Threshold:Pagination",getInitialState:function(){var i=this.props||{},o=i.viewData||{},f=i.properties||{},t={},e=LocStringManager.getLocString({uiCulture:i.uiCulture,name:"LocStrings",namespace:"Threshold"}),n=f.PaginationItems,u="&#x"+(n.NextPage?n.NextPage.Text:"E76C")+";",r;return t.nextIcon=u,r="&#x"+(n.PreviousPage?n.PreviousPage.Text:"E76B")+";",t.previousIcon=r,t},render:function(){var ti=this,t=this.props||{},ii=t.viewData||{},yt=t.properties||{},h=[],n=t.encoder||Sparkle.defaultEncoder,ft=LocStringManager.getLocString({uiCulture:t.uiCulture,name:"LocStrings",namespace:"Threshold"}),i=yt.PaginationItems,pt=this.state.nextIcon,wt=this.state.previousIcon,st={},ht,ot,e,f,v,u,w,b,p,d,it,c,a,r,g,rt,y,k,lt;st.key=n.writeAttribute("rms:answers:Web:SymbolFontFace"),ht=Sparkle.resolveView("rms:Css"),ot=Sparkle.copyContext(t,st),h.push(ht.renderView(ot)),e={},e.DisplayRegion=n.writeAttribute("Pagination"),e.InstItem=n.writeAttribute(i.ContainingRegion);var ni=Sparkle.resolveView("Threshold:Region"),et=Sparkle.copyContext(t,e),l={};if(l.className=n.writeAttribute("sb_pag"),l["data-tag"]=n.writeAttribute("Pagination.Pages"),f=Sparkle.copyContext(t,l),i.PreviousPage){var bt={},vt=Sparkle.copyContext(t,bt),o={};o["class"]=n.writeAttribute("sb_pagP"),o.InstItem=n.writeAttribute(i.PreviousPage.InstData),TestHooksEnabled&&(o["data-tag"]=n.writeAttribute("Pagination.PrevPage"));var kt=Sparkle.resolveView("Threshold:InstLink"),at=Sparkle.copyContext(t,o),ct={};ct.className=n.writeAttribute("sb_pagIconP"),v=Sparkle.copyContext(t,ct),u={},u.className=n.writeAttribute("sw_prev"),u.title=n.writeAttribute(ft.PaginationPrev),w=Sparkle.copyContext(t,u),u.dangerouslySetInnerHTML={__html:n.writeUnencodedContent(wt)},b=Sparkle.resolveView("div").renderView(w),v.defaultSegment.push(b),p=Sparkle.resolveView("div").renderView(v),at.defaultSegment.push(p),vt.defaultSegment.push(kt.renderView(at)),d=Sparkle.resolveView("li").renderView(vt),f.defaultSegment.push(d)}for(it in i.PaginationLinks)c=i.PaginationLinks[it],typeof c!="function"&&function(i){var h={},s=Sparkle.copyContext(t,h),r={},o,u,e;r["class"]=n.writeAttribute(i.Active?"sb_pagS":""),r.InstItem=n.writeAttribute(i.InstData),TestHooksEnabled&&i.Active&&(r["data-tag"]=n.writeAttribute("Pagination.CurrentPage")),o=Sparkle.resolveView("Threshold:InstLink"),u=Sparkle.copyContext(t,r),n.writeContent(i.Text,u.defaultSegment),s.defaultSegment.push(o.renderView(u)),e=Sparkle.resolveView("li").renderView(s),f.defaultSegment.push(e)}(c);if(i.NextPage){var dt={},ut=Sparkle.copyContext(t,dt),s={};s["class"]=n.writeAttribute("sb_pagN"),s.InstItem=n.writeAttribute(i.NextPage.InstData),TestHooksEnabled&&(s["data-tag"]=n.writeAttribute("Pagination.NextPage"));var gt=Sparkle.resolveView("Threshold:InstLink"),nt=Sparkle.copyContext(t,s),tt={};tt.className=n.writeAttribute("sb_pagIconN"),a=Sparkle.copyContext(t,tt),r={},r.className=n.writeAttribute("sw_next"),r.title=n.writeAttribute(ft.PaginationNext),g=Sparkle.copyContext(t,r),r.dangerouslySetInnerHTML={__html:n.writeUnencodedContent(pt)},rt=Sparkle.resolveView("div").renderView(g),a.defaultSegment.push(rt),y=Sparkle.resolveView("div").renderView(a),nt.defaultSegment.push(y),ut.defaultSegment.push(gt.renderView(nt)),k=Sparkle.resolveView("li").renderView(ut),f.defaultSegment.push(k)}return lt=Sparkle.resolveView("ul").renderView(f),et.defaultSegment.push(lt),h.push(ni.renderView(et)),Sparkle.ReactImpl.returnSingleNode(h,t)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"Threshold:PlaceHolderImage",getInitialState:function(){var n=this.props||{},u=n.viewData||{},i=n.properties||{},t={},r=i.Item;return t},render:function(){var st=this,n=this.props||{},ht=n.viewData||{},ot=n.properties||{},t=[],r=n.encoder||Sparkle.defaultEncoder,i=ot.Item,c,tt,d,f,g,it,o,ft,nt,s,rt,ut,u,y,v,e,k,p,h,w,b,l,a,et;return i.Type=="email"?(c={},c.className=r.writeAttribute(i.Read?"b_ReadEmail":"b_placeHolderEmail"),tt=Sparkle.copyContext(n,c),d=Sparkle.resolveView("span").renderView(tt),t.push(d)):i.Type=="setting"?(f={},f.className=r.writeAttribute("b_placeHolderSetting"),g=Sparkle.copyContext(n,f),it=Sparkle.resolveView("span").renderView(g),t.push(it)):i.Type=="app"?(o={},o.className=r.writeAttribute("b_placeHolderApp"),ft=Sparkle.copyContext(n,o),nt=Sparkle.resolveView("span").renderView(ft),t.push(nt)):i.Type=="photo"?(s={},s.className=r.writeAttribute("b_placeHolderPhoto"),rt=Sparkle.copyContext(n,s),ut=Sparkle.resolveView("span").renderView(rt),t.push(ut)):i.Type=="video"?(u={},u.className=r.writeAttribute("b_placeHolderVideo"),y=Sparkle.copyContext(n,u),v=Sparkle.resolveView("span").renderView(y),t.push(v)):i.Type=="music"?(e={},e.className=r.writeAttribute("b_placeHolderMusic"),k=Sparkle.copyContext(n,e),p=Sparkle.resolveView("span").renderView(k),t.push(p)):i.Type=="folder"?(h={},h.className=r.writeAttribute("b_placeHolderFolder"),w=Sparkle.copyContext(n,h),b=Sparkle.resolveView("span").renderView(w),t.push(b)):(l={},l.className=r.writeAttribute("b_placeHolderDoc"),a=Sparkle.copyContext(n,l),et=Sparkle.resolveView("span").renderView(a),t.push(et)),Sparkle.ReactImpl.returnSingleNode(t,n)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"Threshold:Recourse",getInitialState:function(){var n=this.props||{},f=n.viewData||{},i=n.properties||{},t={},u=LocStringManager.getLocString({uiCulture:n.uiCulture,name:"LocStrings",namespace:"Threshold"}),r=i.Recourse;return t},render:function(){var g=this,n=this.props||{},nt=n.viewData||{},w=n.properties||{},a=[],t=n.encoder||Sparkle.defaultEncoder,k=LocStringManager.getLocString({uiCulture:n.uiCulture,name:"LocStrings",namespace:"Threshold"}),i=w.Recourse,r={},o,s,u,l,e,v;r.Name=t.writeAttribute("Recourse"),r.InstItem=t.writeAttribute(i.LayoutInstItem);var b=Sparkle.resolveView("Threshold:Region"),f=Sparkle.copyContext(n,r),y={};y.Title=t.writeAttribute(k.OtherPlaces),o=Sparkle.resolveView("Shared:GroupLabel"),s=Sparkle.copyContext(n,y),f.defaultSegment.push(o.renderView(s)),u={},u.className=t.writeAttribute("b_tabgroup");var h=Sparkle.copyContext(n,u),d={},p=Sparkle.resolveView("Shared:VerticalList"),c=Sparkle.copyContext(n,d);for(l in i.Items)e=i.Items[l],typeof e!="function"&&function(i){var s={},o=Sparkle.copyContext(n,s),r={},e,u,f;r["class"]=t.writeAttribute("b_accentColor"),TestHooksEnabled&&(r["data-tag"]=t.writeAttribute("Recourse.Link")),r["data-dest"]=t.writeAttribute(i.Destination),i.Provider&&(r["data-provider"]=t.writeAttribute(i.Provider)),r.InstItem=t.writeAttribute(i.InstItem),i.AltText&&(r.title=t.writeAttribute(i.AltText)),e=Sparkle.resolveView("Threshold:InstLink"),u=Sparkle.copyContext(n,r),t.writeContent(i.Title,u.defaultSegment),o.defaultSegment.push(e.renderView(u)),f=Sparkle.resolveView("li").renderView(o),c.defaultSegment.push(f)}(e);return h.defaultSegment.push(p.renderView(c)),v=Sparkle.resolveView("span").renderView(h),f.defaultSegment.push(v),a.push(b.renderView(f)),Sparkle.ReactImpl.returnSingleNode(a,n)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"Threshold:Region",getInitialState:function(){var t=this.props||{},r=t.viewData||{},n=t.properties||{},i={},e=n.Name,f=n.InstItem,u=r.TestHooksEnabled;return i},render:function(){var l=this,n=this.props||{},h=n.viewData||{},e=n.properties||{},o=[],s=n.encoder||Sparkle.defaultEncoder,c=e.Name,f=e.InstItem,a=h.TestHooksEnabled,i={},r,t,u;for(i["data-region"]=s.writeAttribute(c),i["data-isregion"]="",f!=null&&(i["data-k"]=s.writeAttribute(f.GetKValue())),r=Sparkle.copyContext(n,i),t=0;t0)&&(u={},u.subsection=t.writeAttribute(r),u.isTwoColumn=t.writeAttribute(g),u.sectionKey=t.writeAttribute(i.Key),u.ViewState=t.writeAttribute(w),e=Sparkle.resolveView("Threshold:SectionContents"),f=Sparkle.copyContext(n,u),o.defaultSegment.push(e.renderView(f)))}(s);return a=Sparkle.resolveView("ul").renderView(o),f.defaultSegment.push(a),b=Sparkle.resolveView("div").renderView(f),y.push(b),Sparkle.ReactImpl.returnSingleNode(y,n)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"Threshold:SectionContents",getInitialState:function(){var t=this.props||{},e=t.viewData||{},n=t.properties||{},i={},o=n.subsection,f=n.isTwoColumn,r=n.sectionKey,u=n.ViewState;return i},render:function(){var yt=this,n=this.props||{},pt=n.viewData||{},f=n.properties||{},d=[],t=n.encoder||Sparkle.defaultEncoder,i=f.subsection,ot=f.isTwoColumn,st=f.sectionKey,ft=f.ViewState,u={},s,c,a,v,b,e,h,it,nt,r,k,g,rt;u.className=t.writeAttribute("b_fadeAnim"),u["data-sectionname"]=t.writeAttribute(i.Key),TestHooksEnabled&&(u["data-tag"]=t.writeAttribute("DeviceContent.Group")),s=Sparkle.copyContext(n,u),c={},c.Name=t.writeAttribute(i.InstRegionName);var et=Sparkle.resolveView("Threshold:Region"),tt=Sparkle.copyContext(n,c),ht={},at=Sparkle.resolveView("Shared:VerticalStackPanel"),o=Sparkle.copyContext(n,ht),vt={},ct=Sparkle.resolveView("Shared:VerticalStackPanelItem"),p=Sparkle.copyContext(n,vt),l={};l.subsection=t.writeAttribute(i),l.ViewState=t.writeAttribute(ft),a=Sparkle.resolveView("Threshold:SubsectionHeader"),v=Sparkle.copyContext(n,l),p.defaultSegment.push(a.renderView(v)),o.defaultSegment.push(ct.renderView(p));var lt={},ut=Sparkle.resolveView("Shared:VerticalStackPanelItem"),y=Sparkle.copyContext(n,lt),w={};return w.InstItem=t.writeAttribute(i.InstItem),b=Sparkle.resolveView("Threshold:Region"),e=Sparkle.copyContext(n,w),i.ViewModel.View=="densetilelayout"?(h={},h.ViewModel=t.writeAttribute(i.ViewModel),it=Sparkle.resolveView("Threshold:DenseTileLayout"),nt=Sparkle.copyContext(n,h),e.defaultSegment.push(it.renderView(nt))):i.ViewModel.View=="itemlist"&&(r={},r.ViewModel=t.writeAttribute(i.ViewModel),r.IsTwoColumn=t.writeAttribute(ot),r.ItemType=t.writeAttribute(st),k=Sparkle.resolveView("Threshold:ItemList"),g=Sparkle.copyContext(n,r),e.defaultSegment.push(k.renderView(g))),y.defaultSegment.push(b.renderView(e)),o.defaultSegment.push(ut.renderView(y)),tt.defaultSegment.push(at.renderView(o)),s.defaultSegment.push(et.renderView(tt)),rt=Sparkle.resolveView("li").renderView(s),d.push(rt),Sparkle.ReactImpl.returnSingleNode(d,n)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"Threshold:SpellCorrection",getInitialState:function(){var n=this.props||{},r=n.viewData||{},i=n.properties||{},t={},e=LocStringManager.getLocString({uiCulture:n.uiCulture,name:"LocStrings",namespace:"Threshold"}),f=r.TestHooksEnabled,u=i.Speller;return t},render:function(){var b=this,t=this.props||{},p=t.viewData||{},w=t.properties||{},a=[],n=t.encoder||Sparkle.defaultEncoder,l=LocStringManager.getLocString({uiCulture:t.uiCulture,name:"LocStrings",namespace:"Threshold"}),y=p.TestHooksEnabled,u=w.Speller,e,c,o,f,r,i,h,s,v;return u&&(e={},e.Name=n.writeAttribute("Speller"),e.InstItem=n.writeAttribute(u.LayoutInstItem),c=Sparkle.resolveView("Threshold:Region"),o=Sparkle.copyContext(t,e),u.IsComplete&&(f={},f.className=n.writeAttribute("Speller"),y&&(f["data-tag"]=n.writeAttribute("DeviceContent.Speller")),r=Sparkle.copyContext(t,f),n.writeContent(l.SpellerSuggestionPrefix2,r.defaultSegment),i={},i.InstItem=n.writeAttribute(u.InstItem),y&&(i["data-tag"]=n.writeAttribute("DeviceContent.SpellerLink")),i["class"]=n.writeAttribute("b_noTarget b_accentColor"),h=Sparkle.resolveView("Threshold:InstLink"),s=Sparkle.copyContext(t,i),n.writeContent(u.SpellSuggestion,s.defaultSegment),r.defaultSegment.push(h.renderView(s)),n.writeContent(l.SpellerSuggestionSuffix2,r.defaultSegment),v=Sparkle.resolveView("div").renderView(r),o.defaultSegment.push(v)),a.push(c.renderView(o))),Sparkle.ReactImpl.returnSingleNode(a,t)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"Threshold:SpellerSuggestion",getInitialState:function(){var n=this.props||{},r=n.viewData||{},i=n.properties||{},t={},e=LocStringManager.getLocString({uiCulture:n.uiCulture,name:"LocStrings",namespace:"Threshold"}),f=r.TestHooksEnabled,u=i.Speller;return t},render:function(){var g=this,n=this.props||{},w=n.viewData||{},b=n.properties||{},a=[],t=n.encoder||Sparkle.defaultEncoder,v=LocStringManager.getLocString({uiCulture:n.uiCulture,name:"LocStrings",namespace:"Threshold"}),p=w.TestHooksEnabled,i=b.Speller,r,l,o,u,f,h,s,y;if(i){if(r={},r.Name=t.writeAttribute("Speller"),r.InstItem=t.writeAttribute(i.LayoutInstItem),l=Sparkle.resolveView("Threshold:Region"),o=Sparkle.copyContext(n,r),i.IsComplete){u={},u.className=t.writeAttribute("Speller"),p&&(u["data-tag"]=t.writeAttribute("DeviceContent.Speller"));var c=Sparkle.copyContext(n,u),k={},d=Sparkle.resolveView("Shared:AlertWrapper"),e=Sparkle.copyContext(n,k);t.writeContent(v.SpellerSuggestionPrefix,e.defaultSegment),f={},f.InstItem=t.writeAttribute(i.InstItem),p&&(f["data-tag"]=t.writeAttribute("DeviceContent.SpellerLink")),h=Sparkle.resolveView("Threshold:InstLink"),s=Sparkle.copyContext(n,f),t.writeContent(i.SpellSuggestion,s.defaultSegment),e.defaultSegment.push(h.renderView(s)),t.writeContent(v.SpellerSuggestionSuffix,e.defaultSegment),c.defaultSegment.push(d.renderView(e)),y=Sparkle.resolveView("div").renderView(c),o.defaultSegment.push(y)}a.push(l.renderView(o))}return Sparkle.ReactImpl.returnSingleNode(a,n)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={displayName:"Threshold:SubsectionHeader",getInitialState:function(){var n=this.props||{},f=n.viewData||{},i=n.properties||{},t={},o=LocStringManager.getLocString({uiCulture:n.uiCulture,name:"LocStrings",namespace:"Threshold"}),u=i.subsection,e=i.ViewState,r=u.Title?"subsectionTitles":"subsectionTitles noTitle";return t.className=r,t},render:function(){var it=this,t=this.props||{},rt=t.viewData||{},d=t.properties||{},w=[],n=t.encoder||Sparkle.defaultEncoder,s=LocStringManager.getLocString({uiCulture:t.uiCulture,name:"LocStrings",namespace:"Threshold"}),i=d.subsection,g=d.ViewState,tt=this.state.className,p={},f,c,a,o,u,v,r,e,y,h,b;if(p.className=n.writeAttribute(tt),f=Sparkle.copyContext(t,p),i.Title){c={},c.PartnerTestHook=n.writeAttribute("DeviceContent.GroupTitle");var nt=Sparkle.resolveView("Shared:TitleWrapper"),k=Sparkle.copyContext(t,c),l={};l.InstItem=n.writeAttribute(i.SeeAllInstItem),a=Sparkle.resolveView("Threshold:InstLink"),o=Sparkle.copyContext(t,l),n.writeContent(i.Title,o.defaultSegment),k.defaultSegment.push(a.renderView(o)),f.defaultSegment.push(nt.renderView(k))}return g!==2&&(i.ItemCount>0&&i.ShowResultCount?(u={},u.InstItem=n.writeAttribute(i.SeeAllInstItem),u["class"]=n.writeAttribute("b_accentColor b_tabgroup"),TestHooksEnabled&&(u["data-tag"]=n.writeAttribute("DeviceContent.SeeAllLink")),v=Sparkle.resolveView("Threshold:InstLink"),r=Sparkle.copyContext(t,u),n.writeContent(s.SeeAllPrefix,r.defaultSegment),n.writeContent(i.ItemCount+"",r.defaultSegment),n.writeContent(s.SeeAllSuffix,r.defaultSegment),f.defaultSegment.push(v.renderView(r))):(e={},e.InstItem=n.writeAttribute(i.SeeAllInstItem),e["class"]=n.writeAttribute("b_accentColor b_tabgroup"),TestHooksEnabled&&(e["data-tag"]=n.writeAttribute("DeviceContent.SeeAllLink")),y=Sparkle.resolveView("Threshold:InstLink"),h=Sparkle.copyContext(t,e),n.writeContent(s.SeeAll,h.defaultSegment),f.defaultSegment.push(y.renderView(h)))),b=Sparkle.resolveView("div").renderView(f),w.push(b),Sparkle.ReactImpl.returnSingleNode(w,t)}};Sparkle.ReactImpl.registerView(n)}(),function(){var n={"class":"className"},t={displayName:"Threshold:InstLink",render:function(){var h,i,c,s,o,e;if(this.props!==null){var u=this.props,v=u.viewData||{},t=u.properties||{},a=Sparkle.resolveView("a"),l=v.TestHooksEnabled,f=t.InstItem,r={};f&&(r.h=f.GetNamespacedKValue()),h=t.PartnerTestHook,l&&h&&(r["data-partnertag"]=h);for(i in t)t.hasOwnProperty(i)&&(c=n.hasOwnProperty(i)?n[i]:i,r[c]=t[i]);for(!t.href&&f&&(s=f.GetUrlWithFormCode(),s&&(r.href=s)),r.draggable=!1,o=Sparkle.copyContext(u,r),e=0;e