{"version":3,"file":"BackButton.B-DWHbjZ.mjs","names":[],"sources":["https:/framerusercontent.com/modules/G59VTIVrjuNrD6ViLv1p/4cEEmjK1RiTIY6YBGrAJ/BackButton.js"],"sourcesContent":["// White back button that navigates to previous page using window.history.back()\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{startTransition}from\"react\";import{motion}from\"framer-motion\";/**\n * White Back Button\n *\n * @framerIntrinsicWidth 100\n * @framerIntrinsicHeight 40\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight fixed\n */export default function BackButton(props){const{label,background,color,hoverColor,borderRadius,font,shadow,border,padding,iconSize,fallback,style}=props;// Hover variants\nconst hoverVariants={none:{},fade:{opacity:.7,transition:{duration:.18}},slide:{x:-6,transition:{duration:.18}},scale:{scale:1.07,transition:{duration:.18}}};function handleClick(){if(typeof window!==\"undefined\"){const goBack=()=>{if(window.history.length>1){window.history.back();}else{if(RenderTarget.current&&RenderTarget.current()===RenderTarget.preview){window.open(fallback||\"/\",\"_self\");}else{window.location.assign(fallback||\"/\");}}};startTransition(goBack);}}return /*#__PURE__*/_jsxs(motion.button,{type:\"button\",\"aria-label\":label,onClick:handleClick,whileHover:{...hoverVariants[props.hoverAnimation],background:hoverColor||background},style:{...style,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:8,background,color,border:border||\"none\",borderRadius,padding:padding||\"8px 20px\",cursor:\"pointer\",boxShadow:shadow?\"0 1px 4px rgba(0,0,0,0.08)\":\"none\",outline:\"none\",transition:\"none\",WebkitTapHighlightColor:\"transparent\",...font},tabIndex:0,children:[/*#__PURE__*/_jsx(\"svg\",{width:iconSize,height:iconSize,viewBox:\"0 0 18 18\",fill:\"none\",\"aria-hidden\":\"true\",style:{marginRight:6,flexShrink:0},children:/*#__PURE__*/_jsx(\"path\",{d:\"M11.5 14L7 9L11.5 4\",stroke:color,strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})}),/*#__PURE__*/_jsx(\"span\",{style:{font:\"inherit\"},children:label})]});}addPropertyControls(BackButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Back\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},color:{type:ControlType.Color,title:\"Icon/Text\",defaultValue:\"#000000\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:8,min:0,max:32},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}},shadow:{type:ControlType.Boolean,title:\"Shadow\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},border:{type:ControlType.String,title:\"Border\",defaultValue:\"\",placeholder:\"e.g. 1px solid #eee\"},padding:{type:ControlType.String,title:\"Padding\",defaultValue:\"8px 20px\",placeholder:\"e.g. 8px 20px\"},iconSize:{type:ControlType.Number,title:\"Arrow Size\",defaultValue:18,min:10,max:48,step:1},hoverColor:{type:ControlType.Color,title:\"Hover Color\",defaultValue:\"#F5F5F5\"},hoverAnimation:{type:ControlType.Enum,title:\"Hover Animation\",options:[\"none\",\"fade\",\"slide\",\"scale\"],optionTitles:[\"None\",\"Fade\",\"Slide\",\"Scale\"],defaultValue:\"none\",displaySegmentedControl:true},fallback:{type:ControlType.Link,title:\"Fallback URL\",defaultValue:\"/\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BackButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"40\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicWidth\":\"100\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BackButton.map"],"mappings":"kPASG,SAAwB,EAAW,EAAM,CAAC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