{"version":3,"file":"InfoKit.W783d8PD.mjs","names":["React.useState","__esmMin","init_ssg_sandbox_shims","_e","init_jsx_runtime","ce","init_npm_react_18_3_1","window","useInView","useReducedMotion","init_framer_motion_DhsWWWsN","RenderTarget","init_framer_CaDWdxiz","useClock","still","inView","ref","frozen","t","setT","cycle","setCycle","done","cycles","raf","last","local","c","tick","now","duration","payoffAt","cubicAt","u","s","p0","i","p1","p2","p3","bez","ease","k","lerp","ICONS","init_InfoKit","x","lo","hi","x1","x2","y1","y2","fn","t0","t1","a","b","p","\"salesforce\"","\"hex\"","\"path\"","\"zendesk\"","\"whatsapp\"","\"messenger\"","\"twilio\"","\"gmail\""],"sources":["https:/framerusercontent.com/modules/XkjfJXRsnKjsrw6KmYJO/xIXq1Ucx4Iq8TiLxTnWr/InfoKit.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{RenderTarget}from\"framer\";import{useInView,useReducedMotion}from\"framer-motion\";/*\n * InfoKit: shared kit for the Info* infographic templates (Design Library/Code).\n * Brand defaults are Ciptex (brand.md, 28 Oct 2026); swap C for another brand.\n * Every graphic is a pure function of one clock `t` (ms into the cycle), so a frame can be\n * reviewed exactly in the preview harness with ?t=<ms>, and the canvas and reduced motion\n * simply render the payoff frame.\n * Not a component: other files import it with `import { ... } from \"./InfoKit.tsx\"`.\n */export const C={bg:\"#FFFFFF\",alt:\"#F8F8F8\",surface:\"#F2F0EE\",border:\"#EBE7E3\",strong:\"#D6D1CC\",bracket:\"#B9B5B1\",ink:\"#1C1817\",secondary:\"#4F4B48\",muted:\"#7A746F\",caption:\"#B3AEA9\",live:\"#1868DB\",liveTint:\"#E8F0FC\",live700:\"#1453B0\",success:\"#2E9E3E\",successTint:\"#E7F5E5\",ai:\"#F57210\",aiTint:\"#FEF0E6\",aiText:\"#B4520A\",urgent:\"#E9573F\",urgentTint:\"#FFECE8\",navy:\"#0A0A0B\",navySurface:\"#18181A\",navyBorder:\"#222225\",navyText:\"#F3F1EE\",navyMuted:\"#9C9A97\",spectrum:[\"#FF715A\",\"#FFD04D\",\"#00AF70\",\"#52ADFF\"]};export const FONT=`\"Inter\", \"Inter Placeholder\", system-ui, sans-serif`;export const FONT_DISPLAY=`\"Inter Display\", \"Inter\", system-ui, sans-serif`;// Easing by behaviour (brand.md): enter, travel, exit.\nconst bez=(x1,y1,x2,y2)=>x=>{if(x<=0)return 0;if(x>=1)return 1;let lo=0,hi=1,s=x;for(let i=0;i<24;i++){s=(lo+hi)/2;const bx=3*(1-s)*(1-s)*s*x1+3*(1-s)*s*s*x2+s*s*s;if(bx<x)lo=s;else hi=s;}return 3*(1-s)*(1-s)*s*y1+3*(1-s)*s*s*y2+s*s*s;};export const ease={enter:bez(.16,1,.3,1),travel:bez(.65,0,.35,1),exit:bez(.55,0,.75,.3),linear:x=>Math.max(0,Math.min(1,x))};/** Reading time for a label: 1.5s plus 0.3s per word (web-animation-design, Reading time). */export const holdFor=text=>1500+300*text.trim().split(/\\s+/).length;/** Progress 0..1 of a beat from t0 to t1 (ms), eased. */export const k=(t,t0,t1,fn=ease.enter)=>fn((t-t0)/Math.max(1,t1-t0));export const lerp=(a,b,p)=>a+(b-a)*p;export const mix=(a,b,p)=>({x:lerp(a.x,b.x,p),y:lerp(a.y,b.y,p),w:lerp(a.w,b.w,p),h:lerp(a.h,b.h,p)});/** Hand-merged defaults, so the component survives React 19 dropping defaultProps. */export function withDefaults(defaults,incoming){const out={...defaults};for(const key in incoming)if(incoming[key]!==undefined)out[key]=incoming[key];return out;}/** Width of the component's own box, for picking the wide or tall layout. */export function useWidth(ref,initial=1120){const[w,setW]=React.useState(initial);React.useLayoutEffect(()=>{const el=ref.current;if(!el)return;const set=v=>v>1&&setW(Math.round(v));set(el.offsetWidth);if(typeof ResizeObserver===\"undefined\")return;const ro=new ResizeObserver(([e])=>set(e.contentRect.width));ro.observe(el);return()=>ro.disconnect();},[]);return w;}/**\n * The clock. Runs only while in view, for `cycles` cycles of `duration` ms, then rests on\n * `payoffAt` in the last cycle. Canvas and reduced motion get the payoff frame.\n * The harness can freeze it with window.__V3_T.\n */export function useClock(ref,duration,cycles,payoffAt){const reduce=useReducedMotion();const still=reduce||RenderTarget.current()===RenderTarget.canvas;const inView=useInView(ref,{amount:.35});const frozen=typeof window!==\"undefined\"?window.__V3_T:undefined;const[t,setT]=React.useState(0);const[cycle,setCycle]=React.useState(0);const done=cycle>=cycles;React.useEffect(()=>{if(still||frozen!==undefined||!inView||done)return;let raf=0;let last=performance.now();let local=t;let c=cycle;const tick=now=>{local+=Math.min(64,now-last);last=now;if(local>=duration){c+=1;local-=duration;if(c>=cycles){setCycle(c);setT(payoffAt);return;}setCycle(c);}setT(local);raf=requestAnimationFrame(tick);};raf=requestAnimationFrame(tick);return()=>cancelAnimationFrame(raf);// eslint-disable-next-line react-hooks/exhaustive-deps\n},[still,inView,done,frozen]);if(frozen!==undefined)return{t:frozen,still:false,cycle:0};if(still)return{t:payoffAt,still:true,cycle};return{t,still:false,cycle};}/**\n * Crop marks drawn in SVG user space: the signature acting. Pass the rect they frame; to\n * close in on a payoff, pass mix(stageRect, focusRect, p).\n */export function CropMarks({r,size=10,gap=6,color=C.bracket,width=1.5,opacity=1}){const x0=r.x-gap,y0=r.y-gap,x1=r.x+r.w+gap,y1=r.y+r.h+gap;const d=[`M${x0} ${y0+size}V${y0}H${x0+size}`,`M${x1-size} ${y0}H${x1}V${y0+size}`,`M${x1} ${y1-size}V${y1}H${x1-size}`,`M${x0+size} ${y1}H${x0}V${y1-size}`].join(\"\");return /*#__PURE__*/_jsx(\"path\",{d:d,fill:\"none\",stroke:color,strokeWidth:width,strokeLinecap:\"square\",opacity:opacity});}/** Root style shared by every graphic. */export const rootStyle=style=>({position:\"relative\",width:\"100%\",height:\"100%\",fontFamily:FONT,fontFeatureSettings:'\"tnum\" 1, \"cv11\" 1',...style});/** Point along a cubic bezier, for pulses travelling a connector. */export function cubicAt(p0,p1,p2,p3,s){const u=1-s;return[0,1].map(i=>u*u*u*p0[i]+3*u*u*s*p1[i]+3*u*s*s*p2[i]+s*s*s*p3[i]);}/** Approximate length of a cubic, for pixel dashes (Chrome ignores pathLength on some builds). */export function cubicLength(p0,p1,p2,p3){let len=0;let prev=p0;for(let i=1;i<=32;i++){const p=cubicAt(p0,p1,p2,p3,i/32);len+=Math.hypot(p[0]-prev[0],p[1]-prev[1]);prev=p;}return len;}/** Small brand marks (Simple Icons paths, 24 x 24) for real third-party logos. */export const ICONS={\"salesforce\":{\"hex\":\"#00A1E0\",\"path\":\"M10.006 5.415a4.195 4.195 0 013.045-1.306c1.56 0 2.954.9 3.69 2.205.63-.3 1.35-.45 2.1-.45 2.85 0 5.159 2.34 5.159 5.22s-2.31 5.22-5.176 5.22c-.345 0-.69-.044-1.02-.104a3.75 3.75 0 01-3.3 1.95c-.6 0-1.155-.15-1.65-.375A4.314 4.314 0 018.88 20.4a4.302 4.302 0 01-4.05-2.82c-.27.062-.54.076-.825.076-2.204 0-4.005-1.8-4.005-4.05 0-1.5.811-2.805 2.01-3.51-.255-.57-.39-1.2-.39-1.846 0-2.58 2.1-4.65 4.65-4.65 1.53 0 2.85.705 3.72 1.8\"},\"zendesk\":{\"hex\":\"#03363D\",\"path\":\"M12.914 2.904V16.29L24 2.905H12.914zM0 2.906C0 5.966 2.483 8.45 5.543 8.45s5.542-2.484 5.543-5.544H0zm11.086 4.807L0 21.096h11.086V7.713zm7.37 7.84c-3.063 0-5.542 2.48-5.542 5.543H24c0-3.06-2.48-5.543-5.543-5.543z\"},\"whatsapp\":{\"hex\":\"#25D366\",\"path\":\"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z\"},\"messenger\":{\"hex\":\"#00B2FF\",\"path\":\"M.001 11.639C.001 4.949 5.241 0 12.001 0S24 4.95 24 11.639c0 6.689-5.24 11.638-12 11.638-1.21 0-2.38-.16-3.47-.46a.96.96 0 00-.64.05l-2.39 1.05a.96.96 0 01-1.35-.85l-.07-2.14a.97.97 0 00-.32-.68A11.39 11.389 0 01.002 11.64zm8.32-2.19l-3.52 5.6c-.35.53.32 1.139.82.75l3.79-2.87c.26-.2.6-.2.87 0l2.8 2.1c.84.63 2.04.4 2.6-.48l3.52-5.6c.35-.53-.32-1.13-.82-.75l-3.79 2.87c-.25.2-.6.2-.86 0l-2.8-2.1a1.8 1.8 0 00-2.61.48z\"},\"twilio\":{\"hex\":\"#F22F46\",\"path\":\"M12 0C5.381-.008.008 5.352 0 11.971V12c0 6.64 5.359 12 12 12 6.64 0 12-5.36 12-12 0-6.641-5.36-12-12-12zm0 20.801c-4.846.015-8.786-3.904-8.801-8.75V12c-.014-4.846 3.904-8.786 8.75-8.801H12c4.847-.014 8.786 3.904 8.801 8.75V12c.015 4.847-3.904 8.786-8.75 8.801H12zm5.44-11.76c0 1.359-1.12 2.479-2.481 2.479-1.366-.007-2.472-1.113-2.479-2.479 0-1.361 1.12-2.481 2.479-2.481 1.361 0 2.481 1.12 2.481 2.481zm0 5.919c0 1.36-1.12 2.48-2.481 2.48-1.367-.008-2.473-1.114-2.479-2.48 0-1.359 1.12-2.479 2.479-2.479 1.361-.001 2.481 1.12 2.481 2.479zm-5.919 0c0 1.36-1.12 2.48-2.479 2.48-1.368-.007-2.475-1.113-2.481-2.48 0-1.359 1.12-2.479 2.481-2.479 1.358-.001 2.479 1.12 2.479 2.479zm0-5.919c0 1.359-1.12 2.479-2.479 2.479-1.367-.007-2.475-1.112-2.481-2.479 0-1.361 1.12-2.481 2.481-2.481 1.358 0 2.479 1.12 2.479 2.481z\"},\"gmail\":{\"hex\":\"#EA4335\",\"path\":\"M24 5.457v13.909c0 .904-.732 1.636-1.636 1.636h-3.819V11.73L12 16.64l-6.545-4.91v9.273H1.636A1.636 1.636 0 0 1 0 19.366V5.457c0-2.023 2.309-3.178 3.927-1.964L5.455 4.64 12 9.548l6.545-4.91 1.528-1.145C21.69 2.28 24 3.434 24 5.457z\"}};\nexport const __FramerMetadata__ = {\"exports\":{\"k\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useClock\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"cubicLength\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"holdFor\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"lerp\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withDefaults\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Rect\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FONT\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"C\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FONT_DISPLAY\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"mix\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"rootStyle\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ease\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CropMarks\":{\"type\":\"reactComponent\",\"name\":\"CropMarks\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"useWidth\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"cubicAt\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ICONS\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./InfoKit.map"],"mappings":"A,0OAYG,SAAgBa,EAAS,EAAI,EAAS,EAAO,EAAS,CAAiC,IAAMC,EAAzBL,EAAoC,GAAGE,EAAa,QAAQ,IAAIA,EAAa,OAAaI,EAAOP,EAAUQ,EAAI,CAAC,OAAO,GAAG,CAAC,EAAQC,EAAcV,IAAS,OAA0B,IAAA,GAAdA,EAAO,OAAsB,CAACW,EAAEC,GAAMnB,EAAe,CAAC,EAAO,CAACoB,EAAMC,GAAUrB,EAAe,CAAC,EAAQsB,EAAKF,GAAOG,EACzN,OADgOlB,MAAoB,CAAC,GAAGS,GAAOG,IAAS,IAAA,IAAW,CAACF,GAAQO,EAAK,OAAO,IAAIE,EAAI,EAAMC,EAAK,YAAY,IAAI,EAAMC,EAAMR,EAAMS,EAAEP,EAAYQ,EAAK,GAAK,CAAuC,GAAtC,GAAO,KAAK,IAAI,GAAGC,EAAIJ,CAAI,EAAE,EAAKI,EAAOH,GAAOI,EAAS,CAAsB,GAArB,GAAG,EAAE,GAAOA,EAAYH,GAAGJ,EAAO,CAACF,EAASM,CAAC,EAAER,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