{"version":3,"file":"Lifecycle.Beyth_Um.mjs","names":["_Fragment","React","__esmMin","init_ssg_sandbox_shims","init_npm_react_18_3_1","window","npm_react_18_3_1_exports","init_jsx_runtime","p","addPropertyControls","init_framer_BWFVvmND","ControlType","panelStyle","init_PanelSystem","init_AgentShared","getAgentPromptCompleteDelay","AgentSplitPanel","getHumanAgentModeTabs","AgentTextResponseCard","init_DemoModes","AgentPromptCard","init_DemoToolbar","DemoToolbar","init_SectionPills","SectionPills","LifecycleDemoV2","safeInitialMode","initialMode","safeInitialTab","tabs","initialTab","activeMode","setActiveMode","useState","activeTab","setActiveTab","selectedNodeId","setSelectedNodeId","defaultSelectedId","flows","panelWidth","setPanelWidth","isNarrowViewport","useMediaQuery","rootRef","useRef","useEffect","node","sync","observer","currentTask","agentTasks","isAgentStacked","isAgentMobile","graphs","useMemo","build","metrics","compact","built","tallest","tab","buildLayout","agentPanelHeight","agentPanelPadding","lifecycleResponseDelayMs","renderAgentPanel","typeScale","renderGraphPanel","graphPaddingY","GRAPH_BLEED","graphBoxHeight","WorkflowGraph","layouts","renderToolbar","id","next","style","l","isSplit","exitNode","filter","email","variant","control","StepIcon","connectorPath","GraphNode","init_LifecycleDemoV2","step","matches","setMatches","mediaQuery","query","color","stroke","kind","toX","fromX","fromY","toY","dir","r","radius","busY","widestFan","flow","widest","width","nodeWidth","colGap","centerX","nodes","edges","order","y","pending","place","height","spec","nodeHeight","exitHeight","x","top","connect","from","keyPrefix","index","source","rowGap","head","stepIndex","fanWidth","fanStart","fanBusY","legEnds","deepest","legX","legIndex","legY","previous","leg","placed","nodeIndex","selected","onSelect","scrollerRef","el","layout","boxHeight","edge","onNodeSelect","animKey","splitIndex","Lifecycle","props","init_Lifecycle"],"sources":["https:/framerusercontent.com/modules/edhZtsTCZaI9tvg6nY33/EV34keYv2qxHZCh2aB3T/LifecycleDemoV2.js","https:/framerusercontent.com/modules/aSbhhv3i7aj1p4KgUIJu/wQ84fU9s9ul4vwi53NOC/Lifecycle.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{AgentPromptCard,AgentSplitPanel,AgentTextResponseCard,getAgentPromptCompleteDelay}from\"https://framerusercontent.com/modules/whIAxB0dWoDvSsyYmfbc/MgxEJx7anE2sST7flsh6/AgentShared.js\";import{getHumanAgentModeTabs}from\"https://framerusercontent.com/modules/HQaukF0B0htq42XbEmZz/SYBji1F2i788MEgqYKxs/DemoModes.js\";import DemoToolbar from\"https://framerusercontent.com/modules/9GzsmpUNrhKduvUzEAf5/xPWiINvAM3V9vE7IipQz/DemoToolbar.js\";import SectionPills from\"https://framerusercontent.com/modules/rAuPBs0dgwb3isIlBisa/lE47VbnaQ0opAaXF5u9d/SectionPills.js\";import{panelStyle}from\"https://framerusercontent.com/modules/xuHq55xcsIuroc51p47f/1gRJrgeG8tiB3UAGGPdV/PanelSystem.js\";const{useEffect,useMemo,useRef,useState}=React;const typeScale={micro:\"0.875rem\",supporting:\"0.96875rem\",body:\"1.1rem\"};const tabs=[\"Acquisition\",\"Onboarding\",\"Retention\",\"Reengagement\",\"Dunning\",\"Reactivation\"];const isSplit=step=>\"split\"in step;// Slack inside the scrolling canvas so a node's hover lift and drop shadow are\n// not clipped by its edges.\nconst GRAPH_BLEED=12;const exitNode={kind:\"exit\",label:\"Exit Workflow\"};const filter=summary=>({kind:\"filter\",label:\"Audience filter\",summary});const email=summary=>({kind:\"email\",label:\"Send email\",summary});const variant=summary=>({kind:\"variant\",label:\"Variant\",summary});const control=summary=>({kind:\"control\",label:\"Control\",summary});// Every scenario branches three ways, so the graph fills the canvas and one\n// set of node metrics fits them all. Shapes still differ by what sits on the\n// spine before the split, whether the legs are even, and whether the paths\n// converge and carry on afterwards. Six rows is the cap — it sets the panel\n// height, and the section has to stay compact enough for the homepage.\nconst flows={Acquisition:[{kind:\"trigger\",label:\"Contact added\",summary:\"Any new contact\"},{kind:\"email\",label:\"Send email\",summary:\"Welcome to Loops\"},{split:{kind:\"branch\",label:\"Branch\",summary:\"3 branches\"},legs:[[filter(\"by !activated\"),email(\"Finish your setup\")],[filter(\"by activated\"),email(\"What to build next\")],[filter(\"All contacts\"),email(\"Product digest\")]]},exitNode],Onboarding:[{kind:\"trigger\",label:\"Event received\",summary:\"trialStarted\"},{kind:\"timer\",label:\"Timer\",summary:\"Wait 10 days\"},{split:{kind:\"branch\",label:\"Branch\",summary:\"3 branches\"},legs:[[filter(\"by usedEditor\"),email(\"Design tips\")],[filter(\"by usedApi\"),email(\"API quickstart\")],[filter(\"All contacts\"),email(\"Getting started\")]]},exitNode],Retention:[{kind:\"trigger\",label:\"Contact updated\",summary:\"npsScore\"},{split:{kind:\"experiment\",label:\"Experiment\",summary:\"80% → 2 variants\"},legs:[[variant(\"40% distribution\"),email(\"How did we do?\")],[variant(\"40% distribution\"),email(\"Quick favor?\")],[control(\"20% distribution\"),email(\"Thank you\")]]},{kind:\"email\",label:\"Send email\",summary:\"Case study invite\"},exitNode],Reengagement:[{kind:\"trigger\",label:\"Contact updated\",summary:\"lastSeen\"},{split:{kind:\"branch\",label:\"Branch\",summary:\"3 branches\"},legs:[[filter(\"by lastSeen 30d\"),email(\"We miss you\")],[filter(\"by lastSeen 90d\"),email(\"Still there?\")],[filter(\"All contacts\"),email(\"What you missed\")]]},exitNode],Dunning:[{kind:\"trigger\",label:\"Event received\",summary:\"paymentFailed\"},{kind:\"email\",label:\"Send email\",summary:\"Update your card\"},{split:{kind:\"branch\",label:\"Branch\",summary:\"3 branches\"},legs:[[filter(\"by pastDue\"),email(\"Final notice\")],[filter(\"by retrySucceeded\"),email(\"Payment recovered\")],[filter(\"All contacts\"),email(\"Receipt\")]]},exitNode],Reactivation:[// Triggered by the plan property changing, not by a mailing list:\n// lists are opt-in subscriber preferences, so a cancellation is a\n// contact update. This is the docs' own Contact updated example.\n{kind:\"trigger\",label:\"Contact updated\",summary:\"plan\"},{split:{kind:\"branch\",label:\"Branch\",summary:\"3 branches\"},legs:[[filter(\"by canceledReason\"),{kind:\"timer\",label:\"Timer\",summary:\"Wait 14 days\"},email(\"Come back offer\")],[filter(\"by wasPaying\"),email(\"What we shipped\")],[filter(\"All contacts\"),email(\"Cancellation survey\")]]},exitNode]};const agentTasks={Acquisition:{prompt:\"Build an acquisition workflow for new signups.\",chips:[\"new signups\",\"activation\"],responseLead:\"I built it from a Contact added trigger: a welcome email, a three-day timer, then a three-way branch on activation state.\",responseFollowup:\"Contacts who haven't activated get the setup guide, activated ones get what to build next, and everyone else gets the digest.\"},Onboarding:{prompt:\"Set up onboarding for trial users who haven't activated.\",chips:[\"trial users\",\"activation\"],responseLead:\"I waited ten days off the trialStarted event, then branched on which part of the product they had actually used.\",responseFollowup:\"Editor users get design tips, API users get the quickstart, and everyone else gets getting-started.\"},Retention:{prompt:\"Draft a retention workflow for our engaged customers.\",chips:[\"power users\",\"engagement\"],responseLead:\"I ran an 80/20 experiment on the thank-you email with two variants and a control, then converged every path back onto the same case study invite.\",responseFollowup:\"You get a clean subject-line test without splitting the rest of the workflow in two.\"},Reengagement:{prompt:\"Generate a win-back workflow for inactive users.\",chips:[\"inactive users\",\"win-back\"],responseLead:\"I branched four ways on lastSeen, so 30-day, 90-day, 180-day and everyone-else contacts each get their own audience filter and email.\",responseFollowup:\"The message matches how long someone has actually been gone instead of treating all inactivity the same.\"},Dunning:{prompt:\"Set up a dunning workflow for failed payments.\",chips:[\"billing\",\"recovery\"],responseLead:\"I send the card-update email the moment paymentFailed fires, then split three ways: a longer recovery leg for anyone still past due, a confirmation when the retry succeeds, and a receipt for everyone else.\",responseFollowup:\"Billing recovery responds fast and only escalates while the payment is still at risk.\"},Reactivation:{prompt:\"Create a reactivation workflow for canceled customers.\",chips:[\"canceled users\",\"comeback\"],responseLead:\"I triggered it on the plan property changing to canceled, then branched: contacts with a churn reason wait 14 days for a comeback offer, former payers hear what shipped, and everyone else gets the survey.\",responseFollowup:\"You capture the cancel reason first and make the offer on a cleaner delay.\"}};const useMediaQuery=query=>{const[matches,setMatches]=useState(false);useEffect(()=>{if(typeof window===\"undefined\"||!window.matchMedia)return;const mediaQuery=window.matchMedia(query);const sync=()=>setMatches(mediaQuery.matches);sync();if(typeof mediaQuery.addEventListener===\"function\"){mediaQuery.addEventListener(\"change\",sync);return()=>mediaQuery.removeEventListener(\"change\",sync);}mediaQuery.addListener(sync);return()=>mediaQuery.removeListener(sync);},[query]);return matches;};/* ── Workflow graph ── */// The builder draws most node glyphs as solid shapes — bolt, funnel, clock,\n// paper plane, flask and the exit square are all filled; only the branch and\n// control arrows are stroked. Outlined versions read as a different icon set.\nconst StepIcon=({kind})=>{const color=\"var(--token-2a5f3230-4a8b-49e0-8e32-9494e91450f2, #63635e)\";const stroke={stroke:color,strokeWidth:2,strokeLinecap:\"round\",strokeLinejoin:\"round\"};switch(kind){case\"trigger\":return /*#__PURE__*/_jsx(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M13 2L4 14h6l-1 8 9-12h-6l1-8z\",fill:color})});case\"timer\":return /*#__PURE__*/_jsxs(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"12\",cy:\"12\",r:\"9\",fill:color}),/*#__PURE__*/_jsx(\"path\",{d:\"M12 7.2v5.1l3.1 1.9\",stroke:\"var(--token-83f5fefd-8241-47f8-8f7c-5e6247fea9aa, rgb(255, 255, 255))\",strokeWidth:\"1.9\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})]});case\"email\":return /*#__PURE__*/_jsx(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M21 3L3 10.5l7.5 3 3 7.5L21 3z\",fill:color})});case\"filter\":return /*#__PURE__*/_jsx(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M4 5h16a1 1 0 0 1 .78 1.63l-6.28 7.7v4.9a.9.9 0 0 1-1.36.77l-2.4-1.44a.9.9 0 0 1-.44-.77v-4.16L3.22 6.63A1 1 0 0 1 4 5z\",fill:color})});case\"branch\":return /*#__PURE__*/_jsxs(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M16 3l4 4-4 4M20 7H4\",...stroke}),/*#__PURE__*/_jsx(\"path\",{d:\"M8 21l-4-4 4-4M4 17h16\",...stroke})]});case\"experiment\":case\"variant\":return /*#__PURE__*/_jsx(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M9.6 2h4.8v1.6h-1.05v5.5l5.3 9.2A1.9 1.9 0 0 1 17 20.6H7a1.9 1.9 0 0 1-1.65-2.85l5.3-9.2V3.6H9.6V2z\",fill:color})});case\"control\":return /*#__PURE__*/_jsxs(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",children:[/*#__PURE__*/_jsx(\"path\",{d:\"M21 16l-4 4-4-4M17 20V4\",...stroke}),/*#__PURE__*/_jsx(\"path\",{d:\"M3 8l4-4 4 4M7 4v16\",...stroke})]});case\"exit\":return /*#__PURE__*/_jsx(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",children:/*#__PURE__*/_jsx(\"rect\",{x:\"6\",y:\"6\",width:\"12\",height:\"12\",rx:\"3\",fill:color})});}};// Orthogonal connector with rounded bends, matching the builder canvas: drop\n// from the source, turn once on a shared horizontal bus, then drop into the\n// target. Perfectly vertical runs stay a single straight segment.\nconst connectorPath=(fromX,fromY,toX,toY,busY,radius)=>{if(Math.abs(toX-fromX)<.5)return`M${fromX} ${fromY}V${toY}`;const dir=toX>fromX?1:-1;const r=Math.max(0,Math.min(radius,Math.abs(toX-fromX)/2,Math.abs(busY-fromY),Math.abs(toY-busY)));return[`M${fromX} ${fromY}`,`V${busY-r}`,`Q${fromX} ${busY} ${fromX+dir*r} ${busY}`,`H${toX-dir*r}`,`Q${toX} ${busY} ${toX} ${busY+r}`,`V${toY}`].join(\"\");};const buildLayout=(flow,metrics)=>{const{nodeWidth,nodeHeight,exitHeight,rowGap,colGap,radius}=metrics;const widestFan=flow.reduce((widest,step)=>isSplit(step)?Math.max(widest,step.legs.length):widest,1);const width=widestFan*nodeWidth+(widestFan-1)*colGap;const centerX=width/2;const nodes=[];const edges=[];let order=0;let y=0;// Nodes whose outgoing edge still needs a target: the next placed node.\nlet pending=[];const place=(spec,id,x,top)=>{const height=spec.summary?nodeHeight:exitHeight;const node={...spec,id,x:x-nodeWidth/2,y:top,width:nodeWidth,height,delayMs:30+order*45};order+=1;nodes.push(node);return{centerX:x,bottom:top+height};};const connect=(from,toX,toY,busY,keyPrefix)=>{from.forEach((source,index)=>{edges.push({id:`${keyPrefix}-${index}`,d:connectorPath(source.x,source.y,toX,toY,busY,radius),delayMs:30+order*45});});};flow.forEach((step,stepIndex)=>{if(isSplit(step)){const busY=pending.length?y-rowGap/2:0;const head=place(step.split,`s${stepIndex}`,centerX,y);connect(pending,centerX,y,busY,`e-head-${stepIndex}`);y=head.bottom+rowGap;const fanWidth=step.legs.length*nodeWidth+(step.legs.length-1)*colGap;const fanStart=centerX-fanWidth/2;const fanBusY=head.bottom+rowGap/2;const legEnds=[];let deepest=y;step.legs.forEach((leg,legIndex)=>{const legX=fanStart+legIndex*(nodeWidth+colGap)+nodeWidth/2;let legY=y;let previous=null;leg.forEach((spec,nodeIndex)=>{const placed=place(spec,`s${stepIndex}l${legIndex}n${nodeIndex}`,legX,legY);if(previous){connect([previous],legX,legY,(previous.y+legY)/2,`e-leg-${stepIndex}-${legIndex}-${nodeIndex}`);}else{connect([{x:centerX,y:head.bottom}],legX,legY,fanBusY,`e-fan-${stepIndex}-${legIndex}`);}previous={x:legX,y:placed.bottom};legY=placed.bottom+rowGap;});if(previous)legEnds.push(previous);deepest=Math.max(deepest,legY);});y=deepest;pending=legEnds;return;}const busY=pending.length?y-rowGap/2:0;const placed=place(step,`s${stepIndex}`,centerX,y);connect(pending,centerX,y,busY,`e-spine-${stepIndex}`);pending=[{x:placed.centerX,y:placed.bottom}];y=placed.bottom+rowGap;});return{nodes,edges,width,height:Math.max(0,y-rowGap)};};const GraphNode=({node,compact,selected,onSelect})=>/*#__PURE__*/_jsxs(\"button\",{type:\"button\",className:\"lifecycleGraphNode\",\"aria-pressed\":selected,\"aria-label\":node.summary?`${node.label}: ${node.summary}`:node.label,onClick:()=>onSelect(node.id),style:{appearance:\"none\",WebkitAppearance:\"none\",position:\"absolute\",left:node.x,top:node.y,zIndex:3,width:node.width,height:node.height,margin:0,padding:compact?\"8px 10px\":\"9px 12px\",borderRadius:10,border:selected?\"1.5px solid var(--token-d562ad1e-3b58-4610-8216-bd455396fc72, #21201c)\":\"1px solid var(--token-a2121e4a-7ceb-44ca-a232-5160aa2a5ff2, #e9e8e6)\",background:\"var(--token-83f5fefd-8241-47f8-8f7c-5e6247fea9aa, #fff)\",boxShadow:selected?\"0 4px 12px rgba(28,25,23,0.09)\":\"0 2px 6px rgba(28,25,23,0.055)\",color:\"var(--token-e5dd00a8-a1c8-408b-b050-1cf1ab615219, #21201c)\",display:\"flex\",alignItems:\"center\",gap:compact?8:10,cursor:\"pointer\",textAlign:\"left\",fontFamily:\"inherit\",opacity:0,animation:`lifecycleV2NodeIn 260ms ease ${node.delayMs}ms both`,transition:\"border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease\"},children:[/*#__PURE__*/_jsx(\"span\",{style:{flex:\"0 0 auto\",alignSelf:node.summary?\"flex-start\":\"center\",width:compact?26:28,height:compact?26:28,borderRadius:7,display:\"grid\",placeItems:\"center\"},children:/*#__PURE__*/_jsx(StepIcon,{kind:node.kind})}),/*#__PURE__*/_jsxs(\"span\",{style:{minWidth:0,display:\"flex\",flexDirection:\"column\",gap:2},children:[/*#__PURE__*/_jsx(\"span\",{style:{fontSize:compact?\"0.77rem\":\"0.84rem\",fontWeight:650,lineHeight:1.15,letterSpacing:\"-0.01em\",whiteSpace:\"nowrap\"},children:node.label}),node.summary?/*#__PURE__*/_jsx(\"span\",{style:{overflow:\"hidden\",color:\"var(--token-2a5f3230-4a8b-49e0-8e32-9494e91450f2, #63635e)\",fontSize:compact?\"0.66rem\":\"0.72rem\",fontWeight:450,lineHeight:1.25,textOverflow:\"ellipsis\",whiteSpace:\"nowrap\"},children:node.summary}):null]})]});const WorkflowGraph=({layout,animKey,compact,boxHeight,selectedNodeId,onNodeSelect})=>{const scrollerRef=useRef(null);// Nodes always render at full size — a graph wider than the canvas is panned\n// to, never compressed. Centring is left to block layout rather than flex or\n// a measured width: `margin-inline: auto` centres the canvas while it fits\n// and, once it is over-wide, resolves to zero so it starts flush against the\n// content edge and every node stays reachable by scrolling. Flex centring\n// would strand the leading edge, and anything keyed off a measured panel\n// width silently left-aligns whenever that measurement is stale.\nuseEffect(()=>{const el=scrollerRef.current;if(!el)return;el.scrollLeft=Math.max(0,(el.scrollWidth-el.clientWidth)/2);},[layout]);return /*#__PURE__*/_jsx(\"div\",{ref:scrollerRef,style:{width:\"100%\",height:boxHeight,overflow:\"auto\"},children:/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:layout.width,height:layout.height,marginInline:\"auto\",marginTop:Math.max(0,(boxHeight-layout.height)/2)},children:[/*#__PURE__*/_jsx(\"svg\",{\"aria-hidden\":\"true\",width:layout.width,height:layout.height,viewBox:`0 0 ${layout.width} ${layout.height}`,fill:\"none\",style:{position:\"absolute\",inset:0,zIndex:1,overflow:\"visible\"},children:layout.edges.map(edge=>/*#__PURE__*/_jsx(\"path\",{d:edge.d,stroke:\"var(--token-1e04d518-8f8c-4db1-b052-31d69507827c, #dad9d6)\",strokeWidth:\"1.5\",strokeLinejoin:\"round\",opacity:\"0\",style:{animation:`lifecycleV2FadeIn 220ms ease ${edge.delayMs}ms both`}},edge.id))}),layout.nodes.map(node=>/*#__PURE__*/_jsx(GraphNode,{node:node,compact:compact,selected:selectedNodeId===node.id,onSelect:onNodeSelect},node.id))]})},`workflow-graph-${animKey}`);};// The split head is the most informative node in a branching workflow, so it\n// starts selected; straight sequences fall back to their trigger.\nconst defaultSelectedId=flow=>{const splitIndex=flow.findIndex(isSplit);return splitIndex>=0?`s${splitIndex}`:\"s0\";};/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function LifecycleDemoV2({initialMode=\"Human\",initialTab=\"Acquisition\",style}){const safeInitialMode=initialMode===\"Agent\"?\"Agent\":\"Human\";const safeInitialTab=tabs.includes(initialTab)?initialTab:\"Acquisition\";const[activeMode,setActiveMode]=useState(safeInitialMode);const[activeTab,setActiveTab]=useState(safeInitialTab);const[selectedNodeId,setSelectedNodeId]=useState(()=>defaultSelectedId(flows[safeInitialTab]));const[panelWidth,setPanelWidth]=useState(0);const isNarrowViewport=useMediaQuery(\"(max-width: 720px)\");const rootRef=useRef(null);// Both listeners run: inside Framer the ResizeObserver has been seen not to\n// fire on a viewport change, which left the measured width stale and the fan\n// sized for the previous canvas.\nuseEffect(()=>{const node=rootRef.current;if(!node)return;const sync=()=>setPanelWidth(node.getBoundingClientRect().width);sync();const observer=typeof ResizeObserver===\"undefined\"?null:new ResizeObserver(sync);observer?.observe(node);if(typeof window===\"undefined\")return()=>observer?.disconnect();window.addEventListener(\"resize\",sync);return()=>{observer?.disconnect();window.removeEventListener(\"resize\",sync);};},[]);const currentTask=agentTasks[activeTab];const isAgentStacked=panelWidth>0?panelWidth<=560:isNarrowViewport;const isAgentMobile=panelWidth>0?panelWidth<=560:isNarrowViewport;// Sized off the panel's own width, not the viewport: this section sits in a\n// constrained content column, so a wide viewport can still mean a narrow\n// panel. Full-size nodes need 744px of canvas for a three-branch fan\n// (3 × 200 + 2 × 72) plus padding, hence 800. Both sizes render and a\n// container query on the panel shows one, so the server HTML already has\n// the final height instead of growing after the first measurement.\n// Laying out all six scenarios up front lets the canvas be sized to the\n// tallest one, so the panel never changes height as you switch tabs and no\n// scenario gets compressed to fit. Gaps are fixed rather than fitted to the\n// canvas: the builder spaces nodes roughly two thirds of a node apart, and\n// deriving the gap from a measured width collapsed it to the minimum\n// whenever that measurement was wrong.\nconst graphs=useMemo(()=>{const build=compact=>{const metrics=compact?{nodeWidth:160,nodeHeight:54,exitHeight:40,rowGap:24,colGap:44,radius:8}:{nodeWidth:200,nodeHeight:56,exitHeight:42,rowGap:28,colGap:72,radius:9};const built={};let tallest=0;for(const tab of tabs){built[tab]=buildLayout(flows[tab],metrics);tallest=Math.max(tallest,built[tab].height);}// The canvas is a scroll container, so it clips anything drawn outside\n// it. The bleed keeps the tallest graph off the top and bottom edges,\n// leaving room for a node's hover lift and drop shadow; the panel's own\n// padding shrinks by the same amount, so the section height is unchanged.\nreturn{layouts:built,graphBoxHeight:Math.ceil(tallest)+GRAPH_BLEED*2};};return{compact:build(true),full:build(false)};},[]);const agentPanelHeight=isAgentStacked?392:316;const agentPanelPadding=isAgentMobile?14:20;const lifecycleResponseDelayMs=getAgentPromptCompleteDelay(currentTask.prompt,180);useEffect(()=>{setActiveMode(safeInitialMode);},[safeInitialMode]);useEffect(()=>{setActiveTab(safeInitialTab);setSelectedNodeId(defaultSelectedId(flows[safeInitialTab]));},[safeInitialTab]);const renderAgentPanel=()=>/*#__PURE__*/_jsx(AgentSplitPanel,{height:agentPanelHeight,stacked:isAgentStacked,padding:agentPanelPadding,leftColumnWidth:\"0.94fr\",rightColumnWidth:\"1.06fr\",rightPaneBackground:\"var(--token-04e187b4-6515-4f0f-b3c0-d356152b5248, #f9f9f8)\",left:/*#__PURE__*/_jsx(AgentPromptCard,{prompt:currentTask.prompt,animationKey:activeTab,fontSize:isAgentMobile?typeScale.supporting:typeScale.body,lineHeight:isAgentMobile?1.45:1.5,padding:isAgentMobile?\"14px 16px\":\"18px 20px\"}),right:/*#__PURE__*/_jsx(AgentTextResponseCard,{paragraphs:[currentTask.responseLead,currentTask.responseFollowup],animationKey:activeTab,fontSize:typeScale.supporting,lineHeight:1.5,padding:isAgentMobile?\"14px 16px\":\"18px\",startDelayMs:lifecycleResponseDelayMs})});const renderGraphPanel=compact=>{const{layouts,graphBoxHeight}=compact?graphs.compact:graphs.full;const graphPaddingY=(compact?16:24)-GRAPH_BLEED;return /*#__PURE__*/_jsx(\"div\",{style:{background:\"var(--token-83f5fefd-8241-47f8-8f7c-5e6247fea9aa, #fff)\",overflow:\"hidden\",display:\"flex\",flexDirection:\"column\",height:graphBoxHeight+graphPaddingY*2,position:\"relative\"},children:/*#__PURE__*/_jsx(\"div\",{style:{flex:1,minHeight:0,padding:`${graphPaddingY}px ${compact?12:18}px`,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",backgroundColor:\"var(--token-04e187b4-6515-4f0f-b3c0-d356152b5248, #f9f9f8)\",backgroundImage:\"radial-gradient(circle, color-mix(in srgb, var(--token-b2f485ce-7e0b-486e-8adf-fec8c3e8d95e, rgb(99, 99, 94)) 24%, transparent) 1px, transparent 1px)\",backgroundPosition:\"-1px -1px\",backgroundSize:\"32px 32px\"},children:/*#__PURE__*/_jsx(WorkflowGraph,{layout:layouts[activeTab],animKey:activeTab,compact:compact,boxHeight:graphBoxHeight,selectedNodeId:selectedNodeId,onNodeSelect:setSelectedNodeId})})});};const renderToolbar=compact=>/*#__PURE__*/_jsx(DemoToolbar,{modeTabs:getHumanAgentModeTabs(activeMode),activeModeId:activeMode,onModeSelect:id=>setActiveMode(id),options:tabs.map(tab=>({id:tab,label:tab})),activeOptionId:activeTab,onOptionSelect:id=>{const next=id;setActiveTab(next);setSelectedNodeId(defaultSelectedId(flows[next]));},fontSize:typeScale.body,modeFontSize:typeScale.supporting,compact:compact,selectWidth:188,selectMobileMaxWidth:156,selectAriaLabel:\"Lifecycle scenario\"});return /*#__PURE__*/_jsxs(\"div\",{className:\"llc-wrap\",style:{display:\"flex\",flexDirection:\"column\",fontFamily:\"ui-sans-serif, system-ui, -apple-system, sans-serif\",...style},children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:`\n        @keyframes lifecycleV2FadeIn {\n          from { opacity: 0; }\n          to { opacity: 1; }\n        }\n        @keyframes lifecycleV2NodeIn {\n          from { opacity: 0; }\n          to { opacity: 1; }\n        }\n        .lifecycleGraphNode:not([aria-pressed=\"true\"]):hover {\n          border-color: var(--token-a2121e4a-7ceb-44ca-a232-5160aa2a5ff2, #e9e8e6) !important;\n          box-shadow: 0 4px 12px rgba(28,25,23,0.08) !important;\n          transform: translateY(-1px);\n        }\n        .lifecycleGraphNode:focus-visible {\n          outline: 2px solid var(--token-d562ad1e-3b58-4610-8216-bd455396fc72, #21201c);\n          outline-offset: 2px;\n        }\n        @media (prefers-reduced-motion: reduce) {\n          .lifecycleGraphNode {\n            animation-duration: 1ms !important;\n            transition: none !important;\n          }\n        }\n        .llc-wrap { gap: 16px; }\n        .llc-root { container-type: inline-size; }\n        .llc-tn, .llc-gw { display: none; }\n        @media (max-width: 720px) {\n          .llc-wrap { gap: 14px; }\n          .llc-tw { display: none; }\n          .llc-tn { display: block; }\n        }\n        @container (min-width: 798px) {\n          .llc-gn { display: none; }\n          .llc-gw { display: block; }\n        }\n      `}}),/*#__PURE__*/_jsxs(\"div\",{ref:rootRef,className:\"llc-root\",style:{display:\"flex\",flexDirection:\"column\",gap:0,...panelStyle},children:[/*#__PURE__*/_jsx(\"div\",{className:\"llc-tw\",children:renderToolbar(false)}),/*#__PURE__*/_jsx(\"div\",{className:\"llc-tn\",children:renderToolbar(true)}),activeMode===\"Agent\"?renderAgentPanel():/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{className:\"llc-gn\",children:renderGraphPanel(true)}),/*#__PURE__*/_jsx(\"div\",{className:\"llc-gw\",children:renderGraphPanel(false)})]})]}),/*#__PURE__*/_jsx(SectionPills,{pills:[{label:\"Triggers\",href:\"https://loops.so/docs/workflows/triggers\"},{label:\"Branching\",href:\"https://loops.so/docs/workflows/branching\"},{label:\"Playbooks\",href:\"https://loops.so/docs/guides/lifecycle-emails\"}]})]});}addPropertyControls(LifecycleDemoV2,{initialMode:{type:ControlType.Enum,title:\"Mode\",options:[\"Human\",\"Agent\"],optionTitles:[\"Human\",\"Agent\"],defaultValue:\"Human\"},initialTab:{type:ControlType.Enum,title:\"Scenario\",options:tabs,optionTitles:tabs,defaultValue:\"Acquisition\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LifecycleDemoV2\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","import{jsx as _jsx}from\"react/jsx-runtime\";import LifecycleDemoV2 from\"https://framerusercontent.com/modules/edhZtsTCZaI9tvg6nY33/EV34keYv2qxHZCh2aB3T/LifecycleDemoV2.js\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n */export default function Lifecycle(props){return /*#__PURE__*/_jsx(LifecycleDemoV2,{...props});}export{LifecycleDemoV2};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Lifecycle\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"auto\"}},\"LifecycleDemoV2\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,icA6BG,SAAwByB,EAAgB,CAAC,cAAY,QAAQ,aAAW,cAAc,SAAO,CAAC,IAAMC,EAAgBC,IAAc,QAAQ,QAAQ,QAAcC,EAAeC,EAAK,SAASC,CAAU,EAAEA,EAAW,cAAmB,CAACC,EAAWC,GAAeC,EAASP,CAAe,EAAO,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