{"version":3,"file":"ShareButtonCode.BD7aMsGh.mjs","names":["React.useState","__esmMin","init_ssg_sandbox_shims","navigator","init_npm_react_18_3_1","_e","p","window","init_framer_BisrWwwE","addPropertyControls","ControlType","ShareButtons","props","copied","setCopied","getUrl","openShare","url","text","message","links","type","copyLink","baseButton","size","iconColor","iconStyle","Button","bg","init_ShareButtonCode","init_jsx_runtime"],"sources":["https:/framerusercontent.com/modules/OnQfqtVx47kdBdBbzMDk/sUxjbsiI6nvxJXunGpWj/ShareButtonCode.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function ShareButtons(props){const{size,gap,iconColor,message}=props;const[copied,setCopied]=React.useState(false);const getUrl=()=>typeof window!==\"undefined\"?window.location.href:\"\";const openShare=type=>{const url=encodeURIComponent(getUrl());const text=encodeURIComponent(message);const links={facebook:`https://www.facebook.com/sharer/sharer.php?u=${url}`,whatsapp:`https://wa.me/?text=${text}%20${url}`,email:`mailto:?subject=${text}&body=${url}`};if(type===\"email\"){window.location.href=links.email;}else{window.open(links[type],\"_blank\");}};const copyLink=async()=>{await navigator.clipboard.writeText(getUrl());setCopied(true);setTimeout(()=>setCopied(false),1500);};const baseButton={width:size,height:size,borderRadius:\"50%\",border:\"none\",color:iconColor,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",cursor:\"pointer\",padding:0,transition:\"transform 0.2s ease, opacity 0.2s ease\"};const iconStyle={width:size*.52,height:size*.52,display:\"block\"};const Button=({bg,onClick,children})=>/*#__PURE__*/_jsx(\"button\",{style:{...baseButton,background:bg},onClick:onClick,onMouseEnter:e=>e.currentTarget.style.transform=\"scale(1.08)\",onMouseLeave:e=>e.currentTarget.style.transform=\"scale(1)\",children:children});return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap,alignItems:\"center\"},children:[/*#__PURE__*/_jsx(Button,{bg:\"#1877F2\",onClick:()=>openShare(\"facebook\"),children:/*#__PURE__*/_jsx(\"svg\",{style:iconStyle,viewBox:\"0 0 24 24\",fill:\"currentColor\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M22 12.06C22 6.48 17.52 2 11.94 2S2 6.48 2 12.06c0 5.02 3.66 9.18 8.44 9.94v-7.03H7.9v-2.91h2.54V9.85c0-2.5 1.49-3.89 3.77-3.89 1.09 0 2.23.2 2.23.2v2.45h-1.25c-1.24 0-1.62.77-1.62 1.56v1.89h2.76l-.44 2.91h-2.32V22C18.34 21.24 22 17.08 22 12.06z\"})})}),/*#__PURE__*/_jsx(Button,{bg:\"#25D366\",onClick:()=>openShare(\"whatsapp\"),children:/*#__PURE__*/_jsx(\"svg\",{style:iconStyle,viewBox:\"0 0 24 24\",fill:\"currentColor\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M20.52 3.48A11.86 11.86 0 0 0 12.08 0C5.48 0 .11 5.37.11 11.97c0 2.11.55 4.17 1.6 5.98L0 24l6.2-1.63a11.95 11.95 0 0 0 5.88 1.5h.01c6.6 0 11.97-5.37 11.97-11.97 0-3.2-1.25-6.2-3.54-8.42zM12.09 21.85h-.01a9.93 9.93 0 0 1-5.06-1.38l-.36-.21-3.68.97.98-3.59-.23-.37a9.92 9.92 0 0 1-1.52-5.3c0-5.48 4.46-9.94 9.95-9.94 2.65 0 5.14 1.03 7.02 2.9a9.85 9.85 0 0 1 2.91 7.01c0 5.49-4.46 9.95-9.99 9.95zm5.46-7.45c-.3-.15-1.77-.87-2.04-.97-.27-.1-.47-.15-.67.15-.2.3-.77.97-.94 1.17-.17.2-.35.22-.65.07-.3-.15-1.27-.47-2.42-1.49-.89-.79-1.49-1.77-1.67-2.07-.17-.3-.02-.46.13-.61.13-.13.3-.35.45-.52.15-.17.2-.3.3-.5.1-.2.05-.37-.02-.52-.07-.15-.67-1.62-.92-2.22-.24-.58-.49-.5-.67-.51h-.57c-.2 0-.52.07-.79.37-.27.3-1.04 1.02-1.04 2.49s1.07 2.89 1.22 3.09c.15.2 2.1 3.2 5.09 4.49.71.31 1.27.49 1.7.63.71.23 1.36.2 1.87.12.57-.09 1.77-.72 2.02-1.42.25-.7.25-1.3.17-1.42-.07-.13-.27-.2-.57-.35z\"})})}),/*#__PURE__*/_jsx(Button,{bg:\"#EA4335\",onClick:()=>openShare(\"email\"),children:/*#__PURE__*/_jsx(\"svg\",{style:iconStyle,viewBox:\"0 0 24 24\",fill:\"currentColor\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z\"})})}),/*#__PURE__*/_jsx(Button,{bg:\"#6B7280\",onClick:copyLink,children:copied?/*#__PURE__*/_jsx(\"svg\",{style:iconStyle,viewBox:\"0 0 24 24\",fill:\"currentColor\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z\"})}):/*#__PURE__*/_jsxs(\"svg\",{style:iconStyle,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:[/*#__PURE__*/_jsx(\"rect\",{x:\"9\",y:\"9\",width:\"11\",height:\"11\",rx:\"2\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M5 15V6a2 2 0 0 1 2-2h9\"})]})})]});}addPropertyControls(ShareButtons,{size:{type:ControlType.Number,title:\"Size\",defaultValue:38,min:24,max:80},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:12,min:0,max:40},iconColor:{type:ControlType.Color,title:\"Icon\",defaultValue:\"#FFFFFF\"},message:{type:ControlType.String,title:\"Message\",defaultValue:\"Check out this tour:\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ShareButtons\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\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