{"version":3,"file":"StructuredData.PD0Z-XjS.mjs","names":["useMemo","__esmMin","pe","init_npm_react_18_3_1","init_jsx_runtime","c","useLocaleInfo","addPropertyControls","ControlType","init_framer_Bf4_tcb2","getRuntimeInfo","cleanSlug","slug","validSlug","pathname","landing","locale","SITE_ORIGIN","getImageUrl","image","stripHtml","input","richTextToPlainText","value","key","VehicleProductSchema","activeLocale","props","jsonLd","cleanBrand","brand","cleanModel","model","imageUrl","plainDescription","description","active","price","runtime","name","homeUrl","vehiclesUrl","graph","MotorcycleRentalFaqSchema","isEnglish","pageUrl","item","init_StructuredData"],"sources":["https:/framerusercontent.com/modules/Q2XG9uBAQLPTSEbb74uL/s7oO8IBtiILYbT3oLHAU/StructuredData.js"],"sourcesContent":["// User request: Create StructuredData.tsx with two invisible code components that inject JSON-LD safely. VehicleProductSchema must expose controls (brand, model, image, description, price, active) and emit Product + localized BreadcrumbList only when active and required fields exist. MotorcycleRentalFaqSchema must emit one JSON-LD graph with FAQPage + localized BreadcrumbList using fixed bilingual FAQs. Both must be SSR-safe, use JSON.stringify, avoid visible UI/layout impact, and avoid disallowed schema fields.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useMemo}from\"react\";import{addPropertyControls,ControlType,useLocaleInfo}from\"framer\";const SITE_ORIGIN=\"https://www.motorcleb.com\";function getRuntimeInfo(locale,slug=\"\",landing=false){const cleanSlug=slug.trim();const validSlug=/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(cleanSlug);const prefix=locale===\"en\"?\"/en\":\"\";const pathname=landing?locale===\"en\"?\"/en/motorcycle-rental-barcelona\":\"/alquiler-motos-barcelona\":validSlug?prefix+\"/vehiculos-collection/\"+cleanSlug:undefined;return{origin:SITE_ORIGIN,pathname,canonicalUrl:pathname?SITE_ORIGIN+pathname:undefined,locale};}function getImageUrl(image){if(typeof image===\"string\")return image.trim();return(image?.src||\"\").trim();}function stripHtml(input){return input.replace(/<[^>]*>/g,\" \").replace(/\\s+/g,\" \").trim();}function richTextToPlainText(value){if(value==null||typeof value===\"boolean\")return\"\";if(typeof value===\"string\")return stripHtml(value);if(typeof value===\"number\")return String(value);if(Array.isArray(value))return value.map(richTextToPlainText).filter(Boolean).join(\" \").replace(/\\s+/g,\" \").trim();if(typeof value===\"object\"){// Only read content fields: React/HTML node metadata is not visible text.\nif(value.props&&\"children\"in value.props)return richTextToPlainText(value.props.children);for(const key of[\"text\",\"children\",\"content\",\"value\"]){if(value[key]!=null)return richTextToPlainText(value[key]);}}return\"\";}/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function VehicleProductSchema(props){const{activeLocale}=useLocaleInfo();const locale=activeLocale?.name===\"English\"?\"en\":\"es\";const{brand=\"\",model=\"\",image=\"\",description=\"\",price=0,active=true,slug=\"\"}=props;const jsonLd=useMemo(()=>{const cleanBrand=brand.trim();const cleanModel=model.trim();const imageUrl=getImageUrl(image);const plainDescription=richTextToPlainText(description);const hasPrice=Number.isFinite(price)&&price>0;if(!active||!cleanBrand||!cleanModel||!imageUrl||!hasPrice||/ducati|multistrada|multiustrada|mustang/i.test(cleanBrand+\" \"+cleanModel)){return\"\";}const runtime=getRuntimeInfo(locale,slug);const name=`${cleanBrand} ${cleanModel}`.trim();const homeUrl=runtime.locale===\"en\"?`${runtime.origin}/en`:`${runtime.origin}/`;const vehiclesUrl=runtime.locale===\"en\"?`${runtime.origin}/en/vehiculos-index`:`${runtime.origin}/vehiculos-index`;const graph={\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Product\",name,image:imageUrl,description:plainDescription,url:runtime.canonicalUrl,brand:{\"@type\":\"Brand\",name:cleanBrand},offers:{\"@type\":\"Offer\",priceCurrency:\"EUR\",price,url:runtime.canonicalUrl,seller:{\"@id\":SITE_ORIGIN+\"/#business\"},businessFunction:\"https://purl.org/goodrelations/v1#LeaseOut\"}},{\"@type\":\"BreadcrumbList\",itemListElement:[{\"@type\":\"ListItem\",position:1,name:runtime.locale===\"en\"?\"Home\":\"Inicio\",item:homeUrl},{\"@type\":\"ListItem\",position:2,name:runtime.locale===\"en\"?\"Fleet\":\"Flota\",item:vehiclesUrl},{\"@type\":\"ListItem\",position:3,name,item:runtime.canonicalUrl}]}]};return JSON.stringify(graph).replace(/</g,\"\\\\u003c\");},[active,brand,model,image,description,price,slug,locale]);if(!jsonLd)return null;return /*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:jsonLd}});}addPropertyControls(VehicleProductSchema,{slug:{type:ControlType.String,title:\"Slug\",defaultValue:\"\"},brand:{type:ControlType.String,title:\"Brand\",defaultValue:\"\"},model:{type:ControlType.String,title:\"Model\",defaultValue:\"\"},image:{type:ControlType.ResponsiveImage,title:\"Image\"},description:{type:ControlType.RichText,title:\"Description\",defaultValue:\"Scooter de alquiler en Barcelona.\"},price:{type:ControlType.Number,title:\"Price\",defaultValue:0,min:0,max:5e3,step:1},active:{type:ControlType.Boolean,title:\"Active\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"}});/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export function MotorcycleRentalFaqSchema(props){const{activeLocale}=useLocaleInfo();const locale=activeLocale?.name===\"English\"?\"en\":\"es\";const jsonLd=useMemo(()=>{const runtime=getRuntimeInfo(locale,\"\",true);const isEnglish=runtime.locale===\"en\";const homeUrl=isEnglish?`${runtime.origin}/en`:`${runtime.origin}/`;const pageUrl=runtime.canonicalUrl;const faqItems=isEnglish?[{q:\"What driving licence do I need?\",a:\"It depends on the motorcycle: for the Vespa 125, an A1, A2 or A licence, or a Spanish B licence held for more than 3 years; for the Yamaha T\\xe9n\\xe9r\\xe9 700 A2, an A2 or A licence; for all other motorcycles, an A licence. It must be current and valid in Spain.\"},{q:\"Is there a minimum age?\",a:\"Cars: 26 years old with at least 2 years of licence. Motorcycles: 18 years old, except the Honda X-ADV, the Vespa and the unrestricted Yamaha T\\xe9n\\xe9r\\xe9 700, which require 26.\"},{q:\"How many kilometers are included in the rental?\",a:\"It includes 200 km per rental day.\"},{q:\"How much is the security deposit?\",a:\"The deposit depends on the vehicle and the selected coverage.\"},{q:\"Can I leave Spain?\",a:\"Only with prior authorization from Motor Cleb before departure.\"},{q:\"Is off-road use allowed?\",a:\"No, unless expressly authorized in writing.\"},{q:\"Are helmets and luggage available?\",a:\"Yes, subject to availability on your reservation dates.\"},{q:\"Where do I pick up the motorcycle?\",a:\"At the Motor Cleb Hub, level −2 of the Hyatt Regency Barcelona Tower car park (Gran Via de l’Hospitalet 144), next to Fira Gran Via and about 10 minutes from the airport. Personal handover by appointment.\"}]:[{q:\"\\xbfQu\\xe9 permiso de conducci\\xf3n necesito?\",a:\"Depende de la moto: para la Vespa 125 sirve el carnet A1, A2 o A, o el carnet B espa\\xf1ol con m\\xe1s de 3 a\\xf1os de antig\\xfcedad; para la Yamaha T\\xe9n\\xe9r\\xe9 700 A2, el carnet A2 o A; para el resto de motos, el carnet A. Debe estar vigente y ser v\\xe1lido en Espa\\xf1a.\"},{q:\"\\xbfHay una edad m\\xednima?\",a:\"Coches: 26 a\\xf1os con al menos 2 a\\xf1os de carnet. Motos: 18 a\\xf1os, salvo la Honda X-ADV, la Vespa y la Yamaha T\\xe9n\\xe9r\\xe9 700 sin limitar, que requieren 26 a\\xf1os.\"},{q:\"\\xbfCu\\xe1ntos kil\\xf3metros incluye el alquiler?\",a:\"Incluye 200 km por d\\xeda de alquiler.\"},{q:\"\\xbfDe cu\\xe1nto es el dep\\xf3sito de seguridad?\",a:\"El dep\\xf3sito depende del veh\\xedculo y de la cobertura seleccionada.\"},{q:\"\\xbfPuedo salir de Espa\\xf1a?\",a:\"Solo con autorizaci\\xf3n previa de Motor Cleb antes de la salida.\"},{q:\"\\xbfSe permite el uso off-road?\",a:\"No, salvo autorizaci\\xf3n expresa por escrito.\"},{q:\"\\xbfHay cascos y equipaje disponibles?\",a:\"S\\xed, seg\\xfan disponibilidad en las fechas de tu reserva.\"},{q:\"\\xbfD\\xf3nde recojo la moto?\",a:\"En el Motor Cleb Hub, planta −2 del parking del Hyatt Regency Barcelona Tower (Gran Via de l’Hospitalet 144), junto a Fira Gran Via y a unos 10 minutos del aeropuerto. Entrega personal con cita previa.\"}];const graph={\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"FAQPage\",mainEntity:faqItems.map(item=>({\"@type\":\"Question\",name:item.q,acceptedAnswer:{\"@type\":\"Answer\",text:item.a}}))},{\"@type\":\"BreadcrumbList\",itemListElement:[{\"@type\":\"ListItem\",position:1,name:runtime.locale===\"en\"?\"Home\":\"Inicio\",item:homeUrl},{\"@type\":\"ListItem\",position:2,name:isEnglish?\"Motorcycle rental in Barcelona\":\"Alquiler de motos en Barcelona\",item:pageUrl}]}]};return JSON.stringify(graph).replace(/</g,\"\\\\u003c\");},[locale]);return /*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:jsonLd}});}addPropertyControls(MotorcycleRentalFaqSchema,{});\nexport const __FramerMetadata__ = {\"exports\":{\"MotorcycleRentalFaqSchema\":{\"type\":\"reactComponent\",\"name\":\"MotorcycleRentalFaqSchema\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"VehicleProductSchema\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredData.map"],"mappings":"A,kLACsL,SAASU,EAAe,EAAO,EAAK,GAAG,EAAQ,GAAM,CAAC,IAAMC,EAAUC,EAAK,KAAK,EAAQC,EAAU,6BAA6B,KAAKF,CAAS,EAA4CG,EAASC,EAAQC,IAAS,KAAK,kCAAkC,4BAA4BH,GAA1HG,IAAS,KAAK,MAAM,IAAuH,yBA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