{"version":3,"file":"CookCommitsChart.DoHb5Sso.mjs","names":["React.useRef","React.useEffect","_jsxs","_jsx","__esmMin","init_npm_react_18_3_1","window","ce","init_jsx_runtime","c","p","de","init_ssg_sandbox_shims","CookCommitsChart","props","ref","el","cleanups","t","i","TITLES","io","entries","f","CSS","HTML","__FramerMetadata__","init_CookCommitsChart","\"exports\"","\"default\"","\"type\"","\"name\"","\"slots\"","\"annotations\"","\"framerIntrinsicWidth\"","\"framerContractVersion\"","\"framerSupportedLayoutHeight\"","\"framerSupportedLayoutWidth\"","\"__FramerMetadata__\""],"sources":["https:/framerusercontent.com/modules/04gXnnT7wmNH6g5tkNub/VkMJziAdNcVz7qbH2tQF/CookCommitsChart.js"],"sourcesContent":["// @ts-nocheck\n// Figure for the \"Anyone Can Cook\" engineering post. Static markup is server-rendered;\n// the effect only adds the scroll reveal and restores the bar labels.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";const CSS='@font-face{font-family:\"Poppins\";font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/poppins/v24/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2) format(\"woff2\")}\\n@font-face{font-family:\"Poppins\";font-style:normal;font-weight:500;font-display:swap;src:url(https://fonts.gstatic.com/s/poppins/v24/pxiByp8kv8JHgFVrLGT9Z1xlFd2JQEk.woff2) format(\"woff2\")}\\n@font-face{font-family:\"Poppins\";font-style:normal;font-weight:600;font-display:swap;src:url(https://fonts.gstatic.com/s/poppins/v24/pxiByp8kv8JHgFVrLEj6Z1xlFd2JQEk.woff2) format(\"woff2\")}\\n@font-face{font-family:\"Poppins\";font-style:normal;font-weight:700;font-display:swap;src:url(https://fonts.gstatic.com/s/poppins/v24/pxiByp8kv8JHgFVrLCz7Z1xlFd2JQEk.woff2) format(\"woff2\")}\\n.acc-commits{--ink:#08105E;--body:#2B333B;--muted:#66788A;--faint:#9AA6B2;--line:#E2E5E9;--tint:#F7F7F8;--violet:#8000FF;--violet-tint:#F5EBFF;--violet-ink:#6600CC;--green:#138656;--green-tint:#EDF8F3;--red:#C20A47;--red-tint:#FEE7EE;--orange:#C2750A;--orange-tint:#FEF4E7;--blue:#2060DF;--blue-tint:#E9EFFC;color-scheme:light}\\n.acc-commits *{box-sizing:border-box}\\n.acc-commits h3{font-family:\"Poppins\",system-ui,sans-serif;color:var(--ink);font-weight:600;text-wrap:balance;margin:0}\\n.acc-commits h3{font-size:19px;margin:34px 0 8px}\\n.acc-commits p{margin:0 0 18px}\\n.acc-commits a{color:var(--violet)}\\n.acc-commits strong{color:var(--ink)}\\n.acc-commits .wide{margin-inline:calc(50% - min(50vw - 20px,520px));}\\n.acc-commits .caption,.acc-commits figcaption{font-size:13.5px;line-height:1.5;color:var(--muted);margin-top:10px}\\n.acc-commits figure{margin:30px 0}\\n.acc-commits .chart{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px 18px 10px}\\n.acc-commits .chart h4{font:600 15px \"Poppins\",sans-serif;color:var(--ink);margin:0 0 2px}\\n.acc-commits .chart .sub{font-size:13px;color:var(--muted);margin:0 0 8px}\\n.acc-commits .chart svg{display:block;width:100%;height:auto;overflow:visible}\\n.acc-commits svg text{font-family:\"DM Sans\",sans-serif}\\n.acc-commits.js .reveal{opacity:0;transform:translateY(16px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1)}\\n.acc-commits.js .reveal.in{opacity:1;transform:none}\\n.acc-commits.js .bars rect.b{transform:scaleX(0);transform-origin:left;transform-box:fill-box;transition:transform 1s cubic-bezier(.2,.7,.2,1)}\\n.acc-commits.js .bars.in rect.b{transform:none}\\n@media (prefers-reduced-motion:reduce){.acc-commits.js .reveal,.acc-commits.js .bars rect.b{transition:none;opacity:1;transform:none;stroke-dashoffset:0}}\\n@media (max-width:700px){.acc-commits .wide{margin-inline:0}}\\n@media (max-width:560px){.acc-commits #commits{overflow-x:auto;-webkit-overflow-scrolling:touch}\\n.acc-commits #commits>svg{min-width:560px}}\\n.acc-commits{color:var(--body);font:17px/1.68 \"DM Sans\",system-ui,-apple-system,sans-serif;text-align:left;white-space:normal;word-break:normal;overflow-wrap:normal;-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto;padding:11px 0 12px}\\n.acc-commits figure{margin:0}\\n.acc-commits .wide{margin-inline:0}\\n.acc-commits>.acc-inner{width:max(100%,min(1040px,calc(100vw - 40px)));margin-left:calc((100% - max(100%,min(1040px,calc(100vw - 40px))))/2)}';const HTML='<figure class=\"wide reveal\">\\n<div class=\"chart bars\" id=\"commits\">\\n  <h4>Commits per month to our builders\\' projects</h4>\\n  <p class=\"sub\">Default branches across our builders\\' GitHub org, bots excluded. Bars are labeled with commits; the line below each is the number of people committing.</p>\\n<svg viewBox=\"0 0 720 270\" role=\"img\" aria-label=\"Commits per month in our builders\\' GitHub org, bots excluded: 127 in March, 411 in April, 739 in May, 638 in June, 1,461 in July, 1,597 in August, 1,488 in September, and 2,317 in October. People committing rose from 14 to 39.\">\\n  <g stroke=\"#EEF0F3\"><line x1=\"50\" y1=\"215.0\" x2=\"700\" y2=\"215.0\"></line><line x1=\"50\" y1=\"178.0\" x2=\"700\" y2=\"178.0\"></line><line x1=\"50\" y1=\"141.0\" x2=\"700\" y2=\"141.0\"></line><line x1=\"50\" y1=\"104.0\" x2=\"700\" y2=\"104.0\"></line><line x1=\"50\" y1=\"67.0\" x2=\"700\" y2=\"67.0\"></line><line x1=\"50\" y1=\"30.0\" x2=\"700\" y2=\"30.0\"></line></g>\\n  <g fill=\"#66788A\" font-size=\"12\" text-anchor=\"end\"><text x=\"42\" y=\"219.0\">0</text><text x=\"42\" y=\"182.0\">500</text><text x=\"42\" y=\"145.0\">1,000</text><text x=\"42\" y=\"108.0\">1,500</text><text x=\"42\" y=\"71.0\">2,000</text><text x=\"42\" y=\"34.0\">2,500</text></g>\\n  <rect class=\"b\" x=\"64.6\" y=\"205.6\" width=\"52\" height=\"9.4\" rx=\"4\" fill=\"#C4A3F5\" role=\"img\" aria-label=\"Mar: 127 commits by 14 people\"><title>Mar: 127 commits by 14 people</title></rect>\\n  <text x=\"90.6\" y=\"199.6\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"700\" fill=\"#08105E\">127</text>\\n  <text x=\"90.6\" y=\"234\" text-anchor=\"middle\" font-size=\"12\" fill=\"#66788A\">Mar</text>\\n  <text x=\"90.6\" y=\"252\" text-anchor=\"middle\" font-size=\"11.5\" fill=\"#6600CC\" font-weight=\"700\">14 people</text>\\n  <rect class=\"b\" x=\"145.9\" y=\"184.6\" width=\"52\" height=\"30.4\" rx=\"4\" fill=\"#C4A3F5\" role=\"img\" aria-label=\"Apr: 411 commits by 13 people\"><title>Apr: 411 commits by 13 people</title></rect>\\n  <text x=\"171.9\" y=\"178.6\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"700\" fill=\"#08105E\">411</text>\\n  <text x=\"171.9\" y=\"234\" text-anchor=\"middle\" font-size=\"12\" fill=\"#66788A\">Apr</text>\\n  <text x=\"171.9\" y=\"252\" text-anchor=\"middle\" font-size=\"11.5\" fill=\"#6600CC\" font-weight=\"700\">13 people</text>\\n  <rect class=\"b\" x=\"227.1\" y=\"160.3\" width=\"52\" height=\"54.7\" rx=\"4\" fill=\"#C4A3F5\" role=\"img\" aria-label=\"May: 739 commits by 15 people\"><title>May: 739 commits by 15 people</title></rect>\\n  <text x=\"253.1\" y=\"154.3\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"700\" fill=\"#08105E\">739</text>\\n  <text x=\"253.1\" y=\"234\" text-anchor=\"middle\" font-size=\"12\" fill=\"#66788A\">May</text>\\n  <text x=\"253.1\" y=\"252\" text-anchor=\"middle\" font-size=\"11.5\" fill=\"#6600CC\" font-weight=\"700\">15 people</text>\\n  <rect class=\"b\" x=\"308.4\" y=\"167.8\" width=\"52\" height=\"47.2\" rx=\"4\" fill=\"#C4A3F5\" role=\"img\" aria-label=\"Jun: 638 commits by 18 people\"><title>Jun: 638 commits by 18 people</title></rect>\\n  <text x=\"334.4\" y=\"161.8\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"700\" fill=\"#08105E\">638</text>\\n  <text x=\"334.4\" y=\"234\" text-anchor=\"middle\" font-size=\"12\" fill=\"#66788A\">Jun</text>\\n  <text x=\"334.4\" y=\"252\" text-anchor=\"middle\" font-size=\"11.5\" fill=\"#6600CC\" font-weight=\"700\">18 people</text>\\n  <rect class=\"b\" x=\"389.6\" y=\"106.9\" width=\"52\" height=\"108.1\" rx=\"4\" fill=\"#8000FF\" role=\"img\" aria-label=\"Jul: 1,461 commits by 31 people\"><title>Jul: 1,461 commits by 31 people</title></rect>\\n  <text x=\"415.6\" y=\"100.9\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"700\" fill=\"#08105E\">1,461</text>\\n  <text x=\"415.6\" y=\"234\" text-anchor=\"middle\" font-size=\"12\" fill=\"#66788A\">Jul</text>\\n  <text x=\"415.6\" y=\"252\" text-anchor=\"middle\" font-size=\"11.5\" fill=\"#6600CC\" font-weight=\"700\">31 people</text>\\n  <rect class=\"b\" x=\"470.9\" y=\"96.8\" width=\"52\" height=\"118.2\" rx=\"4\" fill=\"#8000FF\" role=\"img\" aria-label=\"Aug: 1,597 commits by 34 people\"><title>Aug: 1,597 commits by 34 people</title></rect>\\n  <text x=\"496.9\" y=\"90.8\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"700\" fill=\"#08105E\">1,597</text>\\n  <text x=\"496.9\" y=\"234\" text-anchor=\"middle\" font-size=\"12\" fill=\"#66788A\">Aug</text>\\n  <text x=\"496.9\" y=\"252\" text-anchor=\"middle\" font-size=\"11.5\" fill=\"#6600CC\" font-weight=\"700\">34 people</text>\\n  <rect class=\"b\" x=\"552.1\" y=\"104.9\" width=\"52\" height=\"110.1\" rx=\"4\" fill=\"#8000FF\" role=\"img\" aria-label=\"Sep: 1,488 commits by 30 people\"><title>Sep: 1,488 commits by 30 people</title></rect>\\n  <text x=\"578.1\" y=\"98.9\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"700\" fill=\"#08105E\">1,488</text>\\n  <text x=\"578.1\" y=\"234\" text-anchor=\"middle\" font-size=\"12\" fill=\"#66788A\">Sep</text>\\n  <text x=\"578.1\" y=\"252\" text-anchor=\"middle\" font-size=\"11.5\" fill=\"#6600CC\" font-weight=\"700\">30 people</text>\\n  <rect class=\"b\" x=\"633.4\" y=\"43.5\" width=\"52\" height=\"171.5\" rx=\"4\" fill=\"#8000FF\" role=\"img\" aria-label=\"Oct: 2,317 commits by 39 people\"><title>Oct: 2,317 commits by 39 people</title></rect>\\n  <text x=\"659.4\" y=\"37.5\" text-anchor=\"middle\" font-size=\"12\" font-weight=\"700\" fill=\"#08105E\">2,317</text>\\n  <text x=\"659.4\" y=\"234\" text-anchor=\"middle\" font-size=\"12\" fill=\"#66788A\">Oct</text>\\n  <text x=\"659.4\" y=\"252\" text-anchor=\"middle\" font-size=\"11.5\" fill=\"#6600CC\" font-weight=\"700\">39 people</text>\\n</svg>\\n</div>\\n</figure>';const TITLES=[\"Mar: 127 commits by 14 people\",\"Apr: 411 commits by 13 people\",\"May: 739 commits by 15 people\",\"Jun: 638 commits by 18 people\",\"Jul: 1,461 commits by 31 people\",\"Aug: 1,597 commits by 34 people\",\"Sep: 1,488 commits by 30 people\",\"Oct: 2,317 commits by 39 people\"];/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 720\n */export default function CookCommitsChart(props){const ref=React.useRef(null);React.useEffect(()=>{const el=ref.current;if(!el)return;const cleanups=[];el.querySelectorAll(\"svg title\").forEach((t,i)=>{if(TITLES[i])t.textContent=TITLES[i];});const reduce=window.matchMedia&&window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;if(!reduce&&\"IntersectionObserver\"in window&&el.getBoundingClientRect().top>window.innerHeight*1.2){el.classList.add(\"js\");const io=new IntersectionObserver(entries=>{entries.forEach(e=>{if(!e.isIntersecting)return;e.target.classList.add(\"in\");io.unobserve(e.target);});},{threshold:0,rootMargin:\"0px 0px 20% 0px\"});el.querySelectorAll(\".reveal,.draw,.bars,.stack\").forEach(t=>io.observe(t));cleanups.push(()=>io.disconnect());}return()=>cleanups.forEach(f=>f());},[]);return /*#__PURE__*/_jsxs(\"div\",{ref:ref,className:\"acc-commits\",style:{width:\"100%\",...props.style},children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:CSS}}),/*#__PURE__*/_jsx(\"div\",{className:\"acc-inner\",dangerouslySetInnerHTML:{__html:HTML}})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CookCommitsChart\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"720\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CookCommitsChart.map"],"mappings":"A,8IAOG,SAAwBa,EAAiBC,EAAM,CAAC,IAAMC,EAAIf,EAAa,IAAI,EAAwtB,OAAttBC,MAAoB,CAAC,IAAMe,EAAGD,EAAI,QAAQ,GAAG,CAACC,EAAG,OAAO,IAAMC,EAAS,CAAC,EAAyL,GAAvLD,EAAG,iBAAiB,WAAW,CAAC,CAAC,SAASE,EAAEC,IAAI,CAAIC,EAAOD,KAAGD,EAAE,YAAYE,EAAOD,GAAG,CAAC,EAAmG,EAApFb,EAAO,YAAYA,EAAO,WAAW,kCAAkC,CAAC,CAAC,UAAoB,yBAAyBA,GAAQU,EAAG,sBAAsB,CAAC,CAAC,IAAIV,EAAO,YAAY,IAAI,CAACU,EAAG,UAAU,IAAI,IAAI,EAAE,IAAMK,EAAG,IAAI,qBAAqBC,GAAS,CAACA,EAAQ,QAAQ,GAAG,CAAK,EAAE,iBAAsB,EAAE,OAAO,UAAU,IAAI,IAAI,EAAED,EAAG,UAAU,EAAE,MAAM,EAAE,CAAC,CAAE,EAAE,CAAC,UAAU,EAAE,WAAW,iBAAiB,CAAC,EAAEL,EAAG,iBAAiB,4BAA4B,CAAC,CAAC,QAAQE,GAAGG,EAAG,QAAQH,CAAC,CAAC,EAAED,EAAS,SAASI,EAAG,WAAW,CAAC,CAAE,CAAC,UAAUJ,EAAS,QAAQM,GAAGA,EAAE,CAAC,CAAE,EAAE,CAAC,CAAC,EAAsBrB,gBAAM,MAAM,CAAKa,MAAI,UAAU,cAAc,MAAM,CAAC,MAAM,OAAO,GAAGD,EAAM,KAAK,EAAE,SAAS,CAAcX,gBAAK,QAAQ,CAAC,wBAAwB,CAAC,OAAOqB,CAAG,CAAC,CAAC,EAAerB,gBAAK,MAAM,CAAC,UAAU,YAAY,wBAAwB,CAAC,OAAOsB,CAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,C,sDAJt9BD,EAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+IAA4qGC,EAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAAupKL,EAAO,CAAC,gCAAgC,gCAAgC,gCAAgC,gCAAgC,kCAAkC,kCAAkC,kCAAkC,iCAAiC,EAKzqRM,EAAqB,CAACE,QAAU,CAACC,QAAU,CAACC,KAAO,iBAAiBC,KAAO,mBAAmBC,MAAQ,CAAC,EAAEC,YAAc,CAACC,qBAAuB,MAAMC,sBAAwB,IAAIC,4BAA8B,OAAOC,2BAA6B,kBAAkB,CAAC,EAAEC,mBAAqB,CAACR,KAAO,UAAU,CAAC,CAAC,C"}