{"version":3,"file":"PayKit.DBCHpXgd.mjs","names":["React.useState","React.useEffect","c","_jsx","_jsxs","__esmMin","init_ssg_sandbox_shims","_e","p","c","init_jsx_runtime","ce","init_npm_react_18_3_1","window","RenderTarget","init_framer_ChujFWHC","useLoop","ref","cycle","rest","offset","frozen","t","setT","raf","t0","on","tick","now","io","INK","BODY","MUTED","BLUE","GREEN","GREEN_TEXT","CORAL","RULE","FONT","DISPLAY","MONO","clamp01","ramp","mmss","unit","Check","Lock","init_PayKit","v","t1","s","w","n","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,SAAgBgB,EAAQC,EAAIC,EAAMC,EAAKC,EAAO,EAAE,CAAC,IAAMC,EAAcR,IAAS,OAA0B,IAAA,GAAdA,EAAO,OAAsB,CAACS,EAAEC,GAAMvB,EAAeqB,GAAQF,CAAI,EAAqqB,OAAnqBlB,MAAoB,CAAC,GAAGoB,IAAS,IAAA,GAAU,CAACE,EAAKF,CAAM,EAAE,MAAO,CAAmJ,GAAtIP,EAAa,QAAQ,IAAIA,EAAa,QAAQ,OAAO,WAAa,KAAa,WAAW,kCAAkC,CAAC,CAAC,SAAkB,CAACG,EAAI,QAAQ,CAACM,EAAKJ,CAAI,EAAE,MAAO,CAAC,IAAIK,EAAI,EAAEC,EAAG,EAAEC,EAAG,GAAYC,EAAKC,GAAK,CAAQH,IAAGG,EAAIR,EAAOG,GAAMK,EAAIH,GAAIP,CAAK,EAAEM,EAAI,sBAAsBG,CAAI,CAAE,EAAQE,EAAG,IAAI,sBAAsB,CAAC,KAAK,CAAI,EAAE,gBAAgB,CAACH,IAAIA,EAAG,GAAKD,EAAG,EAAED,EAAI,sBAAsBG,CAAI,GAAM,CAAC,EAAE,gBAAgBD,IAAIA,EAAG,GAAM,qBAAqBF,CAAG,EAAG,EAAE,CAAC,UAAU,GAAG,CAAC,EAA0B,OAAxBK,EAAG,QAAQZ,EAAI,OAAO,MAAY,CAACY,EAAG,WAAW,EAAE,qBAAqBL,CAAG,CAAE,CAAE,EAAE,CAACN,EAAMC,EAAKC,EAAOC,CAAM,CAAC,EAASC,CAAE,C,oFAA92DQ,EAAI,UAAUC,EAAK,UAAUC,EAAM,UAA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