Loading
function(e,t,n){"use strict";n.d(t,{A:()=>f,e:()=>u});var i,r=n(635377),s=n.n(r),a=n(994369),o=n(17928),l=n(228366),u=((i={})[i.FETCHING=0]="FETCHING",i[i.FETCHED=1]="FETCHED",i[i.ERROR=2]="ERROR",i);function d(e){let{query:t,guildId:n,page:i,pageSize:r,categoryId:s,integrationType:o,minUserInstallCommandCount:l,excludeAppsWithCustomInstallUrl:u,excludeNonEmbeddedApps:d,excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand:c,source:_=a.V.APP_DIRECTORY}=e;return`query:'${t}' guildId:${n} page:${i} pageSize:${r} categoryId:${s} integrationType:${o} minUserInstallCommandCount:${l} excludeAppsWithCustomInstallUrl:${u} excludeNonEmbeddedApps:${d} excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand:${c} source:${_}`}let c=new(s())({max:20}),_={};class h extends o.Ay.Store{static displayName="ApplicationDirectorySearchStore";getSearchResults(e){let{query:t,guildId:n,page:i,pageSize:r,categoryId:s,integrationType:a,minUserInstallCommandCount:o,excludeAppsWithCustomInstallUrl:l,excludeNonEmbeddedApps:u,excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand:_,source:h}=e,f=d({query:t,guildId:n,page:i,pageSize:r,categoryId:s,integrationType:a,minUserInstallCommandCount:o,excludeAppsWithCustomInstallUrl:l,excludeNonEmbeddedApps:u,excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand:_,source:h});return c.get(f)}getFetchState(e){let{query:t,guildId:n,page:i,pageSize:r,categoryId:s,integrationType:a,minUserInstallCommandCount:o,excludeAppsWithCustomInstallUrl:l,excludeNonEmbeddedApps:u,excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand:c,source:h}=e;return _[d({query:t,guildId:n,page:i,pageSize:r,categoryId:s,integrationType:a,minUserInstallCommandCount:o,excludeAppsWithCustomInstallUrl:l,excludeNonEmbeddedApps:u,excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand:c,source:h})]}}let f=new h(l.h,{APPLICATION_DIRECTORY_FETCH_SEARCH:function(e){let{query:t,guildId:n,page:i,pageSize:r,categoryId:s,integrationType:a,minUserInstallCommandCount:o,excludeAppsWithCustomInstallUrl:l,excludeNonEmbeddedApps:u,excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand:c,source:h}=e,f=d({query:t,guildId:n,page:i,pageSize:r,categoryId:s,integrationType:a,minUserInstallCommandCount:o,excludeAppsWithCustomInstallUrl:l,excludeNonEmbeddedApps:u,excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand:c,source:h});_={..._,[f]:0}},APPLICATION_DIRECTORY_FETCH_SEARCH_SUCCESS:function(e){let{query:t,guildId:n,page:i,pageSize:r,categoryId:s,result:a,integrationType:o,minUserInstallCommandCount:l,excludeAppsWithCustomInstallUrl:u,excludeNonEmbeddedApps:h,excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand:f,source:E}=e,p=d({query:t,guildId:n,page:i,pageSize:r,categoryId:s,integrationType:o,minUserInstallCommandCount:l,excludeAppsWithCustomInstallUrl:u,excludeNonEmbeddedApps:h,excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand:f,source:E});c.set(p,{lastFetchTimeMs:Date.now(),...a}),_={..._,[p]:1}},APPLICATION_DIRECTORY_FETCH_SEARCH_FAILURE:function(e){let{query:t,guildId:n,page:i,pageSize:r,categoryId:s,integrationType:a,minUserInstallCommandCount:o,excludeAppsWithCustomInstallUrl:l,excludeNonEmbeddedApps:u,excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand:c,source:h}=e,f=d({query:t,guildId:n,page:i,pageSize:r,categoryId:s,integrationType:a,minUserInstallCommandCount:o,excludeAppsWithCustomInstallUrl:l,excludeNonEmbeddedApps:u,excludeEmbeddedAppsWithoutPrimaryEntryPointAppCommand:c,source:h});_={..._,[f]:2}}})}