{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/FHzTd5zUiEzXcTtNhOVV/tx0no8fNVcwZI0J5pTa3/IntercomLauncer.js"],
  "sourcesContent": ["/**\n * IntercomLauncher.tsx - Intercom Integration Component\n * ===================================================\n *\n * A higher-order component (HOC) that facilitates the integration of Intercom's\n * messaging functionality into React components. This component provides a\n * seamless method to enhance any React component with Intercom launcher\n * capabilities through className modification.\n *\n * Key Features:\n * - Type-safe component wrapping using TypeScript generics\n * - Automatic className enhancement for Intercom integration\n * - Preservation of original component props and types\n * - Flexible implementation supporting additional arbitrary props\n *\n * Technical Implementation:\n * The component utilises TypeScript's generic types to maintain type safety\n * whilst allowing for flexible prop handling. It automatically appends the\n * 'openIntercom' class to the wrapped component's className prop, enabling\n * Intercom-specific styling and event handling.\n *\n * Usage Example:\n * ```tsx\n * const EnhancedButton = IntercomLauncher(Button);\n * <EnhancedButton className=\"custom-class\" />\n * ```\n *\n * Type Safety:\n * - Implements a base Props interface with optional className\n * - Supports additional arbitrary props through index signature\n * - Maintains type safety through generic type constraints\n *\n * @see {@link https://developers.intercom.com/installing-intercom/docs/react-integration}\n */import{jsx as _jsx}from\"react/jsx-runtime\";/**\n * Higher-order component that enhances a React component with Intercom functionality.\n * Adds the 'openIntercom' class to the component's className prop.\n *\n * @template P - Generic type extending Props interface\n * @param Component - The React component to be wrapped\n * @returns A new component with enhanced Intercom functionality\n */export function IntercomLauncher(Component){return props=>{// Adds ' openIntercom' to the className prop for styling or event handling purposes\nprops.className=(props.className||\"\")+\" openIntercom\"// Safely concatenate className\n;// Returns the wrapped component with modified props\nreturn /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"IntercomLauncher\":{\"type\":\"reactHoc\",\"name\":\"IntercomLauncher\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./IntercomLauncer.map"],
  "mappings": "kFAAAA,IAwCU,SAASC,EAAiBC,EAAU,CAAC,OAAOC,IACtDA,EAAM,WAAWA,EAAM,WAAW,IAAI,gBAElBC,EAAKF,EAAU,CAAC,GAAGC,CAAK,CAAC,EAAI",
  "names": ["init_ssg_sandbox_shims", "IntercomLauncher", "Component", "props", "p"]
}
