{"version":3,"file":"BackButton.CG_GoRbs.mjs","names":[],"sources":["https:/framerusercontent.com/modules/GQx2zw6qm9JIXnxJq3wT/CmR0c9mPU8mBDUsDYZz5/BackButton.js"],"sourcesContent":["// Back button that returns to the previous page when clicked\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function BackButton(props){const{label,backgroundColor,textColor,hoverBackgroundColor,hoverTextColor,borderRadius,borderWidth,borderColor,padding,icon,font}=props;const handleClick=()=>{if(typeof window!==\"undefined\"){window.history.back();}};const iconMap={\"arrow-left\":\"←\",\"chevron-left\":\"‹\",\"angle-left\":\"〈\",\"caret-left\":\"◄\",\"none\":\"\"};return /*#__PURE__*/_jsxs(\"button\",{onClick:handleClick,style:{position:\"relative\",backgroundColor,color:textColor,borderRadius,padding,border:`${borderWidth}px solid ${borderColor}`,cursor:\"pointer\",transition:\"all 0.2s ease\",width:\"max-content\",display:\"flex\",alignItems:\"center\",gap:\"8px\",...font},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=hoverBackgroundColor;e.currentTarget.style.color=hoverTextColor;},onMouseLeave:e=>{e.currentTarget.style.backgroundColor=backgroundColor;e.currentTarget.style.color=textColor;},children:[icon!==\"none\"&&/*#__PURE__*/_jsx(\"span\",{children:iconMap[icon]}),label]});}addPropertyControls(BackButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Back\"},icon:{type:ControlType.Enum,title:\"Icon\",options:[\"arrow-left\",\"chevron-left\",\"angle-left\",\"caret-left\",\"none\"],optionTitles:[\"Arrow ←\",\"Chevron ‹\",\"Angle 〈\",\"Caret ◄\",\"None\"],defaultValue:\"arrow-left\",displaySegmentedControl:false},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#000000\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},hoverBackgroundColor:{type:ControlType.Color,title:\"Hover Background\",defaultValue:\"#333333\"},hoverTextColor:{type:ControlType.Color,title:\"Hover Text\",defaultValue:\"#FFFFFF\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:8,min:0,max:50,unit:\"px\"},borderWidth:{type:ControlType.Number,title:\"Border Width\",defaultValue:0,min:0,max:10,unit:\"px\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#000000\"},padding:{type:ControlType.String,title:\"Padding\",defaultValue:\"12px 24px\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"14px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BackButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BackButton.map"],"mappings":"kLAIG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,QAAM,kBAAgB,YAAU,uBAAqB,iBAAe,eAAa,cAAY,cAAY,UAAQ,OAAK,QAAM,EAAY,MAAgB,CAAW,IAAS,QAAa,EAAO,QAAQ,MAAM,EAAU,EAAQ,CAAC,aAAa,IAAI,eAAe,IAAI,aAAa,IAAI,aAAa,IAAI,KAAO,GAAG,CAAC,OAAoB,EAAM,SAAS,CAAC,QAAQ,EAAY,MAAM,CAAC,SAAS,WAAW,kBAAgB,MAAM,EAAU,eAAa,UAAQ,OAAO,GAAG,EAAY,WAAW,IAAc,OAAO,UAAU,WAAW,gBAAgB,MAAM,cAAc,QAAQ,OAAO,WAAW,SAAS,IAAI,MAAM,GAAG,EAAK,CAAC,aAAa,GAAG,CAAC,EAAE,cAAc,MAAM,gBAAgB,EAAqB,EAAE,cAAc,MAAM,MAAM,GAAiB,aAA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