{"version":3,"file":"KeyBlade.CdsbK8Ak.mjs","names":[],"sources":["https:/framerusercontent.com/modules/Uk3di4t56qSC0f4mivOU/68BgchuUF0bXtzWcoRG2/KeyBlade.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const TOP=62;const BOTTOM=124;function digits(code){const d=(code||\"\").replace(/[^1-7]/g,\"\").split(\"\").map(Number);return d.length?d.slice(0,7):[3,5,2,6,4];}export function bladePath(code,x0,x1){const d=digits(code);const n=d.length;const start=x0+34;const end=x1-56;const step=(end-start)/Math.max(1,n-1);const half=Math.min(20,step*.36);let p=`M ${x0} ${TOP}`;d.forEach((v,i)=>{const cx=start+step*i;const depth=8+v*5.6;p+=` L ${cx-half} ${TOP} L ${cx-3} ${TOP+depth} L ${cx+3} ${TOP+depth} L ${cx+half} ${TOP}`;});p+=` L ${x1-40} ${TOP} L ${x1} ${TOP+36} L ${x1-26} ${BOTTOM} L ${x0} ${BOTTOM} Z`;return p;}/**\n * A key drawn from its bitting code. Each digit (1 to 7) is one cut; higher numbers cut deeper.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerIntrinsicWidth 360\n * @framerIntrinsicHeight 100\n */export default function KeyBlade(props){const{code=\"35264\",lineColor=\"var(--token-07b67dbc-884e-4578-b100-53b0cdf85a17, #7C838A)\",bladeColor=\"transparent\",holeColor=\"transparent\",strokeWidth=1.5,showBow=true,label=\"\",style}=props;const bx=showBow?150:8;const vbX=showBow?0:0;const vbW=600;const aria=label||`Key cut to code ${digits(code).join(\"\")}`;return /*#__PURE__*/_jsxs(\"svg\",{viewBox:`${vbX} 0 ${vbW} 170`,preserveAspectRatio:\"xMidYMid meet\",role:\"img\",\"aria-label\":aria,style:{width:\"100%\",height:\"100%\",display:\"block\",overflow:\"visible\",...style},children:[showBow?/*#__PURE__*/_jsxs(\"g\",{fill:bladeColor,stroke:lineColor,strokeWidth:strokeWidth,vectorEffect:\"non-scaling-stroke\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M 150 50 L 150 136 L 128 150 L 34 150 Q 8 150 8 124 L 8 50 Q 8 24 34 24 L 128 24 Z\",vectorEffect:\"non-scaling-stroke\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"48\",cy:\"87\",r:\"15\",fill:holeColor,vectorEffect:\"non-scaling-stroke\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M 96 52 L 96 122\",fill:\"none\",vectorEffect:\"non-scaling-stroke\"})]}):null,/*#__PURE__*/_jsx(\"path\",{d:bladePath(code,bx,592),fill:bladeColor,stroke:lineColor,strokeWidth:strokeWidth,strokeLinejoin:\"round\",vectorEffect:\"non-scaling-stroke\"}),/*#__PURE__*/_jsx(\"path\",{d:`M ${bx+18} ${BOTTOM-16} L ${560} ${BOTTOM-16}`,fill:\"none\",stroke:lineColor,strokeWidth:strokeWidth,vectorEffect:\"non-scaling-stroke\"})]});}addPropertyControls(KeyBlade,{code:{type:ControlType.String,title:\"Bitting Code\",defaultValue:\"35264\",description:\"Digits 1 to 7, one per cut\"},lineColor:{type:ControlType.Color,title:\"Line\",defaultValue:\"#7C838A\"},bladeColor:{type:ControlType.Color,title:\"Blade Fill\",defaultValue:\"rgba(0,0,0,0)\"},holeColor:{type:ControlType.Color,title:\"Hole Fill\",defaultValue:\"rgba(0,0,0,0)\"},strokeWidth:{type:ControlType.Number,title:\"Stroke\",defaultValue:1.5,min:.5,max:4,step:.25},showBow:{type:ControlType.Boolean,title:\"Bow\",defaultValue:true},label:{type:ControlType.String,title:\"Alt Text\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"bladePath\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"reactComponent\",\"name\":\"KeyBlade\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"360\",\"framerIntrinsicHeight\":\"100\",\"framerContractVersion\":\"1\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