{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/kq3XhQpR4qMYbrN4erq6/zmp4fobXnD0YloUdgrIB/Form_CZ.js"],
  "sourcesContent": ["// Welcome to Code in Framer\n// Get Started: https://www.framer.com/docs/guides/\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useState}from\"react\";import{useFormspark}from\"@formspark/use-formspark\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/docs/guides/auto-sizing\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function Form(props){const[showError,setShowError]=useState(false);const[showSuccess,setShowSuccess]=useState(false);const[submit,submitting]=useFormspark({formId:\"8EOpT31h\"});const handleSubmit=async e=>{e.preventDefault();const formEntries=new FormData(e.currentTarget).entries();const mappedEntries=Array.from(formEntries,([name,value])=>({[name]:value}));const data=Object.assign({},...mappedEntries);await submit(data).then(res=>{setShowSuccess(true);}).catch(err=>{setShowError(true);});};return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",alignItems:\"center\",padding:\"24px\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",alignItems:\"center\",fontFamily:\"Manrope, sans serif\",fontWeight:\"bold\",fontSize:\"36px\",color:\"#3f475e\",paddingBottom:\"16px\",borderRadius:\"8px\",textAlign:\"Center\"},children:\"Chcete v\u011Bd\u011Bt, kolik m\u016F\u017Eete vyd\u011Blat d\\xedky uhl\\xedku?\"}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",alignItems:\"center\",fontFamily:\"Manrope, sans serif\",fontSize:\"18px\",color:\"#3f475e\",maxWidth:\"350px\",borderRadius:\"8px\",textAlign:\"Center\"},children:\"Vypl\u0148te formul\\xe1\u0159 a z\\xedskejte uhl\\xedkovou konzultaci\"})]}),/*#__PURE__*/_jsxs(\"form\",{// here you have to paste your individual link from f.e. formspark\\\nonSubmit:handleSubmit,method:\"post\",style:{display:\"flex\",flexDirection:\"column\",alignItems:\"left\",fontFamily:\"Manrope, sans serif\",fontSize:\"18px\",color:\"#3f475e\",padding:\"24px\"},children:[/*#__PURE__*/_jsx(\"label\",{htmlFor:\"name\",style:{marginBottom:\"8px\",fontWeight:\"bold\"},children:\"Celkov\\xe1 v\\xfdm\u011Bra farmy (min 50 ha)\"}),/*#__PURE__*/_jsx(\"input\",{type:\"number\",id:\"area\",name:\"area\",placeholder:\"400\",required:true,style:{width:\"100%\",padding:\"16px\",fontSize:\"18px\",marginBottom:\"24px\",border:\"1px solid #ccc\",borderRadius:\"8px\"}}),/*#__PURE__*/_jsx(\"label\",{htmlFor:\"name\",style:{marginBottom:\"8px\",fontWeight:\"bold\"},children:\"Jm\\xe9no a P\u0159\\xedjmen\\xed\"}),/*#__PURE__*/_jsx(\"input\",{type:\"text\",id:\"name\",name:\"name\",placeholder:\"Jan Nov\\xe1k\",required:true,style:{width:\"100%\",padding:\"16px\",fontSize:\"18px\",marginBottom:\"24px\",border:\"1px solid #ccc\",borderRadius:\"8px\"}}),/*#__PURE__*/_jsx(\"label\",{htmlFor:\"email\",style:{marginBottom:\"8px\",fontWeight:\"bold\"},children:\"Email\"}),/*#__PURE__*/_jsx(\"input\",{type:\"email\",id:\"email\",name:\"email\",placeholder:\"jan.nov\\xe1k@farm.cz\",required:true,style:{width:\"100%\",padding:\"16px\",fontSize:\"18px\",marginBottom:\"24px\",border:\"1px solid #ccc\",borderRadius:\"8px\"}}),/*#__PURE__*/_jsx(\"label\",{htmlFor:\"phonenumber\",style:{marginBottom:\"8px\",fontWeight:\"bold\"},children:\"Telefon\"}),/*#__PURE__*/_jsx(\"input\",{type:\"phone\",id:\"phone\",name:\"phone\",placeholder:\"+420 555555555\",required:true,style:{width:\"100%\",padding:\"16px\",fontSize:\"18px\",marginBottom:\"24px\",border:\"1px solid #ccc\",borderRadius:\"8px\"}}),/*#__PURE__*/_jsx(\"label\",{style:{marginBottom:\"24px\",fontSize:\"18px\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"row\"},children:[/*#__PURE__*/_jsx(\"input\",{type:\"checkbox\",required:true,style:{marginRight:\"16px\",width:\"24px\",height:\"24px\"}}),/*#__PURE__*/_jsxs(\"div\",{style:{paddingTop:\"2px\",fontWeight:\"bold\"},children:[\"P\u0159e\u010Detl\\xa0jsem\\xa0si\",\" \",/*#__PURE__*/_jsx(\"a\",{href:\"https://www.eagronom.com/privacy-policy/\",target:\"_blank\",style:{fontSize:\"18px\",color:\"#1ea706\",textDecoration:\"underline\"},children:\"z\\xe1sady\\xa0ochrany\\xa0osobn\\xedch\\xa0\\xfadaj\u016F\"})]})]})}),showError&&/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",alignItems:\"left\",fontFamily:\"Manrope, sans serif\",fontSize:\"18px\",color:\"#E71A38\",backgroundColor:\"#FFEAED\",padding:\"24px\",textAlign:\"Center\",borderRadius:\"8px\",marginBottom:\"16px\"},children:\"N\u011Bco se pokazilo.\"}),showSuccess&&/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",alignItems:\"left\",fontFamily:\"Manrope, sans serif\",fontSize:\"18px\",color:\"#1ea706\",backgroundColor:\"#D1F0D5\",padding:\"24px\",textAlign:\"Center\",borderRadius:\"8px\",marginBottom:\"16px\"},children:\"\\xdasp\u011B\u0161n\u011B odesl\\xe1no!\"}),/*#__PURE__*/_jsx(\"input\",{type:\"submit\",value:\"Odeslat\",style:{fontSize:\"18px\",fontFamily:\"Manrope, sans serif\",width:\"100%\",padding:\"16px\",backgroundColor:\"#1ea706\",color:\"white\",fontWeight:\"bold\",border:\"none\",borderRadius:\"8px\",cursor:\"pointer\"}})]})]});}// Styles are written in object syntax\n// Learn more: https://reactjs.org/docs/dom-elements.html#style\nconst containerStyle={height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",overflow:\"hidden\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Form\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Form_CZ.map"],
  "mappings": "kGAQkB,SAARA,EAAsBC,EAAM,CAAC,GAAK,CAACC,EAAUC,CAAY,EAAEC,EAAS,EAAK,EAAO,CAACC,EAAYC,CAAc,EAAEF,EAAS,EAAK,EAAO,CAACG,EAAOC,CAAU,EAAEC,EAAa,CAAC,OAAO,UAAU,CAAC,EAAiU,OAAoBC,EAAMC,EAAU,CAAC,SAAS,CAAcD,EAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,cAAc,SAAS,WAAW,SAAS,QAAQ,MAAM,EAAE,SAAS,CAAcE,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,cAAc,SAAS,WAAW,SAAS,WAAW,sBAAsB,WAAW,OAAO,SAAS,OAAO,MAAM,UAAU,cAAc,OAAO,aAAa,MAAM,UAAU,QAAQ,EAAE,SAAS,gFAAuD,CAAC,EAAeA,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,cAAc,SAAS,WAAW,SAAS,WAAW,sBAAsB,SAAS,OAAO,MAAM,UAAU,SAAS,QAAQ,aAAa,MAAM,UAAU,QAAQ,EAAE,SAAS,qEAA2D,CAAC,CAAC,CAAC,CAAC,EAAeF,EAAM,OAAO,CACxwC,SADqN,MAAMG,GAAG,CAACA,EAAE,eAAe,EAAE,IAAMC,EAAY,IAAI,SAASD,EAAE,aAAa,EAAE,QAAQ,EAAQE,EAAc,MAAM,KAAKD,EAAY,CAAC,CAACE,EAAKC,CAAK,KAAK,CAAC,CAACD,CAAI,EAAEC,CAAK,EAAE,EAAQC,EAAK,OAAO,OAAO,CAAC,EAAE,GAAGH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MAAM,OAAO,QAAQ,OAAO,gBAAgB,UAAU,MAAM,QAAQ,WAAW,OAAO,OAAO,OAAO,aAAa,MAAM,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE",
  "names": ["Form", "props", "showError", "setShowError", "ye", "showSuccess", "setShowSuccess", "submit", "submitting", "r", "u", "l", "p", "e", "formEntries", "mappedEntries", "name", "value", "data", "res", "err"]
}
