{"version":3,"file":"StructuredDataReformer.BT37CyNN.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/CGHFBU7hTLQaKZq6DrlB/U0xxHSglcN2dFdlyiCwM/StructuredDataReformer.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useMemo}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function StructuredDataReformer(props){const{pageUrl,pageURL,serviceName,service,streetAddress,addressLocality,addressRegion,postalCode,telephone,email,areaServed,weekdayHours,weekendHours}=props;const isStatic=useIsStaticRenderer();const jsonLd=useMemo(()=>{const defaultPageUrl=\"https://almacollective.studio/medford/reformer-pilates\";const resolvedPageUrl=(pageUrl||pageURL||defaultPageUrl).trim()||defaultPageUrl;const hasUsableValue=value=>{const normalized=(value||\"\").trim();return normalized.length>0&&!normalized.toUpperCase().includes(\"ADD\");};const parseHours=value=>{if(!hasUsableValue(value))return null;const normalized=(value||\"\").trim();const match=normalized.match(/^([01]\\d|2[0-3]):([0-5]\\d)-([01]\\d|2[0-3]):([0-5]\\d)$/);if(!match)return null;return{opens:`${match[1]}:${match[2]}`,closes:`${match[3]}:${match[4]}`};};const normalizedServiceName=(serviceName||service||\"Reformer Pilates\").trim();const serviceLabel=normalizedServiceName.length>0?normalizedServiceName:\"Reformer Pilates\";const serviceType=`${serviceLabel} Classes`;const serviceDescription=`Small-group ${serviceLabel.toLowerCase()} classes for all levels — led by expert instructors.`;const city=(addressLocality||\"Medford\").trim()||\"Medford\";const region=(addressRegion||\"OR\").trim()||\"OR\";const formattedAreaServed=(areaServed||\"\").split(\",\").map(place=>place.trim()).filter(place=>place.length>0&&!place.toUpperCase().includes(\"ADD\"));const areaServedList=formattedAreaServed.length>0?formattedAreaServed:[\"Medford\",\"Ashland\",\"Jacksonville\",\"Central Point\",\"Grants Pass\"];const weekdayParsed=parseHours(weekdayHours);const weekendParsed=parseHours(weekendHours);const openingHoursSpecification=[weekdayParsed?{\"@type\":\"OpeningHoursSpecification\",dayOfWeek:[\"https://schema.org/Monday\",\"https://schema.org/Tuesday\",\"https://schema.org/Wednesday\",\"https://schema.org/Thursday\",\"https://schema.org/Friday\"],opens:weekdayParsed.opens,closes:weekdayParsed.closes}:null,weekendParsed?{\"@type\":\"OpeningHoursSpecification\",dayOfWeek:[\"https://schema.org/Saturday\",\"https://schema.org/Sunday\"],opens:weekendParsed.opens,closes:weekendParsed.closes}:null].filter(Boolean);const localBusinessNode={\"@type\":[\"LocalBusiness\",\"ExerciseGym\"],\"@id\":\"https://almacollective.studio/#business\",name:\"Alma Collective\",description:`Boutique Pilates, Barre & Yoga studio in ${city}, ${region} offering small-group classes with expert instructors.`,address:{\"@type\":\"PostalAddress\",streetAddress:(streetAddress||\"3293 Cedar Links Dr Suite 100\").trim(),addressLocality:city,addressRegion:region,postalCode:(postalCode||\"97504\").trim(),addressCountry:\"US\"},areaServed:areaServedList,...hasUsableValue(telephone||\"\")?{telephone:(telephone||\"\").trim()}:{},...hasUsableValue(email||\"\")?{email:(email||\"\").trim()}:{},...openingHoursSpecification.length>0?{openingHoursSpecification}:{}};return{\"@context\":\"https://schema.org\",\"@graph\":[localBusinessNode,{\"@type\":\"Service\",serviceType,name:`${serviceLabel} Classes in ${city}, ${region}`,description:serviceDescription,provider:{\"@id\":\"https://almacollective.studio/#business\"},areaServed:areaServedList,url:resolvedPageUrl}]};},[pageUrl,pageURL,serviceName,service,streetAddress,addressLocality,addressRegion,postalCode,telephone,email,areaServed,weekdayHours,weekendHours]);useEffect(()=>{if(isStatic||typeof document===\"undefined\")return;const script=document.createElement(\"script\");script.type=\"application/ld+json\";script.setAttribute(\"data-structured-data-reformer\",\"true\");script.text=JSON.stringify(jsonLd);document.head.appendChild(script);return()=>{if(script.parentNode){script.parentNode.removeChild(script);}};},[jsonLd,isStatic]);return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"relative\",width:0,height:0,overflow:\"hidden\",pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,width:0,height:0}})});}addPropertyControls(StructuredDataReformer,{pageUrl:{type:ControlType.String,title:\"Page URL\",defaultValue:\"https://almacollective.studio/medford/reformer-pilates\",placeholder:\"https://\"},pageURL:{type:ControlType.String,title:\"pageURL\",defaultValue:\"\",placeholder:\"Legacy alias (optional)\"},serviceName:{type:ControlType.String,title:\"Service\",defaultValue:\"Reformer Pilates\",placeholder:\"Reformer Pilates or Yoga\"},service:{type:ControlType.String,title:\"service\",defaultValue:\"\",placeholder:\"Legacy alias (optional)\"},streetAddress:{type:ControlType.String,title:\"Street\",defaultValue:\"3293 Cedar Links Dr Suite 100\"},addressLocality:{type:ControlType.String,title:\"City\",defaultValue:\"Medford\"},addressRegion:{type:ControlType.String,title:\"Region\",defaultValue:\"OR\"},postalCode:{type:ControlType.String,title:\"Postal\",defaultValue:\"97504\"},telephone:{type:ControlType.String,title:\"Phone\",defaultValue:\"(541) 644-4373\",placeholder:\"ADD phone to publish\"},email:{type:ControlType.String,title:\"Email\",defaultValue:\"info@almacollective.studio\",placeholder:\"ADD email to publish\"},areaServed:{type:ControlType.String,title:\"Area Served\",defaultValue:\"Medford, Ashland, Jacksonville, Central Point, Grants Pass\",placeholder:\"Comma-separated places\"},weekdayHours:{type:ControlType.String,title:\"Weekday\",defaultValue:\"05:30-19:30\",placeholder:\"HH:MM-HH:MM or ADD\"},weekendHours:{type:ControlType.String,title:\"Weekend\",defaultValue:\"08:00-12:00\",placeholder:\"HH:MM-HH:MM or ADD\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredDataReformer\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./St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