{
  "version": 3,
  "sources": ["ssg:https://framer.com/m/framer/utils.js@^0.9.0", "ssg:https://framerusercontent.com/modules/Bi5pl8WmlDMxDzRP2raE/r5J2dMuic9Ebh9EvB57Y/FormController.js"],
  "sourcesContent": ["export const centerContent = {\n    display: \"flex\",\n    justifyContent: \"center\",\n    alignItems: \"center\"\n};\nexport const autoSizingText = {\n    width: \"max-content\",\n    wordBreak: \"break-word\",\n    overflowWrap: \"break-word\",\n    overflow: \"hidden\",\n    whiteSpace: \"pre-wrap\",\n    flexShrink: 0\n};\nexport const defaultContainerStyles = {\n    ...centerContent,\n    overflow: \"hidden\"\n};\nexport const containerStyles = defaultContainerStyles;\nexport const randomColor = ()=>\"#\" + Math.floor(Math.random() * 16777215).toString(16)\n;\n\nexport const __FramerMetadata__ = {\"exports\":{\"centerContent\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"autoSizingText\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultContainerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"randomColor\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./Utils.map", "import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{randomColor}from\"https://framer.com/m/framer/utils.js@^0.9.0\";// Learn more: https://www.framer.com/developers/overrides/\nconst useStore=createStore({name:\"\",email:\"\",subject:\"\",message:\"\"});export function NameHandle(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();const handleSetValue=e=>{setStore({...store,name:e?.target?.value});};return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onChange:handleSetValue});});}export function EmailHandle(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();const handleSetValue=e=>{setStore({...store,email:e?.target?.value});};return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onChange:handleSetValue});});}export function SubjectHandle(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();const handleSetValue=e=>{setStore({...store,subject:e?.target?.value});};return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onChange:handleSetValue});});}export function MessageHandle(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();const handleSetValue=e=>{setStore({...store,message:e?.target?.value});};return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onChange:handleSetValue});});}export function Submit(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();const send=()=>{const url=\"https://api.rd.services/platform/conversions?api_key=cgSXynUoqPoBJeFNXbLYEtAcDXVOLGgHyTvB\";const options={method:\"POST\",headers:{accept:\"application/json\",\"Content-Type\":\"application/json\"},body:JSON.stringify({event_type:\"CONVERSION\",event_family:\"CDP\",payload:{conversion_identifier:\"Site institucional\",email:store.email,name:store.name,cf_assunto:store.subject,cf_mensagem:store.message}})};fetch(url,options).then(res=>res.json()).then(json=>console.log(json)).catch(err=>console.error(err));};return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onClick:send,onSubmit:send});});}export function withRandomColor(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{background:store.background},onClick:()=>{setStore({background:randomColor()});}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"NameHandle\":{\"type\":\"reactHoc\",\"name\":\"NameHandle\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"MessageHandle\":{\"type\":\"reactHoc\",\"name\":\"MessageHandle\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"EmailHandle\":{\"type\":\"reactHoc\",\"name\":\"EmailHandle\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Submit\":{\"type\":\"reactHoc\",\"name\":\"Submit\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SubjectHandle\":{\"type\":\"reactHoc\",\"name\":\"SubjectHandle\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FormController.map"],
  "mappings": "yFAAO,IAAMA,EAAgB,CACzB,QAAS,OACT,eAAgB,SAChB,WAAY,QAChB,EASO,IAAMC,EAAyB,CAClC,GAAGC,EACH,SAAU,QACd,ECfA,IAAMC,EAASC,EAAY,CAAC,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,EAAE,CAAC,EAAS,SAASC,EAAWC,EAAU,CAAC,OAAoBC,EAAW,CAACC,EAAMC,IAAM,CAAC,GAAK,CAACC,EAAMC,CAAQ,EAAER,EAAS,EAAwE,OAAoBS,EAAKN,EAAU,CAAC,IAAIG,EAAI,GAAGD,EAAM,SAAtGK,GAAG,CAACF,EAAS,CAAC,GAAGD,EAAM,KAAKG,GAAG,QAAQ,KAAK,CAAC,CAAE,CAA8E,CAAC,CAAE,CAAC,CAAE,CAAQ,SAASC,EAAYR,EAAU,CAAC,OAAoBC,EAAW,CAACC,EAAMC,IAAM,CAAC,GAAK,CAACC,EAAMC,CAAQ,EAAER,EAAS,EAAyE,OAAoBS,EAAKN,EAAU,CAAC,IAAIG,EAAI,GAAGD,EAAM,SAAvGK,GAAG,CAACF,EAAS,CAAC,GAAGD,EAAM,MAAMG,GAAG,QAAQ,KAAK,CAAC,CAAE,CAA8E,CAAC,CAAE,CAAC,CAAE,CAAQ,SAASE,EAAcT,EAAU,CAAC,OAAoBC,EAAW,CAACC,EAAMC,IAAM,CAAC,GAAK,CAACC,EAAMC,CAAQ,EAAER,EAAS,EAA2E,OAAoBS,EAAKN,EAAU,CAAC,IAAIG,EAAI,GAAGD,EAAM,SAAzGK,GAAG,CAACF,EAAS,CAAC,GAAGD,EAAM,QAAQG,GAAG,QAAQ,KAAK,CAAC,CAAE,CAA8E,CAAC,CAAE,CAAC,CAAE,CAAQ,SAASG,EAAcV,EAAU,CAAC,OAAoBC,EAAW,CAACC,EAAMC,IAAM,CAAC,GAAK,CAACC,EAAMC,CAAQ,EAAER,EAAS,EAA2E,OAAoBS,EAAKN,EAAU,CAAC,IAAIG,EAAI,GAAGD,EAAM,SAAzGK,GAAG,CAACF,EAAS,CAAC,GAAGD,EAAM,QAAQG,GAAG,QAAQ,KAAK,CAAC,CAAE,CAA8E,CAAC,CAAE,CAAC,CAAE,CAAQ,SAASI,EAAOX,EAAU,CAAC,OAAoBC,EAAW,CAACC,EAAMC,IAAM,CAAC,GAAK,CAACC,EAAMC,CAAQ,EAAER,EAAS,EAAQe,EAAK,IAAI,CAAC,IAAMC,EAAI,4FAAkGC,EAAQ,CAAC,OAAO,OAAO,QAAQ,CAAC,OAAO,mBAAmB,eAAe,kBAAkB,EAAE,KAAK,KAAK,UAAU,CAAC,WAAW,aAAa,aAAa,MAAM,QAAQ,CAAC,sBAAsB,qBAAqB,MAAMV,EAAM,MAAM,KAAKA,EAAM,KAAK,WAAWA,EAAM,QAAQ,YAAYA,EAAM,OAAO,CAAC,CAAC,CAAC,EAAE,MAAMS,EAAIC,CAAO,EAAE,KAAKC,GAAKA,EAAI,KAAK,CAAC,EAAE,KAAKC,GAAM,QAAQ,IAAIA,CAAI,CAAC,EAAE,MAAMC,GAAK,QAAQ,MAAMA,CAAG,CAAC,CAAE,EAAE,OAAoBX,EAAKN,EAAU,CAAC,IAAIG,EAAI,GAAGD,EAAM,QAAQU,EAAK,SAASA,CAAI,CAAC,CAAE,CAAC,CAAE",
  "names": ["centerContent", "defaultContainerStyles", "centerContent", "useStore", "createStore", "NameHandle", "Component", "Y", "props", "ref", "store", "setStore", "p", "e", "EmailHandle", "SubjectHandle", "MessageHandle", "Submit", "send", "url", "options", "res", "json", "err"]
}
