{"version":3,"file":"TwitterReplyGenerator.Dt3UhVXb.mjs","names":["useState","useRef","useCallback","error","startTransition"],"sources":["https:/framerusercontent.com/modules/aXlZMwUmuKr2PY8HyahI/84s3w7PC29A3ZqZDYjqg/TwitterReplyGenerator.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useCallback,startTransition,useEffect,useRef}from\"react\";import{addPropertyControls,ControlType}from\"framer\";// Helper functions for global reCAPTCHA management\nconst getRecaptchaState=()=>{if(typeof window===\"undefined\")return null;if(!window.__recaptchaState){window.__recaptchaState={ready:false,loading:false,callbacks:[]};}return window.__recaptchaState;};const notifyRecaptchaReady=()=>{const state=getRecaptchaState();if(!state)return;state.ready=true;state.callbacks.forEach(callback=>callback());state.callbacks=[];};const onRecaptchaReady=callback=>{const state=getRecaptchaState();if(!state)return;if(state.ready){callback();}else{state.callbacks.push(callback);}};export default function TwitterReplyGenerator(props){const{twitterUrl=\"https://twitter.com/user/status/1234567890\",prompt=\"Generate a thoughtful and engaging reply to this tweet.\",apiKey=\"\",recaptchaSiteKey=\"\",twitterApiKey=\"AAAAAAAAAAAAAAAAAAAAAIvA7AEAAAAAEcYh0v8Gk2w%2FnNVsNlE%2FVrMgIGs%3D12aOM4PWnge8NQGfTCfCBgeYMVzOmUhPAa1bkED4fjE3WDYidf\",buttonText=\"Reply on Twitter\",buttonColor=\"#1DA1F2\",buttonTextColor=\"#FFFFFF\",buttonFont,borderRadius=8,style}=props;const[isLoading,setIsLoading]=useState(false);const[error,setError]=useState(\"\");const[recaptchaReady,setRecaptchaReady]=useState(false);const[showOverlay,setShowOverlay]=useState(false);const[editedReply,setEditedReply]=useState(\"\");const[tweetText,setTweetText]=useState(\"\");const tweetEmbedRef=useRef(null);const extractTweetId=useCallback(url=>{const patterns=[/twitter\\.com\\/\\w+\\/status\\/(\\d+)/,/x\\.com\\/\\w+\\/status\\/(\\d+)/,/\\/status\\/(\\d+)/];for(const pattern of patterns){const match=url.match(pattern);if(match)return match[1];}return null;},[]);const extractUsername=useCallback(url=>{const patterns=[/twitter\\.com\\/(\\w+)\\/status/,/x\\.com\\/(\\w+)\\/status/];for(const pattern of patterns){const match=url.match(pattern);if(match)return match[1];}return null;},[]);const executeRecaptcha=useCallback(()=>{return new Promise((resolve,reject)=>{if(typeof window===\"undefined\"||!window.grecaptcha){reject(new Error(\"reCAPTCHA not loaded\"));return;}window.grecaptcha.ready(()=>{window.grecaptcha.execute(recaptchaSiteKey,{action:\"generate_reply\"}).then(token=>{resolve(token);}).catch(error=>{reject(error);});});});},[recaptchaSiteKey]);// Load reCAPTCHA script with global state management\nuseEffect(()=>{if(typeof window===\"undefined\"||!recaptchaSiteKey){return;}const state=getRecaptchaState();if(!state)return;// If already ready, set state immediately\nif(state.ready){setRecaptchaReady(true);return;}// Register callback for when reCAPTCHA becomes ready\nonRecaptchaReady(()=>{setRecaptchaReady(true);});// Only load script if not already loading/loaded\nif(state.loading){return;}const existingScript=document.querySelector(`script[src^=\"https://www.google.com/recaptcha/api.js\"]`);if(existingScript){state.loading=true;if(window.grecaptcha){window.grecaptcha.ready(()=>{notifyRecaptchaReady();});}return;}state.loading=true;const script=document.createElement(\"script\");script.src=`https://www.google.com/recaptcha/api.js?render=${recaptchaSiteKey}`;script.async=true;script.defer=true;script.onload=()=>{if(window.grecaptcha){window.grecaptcha.ready(()=>{notifyRecaptchaReady();});}};script.onerror=()=>{setError(\"Failed to load reCAPTCHA\");if(state){state.loading=false;}};document.head.appendChild(script);},[recaptchaSiteKey]);// Fetch tweet content using multiple methods\nconst fetchTweetContent=useCallback(async tweetId=>{// Method 1: Try Twitter API v2 (requires Bearer Token)\nif(twitterApiKey){try{const response=await fetch(`https://api.twitter.com/2/tweets/${tweetId}?tweet.fields=text`,{headers:{Authorization:`Bearer ${twitterApiKey}`}});if(response.ok){const data=await response.json();return data.data?.text||\"\";}}catch(err){console.error(\"Twitter API failed:\",err);}}// Method 2: Try CORS proxy with oEmbed\ntry{const corsProxy=\"https://corsproxy.io/?\";const response=await fetch(`${corsProxy}${encodeURIComponent(`https://publish.twitter.com/oembed?url=https://twitter.com/i/status/${tweetId}&omit_script=true`)}`);if(response.ok){const data=await response.json();const htmlContent=data.html||\"\";const tempDiv=document.createElement(\"div\");tempDiv.innerHTML=htmlContent;const textContent=tempDiv.textContent||tempDiv.innerText||\"\";const cleanText=textContent.replace(/https?:\\/\\/[^\\s]+/g,\"\").replace(/\\s+/g,\" \").trim();if(cleanText)return cleanText;}}catch(err){console.error(\"CORS proxy failed:\",err);}// Method 3: Alternative CORS proxy\ntry{const altProxy=\"https://api.allorigins.win/raw?url=\";const response=await fetch(`${altProxy}${encodeURIComponent(`https://publish.twitter.com/oembed?url=https://twitter.com/i/status/${tweetId}&omit_script=true`)}`);if(response.ok){const data=await response.json();const htmlContent=data.html||\"\";const tempDiv=document.createElement(\"div\");tempDiv.innerHTML=htmlContent;const textContent=tempDiv.textContent||tempDiv.innerText||\"\";const cleanText=textContent.replace(/https?:\\/\\/[^\\s]+/g,\"\").replace(/\\s+/g,\" \").trim();if(cleanText)return cleanText;}}catch(err){console.error(\"Alternative proxy failed:\",err);}throw new Error(\"Could not fetch tweet content\");},[twitterApiKey]);const generateReply=useCallback(async()=>{if(!twitterUrl||!prompt||!apiKey){setError(\"Missing required fields (URL, prompt, or API key)\");return;}if(!recaptchaSiteKey){setError(\"Missing reCAPTCHA site key\");return;}if(!recaptchaReady){setError(\"reCAPTCHA not ready yet\");return;}const tweetId=extractTweetId(twitterUrl);if(!tweetId){setError(\"Could not extract tweet ID from URL\");return;}startTransition(()=>{setIsLoading(true);setError(\"\");});try{// Execute reCAPTCHA\nconst recaptchaToken=await executeRecaptcha();console.log(\"reCAPTCHA verified\");// Fetch tweet content\nlet tweetContent=\"\";try{tweetContent=await fetchTweetContent(tweetId);setTweetText(tweetContent);console.log(\"Tweet content fetched:\",tweetContent.substring(0,100));}catch(err){// If tweet fetching fails, still try to generate a reply based on URL\nconsole.warn(\"Could not fetch tweet, using URL only\");setTweetText(\"(Tweet content unavailable - generating based on URL)\");}// Send to Perplexity - use tweet content if available, otherwise use URL\nconst perplexityPrompt=tweetContent?`${prompt}\n\nTweet content: \"${tweetContent}\"`:`${prompt}\n\nTwitter Post URL: ${twitterUrl}\n\nNote: Unable to fetch tweet content directly. Please search for and analyze this tweet to generate an appropriate reply.`;const response=await fetch(\"https://api.perplexity.ai/chat/completions\",{method:\"POST\",headers:{\"Content-Type\":\"application/json\",Authorization:`Bearer ${apiKey}`},body:JSON.stringify({model:\"sonar\",messages:[{role:\"user\",content:perplexityPrompt}]})});if(!response.ok){const errorText=await response.text();throw new Error(`API Error: ${response.status} - ${errorText}`);}const data=await response.json();const reply=data.choices?.[0]?.message?.content||\"\";if(!reply){throw new Error(\"No reply generated from API\");}const username=extractUsername(twitterUrl);const fullReply=username?`@${username} ${reply}`:reply;startTransition(()=>{setEditedReply(fullReply);setShowOverlay(true);setIsLoading(false);});}catch(err){const errorMessage=err instanceof Error?err.message:\"An error occurred\";startTransition(()=>{setError(errorMessage);setIsLoading(false);});console.error(\"Error generating reply:\",err);}},[twitterUrl,prompt,apiKey,recaptchaSiteKey,recaptchaReady,extractTweetId,extractUsername,executeRecaptcha,fetchTweetContent]);// Load Twitter widgets script and render embedded tweet\nuseEffect(()=>{if(typeof window===\"undefined\")return;const tweetId=extractTweetId(twitterUrl);if(!tweetId)return;if(!window.twttr){const script=document.createElement(\"script\");script.src=\"https://platform.twitter.com/widgets.js\";script.async=true;script.charset=\"utf-8\";document.body.appendChild(script);script.onload=()=>{if(window.twttr&&tweetEmbedRef.current){window.twttr.widgets.createTweet(tweetId,tweetEmbedRef.current,{theme:\"light\",align:\"center\"});}};}else{if(tweetEmbedRef.current){tweetEmbedRef.current.innerHTML=\"\";window.twttr.widgets.createTweet(tweetId,tweetEmbedRef.current,{theme:\"light\",align:\"center\"});}}},[twitterUrl,extractTweetId]);const handleCloseOverlay=useCallback(()=>{startTransition(()=>{setShowOverlay(false);});},[]);const handlePostReply=useCallback(()=>{const tweetId=extractTweetId(twitterUrl);if(!tweetId)return;const encodedReply=encodeURIComponent(editedReply);const link=`https://twitter.com/intent/tweet?in_reply_to=${tweetId}&text=${encodedReply}`;if(typeof window!==\"undefined\"){window.open(link,\"_blank\",\"noopener,noreferrer\");}startTransition(()=>{setShowOverlay(false);});},[editedReply,twitterUrl,extractTweetId]);return /*#__PURE__*/_jsxs(\"div\",{style:{...style,width:\"100%\",height:\"100%\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",gap:\"12px\",padding:\"20px\"},children:[/*#__PURE__*/_jsx(\"div\",{ref:tweetEmbedRef,style:{width:\"100%\",maxWidth:\"550px\",minHeight:\"200px\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"}}),/*#__PURE__*/_jsx(\"button\",{onClick:generateReply,disabled:isLoading||!recaptchaReady,style:{padding:\"12px 24px\",borderRadius:borderRadius,border:\"none\",backgroundColor:buttonColor,color:buttonTextColor,cursor:isLoading||!recaptchaReady?\"not-allowed\":\"pointer\",opacity:isLoading||!recaptchaReady?.6:1,...buttonFont},children:!recaptchaReady?\"Loading...\":isLoading?\"Generating Reply...\":\"Generate AI Reply\"}),tweetText&&/*#__PURE__*/_jsxs(\"div\",{style:{fontSize:\"12px\",color:\"#666\",maxWidth:\"500px\",padding:\"8px\",backgroundColor:\"#f5f5f5\",borderRadius:4,textAlign:\"center\"},children:[tweetText.substring(0,150),\"...\"]}),error&&/*#__PURE__*/_jsx(\"div\",{style:{color:\"#ef4444\",fontSize:\"12px\",textAlign:\"center\",maxWidth:\"400px\",padding:\"8px\",backgroundColor:\"#fee\",borderRadius:4},children:error}),!recaptchaReady&&!error&&/*#__PURE__*/_jsx(\"div\",{style:{color:\"#666\",fontSize:\"12px\"},children:\"Initializing...\"}),showOverlay&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",top:0,left:0,right:0,bottom:0,backgroundColor:\"rgba(0, 0, 0, 0.5)\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",zIndex:9999},onClick:handleCloseOverlay,children:/*#__PURE__*/_jsxs(\"div\",{style:{backgroundColor:\"#FFFFFF\",borderRadius:16,padding:\"24px\",maxWidth:\"500px\",width:\"90%\",maxHeight:\"80vh\",overflow:\"auto\",display:\"flex\",flexDirection:\"column\",gap:\"16px\",boxShadow:\"0 4px 20px rgba(0, 0, 0, 0.15)\"},onClick:e=>e.stopPropagation(),children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\"},children:[/*#__PURE__*/_jsx(\"h3\",{style:{margin:0,fontSize:\"18px\",fontWeight:600,color:\"#000000\"},children:\"Edit Your Reply\"}),/*#__PURE__*/_jsx(\"button\",{onClick:handleCloseOverlay,style:{background:\"none\",border:\"none\",fontSize:\"24px\",cursor:\"pointer\",color:\"#666\",padding:\"0\",width:\"32px\",height:\"32px\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\"},children:\"\\xd7\"})]}),tweetText&&!tweetText.includes(\"unavailable\")&&/*#__PURE__*/_jsxs(\"div\",{style:{fontSize:\"13px\",color:\"#666\",padding:\"10px\",backgroundColor:\"#f9fafb\",borderRadius:6,borderLeft:\"3px solid #1DA1F2\"},children:[/*#__PURE__*/_jsx(\"strong\",{children:\"Replying to:\"}),\" \",tweetText]}),/*#__PURE__*/_jsx(\"textarea\",{value:editedReply,onChange:e=>startTransition(()=>setEditedReply(e.target.value)),style:{width:\"100%\",minHeight:\"150px\",padding:\"12px\",borderRadius:8,border:\"1px solid #E5E7EB\",fontSize:\"14px\",fontFamily:\"inherit\",resize:\"vertical\",outline:\"none\"},placeholder:\"Edit your reply...\"}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:\"12px\",justifyContent:\"flex-end\"},children:[/*#__PURE__*/_jsx(\"button\",{onClick:handleCloseOverlay,style:{padding:\"10px 20px\",borderRadius:8,border:\"1px solid #E5E7EB\",backgroundColor:\"#FFFFFF\",color:\"#000000\",cursor:\"pointer\",fontSize:\"14px\",fontWeight:600},children:\"Cancel\"}),/*#__PURE__*/_jsx(\"button\",{onClick:handlePostReply,style:{padding:\"10px 20px\",borderRadius:8,border:\"none\",backgroundColor:buttonColor,color:buttonTextColor,cursor:\"pointer\",fontSize:\"14px\",fontWeight:600},children:\"Post on Twitter\"})]})]})})]});}addPropertyControls(TwitterReplyGenerator,{twitterUrl:{type:ControlType.String,title:\"Tweet URL\",defaultValue:\"https://twitter.com/user/status/1234567890\",placeholder:\"https://twitter.com/user/status/...\"},apiKey:{type:ControlType.String,title:\"API Key\",defaultValue:\"\",placeholder:\"Enter Perplexity API key\",obscured:true},prompt:{type:ControlType.String,title:\"Reply Prompt\",defaultValue:\"Generate a thoughtful and engaging reply to this tweet.\",displayTextArea:true},buttonColor:{type:ControlType.Color,title:\"Button Color\",defaultValue:\"#1DA1F2\"},buttonTextColor:{type:ControlType.Color,title:\"Button Text Color\",defaultValue:\"#FFFFFF\"},buttonText:{type:ControlType.String,title:\"Button Title\",defaultValue:\"Reply on Twitter\"},buttonFont:{type:ControlType.Font,title:\"Button Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"14px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"}},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:8,min:0,max:32,step:1,unit:\"px\"},recaptchaSiteKey:{type:ControlType.String,title:\"reCAPTCHA Site Key\",defaultValue:\"\",placeholder:\"Enter reCAPTCHA site key\"},twitterApiKey:{type:ControlType.String,title:\"Twitter API Key\",defaultValue:\"AAAAAAAAAAAAAAAAAAAAAIvA7AEAAAAAEcYh0v8Gk2w%2FnNVsNlE%2FVrMgIGs%3D12aOM4PWnge8NQGfTCfCBgeYMVzOmUhPAa1bkED4fjE3WDYidf\",placeholder:\"Enter Twitter Bearer Token\",obscured:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Twitter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