{"version":3,"file":"Backbutton.AfGFD5SW.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/h8edyIs8sHubxAgLe0ra/oBuUY2CyIUfrQGx2Jy8B/Backbutton.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export default function BackButton(props){const{label,showLabel,backLink,background,borderColor,textColor,accentColor,size,cornerRadius,floating,topOffset,sideOffset,zIndex}=props;const content=/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 16 16\",width:size*.36,height:size*.36,fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M10 3L5 8l5 5\",stroke:\"currentColor\",strokeWidth:1.8,strokeLinecap:\"round\",strokeLinejoin:\"round\"})}),showLabel&&/*#__PURE__*/_jsx(\"span\",{children:label})]});const buttonStyle={display:\"inline-flex\",alignItems:\"center\",gap:showLabel?size*.2:0,height:size,padding:showLabel?`0 ${size*.34}px 0 ${size*.26}px`:0,width:showLabel?\"auto\":size,justifyContent:\"center\",background,border:`1px solid ${borderColor}`,borderRadius:cornerRadius,boxShadow:\"0 10px 24px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06)\",color:textColor,fontFamily:\"-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif\",fontSize:size*.32,fontWeight:600,textDecoration:\"none\",cursor:\"pointer\",transition:\"transform 140ms ease, color 140ms ease\"};const handleClick=()=>{if(!backLink)window.history.back();};const buttonEl=backLink?/*#__PURE__*/_jsx(\"a\",{href:backLink,style:buttonStyle,onMouseEnter:e=>{e.currentTarget.style.color=accentColor;e.currentTarget.style.transform=\"translateX(-2px)\";},onMouseLeave:e=>{e.currentTarget.style.color=textColor;e.currentTarget.style.transform=\"translateX(0)\";},children:content}):/*#__PURE__*/_jsx(\"div\",{role:\"button\",\"aria-label\":label,onClick:handleClick,style:buttonStyle,onMouseEnter:e=>{e.currentTarget.style.color=accentColor;e.currentTarget.style.transform=\"translateX(-2px)\";},onMouseLeave:e=>{e.currentTarget.style.color=textColor;e.currentTarget.style.transform=\"translateX(0)\";},children:content});if(!floating)return buttonEl;return /*#__PURE__*/_jsx(\"div\",{style:{position:\"fixed\",top:topOffset,left:sideOffset,zIndex},children:buttonEl});}BackButton.defaultProps={label:\"Back\",showLabel:true,background:\"#FFFFFF\",borderColor:\"rgba(0,0,0,0.08)\",textColor:\"#1A1A1A\",accentColor:\"#7B61FF\",size:40,cornerRadius:999,floating:true,topOffset:16,sideOffset:16,zIndex:1e3};addPropertyControls(BackButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Back\"},showLabel:{type:ControlType.Boolean,title:\"Show Label\",defaultValue:true},backLink:{type:ControlType.Link,title:\"Back Link\"},size:{type:ControlType.Number,title:\"Size\",min:28,max:64,step:2,defaultValue:40},cornerRadius:{type:ControlType.Number,title:\"Corner Radius\",min:0,max:999,step:1,defaultValue:999},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},borderColor:{type:ControlType.Color,title:\"Border\",defaultValue:\"rgba(0,0,0,0.08)\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#1A1A1A\"},accentColor:{type:ControlType.Color,title:\"Hover Color\",defaultValue:\"#7B61FF\"},floating:{type:ControlType.Boolean,title:\"Float Top-Left\",defaultValue:true},topOffset:{type:ControlType.Number,title:\"Top Offset\",min:0,max:200,step:2,defaultValue:16,hidden:props=>!props.floating},sideOffset:{type:ControlType.Number,title:\"Side Offset\",min:0,max:200,step:2,defaultValue:16,hidden:props=>!props.floating},zIndex:{type:ControlType.Number,title:\"Z-Index\",min:1,max:9999,step:1,defaultValue:1e3,hidden:props=>!props.floating}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BackButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable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