{"version":3,"file":"BackButton.C1Dc9MFe.mjs","names":[],"sources":["https:/framerusercontent.com/modules/DSobmIyyZCPAZWo14nFM/SCX0ujbbPl8bGcGoaYt4/BackButton.js"],"sourcesContent":["// Back button that navigates to previous page via window.history.back()\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Back Button\n *\n * @framerIntrinsicWidth 120\n * @framerIntrinsicHeight 44\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight fixed\n */export default function BackButton(props){const{label,backgroundColor,textColor,borderRadius,font,style,padding,showIcon,borderColor}=props;function handleClick(){if(typeof window!==\"undefined\"){// Attempt more robust fallback for navigation\nif(window.history.length>1){window.history.back();}else{window.location.href=\"/\";}}}const isFixedWidth=style&&style.width===\"100%\";return /*#__PURE__*/_jsxs(\"button\",{\"aria-label\":\"Go back\",style:{width:isFixedWidth?\"100%\":undefined,height:44,minWidth:isFixedWidth?undefined:120,background:backgroundColor,color:textColor,border:borderColor?`1px solid ${borderColor}`:\"none\",borderRadius,cursor:\"pointer\",outline:\"none\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:8,// boxShadow: \"0 1px 4px rgba(0,0,0,0.06)\",\n...font,...style,padding},onClick:handleClick,children:[showIcon&&/*#__PURE__*/_jsx(\"svg\",{width:\"20\",height:\"20\",viewBox:\"0 0 20 20\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{marginRight:6},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M11.5 5L7 10L11.5 15\",stroke:textColor,strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})}),/*#__PURE__*/_jsx(\"span\",{style:{font:\"inherit\"},children:label})]});}addPropertyControls(BackButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Back\"},backgroundColor:{type:ControlType.Color,title:\"Background Color\",defaultValue:\"#EEEEEE\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#111111\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:8,min:0,max:24},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{variant:\"Medium\",fontSize:\"16px\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"}},padding:{type:ControlType.Padding,title:\"Padding\",defaultValue:\"12px 18px\"},showIcon:{type:ControlType.Boolean,title:\"Show Icon\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#EEEEEE\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BackButton\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"120\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicHeight\":\"44\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BackButton.map"],"mappings":"iLASG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,QAAM,kBAAgB,YAAU,eAAa,OAAK,QAAM,UAAQ,WAAS,eAAa,EAAM,SAAS,GAAa,CAAW,IAAS,SACtL,EAAO,QAAQ,OAAO,EAAG,EAAO,QAAQ,MAAM,CAAO,EAAO,SAAS,KAAK,KAAO,IAAM,EAAa,GAAO,EAAM,QAAQ,OAAO,OAAoB,EAAM,SAAS,CAAC,aAAa,UAAU,MAAM,CAAC,MAAM,EAAa,OAAO,IAAA,GAAU,OAAO,GAAG,SAAS,EAAa,IAAA,GAAU,IAAI,WAAW,EAAgB,MAAM,EAAU,OAAO,EAAY,aAAa,IAAc,OAAO,eAAa,OAAO,UAAU,QAAQ,OAAO,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,IAAI,EACne,GAAG,EAAK,GAAG,EAAM,UAAQ,CAAC,QAA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