{"version":3,"file":"BiproFlowLines.CymKVCuL.mjs","names":["useRef","useState","__esmMin","init_npm_react_18_3_1","_e","de","p","c","init_jsx_runtime","ce","addPropertyControls","init_framer_DKgW_P28","ControlType","BiproFlowLines","props","ref","inView","setInView","el","io","entries","style","duration","PATHS","lineColor","lineOpacity","i","runColor","runOpacity","DELAYS","init_BiproFlowLines"],"sources":["https:/framerusercontent.com/modules/X0N81OVjxOfc8LwjQzbO/w7xcHv4RUk6SQMXlFCw0/BiproFlowLines.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";// Decorative flow lines for the dark hero on /integrationen/bipro (D-15).\n// Idea and timing from the product proposition deck (.flow / .run, @keyframes run, 7.5s linear).\nconst PATHS=[\"M-60 860C380 820 760 600 1660 120\",\"M-60 900C420 860 820 660 1660 230\",\"M-60 770C320 730 700 520 1660 30\",\"M220 960C580 850 980 650 1660 340\",\"M-60 680C260 660 640 450 1160 -40\"];const DELAYS=[0,2.4,4.1,1.2,3.3];/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function BiproFlowLines(props){const{lineColor,runColor,lineOpacity,runOpacity,duration,style}=props;const ref=useRef(null);const[inView,setInView]=useState(false);useEffect(()=>{const el=ref.current;if(!el||typeof IntersectionObserver===\"undefined\")return;const io=new IntersectionObserver(entries=>setInView(entries.some(e=>e.isIntersecting)),{threshold:0});io.observe(el);return()=>io.disconnect();},[]);return /*#__PURE__*/_jsxs(\"svg\",{ref:ref,\"aria-hidden\":\"true\",focusable:\"false\",viewBox:\"0 0 1600 900\",preserveAspectRatio:\"none\",style:{display:\"block\",width:\"100%\",height:\"100%\",pointerEvents:\"none\",...style},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n.bfl-run{stroke-dasharray:160 2600;stroke-dashoffset:2760;animation:bfl-run ${duration}s linear infinite;animation-play-state:paused}\n.bfl-on .bfl-run{animation-play-state:running}\n@keyframes bfl-run{to{stroke-dashoffset:0}}\n@media (prefers-reduced-motion: reduce){.bfl-run{display:none}}\n`}),/*#__PURE__*/_jsxs(\"g\",{className:inView?\"bfl-on\":undefined,fill:\"none\",children:[PATHS.map((d,i)=>/*#__PURE__*/_jsx(\"path\",{d:d,stroke:lineColor,strokeOpacity:lineOpacity,strokeWidth:1.5},\"l\"+i)),PATHS.map((d,i)=>/*#__PURE__*/_jsx(\"path\",{className:\"bfl-run\",d:d,stroke:runColor,strokeOpacity:runOpacity,strokeWidth:2.5,strokeLinecap:\"round\",style:{animationDelay:`${DELAYS[i]}s`}},\"r\"+i))]})]});}BiproFlowLines.defaultProps={lineColor:\"rgb(188, 221, 162)\",runColor:\"rgb(188, 221, 162)\",lineOpacity:.14,runOpacity:.55,duration:7.5};addPropertyControls(BiproFlowLines,{lineColor:{type:ControlType.Color,title:\"Line\"},runColor:{type:ControlType.Color,title:\"Light\"},lineOpacity:{type:ControlType.Number,title:\"Line opacity\",min:0,max:1,step:.01},runOpacity:{type:ControlType.Number,title:\"Light opacity\",min:0,max:1,step:.01},duration:{type:ControlType.Number,title:\"Loop (s)\",min:2,max:20,step:.5}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BiproFlowLines\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BiproFlowLines.map"],"mappings":"A,+LAKG,SAAwBa,EAAe,EAAM,CAAC,GAAK,CAAC,YAAU,WAAS,cAAY,aAAW,WAAS,SAAOC,EAAYC,EAAIf,EAAO,IAAI,EAAO,CAACgB,EAAOC,GAAWhB,EAAS,EAAK,EAAqP,OAAnPQ,MAAc,CAAC,IAAMS,EAAGH,EAAI,QAAQ,GAAG,CAACG,GAAI,OAAO,qBAAuB,IAAY,OAAO,IAAM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