{"version":3,"file":"BreadcrumbNavigation_1.sHTDNHFY.mjs","names":[],"sources":["https:/framerusercontent.com/modules/d7QcNDVQA4VzaywOV2PS/9LisXrfLn3KvinrmI3yy/BreadcrumbNavigation_1.js"],"sourcesContent":["// BreadcrumbNavigation navigation menu component for Framer\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * BreadcrumbNavigation Navigation Menu\n *\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 40\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight fixed\n */export default function BreadcrumbNavigation(props){const{crumbs=[{label:\"Home\",link:\"/\"},{label:\"Category\",link:\"/category\"},{label:\"Product\",link:\"/product\"}],separator,inactiveColor,activeColor,separatorColor,font,style}=props;// Replace breadcrumb with a go back button\nfunction handleGoBack(){if(typeof window!==\"undefined\"){window.history.back();}}return /*#__PURE__*/_jsx(\"nav\",{style:{width:\"100%\",...style},\"aria-label\":\"GoBackNavigation\",children:/*#__PURE__*/_jsxs(\"a\",{href:props.link,onClick:e=>{if(props.link)return;e.preventDefault();handleGoBack();},style:{...font,color:activeColor,background:\"none\",border:\"none\",padding:0,cursor:\"pointer\",display:\"flex\",alignItems:\"center\",gap:8,textDecoration:\"none\"},\"aria-label\":\"Go back\",children:[/*#__PURE__*/_jsx(\"svg\",{width:\"20\",height:\"20\",viewBox:\"0 0 20 20\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M12 5L7 10L12 15\",stroke:activeColor,strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})}),/*#__PURE__*/_jsx(\"span\",{children:\"Back\"})]})});}addPropertyControls(BreadcrumbNavigation,{crumbs:{type:ControlType.Array,title:\"Crumbs\",control:{type:ControlType.Object,controls:{label:{type:ControlType.String,defaultValue:\"Home\"},link:{type:ControlType.String,defaultValue:\"/\"}}},defaultValue:[{label:\"Home\",link:\"/\"},{label:\"Category\",link:\"/category\"},{label:\"Product\",link:\"/product\"}],maxCount:6,hidden:true},separator:{type:ControlType.String,title:\"Separator\",defaultValue:\">\",hidden:true},inactiveColor:{type:ControlType.Color,title:\"Inactive Color\",defaultValue:\"#CCCCCC\",hidden:true},activeColor:{type:ControlType.Color,title:\"Active Color\",defaultValue:\"#000000\"},separatorColor:{type:ControlType.Color,title:\"Separator Color\",defaultValue:\"#EEEEEE\",hidden:true},font:{type:ControlType.Font,title:\"Text Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}},link:{type:ControlType.Link,title:\"Link\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BreadcrumbNavigation\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"40\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"400\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BreadcrumbNavigation_1.map"],"mappings":"iLASG,SAAwB,EAAqB,EAAM,CAAC,GAAK,CAAC,SAAO,CAAC,CAAC,MAAM,OAAO,KAAK,IAAI,CAAC,CAAC,MAAM,WAAW,KAAK,YAAY,CAAC,CAAC,MAAM,UAAU,KAAK,WAAW,CAAC,CAAC,YAAU,gBAAc,cAAY,iBAAe,OAAK,SAAO,EACnO,SAAS,GAAc,CAAW,IAAS,QAAa,EAAO,QAAQ,MAAM,CAAG,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,GAAG,EAAM,CAAC,aAAa,mBAAmB,SAAsB,EAAM,IAAI,CAAC,KAAK,EAAM,KAAK,QAAQ,GAAG,CAAI,EAAM,OAAY,EAAE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