Source:${t.source}`),a},Ee={name:"catfact",displayName:"catfact",description:"Sends a random cat fact.",displayDescription:"Sends a random cat fact.",applicationId:"-1",inputType:1,type:1,execute:async function(t,a){try{const n=await Ie(),s=Date.now().toString();return O.sendMessage(a.channel.id,{content:U(n)},void 0,{nonce:s}),{type:4}}catch(n){return console.error("[CatFact] Error:",n),{type:4}}}},ve={name:"dogfact",displayName:"dogfact",description:"Sends a dog fact.",displayDescription:"Sends a dog fact.",applicationId:"-1",inputType:1,type:1,execute:async function(t,a){try{const n=await Re(),s=Date.now().toString();return O.sendMessage(a.channel.id,{content:U(n)},void 0,{nonce:s}),{type:4}}catch(n){return console.error("[DogFact] Error:",n),{type:4}}}},we={name:"useless",displayName:"useless",description:"Sends a useless fact.",displayDescription:"Sends a useless fact.",applicationId:"-1",inputType:1,type:1,execute:async function(t,a){try{const n=await be(),s=Date.now().toString();return O.sendMessage(a.channel.id,{content:U(n)},void 0,{nonce:s}),{type:4}}catch(n){return console.error("[UselessFact] Error:",n),{type:4}}}},v={CONTENT:"This list is over 2000 characters. Send anyway?",CONFIRM:"Send",CANCEL:"Cancel"},Ae={DETAILED:"detailed"},W="",k={SLM_NOT_INSTALLED:"This list is over 2000 characters. Install the Split Large Messages plugin to send it.",SLM_NOT_ENABLED:"This list is over 2000 characters. Enable the Split Large Messages plugin to send it."},H={SEMICOL:"; ",NEW_LINE:`
`},Te="Nothing to see here, huh...",j="github.com/fres621/vendetta-plugins",E={ENABLED:"\u2705",DISABLED:"\u274C",SELECTED:"\u2705",NOT_SELECTED:"\u274C"},De=C.findByProps("sendMessage","receiveMessage"),w=C.findByProps("sendBotMessage"),K=(function(){try{return C.findByStoreName("UserStore").getCurrentUser()?.premiumType===2?4e3:2e3}catch{return 2e3}})(),z=function(t){return Object.keys(t).includes(j)},q=function(t){return Object.values(t).find(function(a){return a.id==j})?.enabled},X=function(t){return t.find(function(a){return a.name===Ae.DETAILED})?.value??!1},B=function(t){return!t||!Array.isArray(t)||t.length===0?"Unknown":t.filter(function(a){return a&&(typeof a=="string"||typeof a=="object"&&a.name)}).map(function(a){return typeof a=="string"?a:a.name||"Unknown"}).join(H.SEMICOL)||"Unknown"},Y=function(t){return t.join(H.NEW_LINE).trimEnd()},L=function(t){return Y(t).length},P=async function(t,a){const n=Date.now().toString();await De.sendMessage(t,{content:Y(a)},void 0,{nonce:n})},J=function(t,a){return[`**My${t}List|${a}${t}s**`,W]};async function ke(t,a){try{const n=X(t),s=r.storage.themeListAlwaysDetailed??!1;if(!D.themes||typeof D.themes!="object"){const p=a.channel.id;return w.sendBotMessage(p,"No themes found or themes not loaded yet."),{type:4}}const i=Object.values(D.themes),c=a.channel.id,d=J("Theme",Object.keys(D.themes).length);if(i.length)for(const p of i){if(!p||typeof p!="object")continue;const{selected:f,data:y,id:I}=p,A=y?.name||"Unknown Theme",T=y?.description||"No description",_=y?.authors;n||s?d.push(`>**Name**:${A}`,`>**Selected**:${f?E.SELECTED:E.NOT_SELECTED}`,`>**Description**:${T}`,`>**Authors**:${B(_)}`,`>**[Install!](${I||"unknown"})**`,W):d.push(`>${f?E.SELECTED:E.NOT_SELECTED}**${A}**by${B(_)}`)}else d.push(Te);const g=L(d)>K;if(g&&!z(S.plugins))w.sendBotMessage(c,k.SLM_NOT_INSTALLED);else if(g&&!q(S.plugins))w.sendBotMessage(c,k.SLM_NOT_ENABLED);else{if(L(d)>2e3)return u.alerts.showConfirmationAlert({content:v.CONTENT,confirmText:v.CONFIRM,cancelText:v.CANCEL,onConfirm:async function(){return await P(c,d)}});await P(c,d)}}catch(n){return console.error("[ThemeList] Error:",n),{type:4}}}async function Be(t,a){try{const n=X(t),s=r.storage.pluginListAlwaysDetailed??!1,i=a.channel.id;if(!S.plugins||typeof S.plugins!="object")return w.sendBotMessage(i,"No plugins found or plugins not loaded yet."),{type:4};const c=J("Plugin",Object.keys(S.plugins).length);for(const g of Object.values(S.plugins)){if(!g||typeof g!="object")continue;const{enabled:p,manifest:f,id:y}=g,I=f?.name||"Unknown Plugin",A=f?.description||"No description",T=f?.authors;n||s?c.push(`>**Name**:${I}`,`>**Status**:${p?E.ENABLED:E.DISABLED}`,`>**Description**:${A}`,`>**Authors**:${B(T)}`,`>**[Install!](${y||"unknown"})**`,W):c.push(`>${p?E.ENABLED:E.DISABLED}**${I}**by${B(T)}`)}const d=L(c)>K;if(d&&!z(S.plugins))w.sendBotMessage(i,k.SLM_NOT_INSTALLED);else if(d&&!q(S.plugins))w.sendBotMessage(i,k.SLM_NOT_ENABLED);else{if(L(c)>2e3)return u.alerts.showConfirmationAlert({content:v.CONTENT,confirmText:v.CONFIRM,cancelText:v.CANCEL,onConfirm:async function(){return await P(i,c)}});await P(i,c)}}catch(n){return console.error("[PluginList] Error:",n),{type:4}}}const Le={name:"plugin-list",displayName:"plugin list",description:"Send your plugin list to the current channel",displayDescription:"Send your plugin list to the current channel",options:[{name:"detailed",description:"Whether to send a list with detailed information.",type:5,required:!1,displayName:"detailed",displayDescription:"Whether to send a list with detailed information."}],execute:Be,applicationId:"-1",inputType:1,type:1},Pe={name:"theme-list",displayName:"theme list",description:"Send your theme list to the current channel",displayDescription:"Send your theme list to the current channel",options:[{name:"detailed",description:"Whether to send a list with detailed information.",type:5,required:!1,displayName:"detailed",displayDescription:"Whether to send a list with detailed information."}],execute:ke,applicationId:"-1",inputType:1,type
`)},void 0,{nonce:d}),{type:4}}}catch(n){return console.error("[Sysinfo] Error:",n),{type:4}}}const Je={name:"sysinfo",displayName:"sysinfo",description:"Display system information",displayDescription:"Display system information",options:[{name:"ephemeral",displayName:"ephemeral",description:"Keep sysinfo ephemeral (default: true)",displayDescription:"Keep sysinfo ephemeral (default: true)",type:5,required:!1},...ne.slice(0,-1).map(function(t){return{name:t,displayName:t,description:`Displaythe${t}section.Setdefaultinsettings.`,displayDescription:`Displaythe${t}section.Setdefaultinsettings.`,type:5,required:!1}})],execute:Ye,applicationId:"-1",inputType:1,type:1},re=C.findByProps("sendMessage","receiveMessage"),Qe=C.findByStoreName("SpotifyStore");async function Ze(t,a){return r.storage.enabledCommands?.spotifyTrack?$(a,function(n){return`https://open.spotify.com/track/${n.id}`}):{type:4}}async function et(t,a){return r.storage.enabledCommands?.spotifyAlbum?$(a,function(n){return`https://open.spotify.com/album/${n.album.id}`}):{type:4}}async function tt(t,a){return r.storage.enabledCommands?.spotifyArtists?$(a,function(n){return n.artists.map(function(s){return`[${s.name}](${s.external_urls.spotify})`}).join(`
`)}):{type:4}}async function at(t,a){return r.storage.enabledCommands?.spotifyCover?$(a,function(n){return n.album.image.url}):{type:4}}async function $(t,a){try{const n=t.channel.id,s=Qe?.getTrack?.();if(!s){const d=Date.now().toString();return re.sendMessage(n,{content:"You are not listening to any track."},void 0,{nonce:d}),{type:4}}const i=a(s),c=Date.now().toString();return re.sendMessage(n,{content:i},void 0,{nonce:c}),{type:4}}catch(n){return console.error("[Spotify Command] Error:",n),{type:4}}}const nt={name:"spotify track",displayName:"spotify track",description:"Sends your current Spotify track",displayDescription:"Sends your current Spotify track",applicationId:"-1",inputType:1,type:1,execute:Ze},rt={name:"spotify album",displayName:"spotify album",description:"Sends your current track's album",displayDescription:"Sends your current track's album",applicationId:"-1",inputType:1,type:1,execute:et},st={name:"spotify artists",displayName:"spotify artists",description:"Sends your current track's artists",displayDescription:"Sends your current track's artists",applicationId:"-1",inputType:1,type:1,execute:tt},it={name:"spotify cover",displayName:"spotify cover",description:"Sends your current track's cover",displayDescription:"Sends your current track's cover",applicationId:"-1",inputType:1,type:1,execute:at},ot=C.findByProps("sendMessage"),ct={name:"gary",displayName:"gary",description:"Send a random Gary image to the channel.",displayDescription:"Send a random Gary image to the channel.",options:[],execute:async function(t,a){try{r.storage.garySettings||(r.storage.garySettings={imageSource:"gary"});const n=r.storage.garySettings.imageSource||"gary";console.log(`[GaryCommand]Usingimagesource:${n}`);const s=await Se(n);if(!s)return console.log("[Gary Command] No image URL received"),{type:4};console.log(`[GaryCommand]Sendingimage:${s}`);const i=Date.now().toString();return ot.sendMessage(a.channel.id,{content:s},void 0,{nonce:i}),{type:4}}catch(n){return console.error("[Gary] Error:",n),{type:4}}},applicationId:"-1",inputType:1,type:1},se=C.findByProps("sendMessage","receiveMessage"),lt=C.findByProps("getLastSelectedChannelId"),dt=C.findByProps("createBotMessage"),ut=C.findByProps("BOT_AVATARS");function M(t,a,n){const s=t??lt?.getChannelId?.(),i=dt.createBotMessage({channelId:s,content:"",embeds:n});i.author.username="Astolfo",i.author.avatar="Astolfo",ut.BOT_AVATARS.Astolfo="https://i.pinimg.com/736x/50/77/1f/50771f45b1c015cfbb8b0853ba7b8521.jpg",typeof a=="string"?i.content=a:Object.assign(i,a),se.receiveMessage(s,i)}const gt={name:"lovefemboys",displayName:"lovefemboys",description:"Get an image of a femboy",displayDescription:"Get an image of a femboy",options:[{name:"nsfw",displayName:"nsfw",description:"Get the result from r/femboys instead of r/femboy (NSFW)",displayDescription:"Get the result from r/femboys instead of r/femboy (NSFW)",required:!1,type:5},{name:"sort",displayName:"sort",description:"Changes the way reddit sorts.",displayDescription:"Changes the way reddit sorts",required:!1,type:3},{name:"silent",displayName:"silent",description:"Makes it so only you can see the message.",displayDescription:"Makes it so only you can see the message.",required:!1,type:5}],applicationId:"-1",inputType:1,type:1,execute:async function(t,a){try{const n=t.find(function(g){return g.name==="nsfw"})?.value;let s=t.find(function(g){return g.name==="sort"})?.value;const i=t.find(function(g){return g.name==="silent"})?.value;if(typeof s>"u"&&(s=r.storage.sortdefs),!["best","hot","new","rising","top","controversial"].includes(s)){M(a.channel.id,"Incorrect sorting type. Valid options are\n`best`, `hot`, `new`, `rising`, `top`, `controversial`.",[]);return}if(n&&!await new Promise(function(g){u.alerts.showConfirmationAlert({title:"\u26A0\uFE0F NSFW Content Warning",content:"This command will send NSFW (Not Safe For Work) content from r/femboys. Are you sure you want to continue?",confirmText:"Yes, Continue",onConfirm:function(){return g(!0)},cancelText:"Cancel",onCancel:function(){return g(!1)}})}))return{type:
(Youcandisablethischeckinpluginsettings)`,[]);return}n&&(c=await fetch(`https://www.reddit.com/r/femboys/${s}.json?limit=100`).then(function(g){return g.json()})),c=c.data?.children?.[Math.floor(Math.random()*c.data?.children?.length)]?.data;const d=await fetch(`https://www.reddit.com/u/${c?.author}/about.json`).then(function(g){return g.json()});if(i??!0)M(a.channel.id,"",[{type:"rich",title:c?.title,url:`https://reddit.com${c?.permalink}`,author:{name:`u/${c?.author} \u2022 r/${c?.subreddit}`,proxy_icon_url:d?.data.icon_img.split("?")[0],icon_url:d?.data.icon_img.split("?")[0]},image:{proxy_url:c?.url_overridden_by_dest?.replace(/.gifv$/g,".gif")??c?.url.replace(/.gifv$/g,".gif"),url:c?.url_overridden_by_dest?.replace(/.gifv$/g,".gif")??c?.url?.replace(/.gifv$/g,".gif"),width:c?.preview?.images?.[0]?.source?.width,height:c?.preview?.images?.[0]?.source?.height},color:"0xf4b8e4"}]);else{const g=Date.now().toString();se.sendMessage(a.channel.id,{content:c?.url_overridden_by_dest??c?.url},void 0,{nonce:g})}}catch(n){console.error("[LoveFemboys] Error:",n),M(a.channel.id,"ERROR !!!!!!!!!!!! \u{1F62D}\u{1F62D}\u{1F62D} Check debug logs!! \u{1F97A}\u{1F97A}\u{1F97A}",[])}}},yt=C.findByProps("sendMessage"),ft=C.findByProps("sendBotMessage","sendMessage","receiveMessage"),mt={name:"ip",displayName:"ip",description:"IP address and domain lookup",displayDescription:"IP address and domain lookup",options:[{name:"query",displayName:"query",description:"Enter IPv4/IPv6 address or domain name",displayDescription:"Enter IPv4/IPv6 address or domain name",type:3,required:!0},{name:"send",displayName:"send",description:"Send to chat",displayDescription:"Send to chat",type:5,required:!1},{name:"ephemeral",displayName:"ephemeral",description:"Send as ephemeral message (only you can see)",displayDescription:"Send as ephemeral message (only you can see)",type:5,required:!1}],execute:async function(t,a){try{const n=t.find(function(f){return f.name==="query"})?.value,s=t.find(function(f){return f.name==="send"})?.value||!1,i=t.find(function(f){return f.name==="ephemeral"})?.value||!1;if(!n){const f="\u274C Query parameter is required!";return i?{type:4,data:{content:f,flags:64}}:(b.showToast(f,o.getAssetIDByName("CircleXIcon")),{type:4})}!i&&!s&&b.showToast(`Looking up IP information for ${n}...`,o.getAssetIDByName("DownloadIcon"));const c=`http://ipwhois.app/json/${encodeURIComponent(n)}?objects=success,ip,type,as,org,isp,continent,country,country_capital,city,region,country_phone,latitude,longitude,timezone,currency,completed_requests`,d=await fetch(c);if(!d.ok)throw new Error(`HTTP ${d.status}: ${d.statusText}`);const g=await d.json();if(!g.success){const f=`\u274C Failed to lookup IP information for: ${n}`;return i?{type:4,data:{content:f,flags:64}}:(b.showToast(f,o.getAssetIDByName("CircleXIcon")),{type:4})}const p=`\`\`\`json
\`\`\``;if(i)return{type:4,data:{content:p,flags:64}};if(s){constf=Date.now().toString();returnyt.sendMessage(a.channel.id,{content:p},void0,{nonce:f}),{type:4}}elsereturnft.sendBotMessage(a.channel.id,p),{type:4}}catch(n){console.error("[IP] Command error:",n);consts=`\u274C An error occurred while looking up IP information: ${n.message||"Unknown error"}`;returnt?.find?.(function(i){returni.name==="ephemeral"})?.value??!1?{type:4,data:{content:s,flags:64}}:(b.showToast(s,o.getAssetIDByName("CircleXIcon")),{type:4})}},applicationId:"-1",inputType:1,type:1},pt=C.findByProps("sendMessage"),ht=C.findByProps("sendBotMessage","sendMessage","receiveMessage"),Ct=["avatar","classic","cuddle","fox_girl","gecg","holo","kemonomimi","kiss","neko","ngif","smug","spank","tickle","waifu","wallpaper","woof"];asyncfunctionbt(t,a){constn=[];for(lets=0;s<a;s++)try{s>0&&awaitnewPromise(function(d){returnsetTimeout(d,1e3)});consti=awaitfetch(`https://nekos.life/api/v2/img/${t}`);if(!i.ok){console.error(`[NekosLife] API request failed: ${i.status}`);continue}constc=awaiti.json();c.url&&n.push(c.url)}catch(i){console.error(`[NekosLife] Error fetching image ${s+1}:`,i)}returnn}functionRt(t){return!t||typeoft!="string"?!1:Ct.includes(t.toLowerCase().trim())}constIt={name:"nekoslife",displayName:"nekoslife",description:"Get SFW images/gifs from nekos.life",displayDescription:"Get SFW images/gifs from nekos.life",options:[{name:"category",displayName:"category",description:"Category name (e.g. neko, waifu, cuddle, etc.)",displayDescription:"Category name (e.g. neko, waifu, cuddle, etc.)",type:3,required:!0},{name:"limit",displayName:"limit",description:"Number of images (1-5, default: 1)",displayDescription:"Number of images (1-5, default: 1)",type:4,required:!1},{name:"send",displayName:"send",description:"Send to chat",displayDescription:"Send to chat",type:5,required:!1},{name:"ephemeral",displayName:"ephemeral",description:"Send as ephemeral message (only you can see)",displayDescription:"Send as ephemeral message (only you can see)",type:5,required:!1}],execute:asyncfunction(t,a){try{console.log("[NekosLife] Command executed with args:",t);constn=t.find(function(y){returny.name==="category"})?.value,s=t.find(function(y){returny.name==="limit"})?.value,i=t.find(function(y){returny.name==="send"})?.value||!1,c=t.find(function(y){returny.name==="ephemeral"})?.value||!1;if(console.log("[NekosLife] Parsed values:",{categoryInput:n,limitInput:s,shouldSend:i,isEphemeral:c}),!n||typeofn!="string"){consty="\u274C Category is required! Examples: neko, waifu, cuddle, kiss";returnconsole.error("[NekosLife] No category provided"),c?{type:4,data:{content:y,flags:64}}:(b.showToast(y,o.getAssetIDByName("CircleXIcon")),{type:4})}constd=n.toLowerCase().trim();if(!Rt(d)){consty=`\u274C Invalid SFW category "${n}". Valid: neko, waifu, cuddle, kiss, holo, etc.`;returnc?{type:4,data:{content:y,flags:64}}:(b.showToast(y,o.getAssetIDByName("CircleXIcon")),{type:4})}letg=1;s!=null&&(g=parseInt(String(s))||1,g=Math.max(1,Math.min(5,g))),console.log("[NekosLife] Processing SFW request:",{category:d,limit:g,shouldSend:i,isEphemeral:c}),c||b.showToast(`Fetching ${g} SFW image(s) from nekos.life...`,o.getAssetIDByName("DownloadIcon"));constp=awaitbt(d,g);if(p.length===0){consty="\u274C Failed to fetch images from nekos.life. Try again later!";returnc?{type:4,data:{content:y,flags:64}}:(b.showToast(y,o.getAssetIDByName("CircleXIcon")),{type:4})}constf=p.join(`
`);if(c)return console.log("[NekosLife] Sending ephemeral response"),{type:4,data:{content:f,flags:64}};if(i){console.log("[NekosLife] Sending to chat");const y=Date.now().toString();return pt.sendMessage(a.channel.id,{content:f},void 0,{nonce:y}),{type:4}}else return console.log("[NekosLife] Sending as bot message"),ht.sendBotMessage(a.channel.id,f),{type:4}}catch(n){console.error("[NekosLife] Command error:",n);const s="\u274C An error occurred while fetching images.";return t?.find?.(function(i){return i.name==="ephemeral"})?.value??!1?{type:4,data:{content:s,flags:64}}:(b.showToast(s,o.getAssetIDByName("CircleXIcon")),{type:4})}},applicationId:"-1",inputType:1,type:1};var ie,oe,ce,le,de,ue;const{ScrollView:R}=e.ReactNative,{FormRow:l,FormSwitchRow:m}=Ce.Forms;(ie=r.storage).factSettings??(ie.factSettings={sendAsReply:!0,includeCitation:!1}),(oe=r.storage).listSettings??(oe.listSettings={pluginListAlwaysDetailed:!1,themeListAlwaysDetailed:!1}),(ce=r.storage).garySettings??(ce.garySettings={imageSource:"gary"}),(le=r.storage).enabledCommands??(le.enabledCommands={catfact:!0,dogfact:!0,useless:!0,petpet:!0,pluginList:!0,themeList:!0,konoself:!0,konosend:!0,firstmessage:!0,sysinfo:!0,spotifyTrack:!0,spotifyAlbum:!0,spotifyArtists:!0,spotifyCover:!0,gary:!0,ip:!0,lovefemboys:!1,nekoslife:!1}),(de=r.storage).pendingRestart??(de.pendingRestart=!1),(ue=r.storage).hiddenSettings??(ue.hiddenSettings={enabled:!1,visible:!1,konochanBypassNsfw:!1});function h({title:t,icon:a,children:n,padding:s=!1}){const i=e.stylesheet.createThemedStyleSheet({main:{backgroundColor:u.semanticColors.CARD_PRIMARY_BG,borderColor:u.semanticColors.BORDER_FAINT,borderWidth:1,borderRadius:16,overflow:"hidden",flex:1},titleContainer:{marginBottom:8,marginHorizontal:0,marginTop:8,gap:4,flexDirection:"row",alignItems:"center"},icon:{width:16,height:16,marginTop:1.5,tintColor:u.semanticColors.TEXT_MUTED},titleText:{fontSize:14,fontWeight:"600",color:u.semanticColors.TEXT_MUTED}});return e.React.createElement(e.ReactNative.View,{style:{marginHorizontal:16,marginTop:16}},t&&e.React.createElement(e.ReactNative.View,{style:i.titleContainer},a&&e.React.createElement(e.ReactNative.Image,{style:i.icon,source:a,resizeMode:"cover"}),e.React.createElement(e.ReactNative.Text,{style:i.titleText},t.toUpperCase())),e.React.createElement(e.ReactNative.View,{style:i.main},s?e.React.createElement(e.ReactNative.View,{style:{paddingHorizontal:16,paddingVertical:16}},n):n))}function Nt({onHiddenUnlock:t}){const[a,n]=e.React.useState(0),[s,i]=e.React.useState(null),c=e.stylesheet.createThemedStyleSheet({container:{flexDirection:"column",alignItems:"center",paddingVertical:24,paddingHorizontal:16},title:{fontSize:28,fontWeight:"700",color:u.semanticColors.TEXT_NORMAL,marginBottom:4},subtitle:{fontSize:16,fontWeight:"500",color:u.semanticColors.TEXT_MUTED},iconContainer:{backgroundColor:u.semanticColors.BACKGROUND_SECONDARY,borderRadius:16,padding:12,marginBottom:16},icon:{width:32,height:32,tintColor:u.semanticColors.TEXT_NORMAL}}),d=function(){if(r.storage.hiddenSettings.enabled){r.storage.hiddenSettings.visible=!r.storage.hiddenSettings.visible,b.showToast(`Hiddensettings${r.storage.hiddenSettings.visible?"visible":"hidden"}`,o.getAssetIDByName("SettingsIcon")),t?.();return}s&&clearTimeout(s);const g=setTimeout(function(){n(0)},1e3);i(g);const p=a+1;n(p),!(p<10)&&(b.showToast("\u{1F513} Hidden settings unlocked!",o.getAssetIDByName("CheckmarkIcon")),r.storage.hiddenSettings.enabled=!0,r.storage.hiddenSettings.visible=!0,n(0),t?.())};return e.React.createElement(e.ReactNative.View,{style:c.container},e.React.createElement(e.ReactNative.Pressable,{style:c.iconContainer,onPress:d},e.React.createElement(e.ReactNative.Image,{source:o.getAssetIDByName("SettingsIcon"),style:c.icon})),e.React.createElement(e.ReactNative.Text,{style:c.title},"Commands"),e.React.createElement(e.ReactNative.Text,{style:c.subtitle},"A collection of useful commands"))}function St(){const t=e.stylesheet.createThemedStyleSheet({container:{flex:1,backgroundColor:u.semanticColors.BACKGROUND_PRIMARY},tableH
`,"All categories are Safe For Work (SFW).")),e.React.createElement(h,{title:"\u{1F4CB} SFW Categories",icon:o.getAssetIDByName("ListViewIcon")},e.React.createElement(e.ReactNative.View,{style:t.tableHeader},e.React.createElement(e.ReactNative.Text,{style:[t.headerText,t.nameHeader]},"Category Name"),e.React.createElement(e.ReactNative.Text,{style:[t.headerText,t.codeHeader]},"Command Code"),e.React.createElement(e.ReactNative.Text,{style:[t.headerText,t.badgeHeader]},"Type")),n.map(function(s,i){return e.React.createElement(e.ReactNative.View,{key:i,style:t.categoryItem},e.React.createElement(e.ReactNative.Text,{style:t.categoryName},s.name),e.React.createElement(e.ReactNative.Text,{style:t.categoryValue},s.value),e.React.createElement(e.ReactNative.View,{style:t.sfwBadgeContainer},e.React.createElement(e.ReactNative.View,{style:t.sfwBadge},e.React.createElement(e.ReactNative.Text,{style:t.badgeText},"SFW"))))}))))}function Et(){N.useProxy(r.storage);const[,t]=e.React.useReducer(function(n){return n+1},0);e.NavigationNative.useNavigation();const a=e.stylesheet.createThemedStyleSheet({container:{flex:1,backgroundColor:u.semanticColors.BACKGROUND_PRIMARY},warningText:{fontSize:14,color:u.semanticColors.TEXT_DANGER,textAlign:"center",lineHeight:20,fontWeight:"600"},infoText:{fontSize:14,color:u.semanticColors.TEXT_MUTED,textAlign:"center",lineHeight:20,marginTop:8}});return e.React.createElement(R,{style:a.container},e.React.createElement(e.ReactNative.View,{style:{paddingVertical:16}},e.React.createElement(h,{title:"\u26A0\uFE0F Warning",icon:o.getAssetIDByName("WarningIcon"),padding:!0},e.React.createElement(e.ReactNative.Text,{style:a.warningText},"These are hidden commands that may contain mature content or experimental features."),e.React.createElement(e.ReactNative.Text,{style:a.infoText},"Use at your own discretion. Commands in this section are disabled by default.")),e.React.createElement(h,{title:"Hidden Commands",icon:o.getAssetIDByName("EyeIcon")},e.React.createElement(m,{label:"/lovefemboys",subLabel:"Get random femboy images from r/femboys (NSFW content available)",leading:e.React.createElement(l.Icon,{source:o.getAssetIDByName("HeartIcon")}),value:r.storage.enabledCommands.lovefemboys,onValueChange:function(n){r.storage.enabledCommands.lovefemboys=n,r.storage.pendingRestart=!0,t()}})),e.React.createElement(h,{title:"NSFW Bypass Options",icon:o.getAssetIDByName("WarningIcon")},e.React.createElement(m,{label:"KonoChan NSFW Bypass",subLabel:"Allow NSFW KonoChan content in non-NSFW channels (USE WITH CAUTION)",leading:e.React.createElement(l.Icon,{source:o.getAssetIDByName("ShieldIcon")}),value:r.storage.hiddenSettings.konochanBypassNsfw,onValueChange:function(n){n?u.alerts.showConfirmationAlert({title:"\u26A0\uFE0F NSFW Bypass Warning",content:"Enabling this allows NSFW content from KonoChan to be sent in any channel, including non-NSFW channels. This could violate server rules or Discord ToS. Use responsibly!",confirmText:"I Understand",cancelText:"Cancel",onConfirm:function(){r.storage.hiddenSettings.konochanBypassNsfw=!0,t()},onCancel:function(){}}):(r.storage.hiddenSettings.konochanBypassNsfw=!1,t())}})),e.React.createElement(h,{title:"Hidden Settings Control",icon:o.getAssetIDByName("SettingsIcon")},e.React.createElement(m,{label:"Keep Hidden Settings Visible",subLabel:"Keep this section visible even when navigating away",leading:e.React.createElement(l.Icon,{source:o.getAssetIDByName("EyeIcon")}),value:r.storage.hiddenSettings.visible,onValueChange:function(n){r.storage.hiddenSettings.visible=n}}),e.React.createElement(l,{label:"Reset Hidden Settings",subLabel:"Hide this section and disable all hidden commands",leading:e.React.createElement(l.Icon,{source:o.getAssetIDByName("TrashIcon")}),onPress:function(){u.alerts.showConfirmationAlert({title:"Reset Hidden Settings",content:"This will hide the hidden settings section and disable all hidden commands. Are you sure?",confirmText:"Reset",onConfirm:function(){r.storage.hiddenSettings.enabled=!1,r.storage.hiddenSettings.visible=!1,r.storage.hiddenSettings.kon
`,"Tap on any developer to visit their GitHub profile.")),a.map(function(s,i){return e.React.createElement(e.ReactNative.Pressable,{key:i,style:t.creditItem,onPress:function(){return n(s.github)},android_ripple:{color:u.semanticColors.ANDROID_RIPPLE,radius:200}},e.React.createElement(e.ReactNative.Image,{source:{uri:s.avatar},style:t.avatar}),e.React.createElement(e.ReactNative.View,{style:t.textContainer},e.React.createElement(e.ReactNative.Text,{style:t.commandText},s.command),e.React.createElement(e.ReactNative.Text,{style:t.authorText},"by ",s.author),e.React.createElement(e.ReactNative.Text,{style:t.linkText},s.github.replace("https://github.com/","@"))))}),e.React.createElement(h,{title:"About",icon:o.getAssetIDByName("InfoIcon"),padding:!0},e.React.createElement(e.ReactNative.Text,{style:t.versionText},"Commands Plugin Collection",`
`,"Version 1.2.0"))))}function Pt(){N.useProxy(r.storage);const t=e.NavigationNative.useNavigation(),[,a]=e.React.useReducer(function(n){return n+1},0);return e.React.useEffect(function(){return function(){r.storage.pendingRestart&&(r.storage.pendingRestart=!1,u.alerts.showConfirmationAlert({title:"Restart Required",content:"You have made changes to commands. Please restart Discord to apply these changes.",confirmText:"Okay",cancelText:null}))}},[]),e.React.createElement(R,{style:{flex:1,backgroundColor:u.semanticColors.BACKGROUND_PRIMARY}},e.React.createElement(Nt,{onHiddenUnlock:a}),e.React.createElement(h,{title:"Command Categories",icon:o.getAssetIDByName("ChannelListIcon")},e.React.createElement(l,{label:"Facts Commands",subLabel:"Cat facts, dog facts, and useless facts",leading:e.React.createElement(l.Icon,{source:o.getAssetIDByName("BookmarkIcon")}),trailing:e.React.createElement(l.Arrow,null),onPress:function(){return t.push("VendettaCustomPage",{title:"Facts Commands",render:vt})}}),e.React.createElement(l,{label:"List Commands",subLabel:"Plugin lists and theme lists",leading:e.React.createElement(l.Icon,{source:o.getAssetIDByName("ListViewIcon")}),trailing:e.React.createElement(l.Arrow,null),onPress:function(){return t.push("VendettaCustomPage",{title:"List Commands",render:At})}}),e.React.createElement(l,{label:"Image Commands",subLabel:"PetPet, KonoChan, and image utilities",leading:e.React.createElement(l.Icon,{source:o.getAssetIDByName("ImageIcon")}),trailing:e.React.createElement(l.Arrow,null),onPress:function(){return t.push("VendettaCustomPage",{title:"Image Commands",render:Tt})}}),e.React.createElement(l,{label:"Gary Commands",subLabel:`Garyimages-Current:${r.storage.garySettings.imageSource==="gary"?"Gary API":r.storage.garySettings.imageSource==="catapi"?"Cat API":r.storage.garySettings.imageSource==="minker"?"Minker API":r.storage.garySettings.imageSource==="goober"?"Goober API":"Gary API"}`,leading:e.React.createElement(l.Icon,{source:o.getAssetIDByName("CameraIcon")}),trailing:e.React.createElement(l.Arrow,null),onPress:function(){return t.push("VendettaCustomPage",{title:"Gary Commands",render:wt})}}),e.React.createElement(l,{label:"Spotify Commands",subLabel:"Share your Spotify activity",leading:e.React.createElement(l.Icon,{source:o.getAssetIDByName("SpotifyNeutralIcon")}),trailing:e.React.createElement(l.Arrow,null),onPress:function(){return t.push("VendettaCustomPage",{title:"Spotify Commands",render:Dt})}}),e.React.createElement(l,{label:"Aliucord Commands",subLabel:"Commands from Aliucord",leading:e.React.createElement(l.Icon,{source:{uri:"https://avatars.githubusercontent.com/u/78881422?s=200&v=4"}}),trailing:e.React.createElement(l.Arrow,null),onPress:function(){return t.push("VendettaCustomPage",{title:"Aliucord",render:Bt})}}),e.React.createElement(l,{label:"Other Commands",subLabel:"Utility and system commands",leading:e.React.createElement(l.Icon,{source:o.getAssetIDByName("WrenchIcon")}),trailing:e.React.createElement(l.Arrow,null),onPress:function(){return t.push("VendettaCustomPage",{title:"Other Commands",render:kt})}})),r.storage.hiddenSettings?.visible&&e.React.createElement(h,{title:"\u{1F513} Hidden Settings",icon:o.getAssetIDByName("EyeIcon")},e.React.createElement(l,{label:"Hidden Commands",subLabel:"Access to experimental and NSFW commands",leading:e.React.createElement(l.Icon,{source:o.getAssetIDByName("EyeIcon")}),trailing:e.React.createElement(l.Arrow,null),onPress:function(){return t.push("VendettaCustomPage",{title:"Hidden Settings",render:Et})}})),e.React.createElement(h,{title:"\u{1F3F7}\uFE0F Other",icon:o.getAssetIDByName("InformationIcon")},e.React.createElement(l,{label:"Credits",subLabel:"View original authors of the plugins",leading:e.React.createElement(l.Icon,{source:o.getAssetIDByName("HeartIcon")}),trailing:e.React.createElement(l.Arrow,null),onPress:function(){return t.push("VendettaCustomPage",{title:"Credits",render:Lt})}})),e.React.createElement(e.ReactNative.View,{style:{height:32}}))}r.storage.factSettings||(r.storage.factSettings={sendAsReply:!0