{"version":3,"file":"SchemaJSONLD.BkYFsXBC.mjs","names":["__esmMin","init_jsx_runtime","c","addPropertyControls","init_framer_BpuvUAiZ","ControlType","clean","value","SchemaJSONLD","props","name","description","slug","isCity","pageType","key","url","SITE","id","stateCode","place","service","BUSINESS_ID","data","i","json","style","init_SchemaJSONLD"],"sources":["https:/framerusercontent.com/modules/1c8n8ByBmptEtWec1B6E/D9JHe4b78WRAJxdvoVax/SchemaJSONLD.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const SITE=\"https://wielerroofingandconstruction.com\";const BUSINESS_ID=SITE+\"/#business\";function clean(value){return(value||\"\").replace(/\\s+/g,\" \").trim();}/**\n * Outputs JSON-LD structured data for a CMS detail page. Renders nothing visible.\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function SchemaJSONLD(props){const{pageType=\"Service\",style}=props;const name=clean(props.name).replace(/^Big Springs$/i,\"Big Spring\");const description=clean(props.description);const slug=clean(props.slug);const isCity=pageType===\"City\";const key=name.toLowerCase().replace(/[^a-z0-9]+/g,\"-\").replace(/^-|-$/g,\"\");const url=slug?SITE+(isCity?\"/cities-2/\":\"/services/\")+slug:\"\";const id=url?url+\"#service\":SITE+(isCity?\"/cities-2/\":\"/services/\")+\"#\"+key+\"-service\";const stateCode=/new mexico/i.test(props.region||\"\")?\"NM\":\"TX\";const place=name+\", \"+stateCode;const service=isCity?{\"@type\":\"Service\",\"@id\":id,name:\"Roofing in \"+place,serviceType:\"Roofing contractor\",provider:{\"@id\":BUSINESS_ID},areaServed:{\"@type\":\"City\",name:place}}:{\"@type\":\"Service\",\"@id\":id,name,serviceType:name,provider:{\"@id\":BUSINESS_ID},areaServed:{\"@type\":\"AdministrativeArea\",name:\"West Texas and Southeast New Mexico\"}};if(description)service.description=description;if(url)service.url=url;const crumbs=isCity?[{name:\"Home\",item:SITE+\"/\"},url?{name:place,item:url}:{name:place}]:[{name:\"Home\",item:SITE+\"/\"},{name:\"Services\",item:SITE+\"/services\"},url?{name,item:url}:{name}];const data={\"@context\":\"https://schema.org\",\"@graph\":[service,{\"@type\":\"BreadcrumbList\",itemListElement:crumbs.map((c,i)=>({\"@type\":\"ListItem\",position:i+1,name:c.name,...c.item?{item:c.item}:{}}))}]};const json=JSON.stringify(data).replace(/</g,\"\\\\u003c\");return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{...style,overflow:\"hidden\",pointerEvents:\"none\"},children:name?/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:json}}):null});}addPropertyControls(SchemaJSONLD,{pageType:{type:ControlType.Enum,title:\"Page Type\",options:[\"Service\",\"City\"],defaultValue:\"Service\"},name:{type:ControlType.String,title:\"Name\",defaultValue:\"\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"\"},slug:{type:ControlType.String,title:\"Slug\",defaultValue:\"\"},region:{type:ControlType.String,title:\"State\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SchemaJSONLD\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SchemaJSONLD.map"],"mappings":"A,4JAAyL,SAASM,EAAM,EAAM,CAAC,OAAOC,GAAO,GAAA,CAAI,QAAQ,OAAO,GAAG,CAAC,CAAC,KAAK,CAAE,CAIzP,SAAwBC,EAAa,EAAM,CAAC,GAAK,CAAC,WAAS,UAAU,SAAOC,EAAYC,EAAKJ,EAAMG,EAAM,IAAI,CAAC,CAAC,QAAQ,iBAAiB,YAAY,EAAQE,EAAYL,EAAMG,EAAM,WAAW,EAAQG,EAAKN,EAAMG,EAAM,IAAI,EAAQI,EAAOC,IAAW,OAAaC,EAAIL,EAAK,YAAY,CAAC,CAAC,QAAQ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