{"version":3,"file":"SEO_StructuredData.8HppjFbP.mjs","names":[],"sources":["https:/framerusercontent.com/modules/8L3VOfcTwxSZ37xk5OCU/grJjGUbQPx4h1r63vCPj/SEO_StructuredData.js"],"sourcesContent":["// SEO Structured Data — JSON-LD: Organization (+ optional SoftwareApplication), WebSite, Breadcrumb, Article, FAQ.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";function stripHtml(raw){if(!raw)return\"\";return raw.replace(/<script\\b[^<]*(?:(?!<\\/script>)<[^<]*)*<\\/script>/gi,\" \").replace(/<style\\b[^<]*(?:(?!<\\/style>)<[^<]*)*<\\/style>/gi,\" \").replace(/<[^>]+>/g,\" \").replace(/&nbsp;/g,\" \").replace(/&amp;/g,\"&\").replace(/\\s+/g,\" \").trim();}/**\n * SEO Structured Data\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\",articleAuthorIsPerson=false,articleDatePublished=\"\",articleDateModified=\"\",articleImage=\"\",includeFaq=false,faqItems=\"\"}=props;const socialLinksArray=socialLinks.split(\",\").map(link=>link.trim()).filter(link=>link.length>0);const 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};const 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\"}};const websiteSchema={\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",name:organizationName,url:organizationUrl,potentialAction:{\"@type\":\"SearchAction\",target:{\"@type\":\"EntryPoint\",urlTemplate:`${organizationUrl.replace(/\\/+$/,\"\")}/blog?search={search_term_string}`},\"query-input\":\"required name=search_term_string\"}};const parseBreadcrumbs=()=>{const raw=breadcrumbItems.split(\",\").map(item=>item.trim());const breadcrumbList=[];for(let i=0;i<raw.length;i+=2){const name=raw[i];const urlPart=raw[i+1];if(name&&urlPart){const itemUrl=urlPart.startsWith(\"http\")?urlPart:`${organizationUrl.replace(/\\/+$/,\"\")}${urlPart.startsWith(\"/\")?urlPart:`/${urlPart}`}`;breadcrumbList.push({\"@type\":\"ListItem\",position:breadcrumbList.length+1,name,item:itemUrl});}}return breadcrumbList;};const breadcrumbSchema={\"@context\":\"https://schema.org\",\"@type\":\"BreadcrumbList\",itemListElement:parseBreadcrumbs()};const articleDescPlain=stripHtml(articleDescription).slice(0,320);const authorSchema=articleAuthorIsPerson?{\"@type\":\"Person\",name:articleAuthor||organizationName}:{\"@type\":\"Organization\",name:articleAuthor||organizationName};const articleSchema={\"@context\":\"https://schema.org\",\"@type\":\"Article\",headline:articleTitle,...articleDescPlain?{description:articleDescPlain}:{},author:authorSchema,publisher:{\"@type\":\"Organization\",name:organizationName,logo:{\"@type\":\"ImageObject\",url:organizationLogo}},...articleDatePublished?{datePublished:articleDatePublished}:{},...articleDateModified?{dateModified:articleDateModified}:{},...articleImage?{image:articleImage}:{}};const 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()};const schemas=[];schemas.push(organizationSchema);if(organizationType===\"SoftwareApplication\"){schemas.push(softwareSchema);}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:\"Product schema\",options:[\"Organization\",\"SoftwareApplication\"],optionTitles:[\"Organization only\",\"Also SoftwareApplication\"],defaultValue:\"SoftwareApplication\",description:\"Organization JSON-LD is always included; enable SoftwareApplication for SaaS markup.\"},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:\"Pairs: Name1,URL1,Name2,URL2 (URL can be path like /blog or full https://…)\",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},articleAuthorIsPerson:{type:ControlType.Boolean,title:\"Author is Person\",defaultValue:true,enabledTitle:\"Person\",disabledTitle:\"Organization\",hidden:props=>!props.includeArticle},articleDatePublished:{type:ControlType.String,title:\"Date Published\",defaultValue:\"\",description:\"ISO date from CMS\",hidden:props=>!props.includeArticle},articleDateModified:{type:ControlType.String,title:\"Date Modified\",defaultValue:\"\",description:\"ISO date (optional)\",hidden:props=>!props.includeArticle},articleImage:{type:ControlType.String,title:\"Article Image\",defaultValue:\"\",description:\"Cover image URL\",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\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