diff --git a/key-inspector/install/index.js b/key-inspector/install/index.js index cc840e9..71c38a4 100644 --- a/key-inspector/install/index.js +++ b/key-inspector/install/index.js @@ -1,32 +1,32 @@ -(function($,e,l,p,k,B,S,A){"use strict";const{ScrollView:F,View:j}=e.ReactNative;function O({children:t}){return e.React.createElement(F,{style:{flex:1}},t,e.React.createElement(j,{style:{height:24}}))}const{View:z,Text:D}=e.ReactNative;function I({children:t,style:r}){return e.React.createElement(z,{style:[{marginHorizontal:16,marginVertical:8,padding:10,borderRadius:8,borderWidth:1,borderColor:"rgba(128,128,128,0.25)"},r]},e.React.createElement(D,{style:{fontSize:12.5,lineHeight:18,opacity:.75}},t))}const{TouchableOpacity:x,Text:_}=e.ReactNative;function h({label:t,onPress:r,disabled:n,style:s}){return e.React.createElement(x,{disabled:n,onPress:r,style:[{backgroundColor:"#5865F2",borderRadius:8,padding:10,alignItems:"center",opacity:n?.5:1},s]},e.React.createElement(_,{style:{color:"white",fontWeight:"600"}},t))}function v(t){const r=window?.modules;if(r)for(const n in r){const s=r[n];if(!s?.isInitialized)continue;const i=s.publicModule?.exports;if(i)try{if(t(i))return i;if(i.default!=null&&t(i.default))return i.default}catch{}}}function T(t){return v(function(r){return r?.name===t||r?.displayName===t||r?.type?.name===t||r?.type?.displayName===t})}function E(t){return v(function(r){return r?.name===t||r?.displayName===t})}function P(...t){return v(function(r){return t.every(function(n){return r?.[n]!==void 0})})}function C(t){return v(function(r){return typeof r?.getName=="function"&&r.getName.length===0&&r.getName()===t})}const M=[{label:'findByProps("computePermissions", "canEveryoneRole")',run:function(){return l.findByProps("computePermissions","canEveryoneRole")}},{label:'findByProps("getBotLabel")',run:function(){return l.findByProps("getBotLabel")}},{label:'findByName("DisplayName", false)',run:function(){return l.findByName("DisplayName",!1)}},{label:'findByName("HeaderName", false)',run:function(){return l.findByName("HeaderName",!1)}},{label:'findByName("getTagProperties", false)',run:function(){return l.findByName("getTagProperties",!1)}},{label:'findByTypeNameAll("UserRow")',run:function(){return l.findByTypeNameAll("UserRow")}},{label:'findByStoreName("ThemeStore")',run:function(){return l.findByStoreName("ThemeStore")}},{label:'findByStoreName("GuildMemberStore")',run:function(){return l.findByStoreName("GuildMemberStore")}},{label:'findByStoreName("GuildStore")',run:function(){return l.findByStoreName("GuildStore")}},{label:'findByStoreName("ChannelStore")',run:function(){return l.findByStoreName("ChannelStore")}},{label:'findByStoreName("UserStore")',run:function(){return l.findByStoreName("UserStore")}},{label:'findByStoreName("RelationshipStore")',run:function(){return l.findByStoreName("RelationshipStore")}},{label:'findByName("RowManager", false)',run:function(){return l.findByName("RowManager",!1)}},{label:'findByProps("TYPING_WRAPPER_HEIGHT")',run:function(){return l.findByProps("TYPING_WRAPPER_HEIGHT")}},{label:'findByName("VoiceUserConnected", false)',run:function(){return l.findByName("VoiceUserConnected",!1)}},{label:"find(resolveSemanticColor via default.internal)",run:function(){return l.find(function(t){return t?.default?.internal?.resolveSemanticColor})}},{label:"find(resolveSemanticColor via meta)",run:function(){return l.find(function(t){return t?.meta?.resolveSemanticColor})}},{label:"find(UserProfile)",run:function(){return l.find(function(t){return t?.type?.name==="UserProfile"})}},{label:'findByName("UserProfileSection", false)',run:function(){return l.findByName("UserProfileSection",!1)}},{label:'findByProps("sendMessage", "sendBotMessage")',run:function(){return l.findByProps("sendMessage","sendBotMessage")}},{label:'findByProps("openLazy", "hideActionSheet")',run:function(){return l.findByProps("openLazy","hideActionSheet")}},{label:'findByProps("push", "pushLazy", "pop")',run:function(){return l.findByProps("push","pushLazy","pop")}},{label:'findByProps("getRenderCloseButton")',run:function(){return l.findByProps("getRenderCloseButton")}},{label:'findByProps("getHeaderCloseButton")',run:function(){return l.findByProps("getHeaderCloseButton")}},{label:'findByName("Navigator")',run:function(){return l.findByName("Navigator")}},{label:'findByName("ThemedRolePill", false)',run:function(){return l.findByName("ThemedRolePill",!1)}},{label:'findByProps("saveProfileChanges")',run:function(){return l.findByProps("saveProfileChanges")}},{label:'findByProps("useAvatarColors")',run:function(){return l.findByProps("useAvatarColors")}},{label:'findByProps("useThemeContext")',run:function(){return l.findByProps("useThemeContext")}},{label:'findByProps("getProfileTheme")',run:function(){return l.findByProps("getProfileTheme")}},{label:'findByProps("ThemeContextProvider")',run:function(){return l.findByProps("ThemeContextProvider")}},{label:"semanticColors.HEADER_SECONDARY",run:function(){return B.semanticColors?.HEADER_SECONDARY}},{label:"semanticColors.BACKGROUND_ACCENT",run:function(){return B.semanticColors?.BACKGROUND_ACCENT}},{label:"semanticColors.BACKGROUND_PRIMARY",run:function(){return B.semanticColors?.BACKGROUND_PRIMARY}},{label:"semanticColors.BACKGROUND_FLOATING",run:function(){return B.semanticColors?.BACKGROUND_FLOATING}},{label:"semanticColors.BUTTON_OUTLINE_BRAND_BORDER_ACTIVE",run:function(){return B.semanticColors?.BUTTON_OUTLINE_BRAND_BORDER_ACTIVE}},{label:"semanticColors.TEXT_NORMAL",run:function(){return B.semanticColors?.TEXT_NORMAL}}];function U(t){if(t==null)return"NOT FOUND";if(typeof t=="object"){const r=Object.keys(t);return`found (${r.length} key${r.length===1?"":"s"})`}return`found (${typeof t})`}function G(){return M.map(function({label:t,run:r}){try{const n=r();return{label:t,found:n!=null,detail:U(n)}}catch(n){return{label:t,found:!1,detail:`threw: ${n}`}}})}function H(t){const r=t.filter(function(n){return!n.found});return[`Key Inspector report - ${new Date().toISOString()}`,`${t.length} checked, ${r.length} missing`,"",...t.map(function(n){return`[${n.found?"OK":"MISSING"}] ${n.label} -> ${n.detail}`}),"",`semanticColors keys (${Object.keys(B.semanticColors??{}).length}):`,...Object.keys(B.semanticColors??{}).sort(),"",`rawColors keys (${Object.keys(B.rawColors??{}).length}):`,...Object.keys(B.rawColors??{}).sort()].join(` -`)}const L=new Set(["vendetta.metro.modules"]);function V(t){return t===null?"null":t===void 0?"undefined":Array.isArray(t)?`array(${t.length})`:typeof t}function Y(t=3){const r=new WeakSet,n=[];function s(i,f,d){if(i==null||typeof i!="object"&&typeof i!="function")return;if(L.has(f)){n.push(`${f} -> (skipped - Discord's full module registry, use the search tools for this)`);return}if(typeof i=="object"){if(r.has(i)){n.push(`${f} -> [already listed elsewhere, circular]`);return}r.add(i)}let u;try{u=Object.keys(i).sort()}catch(a){n.push(`${f} -> [couldn't read keys: ${a}]`);return}const o=u.slice(0,60);for(const a of o){const c=`${f}.${a}`;let y;try{y=i[a]}catch(m){n.push(`${c} -> [threw on access: ${m}]`);continue}const b=V(y);n.push(`${c} (${b})`),b==="object"&&d60&&n.push(`${f} -> (+${u.length-60} more keys not shown at this level)`)}try{s(globalThis.vendetta,"vendetta",0)}catch(i){n.push(`Error walking the vendetta object: ${i}`)}return n.length?n.join(` -`):"vendetta object not found or empty"}function K(t){if(t===void 0)return"undefined";if(t===null)return"null";if(typeof t=="function")return`[Function: ${t.name||"anonymous"}]`;if(typeof t!="object")return String(t);const r=new WeakSet;try{return JSON.stringify(t,function(n,s){if(typeof s=="function")return`[Function: ${s.name||"anonymous"}]`;if(typeof s=="symbol")return s.toString();if(typeof s=="object"&&s!==null){if(r.has(s))return"[Circular]";r.add(s)}return s},2)}catch{try{return`[unserializable object, keys: ${Object.keys(t).join(", ")}]`}catch(n){return`[unserializable, and Object.keys threw: ${n}]`}}}function W(t){return t.replace(/[‘’]/g,"'").replace(/[“”]/g,'"').replace(/[–—]/g,"-")}async function q(t){const r=W(t);try{const n=new Function("findByProps","findByName","findByTypeName","findByStoreName","findByPropsAll","findByNameAll","find","rawFind","rawFindByTypeName","rawFindByProps","rawFindByName","rawFindByStoreName","instead","before","after","getAssetIDByName","showToast","React","ReactNative","FluxDispatcher","window",`return (function() { +(function(E,e,s,p,k,B,S,F){"use strict";const{ScrollView:A,View:j}=e.ReactNative;function O({children:t}){return e.React.createElement(A,{style:{flex:1}},t,e.React.createElement(j,{style:{height:24}}))}const{View:_,Text:I}=e.ReactNative;function D({children:t,style:r}){return e.React.createElement(_,{style:[{marginHorizontal:16,marginVertical:8,padding:10,borderRadius:8,borderWidth:1,borderColor:"rgba(128,128,128,0.25)"},r]},e.React.createElement(I,{style:{fontSize:12.5,lineHeight:18,opacity:.75}},t))}const{TouchableOpacity:z,Text:H}=e.ReactNative;function h({label:t,onPress:r,disabled:n,style:o}){return e.React.createElement(z,{disabled:n,onPress:r,style:[{backgroundColor:"#5865F2",borderRadius:8,padding:10,alignItems:"center",opacity:n?.5:1},o]},e.React.createElement(H,{style:{color:"white",fontWeight:"600"}},t))}function v(t){const r=window?.modules;if(r)for(const n in r){const o=r[n];if(!o?.isInitialized)continue;const a=o.publicModule?.exports;if(a)try{if(t(a))return a;if(a.default!=null&&t(a.default))return a.default}catch{}}}function m(t){return v(function(r){return r?.name===t||r?.displayName===t||r?.type?.name===t||r?.type?.displayName===t})}function T(t){return v(function(r){return r?.name===t||r?.displayName===t})}function P(...t){return v(function(r){return t.every(function(n){return r?.[n]!==void 0})})}function C(t){return v(function(r){return typeof r?.getName=="function"&&r.getName.length===0&&r.getName()===t})}const x=[{label:'findByProps("computePermissions", "canEveryoneRole")',run:function(){return s.findByProps("computePermissions","canEveryoneRole")}},{label:'findByProps("getBotLabel")',run:function(){return s.findByProps("getBotLabel")}},{label:'findByName("DisplayName", false)',run:function(){return s.findByName("DisplayName",!1)}},{label:'findByName("HeaderName", false)',run:function(){return s.findByName("HeaderName",!1)}},{label:'findByName("getTagProperties", false)',run:function(){return s.findByName("getTagProperties",!1)}},{label:'findByTypeNameAll("UserRow")',run:function(){return s.findByTypeNameAll("UserRow")}},{label:'findByStoreName("ThemeStore")',run:function(){return s.findByStoreName("ThemeStore")}},{label:'findByStoreName("GuildMemberStore")',run:function(){return s.findByStoreName("GuildMemberStore")}},{label:'findByStoreName("GuildStore")',run:function(){return s.findByStoreName("GuildStore")}},{label:'findByStoreName("ChannelStore")',run:function(){return s.findByStoreName("ChannelStore")}},{label:'findByStoreName("UserStore")',run:function(){return s.findByStoreName("UserStore")}},{label:'findByStoreName("RelationshipStore")',run:function(){return s.findByStoreName("RelationshipStore")}},{label:'findByName("RowManager", false)',run:function(){return s.findByName("RowManager",!1)}},{label:'findByProps("TYPING_WRAPPER_HEIGHT")',run:function(){return s.findByProps("TYPING_WRAPPER_HEIGHT")}},{label:'findByName("VoiceUserConnected", false)',run:function(){return s.findByName("VoiceUserConnected",!1)}},{label:"find(resolveSemanticColor via default.internal)",run:function(){return s.find(function(t){return t?.default?.internal?.resolveSemanticColor})}},{label:"find(resolveSemanticColor via meta)",run:function(){return s.find(function(t){return t?.meta?.resolveSemanticColor})}},{label:"find(UserProfile)",run:function(){return s.find(function(t){return t?.type?.name==="UserProfile"})}},{label:'findByName("UserProfileSection", false)',run:function(){return s.findByName("UserProfileSection",!1)}},{label:'findByProps("sendMessage", "sendBotMessage")',run:function(){return s.findByProps("sendMessage","sendBotMessage")}},{label:'findByProps("openLazy", "hideActionSheet")',run:function(){return s.findByProps("openLazy","hideActionSheet")}},{label:'findByProps("push", "pushLazy", "pop")',run:function(){return s.findByProps("push","pushLazy","pop")}},{label:'findByProps("getRenderCloseButton")',run:function(){return s.findByProps("getRenderCloseButton")}},{label:'findByProps("getHeaderCloseButton")',run:function(){return s.findByProps("getHeaderCloseButton")}},{label:'findByName("Navigator")',run:function(){return s.findByName("Navigator")}},{label:'findByName("ThemedRolePill", false)',run:function(){return s.findByName("ThemedRolePill",!1)}},{label:'findByProps("saveProfileChanges")',run:function(){return s.findByProps("saveProfileChanges")}},{label:'findByProps("useAvatarColors")',run:function(){return s.findByProps("useAvatarColors")}},{label:'findByProps("useThemeContext")',run:function(){return s.findByProps("useThemeContext")}},{label:'findByProps("getProfileTheme")',run:function(){return s.findByProps("getProfileTheme")}},{label:'findByProps("ThemeContextProvider")',run:function(){return s.findByProps("ThemeContextProvider")}},{label:"semanticColors.HEADER_SECONDARY",run:function(){return B.semanticColors?.HEADER_SECONDARY}},{label:"semanticColors.BACKGROUND_ACCENT",run:function(){return B.semanticColors?.BACKGROUND_ACCENT}},{label:"semanticColors.BACKGROUND_PRIMARY",run:function(){return B.semanticColors?.BACKGROUND_PRIMARY}},{label:"semanticColors.BACKGROUND_FLOATING",run:function(){return B.semanticColors?.BACKGROUND_FLOATING}},{label:"semanticColors.BUTTON_OUTLINE_BRAND_BORDER_ACTIVE",run:function(){return B.semanticColors?.BUTTON_OUTLINE_BRAND_BORDER_ACTIVE}},{label:"semanticColors.TEXT_NORMAL",run:function(){return B.semanticColors?.TEXT_NORMAL}}];function M(t){if(t==null)return"NOT FOUND";if(typeof t=="object"){const r=Object.keys(t);return`found (${r.length} key${r.length===1?"":"s"})`}return`found (${typeof t})`}function U(){return x.map(function({label:t,run:r}){try{const n=r();return{label:t,found:n!=null,detail:M(n)}}catch(n){return{label:t,found:!1,detail:`threw: ${n}`}}})}function V(t){const r=t.filter(function(n){return!n.found});return[`Key Inspector report - ${new Date().toISOString()}`,`${t.length} checked, ${r.length} missing`,"",...t.map(function(n){return`[${n.found?"OK":"MISSING"}] ${n.label} -> ${n.detail}`}),"",`semanticColors keys (${Object.keys(B.semanticColors??{}).length}):`,...Object.keys(B.semanticColors??{}).sort(),"",`rawColors keys (${Object.keys(B.rawColors??{}).length}):`,...Object.keys(B.rawColors??{}).sort()].join(` +`)}const G=new Set(["vendetta.metro.modules"]);function L(t){return t===null?"null":t===void 0?"undefined":Array.isArray(t)?`array(${t.length})`:typeof t}function W(t=3){const r=new WeakSet,n=[];function o(a,d,c){if(a==null||typeof a!="object"&&typeof a!="function")return;if(G.has(d)){n.push(`${d} -> (skipped - Discord's full module registry, use the search tools for this)`);return}if(typeof a=="object"){if(r.has(a)){n.push(`${d} -> [already listed elsewhere, circular]`);return}r.add(a)}let u;try{u=Object.keys(a).sort()}catch(i){n.push(`${d} -> [couldn't read keys: ${i}]`);return}const l=u.slice(0,60);for(const i of l){const f=`${d}.${i}`;let y;try{y=a[i]}catch($){n.push(`${f} -> [threw on access: ${$}]`);continue}const R=L(y);n.push(`${f} (${R})`),R==="object"&&c60&&n.push(`${d} -> (+${u.length-60} more keys not shown at this level)`)}try{o(globalThis.vendetta,"vendetta",0)}catch(a){n.push(`Error walking the vendetta object: ${a}`)}return n.length?n.join(` +`):"vendetta object not found or empty"}function Y(t){if(t===void 0)return"undefined";if(t===null)return"null";if(typeof t=="function")return`[Function: ${t.name||"anonymous"}]`;if(typeof t!="object")return String(t);const r=new WeakSet;try{return JSON.stringify(t,function(n,o){if(typeof o=="function")return`[Function: ${o.name||"anonymous"}]`;if(typeof o=="symbol")return o.toString();if(typeof o=="object"&&o!==null){if(r.has(o))return"[Circular]";r.add(o)}return o},2)}catch{try{return`[unserializable object, keys: ${Object.keys(t).join(", ")}]`}catch(n){return`[unserializable, and Object.keys threw: ${n}]`}}}function K(t){return t.replace(/[‘’]/g,"'").replace(/[“”]/g,'"').replace(/[–—]/g,"-")}async function q(t){const r=K(t);try{const n=new Function("findByProps","findByName","findByTypeName","findByStoreName","findByPropsAll","findByNameAll","find","rawFind","rawFindByTypeName","rawFindByProps","rawFindByName","rawFindByStoreName","instead","before","after","getAssetIDByName","showToast","React","ReactNative","FluxDispatcher","window",`return (function() { ${r} -})();`)(l.findByProps,l.findByName,l.findByTypeName,l.findByStoreName,l.findByPropsAll,l.findByNameAll,l.find,v,T,P,E,C,S.instead,S.before,S.after,A.getAssetIDByName,p.showToast,e.React,e.ReactNative,e.FluxDispatcher,window),s=n&&typeof n.then=="function"?await n:n;return K(s)}catch(n){return`Error: ${n instanceof Error?`${n.message} -${n.stack??""}`:String(n)}`}}const J=500;function X(t,r){return new Promise(function(n){const s=new Map;let i=function(){},f=!1;const d=function(){if(f)return;f=!0,i();const u=r?.trim(),o=[...s.entries()].sort(function(a,c){return c[1]-a[1]}).map(function([a,c]){return`${String(c).padStart(5)} ${a}`});n(o.length?`${s.size} distinct type(s)${u?` matching "${u}"`:""} over ${t}ms: +})();`)(s.findByProps,s.findByName,s.findByTypeName,s.findByStoreName,s.findByPropsAll,s.findByNameAll,s.find,v,m,P,T,C,S.instead,S.before,S.after,F.getAssetIDByName,p.showToast,e.React,e.ReactNative,e.FluxDispatcher,window),o=n&&typeof n.then=="function"?await n:n;return Y(o)}catch(n){return`Error: ${n instanceof Error?`${n.message} +${n.stack??""}`:String(n)}`}}const J=500;function X(t,r){return new Promise(function(n){const o=new Map;let a=function(){},d=!1;const c=function(){if(d)return;d=!0,a();const u=r?.trim(),l=[...o.entries()].sort(function(i,f){return f[1]-i[1]}).map(function([i,f]){return`${String(f).padStart(5)} ${i}`});n(l.length?`${o.size} distinct type(s)${u?` matching "${u}"`:""} over ${t}ms: -${o.join(` -`)}`:`(no${u?` matching "${u}"`:""} events fired during the ${t}ms capture window)`)};try{i=S.before("dispatch",e.FluxDispatcher,function(u){const o=u[0]?.type??"(no type)",a=r?.trim();a&&!o.includes(a)||!s.has(o)&&s.size>=J||s.set(o,(s.get(o)??0)+1)})}catch(u){n(`Failed to patch FluxDispatcher.dispatch: ${u}`);return}setTimeout(d,t)})}function Q(t){try{return JSON.stringify(t,function(r,n){return typeof n=="function"?`[Function: ${n.name||"anonymous"}]`:n},2)}catch{try{return`[unserializable, keys: ${Object.keys(t??{}).join(", ")}]`}catch{return String(t)}}}function Z(t,r,n){return new Promise(function(s){const i=t.trim(),f=l.findByTypeName(i)??l.findByName(i,!1);if(!f){s(`"${i}" not found via findByTypeName or findByName.`);return}if(typeof f.type!="function"){s(`Found "${i}", but it has no callable .type property (not a memo/forwardRef wrapper), so its own render calls can't be intercepted this way. Its keys: ${Object.keys(f).join(", ")}`);return}const d=[];let u=!1,o=function(){};const a=function(){u||(u=!0,o(),s(d.length?d.join(` +${l.join(` +`)}`:`(no${u?` matching "${u}"`:""} events fired during the ${t}ms capture window)`)};try{a=S.before("dispatch",e.FluxDispatcher,function(u){const l=u[0]?.type??"(no type)",i=r?.trim();i&&!l.includes(i)||!o.has(l)&&o.size>=J||o.set(l,(o.get(l)??0)+1)})}catch(u){n(`Failed to patch FluxDispatcher.dispatch: ${u}`);return}setTimeout(c,t)})}function Q(t){try{return JSON.stringify(t,function(r,n){return typeof n=="function"?`[Function: ${n.name||"anonymous"}]`:n},2)}catch{try{return`[unserializable, keys: ${Object.keys(t??{}).join(", ")}]`}catch{return String(t)}}}function Z(t,r,n){return new Promise(function(o){const a=t.trim(),d=s.findByTypeName(a)??s.findByName(a,!1);if(!d){o(`"${a}" not found via findByTypeName or findByName.`);return}if(typeof d.type!="function"){o(`Found "${a}", but it has no callable .type property (not a memo/forwardRef wrapper), so its own render calls can't be intercepted this way. Its keys: ${Object.keys(d).join(", ")}`);return}const c=[];let u=!1,l=function(){};const i=function(){u||(u=!0,l(),o(c.length?c.join(` --- -`):`"${i}" never rendered during the ${n}ms capture window.`))};try{o=S.before("type",f,function(c){d.push(`Call ${d.length+1} props: -${Q(c[0])}`),d.length>=r&&a()})}catch(c){s(`Failed to patch "${i}": ${c}`);return}setTimeout(a,n)})}const{View:N,Text:R}=e.ReactNative,{FormSection:w,FormInput:g}=k.Forms;function ee(){const[t,r]=e.React.useState(null);return e.React.createElement(w,{title:"Full diagnostic scan"},e.React.createElement(N,{style:{paddingHorizontal:16,paddingVertical:8}},e.React.createElement(h,{label:"Run scan & copy full report",onPress:function(){const n=G(),s=n.filter(function(i){return!i.found}).length;e.clipboard.setString(H(n)),r(`${n.length} checked, ${s} missing - full report copied`),p.showToast(`${s} missing out of ${n.length} - report copied`,void 0)}}),t&&e.React.createElement(R,{style:{marginTop:8,fontSize:12.5,opacity:.7}},t)))}function te(){const[t,r]=e.React.useState(""),[n,s]=e.React.useState(null),[i,f]=e.React.useState(!1),d=async function(){if(!(!t.trim()||i)){f(!0);try{const u=await q(t);s(u),e.clipboard.setString(u),p.showToast("Result copied",void 0)}finally{f(!1)}}};return e.React.createElement(w,{title:"Eval"},e.React.createElement(N,{style:{paddingHorizontal:16,paddingVertical:8}},e.React.createElement(g,{title:"Code",placeholder:'e.g. return findByProps("getRootNavigationRef")',value:t,onChange:r,multiline:!0,autoCorrect:!1,autoCapitalize:"none",spellCheck:!1}),e.React.createElement(h,{label:i?"Running...":"Run & copy result",style:{marginTop:8},disabled:i,onPress:d}),n!=null&&e.React.createElement(R,{style:{marginTop:8,fontSize:12.5,opacity:.85},selectable:!0},n.length>2e3?`${n.slice(0,2e3)} -... (truncated, full result copied)`:n),e.React.createElement(R,{style:{marginTop:8,fontSize:12.5,opacity:.7}},"Runs as a plain (non-async) function body - a bare expression or `return ...` works, but not the async/await keywords (Hermes doesn't support those in dynamically-eval'd code). For timed/async checks, return a Promise built with a plain function instead of an arrow/async function - it gets awaited for you outside the sandbox. In scope: findByProps/findByName/ findByTypeName/findByStoreName/findByPropsAll/findByNameAll/find, the raw* passive variants (rawFind/rawFindByTypeName/rawFindByProps/rawFindByName/ rawFindByStoreName), instead/before/after, getAssetIDByName, showToast, React, ReactNative, FluxDispatcher, and window. Nothing runs until you tap the button.")))}function ne(){const[t,r]=e.React.useState(""),[n,s]=e.React.useState("10"),[i,f]=e.React.useState(null),[d,u]=e.React.useState(!1),o=async function(){if(d)return;const a=Math.max(1,Number(n)||10)*1e3;u(!0),f(null),p.showToast(`Capturing Flux events for ${a/1e3}s - go do the thing...`,void 0);try{const c=await X(a,t);f(c),e.clipboard.setString(c),p.showToast("Capture done - report copied",void 0)}finally{u(!1)}};return e.React.createElement(w,{title:"Flux event logger"},e.React.createElement(N,{style:{paddingHorizontal:16,paddingVertical:8}},e.React.createElement(g,{title:"Filter (optional substring, e.g. GUILD)",placeholder:"Leave blank to capture everything",value:t,onChange:r}),e.React.createElement(g,{title:"Capture duration (seconds)",placeholder:"10",value:n,onChange:s,keyboardType:"numeric"}),e.React.createElement(h,{label:d?"Capturing...":"Start capture",style:{marginTop:8},disabled:d,onPress:o}),i!=null&&e.React.createElement(R,{style:{marginTop:8,fontSize:12.5,opacity:.85},selectable:!0},i.length>2e3?`${i.slice(0,2e3)} -... (truncated, full report copied)`:i),e.React.createElement(R,{style:{marginTop:8,fontSize:12.5,opacity:.7}},"Tap start, then go do the thing you're trying to understand (open a screen, send a message, tap a button) before the window closes. Reports every action type that dispatched, sorted by count - the fastest way to find which event to hook into instead of guessing from decompiled source.")))}function re(){const[t,r]=e.React.useState(""),[n,s]=e.React.useState("3"),[i,f]=e.React.useState("15"),[d,u]=e.React.useState(null),[o,a]=e.React.useState(!1),c=async function(){const y=t.trim();if(!y||o)return;const b=Math.max(1,Number(i)||15)*1e3;a(!0),u(null);try{const m=await Z(y,Math.max(1,Number(n)||3),b);u(m),e.clipboard.setString(m),p.showToast("Capture done - result copied",void 0)}finally{a(!1)}};return e.React.createElement(w,{title:"Component render/props logger"},e.React.createElement(N,{style:{paddingHorizontal:16,paddingVertical:8}},e.React.createElement(g,{title:"Component name (findByTypeName / findByName)",placeholder:"e.g. YouBarNotificationsButton",value:t,onChange:r}),e.React.createElement(g,{title:"Max renders to capture",placeholder:"3",value:n,onChange:s,keyboardType:"numeric"}),e.React.createElement(g,{title:"Give up after (seconds)",placeholder:"15",value:i,onChange:f,keyboardType:"numeric"}),e.React.createElement(h,{label:o?"Waiting for renders...":"Start capture",style:{marginTop:8},disabled:o,onPress:c}),d!=null&&e.React.createElement(R,{style:{marginTop:8,fontSize:12.5,opacity:.85},selectable:!0},d.length>2e3?`${d.slice(0,2e3)} -... (truncated, full result copied)`:d),e.React.createElement(R,{style:{marginTop:8,fontSize:12.5,opacity:.7}},"Patches the component to log its actual props on every render, up to the call cap or the time limit. Only works for React.memo/forwardRef-wrapped components (most of what findByTypeName/findByName return) - a bare function component has no property to intercept its own calls through.")))}function ae(){const[t,r]=e.React.useState(""),[n,s]=e.React.useState(""),[i,f]=e.React.useState(""),[d,u]=e.React.useState(""),o=function(a,c){try{const y=c();if(!y){e.clipboard.setString(`${a} -> not found`),p.showToast("Not found - copied that result",void 0);return}const b=Object.keys(y).sort();e.clipboard.setString(`${a} -> found, keys: -${b.join(` -`)}`),p.showToast(`Found it - copied ${b.length} key(s)`,void 0)}catch(y){e.clipboard.setString(`Error running ${a}: ${y}`),p.showToast("Search failed - copied the error instead",void 0)}};return e.React.createElement(w,{title:"Raw search (bypasses the negative-result cache)"},e.React.createElement(N,{style:{paddingHorizontal:16,paddingVertical:8}},e.React.createElement(g,{title:"rawFindByProps - comma-separated prop names",placeholder:"e.g. getRootNavigationRef",value:t,onChange:r}),e.React.createElement(h,{label:"Search & copy result",style:{marginTop:8,marginBottom:16},onPress:function(){const a=t.split(",").map(function(c){return c.trim()}).filter(Boolean);a.length&&o(`rawFindByProps(${a.join(", ")})`,function(){return P(...a)})}}),e.React.createElement(g,{title:"rawFindByName",placeholder:"e.g. YouBarNotificationsButton",value:n,onChange:s}),e.React.createElement(h,{label:"Search & copy result",style:{marginTop:8,marginBottom:16},onPress:function(){return n.trim()&&o(`rawFindByName("${n.trim()}")`,function(){return E(n.trim())})}}),e.React.createElement(g,{title:"rawFindByTypeName",placeholder:"e.g. YouBarNotificationsButton",value:i,onChange:f}),e.React.createElement(h,{label:"Search & copy result",style:{marginTop:8,marginBottom:16},onPress:function(){return i.trim()&&o(`rawFindByTypeName("${i.trim()}")`,function(){return T(i.trim())})}}),e.React.createElement(g,{title:"rawFindByStoreName",placeholder:"e.g. GuildStore",value:d,onChange:u}),e.React.createElement(h,{label:"Search & copy result",style:{marginTop:8},onPress:function(){return d.trim()&&o(`rawFindByStoreName("${d.trim()}")`,function(){return C(d.trim())})}}),e.React.createElement(R,{style:{marginTop:8,fontSize:12.5,opacity:.7}},`Revenge's own findByProps/findByName/findByTypeName/findByStoreName cache a negative result forever the first time a search comes up empty, and never rescan - so if a module hasn't been required yet when you search, it can look "missing" permanently for the rest of the session even after it registers. These raw* variants only ever read modules Metro's own isInitialized flag says are already loaded (never force-requiring anything), so re-running one after doing the thing that loads your target module will actually find it.`)))}function ie(){return e.React.createElement(w,{title:"Full Vendetta API tree"},e.React.createElement(N,{style:{paddingHorizontal:16,paddingVertical:8}},e.React.createElement(h,{label:"Copy the entire plugin API tree",onPress:function(){const t=Y(3),r=t.split(` -`).length;e.clipboard.setString(t),p.showToast(`Copied ${r} lines - every key path under window.vendetta`,void 0)}}),e.React.createElement(R,{style:{marginTop:8,fontSize:12.5,opacity:.7}},"Every key path under the stable plugin API (window.vendetta), 3 levels deep - this is everything Revenge itself exposes to plugins, not Discord's raw internals (those are searchable individually below, since dumping all of them would be enormous).")))}function oe(){const[t,r]=e.React.useState(""),[n,s]=e.React.useState(""),i=function(){const o=t.split(",").map(function(a){return a.trim()}).filter(Boolean);if(o.length)try{const a=l.findByProps(...o);if(!a){e.clipboard.setString(`findByProps(${o.join(", ")}) -> not found`),p.showToast("No module found - copied that result",void 0);return}const c=Object.keys(a).sort();e.clipboard.setString(`findByProps(${o.join(", ")}) -> found, keys: -${c.join(` -`)}`),p.showToast(`Found it - copied ${c.length} key(s)`,void 0)}catch(a){e.clipboard.setString(`Error searching for ${o.join(", ")}: ${a}`),p.showToast("Search failed - copied the error instead",void 0)}},f=function(){const o=n.trim();if(o)try{const a=l.findByName(o,!1);if(!a){e.clipboard.setString(`findByName("${o}") -> not found`),p.showToast("No component found - copied that result",void 0);return}const c=Object.keys(a).sort();e.clipboard.setString(`findByName("${o}") -> found, keys: -${c.join(` -`)}`),p.showToast(`Found it - copied ${c.length} key(s)`,void 0)}catch(a){e.clipboard.setString(`Error searching for "${o}": ${a}`),p.showToast("Search failed - copied the error instead",void 0)}},d=function(){const o=t.split(",").map(function(a){return a.trim()}).filter(Boolean);if(o.length)try{const a=l.findByPropsAll(...o)??[],c=a.map(function(y,b){return`[${b}] keys: ${Object.keys(y).sort().join(", ")}`}).join(` +`):`"${a}" never rendered during the ${n}ms capture window.`))};try{l=S.before("type",d,function(f){c.push(`Call ${c.length+1} props: +${Q(f[0])}`),c.length>=r&&i()})}catch(f){o(`Failed to patch "${a}": ${f}`);return}setTimeout(i,n)})}const{View:w,Text:g}=e.ReactNative,{FormSection:N,FormInput:b}=k.Forms;function ee(){const[t,r]=e.React.useState(null);return e.React.createElement(N,{title:"Full diagnostic scan"},e.React.createElement(w,{style:{paddingHorizontal:16,paddingVertical:8}},e.React.createElement(h,{label:"Run scan & copy full report",onPress:function(){const n=U(),o=n.filter(function(a){return!a.found}).length;e.clipboard.setString(V(n)),r(`${n.length} checked, ${o} missing - full report copied`),p.showToast(`${o} missing out of ${n.length} - report copied`,void 0)}}),t&&e.React.createElement(g,{style:{marginTop:8,fontSize:12.5,opacity:.7}},t)))}function te(){const[t,r]=e.React.useState(""),[n,o]=e.React.useState(null),[a,d]=e.React.useState(!1),c=async function(){if(!(!t.trim()||a)){d(!0);try{const u=await q(t);o(u),e.clipboard.setString(u),p.showToast("Result copied",void 0)}finally{d(!1)}}};return e.React.createElement(N,{title:"Eval"},e.React.createElement(w,{style:{paddingHorizontal:16,paddingVertical:8}},e.React.createElement(b,{title:"Code",placeholder:'e.g. return findByProps("getRootNavigationRef")',value:t,onChange:r,multiline:!0,autoCorrect:!1,autoCapitalize:"none",spellCheck:!1}),e.React.createElement(h,{label:a?"Running...":"Run & copy result",style:{marginTop:8},disabled:a,onPress:c}),n!=null&&e.React.createElement(g,{style:{marginTop:8,fontSize:12.5,opacity:.85},selectable:!0},n.length>2e3?`${n.slice(0,2e3)} +... (truncated, full result copied)`:n),e.React.createElement(g,{style:{marginTop:8,fontSize:12.5,opacity:.7}},"Runs as a plain (non-async) function body - a bare expression or `return ...` works, but not the async/await keywords (Hermes doesn't support those in dynamically-eval'd code). For timed/async checks, return a Promise built with a plain function instead of an arrow/async function - it gets awaited for you outside the sandbox. In scope: findByProps/findByName/ findByTypeName/findByStoreName/findByPropsAll/findByNameAll/find, the raw* passive variants (rawFind/rawFindByTypeName/rawFindByProps/rawFindByName/ rawFindByStoreName), instead/before/after, getAssetIDByName, showToast, React, ReactNative, FluxDispatcher, and window. Nothing runs until you tap the button.")))}function ne(){const[t,r]=e.React.useState(""),[n,o]=e.React.useState("10"),[a,d]=e.React.useState(null),[c,u]=e.React.useState(!1),l=async function(){if(c)return;const i=Math.max(1,Number(n)||10)*1e3;u(!0),d(null),p.showToast(`Capturing Flux events for ${i/1e3}s - go do the thing...`,void 0);try{const f=await X(i,t);d(f),e.clipboard.setString(f),p.showToast("Capture done - report copied",void 0)}finally{u(!1)}};return e.React.createElement(N,{title:"Flux event logger"},e.React.createElement(w,{style:{paddingHorizontal:16,paddingVertical:8}},e.React.createElement(b,{title:"Filter (optional substring, e.g. GUILD)",placeholder:"Leave blank to capture everything",value:t,onChange:r}),e.React.createElement(b,{title:"Capture duration (seconds)",placeholder:"10",value:n,onChange:o,keyboardType:"numeric"}),e.React.createElement(h,{label:c?"Capturing...":"Start capture",style:{marginTop:8},disabled:c,onPress:l}),a!=null&&e.React.createElement(g,{style:{marginTop:8,fontSize:12.5,opacity:.85},selectable:!0},a.length>2e3?`${a.slice(0,2e3)} +... (truncated, full report copied)`:a),e.React.createElement(g,{style:{marginTop:8,fontSize:12.5,opacity:.7}},"Tap start, then go do the thing you're trying to understand (open a screen, send a message, tap a button) before the window closes. Reports every action type that dispatched, sorted by count - the fastest way to find which event to hook into instead of guessing from decompiled source.")))}function re(){const[t,r]=e.React.useState(""),[n,o]=e.React.useState("3"),[a,d]=e.React.useState("15"),[c,u]=e.React.useState(null),[l,i]=e.React.useState(!1),f=async function(){const y=t.trim();if(!y||l)return;const R=Math.max(1,Number(a)||15)*1e3;i(!0),u(null);try{const $=await Z(y,Math.max(1,Number(n)||3),R);u($),e.clipboard.setString($),p.showToast("Capture done - result copied",void 0)}finally{i(!1)}};return e.React.createElement(N,{title:"Component render/props logger"},e.React.createElement(w,{style:{paddingHorizontal:16,paddingVertical:8}},e.React.createElement(b,{title:"Component name (findByTypeName / findByName)",placeholder:"e.g. YouBarNotificationsButton",value:t,onChange:r}),e.React.createElement(b,{title:"Max renders to capture",placeholder:"3",value:n,onChange:o,keyboardType:"numeric"}),e.React.createElement(b,{title:"Give up after (seconds)",placeholder:"15",value:a,onChange:d,keyboardType:"numeric"}),e.React.createElement(h,{label:l?"Waiting for renders...":"Start capture",style:{marginTop:8},disabled:l,onPress:f}),c!=null&&e.React.createElement(g,{style:{marginTop:8,fontSize:12.5,opacity:.85},selectable:!0},c.length>2e3?`${c.slice(0,2e3)} +... (truncated, full result copied)`:c),e.React.createElement(g,{style:{marginTop:8,fontSize:12.5,opacity:.7}},"Patches the component to log its actual props on every render, up to the call cap or the time limit. Only works for React.memo/forwardRef-wrapped components (most of what findByTypeName/findByName return) - a bare function component has no property to intercept its own calls through.")))}function ae(){const[t,r]=e.React.useState(""),[n,o]=e.React.useState(""),[a,d]=e.React.useState(""),[c,u]=e.React.useState(""),l=function(i,f){try{const y=f();if(!y){e.clipboard.setString(`${i} -> not found`),p.showToast("Not found - copied that result",void 0);return}const R=Object.keys(y).sort();e.clipboard.setString(`${i} -> found, keys: +${R.join(` +`)}`),p.showToast(`Found it - copied ${R.length} key(s)`,void 0)}catch(y){e.clipboard.setString(`Error running ${i}: ${y}`),p.showToast("Search failed - copied the error instead",void 0)}};return e.React.createElement(N,{title:"Raw search (bypasses the negative-result cache)"},e.React.createElement(w,{style:{paddingHorizontal:16,paddingVertical:8}},e.React.createElement(b,{title:"rawFindByProps - comma-separated prop names",placeholder:"e.g. getRootNavigationRef",value:t,onChange:r}),e.React.createElement(h,{label:"Search & copy result",style:{marginTop:8,marginBottom:16},onPress:function(){const i=t.split(",").map(function(f){return f.trim()}).filter(Boolean);i.length&&l(`rawFindByProps(${i.join(", ")})`,function(){return P(...i)})}}),e.React.createElement(b,{title:"rawFindByName",placeholder:"e.g. YouBarNotificationsButton",value:n,onChange:o}),e.React.createElement(h,{label:"Search & copy result",style:{marginTop:8,marginBottom:16},onPress:function(){return n.trim()&&l(`rawFindByName("${n.trim()}")`,function(){return T(n.trim())})}}),e.React.createElement(b,{title:"rawFindByTypeName",placeholder:"e.g. YouBarNotificationsButton",value:a,onChange:d}),e.React.createElement(h,{label:"Search & copy result",style:{marginTop:8,marginBottom:16},onPress:function(){return a.trim()&&l(`rawFindByTypeName("${a.trim()}")`,function(){return m(a.trim())})}}),e.React.createElement(b,{title:"rawFindByStoreName",placeholder:"e.g. GuildStore",value:c,onChange:u}),e.React.createElement(h,{label:"Search & copy result",style:{marginTop:8},onPress:function(){return c.trim()&&l(`rawFindByStoreName("${c.trim()}")`,function(){return C(c.trim())})}}),e.React.createElement(g,{style:{marginTop:8,fontSize:12.5,opacity:.7}},`Revenge's own findByProps/findByName/findByTypeName/findByStoreName cache a negative result forever the first time a search comes up empty, and never rescan - so if a module hasn't been required yet when you search, it can look "missing" permanently for the rest of the session even after it registers. These raw* variants only ever read modules Metro's own isInitialized flag says are already loaded (never force-requiring anything), so re-running one after doing the thing that loads your target module will actually find it.`)))}function ie(){const[t,r]=e.React.useState("Not captured yet - scroll this section into view (or reopen this screen) to trigger the ref."),n=function(o){if(o)try{let a=null,d="";if(o._internalFiberInstanceHandleDEV)a=o._internalFiberInstanceHandleDEV,d="_internalFiberInstanceHandleDEV";else if(o._internalInstanceHandle)a=o._internalInstanceHandle,d="_internalInstanceHandle";else{const l=Object.keys(o).find(function(i){return i.startsWith("__reactFiber$")||i.startsWith("__reactInternalInstance$")});l&&(a=o[l],d=l)}if(!a){r(`No fiber pointer found on the instance. Instance keys: ${Object.keys(o).join(", ")||"(none)"}`);return}let c=a,u=0;for(;c.return&&u<5e3;)c=c.return,u++;window.__keyInspectorFiberRoot=c,window.__keyInspectorFiberSelf=a,r(`Captured via "${d}" (walked up ${u} level(s) to the root). window.__keyInspectorFiberRoot and window.__keyInspectorFiberSelf are now set - use Eval to walk them.`)}catch(a){r(`Error: ${a}`)}};return e.React.createElement(N,{title:"Fiber capture (for Eval)"},e.React.createElement(w,{style:{paddingHorizontal:16,paddingVertical:8}},e.React.createElement(w,{ref:n,style:{width:1,height:1}}),e.React.createElement(g,{style:{fontSize:12.5,opacity:.85},selectable:!0},t),e.React.createElement(g,{style:{marginTop:8,fontSize:12.5,opacity:.7}},"Reads React's own internal fiber pointer directly off a native view instance - works without React DevTools (confirmed absent on this build), since it's the same internal linkage React itself relies on to route touch events, not an inspector-only feature. Walks up to the root fiber automatically so Eval can search the whole live tree (whatever's actually mounted right now, not module-registry guessing) from window.__keyInspectorFiberRoot afterward.")))}function oe(){return e.React.createElement(N,{title:"Full Vendetta API tree"},e.React.createElement(w,{style:{paddingHorizontal:16,paddingVertical:8}},e.React.createElement(h,{label:"Copy the entire plugin API tree",onPress:function(){const t=W(3),r=t.split(` +`).length;e.clipboard.setString(t),p.showToast(`Copied ${r} lines - every key path under window.vendetta`,void 0)}}),e.React.createElement(g,{style:{marginTop:8,fontSize:12.5,opacity:.7}},"Every key path under the stable plugin API (window.vendetta), 3 levels deep - this is everything Revenge itself exposes to plugins, not Discord's raw internals (those are searchable individually below, since dumping all of them would be enormous).")))}function le(){const[t,r]=e.React.useState(""),[n,o]=e.React.useState(""),a=function(){const l=t.split(",").map(function(i){return i.trim()}).filter(Boolean);if(l.length)try{const i=s.findByProps(...l);if(!i){e.clipboard.setString(`findByProps(${l.join(", ")}) -> not found`),p.showToast("No module found - copied that result",void 0);return}const f=Object.keys(i).sort();e.clipboard.setString(`findByProps(${l.join(", ")}) -> found, keys: +${f.join(` +`)}`),p.showToast(`Found it - copied ${f.length} key(s)`,void 0)}catch(i){e.clipboard.setString(`Error searching for ${l.join(", ")}: ${i}`),p.showToast("Search failed - copied the error instead",void 0)}},d=function(){const l=n.trim();if(l)try{const i=s.findByName(l,!1);if(!i){e.clipboard.setString(`findByName("${l}") -> not found`),p.showToast("No component found - copied that result",void 0);return}const f=Object.keys(i).sort();e.clipboard.setString(`findByName("${l}") -> found, keys: +${f.join(` +`)}`),p.showToast(`Found it - copied ${f.length} key(s)`,void 0)}catch(i){e.clipboard.setString(`Error searching for "${l}": ${i}`),p.showToast("Search failed - copied the error instead",void 0)}},c=function(){const l=t.split(",").map(function(i){return i.trim()}).filter(Boolean);if(l.length)try{const i=s.findByPropsAll(...l)??[],f=i.map(function(y,R){return`[${R}] keys: ${Object.keys(y).sort().join(", ")}`}).join(` -`);e.clipboard.setString(`findByPropsAll(${o.join(", ")}) -> ${a.length} match(es) +`);e.clipboard.setString(`findByPropsAll(${l.join(", ")}) -> ${i.length} match(es) -${c}`),p.showToast(`${a.length} match(es) - report copied`,void 0)}catch(a){e.clipboard.setString(`Error searching for ${o.join(", ")}: ${a}`),p.showToast("Search failed - copied the error instead",void 0)}},u=function(){const o=n.trim();if(o)try{const a=l.findByNameAll(o,!1)??[],c=a.map(function(y,b){return`[${b}] keys: ${Object.keys(y).sort().join(", ")}`}).join(` +${f}`),p.showToast(`${i.length} match(es) - report copied`,void 0)}catch(i){e.clipboard.setString(`Error searching for ${l.join(", ")}: ${i}`),p.showToast("Search failed - copied the error instead",void 0)}},u=function(){const l=n.trim();if(l)try{const i=s.findByNameAll(l,!1)??[],f=i.map(function(y,R){return`[${R}] keys: ${Object.keys(y).sort().join(", ")}`}).join(` -`);e.clipboard.setString(`findByNameAll("${o}") -> ${a.length} match(es) +`);e.clipboard.setString(`findByNameAll("${l}") -> ${i.length} match(es) -${c}`),p.showToast(`${a.length} match(es) - report copied`,void 0)}catch(a){e.clipboard.setString(`Error searching for "${o}": ${a}`),p.showToast("Search failed - copied the error instead",void 0)}};return e.React.createElement(w,{title:"One-off search"},e.React.createElement(N,{style:{paddingHorizontal:16,paddingVertical:8}},e.React.createElement(g,{title:"findByProps - comma-separated prop names",placeholder:"e.g. sendMessage, sendBotMessage",value:t,onChange:r}),e.React.createElement(h,{label:"Search first match & copy",style:{marginTop:8},onPress:i}),e.React.createElement(h,{label:"Search ALL matches & copy",style:{marginTop:8,marginBottom:16},onPress:d}),e.React.createElement(g,{title:"findByName - component name",placeholder:"e.g. ThemedRolePill",value:n,onChange:s}),e.React.createElement(h,{label:"Search first match & copy",style:{marginTop:8},onPress:f}),e.React.createElement(h,{label:"Search ALL matches & copy",style:{marginTop:8},onPress:u}),e.React.createElement(R,{style:{marginTop:8,fontSize:12.5,opacity:.7}},'"ALL matches" is worth checking even when the first-match search succeeds - more than one module matching the same name/props is a common source of "found the wrong one" bugs (patching a re-export or an unrelated duplicate instead of the component actually on screen).')))}function le(){return e.React.createElement(O,null,e.React.createElement(ee,null),e.React.createElement(ae,null),e.React.createElement(oe,null),e.React.createElement(ne,null),e.React.createElement(re,null),e.React.createElement(te,null),e.React.createElement(ie,null),e.React.createElement(I,null,"The full scan checks every internal lookup this repo's plugins depend on (plus a few for plugins currently being fixed) in one pass, and includes the complete list of semanticColors/rawColors keys at the end. Paste the report back into chat when reporting a bug - it tells us exactly what's missing on your Discord version."))}var se={settings:le};return $.default=se,Object.defineProperty($,"__esModule",{value:!0}),$})({},vendetta.metro.common,vendetta.metro,vendetta.ui.toasts,vendetta.ui.components,vendetta.ui,vendetta.patcher,vendetta.ui.assets); +${f}`),p.showToast(`${i.length} match(es) - report copied`,void 0)}catch(i){e.clipboard.setString(`Error searching for "${l}": ${i}`),p.showToast("Search failed - copied the error instead",void 0)}};return e.React.createElement(N,{title:"One-off search"},e.React.createElement(w,{style:{paddingHorizontal:16,paddingVertical:8}},e.React.createElement(b,{title:"findByProps - comma-separated prop names",placeholder:"e.g. sendMessage, sendBotMessage",value:t,onChange:r}),e.React.createElement(h,{label:"Search first match & copy",style:{marginTop:8},onPress:a}),e.React.createElement(h,{label:"Search ALL matches & copy",style:{marginTop:8,marginBottom:16},onPress:c}),e.React.createElement(b,{title:"findByName - component name",placeholder:"e.g. ThemedRolePill",value:n,onChange:o}),e.React.createElement(h,{label:"Search first match & copy",style:{marginTop:8},onPress:d}),e.React.createElement(h,{label:"Search ALL matches & copy",style:{marginTop:8},onPress:u}),e.React.createElement(g,{style:{marginTop:8,fontSize:12.5,opacity:.7}},'"ALL matches" is worth checking even when the first-match search succeeds - more than one module matching the same name/props is a common source of "found the wrong one" bugs (patching a re-export or an unrelated duplicate instead of the component actually on screen).')))}function se(){return e.React.createElement(O,null,e.React.createElement(ee,null),e.React.createElement(ie,null),e.React.createElement(ae,null),e.React.createElement(le,null),e.React.createElement(ne,null),e.React.createElement(re,null),e.React.createElement(te,null),e.React.createElement(oe,null),e.React.createElement(D,null,"The full scan checks every internal lookup this repo's plugins depend on (plus a few for plugins currently being fixed) in one pass, and includes the complete list of semanticColors/rawColors keys at the end. Paste the report back into chat when reporting a bug - it tells us exactly what's missing on your Discord version."))}var ce={settings:se};return E.default=ce,Object.defineProperty(E,"__esModule",{value:!0}),E})({},vendetta.metro.common,vendetta.metro,vendetta.ui.toasts,vendetta.ui.components,vendetta.ui,vendetta.patcher,vendetta.ui.assets); diff --git a/key-inspector/install/manifest.json b/key-inspector/install/manifest.json index b7294c4..22be012 100644 --- a/key-inspector/install/manifest.json +++ b/key-inspector/install/manifest.json @@ -1 +1 @@ -{"name":"Key Inspector","description":"Plugin-dev toolkit: on-device module search (incl. a cache-safe raw mode), a Flux event logger, a component render/props logger, an eval console, and full API/color-token dumps - for diagnosing and building plugins without needing a computer.","authors":[{"name":"everestmcarthur"}],"main":"index.js","hash":"04a97db60e70adecf44fad857109e3639622a0a00d1a24862f5c19f88a4b93be"} \ No newline at end of file +{"name":"Key Inspector","description":"Plugin-dev toolkit: on-device module search (incl. a cache-safe raw mode), a Flux event logger, a component render/props logger, an eval console, and full API/color-token dumps - for diagnosing and building plugins without needing a computer.","authors":[{"name":"everestmcarthur"}],"main":"index.js","hash":"7f085719f84f18c7060fee2d57890e6dce366a2566a83e30550e6f2ce5e43deb"} \ No newline at end of file