{"version":3,"file":"PayKit.DR2MEUjU.mjs","names":["React.useState","c","__esmMin","init_ssg_sandbox_shims","_e","p","c","init_jsx_runtime","ce","init_npm_react_18_3_1","window","RenderTarget","init_framer_DDfsYcI0","useLoop","frozen","t","setT","rest","ref","raf","t0","on","tick","now","offset","cycle","io","INK","BODY","MUTED","BLUE","GREEN","GREEN_TEXT","CORAL","RULE","FONT","DISPLAY","MONO","clamp01","ramp","mmss","unit","Check","Lock","init_PayKit","v","t1","s","n","w","c$1","c$2"],"sources":["https:/framerusercontent.com/modules/JDvqOn8NZXGJwNB3wd3x/BrA3o4x6Djktj0r9Ioe8/PayKit.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{RenderTarget}from\"framer\";/*\n * PayKit (11 Nov 2026): shared bits for the Pay revamp round 3 graphics (PayDashboard, PayRisk, PayConnect,\n * PayOutcomes). One looping clock that runs only while the graphic is on screen, rests on a finished frame on\n * the canvas and under reduced motion, and freezes at window.__V3_T in the preview harness. Colours follow\n * PaySteps: blue for live states, green only for Authorised, coral for risk.\n */export const INK=\"#1C1817\",BODY=\"#4F4B48\",MUTED=\"#7A746F\",BLUE=\"#1868DB\",SKY=\"#52ADFF\",TINT=\"#E8F0FC\";export const GREEN=\"#00AF70\",GREEN_TEXT=\"#1F7F2E\",GREEN_TINT=\"#E7F5E5\",CORAL=\"#FF715A\",CORAL_TINT=\"#FFEDE8\";export const RULE=\"rgba(28,24,23,0.08)\",SURFACE=\"#F8F8F8\";export const FONT='\"Inter\", system-ui, sans-serif',DISPLAY='\"Inter Display\", \"Inter\", system-ui, sans-serif',MONO=\"ui-monospace, SFMono-Regular, Menlo, monospace\";export const clamp01=v=>Math.max(0,Math.min(1,v));export const ramp=(t,t0,t1)=>{const p=clamp01((t-t0)/Math.max(1,t1-t0));return 1-Math.pow(1-p,3);};export const money=v=>\"\\xa3\"+v.toLocaleString(\"en-GB\",{minimumFractionDigits:2,maximumFractionDigits:2});export const mmss=s=>`${String(Math.floor(s/60)).padStart(2,\"0\")}:${String(Math.floor(s%60)).padStart(2,\"0\")}`;/** px in a design space `w` wide, as a share of the container width (the root needs containerType inline-size) */export const unit=w=>n=>`${(n/w*100).toFixed(3)}cqw`;/** Looping clock: runs while in view, `rest` on the canvas or with reduced motion, frozen by window.__V3_T. */export function useLoop(ref,cycle,rest,offset=0){const frozen=typeof window!==\"undefined\"?window.__V3_T:undefined;const[t,setT]=React.useState(frozen??rest);React.useEffect(()=>{if(frozen!==undefined){setT(frozen);return;}const still=RenderTarget.current()===RenderTarget.canvas||typeof matchMedia!==\"undefined\"&&matchMedia(\"(prefers-reduced-motion: reduce)\").matches;if(still||!ref.current){setT(rest);return;}let raf=0,t0=0,on=false;const tick=now=>{if(!t0)t0=now-offset;setT((now-t0)%cycle);raf=requestAnimationFrame(tick);};const io=new IntersectionObserver(([e])=>{if(e.isIntersecting&&!on){on=true;t0=0;raf=requestAnimationFrame(tick);}if(!e.isIntersecting&&on){on=false;cancelAnimationFrame(raf);}},{threshold:.25});io.observe(ref.current);return()=>{io.disconnect();cancelAnimationFrame(raf);};},[cycle,rest,offset,frozen]);return t;}export const Check=({c=\"#fff\",s=\"12px\"})=>/*#__PURE__*/_jsx(\"svg\",{width:s,height:s,viewBox:\"0 0 16 16\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M3.5 8.4l3 3 6-6.4\",fill:\"none\",stroke:c,strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});export const Lock=({c=BLUE,s=\"16px\"})=>/*#__PURE__*/_jsxs(\"svg\",{viewBox:\"0 0 24 24\",width:s,height:s,fill:\"none\",stroke:c,strokeWidth:\"1.8\",strokeLinecap:\"round\",strokeLinejoin:\"round\",\"aria-hidden\":\"true\",children:[/*#__PURE__*/_jsx(\"rect\",{x:\"5\",y:\"10.5\",width:\"14\",height:\"10\",rx:\"2.5\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M8 10.5V8a4 4 0 0 1 8 0v2.5\"})]});\nexport const __FramerMetadata__ = {\"exports\":{\"MONO\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FONT\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"DISPLAY\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Lock\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"mmss\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"TINT\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"GREEN_TINT\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SURFACE\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"RULE\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"MUTED\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ramp\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"INK\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SKY\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useLoop\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CORAL\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"BLUE\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"GREEN_TEXT\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"GREEN\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"CORAL_TINT\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"Check\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"money\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"unit\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"BODY\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"clamp01\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PayKit.map"],"mappings":"A,gMAKqjC,SAAgBa,EAAQ,EAAI,EAAM,EAAK,EAAO,EAAE,CAAC,IAAMC,EAAcJ,IAAS,OAA0B,IAAA,GAAdA,EAAO,OAAsB,CAACK,EAAEC,GAAMhB,EAAec,GAAQG,CAAI,EAAqqB,OAAnqBT,MAAoB,CAAC,GAAGM,IAAS,IAAA,GAAU,CAACE,EAAKF,CAAM,EAAE,MAAO,CAAmJ,GAAtIH,EAAa,QAAQ,IAAIA,EAAa,QAAQ,OAAO,WAAa,KAAa,WAAW,kCAAkC,CAAC,CAAC,SAAkB,CAACO,EAAI,QAAQ,CAACF,EAAKC,CAAI,EAAE,MAAO,CAAC,IAAIE,EAAI,EAAEC,EAAG,EAAEC,EAAG,GAAYC,EAAK,GAAK,CAAC,AAAOF,IAAGG,EAAIC,EAAOR,GAAMO,EAAIH,GAAIK,CAAK,EAAE,EAAI,sBAAsBH,CAAI,CAAE,EAAQI,EAAG,IAAI,sBAAsB,CAAC,KAAK,CAAI,EAAE,gBAAgB,CAACL,IAAI,EAAG,GAAK,EAAG,EAAE,EAAI,sBAAsBC,CAAI,GAAM,CAAC,EAAE,gBAAgBD,IAAI,EAAG,GAAM,qBAAqBF,CAAG,EAAG,EAAE,CAAC,UAAU,GAAG,CAAC,EAA0B,OAAxBO,EAAG,QAAQR,EAAI,OAAO,MAAY,CAACQ,EAAG,WAAW,EAAE,qBAAqBP,CAAG,CAAE,CAAE,EAAE,CAACM,EAAMR,EAAKO,EAAOV,CAAM,CAAC,EAASC,CAAE,C,oFAA92D,EAAI,UAAU,EAAK,UAAU,EAAM,UAAU,EAAK,UAAoD,EAAM,UAAU,EAAW,U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