{"version":3,"file":"Examples.Bi18ExV7.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/3pSOohry5fYm06WzhEUk/rjNfJJIZMUw37atS13oM/Examples.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState}from\"react\";export default function WhatsAppMenu(){const[isOpen,setIsOpen]=useState(false);const contacts=[{name:\"Ventas C\\xf3rdoba\",phone:\"5493512561268\",type:\"whatsapp\"},{name:\"Ventas Villa Mar\\xeda\",phone:\"08104447863\",message:null,type:\"call\"}];const handleContact=contact=>{if(contact.type===\"call\"){// Para llamadas directas\nwindow.location.href=`tel:${contact.phone}`;}else{// Para WhatsApp\nconst url=`https://wa.me/${contact.phone}`;window.open(url,\"_blank\");}};return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"fixed\",bottom:\"45px\",right:\"24px\",zIndex:9999,fontFamily:\"system-ui, -apple-system, sans-serif\"},children:[isOpen&&/*#__PURE__*/_jsxs(\"div\",{style:{position:\"absolute\",bottom:\"90px\",right:\"0\",backgroundColor:\"white\",borderRadius:\"20px\",boxShadow:\"0 10px 40px rgba(0,0,0,0.2)\",width:\"280px\",overflow:\"hidden\",animation:\"slideIn 0.3s ease-out\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n            @keyframes slideIn {\n              from {\n                opacity: 0;\n                transform: translateY(10px);\n              }\n              to {\n                opacity: 1;\n                transform: translateY(0);\n              }\n            }\n          `}),/*#__PURE__*/_jsxs(\"div\",{style:{backgroundColor:\"#25D366\",color:\"white\",padding:\"16px\",display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontWeight:\"600\",fontSize:\"15px\"},children:\"Selecciona un contacto\"}),/*#__PURE__*/_jsx(\"button\",{onClick:()=>setIsOpen(false),style:{background:\"rgba(255,255,255,0.2)\",border:\"none\",borderRadius:\"50%\",width:\"32px\",height:\"32px\",cursor:\"pointer\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",color:\"white\",fontSize:\"20px\",transition:\"background 0.2s\"},onMouseEnter:e=>e.currentTarget.style.background=\"rgba(255,255,255,0.3)\",onMouseLeave:e=>e.currentTarget.style.background=\"rgba(255,255,255,0.2)\",children:\"✕\"})]}),/*#__PURE__*/_jsx(\"div\",{style:{padding:\"8px\"},children:contacts.map((contact,index)=>/*#__PURE__*/_jsxs(\"button\",{onClick:()=>{handleContact(contact);setIsOpen(false);},style:{width:\"100%\",textAlign:\"left\",padding:\"16px\",borderRadius:\"12px\",border:\"none\",background:\"transparent\",cursor:\"pointer\",display:\"flex\",alignItems:\"center\",gap:\"12px\",transition:\"background 0.2s\",marginBottom:index<contacts.length-1?\"4px\":\"0\"},onMouseEnter:e=>e.currentTarget.style.background=\"#f0fdf4\",onMouseLeave:e=>e.currentTarget.style.background=\"transparent\",children:[/*#__PURE__*/_jsx(\"div\",{style:{backgroundColor:\"#25D366\",borderRadius:\"50%\",padding:\"10px\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",minWidth:\"44px\",height:\"44px\"},children:contact.type===\"call\"?// Ícono de teléfono para llamadas\n    /*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 24 24\",style:{width:\"24px\",height:\"24px\",fill:\"white\"},children:/*#__PURE__*/_jsx(\"path\",{d:\"M20.01 15.38c-1.23 0-2.42-.2-3.53-.56a.977.977 0 00-1.01.24l-1.57 1.97c-2.83-1.35-5.48-3.9-6.89-6.83l1.95-1.66c.27-.28.35-.67.24-1.02-.37-1.11-.56-2.3-.56-3.53 0-.54-.45-.99-.99-.99H4.19C3.65 3 3 3.24 3 3.99 3 13.28 10.73 21 20.01 21c.71 0 .99-.63.99-1.18v-3.45c0-.54-.45-.99-.99-.99z\"})}):// Ícono de WhatsApp\n    /*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 24 24\",style:{width:\"24px\",height:\"24px\",fill:\"white\"},children:/*#__PURE__*/_jsx(\"path\",{d:\"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z\"})})}),/*#__PURE__*/_jsxs(\"div\",{style:{flex:1},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontWeight:\"600\",color:\"#1f2937\",fontSize:\"15px\",marginBottom:\"2px\"},children:contact.name}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:\"13px\",color:\"#6b7280\"},children:contact.type===\"call\"?\"Llamar ahora\":\"Enviar mensaje\"})]})]},index))})]}),/*#__PURE__*/_jsx(\"button\",{onClick:()=>setIsOpen(!isOpen),style:{backgroundColor:\"#25D366\",border:\"none\",borderRadius:\"50%\",width:\"64px\",height:\"64px\",cursor:\"pointer\",boxShadow:\"0 4px 20px rgba(37, 211, 102, 0.4)\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",transition:\"all 0.3s ease\",transform:isOpen?\"rotate(90deg)\":\"rotate(0deg)\"},onMouseEnter:e=>{e.currentTarget.style.transform=isOpen?\"rotate(90deg) scale(1.1)\":\"scale(1.1)\";e.currentTarget.style.backgroundColor=\"#20BA5A\";},onMouseLeave:e=>{e.currentTarget.style.transform=isOpen?\"rotate(90deg) scale(1)\":\"scale(1)\";e.currentTarget.style.backgroundColor=\"#25D366\";},children:/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 24 24\",style:{width:\"36px\",height:\"36px\",fill:\"white\"},children:/*#__PURE__*/_jsx(\"path\",{d:\"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z\"})})})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"WhatsAppMenu\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map"],"mappings":"uIAAqF,SAAwB,GAAc,CAAC,GAAK,CAAC,EAAO,GAAWA,EAAS,EAAK,EAAQ,EAAS,CAAC,CAAC,KAAK,iBAAoB,MAAM,gBAAgB,KAAK,UAAU,EAAE,CAAC,KAAK,qBAAwB,MAAM,cAAc,QAAQ,KAAK,KAAK,MAAM,CAAC,EAAQ,EAAc,GAAS,CAAC,GAAG,EAAQ,OAAO,OAClX,EAAO,SAAS,KAAK,OAAO,EAAQ,YAAa,CACjD,IAAM,EAAI,iBAAiB,EAAQ,QAAQ,EAAO,KAAK,EAAI,QAAQ,CAAE,CAAC,EAAE,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,SAAS,QAAQ,OAAO,OAAO,MAAM,OAAO,OAAO,KAAK,WAAW,sCAAsC,EAAE,SAAS,CAAC,GAAqB,EAAM,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,OAAO,OAAO,MAAM,IAAI,gBAAgB,QAAQ,aAAa,OAAO,UAAU,8BAA8B,MAAM,QAAQ,SAAS,SAAS,UAAU,uBAAuB,EAAE,SAAS,CAAc,EAAK,QAAQ,CAAC,SAAS;;;;;;;;;;;WAWpf,CAAC,EAAe,EAAM,MAAM,CAAC,MAAM,CAAC,gBAAgB,UAAU,MAAM,QAAQ,QAAQ,OAAO,QAAQ,OAAO,WAAW,SAAS,eAAe,eAAe,EAAE,SAAS,CAAc,EAAK,OAAO,CAAC,MAAM,CAAC,WAAW,MAAM,SAAS,MAAM,EAAE,SAAS,wBAAwB,CAAC,EAAe,EAAK,SAAS,CAAC,YAAY,EAAU,EAAK,EAAE,MAA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