import{S as e,_ as t,t as n}from"./index-CyveQwnz.js";import{t as r}from"./proxy-B_Exbr39.js";import{t as i}from"./AnimatePresence-CH9Cx01g.js";import"./emotion-is-prop-valid.esm-DKI-Z5VI.js";import{g as a,l as o,o as s,p as c}from"./fa-Dm_y8sJq.js";import{t as l}from"./createLucideIcon-Du4OBjka.js";import{t as u}from"./chevron-down-CNwzAtAv.js";var d=l(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),f=e(t()),p=e(n());function m({darkMode:e}){let[t,n]=(0,f.useState)(!1),[l,m]=(0,f.useState)(!1),h=[{icon:(0,p.jsx)(c,{size:24}),link:`https://www.tiktok.com/@bamayrdy?_t=ZS-90KYzGBeL4B&_r=1`},{icon:(0,p.jsx)(s,{size:24}),link:`https://www.facebook.com/share/173Jm9VAKm/`},{icon:(0,p.jsx)(o,{size:24}),link:`https://www.linkedin.com/in/faress-mohamed-02088628b`},{icon:(0,p.jsx)(a,{size:26}),link:`https://wa.me/+201017855409`}];return(0,f.useEffect)(()=>{let e=()=>m(window.innerWidth<768);return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),(0,p.jsxs)(r.div,{initial:{opacity:0,x:-50},animate:{opacity:1,x:0},transition:{duration:1,ease:`easeOut`},className:` fixed 
        md:h-60
        bottom-1 left-1  
        flex flex-row md:flex-col 
        gap-3
        md:top-1/2 md:left-2 md:-translate-y-1/2 
        z-50 
        ${e?`bg-white/5 backdrop-blur-[10px]`:`bg-[#404040] backdrop-blur-[10px]`} 
        p-2
        m3-2 
        rounded-3xl`,children:[l&&(0,p.jsx)(`button`,{onClick:()=>n(!t),className:` cursor-pointer flex items-center justify-center w-9 h-9 rounded-full ${e?` bg-[#3db9eb]/50 hover:border-[#3db9eb] hover:text-[#3db9eb]`:` bg-white hover:border-[#32CD32] hover:text-[#32CD32]`}   transition`,children:t?(0,p.jsx)(u,{size:22}):(0,p.jsx)(d,{size:22})}),(0,p.jsx)(i,{children:(!l||t)&&(0,p.jsx)(r.div,{initial:{opacity:0,y:40},animate:{opacity:1,y:0},exit:{opacity:0,y:40},transition:{duration:.4},className:`flex flex-row md:flex-col gap-4`,children:h.map((t,n)=>(0,p.jsx)(r.a,{href:t.link,target:`_blank`,rel:`noopener noreferrer`,whileHover:{scale:1.2,rotate:5},whileTap:{scale:.9},transition:{type:`spring`,stiffness:300},className:`p-2 rounded-full border border-transparent
                            transition-all duration-100 ${e?`text-white hover:border-[#3db9eb] hover:text-[#3db9eb]`:`text-white hover:border-white hover:text-white`}`,children:t.icon},n))})})]})}export{m as default};