{"version":3,"file":"StructuredData.DwrGa12M.mjs","names":["_jsx","__esmMin","init_jsx_runtime","c","addPropertyControls","init_framer_BWzg2IRg","ControlType","StructuredData","props","kind","name","description","slug","price","date","style","url","SITE","BASE","id","suffix","graph","svc","ORG","post","crumbs","sec","SECTION","json","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":"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