{"version":3,"file":"TabForm.CpOAtcOp.mjs","names":["useState","_Fragment"],"sources":["https:/framerusercontent.com/modules/6wSopwQX9g2IpYmKQLKp/IK2Xc9TBTosEnKkDSFdl/TabForm.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\";/**\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 TabForm(props){// This is a React component containing an Example component\n// - Replace <Example /> with your own code\n// - Find inspiration: https://www.framer.com/developers/\nconst[currentForm,setCurrentForm]=useState(\"private\");const formDetails={company:{action:\"https://submit-form.com/sD0gTaF2a\",redirect:\"https://tharrakamma.co.za/jamada-contact\"},private:{action:\"https://submit-form.com/sD0gTaF2a\",redirect:\"https://tharrakamma.co.za/jamada-contact\"}};const commonTabStyle={// Add your common styles here\ncolor:\"#3b3b42\",border:\"none\",outline:\"none\",cursor:\"pointer\",fontSize:\"16px\",backgroundColor:\"#ffffff\"};const activeTabStyle={// Add your active tab styles here\nbackgroundColor:\"#008186\",color:\"#ffffff\"};return /*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsxs(\"div\",{style:{backgroundColor:\"#ffffff\",padding:\"5px\",display:\"flex\",marginBottom:\"20px\",marginLeft:\"5px\",marginRight:\"5px\",justifyContent:\"space-between\",overflow:\"hidden\",borderRadius:\"32px\"},children:[/*#__PURE__*/_jsx(\"button\",{onClick:()=>setCurrentForm(\"private\"),style:{...commonTabStyle,...currentForm===\"private\"?activeTabStyle:{},flex:1,borderRadius:\"32px\",padding:\"10px 20px\"},children:\"Private\"}),/*#__PURE__*/_jsx(\"button\",{onClick:()=>setCurrentForm(\"company\"),style:{...commonTabStyle,...currentForm===\"company\"?activeTabStyle:{},flex:1,borderRadius:\"32px\",padding:\"10px 20px\"},children:\"Company\"})]}),/*#__PURE__*/_jsxs(\"form\",{action:formDetails[currentForm].action,style:{display:\"flex\",flexDirection:\"column\",alignItems:\"left\",fontFamily:\"Urbanist, sans-serif\",fontSize:\"16px\",color:\"black\",padding:\"24px\",backgroundColor:\"white\",borderRadius:\"32px\",boxShadow:\"0 0 8px 0 rgba(0, 0, 0, 0.0)\"},children:[/*#__PURE__*/_jsx(\"input\",{type:\"hidden\",name:\"_redirect\",value:formDetails[currentForm].redirect}),/*#__PURE__*/_jsx(\"label\",{htmlFor:\"name\",style:{marginBottom:\"8px\"},children:\"Name:\"}),/*#__PURE__*/_jsx(\"input\",{type:\"text\",id:\"name\",name:\"name\",placeholder:\"Name\",required:true,style:{width:\"100%\",padding:\"16px\",marginBottom:\"24px\",border:\"1px solid #ccc\",borderRadius:\"16px\"}}),/*#__PURE__*/_jsx(\"label\",{htmlFor:\"email\",style:{marginBottom:\"8px\"},children:\"Email:\"}),/*#__PURE__*/_jsx(\"input\",{type:\"text\",id:\"email\",name:\"email\",placeholder:\"Email\",required:true,style:{width:\"100%\",padding:\"16px\",marginBottom:\"24px\",border:\"1px solid #ccc\",borderRadius:\"16px\"}}),/*#__PURE__*/_jsx(\"label\",{htmlFor:\"email\",style:{marginBottom:\"8px\"},children:\"Contact No:\"}),/*#__PURE__*/_jsx(\"input\",{type:\"text\",id:\"phone\",name:\"phone\",placeholder:\"Phone\",required:true,style:{width:\"100%\",padding:\"16px\",marginBottom:\"24px\",border:\"1px solid #ccc\",borderRadius:\"16px\"}}),currentForm===\"company\"&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"label\",{htmlFor:\"companyName\",style:{marginBottom:\"8px\"},children:\"Company Name:\"}),/*#__PURE__*/_jsx(\"input\",{type:\"text\",id:\"companyName\",name:\"companyName\",placeholder:\"Company Name\",required:true,style:{width:\"100%\",padding:\"16px\",marginBottom:\"24px\",border:\"1px solid #ccc\",borderRadius:\"16px\"}}),/*#__PURE__*/_jsx(\"label\",{htmlFor:\"address\",style:{marginBottom:\"8px\"},children:\"Company Address:\"}),/*#__PURE__*/_jsx(\"input\",{type:\"text\",id:\"address\",name:\"address\",placeholder:\"Address\",required:true,style:{width:\"100%\",padding:\"16px\",marginBottom:\"24px\",border:\"1px solid #ccc\",borderRadius:\"16px\"}})]}),/*#__PURE__*/_jsx(\"label\",{htmlFor:\"date\",style:{marginBottom:\"8px\"},children:\"Date:\"}),/*#__PURE__*/_jsx(\"input\",{type:\"date\",name:\"eventdate\",required:true,style:{width:\"100%\",padding:\"16px\",marginBottom:\"24px\",border:\"1px solid #ccc\",borderRadius:\"16px\"}}),/*#__PURE__*/_jsx(\"label\",{htmlFor:\"message\",style:{marginBottom:\"8px\"},children:\"Message:\"}),/*#__PURE__*/_jsx(\"textarea\",{type:\"textarea\",rows:\"4\",id:\"message\",name:\"message\",placeholder:\"Message\",required:true,style:{width:\"100%\",padding:\"16px\",marginBottom:\"24px\",border:\"1px solid #ccc\",borderRadius:\"16px\"}}),/*#__PURE__*/_jsx(\"input\",{type:\"submit\",value:\"Submit\",style:{fontSize:\"16px\",fontFamily:\"Manrope, sans serif\",width:\"100%\",padding:\"16px\",backgroundColor:\"#008186\",color:\"white\",fontWeight:\"bold\",border:\"none\",borderRadius:\"32px\",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\":\"TabForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TabForm.map"],"mappings":"yKAQG,SAAwB,EAAQ,EAAM,CAGzC,GAAK,CAAC,EAAY,GAAgBA,EAAS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