{"version":3,"file":"StructuredData.DnGSHMWU.mjs","names":[],"sources":["https:/framerusercontent.com/modules/Ttj3nWu6M0WTZqqGB6Ov/fC0ZvHtrD9hDlBn8MM3a/StructuredData.js"],"sourcesContent":["// The behind-the-scenes labels that tell search engines and AI assistants what bettership.ai is (PRO-1793): schema.org\n// structured data, written into the page's HTML as JSON-LD. It draws nothing visible.\n// Two kinds, chosen by the Kind control:\n//   Site: the organization behind Bettership and the website itself. One instance in the Site Layout template, so\n//         every page carries it.\n//   App:  the desktop app, with its three plans and their regular prices. One instance each on Home, Pricing, and\n//         Download.\n// The common questions are marked up by the FAQ List component, not here, so they cannot drift from what visitors see.\n// Prices are the regular monthly and yearly prices from docs/product/site-copy/pricing.md. The founding prices are\n// left out on purpose: they end when the 200 places fill, and a search result outlives that by months.\n// site/framer/structured-data/structured-data.test.mjs checks the prices and the descriptor against their copy files.\n// This file is the source of truth for the Framer code file of the same name: change it here, then push it\n// (site/framer/structured-data/README.md).\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// The public descriptor (.agents/product-marketing.md, \"One-liner\"), word for word.\nconst DESCRIPTOR=\"Bettership is a personal AI workspace for ambitious professionals leveling up with online learning.\";// The plans, as pricing.md lists them. Yearly is the price billed once a year.\nexport const PLANS=[{name:\"Core\",monthly:8,yearly:72},{name:\"Plus\",monthly:20,yearly:192},{name:\"Max\",monthly:45,yearly:432}];const FOUNDER={\"@type\":\"Person\",name:\"Jesse Fulton\",jobTitle:\"Founder\",sameAs:[\"https://www.linkedin.com/in/jessehfulton/\",\"https://x.com/Jessehfulton\"]};// The site's own logomark icon, already hosted by Framer (the Apple touch icon, 180 by 180).\nconst LOGO=\"https://framerusercontent.com/images/D8w36hRXOznKBt09Yf2Moz7g5Xo.png\";function clean(siteUrl){return(siteUrl||\"https://www.bettership.ai\").replace(/\\/+$/,\"\");}export function siteData(siteUrl,profiles=[]){const base=clean(siteUrl);const sameAs=profiles.map(p=>(p??\"\").trim()).filter(Boolean);return{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":`${base}/#organization`,name:\"Bettership\",legalName:\"Scoutio LLC\",url:`${base}/`,logo:LOGO,description:DESCRIPTOR,email:\"hello@bettership.ai\",founder:FOUNDER,...sameAs.length?{sameAs}:{}},{\"@type\":\"WebSite\",\"@id\":`${base}/#website`,name:\"Bettership\",url:`${base}/`,description:DESCRIPTOR,publisher:{\"@id\":`${base}/#organization`},inLanguage:\"en-US\"}]};}function offer(base,plan,period){const price=(period===\"month\"?plan.monthly:plan.yearly).toFixed(2);return{\"@type\":\"Offer\",name:`${plan.name}, billed ${period===\"month\"?\"monthly\":\"yearly\"}`,url:`${base}/pricing`,price,priceCurrency:\"USD\",category:\"subscription\",priceSpecification:{\"@type\":\"UnitPriceSpecification\",price,priceCurrency:\"USD\",billingDuration:period===\"month\"?\"P1M\":\"P1Y\",unitCode:period===\"month\"?\"MON\":\"ANN\"}};}export function appData(siteUrl){const base=clean(siteUrl);return{\"@context\":\"https://schema.org\",\"@type\":\"SoftwareApplication\",\"@id\":`${base}/#app`,name:\"Bettership\",description:DESCRIPTOR,url:`${base}/`,downloadUrl:`${base}/download`,applicationCategory:\"EducationalApplication\",operatingSystem:\"macOS 13 or later, on Apple silicon (M1 or newer)\",publisher:{\"@id\":`${base}/#organization`,\"@type\":\"Organization\",name:\"Bettership\"},offers:PLANS.flatMap(plan=>[offer(base,plan,\"month\"),offer(base,plan,\"year\")])};}/** The JSON-LD text, with \"<\" escaped so nothing inside can close the script tag early. */export function structuredData(kind,siteUrl,profiles=[]){const data=kind===\"app\"?appData(siteUrl):siteData(siteUrl,profiles);return JSON.stringify(data).replace(/</g,\"\\\\u003c\");}/**\n * Structured Data\n *\n * @framerIntrinsicWidth 1\n * @framerIntrinsicHeight 1\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function StructuredData(props){const{kind=\"site\",siteUrl=\"https://www.bettership.ai\",profiles=[]}=props;return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{width:1,height:1,overflow:\"hidden\",pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:structuredData(kind,siteUrl,profiles)}})});}addPropertyControls(StructuredData,{kind:{type:ControlType.Enum,title:\"Kind\",options:[\"site\",\"app\"],optionTitles:[\"Site\",\"App\"],defaultValue:\"site\"},siteUrl:{type:ControlType.String,title:\"Site address\",defaultValue:\"https://www.bettership.ai\"},profiles:{type:ControlType.Array,title:\"Profiles\",description:\"Site only. The company's own public profiles, such as its LinkedIn page.\",control:{type:ControlType.String,defaultValue:\"\"},defaultValue:[],hidden:props=>props.kind!==\"site\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"siteData\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"appData\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"structuredData\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredData\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicHeight\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"1\"}},\"PLANS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredData.map"],"mappings":"4JAgBkF,SAAS,EAAM,EAAQ,CAAC,OAAO,GAAS,4BAAA,CAA6B,QAAQ,OAAO,EAAE,CAAE,CAAC,SAAgB,EAAS,EAAQ,EAAS,CAAC,EAAE,CAAC,IAAM,EAAK,EAAM,CAAO,EAAQ,EAAO,EAAS,IAAI,IAAI,GAAG,GAAA,CAAI,KAAK,CAAC,CAAC,CAAC,OAAO,OAAO,EAAE,MAAM,CAAC,W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