{"version":3,"file":"shared-lib.kNenlAkE.mjs","names":["useState","metadata","metadataVersion","__FramerMetadata__"],"sources":["https:/framerusercontent.com/modules/aJZpcPKBQCm23pH9FQ0i/eTf6VK4dpt16H971s9NX/AetherliteContactForm.js","https:/framerusercontent.com/modules/er9mvCYJjCasaunR9PTi/Y6LJL6mr7tbRLDUkS5Qv/augiA20Il.js","https:/framerusercontent.com/modules/yaUfSyZlgxPvBTIKZhlj/kXC3xmiw0lJJl2owwrR7/bUqixOTY6.js"],"sourcesContent":["// ============================================================\n// AetherliteContactForm.tsx — Framer Code Component\n// Submits to Airtable: \"Aetherlite - The Landing Page - v1.3\"\n// Table: LEADS\n// ============================================================\n// HOW TO ADD TO FRAMER:\n//   1. In Framer, go to Assets panel → Code → + (New Code File)\n//   2. Name it \"AetherliteContactForm\"\n//   3. Paste this entire file\n//   4. Replace YOUR_AIRTABLE_API_KEY below with your actual key\n//      (Get it at: airtable.com/create/tokens)\n//   5. Drag the component onto your canvas and position it\n//      over your existing Figma form design\n// ============================================================\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls}from\"framer\";import{useState}from\"react\";const AIRTABLE_API_KEY=\"pattyJBrT9zWt9pPm.e7e0400cd9cd667814614d3220af091dbee816a4f1f88d65f8ab2ac2cb65ef17\";const BASE_ID=\"app0Mq5QtGFAIsmkj\";const TABLE_ID=\"tbl0gyuAVN8JRlh8W\";const FIELD_IDS={firstName:\"fldZEz3OvhOutukHm\",lastName:\"fldW7SfHSMMSbi3iW\",email:\"fldatenPoLmeRLTCi\",phone:\"fldcwSJFIU7QGBN8q\",message:\"fldvztQXxSwwnQxXY\"};// ---- Styles — edit these to match your Figma design ----\nconst styles={wrapper:{width:\"100%\",height:\"100%\",display:\"flex\",flexDirection:\"column\",gap:\"16px\",fontFamily:\"inherit\",boxSizing:\"border-box\"},row:{display:\"flex\",gap:\"16px\",width:\"100%\"},fieldGroup:{display:\"flex\",flexDirection:\"column\",gap:\"6px\",flex:1},label:{fontSize:\"11px\",letterSpacing:\"0.08em\",textTransform:\"uppercase\",color:\"#ffffff\",fontWeight:500},input:{width:\"100%\",padding:\"10px 12px\",background:\"rgba(200, 200, 200, 0.15)\",border:\"1px solid rgba(255,255,255,0.15)\",borderRadius:\"4px\",color:\"#ffffff\",fontSize:\"14px\",outline:\"none\",boxSizing:\"border-box\",fontFamily:\"inherit\"},textarea:{width:\"100%\",padding:\"10px 12px\",background:\"rgba(200, 200, 200, 0.15)\",border:\"1px solid rgba(255,255,255,0.15)\",borderRadius:\"4px\",color:\"#ffffff\",fontSize:\"14px\",outline:\"none\",resize:\"none\",minHeight:\"130px\",boxSizing:\"border-box\",fontFamily:\"inherit\"},button:{padding:\"12px 32px\",background:\"#ffffff\",color:\"#000000\",border:\"none\",borderRadius:\"4px\",fontSize:\"13px\",fontWeight:600,letterSpacing:\"0.08em\",textTransform:\"uppercase\",cursor:\"pointer\",alignSelf:\"center\",minWidth:\"140px\",transition:\"opacity 0.2s\",fontFamily:\"inherit\"},successMsg:{textAlign:\"center\",color:\"#ffffff\",fontSize:\"15px\",padding:\"24px 0\"},errorMsg:{color:\"#ff6b6b\",fontSize:\"12px\",textAlign:\"center\"}};export default function AetherliteContactForm(){const[form,setForm]=useState({firstName:\"\",lastName:\"\",email:\"\",phone:\"\",message:\"\"});const[status,setStatus]=useState(\"idle\");const[errorMsg,setErrorMsg]=useState(\"\");const handleChange=(field,value)=>{setForm(prev=>({...prev,[field]:value}));};const handleSubmit=async()=>{// Basic validation\nif(!form.firstName||!form.lastName||!form.email||!form.message){setErrorMsg(\"Please fill out all required fields.\");return;}setErrorMsg(\"\");setStatus(\"loading\");try{const res=await fetch(`https://api.airtable.com/v0/${BASE_ID}/${TABLE_ID}`,{method:\"POST\",headers:{Authorization:`Bearer ${AIRTABLE_API_KEY}`,\"Content-Type\":\"application/json\"},body:JSON.stringify({fields:{[FIELD_IDS.firstName]:form.firstName,[FIELD_IDS.lastName]:form.lastName,[FIELD_IDS.email]:form.email,[FIELD_IDS.phone]:form.phone,[FIELD_IDS.message]:form.message}})});if(!res.ok){const data=await res.json();throw new Error(data?.error?.message||\"Submission failed.\");}setStatus(\"success\");setForm({firstName:\"\",lastName:\"\",email:\"\",phone:\"\",message:\"\"});}catch(err){setStatus(\"error\");setErrorMsg(err.message||\"Something went wrong. Please try again.\");}};if(status===\"success\"){return /*#__PURE__*/_jsx(\"div\",{style:styles.wrapper,children:/*#__PURE__*/_jsx(\"div\",{style:styles.successMsg,children:\"✓ Message received! We'll be in touch soon.\"})});}return /*#__PURE__*/_jsxs(\"div\",{style:styles.wrapper,children:[/*#__PURE__*/_jsxs(\"div\",{style:styles.row,children:[/*#__PURE__*/_jsxs(\"div\",{style:styles.fieldGroup,children:[/*#__PURE__*/_jsx(\"label\",{style:styles.label,children:\"First Name\"}),/*#__PURE__*/_jsx(\"input\",{style:styles.input,type:\"text\",value:form.firstName,onChange:e=>handleChange(\"firstName\",e.target.value),placeholder:\"\"})]}),/*#__PURE__*/_jsxs(\"div\",{style:styles.fieldGroup,children:[/*#__PURE__*/_jsx(\"label\",{style:styles.label,children:\"Last Name\"}),/*#__PURE__*/_jsx(\"input\",{style:styles.input,type:\"text\",value:form.lastName,onChange:e=>handleChange(\"lastName\",e.target.value),placeholder:\"\"})]})]}),/*#__PURE__*/_jsxs(\"div\",{style:styles.row,children:[/*#__PURE__*/_jsxs(\"div\",{style:styles.fieldGroup,children:[/*#__PURE__*/_jsx(\"label\",{style:styles.label,children:\"Email Address\"}),/*#__PURE__*/_jsx(\"input\",{style:styles.input,type:\"email\",value:form.email,onChange:e=>handleChange(\"email\",e.target.value),placeholder:\"\"})]}),/*#__PURE__*/_jsxs(\"div\",{style:styles.fieldGroup,children:[/*#__PURE__*/_jsx(\"label\",{style:styles.label,children:\"Phone Number\"}),/*#__PURE__*/_jsx(\"input\",{style:styles.input,type:\"tel\",value:form.phone,onChange:e=>handleChange(\"phone\",e.target.value),placeholder:\"\"})]})]}),/*#__PURE__*/_jsxs(\"div\",{style:styles.fieldGroup,children:[/*#__PURE__*/_jsx(\"label\",{style:styles.label,children:\"Message\"}),/*#__PURE__*/_jsx(\"textarea\",{style:styles.textarea,value:form.message,onChange:e=>handleChange(\"message\",e.target.value),placeholder:\"\"})]}),errorMsg?/*#__PURE__*/_jsx(\"div\",{style:styles.errorMsg,children:errorMsg}):null,/*#__PURE__*/_jsx(\"button\",{style:{...styles.button,opacity:status===\"loading\"?.6:1},onClick:handleSubmit,disabled:status===\"loading\",children:status===\"loading\"?\"Sending...\":\"Send\"})]});}addPropertyControls(AetherliteContactForm,{});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AetherliteContactForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AetherliteContactForm.map","// Generated by Framer (b16259d)\nexport default function metadata(params,activeLocale){return{breakpoints:[{hash:\"72rtr7\"}],description:\"Creative Productions without compromise.\",elements:{},framerSearch:{index:true},robots:\"max-image-preview:large\",serializationId:\"framer-bDNtp\",title:\"Aetherlite Productions LLC.\",viewport:\"width=1920\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (7c2f7bf)\nexport default function metadata(params,activeLocale){return{breakpoints:[{hash:\"1fpkfz6\"}],description:\"Let's connect!\",elements:{},framerSearch:{index:true},robots:\"max-image-preview:large\",serializationId:\"framer-jQITg\",title:\"Aetherlite Productions LLC.\",viewport:\"width=1920\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\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