{"version":3,"file":"WHATSAPP.BDVbsfJs.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/mzP7giz869VVe23kuBZl/ISXt2aSVWKny2teZwOzv/WHATSAPP.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";export default function ModalForm(){const[isOpen,setIsOpen]=useState(false);const[name,setName]=useState(\"\");const[phone,setPhone]=useState(\"\");const[message,setMessage]=useState(\"\");const phoneNumber=\"919515244667\"// Replace with your WhatsApp number\n;const handleSubmit=()=>{const fullMessage=`Name: ${name}\nPhone: ${phone}\nMessage: ${message}`;const encoded=encodeURIComponent(fullMessage);const link=`https://wa.me/${phoneNumber}?text=${encoded}`;window.open(link,\"_blank\");setIsOpen(false)// Close modal\n;};return /*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"button\",{onClick:()=>setIsOpen(true),style:{padding:\"12px 20px\",backgroundColor:\"#000\",color:\"white\",fontSize:\"16px\",border:\"none\",borderRadius:\"8px\",cursor:\"pointer\",transition:\"all 0.3s ease\"},onMouseOver:e=>{e.target.style.backgroundColor=\"#fff\";e.target.style.color=\"#000\";},onMouseOut:e=>{e.target.style.backgroundColor=\"#000\";e.target.style.color=\"#fff\";},children:\"Contact Us On WhatsApp\"}),isOpen&&/*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",top:0,left:0,right:0,bottom:0,backgroundColor:\"rgba(0, 0, 0, 0.6)\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",zIndex:1e3},children:/*#__PURE__*/_jsxs(\"div\",{style:{background:\"#fff\",borderRadius:\"16px\",padding:\"30px\",width:\"90%\",maxWidth:\"400px\",position:\"relative\",boxShadow:\"0 10px 40px rgba(0,0,0,0.2)\",transform:\"scale(1)\",animation:\"scaleIn 0.3s ease-out forwards\"},children:[/*#__PURE__*/_jsx(\"button\",{onClick:()=>setIsOpen(false),style:{position:\"absolute\",top:10,right:10,background:\"transparent\",border:\"none\",fontSize:\"20px\",cursor:\"pointer\",color:\"#333\"},children:\"❌\"}),/*#__PURE__*/_jsx(\"h2\",{style:{marginBottom:\"20px\",color:\"#111\"},children:\"Get a Quote\"}),/*#__PURE__*/_jsx(\"input\",{type:\"text\",placeholder:\"Your Name\",value:name,onChange:e=>setName(e.target.value),style:{width:\"100%\",padding:\"10px\",marginBottom:\"10px\",borderRadius:\"8px\",border:\"1px solid #ccc\"}}),/*#__PURE__*/_jsx(\"input\",{type:\"tel\",placeholder:\"Phone Number\",value:phone,onChange:e=>setPhone(e.target.value),style:{width:\"100%\",padding:\"10px\",marginBottom:\"10px\",borderRadius:\"8px\",border:\"1px solid #ccc\"}}),/*#__PURE__*/_jsx(\"textarea\",{placeholder:\"Your Message\",value:message,onChange:e=>setMessage(e.target.value),rows:4,style:{width:\"100%\",padding:\"10px\",marginBottom:\"20px\",borderRadius:\"8px\",border:\"1px solid #ccc\"}}),/*#__PURE__*/_jsx(\"button\",{onClick:handleSubmit,style:{width:\"100%\",padding:\"12px\",backgroundColor:\"#000\",color:\"#fff\",border:\"none\",borderRadius:\"8px\",fontSize:\"16px\",cursor:\"pointer\",transition:\"all 0.3s ease\"},onMouseOver:e=>{e.target.style.backgroundColor=\"#fff\";e.target.style.color=\"#000\";},onMouseOut:e=>{e.target.style.backgroundColor=\"#000\";e.target.style.color=\"#fff\";},children:\"Submit via WhatsApp\"})]})}),/*#__PURE__*/_jsx(\"style\",{children:`\n          @keyframes scaleIn {\n            0% { transform: scale(0.8); opacity: 0; }\n            100% { transform: scale(1); opacity: 1; }\n          }\n        `})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ModalForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WHATSAPP.map"],"mappings":"0MAAqF,SAAwB,GAAW,CAAC,GAAK,CAAC,EAAO,EAAU,CAACA,EAAS,IAAY,CAA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