{"version":3,"file":"WorkflowProgressRing.DXgSt-Ti.mjs","names":["React.forwardRef","useRef"],"sources":["https:/framerusercontent.com/modules/tgPTz7s3R0EEuXjT69DF/1JxePMyZsHXVhcgMnNoC/jnZnN9Vfg.js","https:/framerusercontent.com/modules/zb2xhdnxytso4UC0BaJK/pNF0xRTpnaltHzi1idz3/WorkflowProgressRing.js"],"sourcesContent":["// Generated by Framer (85eaff3)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,useSVGTemplate,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask=\"var(--framer-icon-mask)\";const Base=/*#__PURE__*/forwardRef(function(props,ref){return /*#__PURE__*/_jsx(\"svg\",{...props,ref:ref,children:props.children});});const MotionSVG=motion.create(Base);const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(MotionSVG,{...rest,layoutId:layoutId,ref:ref,children:children}):/*#__PURE__*/_jsx(\"svg\",{...rest,ref:ref,children:children});});const svg='<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 0 20 L 14 20 C 15.105 20 16 19.105 16 18 L 16 5 L 11 0 L 2 0 C 0.895 0 0 0.895 0 2 L 0 6\" fill=\"transparent\" height=\"20px\" id=\"hw8QgRZzQ\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(4 2)\" width=\"16px\"/><path d=\"M 0 0 L 0 4 C 0 5.105 0.895 6 2 6 L 6 6\" fill=\"transparent\" height=\"6px\" id=\"CU0PR9cSq\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(14 2)\" width=\"6px\"/><path d=\"M 0 2 L 2 4 L 6 0\" fill=\"transparent\" height=\"4px\" id=\"te8Wsooql\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--js9iwy, 2)\" stroke=\"var(--1m973uw, rgb(0,0,0))\" transform=\"translate(3 13)\" width=\"6px\"/></svg>';const getProps=({color,height,id,width,width1,...props})=>{return{...props,JEeZYcamG:width1??props.JEeZYcamG??2,P_DcoRcrY:color??props.P_DcoRcrY??\"rgb(0, 0, 0)\"};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,P_DcoRcrY,JEeZYcamG,...restProps}=getProps(props);const href=useSVGTemplate(\"586216969\",svg);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-RuVnV\",className),layoutId:layoutId,ref:ref,role:\"presentation\",style:{\"--1m973uw\":P_DcoRcrY,\"--js9iwy\":JEeZYcamG,...style},viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"use\",{href:href})});});const css=[`.framer-RuVnV { -webkit-mask: ${mask}; aspect-ratio: 1; display: block; mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"P_DcoRcrY\":\"color\",\"JEeZYcamG\":\"width1\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"File Check 2\",\"color\":{\"type\":\"variable\",\"value\":\"1m973uw\"},\"set\":{\"localId\":\"vectorSet/ZsiCCGPvG\",\"id\":\"ZsiCCGPvG\",\"moduleId\":\"Y7SpbVH16cWqMhj75z1M\"}}\n */const Icon=withCSS(Component,css,\"framer-RuVnV\");Icon.displayName=\"File Check 2\";export default Icon;addPropertyControls(Icon,{P_DcoRcrY:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Color\",type:ControlType.Color},JEeZYcamG:{defaultValue:2,displayStepper:true,hidden:false,max:16,min:1,title:\"Width\",type:ControlType.Number}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerVector\":\"{\\\"name\\\":\\\"File Check 2\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"1m973uw\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/ZsiCCGPvG\\\",\\\"id\\\":\\\"ZsiCCGPvG\\\",\\\"moduleId\\\":\\\"Y7SpbVH16cWqMhj75z1M\\\"}}\",\"framerImmutableVariables\":\"true\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"24\",\"framerVariables\":\"{\\\"P_DcoRcrY\\\":\\\"color\\\",\\\"JEeZYcamG\\\":\\\"width1\\\"}\",\"framerIntrinsicHeight\":\"24\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useRef}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion,useInView}from\"framer-motion\";const COLORS={track:\"#60616C\",progress:\"#ffffff\"};/**\n * Workflow Progress Ring\n *\n * Port of the Workflows section's ProgressCircle: an animated\n * stroke-dashoffset ring that sweeps from empty to full over `duration`\n * seconds, firing `onComplete` when it finishes. Drop into a canvas\n * component and wire `onComplete` to a SET_VARIANT action targeting the\n * next workflow item — this is what drives the section's autoplay/cycling\n * entirely through native canvas interactions, with only the timed\n * animation itself living in code. Ported from\n * components/Primitives/Common/Workflows/ProgressCircle/ProgressCircle.jsx.\n *\n * The sweep only starts once the ring has scrolled into view (gated via\n * useInView, once:true) — without this, the animation started on mount\n * regardless of scroll position, so the autoplay cycle was already several\n * steps in by the time a visitor actually scrolled down to the section.\n *\n * @framerIntrinsicWidth 20\n * @framerIntrinsicHeight 20\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function WorkflowProgressRing(props){const{radius=10,duration=15,onComplete,style}=props;const isStatic=useIsStaticRenderer();const ref=useRef(null);const inView=useInView(ref,{once:true,amount:.4});const play=!isStatic&&inView;const r=radius;const circumference=2*Math.PI*(r-2);return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{position:\"relative\",width:\"100%\",height:\"100%\",...style},children:/*#__PURE__*/_jsxs(\"svg\",{width:r*2,height:r*2,viewBox:`0 0 ${r*2} ${r*2}`,children:[/*#__PURE__*/_jsx(\"circle\",{cx:r,cy:r,r:r-2,stroke:COLORS.track,strokeWidth:\"1.5\",fill:\"transparent\"}),play&&/*#__PURE__*/_jsx(motion.circle,{cx:r,cy:r,r:r-2,stroke:COLORS.progress,strokeWidth:\"1.5\",fill:\"transparent\",strokeDasharray:circumference,style:{rotate:-90},initial:{strokeDashoffset:circumference},animate:{strokeDashoffset:0},transition:{duration,ease:\"linear\"},onAnimationComplete:()=>onComplete?.()})]})});}addPropertyControls(WorkflowProgressRing,{radius:{type:ControlType.Number,title:\"Radius\",defaultValue:10,min:6,max:40,step:1},duration:{type:ControlType.Number,title:\"Duration\",defaultValue:15,min:1,max:60,step:1,unit:\"s\"},onComplete:{type:ControlType.EventHandler,title:\"On Complete\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"WorkflowProgressRing\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"20\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"20\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./WorkflowProgressRing.map"],"mappings":"8SAC0C,IAAqF,IAA4B,EAAqC,EAAK,0BAAgC,EAAkB,EAAW,SAAS,EAAM,EAAI,CAAC,OAAoB,EAAK,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