{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/6j7WgBU0UfMCXLiuQ81F/S7qUaSAV0HZpKpYsqraq/SurfaceButton.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";// Learn more: https://www.framer.com/docs/guides/overrides/\nexport function withClass(Component){return props=>{props.className+=\" surface-form-button\" // Remember to add a space\n;return /*#__PURE__*/ _jsx(Component,{...props});};}export function withScript(Component){return props=>{// We use a script loader in a useEffect\nReact.useEffect(()=>{const existingScript=document.querySelector(`script[src=\"https://cdn.jsdelivr.net/gh/trysurface/scripts@main/surface_embed_script.js\"]`);if(existingScript){console.log(\"Surface script found in head. Attempting to execute...\");if(typeof embedSurfaceForm===\"function\"){console.log(\"Found Surface embedSurfaceForm function\");if(typeof src!==\"undefined\"){console.log(\"Found Surface src variable\");src=\"https://app.withsurface.com/s/clmbfolh90001jv08xy8rqcd6\";}embedSurfaceForm();}else{console.log(\"Surface embedSurfaceForm not yet available. It might not be loaded or exposed globally.\");}}else{console.log(\"surface script does not exist in head tag\");}},[]);return /*#__PURE__*/ _jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withScript\":{\"type\":\"reactHoc\",\"name\":\"withScript\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withClass\":{\"type\":\"reactHoc\",\"name\":\"withClass\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SurfaceButton.map"],
  "mappings": "gDAE2D,SAASA,EAAWC,EAAU,CAAC,OAAOC,IAC3FC,EAAU,IAAI,CAAsB,SAAS,cAAc,2FAA2F,GAAqB,QAAQ,IAAI,wDAAwD,EAAK,OAAO,kBAAmB,YAAY,QAAQ,IAAI,yCAAyC,EAAK,OAAO,IAAM,MAAa,QAAQ,IAAI,4BAA4B,EAAE,IAAI,2DAA2D,iBAAiB,GAAQ,QAAQ,IAAI,yFAAyF,GAAS,QAAQ,IAAI,2CAA2C,CAAG,EAAE,CAAC,CAAC,EAAuBC,EAAKH,EAAU,CAAC,GAAGC,CAAK,CAAC,EAAI",
  "names": ["withScript", "Component", "props", "ue", "p"]
}
