PageSourceSearch

https://www.formance.com/_next/static/chunks/6581.8fc4ca3b13f84371.js

js formance.com collected 2026-10-02 11:30:28 UTC 7,023 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6581],{86581:(e,t,a)=>{a.r(t),a.d(t,{SchemaChartCard:()=>b});var n=a(82599),r=a(38319),o=a(66472),c=a(37871),i=a(45301),l=a(71086),s=a(67029),d=a(5025);a(16347),a(52398);let p=[[{x:"version",c:"key"},{x:": "},{x:"1",c:"num"}],[{x:"ledger",c:"key"},{x:": "},{x:"marketplace",c:"plain"}],[],[{x:"chart",c:"key"},{x:":"}],[{x:"  accounts",c:"key"},{x:":"}],[{x:"    - ",c:"punct"},{x:"id",c:"key"},{x:": "},{x:"world",c:"plain"}],[{x:"    - ",c:"punct"},{x:"id",c:"key"},{x:": "},{x:"buyer",c:"plain"}],[{x:"    - ",c:"punct"},{x:"id",c:"key"},{x:": "},{x:"marketplace",c:"plain"}],[{x:"    - ",c:"punct"},{x:"id",c:"key"},{x:": "},{x:"seller",c:"plain"}],[{x:"    - ",c:"punct"},{x:"id",c:"key"},{x:": "},{x:"fees",c:"plain"}],[],[{x:"transactions",c:"key"},{x:":"}],[{x:"  - ",c:"punct"},{x:"id",c:"key"},{x:": "},{x:"purchase",c:"plain"}],[{x:"    params",c:"key"},{x:":"}],[{x:"      - ",c:"punct"},{x:"amount",c:"key"},{x:":    "},{x:"monetary",c:"type"}],[{x:"      - ",c:"punct"},{x:"buyer_id",c:"key"},{x:":  "},{x:"account",c:"type"}],[{x:"      - ",c:"punct"},{x:"seller_id",c:"key"},{x:": "},{x:"account",c:"type"}],[{x:"    script",c:"key"},{x:": "},{x:"|",c:"punct"}],[{x:"      send ",c:"kw"},{x:"[USD 10000]",c:"mono"},{x:" {",c:"punct"}],[{x:"        source ",c:"kw"},{x:"= ",c:"punct"},{x:"@world",c:"acct"}],[{x:"        destination ",c:"kw"},{x:"= {",c:"punct"}],[{x:"          90% ",c:"pct"},{x:"to ",c:"kw"},{x:"@sellers/$seller_id",c:"acct"}],[{x:"          10% ",c:"pct"},{x:"to ",c:"kw"},{x:"@fees",c:"acct"}],[{x:"        }",c:"punct"}],[{x:"      }",c:"punct"}],[]];p.reduce((e,t)=>e+t.reduce((e,t)=>e+t.x.length,0)+1,0),(()=>{let e=[],t=0;for(let a of p)e.push(t),t+=a.reduce((e,t)=>e+t.x.length,0)+1})(),p.map((e,t)=>"".concat(t,":").concat(e.map(e=>e.x).join("")));let x=[{pos:s.yX.Left,key:"left"},{pos:s.yX.Right,key:"right"},{pos:s.yX.Top,key:"top"},{pos:s.yX.Bottom,key:"bottom"}],u={opacity:0,width:1,height:1,minWidth:0,minHeight:0,border:0,background:"transparent"},h={box:function(e){let{data:t}=e,{label:a,hl:o,play:c,index:s}=t,p=(0,i.I)();return(0,n.jsxs)("div",{className:"relative h-full w-full",children:[(0,n.jsx)(l.P.div,{className:"grid h-full w-full place-items-center rounded-[2px] border px-1gu text-center font-mono text-[11px] whitespace-nowrap",style:{background:o?"var(--node-hl-bg)":"var(--node-bg)",borderColor:o?"var(--node-hl-border)":"var(--node-border)",color:o?"var(--node-hl-fg)":"var(--node-fg)"},initial:!p&&{opacity:0,scale:.85},animate:c||p?{opacity:1,scale:1}:{opacity:0,scale:.85},transition:{duration:.3,delay:.09*s,ease:[.22,1,.36,1]},children:a}),x.map(e=>(0,n.jsxs)(r.Fragment,{children:[(0,n.jsx)(d.h7,{type:"source",id:"".concat(e.key,"-s"),position:e.pos,isConnectable:!1,style:u}),(0,n.jsx)(d.h7,{type:"target",id:"".concat(e.key,"-t"),position:e.pos,isConnectable:!1,style:u})]},e.key))]})}},k={draw:function(e){let{sourceX:t,sourceY:a,targetX:r,targetY:o,sourcePosition:c,targetPosition:d,data:p}=e,x=(0,i.I)(),{play:u,index:h}=null!=p?p:{play:!1,index:0},[k]=(0,s.oN)({sourceX:t,sourceY:a,targetX:r,targetY:o,sourcePosition:c,targetPosition:d,borderRadius:0});return(0,n.jsx)(l.P.path,{d:k,fill:"none",stroke:"var(--tok-edge)",strokeWidth:1,vectorEffect:"non-scaling-stroke",initial:!x&&{pathLength:0,opacity:0},animate:u||x?{pathLength:1,opacity:1}:{pathLength:0,opacity:0},transition:{duration:.5,delay:.45+.16*h,ease:"easeInOut"}})}},y={"--tok-key":"var(--shiki-token-keyword)","--tok-num":"var(--shiki-token-constant)","--tok-type":"var(--shiki-token-constant)","--tok-kw":"var(--shiki-token-keyword)","--tok-acct":"var(--shiki-token-parameter)","--tok-mono":"var(--shiki-token-monetary)","--tok-pct":"var(--shiki-token-constant)","--tok-punct":"var(--shiki-token-punctuation)","--tok-plain":"var(--shiki-foreground)","--tok-edge":"var(--emerald-600)","--tok-toolbar-fg":"color-mix(in srgb, var(--shiki-foreground) 55%, transparent)","--panel-bg":"var(--emerald-900)","--gutter-fg":"var(--emerald-600)","--node-bg":"var(--emerald-800)","--node-border":"var(--emerald-500)","--node-fg":"var(--emerald-100)","--node-hl-bg":"var(--emerald-500)","--node-hl-border":"var(--emerald-400)","--node-hl-fg":"var(--emerald-900)"},g=[{id:"world",type:"box",position:{x:0,y:160},width:96,height:44,data:{label:"world",index:0}},{id:"buyer",type:"box",position:{x:187,y:20},width:96,height:44,data:{label:"buyer",index:1}},{id:"marketplace",type:"box",position:{x:170,y:160},width:130,height:44,data:{label:"marketplace",hl:!0,index:2}},{id:"seller",type:"box",position:{x:430,y:20},width:168,height:44,data:{label:"sellers/$seller_id",index:3}},{id:"fees",type:"box",position:{x:480,y:160},width:96,height:44,data:{label:"fees",index:4}}],m=[{id:"e-world",type:"draw",source:"world",target:"marketplace",sourceHandle:"right-s",targetHandle:"left-t",data:{index:0}},{id:"e-buyer",type:"draw",source:"buyer",target:"marketplace",sourceHandle:"bottom-s",targetHandle:"top-t",data:{index:1}},{id:"e-seller",type:"draw",source:"marketplace",target:"seller",sourceHandle:"right-s",targetHandle:"left-t",data:{index:2}},{id:"e-fees",type:"draw",source:"marketplace",target:"fees",sourceHandle:"right-s",targetHandle:"left-t",data:{index:3}}];function f(e){let{play:t,heightClass:a="h-16gu",fitPadding:o=.08}=e,i=(0,r.useMemo)(()=>g.map(e=>({...e,data:{...e.data,play:t}})),[t]),l=(0,r.useMemo)(()=>m.map(e=>({...e,data:{...e.data,play:t}})),[t]),s=(0,r.useRef)(null),p=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=s.current;if(!e||"undefined"==typeof ResizeObserver)return;let t=0,a=new ResizeObserver(()=>{cancelAnimationFrame(t),t=requestAnimationFrame(()=>{var e;return null==(e=p.current)?void 0:e.fitView({padding:o})})});return a.observe(e),()=>{cancelAnimationFrame(t),a.disconnect()}}
1,[o]),(0,n.jsx)("div",{ref:s,className:(0,c.cn)(a,"w-full"),"aria-label":"Chart of accounts: world, buyer and marketplace feed sellers and fees",role:"img",children:(0,n.jsx)(d.Gc,{nodes:i,edges:l,nodeTypes:h,edgeTypes:k,fitView:!0,fitViewOptions:{padding:o},onInit:e=>{p.current=e,e.fitView({padding:o})},nodesDraggable:!1,nodesConnectable:!1,elementsSelectable:!1,panOnDrag:!1,panOnScroll:!1,zoomOnScroll:!1,zoomOnPinch:!1,zoomOnDoubleClick:!1,preventScrolling:!1,proOptions:{hideAttribution:!0},className:"schema-flow"})})}function b(e){let{className:t}=e,a=(0,r.useRef)(null),i=(0,o.W)(a,{amount:.35,once:!0});return(0,n.jsxs)("div",{ref:a,className:(0,c.cn)("dark grid-ring flex h-full w-full flex-col bg-(--panel-bg) p-1gu",t),style:y,children:[(0,n.jsxs)("div",{className:"mb-1gu flex items-center justify-between",children:[(0,n.jsx)("span",{className:"badge-sm font-mono uppercase text-(--tok-toolbar-fg)",children:"Chart of accounts"}),(0,n.jsx)("span",{className:"badge-sm font-mono uppercase text-(--tok-toolbar-fg)",children:"5 nodes \xb7 4 edges"})]}),(0,n.jsx)("div",{className:"flex min-h-10gu flex-1",children:(0,n.jsx)(f,{play:i,heightClass:"h-full",fitPadding:.04})})]})}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.