{"version":3,"file":"Structured_Data.Bx2FkSTf.mjs","names":["useCallback","useMemo"],"sources":["https:/framerusercontent.com/modules/rDh1WKW5PSjZ3LLTS5WH/owVmP0tjTO2xvWSn1a3C/Structured_Data.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useCallback,useMemo}from\"react\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function StructuredData(props){const{mode,canonicalOrigin,brandName,legalName,organizationId,softwareId,teamName,homeDescription,includePricingOffer,articleTitle,articleSlug,articleDescription,articleImageUrl,articlePublishedDate,pageName,pagePath}=props;const normalizeOrigin=useCallback(origin=>{const trimmed=(origin||\"\").trim();const fallback=\"https://www.getallison.com\";if(!trimmed)return fallback;return trimmed.replace(/\\/+$/,\"\");},[]);const normalizePath=useCallback(path=>{const trimmed=(path||\"\").trim();if(!trimmed)return\"/\";const noQueryOrHash=trimmed.split(/[?#]/)[0]||\"/\";const withLeading=noQueryOrHash.startsWith(\"/\")?noQueryOrHash:`/${noQueryOrHash}`;const cleaned=withLeading.replace(/\\/{2,}/g,\"/\");if(cleaned.length>1)return cleaned.replace(/\\/+$/,\"\");return\"/\";},[]);const resolveImageUrl=useCallback(value=>{if(!value)return\"\";if(typeof value===\"string\")return value.trim();if(typeof value===\"object\"&&typeof value.src===\"string\")return value.src.trim();return\"\";},[]);const origin=useMemo(()=>normalizeOrigin(canonicalOrigin),[canonicalOrigin,normalizeOrigin]);const jsonLd=useMemo(()=>{const organization={\"@type\":\"Organization\",\"@id\":organizationId||`${origin}/#organization`,name:brandName,legalName:legalName,url:origin};if(mode===\"Home\"){const softwareApplication={\"@type\":\"SoftwareApplication\",\"@id\":softwareId||`${origin}/#software`,name:brandName,applicationCategory:\"BusinessApplication\",operatingSystem:\"Web\",url:origin,description:homeDescription||\"All-in-one software for residential and commercial cleaning businesses, including scheduling, invoicing, reporting, and growth tools.\",publisher:{\"@id\":organization[\"@id\"]}};if(includePricingOffer){softwareApplication.offers={\"@type\":\"Offer\",url:`${origin}/pricing`};}return{\"@context\":\"https://schema.org\",\"@graph\":[organization,softwareApplication]};}if(mode===\"Article\"){const safeSlug=(articleSlug||\"\").trim().replace(/^\\/+|\\/+$/g,\"\");const articleUrl=`${origin}/blog/${safeSlug}`;const blogUrl=`${origin}/blog`;const resolvedArticleImageUrl=resolveImageUrl(articleImageUrl);const article={\"@type\":\"Article\",headline:articleTitle,datePublished:articlePublishedDate,author:{\"@type\":\"Organization\",name:teamName},publisher:{\"@id\":organization[\"@id\"]},mainEntityOfPage:articleUrl,isPartOf:blogUrl};if(articleDescription&&articleDescription.trim()){article.description=articleDescription.trim();}if(resolvedArticleImageUrl){article.image=resolvedArticleImageUrl;}const breadcrumb={\"@type\":\"BreadcrumbList\",itemListElement:[{\"@type\":\"ListItem\",position:1,name:\"Home\",item:origin},{\"@type\":\"ListItem\",position:2,name:\"Blog\",item:blogUrl},{\"@type\":\"ListItem\",position:3,name:articleTitle,item:articleUrl}]};return{\"@context\":\"https://schema.org\",\"@graph\":[organization,article,breadcrumb]};}const normalizedPath=normalizePath(pagePath);const pageUrl=normalizedPath===\"/\"?origin:`${origin}${normalizedPath}`;const resolvedName=(pageName||\"\").trim()||\"Page\";return{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",itemListElement:[{\"@type\":\"ListItem\",position:1,name:\"Home\",item:origin},{\"@type\":\"ListItem\",position:2,name:resolvedName,item:pageUrl}]}]};},[articleDescription,articleImageUrl,articlePublishedDate,articleSlug,articleTitle,brandName,homeDescription,includePricingOffer,legalName,mode,normalizePath,resolveImageUrl,organizationId,origin,pageName,pagePath,softwareId,teamName]);const jsonText=useMemo(()=>JSON.stringify(jsonLd),[jsonLd]);return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",role:\"presentation\",style:{position:\"relative\",width:0,height:0,overflow:\"hidden\",pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:jsonText}})});}StructuredData.displayName=\"Structured Data\";addPropertyControls(StructuredData,{mode:{type:ControlType.Enum,title:\"Mode\",options:[\"Home\",\"Article\",\"Breadcrumb\"],optionTitles:[\"Home\",\"Article\",\"Breadcrumb\"],defaultValue:\"Home\"},canonicalOrigin:{type:ControlType.String,title:\"Origin\",defaultValue:\"https://www.getallison.com\"},brandName:{type:ControlType.String,title:\"Brand\",defaultValue:\"Allison\"},legalName:{type:ControlType.String,title:\"Legal\",defaultValue:\"The Allison Platform Company\"},organizationId:{type:ControlType.String,title:\"Org ID\",defaultValue:\"https://www.getallison.com/#organization\"},softwareId:{type:ControlType.String,title:\"Software ID\",defaultValue:\"https://www.getallison.com/#software\",hidden:p=>p.mode!==\"Home\"},teamName:{type:ControlType.String,title:\"Team\",defaultValue:\"The Allison Team\",hidden:p=>p.mode!==\"Article\"},homeDescription:{type:ControlType.String,title:\"Home Desc\",defaultValue:\"All-in-one software for residential and commercial cleaning businesses, including scheduling, invoicing, reporting, and growth tools.\",displayTextArea:true,hidden:p=>p.mode!==\"Home\"},includePricingOffer:{type:ControlType.Boolean,title:\"Pricing Offer\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\",hidden:p=>p.mode!==\"Home\"},articleTitle:{type:ControlType.String,title:\"Title\",defaultValue:\"How to Grow a Cleaning Business\",hidden:p=>p.mode!==\"Article\"},articleSlug:{type:ControlType.String,title:\"Slug\",defaultValue:\"how-to-grow-a-cleaning-business\",hidden:p=>p.mode!==\"Article\"},articleDescription:{type:ControlType.String,title:\"Description\",defaultValue:\"\",displayTextArea:true,hidden:p=>p.mode!==\"Article\"},articleImageUrl:{type:ControlType.Image,title:\"Image URL\",hidden:p=>p.mode!==\"Article\"},articlePublishedDate:{type:ControlType.Date,title:\"Published\",defaultValue:\"2024-01-01T00:00:00.000Z\",hidden:p=>p.mode!==\"Article\"},pageName:{type:ControlType.String,title:\"Page Name\",defaultValue:\"About\",hidden:p=>p.mode!==\"Breadcrumb\"},pagePath:{type:ControlType.String,title:\"Page Path\",defaultValue:\"/about\",hidden:p=>p.mode!==\"Breadcrumb\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StructuredData\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Structured_Data.map"],"mappings":"iLAGG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,OAAK,kBAAgB,YAAU,YAAU,iBAAe,aAAW,WAAS,kBAAgB,sBAAoB,eAAa,cAAY,qBAAmB,kBAAgB,uBAAqB,WAAS,YAAU,EAAY,EAAgBA,EAAY,GAAQ,CAAC,IAAM,GAAS,GAAQ,GAAA,CAAI,KAAK,EAA0E,OAAxB,EAA+B,EAAQ,QAAQ,OAAO,EAAE,EAAzC,4BAA2C,EAAE,CAAC,CAAC,EAAQ,EAAcA,EAAY,GAAM,CAAC,IAAM,GAAS,GAAM,GAAA,CAAI,KAAK,EAAE,GAAG,CAAC,EAAQ,MAAM,IAAI,IAAM,EAAc,EAAQ,MAAM,MAAM,CAAC,CAAC,IAAI,IAA4F,GAAtE,EAAc,WAAW,GAAG,EAAE,EAAc,IAAI,IAAA,CAA0C,QAAQ,UAAU,GAAG,EAAwD,OAAnD,EAAQ,OAAO,EAAS,EAAQ,QAAQ,OAAO,EAAE,EAAQ,GAAI,EAAE,CAAC,CAAC,EAAQ,EAAgBA,EAAY,GAAY,EAAkB,OAAO,GAAQ,SAAgB,EAAM,KAAK,EAAK,OAAO,GAAQ,UAAU,OAAO,EAAM,KAAM,SAAgB,EAAM,IAAI,KAAK,EAAQ,GAAxI,GAA6I,CAAC,CAAC,EAAQ,EAAOC,MAAY,EAAgB,CAAe,EAAE,CAAC,EAAgB,CAAe,CAAC,EAAQ,EA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