{"version":3,"file":"KeyEdge.B42KB6Hl.mjs","names":[],"sources":["https:/framerusercontent.com/modules/jqohGN1nodpABx6v8yAV/FDZTn4Yixdsl2sMhXMAu/KeyEdge.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * A section or plate edge cut like a key blade: flat runs with V cuts.\n * Place it directly above a plate of the same colour.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 800\n * @framerIntrinsicHeight 16\n */export default function KeyEdge(props){const{code=\"35264\",color=\"var(--token-8a9b5e77-5c96-4c68-9c31-3e1e000770f1, #C9CDD1)\",depth=16,notch=34,placement=\"Spread\",style}=props;const d=(code||\"\").replace(/[^1-7]/g,\"\").split(\"\").map(Number).slice(0,9);const cuts=d.length?d:[3,5,2,6,4];const run=(key,grow)=>/*#__PURE__*/_jsx(\"div\",{style:{flex:`${grow} 1 0px`,minWidth:0,height:depth,background:color}},key);const items=[];const lead=placement===\"Left\"?.4:placement===\"Right\"?6:1;const tail=placement===\"Left\"?6:placement===\"Right\"?.4:1;items.push(run(\"r0\",lead));cuts.forEach((v,i)=>{const h=Math.max(2,Math.round(depth*(v+1)/8));const w=notch;items.push(/*#__PURE__*/_jsx(\"svg\",{width:w,height:depth,viewBox:`0 0 ${w} ${depth}`,style:{display:\"block\",flex:\"0 0 auto\"},\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:`M 0 0 L ${w*.42} ${h} L ${w*.58} ${h} L ${w} 0 L ${w} ${depth} L 0 ${depth} Z`,fill:color})},\"n\"+i));if(i<cuts.length-1)items.push(run(\"r\"+(i+1),placement===\"Spread\"?1:.18));});items.push(run(\"rEnd\",tail));return /*#__PURE__*/_jsx(\"div\",{\"aria-hidden\":\"true\",style:{display:\"flex\",width:\"100%\",height:depth,alignItems:\"stretch\",...style},children:items});}addPropertyControls(KeyEdge,{code:{type:ControlType.String,title:\"Cut Code\",defaultValue:\"35264\"},color:{type:ControlType.Color,title:\"Plate Colour\",defaultValue:\"#C9CDD1\"},depth:{type:ControlType.Number,title:\"Depth\",defaultValue:16,min:6,max:40,unit:\"px\"},notch:{type:ControlType.Number,title:\"Cut Width\",defaultValue:34,min:10,max:80,unit:\"px\"},placement:{type:ControlType.Enum,title:\"Placement\",options:[\"Spread\",\"Left\",\"Right\"],defaultValue:\"Spread\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"KeyEdge\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"800\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicHeight\":\"16\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./KeyEdge.map"],"mappings":"4JAQG,SAAwB,EAAQ,EAAM,CAAC,GAAK,CAAC,OAAK,QAAQ,QAAM,6DAA6D,QAAM,GAAG,QAAM,GAAG,YAAU,SAAS,SAAO,EAAY,GAAG,GAAM,GAAA,CAAI,QAAQ,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,MAAM,EAAE,CAAC,EAAQ,EAAK,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,EAAQ,GAAK,EAAI,IAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,KAAK,GAAG,EAAK,QAAQ,SAAS,EAAE,OAAO,EAAM,WAAW,CAAK,CAAC,EAAE,CAAG,EAAQ,EAAM,CAAC,EAAQ,EAAK,IAAY,OAAO,GAAG,IAAY,QAAQ,EAAE,EAAQ,EAAK,IAAY,OAAO,EAAE,IAAY,QAAQ,GAAG,EAAof,OAAlf,EAAM,KAAK,EAAI,KAAK,CAAI,CAAC,EAAE,EAAK,SAAS,EAAE,IAAI,CAAC,IAAM,EAAE,KAAK,IAAI,EAAE,KA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