{"version":3,"file":"FAQSchema.rAC9shhS.mjs","names":["useState","useRef","useMemo","useCallback"],"sources":["https:/framerusercontent.com/modules/QSxxj6DeyKHPd0g9N0V9/QEYr2tgY05azFOLVMevY/FAQSchema.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{RenderTarget}from\"framer\";import{forwardRef,startTransition,useCallback,useEffect,useMemo,useRef,useState}from\"react\";const OWNED_SCRIPT_ID=\"framer-faqpage-schema\";const registrations=new Map;const SERVICES_FAQ_PAIRS=[{question:\"How do I know which engagement type is right for my organization?\",answer:\"We help you assess your goals and challenges during a short discovery call. Advisory engagements suit strategic alignment, Implementation fits specific Salesforce or integration needs, and Fractional Leadership supports ongoing optimization across teams.\"},{question:\"Do you offer end-to-end Salesforce delivery or only specific modules?\",answer:\"Both. Each module — from Sales Cloud optimization to Marketing Cloud enablement — can be delivered independently or combined into a full transformation program with unified KPIs and governance.\"},{question:\"How do you measure ROI on your projects?\",answer:\"Every engagement includes before-and-after benchmarks such as efficiency gains, conversion improvement, or reduced support volume. ROI tracking is built into the scope and dashboards.\"},{question:\"What level of ongoing support do you provide after implementation?\",answer:\"We offer Admin Retainers and Embedded Resources to maintain, optimize, and scale your Salesforce environment — ensuring continuous improvement without the overhead of full-time hires.\"},{question:\"Can you integrate Salesforce with our other systems?\",answer:\"Yes. Our Implementation and Architecture teams handle ERP, telephony, data warehouse, and custom API integrations — all designed for reliability, compliance, and scalability.\"}];function canMutateDocumentHead(){if(typeof window===\"undefined\"||typeof document===\"undefined\"){return false;}const target=RenderTarget.current();return target!==RenderTarget.canvas&&target!==RenderTarget.export&&target!==RenderTarget.thumbnail;}function normalizeText(value){return typeof value===\"string\"?value.trim():\"\";}function readPathname(){if(typeof window===\"undefined\")return\"\";return window.location.pathname||\"/\";}function escapeForJsonLdScript(value){return value.replace(/</g,\"\\\\u003c\");}function buildSchemaForPath(pathname){const dedupedByQuestion=new Map;registrations.forEach(entry=>{if(entry.pathname!==pathname)return;entry.pairs.forEach(pair=>{const question=normalizeText(pair.question);const answer=normalizeText(pair.answer);if(!question||!answer)return;if(!dedupedByQuestion.has(question)){dedupedByQuestion.set(question,{question,answer});}});});const mainEntity=Array.from(dedupedByQuestion.values()).map(pair=>({\"@type\":\"Question\",name:pair.question,acceptedAnswer:{\"@type\":\"Answer\",text:pair.answer}}));if(mainEntity.length===0)return null;return{\"@context\":\"https://schema.org\",\"@type\":\"FAQPage\",mainEntity};}function syncScript(pathname){if(!canMutateDocumentHead())return;const schema=buildSchemaForPath(pathname);const existing=document.getElementById(OWNED_SCRIPT_ID);if(!schema){if(existing?.parentNode)existing.parentNode.removeChild(existing);return;}const serialized=escapeForJsonLdScript(JSON.stringify(schema));const script=existing??Object.assign(document.createElement(\"script\"),{id:OWNED_SCRIPT_ID,type:\"application/ld+json\"});if(script.textContent!==serialized){script.textContent=serialized;}if(!script.parentNode){document.head.appendChild(script);}}function upsertRegistration(ownerId,pathname,pairs){registrations.set(ownerId,{pathname,pairs});syncScript(pathname);}function removeRegistration(ownerId,pathname){registrations.delete(ownerId);syncScript(pathname);}function usePathname(){const[pathname,setPathname]=useState(()=>readPathname());useEffect(()=>{if(typeof window===\"undefined\")return;const notify=()=>{startTransition(()=>{setPathname(readPathname());});};const historyWindow=window;if(!historyWindow.__framerFAQHistoryPatched__){const wrapHistory=method=>{return(...args)=>{const result=method.apply(window.history,args);window.dispatchEvent(new Event(\"framer-pathnamechange\"));return result;};};window.history.pushState=wrapHistory(window.history.pushState);window.history.replaceState=wrapHistory(window.history.replaceState);historyWindow.__framerFAQHistoryPatched__=true;}window.addEventListener(\"popstate\",notify);window.addEventListener(\"hashchange\",notify);window.addEventListener(\"framer-pathnamechange\",notify);notify();return()=>{window.removeEventListener(\"popstate\",notify);window.removeEventListener(\"hashchange\",notify);window.removeEventListener(\"framer-pathnamechange\",notify);};},[]);return pathname;}export function withFAQPageSchema(Component){return /*#__PURE__*/forwardRef(function WithFAQPageSchema(props,ref){const pathname=usePathname();const ownerIdRef=useRef(`faq-${Math.random().toString(36).slice(2)}`);const qaPairs=useMemo(()=>{const question=normalizeText(props.question1??props.question);const answer=normalizeText(props.answer1??props.answer);if(!question||!answer)return[];return[{question,answer}];},[props.answer,props.answer1,props.question,props.question1]);const register=useCallback(()=>{upsertRegistration(ownerIdRef.current,pathname,qaPairs);},[pathname,qaPairs]);useEffect(()=>{if(!canMutateDocumentHead())return;register();return()=>{removeRegistration(ownerIdRef.current,pathname);};},[pathname,register]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props});});}export function withServicesFAQSchema(Component){return /*#__PURE__*/forwardRef(function WithServicesFAQSchema(props,ref){const pathname=usePathname();const ownerIdRef=useRef(`faq-services-${Math.random().toString(36).slice(2)}`);useEffect(()=>{if(!canMutateDocumentHead())return;upsertRegistration(ownerIdRef.current,pathname,SERVICES_FAQ_PAIRS);return()=>{removeRegistration(ownerIdRef.current,pathname);};},[pathname]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withServicesFAQSchema\":{\"type\":\"reactHoc\",\"name\":\"withServicesFAQSchema\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withFAQPageSchema\":{\"type\":\"reactHoc\",\"name\":\"withFAQPageSchema\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FAQSchema.map"],"mappings":"2NAAooD,SAAS,GAAuB,CAAC,GAAU,IAAS,QAAa,OAAO,SAAW,IAAa,MAAO,GAAO,IAAM,EAAO,EAAa,QAAQ,EAAE,OAAO,IAAS,EAAa,QAAQ,IAAS,EAAa,QAAQ,IAAS,EAAa,SAAU,CAAC,SAAS,EAAc,EAAM,CAAC,OAAO,OAAO,GAAQ,SAAS,EAAM,KAAK,EAAE,EAAG,CAAC,SAAS,GAAc,CAAyC,OAA9B,IAAS,OAAkB,GAAU,EAAO,SAAS,UAAU,GAAI,CAAC,SAAS,EAAsB,EAAM,CAA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