2026-09-26 17:57:22 +00:00
// Module ID: 13388
// Function ID: 13389
2026-09-21 13:40:21 +00:00
// Name: VibegrationsCustomWidget
2026-09-26 17:57:22 +00:00
// Dependencies: [2063, 504, 1434, 5306, 2]
// Exports: composeVibegrationsCustomWidgetPrompt, useCanConjureVibegrationsCustomWidget
2026-09-21 13:40:21 +00:00
2026-09-26 17:57:22 +00:00
// Module 13388 (VibegrationsCustomWidget)
import GuildStore from "GuildStore" /* 2063 */ ;
2026-09-21 13:40:21 +00:00
const require = globalThis . __r ;
const require = fn ;
const size = fn ( 2 ) ;
const result = size . fileFinishedImporting ( "modules/vibegrations/lib/VibegrationsCustomWidget.tsx" ) ;
export const VIBEGRATIONS_CUSTOM_WIDGET_PROMPT_MAX_LENGTH = 2000 ;
2026-09-26 17:57:22 +00:00
export const useCanConjureVibegrationsCustomWidget = function useCanConjureVibegrationsCustomWidget ( UserProfileContent , isMobileGameCollectionExperimentEnabled ) {
_require = UserProfileContent ;
let flag = isMobileGameCollectionExperimentEnabled ;
if ( isMobileGameCollectionExperimentEnabled === undefined ) {
2026-09-21 13:40:21 +00:00
flag = true ;
}
const items = [ GuildStore , require ( "ApexExperiment" ) . ApexExperimentStore ] ;
2026-09-26 17:57:22 +00:00
const items1 = [ UserProfileContent , flag ] ;
2026-09-21 13:40:21 +00:00
return require ( "initialize" ) . useStateFromStores ( items , ( ) = > {
let someResult = flag ;
if ( flag ) {
const guildsArray = GuildStore . getGuildsArray ( ) ;
2026-09-26 17:57:22 +00:00
someResult = guildsArray . some ( ( item ) = > closure_0 ( flag [ 3 ] ) . isVibegrationsGuildEligible ( item , UserProfileContent ) ) ;
2026-09-21 13:40:21 +00:00
}
return someResult ;
} , items1 ) ;
2026-09-26 17:57:22 +00:00
} ;
2026-09-21 13:40:21 +00:00
export const composeVibegrationsCustomWidgetPrompt = function composeVibegrationsCustomWidgetPrompt ( arg0 ) {
const items = [ "Build a profile card (an application profile widget) for my Discord profile." , "Read the data from the public source below \u2014 it must be reachable without a login." , "Recommend which fields the card should show and ask me to confirm or edit them before you build." , "" , arg0 ] ;
return items . join ( "\n" ) ;
} ;