Skip to content

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

4.1 KB
Raw Blame
on(we){this.m_filterSpec.filterGroups[we].bAcceptUnion=!this.m_filterSpec.filterGroups[we].bAcceptUnion}MatchesImpl(we){const Ae=this.m_filterSpec.filterGroups;if(!$(Ae[L.W6],Se(we))||!$(Ae[L.sc],Pe(we))||!$(Ae[L.Kr],Ve(we))||!$(Ae[L.bp],mt(we))||!$(Ae[L.Tx],_e(we))||!$(Ae[L.vA],xe(we))||!$(Ae[L.RB],Ue(we)))return!1;if(this.m_filterSpec.strSearchText){if
des(Ne)||we.sort_as.includes(Ne)||g(le,Ne)!==-1)}return!0}Matches(we){return this.MatchesImpl(we)}MatchesScoredImpl(we){const Ae=this.m_filterSpec.filterGroups;if(!$(Ae[L.W6],Se(we))||!$(Ae[L.sc],Pe(we))||!$(Ae[L.Kr],Ve(we))||!$(Ae[L.bp],mt(we))||!$(Ae[L.Tx],_e(we))||!$(Ae[L.vA],xe(we))||!$(Ae[L.RB],Ue(we))||we.BIsAppBlocked())return 0;if(this.m_filterSp
t ut=2,rt=class Su{m_filterSpec=void 0;constructor(we){(0,s.Gn)(this),we&&(we.filterGroups[2].rgOptions=we.filterGroups[2].rgOptions?.filter(Ae=>Ae!=L.eb)||[]),this.m_filterSpec={nFormatVersion:ut,strSearchText:we&&we.strSearchText||"",filterGroups:[H(!0,we&&we.filterGroups[0]),H(!1,we&&we.filterGroups[1]),H(!1,we&&we.filterGroups[2]),H(!1,we&&we.filterGroups[3]),H(!1,we&&we.filterGroups[4]),H(!1,we&&we.fi
>Ae==we)}CheckForExclusiveOption(we,Ae){fe.forEach(Ne=>{Ne.group==we&&Ne.filters.includes(Ae)&&Ne.filters.forEach(Ee=>{Ee!==Ae&&this.SelectOption(we,Ee,!1)})})}SelectOption(we,Ae,Ne){let le=this.m_filterSpec.filterGroups[we].rgOptions;if(we==L.sc){const Xe=Ae;if(K(Xe)&&Ne&&(this.ClearSteamHWCompatOptions(le),Xe==L.eb))return}we==L.Tx&&Ne&&(S.O$.RefreshOwnedGames(Ae),(0,T.L)("Library/AddFriend
e.filterGroups[4]),H(!1,we&&we.filterGroups[5]),H(!1,we&&we.filterGroups[6]),H(!1,we&&we.filterGroups[7]),H(!1,we&&we.filterGroups[8])],setSuggestions:new Set}}Reset(){this.m_filterSpec.strSearchText="",this.m_filterSpec.filterGroups.forEach(we=>we.rgOptions=[])}BIncludesTools(){const we=this.GetSelectedOptions(L.Wc);return!!we.find(Ae=>Ae==n.B7)||we.length==0}
).join(", "));let Et=this.GetSelectedOptions(L.RB);return Et.length>0&&we.push(Et.map(wt=>(0,l.we)(`#Accessibility_Feature_${V(L.RB,wt)}`)).join(", ")),we}get bIsEmpty(){return this.searchText.length==0&&this.m_filterSpec.filterGroups.every(we=>we.rgOptions.length==0)}get searchText(){return this.m_filterSpec.strSearchText}SetSearchText(we){this.m_filterSpec.str
is.GetSelectedOptions(L.Wc);Ne.length>0&&Ne.length!=Ae.length&&we.push(Ae.filter(wt=>Ne.indexOf(wt)!==-1).map(wt=>(0,l.we)(Su.LocalizeAppType(wt))).join(", "));let le=this.GetSelectedOptions(L.W6);le.length>0&&we.push(le.map(wt=>{if(wt==L.Pu){if((0,P.CI)())return(0,l.we)("#FilterElement_ValidPlatform_Linux");if((0,P.Pr)())return(0,l.we)("#FilterElement_ValidPlatform_MacOS")}return(0,l.we)("#FilterEle
.VQ,ps=r.n6.bIsGameListSortedByRecent,ha=r.n6.selectedGameListView!=r.GA,fa=r.n6.currentAppFilter.BIsSelected(as.W6,as.Sr),$a=!Jr,Ua=!(0,tt.td)(),ka=(0,tt.CI)(),Io=r.n6.currentAppFilter.BIsSelected(as.W6,as.Pu);return(0,e.jsxs)("div",{className:go().Bar,children:[(0,e.jsx)(Tr.EN,{active:Ns,children:(0,e.jsx)(Vc,{closeModal:fs})}),(0,e.jsxs)("div",{className:go().SearchBar,ref:Si,tabIndex:-1,children:[(0,e.jsxs)
ren:(0,e.jsx)(y.i3G,{angle:0})})]}),(0,e.jsx)("div",{className:go().ViewFiltersBar,children:(0,e.jsxs)("div",{className:(0,p.A)(go().Filters,gs&&go().Disabled),children:[Ua&&(0,e.jsxs)(st.he,{direction:"top",nDelayShowMS:240,toolTipContent:ka?"#GameList_View_Platform_Linux":"#GameList_View_Platform_Apple",className:(0,p.A)(go().CheckboxWithImage,ha&&go().Disabled,Io&&go().Active),onClick:()=>ha||y1(as.W6,as.Pu,!Io),children:[ka&&(0,e.jsx)(y.Wy0,{}),!ka&&(0,e.jsx)(y.kPc,{})]}),(0,e.jsx)(st.he,{direction:"top",nDelayShowMS:240,toolTipContent:"#GameList_View_SortByRecent",className:(0,p.A)(go().CheckboxWithImage,gs&&go().Disabled,ps&&go().Active),onClick:()=>gs||K1(!ps),children:(0,e.jsx)(y.QHH,{})}),(0,e.jsx)(st.m9,{direction:"
AppType!=n.em&&Ke.local_per_client_data&&!!Ke.local_per_client_data.installed;case L.zW:return Ke.rt_last_time_played>0;case L.jn:return!Ke.rt_last_time_played;case L.Pu:return(0,P.CI)()&&!(0,P.mP)()?ke(Ke):(0,P.td)()?!0:Ke.is_available_on_current_platform&&!Ke.is_invalid_os_type;case L.fd:return e.tw.BIsAppPrivate(Ke.appid);default:return!1}}}function Ve(Ke){return Ke.BHasStoreTag}function _e(Ke){return we=>S.O$.GetOwnedGames(we).has(Ke