{"version":3,"file":"StructuredDataReformer.ClHoBAUJ.mjs","names":["useMemo","__esmMin","pe","init_npm_react_18_3_1","c","init_jsx_runtime","ce","addPropertyControls","init_framer_CN96F41L","useIsStaticRenderer","ControlType","StructuredDataReformer","props","isStatic","jsonLd","defaultPageUrl","resolvedPageUrl","pageUrl","pageURL","hasUsableValue","normalized","value","parseHours","match","normalizedServiceName","serviceName","service","serviceLabel","serviceType","serviceDescription","city","addressLocality","region","addressRegion","formattedAreaServed","areaServed","place","areaServedList","weekdayParsed","weekdayHours","weekendParsed","weekendHours","openingHoursSpecification","streetAddress","postalCode","telephone","email","script","init_StructuredDataReformer"],"sources":["https:/framerusercontent.com/modules/CGHFBU7hTLQaKZq6DrlB/EKa7VerSQALOGMizCrCL/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\":/richland/i.test(String(city||\"\"))?\"https://www.almacollective.studio/richland#richland\":\"https://www.almacollective.studio/#medford\",name:/richland/i.test(String(city||\"\"))?\"Alma Collective - Richland\":\"Alma Collective - Medford\",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\":/richland/i.test(String(city||\"\"))?\"https://www.almacollective.studio/richland#richland\":\"https://www.almacollective.studio/#medford\"},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\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredDataReformer.map"],"mappings":"A,yLAGG,SAAwBW,EAAuB,EAAM,CAAC,GAAK,CAAC,UAAQ,UAAQ,cAAY,UAAQ,gBAAc,kBAAgB,gBAAc,aAAW,YAAU,QAAM,aAAW,eAAa,gBAAcC,EAAYC,EAASJ,EAAoB,EAAQK,EAAOd,MAAY,CAAC,IAAMe,EAAe,yDAA+DC,GAAiBC,GAASC,GAASH,EAAA,CAAgB,KAAK,GAAGA,EAAqBI,EAAe,GAAO,CAAC,IAAMC,GAAYC,GAAO,GAAA,CAAI,KAAK,EAAE,OAAOD,EAAW,OAAO,GAAG,CAACA,EAAW,YAAY,CAAC,CAAC,SAAS,KAAK,CAAE,EAAQE,EAAW,GAAO,CAAC,GAAG,CAACH,EAAeE,CAAK,EAAE,OAAO,KAAyC,IAAME,GAAxBF,GAAO,GAAA,CAAI,KAA4B,CAAC,CAAC,MAAM,uDAAuD,EAAwB,OAAlBE,EAAwB,CAAC,MAAM,GAAGA,EAAM,GAAG,GAAGA,EAAM,KAAK,OAAO,GAAGA,EAAM,GAAG,GAAGA,EAAM,IAAI,EAA5E,IAA8E,EAAQC,GAAuBC,GAAaC,GAAS,mBAAA,CAAoB,KAAK,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