{"version":3,"file":"ARR_Waterfall.iVfRAMMu.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/ax6c0wTTsFhWLqcTAuNi/1vvgKTBgCAGsE9kxuSba/ARR_Waterfall.js"],"sourcesContent":["// Ferry — ARR Waterfall\n// Framer Code Component — paste this into Framer's Code tab.\n// Renders the Ferry motion fragment with full script execution support.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";import{addPropertyControls}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 600\n * @framerIntrinsicHeight 400\n */export default function FerryARRWaterfall(props){const ref=useRef(null);useEffect(()=>{const wrap=ref.current;if(!wrap)return;// 1. Inject the HTML fragment (style + div + script tags)\nwrap.innerHTML=HTML_FRAGMENT;// 2. Scripts inserted via innerHTML do NOT execute. Re-create each\n//    <script> via document.createElement + replaceChild so it runs.\nconst oldScripts=wrap.querySelectorAll(\"script\");oldScripts.forEach(oldScript=>{const newScript=document.createElement(\"script\");// Copy attributes (type, src if any)\nfor(let i=0;i<oldScript.attributes.length;i++){const attr=oldScript.attributes[i];newScript.setAttribute(attr.name,attr.value);}newScript.textContent=oldScript.textContent;oldScript.parentNode?.replaceChild(newScript,oldScript);});// 3. Cleanup on unmount\nreturn()=>{wrap.innerHTML=\"\";};},[]);return /*#__PURE__*/_jsx(\"div\",{ref:ref,style:{width:\"100%\",height:\"100%\",overflow:\"hidden\",pointerEvents:\"none\"}});}addPropertyControls(FerryARRWaterfall,{});// ─── HTML fragment ─────────────────────────────────────────────────────\nconst HTML_FRAGMENT=`<style>\n.fe {\n  position: relative;\n  display: block;\n  width: 100%;\n  height: 100%;\n  font-family: -apple-system, BlinkMacSystemFont, \"Inter\", \"SF Pro Text\", Helvetica, Arial, sans-serif;\n  color: #171717;\n  background: transparent;\n  overflow: hidden;\n  box-sizing: border-box;\n  pointer-events: none;\n}\n.fe.play {} /* legacy, no-op */\n\n  .fe {\n    --teal: #0F766E;\n    --teal-50: #EDF7F5;\n    --pos: #059669;\n    --pos-50: #ECFDF5;\n    --neg: #DC2626;\n    --neg-50: #FEF2F2;\n    --text: #171717;\n    --text-2: #525252;\n    --text-3: #737373;\n    --text-4: #A3A3A3;\n    --border: #E5E7EB;\n    --border-soft: #F3F4F6;\n    --border-strong: #D1D5DB;\n    --surface: #FFFFFF;\n    --agent: #0F766E;\n  }\n.fe *, .fe *::before, .fe *::after { box-sizing: border-box; }\n  .fe {\n    margin: 0; padding: 0;\n    width: 100%;\n    height: 100%;\n    background: transparent;\n    font-family: -apple-system, BlinkMacSystemFont, \"Inter\", \"SF Pro Text\", Helvetica, Arial, sans-serif;\n    color: var(--text);\n    overflow: hidden;\n  }\n\n  /* ───────── Responsive scale wrapper ─────────\n     Card is designed at fixed 720 \\xd7 442 px. We scale the whole card to FIT\n     inside whatever box Framer gives the iframe — using the smaller of\n     width-scale and height-scale so nothing gets clipped on either axis. */\n  .scale-wrap {\n    position: relative;\n    container-type: size;\n    width: 100%;\n    height: 100%;\n  }\n\n  /* ───────── Card ───────── */\n  .card {\n    position: absolute;\n    top: 50%;\n    left: 50%;\n    width: 600px;\n    height: 400px;\n    background: var(--surface);\n    border: 1px solid var(--border);\n    border-radius: 8px;\n    padding: 16px 18px;\n    overflow: hidden;\n    box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px rgba(0,0,0,.06);\n    transform-origin: center center;\n    transform: translate(-50%, -50%) scale(min(calc(100cqw / 600px), calc(100cqh / 400px)));\n  }\n\n  /* Animations paused until JS adds .play (after iframe loads + visible). */\n  \n  .eyebrow {\n    display: flex; align-items: center; gap: 8px;\n    font-size: 11px; font-weight: 600; letter-spacing: .06em;\n    color: var(--text-3); text-transform: uppercase;\n  }\n  .value-row { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 6px; }\n  .trend { font-size: 11.5px; color: var(--pos); font-weight: 500; margin-left: 10px; }\n  .trend .arrow { display: inline-block; transform: translateY(-1px); margin-right: 1px; }\n  .corner-pill {\n    position: absolute; right: 16px; top: 16px;\n    font-size: 10.5px; font-weight: 600; letter-spacing: .01em;\n    padding: 3px 8px; border-radius: 4px;\n    background: var(--pos-50); color: var(--pos);\n  }\n\n  /* ───────── Chart ───────── */\n  .chart-wrap {\n    position: relative;\n    margin-top: 14px;\n    padding-top: 14px;\n    width: 100%;\n  }\n  svg.wf { display: block; width: 100%; height: auto; overflow: visible; }\n\n  /* Bars grow from the baseline (positive) or from the top (negative).\n     transform-box: fill-box anchors the transform to the rect's own bbox. */\n  .wf-bar {\n    transform-box: fill-box;\n    transform-origin: center bottom;\n    transform: scaleY(0);\n    animation: bar-grow 0.45s cubic-bezier(.22,.61,.36,1) forwards;\n  }\n  .wf-bar.neg { transform-origin: center top; }\n  .wf-bar.b0 { animation-delay: 0.15s; }\n  .wf-bar.b1 { animation-delay: 0.55s; }\n  .wf-bar.b2 { animation-delay: 0.95s; }\n  .wf-bar.b3 { animation-delay: 1.35s; }\n  .wf-bar.b4 { animation-delay: 1.75s; }\n  .wf-bar.b5 { animation-delay: 2.15s; }\n  @keyframes bar-grow {\n    from { transform: scaleY(0); }\n    to   { transform: scaleY(1); }\n  }\n\n  /* Value labels above each bar */\n  .wf-vlabel { opacity: 0; animation: label-in 0.4s ease-out forwards; }\n  .wf-vlabel.b0 { animation-delay: 0.45s; }\n  .wf-vlabel.b1 { animation-delay: 0.85s; }\n  .wf-vlabel.b2 { animation-delay: 1.25s; }\n  .wf-vlabel.b3 { animation-delay: 1.65s; }\n  .wf-vlabel.b4 { animation-delay: 2.05s; }\n  .wf-vlabel.b5 { animation-delay: 2.45s; }\n  @keyframes label-in {\n    from { opacity: 0; transform: translateY(4px); }\n    to   { opacity: 1; transform: translateY(0); }\n  }\n\n  /* X-axis category labels */\n  .wf-xlabel { opacity: 0; animation: label-in 0.4s ease-out forwards; }\n  .wf-xlabel.x0 { animation-delay: 0.20s; }\n  .wf-xlabel.x1 { animation-delay: 0.60s; }\n  .wf-xlabel.x2 { animation-delay: 1.00s; }\n  .wf-xlabel.x3 { animation-delay: 1.40s; }\n  .wf-xlabel.x4 { animation-delay: 1.80s; }\n  .wf-xlabel.x5 { animation-delay: 2.20s; }\n\n  /* Dashed connector lines: draw via stroke-dasharray trick */\n  .wf-line {\n    stroke-dasharray: 30;\n    stroke-dashoffset: 30;\n    animation: line-draw 0.35s ease-out forwards;\n  }\n  .wf-line.c0 { animation-delay: 0.55s; }\n  .wf-line.c1 { animation-delay: 0.95s; }\n  .wf-line.c2 { animation-delay: 1.35s; }\n  .wf-line.c3 { animation-delay: 1.75s; }\n  .wf-line.c4 { animation-delay: 2.15s; }\n  @keyframes line-draw { to { stroke-dashoffset: 0; } }\n\n  /* ───────── Footer ───────── */\n  .footer {\n    margin-top: 14px; padding-top: 12px;\n    border-top: 1px dashed var(--border);\n    font-size: 11.5px; color: var(--text-3);\n    display: flex; align-items: flex-start; gap: 7px; line-height: 1.5;\n  }\n  .ferry-mark { flex-shrink: 0; color: var(--agent); margin-top: 2px; }\n\n  /* ───────── Cursor + tooltip overlay ───────── */\n  .chart-overlay {\n    position: absolute;\n    inset: 0;\n    pointer-events: none;\n  }\n\n  /* Cursor — starts off the chart, glides to the Expansion bar, holds, then leaves.\n     At 600 card width, chart-wrap is 564px wide. SVG viewBox is 540, so scale\n     ≈ 1.044. The Expansion bar center is at SVG (225, 2.5) → rendered\n     (235, 16.6) inside chart-overlay (chart-wrap padding-top is 14). The 22\\xd722\n     cursor SVG has its tip at (3,3), so we offset by (-3,-3) → landing\n     translate(232px, 13.6px). */\n  .cursor {\n    position: absolute;\n    left: 0; top: 0;\n    width: 22px; height: 22px;\n    opacity: 0;\n    transform: translate(540px, 240px);\n    animation: cursor-path 8s linear infinite;\n    z-index: 20;\n    filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));\n  }\n  @keyframes cursor-path {\n    0%   { opacity: 0; transform: translate(540px, 240px); }\n    30%  { opacity: 0; transform: translate(540px, 240px); }\n    33%  { opacity: 1; transform: translate(540px, 240px); }\n    45%  { opacity: 1; transform: translate(232px, 14px); }\n    75%  { opacity: 1; transform: translate(232px, 14px); }\n    82%  { opacity: 1; transform: translate(540px, 240px); }\n    85%  { opacity: 0; transform: translate(540px, 240px); }\n    100% { opacity: 0; transform: translate(540px, 240px); }\n  }\n\n  /* Tooltip — exact prototype match:\n       bg #1F1F1F, padding 8px 10px, border-radius 6, font 11.5px,\n       title bold, rows show label (#B8B8B8) vs value (#fff / pos / neg).\n     Anchored at cursor-tip + (12, 14). */\n  .tooltip {\n    position: absolute;\n    left: 0; top: 0;\n    background: #1F1F1F;\n    color: #fff;\n    padding: 8px 10px;\n    border-radius: 6px;\n    font-size: 11.5px;\n    box-shadow: 0 4px 12px rgba(0,0,0,.2);\n    min-width: 150px;\n    opacity: 0;\n    transform: translate(247px, 30px);\n    animation: tooltip-in 8s linear infinite;\n    z-index: 25;\n  }\n  @keyframes tooltip-in {\n    0%, 44%   { opacity: 0; transform: translate(247px, 36px); }\n    47%       { opacity: 1; transform: translate(247px, 30px); }\n    75%       { opacity: 1; transform: translate(247px, 30px); }\n    78%, 100% { opacity: 0; transform: translate(247px, 24px); }\n  }\n  .tt-title { font-weight: 600; margin-bottom: 4px; }\n  .tt-row {\n    display: flex; justify-content: space-between; gap: 10px;\n    font-variant-numeric: tabular-nums; opacity: .92;\n  }\n  .tt-label { color: #B8B8B8; }\n  .tt-val   { color: #fff; }\n  .tt-val.pos { color: #87D7B0; }\n  .tt-val.neg { color: #F2A9A9; }\n\n  /* Light flash on the Expansion bar while the tooltip is on it. */\n  .wf-bar.b2 {\n    animation:\n      bar-grow 0.45s cubic-bezier(.22,.61,.36,1) forwards 0.95s,\n      bar-flash 8s linear infinite;\n  }\n  @keyframes bar-flash {\n    0%, 44%   { opacity: 0.8; }\n    47%, 75%  { opacity: 1.0; }\n    78%, 100% { opacity: 0.8; }\n  }\n</style>\n<div class=\"fe\"><div class=\"scale-wrap\">\n<div class=\"card\">\n  <div class=\"eyebrow\">ARR waterfall \\xb7 last 3 months</div>\n  <div class=\"value-row\">\n    $2.58M\n    <span class=\"trend\"><span class=\"arrow\">↑</span>+8.2% QoQ</span>\n  </div>\n  <span class=\"corner-pill\">Net +$210K</span>\n\n  <div class=\"chart-wrap\">\n    <!--\n      Prototype geometry (Waterfall in revenue.jsx):\n        barWidth=60, gap=30, height=190, viewBox 540\\xd7228.\n        topMax = max(from, to) across all points = 2,632,000.\n      Bars (in SVG units, $K):\n        Feb '26 ARR (start):  0   → 2380   y=18.19, h=171.81\n        New          (pos):  2380 → 2564   y= 4.90, h= 13.29\n        Expansion    (pos):  2564 → 2632   y= 0.00, h=  4.90\n        Contraction  (neg):  2632 → 2610   y= 0.00, h=  2.00 (min-2 clamp)\n        Churn        (neg):  2610 → 2576   y= 1.59, h=  2.45\n        Apr '26 ARR  (end):  0    → 2576   y= 4.04, h=185.96\n      X positions = i*90 + 15: 15, 105, 195, 285, 375, 465.\n    -->\n    <svg class=\"wf\" viewBox=\"0 0 540 228\" preserveAspectRatio=\"xMidYMid meet\">\n      <!-- dashed connectors -->\n      <line class=\"wf-line c0\" x1=\"75\"  y1=\"18.19\" x2=\"105\" y2=\"18.19\" stroke=\"#D1D5DB\" stroke-dasharray=\"3 3\"/>\n      <line class=\"wf-line c1\" x1=\"165\" y1=\"4.90\"  x2=\"195\" y2=\"4.90\"  stroke=\"#D1D5DB\" stroke-dasharray=\"3 3\"/>\n      <line class=\"wf-line c2\" x1=\"255\" y1=\"0.00\"  x2=\"285\" y2=\"0.00\"  stroke=\"#D1D5DB\" stroke-dasharray=\"3 3\"/>\n      <line class=\"wf-line c3\" x1=\"345\" y1=\"1.59\"  x2=\"375\" y2=\"1.59\"  stroke=\"#D1D5DB\" stroke-dasharray=\"3 3\"/>\n      <line class=\"wf-line c4\" x1=\"435\" y1=\"4.04\"  x2=\"465\" y2=\"4.04\"  stroke=\"#D1D5DB\" stroke-dasharray=\"3 3\"/>\n\n      <!-- bars -->\n      <rect class=\"wf-bar b0\"      x=\"15\"  y=\"18.19\" width=\"60\" height=\"171.81\" fill=\"#3F3F3F\"     rx=\"2\" opacity=\"0.9\"/>\n      <rect class=\"wf-bar b1\"      x=\"105\" y=\"4.90\"  width=\"60\" height=\"13.29\"  fill=\"#059669\"     rx=\"2\" opacity=\"0.8\"/>\n      <rect class=\"wf-bar b2\"      x=\"195\" y=\"0\"     width=\"60\" height=\"4.90\"   fill=\"#059669\"     rx=\"2\" opacity=\"0.8\"/>\n      <rect class=\"wf-bar b3 neg\"  x=\"285\" y=\"0\"     width=\"60\" height=\"2.00\"   fill=\"#DC2626\"     rx=\"2\" opacity=\"0.8\"/>\n      <rect class=\"wf-bar b4 neg\"  x=\"375\" y=\"1.59\"  width=\"60\" height=\"2.45\"   fill=\"#DC2626\"     rx=\"2\" opacity=\"0.8\"/>\n      <rect class=\"wf-bar b5\"      x=\"465\" y=\"4.04\"  width=\"60\" height=\"185.96\" fill=\"#0F766E\"     rx=\"2\" opacity=\"0.9\"/>\n\n      <!-- value labels above bars -->\n      <text class=\"wf-vlabel b0\" x=\"45\"  y=\"12\"   text-anchor=\"middle\" font-size=\"11\" font-weight=\"500\" fill=\"#525252\" font-family=\"inherit\">$2.38M</text>\n      <text class=\"wf-vlabel b1\" x=\"135\" y=\"-1\"   text-anchor=\"middle\" font-size=\"11\" font-weight=\"500\" fill=\"#525252\" font-family=\"inherit\">+$184K</text>\n      <text class=\"wf-vlabel b2\" x=\"225\" y=\"-6\"   text-anchor=\"middle\" font-size=\"11\" font-weight=\"500\" fill=\"#525252\" font-family=\"inherit\">+$68K</text>\n      <text class=\"wf-vlabel b3\" x=\"315\" y=\"-6\"   text-anchor=\"middle\" font-size=\"11\" font-weight=\"500\" fill=\"#525252\" font-family=\"inherit\">-$22K</text>\n      <text class=\"wf-vlabel b4\" x=\"405\" y=\"-4.4\" text-anchor=\"middle\" font-size=\"11\" font-weight=\"500\" fill=\"#525252\" font-family=\"inherit\">-$34K</text>\n      <text class=\"wf-vlabel b5\" x=\"495\" y=\"-2\"   text-anchor=\"middle\" font-size=\"11\" font-weight=\"500\" fill=\"#525252\" font-family=\"inherit\">$2.58M</text>\n\n      <!-- x-axis category labels -->\n      <text class=\"wf-xlabel x0\" x=\"45\"  y=\"208\" text-anchor=\"middle\" font-size=\"11\" fill=\"#737373\" font-family=\"inherit\">Feb '26 ARR</text>\n      <text class=\"wf-xlabel x1\" x=\"135\" y=\"208\" text-anchor=\"middle\" font-size=\"11\" fill=\"#737373\" font-family=\"inherit\">New</text>\n      <text class=\"wf-xlabel x2\" x=\"225\" y=\"208\" text-anchor=\"middle\" font-size=\"11\" fill=\"#737373\" font-family=\"inherit\">Expansion</text>\n      <text class=\"wf-xlabel x3\" x=\"315\" y=\"208\" text-anchor=\"middle\" font-size=\"11\" fill=\"#737373\" font-family=\"inherit\">Contraction</text>\n      <text class=\"wf-xlabel x4\" x=\"405\" y=\"208\" text-anchor=\"middle\" font-size=\"11\" fill=\"#737373\" font-family=\"inherit\">Churn</text>\n      <text class=\"wf-xlabel x5\" x=\"495\" y=\"208\" text-anchor=\"middle\" font-size=\"11\" fill=\"#737373\" font-family=\"inherit\">Apr '26 ARR</text>\n    </svg>\n\n    <!-- cursor + tooltip live in the same coordinate space as the chart -->\n    <div class=\"chart-overlay\">\n      <svg class=\"cursor\" viewBox=\"0 0 22 22\" xmlns=\"http://www.w3.org/2000/svg\">\n        <path d=\"M3 2 L3 18 L7.5 14 L10.5 20 L13 19 L10 13 L16 13 Z\"\n              fill=\"#FFFFFF\" stroke=\"#171717\" stroke-width=\"1.2\" stroke-linejoin=\"round\"/>\n      </svg>\n\n      <div class=\"tooltip\">\n        <div class=\"tt-title\">Expansion</div>\n        <div class=\"tt-row\"><span class=\"tt-label\">Change</span><span class=\"tt-val pos\">+$68,000</span></div>\n        <div class=\"tt-row\"><span class=\"tt-label\">Running total</span><span class=\"tt-val\">$2.63M</span></div>\n      </div>\n    </div>\n  </div>\n\n  <div class=\"footer\">\n    <svg class=\"ferry-mark\" width=\"11\" height=\"11\" viewBox=\"0 0 16 16\" fill=\"none\">\n      <circle cx=\"8\" cy=\"8\" r=\"6.5\" stroke=\"currentColor\" stroke-width=\"1.2\"/>\n      <path d=\"M5 8 L7.5 10.5 L11.5 5.5\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\" fill=\"none\"/>\n    </svg>\n    <span>Ferry attributes +$580K to new/expansion across 8 accounts; −$370K to churn+downgrade across 4.</span>\n  </div>\n</div>\n</div>\n\n<script>\n(function () {\n  function bootFerry() {\n    var __ferryRoot = (function () {\n      var s = document.currentScript;\n      var r = s && s.parentElement;\n      while (r && r.nodeType === 1 && !r.classList.contains('fe')) r = r.parentElement;\n      if (r) return r;\n      // fallback: nearest .fe lacking the bootStarted flag\n      var all = document.querySelectorAll('.fe');\n      for (var i = 0; i < all.length; i++) {\n        if (!all[i].__ferryBooted) return all[i];\n      }\n      return all[0] || null;\n    })();\n    if (!__ferryRoot) return;\n    if (__ferryRoot.__ferryBooted) return;\n    __ferryRoot.__ferryBooted = true;\n    __ferryRoot.classList.add('play');\n\n/* Animation playback control —\n   All CSS animations start paused. They play once the iframe has loaded\n   AND the tab is currently visible — then they loop infinitely via the\n   \\`animation: ... infinite\\` declarations. Every fresh page load (including\n   refresh) re-runs this and the animations start from frame 0 again. */\n(function () {\n  var root = __ferryRoot;\n  function start() {\n    if (root.classList.contains('play')) return;\n    if (document.visibilityState !== 'visible') return;\n    setTimeout(function () { root.classList.add('play'); }, 60);\n  }\n  if (document.readyState === 'complete') start();\n  else window.addEventListener('load', start);\n  document.addEventListener('visibilitychange', start);\n})();\n\n  }\n  if (document.readyState === 'loading') {\n    document.addEventListener('DOMContentLoaded', bootFerry);\n  } else {\n    bootFerry();\n  }\n})();\n</script></div>`;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FerryARRWaterfall\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"400\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicWidth\":\"600\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ARR_Waterfall.map"],"mappings":"2KAQG,SAAwB,EAAkB,EAAM,CAAC,IAAM,EAAIA,EAAO,IAAI,EAKpC,OALsC,MAAc,CAAC,IAAM,EAAK,EAAI,QAAY,KAKrH,MAJA,GAAK,UAAU,EAEkC,EAA3B,iBAAiB,QAAmB,CAAC,CAAC,QAAQ,GAAW,CAAC,IAAM,EAAU,SAAS,cAAc,QAAQ,EAC/H,IAAI,IAAI,EAAE,EAAE,EAAE,EAAU,WAAW,OAAO,IAAI,CAAC,IAAM,EAAK,EAAU,WAAW,GAAG,EAAU,aAAa,EAAK,KAAK,EAAK,KAAK,CAAE,CAAC,EAAU,YAAY,EAAU,YAAY,EAAU,YAAY,aAAa,EAAU,CAAS,CAAE,CAAC,MAC3N,CAAC,EAAK,UAAU,EAAG,CAAE,EAAE,CAAC,CAAC,EAAsB,EAAK,MAAM,CAAK,MAAI,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,SAAS,SAAS,cAAc,MAAM,CAAC,CAAC,CAAE,mBAV/G,IAAoC,IAAwC,EAUoC,EAAoB,EAAkB,CAAC,CAAC,EAC5L,EAAc"}