{"version":3,"file":"InsightsStructuredData.D2F7EKNQ.mjs","names":["__esmMin","init_ssg_sandbox_shims","init_npm_react_18_3_1","c","init_jsx_runtime","ce","window","addPropertyControls","init_framer_BkYB2Gqq","ControlType","InsightsStructuredData","base","p","url","crumbs","schema","handler","anchor","event","dest","gtag","init_InsightsStructuredData"],"sources":["https:/framerusercontent.com/modules/qXqZ9ZFnOF88Zi1S2fGy/NHT2HiYowU1MAazwLZGp/InsightsStructuredData.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/** @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed */export default function InsightsStructuredData(p){const base=(p.siteUrl||\"https://www.caldunconsulting.com\").replace(/\\/$/,\"\");const url=p.article&&p.slug?p.slug.startsWith(\"http\")?p.slug:base+p.slug:base+\"/insights\";const crumbs=[{name:\"Home\",item:base+\"/\"},{name:\"Insights\",item:base+\"/insights\"}];if(p.article)crumbs.push({name:p.title,item:url});const entity=p.article?{\"@type\":\"BlogPosting\",headline:p.title,description:p.summary,url,mainEntityOfPage:{\"@type\":\"WebPage\",\"@id\":url},datePublished:p.published||undefined,dateModified:p.reviewed||p.published||undefined,author:{\"@type\":\"Person\",name:p.author},publisher:{\"@type\":\"Organization\",name:\"Caldun Consulting\",url:base},image:p.image?.src||undefined}:{\"@type\":\"Blog\",name:\"Caldun Insights\",description:\"Practical marketing insights for growing businesses.\",url,publisher:{\"@type\":\"Organization\",name:\"Caldun Consulting\",url:base}};const schema={\"@context\":\"https://schema.org\",\"@graph\":[entity]};React.useEffect(()=>{const handler=event=>{const anchor=event.target?.closest?.(\"a\");if(!anchor)return;const dest=new URL(anchor.href,window.location.href);if(dest.origin!==window.location.origin)return;if(dest.pathname!==\"/contact\"&&!dest.pathname.startsWith(\"/services\"))return;const gtag=window.gtag;if(typeof gtag===\"function\")gtag(\"event\",\"cta_click\",{cta_location:p.article?\"insights_post\":\"insights_index\",post_slug:p.article?window.location.pathname.split(\"/\").filter(Boolean).pop():\"\"});};document.addEventListener(\"click\",handler);return()=>document.removeEventListener(\"click\",handler);},[p.article]);return /*#__PURE__*/_jsx(\"div\",{style:{...p.style,width:0,height:0,overflow:\"hidden\"},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:JSON.stringify(schema).replace(/</g,\"\\\\u003c\")}})});}addPropertyControls(InsightsStructuredData,{article:{type:ControlType.Boolean,defaultValue:false},title:{type:ControlType.String},summary:{type:ControlType.String},slug:{type:ControlType.Link},author:{type:ControlType.String},published:{type:ControlType.Date},reviewed:{type:ControlType.Date},image:{type:ControlType.ResponsiveImage},siteUrl:{type:ControlType.String,defaultValue:\"https://www.caldunconsulting.com\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"InsightsStructuredData\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./InsightsStructuredData.map"],"mappings":"A,wLACwC,SAAwBU,EAAuB,EAAE,CAAC,IAAMC,GAAMC,EAAE,SAAS,mCAAA,CAAoC,QAAQ,MAAM,EAAE,EAAQC,EAAID,EAAE,SAASA,EAAE,KAAKA,EAAE,KAAK,WAAW,MAAM,EAAEA,EAAE,KAAKD,EAAKC,EAAE,KAAKD,EAAK,YAAkBG,EAAO,CAAC,CAAC,KAAK,OAAO,KAAKH,EAAK,GAAG,EAAE,CAAC,KAAK,WAAW,KAAKA,EAAK,WAAW,CAAC,EAAKC,EAAE,SAAQE,EAAO,KAAK,CAAC,KAAKF,EAAE,MAAM,KAAKC,CAAG,CAAC,EAA+hB,IAAME,EAAO,CAAC,WAAW,qBAAqB,SAAS,CAAvkBH,EAAE,QAAQ,CAAC,QAAQ,cAAc,SAASA,EAA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