{"version":3,"file":"StoryModule.dJbuVP4O.mjs","names":["React.useRef","React.useState","__exportAll","init_npm_react_18_3_1","window","_e","de","p","c","init_jsx_runtime","ce","init_ssg_sandbox_shims","addPropertyControls","useIsStaticRenderer","ControlType","init_framer_B6PCHH0A","StoryModule_exports","__FramerMetadata__","StoryModule","Count","ref","staticRender","shown","setShown","value","match","target","decimals","raf","done","observer","entries","start","frame","progress","num","items","data","style","mode","credit","quote","i","item","init_StoryModule","__esmMin","\"exports\"","\"default\"","\"type\"","\"name\"","\"slots\"","\"annotations\"","\"framerSupportedLayoutWidth\"","\"framerSupportedLayoutHeight\"","\"framerContractVersion\"","\"__FramerMetadata__\""],"sources":["https:/framerusercontent.com/modules/AYdP9AGQsWEjjPb0xM9g/th8o35YZgYUXfnXj9MZl/StoryModule.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";function Count({value}){const ref=React.useRef(null),staticRender=useIsStaticRenderer();const[shown,setShown]=React.useState(value);React.useEffect(()=>{setShown(value);if(staticRender||window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches)return;const match=value.match(/^([+−-]?)(\\d[\\d,]*(?:\\.\\d+)?)(.*)$/);if(!match)return;const target=Number(match[2].replace(/,/g,\"\")),decimals=(match[2].split(\".\")[1]||\"\").length;let raf=0,done=false;const observer=new IntersectionObserver(entries=>{if(!entries.some(e=>e.isIntersecting)||done)return;done=true;const start=performance.now();const frame=t=>{const progress=Math.min(1,(t-start)/900),num=target*(1-Math.pow(1-progress,3));setShown(progress===1?value:match[1]+num.toLocaleString(\"en-US\",{minimumFractionDigits:decimals,maximumFractionDigits:decimals})+match[3]);if(progress<1)raf=requestAnimationFrame(frame);};raf=requestAnimationFrame(frame);},{threshold:.4});if(ref.current)observer.observe(ref.current);return()=>{observer.disconnect();cancelAnimationFrame(raf);};},[value,staticRender]);return /*#__PURE__*/_jsx(\"span\",{ref:ref,\"aria-label\":value,children:/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",children:shown})});}/** @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto */export default function StoryModule({mode=\"stats\",data=\"\",quote=\"\",credit=\"\",style}){let items=[];try{items=JSON.parse(data.replace(/^gyrify:/,\"\"));}catch{}return /*#__PURE__*/_jsxs(\"div\",{className:\"g-story-module\",style:{...style,width:\"100%\",height:\"auto\",color:\"#502D35\",fontFamily:\"Geist,sans-serif\",boxSizing:\"border-box\",margin:\"24px 0\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`.g-story-module{container-type:inline-size}.g-story-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-top:1px solid rgba(80,45,53,.24);border-bottom:1px solid rgba(80,45,53,.24)}.g-story-stat{padding:28px 24px;border-right:1px solid rgba(80,45,53,.16)}.g-story-stat:last-child{border:0}.g-story-work-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.g-story-work{padding:24px;border:1px solid rgba(80,45,53,.16);border-radius:2px;background:rgba(197,181,244,.18)}@container(max-width:600px){.g-story-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.g-story-stat{border-bottom:1px solid rgba(80,45,53,.16)}.g-story-work-grid{grid-template-columns:1fr}.g-story-module blockquote{font-size:24px!important;padding:32px 12px!important}}`}),mode===\"quote\"?/*#__PURE__*/_jsxs(\"figure\",{style:{margin:0,borderTop:\"1px solid rgba(80,45,53,.2)\",borderBottom:\"1px solid rgba(80,45,53,.2)\",padding:\"36px 16px\",textAlign:\"center\"},children:[/*#__PURE__*/_jsx(\"figcaption\",{style:{font:\"400 11px/1.5 Geist Mono,monospace\",textTransform:\"uppercase\",marginBottom:20},children:credit}),/*#__PURE__*/_jsx(\"blockquote\",{style:{font:\"400 28px/1.35 Glegoo,serif\",letterSpacing:\"-.04em\",margin:0},children:quote})]}):mode===\"workstreams\"?/*#__PURE__*/_jsx(\"div\",{className:\"g-story-work-grid\",children:items.map((item,i)=>/*#__PURE__*/_jsxs(\"div\",{className:\"g-story-work\",children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:12,alignItems:\"center\",marginBottom:12},children:[/*#__PURE__*/_jsx(\"span\",{style:{font:\"400 11px Geist Mono,monospace\",width:28,height:28,borderRadius:30,background:\"#502D35\",color:\"#FFF8ED\",display:\"grid\",placeItems:\"center\"},children:i+1}),/*#__PURE__*/_jsx(\"h3\",{style:{font:\"500 18px/1.3 Geist,sans-serif\",margin:0,letterSpacing:\"-.03em\"},children:item.title})]}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:14,lineHeight:1.6,margin:\"0 0 18px\"},children:item.text}),/*#__PURE__*/_jsx(\"span\",{style:{font:\"400 11px Geist Mono,monospace\",textTransform:\"uppercase\",borderBottom:\"2px solid \"+[\"#FF6B50\",\"#8CCBFF\",\"#C5B5F4\",\"#FFD84D\"][i%4],paddingBottom:4},children:item.label||[\"Foundation\",\"Search\",\"Content\",\"Distribution\",\"Pipeline\",\"Video\"][i]})]},i))}):/*#__PURE__*/_jsx(\"div\",{className:\"g-story-stat-grid\",children:items.map((item,i)=>/*#__PURE__*/_jsxs(\"div\",{className:\"g-story-stat\",style:{background:mode===\"results\"?[\"#FFD84D\",\"#C5B5F4\",\"#8CCBFF\",\"#FFF8ED\"][i%4]:\"transparent\"},children:[item.label&&/*#__PURE__*/_jsx(\"div\",{style:{font:\"400 10px/1.5 Geist Mono,monospace\",textTransform:\"uppercase\",marginBottom:10},children:item.label}),/*#__PURE__*/_jsx(\"div\",{style:{font:\"500 \"+(mode===\"results\"?32:String(item.value||\"\").length>12?18:28)+\"px/1.25 Geist,sans-serif\",letterSpacing:\"-.04em\",marginBottom:8},children:/*#__PURE__*/_jsx(Count,{value:String(item.value||\"\")})}),/*#__PURE__*/_jsx(\"div\",{style:{fontSize:12,lineHeight:1.5,opacity:.85},children:item.text})]},i))})]});}addPropertyControls(StoryModule,{mode:{type:ControlType.Enum,options:[\"stats\",\"results\",\"workstreams\",\"quote\"],defaultValue:\"stats\"},data:{type:ControlType.String,title:\"Items JSON\",displayTextArea:true},quote:{type:ControlType.String,displayTextArea:true},credit:{type:ControlType.String}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StoryModule\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StoryModule.map"],"mappings":"A,yRAA6J,SAASmB,EAAM,CAAC,SAAO,CAAC,IAAMC,EAAIpB,EAAa,IAAI,EAAEqB,EAAaR,EAAoB,EAAO,CAACS,EAAMC,GAAUtB,EAAeuB,CAAK,EAA05B,OAAx5Bd,MAAoB,CAAiB,GAAhBa,EAASC,CAAK,EAAKH,GAAcjB,EAAO,WAAW,kCAAkC,CAAC,CAAC,QAAQ,OAAO,IAAMqB,EAAMD,EAAM,MAAM,oCAAoC,EAAE,GAAG,CAACC,EAAM,OAAO,IAAMC,EAAO,OAAOD,EAAM,EAAE,CAAC,QAAQ,KAAK,EAAE,CAAC,EAAEE,GAAUF,EAAM,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,GAAA,CAAI,OAAWG,EAAI,EAAEC,EAAK,GAAYC,EAAS,IAAI,qBAAqB,GAAS,CAAC,GAAG,CAACC,EAAQ,KAAK,GAAG,EAAE,cAAc,GAAGF,EAAK,OAAO,EAAK,GAAK,IAAMG,EAAM,YAAY,IAAI,EAAQC,EAAM,GAAG,CAAC,IAAMC,EAAS,KAAK,IAAI,GAAG,EAAEF,GAAO,GAAG,EAAEG,EAAIT,GAAQ,GAAW,EAAEQ,IAAS,GAAIX,EAASW,IAAW,EAAEV,EAAMC,EAAM,GAAGU,EAAI,eAAe,QAAQ,CAAC,sBAAsBR,EAAS,sBAAsBA,CAAQ,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