{"version":3,"file":"LocalBusinessSchemaDirect.Bf0FIAyq.mjs","names":["useMemo"],"sources":["https:/framerusercontent.com/modules/8vqaCufYebyYeSF1wu0p/EgfKvgpLeHajPvDZx2Ni/LocalBusinessSchemaDirect.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useMemo}from\"react\";import{addPropertyControls,ControlType}from\"framer\";function clean(v){if(v===null||v===undefined)return undefined;if(typeof v===\"string\")return v.trim()?v.trim():undefined;if(Array.isArray(v)){const a=v.map(clean).filter(x=>x!==undefined);return a.length?a:undefined;}if(typeof v===\"object\"){const o={};Object.entries(v).forEach(([k,x])=>{const c=clean(x);if(c!==undefined)o[k]=c;});return Object.keys(o).length?o:undefined;}return v;}const list=s=>(s||\"\").split(/[\\n,]+/g).map(x=>x.trim()).filter(Boolean);const absUrl=(base,p)=>/^https?:\\/\\//i.test((p||\"\").trim())?p.trim():`${(base||\"\").trim().replace(/\\/+$/,\"\")}${(p||\"\").trim().startsWith(\"/\")||!(p||\"\").trim()?\"\":\"/\"}${(p||\"\").trim()}`;const imgSrc=v=>typeof v===\"string\"?v:v?.src;function Out({id,data}){const json=useMemo(()=>JSON.stringify(clean(data)).replace(/</g,\"\\\\u003c\"),[data]);return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{position:\"relative\",width:0,height:0,overflow:\"hidden\",opacity:0,pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(\"script\",{id:id,type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:json}})});}/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function LocalBusinessSchemaDirect(p){const url=absUrl(p.siteUrl,p.path);const data={\"@context\":\"https://schema.org\",\"@type\":\"ProfessionalService\",\"@id\":url+\"#localbusiness\",name:p.name,description:p.description,url,telephone:p.telephone,image:p.logo,priceRange:undefined,parentOrganization:{\"@type\":\"Organization\",name:\"Creative Milkshake\",url:p.siteUrl},address:p.city||p.streetAddress||p.country?{\"@type\":\"PostalAddress\",streetAddress:p.streetAddress,addressLocality:p.city,addressCountry:p.country}:undefined,areaServed:list(p.areaServed).map(a=>({\"@type\":\"City\",name:a})),knowsAbout:list(p.serviceType),sameAs:list(p.sameAsUrls)};return /*#__PURE__*/_jsx(Out,{id:\"local-business-schema-direct\",data:data});}addPropertyControls(LocalBusinessSchemaDirect,{siteUrl:{type:ControlType.String,title:\"Site URL\",defaultValue:\"https://www.creativemilkshake.com\"},path:{type:ControlType.String,title:\"Path\",defaultValue:\"\"},name:{type:ControlType.String,title:\"Name\",defaultValue:\"\"},description:{type:ControlType.String,title:\"Description\",defaultValue:\"\",displayTextArea:true},serviceType:{type:ControlType.String,title:\"Services\",defaultValue:\"\",displayTextArea:true},city:{type:ControlType.String,title:\"City\",defaultValue:\"\"},country:{type:ControlType.String,title:\"Country\",defaultValue:\"\"},streetAddress:{type:ControlType.String,title:\"Street\",defaultValue:\"\"},areaServed:{type:ControlType.String,title:\"Area Served\",defaultValue:\"\",displayTextArea:true},sameAsUrls:{type:ControlType.String,title:\"Same As\",defaultValue:\"\",displayTextArea:true},telephone:{type:ControlType.String,title:\"Phone\",defaultValue:\"\"},logo:{type:ControlType.String,title:\"Image URL\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LocalBusinessSchemaDirect\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LocalBusinessSchemaDirect.map"],"mappings":"sKAA0H,SAAS,EAAM,EAAE,CAAI,MAAI,KAAqC,IAAG,OAAO,GAAI,SAAS,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAA,GAAU,GAAG,MAAM,QAAQ,CAAC,EAAE,CAAC,IAAM,EAAE,EAAE,IAAI,CAAK,CAAC,CAAC,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