{"version":3,"file":"DiffusionFig01.C5sacRFm.mjs","names":[],"sources":["https:/framerusercontent.com/modules/vqPu1ACFXX1SEnivqZGL/tWEQIiS2THneEjdvIAUY/DiffusionFig01.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * DiffusionFig01: Fig. 01 of \"Is It Diffusion?\" (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 DiffusionFig01(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-f1\",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:\"Token layout\"}),/*#__PURE__*/_jsxs(\"span\",{className:\"sfig-num\",children:[\"Fig. \",String(number).padStart(2,\"0\")]})]}),/*#__PURE__*/_jsx(\"div\",{className:\"sfig-title\",children:\"One extra token at the end of every row\"}),/*#__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-f1-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,220px);gap:28px;align-items:center}\\n.dfx-f1-scale{display:grid;grid-template-columns:44px repeat(7,minmax(0,1fr));gap:5px;margin-bottom:6px}\\n.dfx-f1-scale span:nth-child(2){position:relative;height:16px;border:1.5px solid #8E97A8;border-bottom:0;border-radius:2px 2px 0 0;margin-top:14px}\\n.dfx-f1-scale span:nth-child(2)::before{content:\"16 px\";position:absolute;left:50%;bottom:calc(100% + 4px);transform:translateX(-50%);white-space:nowrap;font:400 12px/1 \"IBM Plex Mono\",ui-monospace,monospace;color:#B9C0CC !important}\\n.dfx-f1-grid{display:grid;grid-template-columns:44px repeat(7,minmax(0,1fr));gap:5px;align-items:center}\\n.dfx-f1-rl{font:400 12px/1 \"IBM Plex Mono\",ui-monospace,monospace;color:#8E97A8 !important;text-align:right;padding-right:8px;white-space:nowrap}\\n.dfx-f1-c{aspect-ratio:1;display:grid;place-items:center;border:1px solid rgba(255,255,255,0.10);background:rgba(255,255,255,0.04);border-radius:2px;font:400 12px/1 \"IBM Plex Mono\",ui-monospace,monospace;color:#8E97A8 !important}\\n.dfx-f1-eor{border:1.5px dashed #8FB3D9;background:rgba(143,179,217,0.10);color:#8FB3D9 !important;font:600 15px/1 \"Aileron\",Arial,sans-serif}\\n.dfx-f1-math{display:flex;flex-direction:column;gap:10px}\\n.dfx-f1-eq{margin:0;font:600 17px/1.3 \"Aileron\",Arial,sans-serif;color:#F3F5F9 !important}\\n.dfx-f1-eq span{color:#8FB3D9 !important}\\n.dfx-f1-tot{margin:0;font:400 15px/1.3 \"IBM Plex Mono\",ui-monospace,monospace;color:#F3F5F9 !important;padding-bottom:14px;border-bottom:1px solid rgba(255,255,255,0.10)}\\n.dfx-f1-note{margin:0;font:400 14px/1.5 \"Aileron\",Arial,sans-serif;color:#B9C0CC !important}\\n.dfx-f1-foot{margin:20px 0 0;padding-top:14px;border-top:1px solid rgba(255,255,255,0.10);font:400 12px/1.4 \"IBM Plex Mono\",ui-monospace,monospace;color:#8E97A8 !important}\\n@media (max-width:640px){.dfx-f1-wrap{grid-template-columns:1fr;gap:20px}.dfx-f1-scale,.dfx-f1-grid{grid-template-columns:38px repeat(7,minmax(0,1fr));gap:3px}.dfx-f1-rl{padding-right:4px;font-size:11px}.dfx-f1-c{font-size:11px}}\\n';const BODY='<div class=\"dfx-f1-wrap\">\\n  <div role=\"img\" aria-label=\"A grid of 4 rows and 6 columns numbered 1 to 24, plus one end-of-row token after each row: 28 tokens.\">\\n    <div class=\"dfx-f1-scale\" aria-hidden=\"true\"><span></span><span></span></div>\\n    <div class=\"dfx-f1-grid\" aria-hidden=\"true\"><span class=\"dfx-f1-rl\">row 1</span><span class=\"dfx-f1-c\">1</span><span class=\"dfx-f1-c\">2</span><span class=\"dfx-f1-c\">3</span><span class=\"dfx-f1-c\">4</span><span class=\"dfx-f1-c\">5</span><span class=\"dfx-f1-c\">6</span><span class=\"dfx-f1-c dfx-f1-eor\" title=\"end of row\">\\xb6</span><span class=\"dfx-f1-rl\"></span><span class=\"dfx-f1-c\">7</span><span class=\"dfx-f1-c\">8</span><span class=\"dfx-f1-c\">9</span><span class=\"dfx-f1-c\">10</span><span class=\"dfx-f1-c\">11</span><span class=\"dfx-f1-c\">12</span><span class=\"dfx-f1-c dfx-f1-eor\" title=\"end of row\">\\xb6</span><span class=\"dfx-f1-rl\"></span><span class=\"dfx-f1-c\">13</span><span class=\"dfx-f1-c\">14</span><span class=\"dfx-f1-c\">15</span><span class=\"dfx-f1-c\">16</span><span class=\"dfx-f1-c\">17</span><span class=\"dfx-f1-c\">18</span><span class=\"dfx-f1-c dfx-f1-eor\" title=\"end of row\">\\xb6</span><span class=\"dfx-f1-rl\">row 4</span><span class=\"dfx-f1-c\">19</span><span class=\"dfx-f1-c\">20</span><span class=\"dfx-f1-c\">21</span><span class=\"dfx-f1-c\">22</span><span class=\"dfx-f1-c\">23</span><span class=\"dfx-f1-c\">24</span><span class=\"dfx-f1-c dfx-f1-eor\" title=\"end of row\">\\xb6</span></div>\\n  </div>\\n  <div class=\"dfx-f1-math\">\\n    <div class=\"dfx-f1-eq\">4 rows \\xd7 (6 cols <span>+ 1</span>)</div>\\n    <div class=\"dfx-f1-tot\">= 28 tokens</div>\\n    <div class=\"dfx-f1-note\">not 24. the overhead scales with rows, not with area — so it is one token per row, at the end of the row.</div>\\n  </div>\\n</div>\\n<div class=\"dfx-f1-foot\">scan order: left to right, top to bottom</div>';DiffusionFig01.defaultProps={number:1,sansFont:\"Aileron\",monoFont:\"IBM Plex Mono\",spaceAbove:40,spaceBelow:40};addPropertyControls(DiffusionFig01,{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\":\"DiffusionFig01\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"680\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DiffusionFig01.map"],"mappings":"8JAOG,SAAwB,EAAe,EAAM,CAAC,GAAK,CAAC,SAAO,WAAS,WAAS,aAAW,aAAW,SAAO,EAAY,EAAK,IAAI,EAAS,sBAA4B,EAAK,IAAI,EAAS,4BAA4B,OAAoB,EAAK,MAAM,C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