{"version":3,"file":"StructuredData.DdRGGt2K.mjs","names":["__esmMin","init_jsx_runtime","c","addPropertyControls","init_framer_Bf4_tcb2","ControlType","StructuredData","props","url","slug","SITE","BASE","kind","id","suffix","graph","svc","name","ORG","price","post","date","crumbs","sec","SECTION","json","style","init_StructuredData"],"sources":["https:/framerusercontent.com/modules/ajY0NBfdg2BFrOdc39qa/cWSEoVP0sjPVEMSv1Amf/StructuredData.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// Movello · JSON-LD structured data for CMS detail pages (permits, services, blog posts, visa types).\n// Renders an invisible <script type=\"application/ld+json\"> so search engines and AI assistants can read the page as data.\n// The page URL comes from the page itself, so \"slug\" is optional (CMS slugs can't be bound to a text control).\n// The organization itself is described once, site-wide, in Site Settings custom code (\"SEO · Organization structured data\").\nconst SITE=\"https://gomovello.com\";const ORG=SITE+\"/#organization\";const BASE={permit:\"/permits/\",service:\"/services/\",article:\"/blog/\",type:\"/types/\"};const SECTION={permit:[\"Visa routes\",\"/permits\"],article:[\"Blog\",\"/blog\"],type:[\"Visa types\",\"/types\"]};/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function StructuredData(props){const{kind=\"permit\",name=\"\",description=\"\",slug=\"\",price=0,date,style}=props;const url=slug?SITE+(BASE[kind]||\"/\")+slug:undefined;const id=suffix=>url?url+suffix:undefined;const graph=[];if(kind===\"permit\"||kind===\"service\"){const svc={\"@type\":\"Service\",\"@id\":id(\"#service\"),name:kind===\"permit\"?name+\" permit in Spain\":name,description,url,serviceType:kind===\"permit\"?\"Visa and residence permit application support\":name,provider:{\"@id\":ORG},areaServed:{\"@type\":\"Country\",name:\"Spain\"}};if(kind===\"service\"&&price>0)svc.offers={\"@type\":\"Offer\",price:String(price),priceCurrency:\"EUR\",url,availability:\"https://schema.org/InStock\"};graph.push(svc);}if(kind===\"article\"){const post={\"@type\":\"BlogPosting\",\"@id\":id(\"#article\"),headline:name,description,url,mainEntityOfPage:url,author:{\"@id\":ORG},publisher:{\"@id\":ORG},inLanguage:\"en\"};if(date)post.datePublished=date;graph.push(post);}if(kind===\"type\")graph.push({\"@type\":\"CollectionPage\",\"@id\":url,name,description,url,isPartOf:{\"@id\":SITE+\"/#website\"}});const crumbs=[{\"@type\":\"ListItem\",position:1,name:\"Home\",item:SITE+\"/\"}];const sec=SECTION[kind];if(sec)crumbs.push({\"@type\":\"ListItem\",position:2,name:sec[0],item:SITE+sec[1]});crumbs.push({\"@type\":\"ListItem\",position:crumbs.length+1,name,item:url});graph.push({\"@type\":\"BreadcrumbList\",itemListElement:crumbs});const json=JSON.stringify({\"@context\":\"https://schema.org\",\"@graph\":graph}).replace(/</g,\"\\\\u003c\");return /*#__PURE__*/_jsx(\"div\",{style:{...style,width:1,height:1,overflow:\"hidden\"},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:json}})});}StructuredData.defaultProps={kind:\"permit\",name:\"\",description:\"\",slug:\"\",price:0};addPropertyControls(StructuredData,{kind:{type:ControlType.Enum,title:\"Page type\",options:[\"permit\",\"service\",\"article\",\"type\"],optionTitles:[\"Permit\",\"Service\",\"Blog post\",\"Visa type\"],defaultValue:\"permit\"},name:{type:ControlType.String,title:\"Name\",defaultValue:\"\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"\"},slug:{type:ControlType.String,title:\"Slug\",defaultValue:\"\"},price:{type:ControlType.Number,title:\"Price (EUR)\",defaultValue:0,min:0,step:1},date:{type:ControlType.Date,title:\"Date\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredData\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredData.map"],"mappings":"A,4JA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