{"version":3,"file":"FormSource.B6NweOlc.mjs","names":["useState","__esmMin","init_ssg_sandbox_shims","window","_e","init_jsx_runtime","c","init_npm_react_18_3_1","ce","init_framer_DDfsYcI0","addPropertyControls","ControlType","FormSource","props","path","setPath","value","label","fieldName","init_FormSource"],"sources":["https:/framerusercontent.com/modules/mCG2osyctJucpqwR4y9D/ow1PmWC5zVaDCFnnKdnE/FormSource.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect,useState}from\"react\";/**\n * Form Source — invisible field that tells the submission email which form and\n * page it came from, e.g. \"Let's talk form – /services/ceramic-coating\".\n * Place inside a Framer form.\n *\n * @framerIntrinsicWidth 1\n * @framerIntrinsicHeight 1\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function FormSource(props){const{fieldName=\"Form\",label=\"Website form\"}=props;const[path,setPath]=useState(\"\");useEffect(()=>{if(typeof window!==\"undefined\")setPath(window.location.pathname);},[]);const value=path?`${label} – ${path}`:label;return /*#__PURE__*/_jsx(\"div\",{style:{...props.style,position:\"relative\",width:0,height:0,overflow:\"hidden\"},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"input\",{type:\"hidden\",name:fieldName,value:value})});}addPropertyControls(FormSource,{fieldName:{type:ControlType.String,title:\"Field Name\",defaultValue:\"Form\"},label:{type:ControlType.String,title:\"Label\",defaultValue:\"Website form\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FormSource\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicWidth\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FormSource.map"],"mappings":"A,+LAUG,SAAwBY,EAAW,EAAM,CAAC,GAAK,CAAC,YAAU,OAAO,QAAM,gBAAgBC,EAAW,CAACC,EAAKC,GAASf,EAAS,EAAE,EAAEQ,MAAc,CAAWL,IAAS,QAAYY,EAAQZ,EAAO,SAAS,QAAQ,CAAE,EAAE,CAAC,CAAC,EAAE,IAAMa,EAAMF,EAAK,GAAGG,EAAM,KAAKH,IAAOG,EAAM,MAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,GAAGJ,EAAM,MAAM,SAAS,WAAW,MAAM,EAAE,OAAO,EAAE,SAAS,QAAQ,EAAE,cAAc,OAAO,SAAsB,gBAAK,QAAQ,CAAC,KAAK,SAAS,KAAKK,EAAgB,OAAK,CAAC,CAAC,CAAC,CAAE,C,8CAACR,EAAoBE,EAAW,CAAC,UAAU,CAAC,KAAKD,EAAY,OAAO,MAAM,aAAa,aAAa,MAAM,EAAE,MAAM,CAAC,KAAKA,EAAY,OAAO,MAAM,QAAQ,aAAa,cAAc,CAAC,CAAC,C"}