{"version":3,"file":"HoverExtendArrow.BDvAO2BQ.mjs","names":["p"],"sources":["https:/framerusercontent.com/modules/CJZZOW4lRiftoY3cAcrE/L5CAxSTVhJiNWEpNrUu7/HoverExtendArrow.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";export default function ArrowExtend(props){const{width,height,stroke,strokeWidth,expand,maxExpand,duration,ease,rounded,headFollow,active,growMode,className}=props;// Base geometry (Heroicons-like)\nconst L=3// shaft left x\n;const R=21// tip x\n;const H=13.5// head inner x\n;const Y=12;const HU=4.5;const HD=19.5;const baseLen=R-L// 18\n;// Compute active deltas\nconst s=Math.max(1,expand);const delta=baseLen*(s-1);// AnchorTip mode: right end fixed at R, extend left only\nconst x1ActiveAnchor=L-delta;const x2ActiveAnchor=R;const headBaseActiveAnchor=H-delta*Math.max(0,Math.min(1,headFollow))// optional stretch back\n;// Center mode: grow equally both sides, move tip + head right by delta/2\nconst x1ActiveCenter=L-delta/2;const x2ActiveCenter=R+delta/2;const headBaseActiveCenter=H+delta/2// keep head length constant\n;// Choose values per mode\nconst x1Active=growMode===\"center\"?x1ActiveCenter:x1ActiveAnchor;const x2Active=growMode===\"center\"?x2ActiveCenter:x2ActiveAnchor;const headBaseActive=growMode===\"center\"?headBaseActiveCenter:headBaseActiveAnchor;const tipActive=growMode===\"center\"?x2ActiveCenter:R;// Constant viewBox reservation for editor/runtime parity\nconst sMax=Math.max(1,maxExpand);const deltaMax=baseLen*(sMax-1);const minX=growMode===\"center\"?L-deltaMax/2:L-deltaMax;const vbW=growMode===\"center\"?24+deltaMax:24-minX// center reserves both sides\n;return /*#__PURE__*/_jsx(\"div\",{style:{width,height},className:className,children:/*#__PURE__*/_jsxs(motion.svg,{xmlns:\"http://www.w3.org/2000/svg\",viewBox:`${minX} 0 ${vbW} 24`,preserveAspectRatio:\"xMidYMid meet\",width:\"100%\",height:\"100%\",style:{display:\"block\"},fill:\"none\",stroke:stroke,strokeWidth:strokeWidth,strokeLinecap:rounded?\"round\":\"butt\",strokeLinejoin:\"round\",initial:false,animate:active?\"active\":\"rest\",\"aria-hidden\":true,children:[/*#__PURE__*/_jsx(motion.line,{x1:L,y1:Y,x2:R,y2:Y,style:{vectorEffect:\"non-scaling-stroke\"},variants:{rest:{x1:L,x2:R},active:{x1:x1Active,x2:x2Active}},transition:{duration,ease}}),/*#__PURE__*/_jsx(motion.line,{x1:H,y1:HU,x2:R,y2:Y,style:{vectorEffect:\"non-scaling-stroke\"},variants:{rest:{x1:H,x2:R},active:{x1:headBaseActive,x2:tipActive}},transition:{duration,ease}}),/*#__PURE__*/_jsx(motion.line,{x1:H,y1:HD,x2:R,y2:Y,style:{vectorEffect:\"non-scaling-stroke\"},variants:{rest:{x1:H,x2:R},active:{x1:headBaseActive,x2:tipActive}},transition:{duration,ease}})]})});}ArrowExtend.defaultProps={width:32,height:32,stroke:\"#111111\",strokeWidth:1.5,expand:1.6,maxExpand:2,duration:.2,ease:\"easeInOut\",rounded:true,headFollow:0,active:false,growMode:\"anchorTip\"};addPropertyControls(ArrowExtend,{active:{type:ControlType.Boolean,title:\"Active\"},growMode:{title:\"Grow Mode\",type:ControlType.Enum,options:[\"anchorTip\",\"center\"],optionTitles:[\"Anchor Tip\",\"Center\"]},stroke:{type:ControlType.Color,title:\"Stroke\"},strokeWidth:{type:ControlType.Number,title:\"Stroke W\",min:.5,max:6,step:.5},expand:{type:ControlType.Number,title:\"Expand\",min:1,max:4,step:.05},maxExpand:{type:ControlType.Number,title:\"Max Expand (reserve)\",min:1,max:4,step:.05},duration:{type:ControlType.Number,title:\"Duration (s)\",min:0,max:2,step:.05},ease:{title:\"Ease\",type:ControlType.Enum,options:[\"easeInOut\",\"easeOut\",\"easeIn\",\"linear\"],optionTitles:[\"Ease InOut\",\"Ease Out\",\"Ease In\",\"Linear\"]},rounded:{type:ControlType.Boolean,title:\"Rounded Caps\"},headFollow:{type:ControlType.Number,title:\"Head Follow\",min:0,max:1,step:.05,hidden:p=>p.growMode===\"center\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ArrowExtend\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HoverExtendArrow.map"],"mappings":"oNAA+I,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,QAAM,SAAO,SAAO,cAAY,SAAO,YAAU,WAAS,OAAK,UAAQ,aAAW,SAAO,WAAS,aAAW,EAGtS,EAAE,KAGwB,EAAM,IAA/B,KAAK,IAAI,EAAE,EAAO,CAAwB,GAC5C,EAAe,EAAE,EAAmC,EAAqB,EAAE,EAAM,KAAK,IAAI,EAAE,KAAK,IAAI,EAAE,EAAW,CAAC,CAEnH,EAAe,EAAE,EAAM,EAAQ,EAAe,GAAE,EAAM,EAAQ,EAAqB,EAAE,EAAM,EAE3F,EAAS,IAAW,SAAS,EAAe,EAAqB,EAAS,IAAW,SAAS,EAAe,GAAqB,EAAe,IAAW,SAAS,EAAqB,EAA2B,EAAU,IAAW,SAAS,EAAe,GACjO,EAAS,IAArC,KAAK,IAAI,EAAE,EAAU,CAA8B,GAAS,EAAK,IAAW,SAAS,EAAE,EAAS,EAAE,EAAE,EAAe,EAAI,IAAW,SAAS,GAAG,EAAS,GAAG,EACpK,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,QAAM,SAAO,CAAW,YAAU,SAAsB,EAAM,EAAO,IAAI,CAAC,MAAM,6BAA6B,QAAQ,GAAG,EAAK,KAAK,EAAI,KAAK,oBAAoB,gBAAgB,MAAM,OAAO,OAAO,OAAO,MAAM,CAAC,QAAQ,QAAQ,CAAC,KAAK,OAAc,SAAmB,cAAY,cAAc,EAAQ,QAAQ,OAAO,eAAe,QAAQ,QAAQ,GAAM,QAAQ,EAAO,SAAS,OAAO,cAAc,GAAK,SAAS,CAAc,EAAK,EAAO,KAAK,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