{"version":3,"file":"HamburgerMenu.pAzEEa07.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/zK5blnsQR9SVKRIiqFtm/7bLLKTvnLHuaTUF8oLLm/HamburgerMenu.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function HamburgerMenu(props){const{strokeColor=\"#FFFFFF\",strokeWidth=3,size=48,defaultChecked=false,onToggle}=props;const[isChecked,setIsChecked]=useState(defaultChecked);const handleChange=()=>{const newChecked=!isChecked;startTransition(()=>{setIsChecked(newChecked);});if(onToggle){onToggle(newChecked);}};return /*#__PURE__*/_jsxs(\"label\",{style:{cursor:\"pointer\",display:\"inline-block\",width:size,height:size},children:[/*#__PURE__*/_jsx(\"input\",{type:\"checkbox\",checked:isChecked,onChange:handleChange,style:{display:\"none\"},\"aria-label\":\"Toggle menu\"}),/*#__PURE__*/_jsxs(\"svg\",{viewBox:\"0 0 32 32\",style:{width:\"100%\",height:\"100%\",transform:isChecked?\"rotate(-45deg)\":\"rotate(0deg)\",transition:\"transform 600ms cubic-bezier(0.4, 0, 0.2, 1)\"},children:[/*#__PURE__*/_jsx(\"path\",{className:\"line line-top-bottom\",d:\"M27 10 13 10C10.8 10 9 8.2 9 6 9 3.5 10.8 2 13 2 15.2 2 17 3.8 17 6L17 26C17 28.2 18.8 30 21 30 23.2 30 25 28.2 25 26 25 23.8 23.2 22 21 22L7 22\",fill:\"none\",stroke:strokeColor,strokeLinecap:\"round\",strokeLinejoin:\"round\",strokeWidth:strokeWidth,strokeDasharray:isChecked?\"20 300\":\"12 63\",strokeDashoffset:isChecked?-32.42:0,style:{transition:\"stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1), stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1)\"}}),/*#__PURE__*/_jsx(\"path\",{className:\"line\",d:\"M7 16 27 16\",fill:\"none\",stroke:strokeColor,strokeLinecap:\"round\",strokeLinejoin:\"round\",strokeWidth:strokeWidth,style:{transition:\"stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1), stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1)\"}})]})]});}addPropertyControls(HamburgerMenu,{strokeColor:{type:ControlType.Color,title:\"Color\",defaultValue:\"#FFFFFF\"},strokeWidth:{type:ControlType.Number,title:\"Stroke Width\",defaultValue:3,min:1,max:6,step:.5},size:{type:ControlType.Number,title:\"Size\",defaultValue:48,min:24,max:500,step:4,unit:\"px\"},defaultChecked:{type:ControlType.Boolean,title:\"Default State\",defaultValue:false,enabledTitle:\"Open\",disabledTitle:\"Closed\",description:\"Made with ❤️ by [Pixelcot](https://www.pixelcot.com)\"},onToggle:{type:ControlType.EventHandler}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HamburgerMenu\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HamburgerMenu.map"],"mappings":"oLAGG,SAAwB,EAAc,EAAM,CAAC,GAAK,CAAC,cAAY,UAAU,cAAY,EAAE,OAAK,GAAG,iBAAe,GAAM,YAAU,EAAW,CAAC,EAAU,GAAcA,EAAS,EAAe,CAA2I,OAAoB,EAAM,QAAQ,CAAC,MAAM,CAAC,OAAO,UAAU,QAAQ,eAAe,MAAM,EAAK,OAAO,EAAK,CAAC,SAAS,CAAc,EAAK,QAAQ,CAAC,KAAK,WAAW,QAAQ,EAAU,aAApS,CAAC,IAAM,EAAW,CAAC,EAAU,MAAoB,CAAC,EAAa,EAAW,EAAG,CAAI,GAAU,EAAS,EAAW,EAA2M,MAAM,CAAC,QAAQ,OAAO,CAAC,aAAa,cAAc,CAAC,CAAc,EAA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