{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/Jqo4C5kWx0j9kXQKC66B/Uqtb4GY7mtFI4007utVz/BreadCrumbs.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";export default function BreadCrumbs(props){const color=\"#000000\";const colorAlpha=\"#00000090\";const[pathnames,setPathnames]=useState([]);useEffect(()=>{const paths=window.location.pathname.split(\"/\").filter(x=>x);setPathnames(paths);},[]);const getHref=index=>{if(index===0)return\"../\";if(index===1)return\"./\";return`/${pathnames.slice(0,index+1).join(\"/\")}`;};return /*#__PURE__*/_jsx(\"nav\",{children:/*#__PURE__*/_jsxs(\"div\",{style:{listStyle:\"none\",display:\"flex\",alignItems:\"center\",flexWrap:\"wrap\",width:\"max-content\",fontFamily:\"Rubik, Rubik Placeholder, sans-serif;\",fontSize:\"14px\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{marginRight:\"10px\",display:\"flex\",alignItems:\"center\"},children:[/*#__PURE__*/_jsx(\"a\",{href:\"/\",style:{textDecoration:\"none\",color:colorAlpha,transition:\"color 0.3s ease\",cursor:\"pointer\"},onMouseEnter:e=>e.target.style.color=color,onMouseLeave:e=>e.target.style.color=colorAlpha,children:\"All\\xf4\"}),pathnames.length>0&&/*#__PURE__*/_jsx(\"span\",{style:{marginLeft:\"10px\",color:color},children:props.separator})]}),pathnames.map((name,index)=>{const isLast=index===pathnames.length-1;const href=getHref(index);return /*#__PURE__*/_jsxs(\"div\",{style:{marginRight:\"10px\",display:\"flex\",alignItems:\"center\"},children:[!isLast?/*#__PURE__*/_jsx(\"a\",{href:href,style:{textDecoration:\"none\",color:colorAlpha,transition:\"color 0.3s ease\",cursor:\"pointer\",textTransform:\"capitalize\",maxWidth:\"20ch\",overflow:\"hidden\",textOverflow:\"ellipsis\",whiteSpace:\"nowrap\"},onMouseEnter:e=>e.target.style.color=color,onMouseLeave:e=>e.target.style.color=colorAlpha,children:name.replace(/-/g,\" \")}):/*#__PURE__*/_jsx(\"span\",{style:{fontWeight:\"bold\",color:color,overflow:\"hidden\",textOverflow:\"ellipsis\",whiteSpace:\"nowrap\",textTransform:\"capitalize\",maxWidth:\"20ch\"},children:name.replace(/-/g,\" \")}),index<pathnames.length-1&&/*#__PURE__*/_jsx(\"span\",{style:{marginLeft:\"10px\",color:color},children:props.separator})]},name);})]})});}addPropertyControls(BreadCrumbs,{separator:{type:ControlType.String,defaultValue:\">\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BreadCrumbs\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BreadCrumbs.map"],
  "mappings": "6IAAkK,SAARA,EAA6BC,EAAM,CAAC,IAAMC,EAAM,UAAgBC,EAAW,YAAiB,CAACC,EAAUC,CAAY,EAAEC,EAAS,CAAC,CAAC,EAAEC,EAAU,IAAI,CAAC,IAAMC,EAAMC,EAAO,SAAS,SAAS,MAAM,GAAG,EAAE,OAAOC,GAAGA,CAAC,EAAEL,EAAaG,CAAK,CAAE,EAAE,CAAC,CAAC,EAAE,IAAMG,EAAQC,GAAWA,IAAQ,EAAQ,MAASA,IAAQ,EAAQ,KAAW,IAAIR,EAAU,MAAM,EAAEQ,EAAM,CAAC,EAAE,KAAK,GAAG,IAAM,OAAoBC,EAAK,MAAM,CAAC,SAAsBC,EAAM,MAAM,CAAC,MAAM,CAAC,UAAU,OAAO,QAAQ,OAAO,WAAW,SAAS,SAAS,OAAO,MAAM,cAAc,WAAW,wCAAwC,SAAS,MAAM,EAAE,SAAS,CAAcA,EAAM,MAAM,CAAC,MAAM,CAAC,YAAY,OAAO,QAAQ,OAAO,WAAW,QAAQ,EAAE,SAAS,CAAcD,EAAK,IAAI,CAAC,KAAK,IAAI,MAAM,CAAC,eAAe,OAAO,MAAMV,EAAW,WAAW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",
  "names": ["BreadCrumbs", "props", "color", "colorAlpha", "pathnames", "setPathnames", "ye", "ue", "paths", "window", "x", "getHref", "index", "p", "u", "name", "isLast", "href", "e", "addPropertyControls", "ControlType"]
}
