{"version":3,"file":"StructuredData.CKhgOuwf.mjs","names":[],"sources":["https:/framerusercontent.com/modules/aU5s8rnDvF5zrOYfDHzL/lfgR4lsn0Neij0i5Gzbb/StructuredData.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const BUSINESS_ID=\"https://www.kelseylynnphotography.com/#business\";const PERSON_ID=\"https://www.kelseylynnphotography.com/#kelsey\";function imageUrl(image){if(!image)return undefined;const src=typeof image===\"string\"?image:image.src;return src?src.split(\"?\")[0]:undefined;}// \"$350–$625\" → [350, 625]\nfunction priceRange(text){const nums=(text||\"\").replace(/,/g,\"\").match(/\\d+(\\.\\d+)?/g);if(!nums||!nums.length)return null;const values=nums.map(Number);return{min:Math.min(...values),max:Math.max(...values)};}export default function StructuredData(props){const{kind=\"Blog Post\",title=\"\",description=\"\",image,date=\"\",category=\"\",price=\"\",siteUrl=\"https://www.kelseylynnphotography.com\",sectionName=\"Blog\",sectionPath=\"/blog\"}=props;if(!title)return null;const base=siteUrl.replace(/\\/$/,\"\");const img=imageUrl(image);const breadcrumb={\"@type\":\"BreadcrumbList\",// Home → (Section) → this page; set Section Path to \"/\" to skip the middle crumb\nitemListElement:[{\"@type\":\"ListItem\",name:\"Home\",item:base+\"/\"},...sectionPath&&sectionPath!==\"/\"?[{\"@type\":\"ListItem\",name:sectionName,item:base+sectionPath}]:[],{\"@type\":\"ListItem\",name:title}].map((crumb,i)=>({...crumb,position:i+1}))};let main;if(kind===\"Service\"){const range=priceRange(price);main={\"@type\":\"Service\",name:title,serviceType:title,description:description||undefined,image:img,provider:{\"@id\":BUSINESS_ID},areaServed:{\"@type\":\"City\",name:\"Sioux Falls, SD\"},offers:range?{\"@type\":\"Offer\",priceCurrency:\"USD\",priceSpecification:{\"@type\":\"PriceSpecification\",minPrice:range.min,maxPrice:range.max,priceCurrency:\"USD\"}}:undefined};}else{const published=date?new Date(date):null;main={\"@type\":\"BlogPosting\",headline:title,description:description||undefined,image:img,datePublished:published&&!isNaN(published.getTime())?published.toISOString():undefined,articleSection:category||undefined,author:{\"@type\":\"Person\",\"@id\":PERSON_ID,name:\"Kelsey Lynn\",url:base+\"/meet-kelsey\"},publisher:{\"@id\":BUSINESS_ID}};}const json=JSON.stringify({\"@context\":\"https://schema.org\",\"@graph\":[main,breadcrumb]}).replace(/</g,\"\\\\u003c\");return /*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:json}});}addPropertyControls(StructuredData,{kind:{type:ControlType.Enum,title:\"Kind\",options:[\"Blog Post\",\"Service\"],defaultValue:\"Blog Post\"},title:{type:ControlType.String,title:\"Title\",defaultValue:\"\"},description:{type:ControlType.String,title:\"Description\",displayTextArea:true,defaultValue:\"\"},image:{type:ControlType.ResponsiveImage,title:\"Image\"},date:{type:ControlType.Date,title:\"Date\",hidden:p=>p.kind!==\"Blog Post\"},category:{type:ControlType.String,title:\"Category\",defaultValue:\"\",hidden:p=>p.kind!==\"Blog Post\"},price:{type:ControlType.String,title:\"Price\",defaultValue:\"\",description:\"e.g. $350–$625\",hidden:p=>p.kind!==\"Service\"},siteUrl:{type:ControlType.String,title:\"Site URL\",defaultValue:\"https://www.kelseylynnphotography.com\"},sectionName:{type:ControlType.String,title:\"Section\",defaultValue:\"Blog\"},sectionPath:{type:ControlType.String,title:\"Section Path\",defaultValue:\"/blog\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredData\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredData.map"],"mappings":"4JAAmO,SAAS,EAAS,EAAM,CAAC,GAAG,CAAC,EAAM,OAAiB,IAAM,EAAI,OAAO,GAAQ,SAAS,EAAM,EAAM,IAAI,OAAO,EAAI,EAAI,MAAM,GAAG,CAAC,CAAC,GAAG,IAAA,EAAU,CAChX,SAAS,EAAW,EAAK,C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