{"version":3,"file":"BackButton.C7eH2D6a.mjs","names":[],"sources":["https:/framerusercontent.com/modules/MwEWP5PvtxaLsOKtXEh7/jAaLQAV2W0gSKs8U0Qlm/BackButton.js"],"sourcesContent":["// BackButton component - navigates back in browser history on click\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,font,textColor,backgroundColor,padding,borderRadius,borderColor,borderWidth,showIcon,iconSize,iconPosition,iconGap}=props;const handleClick=()=>{if(typeof window!==\"undefined\"){window.history.back();}};const ArrowIcon=()=>/*#__PURE__*/_jsx(\"svg\",{width:iconSize,height:iconSize,viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{flexShrink:0},children:/*#__PURE__*/_jsx(\"path\",{d:\"M15 18L9 12L15 6\",stroke:textColor,strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});return /*#__PURE__*/_jsxs(\"button\",{onClick:handleClick,style:{position:\"relative\",...font,color:textColor,backgroundColor,padding,borderRadius,border:`${borderWidth}px solid ${borderColor}`,cursor:\"pointer\",outline:\"none\",width:\"max-content\",display:\"flex\",alignItems:\"center\",gap:showIcon?`${iconGap}px`:0,flexDirection:iconPosition===\"right\"?\"row-reverse\":\"row\"},children:[showIcon&&/*#__PURE__*/_jsx(ArrowIcon,{}),label]});}addPropertyControls(BackButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Back\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Regular\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"}},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"transparent\"},padding:{type:ControlType.Padding,title:\"Padding\",defaultValue:\"12px 24px\"},borderRadius:{type:ControlType.BorderRadius,title:\"Radius\",defaultValue:\"8px\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"transparent\"},borderWidth:{type:ControlType.Number,title:\"Border Width\",defaultValue:0,min:0,max:20,step:1,unit:\"px\"},showIcon:{type:ControlType.Boolean,title:\"Show Icon\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},iconSize:{type:ControlType.Number,title:\"Icon Size\",defaultValue:20,min:12,max:48,step:1,unit:\"px\",hidden:({showIcon})=>!showIcon},iconPosition:{type:ControlType.Enum,title:\"Icon Position\",options:[\"left\",\"right\"],optionTitles:[\"Left\",\"Right\"],defaultValue:\"left\",displaySegmentedControl:true,hidden:({showIcon})=>!showIcon},iconGap:{type:ControlType.Number,title:\"Icon Gap\",defaultValue:8,min:0,max:32,step:1,unit:\"px\",hidden:({showIcon})=>!showIcon}});\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":"iLAIG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,QAAM,OAAK,YAAU,kBAAgB,UAAQ,eAAa,cAAY,cAAY,WAAS,WAAS,eAAa,WAAS,EAAY,MAAgB,CAAW,IAAS,QAAa,EAAO,QAAQ,MAAM,EAAU,MAA2B,EAAK,MAAM,CAAC,MAAM,EAAS,OAAO,EAAS,QAAQ,YAAY,KAAK,OAAO,MAAM,6BAA6B,MAAM,CAAC,WAAW,EAAE,CAAC,SAAsB,EAAK,OAAO,CAAC,EAAE,mBAAmB,OAAO,EAAU,YAAY,IAAI,cAAc,QAAQ,eAAe,QAAQ,CAAC,CAAC,CAAC,CAAC,OAAoB,EAAM,SAAS,CAAC,QAAQ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