{"version":3,"file":"ReadCodeFig02_1.JOgokucQ.mjs","names":["__esmMin","init_jsx_runtime","c","p","addPropertyControls","init_framer_BL70qLPA","ReadCodeFig02","props","sans","sansFont","mono","monoFont","style","spaceAbove","spaceBelow","FIG_CSS","CSS","number","BODY","__FramerMetadata__","init_ReadCodeFig02_1","ControlType","\"exports\"","\"default\"","\"type\"","\"name\"","\"slots\"","\"annotations\"","\"framerSupportedLayoutHeight\"","\"framerIntrinsicWidth\"","\"framerSupportedLayoutWidth\"","\"framerContractVersion\"","\"__FramerMetadata__\""],"sources":["https:/framerusercontent.com/modules/oyWWIt3AzIYfhFMdq94p/x3GNYfjE6ElifsH9ieoQ/ReadCodeFig02_1.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * ReadCodeFig02: Fig. 02 of \"How to read code in the era of AI\" (rebuilt from the author's diagram in the blog's dark figure style).\n * Generated from the same source as the preview figure; static, no motion.\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 680\n */export default function ReadCodeFig02(props){const{number,sansFont,monoFont,spaceAbove,spaceBelow,style}=props;const sans=`\"${sansFont}\", Arial, sans-serif`;const mono=`\"${monoFont}\", ui-monospace, monospace`;return /*#__PURE__*/_jsx(\"div\",{style:{...style,boxSizing:\"border-box\",paddingTop:spaceAbove,paddingBottom:spaceBelow},children:/*#__PURE__*/_jsxs(\"figure\",{className:\"sfig dfx-r2\",style:{[\"--sans\"]:sans,[\"--mono\"]:mono},children:[/*#__PURE__*/_jsx(\"style\",{children:FIG_CSS+CSS}),/*#__PURE__*/_jsxs(\"div\",{className:\"sfig-head\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"sfig-kicker\",children:\"Reading order\"}),/*#__PURE__*/_jsxs(\"span\",{className:\"sfig-num\",children:[\"Fig. \",String(number).padStart(2,\"0\")]})]}),/*#__PURE__*/_jsx(\"div\",{className:\"sfig-title\",children:\"Six passes, ordered by consequence\"}),/*#__PURE__*/_jsx(\"div\",{dangerouslySetInnerHTML:{__html:BODY}})]})});}const FIG_CSS=`\n.sfig{box-sizing:border-box;width:100%;margin:0;padding:24px;border:1px solid rgba(255,255,255,.10);border-radius:4px;background:rgba(255,255,255,.025);font-family:var(--sans);font-size:15px;line-height:1.5;color:#C4CAD5 !important}\n.sfig *{box-sizing:border-box}\n.sfig-head{display:flex;justify-content:space-between;gap:16px}\n.sfig-kicker,.sfig-num{font:500 12px/1.2 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:#8E97A8 !important}\n.sfig-num{color:#8FB3D9 !important}\n.sfig-title{margin:8px 0 20px;font:600 18px/1.4 var(--sans);letter-spacing:-.01em;color:#F3F5F9 !important}\n@media (max-width:640px){.sfig{padding:16px}}\n`;const CSS='\\n.dfx-r2-node{display:flex;flex-direction:column;justify-content:center;gap:4px;padding:12px 14px;border:1px solid rgba(255,255,255,0.12);border-radius:3px;background:rgba(255,255,255,0.035);font:500 15px/1.3 \"Aileron\",Arial,sans-serif;color:#F3F5F9 !important;text-align:center}\\n.dfx-r2-node small{display:block;font:400 12px/1.35 \"IBM Plex Mono\",ui-monospace,monospace;color:#8E97A8 !important}\\n.dfx-r2-blue{border-color:rgba(143,179,217,0.55);background:rgba(143,179,217,0.10)}\\n.dfx-r2-warm{border-color:rgba(235,223,214,0.55);background:rgba(235,223,214,0.08)}\\n.dfx-r2-arr{display:flex;align-items:center;justify-content:center;color:#8E97A8 !important;font:400 18px/1 \"IBM Plex Mono\",ui-monospace,monospace}\\n.dfx-r2-arr::before{content:\"→\"}\\n.dfx-r2-cap{margin:20px 0 0;padding-top:14px;border-top:1px solid rgba(255,255,255,0.10);font:400 12px/1.5 \"IBM Plex Mono\",ui-monospace,monospace;color:#8E97A8 !important}\\n.dfx-r2-mono{font:400 13px/1.5 \"IBM Plex Mono\",ui-monospace,monospace;color:#C4CAD5 !important}\\n\\n.dfx-r2-flow{position:relative;display:grid;gap:14px}\\n.dfx-r2-flow::before{content:\"\";position:absolute;left:21px;top:20px;bottom:20px;width:1px;background:rgba(255,255,255,0.16)}\\n.dfx-r2-step{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:center}\\n.dfx-r2-dia{position:relative;z-index:1;width:30px;height:30px;margin-left:7px;transform:rotate(45deg);border:1.5px solid #EBDFD6;background:#151B26;display:grid;place-items:center}\\n.dfx-r2-dia span{transform:rotate(-45deg);font:600 13px/1 \"IBM Plex Mono\",ui-monospace,monospace;color:#EBDFD6 !important}\\n.dfx-r2-dot{position:relative;z-index:1;width:12px;height:12px;margin-left:16px;border-radius:50%;background:#8E97A8}\\n.dfx-r2-what{font:600 16px/1.3 \"Aileron\",Arial,sans-serif;color:#F3F5F9 !important}\\n.dfx-r2-what small{display:block;margin-top:4px;font:400 13px/1.45 \"IBM Plex Mono\",ui-monospace,monospace;color:#C4CAD5 !important}\\n.dfx-r2-what em{font-style:normal;color:#8E97A8 !important;font:500 12px/1 \"IBM Plex Mono\",ui-monospace,monospace;letter-spacing:.08em;text-transform:uppercase;margin-right:8px}\\n.dfx-r2-exit{display:grid;gap:6px}\\n.dfx-r2-exit span{font:400 12px/1.4 \"IBM Plex Mono\",ui-monospace,monospace;color:#8E97A8 !important}\\n.dfx-r2-exit span::before{content:\"if \";color:#6F7784 !important}\\n.dfx-r2-ok{grid-column:2;font:400 12px/1 \"IBM Plex Mono\",ui-monospace,monospace;color:#6F7784 !important;margin:-6px 0 -4px}\\n.dfx-r2-ok::before{content:\"↓ \"}\\n@media (max-width:640px){ .dfx-r2-step{grid-template-columns:44px minmax(0,1fr)} .dfx-r2-exit{grid-column:2} }';const BODY='<div class=\"dfx-r2-flow\" role=\"list\" aria-label=\"The six review passes, in order\"><div class=\"dfx-r2-step\"><span class=\"dfx-r2-dot\" aria-hidden=\"true\"></span><div class=\"dfx-r2-what\">New diff arrives</div></div>\\n<div class=\"dfx-r2-step\"><div class=\"dfx-r2-dia\" aria-hidden=\"true\"><span>0</span></div><div class=\"dfx-r2-what\"><em>Pass 0</em>blast radius</div><div class=\"dfx-r2-exit\"><span>destructive, money, authz, PII, migration</span><div class=\"dfx-r2-node dfx-r2-warm\" style=\"text-align:left\">Second reviewer required</div></div></div>\\n<div class=\"dfx-r2-step\"><span></span><div class=\"dfx-r2-ok\">none</div></div>\\n<div class=\"dfx-r2-step\"><div class=\"dfx-r2-dia\" aria-hidden=\"true\"><span>1</span></div><div class=\"dfx-r2-what\"><em>Pass 1</em>does it all exist?</div><div class=\"dfx-r2-exit\"><span>imports, APIs, columns, env vars unverified</span><div class=\"dfx-r2-node dfx-r2-warm\" style=\"text-align:left\">Block: verify against lockfile + schema</div></div></div>\\n<div class=\"dfx-r2-step\"><span></span><div class=\"dfx-r2-ok\">verified</div></div>\\n<div class=\"dfx-r2-step\"><div class=\"dfx-r2-dia\" aria-hidden=\"true\"><span>2</span></div><div class=\"dfx-r2-what\"><em>Pass 2</em>seams<small>slow? twice? unexpected shape?</small></div></div>\\n<div class=\"dfx-r2-step\"><div class=\"dfx-r2-dia\" aria-hidden=\"true\"><span>3</span></div><div class=\"dfx-r2-what\"><em>Pass 3</em>error paths</div><div class=\"dfx-r2-exit\"><span>swallowed catch, retry, silent default</span><div class=\"dfx-r2-node dfx-r2-warm\" style=\"text-align:left\">Block: verify against lockfile + schema</div></div></div>\\n<div class=\"dfx-r2-step\"><span></span><div class=\"dfx-r2-ok\">clean</div></div>\\n<div class=\"dfx-r2-step\"><div class=\"dfx-r2-dia\" aria-hidden=\"true\"><span>4</span></div><div class=\"dfx-r2-what\"><em>Pass 4</em>invariants<small>write 3 sentences first, then find the line that enforces each</small></div></div>\\n<div class=\"dfx-r2-step\"><div class=\"dfx-r2-dia\" aria-hidden=\"true\"><span>5</span></div><div class=\"dfx-r2-what\"><em>Pass 5</em>tests<small>break the code on purpose. does the test go red?</small></div></div>\\n<div class=\"dfx-r2-step\"><span class=\"dfx-r2-dot\" style=\"background:#8FB3D9\" aria-hidden=\"true\"></span><div class=\"dfx-r2-node dfx-r2-blue\" style=\"text-align:left\">Approve, and say what you did not read</div></div></div>';ReadCodeFig02.defaultProps={number:2,sansFont:\"Aileron\",monoFont:\"IBM Plex Mono\",spaceAbove:40,spaceBelow:40};addPropertyControls(ReadCodeFig02,{number:{type:ControlType.Number,title:\"Fig. number\",min:1,max:20,step:1},spaceAbove:{type:ControlType.Number,title:\"Space above\",min:0,max:160,unit:\"px\"},spaceBelow:{type:ControlType.Number,title:\"Space below\",min:0,max:160,unit:\"px\"},sansFont:{type:ControlType.String,title:\"Sans font\"},monoFont:{type:ControlType.String,title:\"Mono font\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ReadCodeFig02\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"680\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ReadCodeFig02_1.map"],"mappings":"A,8JAOG,SAAwBM,EAAc,EAAM,CAAC,GAAK,CAAC,SAAO,WAAS,WAAS,aAAW,aAAW,SAAOC,EAAYC,EAAK,IAAIC,EAAS,sBAA4BC,EAAK,IAAIC,EAAS,4BAA4B,MAAoB,gBAAK,MAAM,CAAC,MAAM,CAAC,GAAGC,EAAM,UAAU,aAAa,WAAWC,EAAW,cAAcC,CAAU,EAAE,SAAsB,gBAAM,SAAS,CAAC,UAAU,cAAc,MAAM,CAAE,SAAUN,EAAM,SAAUE,CAAI,EAAE,SAAS,CAAc,gBAAK,QAAQ,CAAC,SAASK,EAAQC,CAAG,CAAC,EAAe,gBAAM,MAAM,CAAC,UAAU,YAAY,SAAS,CAAc,gBAAK,OAAO,CAAC,UAAU,cAAc,SAAS,eAAe,CAAC,EAAe,gBAAM,OAAO,CAAC,UAAU,WAAW,SAAS,CAAC,QAAQ,OAAOC,C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