{"version":3,"file":"SEO_StructuredData.CSiOU0NH.mjs","names":[],"sources":["https:/framerusercontent.com/modules/8L3VOfcTwxSZ37xk5OCU/h6chBVg0C8lBj3ErOCrZ/SEO_StructuredData.js"],"sourcesContent":["// SEO Structured Data Component - Adds JSON-LD schema markup for better search engine visibility\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * SEO Structured Data\n *\n * Adds JSON-LD structured data to improve search engine visibility.\n * Place this component on your pages (it renders invisibly).\n * Supports Organization, SoftwareApplication, WebSite, Breadcrumb, Article, and FAQ schemas.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function SEO_StructuredData(props){const{organizationName=\"LTV AI\",organizationDescription=\"The First Autonomous AI Email & SMS Platform for ecommerce brands\",organizationUrl=\"https://ltv.ai\",organizationLogo=\"https://framerusercontent.com/images/BqljDszytE5UmMEXBLiDMQKG6tc.png\",organizationType=\"SoftwareApplication\",contactEmail=\"hello@ltv.ai\",socialLinks=\"https://twitter.com/ltvai,https://linkedin.com/company/ltvai\",includeWebsite=true,includeBreadcrumb=false,breadcrumbItems=\"Home,/\",includeArticle=false,articleTitle=\"\",articleDescription=\"\",articleAuthor=\"LTV AI\",articleDatePublished=\"\",articleDateModified=\"\",articleImage=\"\",includeFaq=false,faqItems=\"\"}=props;// Parse social links\nconst socialLinksArray=socialLinks.split(\",\").map(link=>link.trim()).filter(link=>link.length>0);// Build Organization schema\nconst organizationSchema={\"@context\":\"https://schema.org\",\"@type\":\"Organization\",name:organizationName,description:organizationDescription,url:organizationUrl,logo:organizationLogo,contactPoint:{\"@type\":\"ContactPoint\",email:contactEmail,contactType:\"customer service\"},sameAs:socialLinksArray};// Build SoftwareApplication schema (for SaaS products)\nconst softwareSchema={\"@context\":\"https://schema.org\",\"@type\":\"SoftwareApplication\",name:organizationName,description:organizationDescription,url:organizationUrl,applicationCategory:\"BusinessApplication\",operatingSystem:\"Web\",offers:{\"@type\":\"Offer\",price:\"0\",priceCurrency:\"USD\",availability:\"https://schema.org/InStock\"}};// Build WebSite schema with search action\nconst websiteSchema={\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",name:organizationName,url:organizationUrl,potentialAction:{\"@type\":\"SearchAction\",target:{\"@type\":\"EntryPoint\",urlTemplate:`${organizationUrl}/blog?search={search_term_string}`},\"query-input\":\"required name=search_term_string\"}};// Build Breadcrumb schema\nconst parseBreadcrumbs=()=>{const items=breadcrumbItems.split(\",\").map(item=>item.trim());const breadcrumbList=[];for(let i=0;i<items.length;i+=2){if(items[i]&&items[i+1]){breadcrumbList.push({\"@type\":\"ListItem\",position:breadcrumbList.length+1,name:items[i],item:items[i+1].startsWith(\"http\")?items[i+1]:`${organizationUrl}${items[i+1]}`});}}return breadcrumbList;};const breadcrumbSchema={\"@context\":\"https://schema.org\",\"@type\":\"BreadcrumbList\",itemListElement:parseBreadcrumbs()};// Build Article schema (for blog posts and case studies)\nconst articleSchema={\"@context\":\"https://schema.org\",\"@type\":\"Article\",headline:articleTitle,description:articleDescription,author:{\"@type\":\"Organization\",name:articleAuthor||organizationName},publisher:{\"@type\":\"Organization\",name:organizationName,logo:{\"@type\":\"ImageObject\",url:organizationLogo}},...articleDatePublished?{datePublished:articleDatePublished}:{},...articleDateModified?{dateModified:articleDateModified}:{},...articleImage?{image:articleImage}:{}};// Build FAQ schema\nconst parseFaqItems=()=>{if(!faqItems)return[];const lines=faqItems.split(\"\\n\").filter(line=>line.trim());const faqList=[];for(let i=0;i<lines.length;i+=2){if(lines[i]&&lines[i+1]){faqList.push({\"@type\":\"Question\",name:lines[i].trim(),acceptedAnswer:{\"@type\":\"Answer\",text:lines[i+1].trim()}});}}return faqList;};const faqSchema={\"@context\":\"https://schema.org\",\"@type\":\"FAQPage\",mainEntity:parseFaqItems()};// Choose main schema based on type\nconst mainSchema=organizationType===\"SoftwareApplication\"?softwareSchema:organizationSchema;// Combine all schemas\nconst schemas=[mainSchema];if(includeWebsite)schemas.push(websiteSchema);if(includeBreadcrumb&&parseBreadcrumbs().length>0)schemas.push(breadcrumbSchema);if(includeArticle&&articleTitle)schemas.push(articleSchema);if(includeFaq&&parseFaqItems().length>0)schemas.push(faqSchema);return /*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",width:0,height:0,overflow:\"hidden\",visibility:\"hidden\"},children:schemas.map((schema,index)=>/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:JSON.stringify(schema)}},index))});}addPropertyControls(SEO_StructuredData,{organizationName:{type:ControlType.String,title:\"Company Name\",defaultValue:\"LTV AI\"},organizationDescription:{type:ControlType.String,title:\"Description\",defaultValue:\"The First Autonomous AI Email & SMS Platform for ecommerce brands\",displayTextArea:true},organizationUrl:{type:ControlType.String,title:\"Website URL\",defaultValue:\"https://ltv.ai\"},organizationLogo:{type:ControlType.String,title:\"Logo URL\",defaultValue:\"https://framerusercontent.com/images/BqljDszytE5UmMEXBLiDMQKG6tc.png\"},organizationType:{type:ControlType.Enum,title:\"Schema Type\",options:[\"Organization\",\"SoftwareApplication\"],optionTitles:[\"Organization\",\"Software/SaaS\"],defaultValue:\"SoftwareApplication\"},contactEmail:{type:ControlType.String,title:\"Contact Email\",defaultValue:\"hello@ltv.ai\"},socialLinks:{type:ControlType.String,title:\"Social Links\",defaultValue:\"https://twitter.com/ltvai,https://linkedin.com/company/ltvai\",displayTextArea:true,description:\"Comma-separated social media URLs\"},includeWebsite:{type:ControlType.Boolean,title:\"WebSite Schema\",defaultValue:true,enabledTitle:\"Include\",disabledTitle:\"Exclude\"},includeBreadcrumb:{type:ControlType.Boolean,title:\"Breadcrumbs\",defaultValue:false,enabledTitle:\"Include\",disabledTitle:\"Exclude\"},breadcrumbItems:{type:ControlType.String,title:\"Breadcrumb Items\",defaultValue:\"Home,/\",displayTextArea:true,description:\"Format: Name1,URL1,Name2,URL2\",hidden:props=>!props.includeBreadcrumb},includeArticle:{type:ControlType.Boolean,title:\"Article Schema\",defaultValue:false,enabledTitle:\"Include\",disabledTitle:\"Exclude\"},articleTitle:{type:ControlType.String,title:\"Article Title\",defaultValue:\"\",hidden:props=>!props.includeArticle},articleDescription:{type:ControlType.String,title:\"Article Desc\",defaultValue:\"\",displayTextArea:true,hidden:props=>!props.includeArticle},articleAuthor:{type:ControlType.String,title:\"Author\",defaultValue:\"LTV AI\",hidden:props=>!props.includeArticle},articleDatePublished:{type:ControlType.String,title:\"Date Published\",defaultValue:\"\",description:\"ISO format: 2024-01-15\",hidden:props=>!props.includeArticle},articleDateModified:{type:ControlType.String,title:\"Date Modified\",defaultValue:\"\",description:\"ISO format: 2024-01-15\",hidden:props=>!props.includeArticle},articleImage:{type:ControlType.String,title:\"Article Image\",defaultValue:\"\",description:\"Full URL to article hero image\",hidden:props=>!props.includeArticle},includeFaq:{type:ControlType.Boolean,title:\"FAQ Schema\",defaultValue:false,enabledTitle:\"Include\",disabledTitle:\"Exclude\"},faqItems:{type:ControlType.String,title:\"FAQ Items\",defaultValue:\"\",displayTextArea:true,description:\"Alternating lines: Question\\\\nAnswer\\\\nQuestion\\\\nAnswer\",hidden:props=>!props.includeFaq}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SEO_StructuredData\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SEO_StructuredData.map"],"mappings":"4JAUG,SAAwB,EAAmB,EAAM,CAAC,GAAK,CAAC,mBAAiB,SAAS,0BAAwB,oEAAoE,kBAAgB,iBAAiB,mBAAiB,uEAAuE,mBAAiB,sBAAsB,eAAa,eAAe,cAAY,+DAA+D,iBAAe,GAAK,oBAAkB,GAAM,kBAAgB,SAAS,iBAAe,GAAM,eAAa,GAAG,qBAAmB,GAAG,gBAAc,SAAS,uBAAqB,GAAG,sBAAoB,GAA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