{"version":3,"file":"shared-lib.BsEffebX.mjs","names":["useState","_Fragment","startTransition"],"sources":["https:/framerusercontent.com/modules/YQX6HAsgO2y5PG3gvjqK/Ri6JF7mBAwksVX0qEUJE/HamburgerIcon.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,startTransition}from\"react\";export default function HamburgerIcon(props){const{color,size,thickness,borderRadius,logo,style,animationDuration=.3}=props;const[open,setOpen]=useState(false);const[hovered,setHovered]=useState(false);const[hoveredIndex,setHoveredIndex]=useState(null);const[logoHovered,setLogoHovered]=useState(false);const duration=`${animationDuration}s`;const barHeight=hovered?5:thickness;const barCommon={position:\"absolute\",left:0,width:size,height:barHeight,background:color,borderRadius,transition:`transform ${duration} cubic-bezier(.4,1,.4,1), background ${duration}, top ${duration}, height ${duration}`};const navItems=[\"BIO\",\"SOCIAL MEDIA\",\"PRODU\\xc7\\xc3O\",\"AGENCIADOS\",\"CONEX\\xd5ES\",\"MARKETING DE INFLU\\xcaNCIA\",\"CONTATO\"];const toSlug=text=>\"/\"+text.toLowerCase().normalize(\"NFD\").replace(/[\\u0300-\\u036f]/g,\"\").replace(/\\s+/g,\"-\").replace(/[^\\w-]/g,\"\");return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsxs(\"div\",{style:{position:\"fixed\",top:0,left:0,width:\"100%\",height:80,display:\"flex\",alignItems:\"center\",justifyContent:\"space-between\",padding:\"0 20px\",zIndex:5e3,mixBlendMode:\"difference\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{width:size,height:size,position:\"relative\",cursor:\"pointer\",background:\"transparent\",userSelect:\"none\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",zIndex:999},\"aria-label\":open?\"Close menu\":\"Open menu\",role:\"button\",tabIndex:0,onClick:()=>startTransition(()=>setOpen(v=>!v)),onMouseEnter:()=>setHovered(true),onMouseLeave:()=>setHovered(false),children:[/*#__PURE__*/_jsx(\"div\",{style:{...barCommon,top:open?size/2-thickness/2:size*.32,transform:open?`rotate(45deg)`:`rotate(-45deg)`}}),/*#__PURE__*/_jsx(\"div\",{style:{...barCommon,top:open?size/2-thickness/2:size*.62,transform:open?`rotate(-45deg)`:`rotate(-45deg)`}})]}),/*#__PURE__*/_jsx(\"a\",{href:\"/\",style:{position:\"absolute\",left:\"50%\",transform:\"translateX(-50%)\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",height:\"100%\"},onMouseEnter:()=>setLogoHovered(true),onMouseLeave:()=>setLogoHovered(false),children:logo&&/*#__PURE__*/_jsx(\"img\",{src:logo,alt:\"Logo\",style:{height:\"80%\",objectFit:\"contain\",transform:logoHovered?\"scale(1.2)\":\"scale(1)\",transition:\"transform 0.3s ease\"}})})]}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",top:0,left:0,height:\"100vh\",width:300,background:\"#141414\",color:\"#FFE9BC\",padding:\"80px 20px\",display:\"flex\",flexDirection:\"column\",gap:20,transform:open?\"translateX(0)\":\"translateX(-100%)\",transition:`transform ${duration} ease`,zIndex:1e3},children:navItems.map((item,index)=>{const isHovered=hoveredIndex===index;const underlineTransform=`scaleX(${isHovered?1:0})`;return /*#__PURE__*/_jsxs(\"a\",{href:toSlug(item),style:{position:\"relative\",display:\"inline-block\",textDecoration:\"none\",paddingBottom:\"5px\",paddingTop:\"20px\",fontSize:20,fontFamily:\"Base Neue, sans-serif\",color:isHovered?\"#ffffff\":\"#FFE9BC\",transition:\"color 0.3s ease\",cursor:\"pointer\"},onMouseEnter:()=>setHoveredIndex(index),onMouseLeave:()=>setHoveredIndex(null),children:[/*#__PURE__*/_jsx(\"span\",{style:{position:\"relative\",zIndex:999,transform:isHovered?\"scale(1.02)\":\"scale(1)\",transition:\"transform 0.3s ease\",display:\"inline-block\"},children:item}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",bottom:0,left:\"50%\",height:\"2px\",backgroundColor:\"#fff\",transform:`${underlineTransform} translateX(-50%)`,transition:\"transform 0.3s cubic-bezier(.4, 1, .4, 1)\"}})]},index);})})]});}addPropertyControls(HamburgerIcon,{color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#fff\"},size:{type:ControlType.Number,title:\"Size\",defaultValue:40,step:1,unit:\"px\"},thickness:{type:ControlType.Number,title:\"Bar Thickness\",defaultValue:4,min:2,max:12,step:1,unit:\"px\"},borderRadius:{type:ControlType.Number,title:\"Bar Radius\",defaultValue:2,min:0,max:8,step:1,unit:\"px\"},animationDuration:{type:ControlType.Number,title:\"Anim Duration\",defaultValue:.3,min:.1,max:1,step:.05,unit:\"s\"},logo:{type:ControlType.Image,title:\"Logo\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HamburgerIcon\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HamburgerIcon.map"],"mappings":"uRAA+K,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,QAAM,OAAK,YAAU,eAAa,OAAK,QAAM,oBAAkB,IAAI,EAAW,CAAC,EAAK,GAASA,EAAS,GAAM,CAAM,CAAC,EAAQ,GAAYA,EAAS,GAAM,CAAM,CAAC,EAAa,GAAiBA,EAAS,KAAK,CAAM,CAAC,EAAY,GAAgBA,EAAS,GAAM,CAAO,EAAS,GAAG,EAAkB,GAA6C,EAAU,CAAC,SAAS,WAAW,KAAK,EAAE,MAAM,EAAK,OAA3E,EAAQ,EAAE,EAAkF,WAAW,EAAM,eAAa,WAAW,aAAa,EAAS,uCAAuC,EAAS,QAAQ,EAAS,WAAW,IAAW,CAAO,EAAS,CAAC,MAAM,eAAe,WAAiB,aAAa,WAAc,0BAA6B,UAAU,CAAO,EAAO,GAAM,IAAI,EAAK,aAAa,CAAC,UAAU,MAAM,CAAC,QAAQ,mBAAmB,GAAG,CAAC,QAAQ,OAAO,IAAI,CA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