{"version":3,"file":"StructuredDataJsonLd.DhU7SOIL.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/qSTqJJ4GJpkxCBTultrq/OuUzfILSbwn6D38AnO9C/StructuredDataJsonLd.js"],"sourcesContent":["// User request: Create a new Framer code component named `StructuredDataJsonLd` that renders no visible UI, only a JSON-LD script tag, with editable property controls for business/site/FAQ fields and a generated @graph for Organization, WebSite, ProfessionalService, and FAQPage.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useMemo}from\"react\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function StructuredDataJsonLd(props){const{siteName,siteUrl,logoUrl,socialSameAs,serviceName,serviceDescription,serviceArea,founderName,email,faqItems,faqItemsJson}=props;const normalizedSiteUrl=useMemo(()=>siteUrl.replace(/\\/+$/,\"\"),[siteUrl]);const sameAsList=useMemo(()=>socialSameAs.split(\",\").map(item=>item.trim()).filter(Boolean),[socialSameAs]);const cleanedFaqItems=useMemo(()=>{const fallbackFaqItems=(faqItems||[]).filter(item=>item&&item.question?.trim().length>0&&item.answer?.trim().length>0);const trimmedJson=(faqItemsJson||\"\").trim();if(!trimmedJson)return fallbackFaqItems;try{const parsed=JSON.parse(trimmedJson);if(!Array.isArray(parsed))return fallbackFaqItems;const parsedFaqItems=parsed.map(item=>{if(!item||typeof item!==\"object\")return null;const question=\"question\"in item&&typeof item.question===\"string\"?item.question.trim():\"\";const answer=\"answer\"in item&&typeof item.answer===\"string\"?item.answer.trim():\"\";if(!question||!answer)return null;return{question,answer};}).filter(Boolean);return parsedFaqItems.length>0?parsedFaqItems:fallbackFaqItems;}catch{return fallbackFaqItems;}},[faqItems,faqItemsJson]);const jsonLdString=useMemo(()=>{const graph=[{\"@type\":\"Organization\",\"@id\":`${normalizedSiteUrl}#organization`,name:siteName,url:normalizedSiteUrl,logo:logoUrl,founder:{\"@type\":\"Person\",name:founderName},email:email?`mailto:${email}`:undefined,sameAs:sameAsList},{\"@type\":\"WebSite\",\"@id\":`${normalizedSiteUrl}#website`,url:normalizedSiteUrl,name:siteName,publisher:{\"@id\":`${normalizedSiteUrl}#organization`}},{\"@type\":\"ProfessionalService\",\"@id\":`${normalizedSiteUrl}#service`,name:serviceName,description:serviceDescription,areaServed:serviceArea,provider:{\"@id\":`${normalizedSiteUrl}#organization`},url:normalizedSiteUrl},{\"@type\":\"FAQPage\",\"@id\":`${normalizedSiteUrl}#faq`,mainEntity:cleanedFaqItems.map(item=>({\"@type\":\"Question\",name:item.question,acceptedAnswer:{\"@type\":\"Answer\",text:item.answer}}))}];const data={\"@context\":\"https://schema.org\",\"@graph\":graph};return JSON.stringify(data);},[normalizedSiteUrl,siteName,logoUrl,founderName,email,sameAsList,serviceName,serviceDescription,serviceArea,cleanedFaqItems]);return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":true,style:{position:\"relative\",width:0,height:0,overflow:\"hidden\",pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:jsonLdString}})});}addPropertyControls(StructuredDataJsonLd,{siteName:{type:ControlType.String,title:\"Site Name\",defaultValue:\"District North Design Studio\"},siteUrl:{type:ControlType.String,title:\"Site URL\",defaultValue:\"https://districtnorth.design\"},logoUrl:{type:ControlType.String,title:\"Logo URL\",defaultValue:\"https://framerusercontent.com/images/voS7Ksqa81p4CB09kAXvLGw7O8Y.png\"},socialSameAs:{type:ControlType.String,title:\"Social URLs\",defaultValue:\"https://dribbble.com/districtnorth, https://www.youtube.com/@DistrictNorthMediaDesignStudio\",displayTextArea:true},serviceName:{type:ControlType.String,title:\"Service Name\",defaultValue:\"Brand Design and Fractional Creative Direction\"},serviceDescription:{type:ControlType.String,title:\"Service Desc\",defaultValue:\"District North Design Studio helps startups, studios, founders, and growing teams build brand identities, websites, campaign systems, event visuals, merch, and launch materials.\",displayTextArea:true},serviceArea:{type:ControlType.String,title:\"Service Area\",defaultValue:\"United States\"},founderName:{type:ControlType.String,title:\"Founder\",defaultValue:\"Nick Beaulieu\"},email:{type:ControlType.String,title:\"Email\",defaultValue:\"\"},faqItemsJson:{type:ControlType.String,title:\"FAQ JSON\",defaultValue:\"\",displayTextArea:true},faqItems:{type:ControlType.Array,title:\"FAQ Items\",control:{type:ControlType.Object,controls:{question:{type:ControlType.String,title:\"Question\",defaultValue:\"What services do you offer?\"},answer:{type:ControlType.String,title:\"Answer\",defaultValue:\"We offer brand strategy, visual identity design, and custom website design and development.\",displayTextArea:true}}},defaultValue:[{question:\"What does District North Design Studio do?\",answer:\"District North helps companies build sharper brand identities, websites, campaign systems, event visuals, merch, and launch materials. The work is especially useful when a team needs senior design taste without hiring a full-time creative department.\"},{question:\"What is a fractional brand designer?\",answer:\"A fractional brand designer is a senior creative partner who plugs into your team part-time or project-by-project. Instead of hiring a full-time designer, you get brand direction, hands-on design, and practical systems when you need them.\"},{question:\"Who is District North best for?\",answer:\"District North is a good fit for startups, founders, studios, and growing teams that need brand clarity, strong visual systems, and flexible creative support across identity, web, events, and campaigns.\"},{question:\"How does a typical project work?\",answer:\"Most projects start with a focused strategy and discovery phase, then move into visual exploration, system design, production, and launch support. The goal is to leave you with work that looks distinct and is easy for your team to keep using.\"}]}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredDataJsonLd\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StructuredDataJsonLd.map"],"mappings":"qKAIG,SAAwB,EAAqB,EAAM,CAAC,GAAK,CAAC,WAAS,UAAQ,UAAQ,eAAa,cAAY,qBAAmB,cAAY,cAAY,QAAM,WAAS,gBAAc,EAAY,EAAkBA,MAAY,EAAQ,QAAQ,OAAO,EAAE,EAAE,CAAC,CAAO,CAAC,EAAQ,EAA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