{"version":3,"file":"CopyLink.BbSTSTaC.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/Hbc0lxqGSRzFG6uMT9yO/jZfB18ggDrqER5ihmIsa/GoogleMaps.js","https:/framerusercontent.com/modules/j1Yn3tCBD8WK1ek369L6/gyAqq5f7I7E74MmLhViM/Boton_COMPARTIR_a_cualquiera_.js","https:/framerusercontent.com/modules/8UWyzb5WexC8J65akPGJ/BorqznabCCDSlLIOTR0K/CopyLink.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,motion}from\"framer\";import{containerStyles,useRadius,borderRadiusControl}from\"https://framer.com/m/framer/default-utils.js@^0.45.0\";const coordinatesRegex=/^((?:\\-?|\\+?)?\\d+(?:\\.\\d+)?),\\s*((?:\\-?|\\+?)?\\d+(?:\\.\\d+)?)$/;/**\n * GOOGLE MAPS\n *\n * @framerIntrinsicWidth 600\n * @framerIntrinsicHeight 400\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function GoogleMaps({coordinates,zoom,style,...props}){const borderRadius=useRadius(props);return /*#__PURE__*/_jsx(motion.div,{style:{...style,...containerStyles,overflow:\"hidden\",borderRadius},...props,children:/*#__PURE__*/_jsx(\"iframe\",{style:{height:\"100%\",width:\"100%\",border:0},src:`https://maps.google.com/maps?q=${encodeURIComponent(coordinates)}&z=${zoom}&output=embed`})});}addPropertyControls(GoogleMaps,{coordinates:{type:ControlType.String,title:\"Location\",placeholder:\"Framer B.V.\",defaultValue:\"Framer B.V.\",description:\"The name of the place or its GPS coordinates.\"},zoom:{type:ControlType.Number,step:1,min:0,max:25,title:\"Zoom\",defaultValue:15},...borderRadiusControl});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GoogleMaps\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"400\",\"framerIntrinsicWidth\":\"600\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GoogleMaps.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// Función para manejar el click y abrir WhatsApp\nexport function ShareWhatsAppButton(props){const handleShareWhatsApp=()=>{const currentUrl=window.location.href;const message=encodeURIComponent(props.message+\" \"+currentUrl);const whatsappUrlApp=`whatsapp://send?text=${message}`;const whatsappUrlWeb=`https://wa.me/?text=${message}`;// Intentar abrir la App de WhatsApp\nif(navigator.userAgent.includes(\"Mac\")||navigator.userAgent.includes(\"Windows\")){window.location.href=whatsappUrlApp;setTimeout(()=>{// Si la app no se abre, abrir WhatsApp Web\nwindow.open(whatsappUrlWeb,\"_blank\");},500);}else{// En mobile, siempre abrir WhatsApp Web\nwindow.open(whatsappUrlWeb,\"_blank\");}};// Estilos base para el botón\nconst buttonStyle={display:\"flex\",alignItems:\"center\",justifyContent:\"center\",padding:\"10px 20px\",backgroundColor:props.backgroundColor,color:props.textColor,borderRadius:\"5px\",border:`2px solid ${props.borderColor}`,boxShadow:`0px 4px 8px rgba(0, 0, 0, 0.25)`,cursor:\"pointer\",width:props.buttonWidth,height:props.buttonHeight,maxWidth:\"100%\",fontSize:props.fontSize,fontFamily:props.fontFamily,fontWeight:props.fontWeight,transition:\"transform 0.1s ease, background-color 0.3s ease\"};// Estilo para el hover\nconst hoverStyle={// backgroundColor: \"#34B7F1\", // Cambia el color en hover\nboxShadow:`0px 8px 12px rgba(0, 0, 0, 0.35)`};// Estilo para el pressed (botón presionado)\nconst pressedStyle={transform:\"scale(0.98)\"};// Renderizamos el botón con comportamiento de hover y pressed\nreturn /*#__PURE__*/_jsxs(\"button\",{onClick:handleShareWhatsApp,style:buttonStyle,onMouseEnter:e=>{e.currentTarget.style.backgroundColor=hoverStyle.backgroundColor;e.currentTarget.style.boxShadow=hoverStyle.boxShadow;},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=props.backgroundColor;e.currentTarget.style.boxShadow=buttonStyle.boxShadow;},onMouseDown:e=>{e.currentTarget.style.transform=pressedStyle.transform;e.currentTarget.style.backgroundColor=pressedStyle.backgroundColor;},onMouseUp:e=>{e.currentTarget.style.transform=\"scale(1)\";e.currentTarget.style.backgroundColor=hoverStyle.backgroundColor;},children:[/*#__PURE__*/_jsx(\"img\",{src:props.icon,alt:\"WhatsApp Icon\",style:{width:24,height:24,marginRight:\"10px\"}}),/*#__PURE__*/_jsx(\"span\",{children:props.buttonText})]});}// Controles de propiedades que pueden modificarse en el panel o desde el código\naddPropertyControls(ShareWhatsAppButton,{message:{type:ControlType.String,title:\"Message\",defaultValue:\"Vi esta propiedad y me acord\\xe9 de vos\"},buttonText:{type:ControlType.String,title:\"Button Text\",defaultValue:\"Compartir\"},icon:{type:ControlType.File,allowedFileTypes:[\"png\",\"jpg\",\"svg\"],title:\"Icon\"},backgroundColor:{type:ControlType.Color,title:\"Background Color\",defaultValue:\"#25D366\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#ffffff\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#1B0004\"},buttonWidth:{type:ControlType.String,title:\"Button Width\",defaultValue:\"100%\"},buttonHeight:{type:ControlType.String,title:\"Button Height\",defaultValue:\"44px\"},fontSize:{type:ControlType.String,title:\"Font Size\",defaultValue:\"16px\"},fontFamily:{type:ControlType.String,title:\"Font Family\",defaultValue:\"DM Sans\"},fontWeight:{type:ControlType.String,title:\"Font Weight\",defaultValue:\"500\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"ShareWhatsAppButton\":{\"type\":\"reactComponent\",\"name\":\"ShareWhatsAppButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Boton_COMPARTIR_a_cualquiera_.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState}from\"react\";export function CopyLinkIcon(props){const[copied,setCopied]=useState(false);const[pressed,setPressed]=useState(false);const[hovered,setHovered]=useState(false)// Estado para hover\n;const handleCopyLink=()=>{const currentUrl=window.location.href;navigator.clipboard.writeText(currentUrl).then(()=>{setCopied(true);setTimeout(()=>setCopied(false),1e3);});};const handleMouseDown=()=>setPressed(true);const handleMouseUp=()=>setPressed(false);const handleMouseEnter=()=>setHovered(true);const handleMouseLeave=()=>{setPressed(false)// Volver a estado normal si el mouse sale\n;setHovered(false);};const commonStyles={border:`2px solid ${props.borderColor}`,boxShadow:hovered?`0px 8px 12px rgba(0, 0, 0, 0.35)`// Sombra más dura en hover\n:`0px 4px 8px rgba(0, 0, 0, 0.25)`,backgroundColor:pressed?\"transparent\"// Color más oscuro en pressed\n:hovered?\"transparent\"// Color más claro en hover\n:props.backgroundColor,padding:\"8px\",borderRadius:\"4px\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",cursor:\"pointer\",transform:pressed?\"scale(0.98)\":\"scale(1)\",transition:\"transform 0.1s ease, background-color 0.1s ease, box-shadow 0.1s ease\"};const textStyles={fontFamily:props.fontFamily,fontSize:`${props.fontSize}px`,fontWeight:props.fontWeight,color:props.fontColor};return /*#__PURE__*/_jsxs(\"div\",{onClick:handleCopyLink,onMouseDown:handleMouseDown,onMouseUp:handleMouseUp,onMouseEnter:handleMouseEnter,onMouseLeave:handleMouseLeave,style:commonStyles,children:[/*#__PURE__*/_jsx(\"img\",{src:copied?props.copiedImage:props.image,alt:\"Copy Link\",style:{width:24,height:24,marginRight:8}}),/*#__PURE__*/_jsx(\"span\",{style:textStyles,children:copied?props.copiedText:props.text})]});}// Property controls for the icon, text, and styles\naddPropertyControls(CopyLinkIcon,{image:{type:ControlType.File,allowedFileTypes:[\"png\",\"jpg\",\"svg\"],title:\"Icon Image\"},copiedImage:{type:ControlType.File,allowedFileTypes:[\"png\",\"jpg\",\"svg\"],title:\"Copied Icon Image\"},text:{type:ControlType.String,title:\"Text\",defaultValue:\"Copiar enlace\"},copiedText:{type:ControlType.String,title:\"Copied Text\",defaultValue:\"Enlace copiado\"},// Border color\nborderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#e0e0e0\"},// Shadow color\nshadowColor:{type:ControlType.Color,title:\"Shadow Color\",defaultValue:\"rgba(0, 0, 0, 0.2)\"},// Background color\nbackgroundColor:{type:ControlType.Color,title:\"Background Color\",defaultValue:\"#ffffff\"},// Font family\nfontFamily:{type:ControlType.String,title:\"Font Family\",defaultValue:\"DM Sans\"},// Font size\nfontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:16,min:8,max:48,step:1},// Font weight\nfontWeight:{type:ControlType.Enum,title:\"Font Weight\",defaultValue:\"400\",options:[\"100\",\"200\",\"300\",\"400\",\"500\",\"600\",\"700\",\"800\",\"900\"],optionTitles:[\"Thin\",\"Extra Light\",\"Light\",\"Normal\",\"Medium\",\"Semi Bold\",\"Bold\",\"Extra Bold\",\"Black\"]},// Font color\nfontColor:{type:ControlType.Color,title:\"Font Color\",defaultValue:\"#000000\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"CopyLinkIcon\":{\"type\":\"reactComponent\",\"name\":\"CopyLinkIcon\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CopyLink.map"],"mappings":"ijBAQG,SAAwB,EAAW,CAAC,cAAY,OAAK,QAAM,GAAG,GAAO,CAAC,IAAM,EAAa,EAAU,EAAM,CAAC,OAAoB,EAAK,EAAO,IAAI,CAAC,MAAM,CAAC,GAAG,EAAM,GAAG,EAAgB,SAAS,SAAS,eAAa,CAAC,GAAG,EAAM,SAAsB,EAAK,SAAS,CAAC,MAAM,CAAC,OAAO,OAAO,MAAM,OAAO,OAAO,EAAE,CAAC,IAAI,kCAAkC,mBAAmB,EAAY,CAAC,KAAK,EAAK,eAAe,CAAC,CAAC,C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