Skip to content

Free fork of NotProton: Windows Steam games in Mac Steam, on CodeWeavers' Wine and Apple's Game Porting Toolkit

4.0 KB
Raw Blame
on(Re){this.m_filterSpec.filterGroups[Re].bAcceptUnion=!this.m_filterSpec.filterGroups[Re].bAcceptUnion}MatchesImpl(Re){const ce=this.m_filterSpec.filterGroups;if(!K(ce[C.W6],Te(Re))||!K(ce[C.sc],de(Re))||!K(ce[C.Kr],Ne(Re))||!K(ce[C.bp],xe(Re))||!K(ce[C.Tx],ot(Re))||!K(ce[C.vA],pe(Re))||!K(ce[C.RB],Oe(Re)))return!1;if(this.m_filterSpec.strSearchText){if
cludes($)||Re.sort_as.includes($)||A(we,$)!==-1)}return!0}Matches(Re){return this.MatchesImpl(Re)}MatchesScoredImpl(Re){const ce=this.m_filterSpec.filterGroups;if(!K(ce[C.W6],Te(Re))||!K(ce[C.sc],de(Re))||!K(ce[C.Kr],Ne(Re))||!K(ce[C.bp],xe(Re))||!K(ce[C.Tx],ot(Re))||!K(ce[C.vA],pe(Re))||!K(ce[C.RB],Oe(Re))||Re.BIsAppBlocked())return 0;if(this.m_filterSp
 0;constructor(Re){(0,s.Gn)(this),Re&&(Re.filterGroups[2].rgOptions=Re.filterGroups[2].rgOptions?.filter(ce=>ce!=C.eb)||[]),this.m_filterSpec={nFormatVersion:lt,strSearchText:Re&&Re.strSearchText||"",filterGroups:[P(!0,Re&&Re.filterGroups[0]),P(!1,Re&&Re.filterGroups[1]),P(!1,Re&&Re.filterGroups[2]),P(!1,Re&&Re.filterGroups[3]),P(!1,Re&&Re.filterGroups[4]),P(!1,Re&&Re.fi
(ce=>ce==Re)}CheckForExclusiveOption(Re,ce){be.forEach($=>{$.group==Re&&$.filters.includes(ce)&&$.filters.forEach(Ye=>{Ye!==ce&&this.SelectOption(Re,Ye,!1)})})}SelectOption(Re,ce,$){let we=this.m_filterSpec.filterGroups[Re].rgOptions;if(Re==C.sc){const He=ce;if(z(He)&&$&&(this.ClearSteamHWCompatOptions(we),He==C.eb))return}Re==C.Tx&&$&&(S.O$.RefreshOwnedGames(ce),(0,x.L)("Library/AddFriendTo
e.filterGroups[4]),P(!1,Re&&Re.filterGroups[5]),P(!1,Re&&Re.filterGroups[6]),P(!1,Re&&Re.filterGroups[7]),P(!1,Re&&Re.filterGroups[8])],setSuggestions:new Set}}Reset(){this.m_filterSpec.strSearchText="",this.m_filterSpec.filterGroups.forEach(Re=>Re.rgOptions=[])}BIncludesTools(){const Re=this.GetSelectedOptions(C.Wc);return!!Re.find(ce=>ce==n.B7)||Re.length==0}
)}`)).join(", "));let Qe=this.GetSelectedOptions(C.RB);return Qe.length>0&&Re.push(Qe.map(At=>(0,c.we)(`#Accessibility_Feature_${re(C.RB,At)}`)).join(", ")),Re}get bIsEmpty(){return this.searchText.length==0&&this.m_filterSpec.filterGroups.every(Re=>Re.rgOptions.length==0)}get searchText(){return this.m_filterSpec.strSearchText}SetSearchText(Re){this.m_filterSpec.str
=this.GetSelectedOptions(C.Wc);$.length>0&&$.length!=ce.length&&Re.push(ce.filter(At=>$.indexOf(At)!==-1).map(At=>(0,c.we)(Jd.LocalizeAppType(At))).join(", "));let we=this.GetSelectedOptions(C.W6);we.length>0&&Re.push(we.map(At=>{if(At==C.Pu){if((0,f.CI)())return(0,c.we)("#FilterElement_ValidPlatform_Linux");if((0,f.Pr)())return(0,c.we)("#FilterElement_ValidPlatform_MacOS")}return(0,c.we)("#FilterEle
.VQ,Ys=i.n6.bIsGameListSortedByRecent,ra=i.n6.selectedGameListView!=i.GA,Js=i.n6.currentAppFilter.BIsSelected(Qn.W6,Qn.Sr),ca=!ei,ua=!(0,ft.td)(),aa=(0,ft.CI)(),Rs=i.n6.currentAppFilter.BIsSelected(Qn.W6,Qn.Pu);return(0,e.jsxs)("div",{className:Ma().Bar,children:[(0,e.jsx)(an.EN,{active:ss,children:(0,e.jsx)(Nl,{closeModal:ps})}),(0,e.jsxs)("div",{className:Ma().SearchBar,ref:hi,tabIndex:-1,children:[(0,e.jsxs)
ren:(0,e.jsx)(h.i3G,{angle:0})})]}),(0,e.jsx)("div",{className:Ma().ViewFiltersBar,children:(0,e.jsxs)("div",{className:(0,g.A)(Ma().Filters,fs&&Ma().Disabled),children:[ua&&(0,e.jsxs)(Qe.he,{direction:"top",nDelayShowMS:240,toolTipContent:aa?(0,A.we)("#GameList_View_Platform_Linux"):(0,A.we)("#GameList_View_Platform_Apple"),className:(0,g.A)(Ma().CheckboxWithImage,ra&&Ma().Disabled,Rs&&Ma().Active),onClick:()=>ra||Gl(Qn.W6,Qn.Pu,!Rs),children:[aa&&(0,e.jsx)(h.Wy0,{}),!aa&&(0,e.jsx)(h.kPc,{})]}),(0,e.jsx)(Qe.he,{direction:"top",nDelayShowMS:240,toolTipContent:(0,A.we)("#GameList_View_SortByRecent"),className:(0,g.A)(Ma().CheckboxWithImage,fs&&Ma().Disa
AppType!=n.em&&We.local_per_client_data&&!!We.local_per_client_data.installed;case C.zW:return We.rt_last_time_played>0;case C.jn:return!We.rt_last_time_played;case C.Pu:return(0,f.CI)()&&!(0,f.mP)()?Se(We):(0,f.td)()?!0:We.is_available_on_current_platform&&!We.is_invalid_os_type;case C.fd:return e.tw.BIsAppPrivate(We.appid);default:return!1}}}function Ne(We){return We.BHasStoreTag}function ot(We){return Re=>S.O$.GetOwnedGames(Re).has(We