{"version":3,"file":"LocalBusinessSchemaDirect.BdaB4ngW.mjs","names":["useMemo","__esmMin","init_npm_react_18_3_1","pe","init_jsx_runtime","c","init_framer_DKtAEkcX","addPropertyControls","clean","v","a","x","o","k","Out","json","data","LocalBusinessSchemaDirect","url","absUrl","p","list","init_LocalBusinessSchemaDirect","s","base","ControlType"],"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":"A,qKAA0H,SAASQ,EAAM,EAAE,CAAC,GAAGC,GAAI,K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