{"version":3,"file":"Structured_Data.CnVfIXRc.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/uVkAa3H4eh5TU9rcEKMc/gL6l2Z2UcITTD3Voi2rk/Structured_Data.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useMemo}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function StructuredData(props){const{kind,name,description,serviceType,areaServed,telephone,email,streetAddress,addressLocality,postalCode,addressCountry,faqs}=props;const schemaObject=useMemo(()=>{if(kind===\"LocalBusiness\"){return{\"@context\":\"https://schema.org\",\"@type\":\"LocalBusiness\",name,description,telephone,email,address:{\"@type\":\"PostalAddress\",streetAddress,addressLocality,postalCode,addressCountry},areaServed};}if(kind===\"Service\"){return{\"@context\":\"https://schema.org\",\"@type\":\"Service\",name,description,serviceType,areaServed,provider:{\"@type\":\"Organization\",name:\"Aceski Media\",telephone,email,address:{\"@type\":\"PostalAddress\",streetAddress,addressLocality,postalCode,addressCountry}}};}if(kind===\"FAQPage\"){const createQuestionEntity=(question,answer)=>{const trimmedQuestion=question.trim();const trimmedAnswer=answer.trim();if(!trimmedQuestion||!trimmedAnswer)return null;return{\"@type\":\"Question\",name:trimmedQuestion,acceptedAnswer:{\"@type\":\"Answer\",text:trimmedAnswer}};};try{const parsed=JSON.parse(faqs);if(!Array.isArray(parsed))throw new Error(\"FAQs JSON is not an array\");const mainEntity=parsed.map(entry=>{if(!entry||typeof entry!==\"object\"||typeof entry.question!==\"string\"||typeof entry.answer!==\"string\"){return null;}return createQuestionEntity(entry.question,entry.answer);}).filter(Boolean);if(mainEntity.length===0)return null;return{\"@context\":\"https://schema.org\",\"@type\":\"FAQPage\",mainEntity};}catch(_error){const mainEntity=faqs.split(\"||\").map(item=>{const separatorIndex=item.indexOf(\"::\");if(separatorIndex<0)return null;const question=item.slice(0,separatorIndex);const answer=item.slice(separatorIndex+2);return createQuestionEntity(question,answer);}).filter(Boolean);if(mainEntity.length===0)return null;return{\"@context\":\"https://schema.org\",\"@type\":\"FAQPage\",mainEntity};}}return null;},[kind,name,description,serviceType,areaServed,telephone,email,streetAddress,addressLocality,postalCode,addressCountry,faqs]);const jsonLd=useMemo(()=>{if(!schemaObject)return null;return JSON.stringify(schemaObject);},[schemaObject]);if(!jsonLd)return null;return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:0,height:0,overflow:\"hidden\",pointerEvents:\"none\"},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",children:jsonLd})});}addPropertyControls(StructuredData,{kind:{type:ControlType.Enum,title:\"Kind\",options:[\"LocalBusiness\",\"Service\",\"FAQPage\"],optionTitles:[\"LocalBusiness\",\"Service\",\"FAQPage\"],defaultValue:\"LocalBusiness\"},name:{type:ControlType.String,title:\"Name\",defaultValue:\"Aceski Media\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"Digital marketing and creative services.\",displayTextArea:true},serviceType:{type:ControlType.String,title:\"Service Type\",defaultValue:\"Marketing Services\"},areaServed:{type:ControlType.String,title:\"Area Served\",defaultValue:\"Worldwide\"},telephone:{type:ControlType.String,title:\"Telephone\",defaultValue:\"+1-000-000-0000\"},email:{type:ControlType.String,title:\"Email\",defaultValue:\"hello@example.com\"},streetAddress:{type:ControlType.String,title:\"Street\",defaultValue:\"123 Main Street\"},addressLocality:{type:ControlType.String,title:\"City\",defaultValue:\"New York\"},postalCode:{type:ControlType.String,title:\"Postal Code\",defaultValue:\"10001\"},addressCountry:{type:ControlType.String,title:\"Country\",defaultValue:\"US\"},faqs:{type:ControlType.String,title:\"FAQs\",defaultValue:'[{\"question\":\"What services do you offer?\",\"answer\":\"We provide branding, web design, and digital marketing.\"}]',displayTextArea:true}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredData\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed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