Module 747550

1,211 characters · in 30a277b9d32d70b1.js
Dependencies
Required by (4)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{A:()=>d});var i=n(449054),l=n(417426),a=n(823448),r=n(351022),s=n(282026);class o{}let d=new class extends o{loadMoreCategoryResults=async e=>{let{query:t,categoryId:n,languageCode:a,offset:s}=e;r.A.getIsFetching({query:t,categoryId:n,languageCode:a})||r.A.getIsInitialFetchComplete({query:t,categoryId:n,languageCode:a})&&(i.br({withCounts:!1,offset:s}),await l.A.fetchSearchResults(t,{categoryId:n,languageCode:a,offset:s,limit:12,withCounts:!1}))};loadCategoryResults=async e=>{let{query:t,categoryId:n,languageCode:a}=e,s=r.A.getIsFetching({query:t,categoryId:n,languageCode:a}),o=r.A.getIsInitialFetchComplete({query:t,categoryId:n,languageCode:a});s||o||(i.br({withCounts:!1,offset:0}),await l.A.fetchSearchResults(t,{categoryId:n,languageCode:a,offset:0,limit:12,withCounts:!1}))};loadCategoryResultsAndCounts=async e=>{let{query:t,loadId:n,categoryId:r,languageCode:o}=e;if(""===t.trim())return;let d=a.A.getIsFetchingCounts(t),c=a.A.getIsFetchingCounts(t);d||c||(s.A.setState({fetchedQuery:t,resultsQuery:""}),i.fd(n,r),i.br({withCounts:!0,offset:0}),await l.A.fetchSearchResults(t,{categoryId:r,languageCode:o,offset:0,limit:12,withCounts:!0}),s.A.setState({resultsQuery:t}))}}}