{"version":3,"file":"ZKPR_breadcrumb.CKzaAwml.mjs","names":["React.useState","React.Fragment","c","__esmMin","x","init_npm_react_18_3_1","_e","p","c","init_jsx_runtime","init_framer_DxfB3JJo","ControlType","addPropertyControls","ZKPRBreadcrumb","props","items","crumbs","hover","setHover","style","font","c$1","i","hoverColor","linkColor","separatorColor","separator","current","currentColor","init_ZKPR_breadcrumb"],"sources":["https:/framerusercontent.com/modules/j5LTReZ30FK5AFypRovA/d0Vwv1An1BQrTDIUTtWl/ZKPR_breadcrumb.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * ZKPR Breadcrumb — you choose each step and where it links.\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function ZKPRBreadcrumb(props){const{crumbs,current,separator,gap,font,linkColor,currentColor,separatorColor,hoverColor,style}=props;const items=(Array.isArray(crumbs)?crumbs:[]).filter(c=>c&&c.label);const[hover,setHover]=React.useState(-1);return /*#__PURE__*/_jsx(\"nav\",{\"aria-label\":\"Breadcrumb\",style:{...style,display:\"flex\"},children:/*#__PURE__*/_jsxs(\"ol\",{style:{display:\"flex\",alignItems:\"center\",flexWrap:\"wrap\",gap,margin:0,padding:0,listStyle:\"none\",...font},children:[items.map((c,i)=>/*#__PURE__*/_jsxs(React.Fragment,{children:[/*#__PURE__*/_jsx(\"li\",{style:{display:\"flex\"},children:/*#__PURE__*/_jsx(\"a\",{href:c.link||\"/\",onMouseEnter:()=>setHover(i),onMouseLeave:()=>setHover(-1),style:{color:hover===i?hoverColor:linkColor,textDecoration:hover===i?\"underline\":\"none\",textUnderlineOffset:3,transition:\"color .2s\",whiteSpace:\"nowrap\"},children:c.label})}),/*#__PURE__*/_jsx(\"li\",{\"aria-hidden\":\"true\",style:{color:separatorColor},children:separator})]},i)),current&&/*#__PURE__*/_jsx(\"li\",{\"aria-current\":\"page\",style:{color:currentColor,whiteSpace:\"nowrap\"},children:current})]})});}addPropertyControls(ZKPRBreadcrumb,{crumbs:{type:ControlType.Array,title:\"Links\",control:{type:ControlType.Object,controls:{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Home\"},link:{type:ControlType.Link,title:\"Link\"}}},defaultValue:[{label:\"Home\",link:\"/\"}]},current:{type:ControlType.String,title:\"Current page\",defaultValue:\"Shop\"},separator:{type:ControlType.String,title:\"Separator\",defaultValue:\"/\"},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:8,min:0,max:40,unit:\"px\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultValue:{fontSize:14,lineHeight:\"1em\"}},linkColor:{type:ControlType.Color,title:\"Link colour\",defaultValue:\"#A60900\"},currentColor:{type:ControlType.Color,title:\"Current colour\",defaultValue:\"#000000\"},separatorColor:{type:ControlType.Color,title:\"Separator colour\",defaultValue:\"#CCCCCC\"},hoverColor:{type:ControlType.Color,title:\"Hover colour\",defaultValue:\"#0066FF\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ZKPRBreadcrumb\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ZKPR_breadcrumb.map"],"mappings":"A,wLAIG,SAAwBa,EAAe,EAAM,CAAC,GAAK,CAAC,SAAO,UAAQ,YAAU,MAAI,OAAK,YAAU,eAAa,iBAAe,aAAW,SAAOC,EAAYC,GAAO,MAAM,QAAQC,CAAM,EAAEA,EAAO,CAAC,EAAA,CAAG,OAAO,GAAGR,GAAGA,EAAE,KAAK,EAAO,CAACS,EAAMC,GAAUlB,EAAe,EAAE,EAAE,MAAoB,gBAAK,MAAM,CAAC,aAAa,aAAa,MAAM,CAAC,GAAGmB,EAAM,QAAQ,MAAM,EAAE,SAAsB,gBAAM,KAAK,CAAC,MAA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