{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/f0V0YMisszJs7u7R1EUf/O2EubSIl1DSPTT3nAned/siteMetadata.js"],
  "sourcesContent": ["// Generated by Framer (1bcc82d)\nexport default function metadata(params,activeLocale){return{customHTMLHeadEnd:\"<script>\\n// Framer Integration Script for YouTube Thumbnail Generator\\n// Add this to your Framer site's custom code or component\\n\\nclass ThumbnailGenerator {\\n  constructor(apiBaseUrl = 'https://thumbnail-generator1-production.up.railway.app') {\\n    this.apiBaseUrl = apiBaseUrl;\\n    this.isGenerating = false;\\n  }\\n\\n  // Generate thumbnail with text prompt and optional reference images\\n  async generateThumbnail(options) {\\n    const {\\n      prompt,\\n      style = 'mrbeast',\\n      customStyle = '',\\n      referenceImages = [],\\n      includeText = false,\\n      thumbnailText = '',\\n      onProgress = () => {},\\n      onSuccess = () => {},\\n      onError = () => {}\\n    } = options;\\n\\n    if (this.isGenerating) {\\n      onError('Generation already in progress');\\n      return;\\n    }\\n\\n    this.isGenerating = true;\\n    onProgress('Starting generation...');\\n\\n    try {\\n      // Prepare form data\\n      const formData = new FormData();\\n      formData.append('prompt', prompt);\\n      formData.append('style', style);\\n      \\n      if (customStyle) {\\n        formData.append('customStyle', customStyle);\\n      }\\n      \\n      if (includeText && thumbnailText) {\\n        formData.append('includeText', 'true');\\n        formData.append('thumbnailText', thumbnailText);\\n      }\\n\\n      // Add reference images if provided\\n      referenceImages.forEach((file, index) => {\\n        formData.append('referenceImages', file);\\n      });\\n\\n      onProgress('Generating thumbnail...');\\n\\n      const response = await fetch(`${this.apiBaseUrl}/api/generate`, {\\n        method: 'POST',\\n        body: formData\\n      });\\n\\n      if (!response.ok) {\\n        const errorData = await response.json();\\n        throw new Error(errorData.error || 'Generation failed');\\n      }\\n\\n      const result = await response.json();\\n      \\n      onProgress('Thumbnail generated successfully!');\\n      onSuccess(result);\\n      \\n      return result;\\n\\n    } catch (error) {\\n      console.error('Thumbnail generation error:', error);\\n      onError(error.message);\\n      throw error;\\n    } finally {\\n      this.isGenerating = false;\\n    }\\n  }\\n\\n  // Get available styles\\n  async getStyles() {\\n    try {\\n      const response = await fetch(`${this.apiBaseUrl}/api/styles`);\\n      const data = await response.json();\\n      return data.styles;\\n    } catch (error) {\\n      console.error('Error fetching styles:', error);\\n      return [];\\n    }\\n  }\\n\\n  // Download thumbnail\\n  downloadThumbnail(thumbnailUrl, filename = 'youtube-thumbnail.jpg') {\\n    const link = document.createElement('a');\\n    link.href = `${this.apiBaseUrl}${thumbnailUrl}`;\\n    link.download = filename;\\n    document.body.appendChild(link);\\n    link.click();\\n    document.body.removeChild(link);\\n  }\\n}\\n\\n// Initialize the generator\\nconst thumbnailGen = new ThumbnailGenerator('https://thumbnail-generator1-production.up.railway.app');\\n\\n// Example usage functions for your Framer components\\n\\nasync function handleThumbnailGeneration() {\\n  // Get form values from your Framer components\\n  const prompt = document.getElementById('prompt-input')?.value || '';\\n  const style = document.getElementById('style-selector')?.value || 'mrbeast';\\n  const thumbnailText = document.getElementById('text-input')?.value || '';\\n  const includeText = document.getElementById('include-text-checkbox')?.checked || false;\\n  \\n  // Get file input\\n  const fileInput = document.getElementById('reference-images');\\n  const referenceImages = fileInput ? Array.from(fileInput.files) : [];\\n\\n  // UI elements for feedback\\n  const loadingEl = document.getElementById('loading-indicator');\\n  const errorEl = document.getElementById('error-message');\\n  const resultEl = document.getElementById('result-container');\\n  const previewEl = document.getElementById('thumbnail-preview');\\n  const downloadBtn = document.getElementById('download-btn');\\n\\n  try {\\n    // Show loading\\n    if (loadingEl) loadingEl.style.display = 'block';\\n    if (errorEl) errorEl.style.display = 'none';\\n\\n    const result = await thumbnailGen.generateThumbnail({\\n      prompt,\\n      style,\\n      referenceImages,\\n      includeText,\\n      thumbnailText,\\n      onProgress: (message) => {\\n        console.log('Progress:', message);\\n        // Update progress indicator if you have one\\n      },\\n      onSuccess: (result) => {\\n        // Show result\\n        if (resultEl) resultEl.style.display = 'block';\\n        if (previewEl) {\\n          previewEl.src = `${thumbnailGen.apiBaseUrl}${result.thumbnailUrl}`;\\n          previewEl.style.display = 'block';\\n        }\\n        \\n        // Setup download button\\n        if (downloadBtn) {\\n          downloadBtn.onclick = () => {\\n            thumbnailGen.downloadThumbnail(result.thumbnailUrl);\\n          };\\n          downloadBtn.style.display = 'block';\\n        }\\n      },\\n      onError: (error) => {\\n        if (errorEl) {\\n          errorEl.textContent = error;\\n          errorEl.style.display = 'block';\\n        }\\n      }\\n    });\\n\\n  } catch (error) {\\n    console.error('Generation failed:', error);\\n    if (errorEl) {\\n      errorEl.textContent = error.message;\\n      errorEl.style.display = 'block';\\n    }\\n  } finally {\\n    // Hide loading\\n    if (loadingEl) loadingEl.style.display = 'none';\\n  }\\n}\\n\\n// Load available styles on page load\\nasync function loadStyles() {\\n  try {\\n    const styles = await thumbnailGen.getStyles();\\n    const styleSelector = document.getElementById('style-selector');\\n    \\n    if (styleSelector && styles.length > 0) {\\n      styleSelector.innerHTML = '';\\n      styles.forEach(style => {\\n        const option = document.createElement('option');\\n        option.value = style.id;\\n        option.textContent = style.name;\\n        option.title = style.description;\\n        styleSelector.appendChild(option);\\n      });\\n    }\\n  } catch (error) {\\n    console.error('Error loading styles:', error);\\n  }\\n}\\n\\n// Mock YouTube preview function\\nfunction createMockYouTubePreview(thumbnailUrl) {\\n  const mockContainer = document.getElementById('youtube-mock-container');\\n  if (!mockContainer) return;\\n  \\n  mockContainer.innerHTML = `\\n    <div style=\\\"\\n      max-width: 400px;\\n      background: #fff;\\n      border-radius: 12px;\\n      overflow: hidden;\\n      box-shadow: 0 4px 12px rgba(0,0,0,0.1);\\n      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;\\n    \\\">\\n      <div style=\\\"position: relative;\\\">\\n        <img src=\\\"${thumbnailUrl}\\\" alt=\\\"Generated Thumbnail\\\" style=\\\"\\n          width: 100%;\\n          height: auto;\\n          aspect-ratio: 16/9;\\n          object-fit: cover;\\n        \\\">\\n        <div style=\\\"\\n          position: absolute;\\n          bottom: 8px;\\n          right: 8px;\\n          background: rgba(0,0,0,0.8);\\n          color: white;\\n          padding: 2px 6px;\\n          border-radius: 4px;\\n          font-size: 12px;\\n          font-weight: 500;\\n        \\\">10:32</div>\\n      </div>\\n      <div style=\\\"padding: 12px;\\\">\\n        <h3 style=\\\"\\n          margin: 0 0 8px 0;\\n          font-size: 16px;\\n          font-weight: 600;\\n          line-height: 1.3;\\n          color: #0f0f0f;\\n        \\\">Your Amazing Video Title Here</h3>\\n        <div style=\\\"\\n          display: flex;\\n          align-items: center;\\n          gap: 8px;\\n          color: #606060;\\n          font-size: 14px;\\n        \\\">\\n          <div style=\\\"\\n            width: 24px;\\n            height: 24px;\\n            border-radius: 50%;\\n            background: #ff0000;\\n            display: flex;\\n            align-items: center;\\n            justify-content: center;\\n            color: white;\\n            font-weight: bold;\\n            font-size: 10px;\\n          \\\">YT</div>\\n          <span>Your Channel \u2022 1.2M views \u2022 2 days ago</span>\\n        </div>\\n      </div>\\n    </div>\\n  `;\\n}\\n\\n// Initialize when page loads\\ndocument.addEventListener('DOMContentLoaded', () => {\\n  loadStyles();\\n  \\n  // Setup generate button click handler\\n  const generateBtn = document.getElementById('generate-btn');\\n  if (generateBtn) {\\n    generateBtn.addEventListener('click', handleThumbnailGeneration);\\n  }\\n});\\n\\n// Export for use in Framer components\\nif (typeof window !== 'undefined') {\\n  window.ThumbnailGenerator = ThumbnailGenerator;\\n  window.thumbnailGen = thumbnailGen;\\n  window.handleThumbnailGeneration = handleThumbnailGeneration;\\n  window.createMockYouTubePreview = createMockYouTubePreview;\\n}\\n</script>\",description:\"YouTuber Store lets you earn money online instantly through monetized YouTube channels. Fast delivery, no copyrights, and instant ads.\",favicon:\"https://framerusercontent.com/assets/pdIW1SK85pskDCh6VbctL4yY.png\",robots:\"max-image-preview:large\",title:\"YouTuber Store\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"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