1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/BootstrapLandingGate-rl30fqXn.js","assets/index-ChEkzv_B.js","assets/index-CCMMla4j.css","assets/BootstrapContext-XGikMoXs.js","assets/index-BhYmDm8j.js","assets/Button-CoJi2g7X.js"])))=>i.map(i=>d[i]); 2import{u as j,r as c,j as e,I as f,H as B,_ as V}from"./index-ChEkzv_B.js";import{L as A}from"./useTheme-IIvREq4S.js";import{b as q,M as H,c as M,A as Y,I as K,a as Z,P as Q,d as J}from"./MarketingShell-F5AQ27Jo.js";import{B as X}from"./Button-CoJi2g7X.js";import{u as O,a as P,c as S,b as T,E as R}from"./EChart-DcFwBBq4.js";const ee=[{key:"cash",value:"$4.8M",tone:"text-primary",icon:"Landmark"},{key:"reconciliation",value:"18",tone:"text-warning",icon:"GitMerge"},{key:"categorized",value:"91%",tone:"text-success",icon:"Tags"},{key:"forecast",value:"-2.4%",tone:"text-foreground",icon:"TrendingUp"}],re=[{key:"reconciliation",value:"7",icon:"GitMerge",tone:"text-warning"},{key:"balance",value:"3",icon:"Scale",tone:"text-warning"},{key:"gl",value:"12",icon:"FileCheck2",tone:"text-primary"},{key:"agent",value:"2",icon:"ReconciliaAIAction",tone:"text-success"}],te=({compact:r=!1,animated:s=!1,embedded:t=!1})=>{const{t:a,currentLanguage:i}=j(),n=O(),u=a("landing.demo.currency.code","USD"),m=c.useMemo(()=>({animation:s,animationDuration:700,color:[n.primary,n.success],tooltip:{trigger:"axis",...T(n)},grid:{left:8,right:8,top:20,bottom:10,containLabel:!0},xAxis:{type:"category",data:["mon","tue","wed","thu","fri"].map(o=>a(`landing.demo.day.${o}`)),...S(n)},yAxis:{type:"value",min:3e6,max:55e5,axisLabel:{color:n.muted,formatter:o=>P(o,u,i)},splitLine:{lineStyle:{color:n.border,opacity:.45}}},series:[{name:a("landing.demo.series.confirmed"),type:"line",smooth:!0,symbolSize:6,lineStyle:{width:2.6},areaStyle:{opacity:.13},data:[395e4,433e4,421e4,469e4,496e4]},{name:a("landing.demo.series.forecast"),type:"line",smooth:!0,symbolSize:5,lineStyle:{type:"dashed",width:2.2},data:[43e5,454e4,462e4,444e4,523e4]}]}),[s,n,u,i,a]),l=c.useMemo(()=>({animation:s,animationDuration:700,color:[n.success,n.primary,n.warning],tooltip:{trigger:"axis",...T(n)},grid:{left:8,right:10,top:18,bottom:8,containLabel:!0},xAxis:{type:"value",max:100,splitNumber:2,axisTick:{show:!1},axisLabel:{color:n.muted,formatter:o=>[0,50,100].includes(o)?`${o}%`:""},splitLine:{lineStyle:{color:n.border,opacity:.26}}},yAxis:{type:"category",data:["rules","ai","manual"].map(o=>a(`landing.demo.category.${o}`)),...S(n)},series:[{type:"bar",barWidth:18,data:[72,19,9],itemStyle:{borderRadius:[0,6,6,0],color:o=>[n.success,n.primary,n.warning][o.dataIndex]}}]}),[s,n,a]);return e.jsxs("div",{className:t?"h-full overflow-hidden":"overflow-hidden rounded-lg border border-border bg-card shadow-xl","data-testid":"marketing-demo-dashboard",children:[!t&&e.jsxs("div",{className:`flex flex-wrap items-center justify-between gap-3 border-b border-border bg-muted/50 ${r?"px-3 py-2":"px-4 py-3"}`,children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-card-foreground",children:a("landing.demo.title")}),e.jsx("p",{className:"text-xs text-muted-foreground",children:a("landing.hero.dashboard.demo")})]}),e.jsxs("div",{className:"flex items-center gap-2 rounded-md border border-border bg-background px-3 py-1 text-xs text-muted-foreground",children:[e.jsx(f,{name:"ShieldCheck",size:14,className:"text-success"}),e.jsx("span",{children:a("landing.demo.note")})]})]}),e.jsxs("div",{className:r?t?"flex h-full flex-col gap-3":"space-y-3 p-3":"space-y-4 p-4",children:[e.jsx("div",{className:"grid grid-cols-2 gap-3 lg:grid-cols-4",children:ee.map((o,b)=>e.jsxs("div",{className:`rounded-lg border border-border bg-background ${r?"p-2":"p-3"} ${t&&b>1?"hidden sm:block":""}`,children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsx("span",{className:"text-xs text-muted-foreground",children:a(`landing.demo.kpi.${o.key}`)}),e.jsx(f,{name:o.icon,size:16,className:o.tone})]}),e.jsx("p",{className:`${r?"mt-1 text-xl":"mt-2 text-2xl"} font-semibold ${o.tone} ${s?"motion-safe:animate-pulse":""}`,children:o.value})]},o.key))}),e.jsxs("div",{className:t?"grid min-h-0 flex-1 gap-3 lg:grid-cols-4":"grid gap-3 lg:grid-cols-4",children:[e.jsxs("div",{className:`rounded-lg border border-border bg-background lg:col-span-2 ${r?"p-2":"p-3"}`,children:[e.jsxs("div",{className:"mb-1 flex items-center justify-between",children:[e.jsx("h3",{className:"text-sm font-semibold text-foreground",children:a("landing.demo.chart.cashTrend")}),e.jsx("span",{className:"text-xs text-muted-foreground",children:a("landing.demo.currency.label")})]}),e.jsx(R,{option:m,className:r?t?"h-[calc(100%-1.5rem)] min-h-28 w-full sm:min-h-20":"h-20 w-full":"h-44 w-full",ariaLabel:a("landing.demo.chart.cashTrend")})]}),e.jsxs("div",{className:`rounded-lg border border-border bg-background lg:col-span-2 ${r?"p-2":"p-3"} ${t?"hidden sm:block":""}`,children:[e.jsxs("div",{className:"mb-1 flex items-center justify-between",children:[e.jsx("h3",{className:"text-sm font-semibold text-foreground",children:a("landing.demo.chart.categorization")}),e.jsx("span",{className:"text-xs text-muted-foreground",children:a("landing.demo.period.mtd")})]}),e.jsx(R,{option:l,className:r?"h-24 w-full":"h-44 w-full",ariaLabel:a("landing.demo.chart.categorization")})]})]}),e.jsxs("div",{className:`rounded-lg border border-border bg-background p-3 ${r?"hidden":""}`,children:[e.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[e.jsx("h3",{className:"text-sm font-semibold text-foreground",children:a("landing.demo.queue.title")}),e.jsx("span",{className:"text-xs text-muted-foreground",children:a("landing.demo.queue.mode")})]}),e.jsx("div",{className:"grid gap-2 sm:grid-cols-2 lg:grid-cols-4",children:re.map(o=>e.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-md border border-border bg-card px-3 py-2",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[e.jsx(f,{name:o.icon,size:16,className:o.tone}),e.jsx("span",{className:"truncate text-sm text-card-foreground",children:a(`landing.demo.queue.${o.key}`)})]}),e.jsx("span",{className:`text-sm font-semibold ${o.tone}`,children:o.value})]},o.key))})]})]})]})},se=["banks","erp","files","api"],ae=["ingest","categorize","reconcile","forecast"],ie=["cash","exceptions","reports","approvals"],L={banks:"Landmark",erp:"Blocks",files:"FileSpreadsheet",api:"PlugZap",ingest:"DatabaseZap",categorize:"Tags",reconcile:"GitMerge",forecast:"TrendingUp",cash:"WalletCards",exceptions:"CircleAlert",reports:"FileBarChart2",approvals:"BadgeCheck"};function D(){const[r,s]=c.useState(()=>typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches);return c.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const t=window.matchMedia("(prefers-reduced-motion: reduce)"),a=()=>s(t.matches);return a(),t.addEventListener?.("change",a),()=>t.removeEventListener?.("change",a)},[]),r}const _=({icon:r,label:s,detail:t,emphasized:a=!1})=>e.jsx("div",{className:`rounded-lg border p-1.5 shadow-sm ${a?"border-primary/40 bg-primary/10":"border-border bg-background"}`,children:e.jsxs("div",{className:"flex items-center justify-center gap-2 min-[480px]:justify-start",children:[e.jsx("span",{className:`flex h-6 w-6 shrink-0 items-center justify-center rounded-md ${a?"bg-primary text-primary-foreground":"bg-muted text-primary"}`,children:e.jsx(f,{name:r,size:13})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("p",{className:"hidden text-[11px] font-semibold leading-4 text-foreground min-[480px]:block",children:s}),e.jsx("p",{className:"hidden text-[10px] leading-3 text-muted-foreground sm:block",children:t})]})]})}),ne=()=>e.jsxs("div",{className:"pointer-events-none absolute inset-0 z-20 text-primary","aria-hidden":"true",children:[e.jsx("span",{className:"absolute left-1/2 top-0 h-10 w-40 -translate-x-1/2 roun
2ded-b-full bg-primary/10 blur-xl motion-safe:animate-pulse"}),e.jsx("span",{className:"absolute left-1/2 top-0 h-1.5 w-20 -translate-x-1/2 rounded-b-full bg-primary/55 shadow-[0_0_22px_currentColor] motion-safe:animate-pulse"}),e.jsx("span",{className:"absolute bottom-1 left-1/2 h-10 w-44 -translate-x-1/2 rounded-t-full bg-primary/10 blur-xl motion-safe:animate-pulse"}),e.jsx("span",{className:"absolute bottom-1 left-1/2 h-1.5 w-24 -translate-x-1/2 rounded-t-full bg-primary/50 shadow-[0_0_22px_currentColor] motion-safe:animate-pulse"})]}),oe=()=>e.jsxs("div",{className:"pointer-events-none absolute inset-0 z-20 text-primary","aria-hidden":"true",children:[e.jsx("span",{className:"hero-dashboard-landing hero-dashboard-landing--top absolute left-1/2 top-0 h-9 w-52 -translate-x-1/2 rounded-b-full bg-primary/10 blur-xl"}),e.jsx("span",{className:"hero-dashboard-landing hero-dashboard-landing--top absolute left-1/2 top-0 h-1.5 w-28 -translate-x-1/2 rounded-b-full bg-primary/45 shadow-[0_0_18px_currentColor]"}),e.jsx("span",{className:"hero-dashboard-landing hero-dashboard-landing--bottom absolute bottom-1 left-1/2 h-9 w-56 -translate-x-1/2 rounded-t-full bg-primary/10 blur-xl"}),e.jsx("span",{className:"hero-dashboard-landing hero-dashboard-landing--bottom absolute bottom-1 left-1/2 h-1.5 w-32 -translate-x-1/2 rounded-t-full bg-primary/40 shadow-[0_0_18px_currentColor]"})]});function le({t:r,reducedMotion:s}){return e.jsxs("div",{className:"relative h-full overflow-hidden rounded-lg bg-background p-2.5",children:[e.jsxs("svg",{className:"pointer-events-none absolute inset-0 h-full w-full text-primary/50",viewBox:"0 0 1000 460",preserveAspectRatio:"none","aria-hidden":"true",children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:"theatreLine",x1:"0",x2:"1",y1:"0",y2:"0",children:[e.jsx("stop",{offset:"0%",stopColor:"currentColor",stopOpacity:"0.12"}),e.jsx("stop",{offset:"50%",stopColor:"currentColor",stopOpacity:"0.55"}),e.jsx("stop",{offset:"100%",stopColor:"currentColor",stopOpacity:"0.16"})]})}),[90,170,290,370].map((t,a)=>e.jsx("path",{d:`M 210 ${t} C 360 ${t}, 360 230, 500 230`,fill:"none",stroke:"url(#theatreLine)",strokeWidth:"2",strokeDasharray:"10 12",strokeLinecap:"round",children:!s&&e.jsx("animate",{attributeName:"stroke-dashoffset",from:a*12,to:-80+a*12,dur:"4s",repeatCount:"indefinite"})},`left-${t}`)),[90,170,290,370].map((t,a)=>e.jsx("path",{d:`M 500 230 C 640 230, 640 ${t}, 790 ${t}`,fill:"none",stroke:"url(#theatreLine)",strokeWidth:"2",strokeDasharray:"10 12",strokeLinecap:"round",children:!s&&e.jsx("animate",{attributeName:"stroke-dashoffset",from:-a*10,to:-90-a*10,dur:"4s",repeatCount:"indefinite"})},`right-${t}`))]}),e.jsxs("div",{className:"relative grid gap-2.5 md:grid-cols-[0.84fr_1.2fr_0.84fr]",children:[e.jsxs("div",{className:"grid grid-cols-4 gap-1.5 md:block md:space-y-1.5",children:[e.jsx("p",{className:"col-span-4 text-xs font-semibold uppercase tracking-[0.16em] text-muted-foreground md:col-span-1",children:r("landing.theatre.circuit.sources")}),se.map(t=>e.jsx(_,{icon:L[t],label:r(`landing.theatre.circuit.source.${t}.title`),detail:r(`landing.theatre.circuit.source.${t}.detail`)},t))]}),e.jsx("div",{className:"flex items-center md:min-h-52",children:e.jsxs("div",{className:"relative w-full overflow-hidden rounded-lg border border-primary/30 bg-card p-2.5 shadow-xl",children:[e.jsx("span",{className:"pointer-events-none absolute inset-x-8 -top-6 h-14 rounded-full bg-primary/10 blur-xl motion-safe:animate-pulse","aria-hidden":"true"}),e.jsx("span",{className:"pointer-events-none absolute left-0 top-1/2 h-20 w-1 -translate-y-1/2 rounded-r-full bg-primary/45 shadow-[0_0_18px_currentColor] motion-safe:animate-pulse","aria-hidden":"true"}),e.jsx("span",{className:"pointer-events-none absolute right-0 top-1/2 h-20 w-1 -translate-y-1/2 rounded-l-full bg-primary/35 shadow-[0_0_18px_currentColor] motion-safe:animate-pulse","aria-hidden":"true"}),e.jsxs("div",{className:"relative mb-2 flex items-center justify-between gap-3",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-semibold text-card-foreground",children:r("landing.theatre.circuit.core.title")}),e.jsx("p",{className:"hidden text-xs text-muted-foreground sm:block",children:r("landing.theatre.circuit.core.detail")})]}),e.jsx("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-primary text-primary-foreground",children:e.jsx(f,{name:"ReconciliaAI",size:18})})]}),e.jsx("div",{className:"relative grid grid-cols-4 gap-1.5 md:grid-cols-2",children:ae.map(t=>e.jsx(_,{icon:L[t],label:r(`landing.theatre.circuit.module.${t}.title`),detail:r(`landing.theatre.circuit.module.${t}.detail`),emphasized:!0},t))})]})}),e.jsxs("div",{className:"grid grid-cols-4 gap-1.5 md:block md:space-y-1.5",children:[e.jsx("p",{className:"col-span-4 text-xs font-semibold uppercase tracking-[0.16em] text-muted-foreground md:col-span-1",children:r("landing.theatre.circuit.outputs")}),ie.map(t=>e.jsx(_,{icon:L[t],label:r(`landing.theatre.circuit.output.${t}.title`),detail:r(`landing.theatre.circuit.output.${t}.detail`)},t))]})]})]})}const k={base:[48e5,51e5,49e5,54e5],delayed:[48e5,44e5,42e5,54e5],outflows:[48e5,47e5,42e5,46e5]};function ce(){const{t:r,currentLanguage:s}=j(),t=i=>new Intl.NumberFormat(s,{style:"currency",currency:"USD",maximumFractionDigits:0}).format(i),a=[{key:"receipts",icon:"Receipt",reference:"REC-1042",total:12e3,allocations:[["INV-2081",6e3],["INV-2086",3e3]],remaining:3e3},{key:"suppliers",icon:"FileCheck",reference:"PAY-0873",total:8400,allocations:[["BILL-0312",5200],["BILL-0318",3200]],remaining:0}];return e.jsx("div",{className:"grid gap-3 md:grid-cols-2","data-testid":"application-preview",children:a.map(i=>e.jsxs("article",{className:"rounded-lg border border-border bg-background p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-primary",children:[e.jsx(f,{name:i.icon,size:18}),e.jsx("h3",{className:"text-sm font-semibold",children:r(`program.preview.application.${i.key}`)})]}),e.jsxs("div",{className:"my-3 flex flex-wrap items-end justify-between gap-2",children:[e.jsx("span",{className:"text-xs text-muted-foreground",children:i.reference}),e.jsx("strong",{className:"text-xl",children:t(i.total)})]}),e.jsx("p",{className:"mb-2 text-xs text-muted-foreground",children:r("program.preview.application.allocated")}),e.jsx("dl",{className:"space-y-2 text-sm",children:i.allocations.map(([n,u])=>e.jsxs("div",{className:"flex justify-between gap-2 rounded-md bg-muted px-3 py-2",children:[e.jsx("dt",{children:n}),e.jsx("dd",{children:t(u)})]},n))}),e.jsxs("p",{className:"mt-3 flex justify-between gap-2 text-sm",children:[e.jsx("span",{className:"text-muted-foreground",children:r("program.preview.application.remaining")}),e.jsx("strong",{children:t(i.remaining)})]}),e.jsxs("details",{className:"mt-3 border-t border-border pt-3 text-xs text-muted-foreground",children:[e.jsx("summary",{className:"cursor-pointer rounded-sm font-medium text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:r("program.preview.application.evidence")}),e.jsx("p",{className:"mt-2 leading-5",children:r(`program.preview.application.${i.key}.evidence`)})]})]},i.key))})}function de({animated:r}){return e.jsxs("div",{className:"grid gap-3 lg:grid-cols-2","data-testid":"cash-forecast-preview",children:[e.jsx("div",{className:"h-80 min-w-0 rounded-lg border border-border bg-background p-2",children:e.jsx(te,{compact:!0,animated:r,embedded:!0})}),e.jsx("div",{className:"h-80 min-w-0",children:e.jsx(me,{animated:r})})]})}function me({animated:r}){const{t:s,currentLanguage:t}=j(),a=O(),[i,n]=c.useState("base"),u=l=>P(l,"USD",t),m=c.useMemo(()=>({animation:r,animationDuration:500,color:[a.muted,a.primary],tooltip:{trigger:"axis",...T(a)},grid:{left:4,right:12,top:12,bottom:4,containLabel:!0},xAxis:{type:"category",data:[1,2,3,4].map(l=>s("program.preview.forecast.week").replace("{week}",l)),...S(a)},yAxis:{type:"value",min:35e5,max:6e6,splitNumber:2,axisLabel:{color:a.muted,formatter:l=>P(l,"USD",t)},splitLine:{lineStyle:{color:a.border,opacity:.45}}},series:[{name:s("program.preview.forecast.base"),type:"line",data:k.base,symbolSize:5,lineStyle:{type:"dashed",width:2}},{name:s(`program.preview.forecast.${i}`),type:"line",data:k[i],symbolSize:7,lineStyle:{width:3},areaStyle:{opacity:.1}}]}),[r,a,t,s,i]);return e.jsxs("div",{className:"flex h-full flex-col gap-2 rounded-lg border border-border bg-background p-3","data-testid":"forecast-preview","data-scenario":i,children:[e.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[e.jsx("label",{className:"text-sm font-semibold",htmlFor:"preview-forecast-scenario",children:s("program.preview.forecast.scenario")}),e.jsx("select",{id:"preview-forecast-scenario",value:i,onChange:l=>n(l.target.value),className:"max-w-full rounded-md border border-border bg-card px-2 py-1 text-sm text-foreground focus-visible:ring-2 focus-visible:ring-ring",children:Object.keys(k).map(l
2=>e.jsx("option",{value:l,children:s(`program.preview.forecast.${l}`)},l))})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:s("program.preview.forecast.hint")}),e.jsx("div",{className:"min-h-0 flex-1",children:e.jsx(R,{option:m,className:"h-full min-h-24 w-full",ariaLabel:s("program.preview.forecast.chart")})}),e.jsxs("p",{className:"text-sm","aria-live":"polite",children:[s("program.preview.forecast.ending"),": ",e.jsx("strong",{className:"text-primary",children:u(k[i][3])}),e.jsxs("span",{className:"ml-2 text-xs text-muted-foreground",children:[s("program.preview.forecast.lowest"),": ",u(Math.min(...k[i]))]})]})]})}const ue=({activeScene:r="reconciliation",animated:s=!0})=>{const{t}=j(),i=D()||!s,n=c.useMemo(()=>r==="reconciliation"?e.jsx(le,{t,reducedMotion:i}):r==="application"?e.jsx(ce,{}):e.jsx(de,{animated:!i}),[r,i,t]);return e.jsxs("section",{className:"relative overflow-hidden rounded-lg border border-border bg-card/95 p-2 shadow-2xl backdrop-blur sm:p-3","aria-label":t("landing.theatre.aria"),"data-testid":"product-theatre","data-active-scene":r,children:[!i&&r!=="reconciliation"&&e.jsx(oe,{}),!i&&r==="reconciliation"&&e.jsx(ne,{}),e.jsx("div",{className:`${r==="reconciliation"?"h-[17.25rem] sm:h-80":""} motion-safe:animate-in motion-safe:fade-in motion-safe:duration-500`,children:n},r)]})},pe=4.15,xe=-.55,G=4.2,W=-.46,$=["reconciliation","application","cash"],ge=8e3,he=6e4,I={primary:"var(--color-primary)",success:"var(--color-success)",warning:"var(--color-warning)"},E={application:[{key:"receipts",icon:"Receipt",side:"left"},{key:"payments",icon:"FileCheck",side:"left"},{key:"invoices",icon:"Files",side:"left"},{key:"receivables",icon:"ArrowDownLeft",side:"right"},{key:"payables",icon:"ArrowUpRight",side:"right"},{key:"evidence",icon:"FileCheck2",side:"right"}],overview:[{key:"bankData",icon:"Landmark",side:"left",y:26,towardPanel:!0,wave:-14},{key:"erpData",icon:"Blocks",side:"left",y:38,towardPanel:!0,wave:10},{key:"paymentData",icon:"CreditCard",side:"left",y:50,towardPanel:!0,wave:-12},{key:"cashKpi",icon:"WalletCards",side:"right",y:24,towardPanel:!0,wave:-12},{key:"categoryKpi",icon:"BarChart3",side:"right",y:34,towardPanel:!0,wave:12},{key:"varianceKpi",icon:"LineChart",side:"right",y:44,towardPanel:!0,wave:-10},{key:"aiKpi",icon:"ReconciliaAIAction",side:"right",y:54,towardPanel:!0,featured:!0,wave:14}],circuit:[{key:"sourceCoverage",icon:"DatabaseZap",side:"left",y:25,towardPanel:!1,wave:-12,variant:"metric",accent:"primary"},{key:"rulesCoverage",icon:"ListChecks",side:"left",y:38,towardPanel:!1,wave:12,variant:"bars",accent:"success"},{key:"dataFreshness",icon:"Activity",side:"left",y:51,towardPanel:!1,wave:-10,variant:"sparkline",accent:"primary"},{key:"cashClarity",icon:"WalletCards",side:"right",y:25,towardPanel:!1,wave:-12,variant:"metric",accent:"primary"},{key:"exceptionQueue",icon:"CircleAlert",side:"right",y:38,towardPanel:!1,wave:12,variant:"queue",accent:"warning"},{key:"forecastConfidence",icon:"TrendingUp",side:"right",y:51,towardPanel:!1,wave:-10,variant:"sparkline",accent:"primary"}]},U=r=>{const s=E[r]||E.overview;return{sources:s.filter(t=>t.side==="left"),outcomes:s.filter(t=>t.side==="right")}},fe=(r,s,t)=>({title:r(`landing.hero.flow.${s}.${t.key}.title`),detail:r(`landing.hero.flow.${s}.${t.key}.detail`,""),value:r(`landing.hero.flow.${s}.${t.key}.value`,"")}),be=({variant:r})=>{if(r==="sparkline")return e.jsx("svg",{className:"hero-flow-token__graphic h-4 w-11 shrink-0 text-primary",viewBox:"0 0 44 16",preserveAspectRatio:"none","aria-hidden":"true",children:e.jsx("path",{className:"hero-flow-token__line",d:"M 1 12 C 8 10, 10 5, 17 7 S 25 14, 31 8 S 38 3, 43 5",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})});if(r==="bars"||r==="queue"){const s=r==="queue"?[74,48,28]:[78,58,36];return e.jsx("span",{className:"hero-flow-token__graphic grid w-11 shrink-0 gap-1","aria-hidden":"true",children:s.map((t,a)=>e.jsx("span",{className:"block h-1 rounded-full bg-muted",children:e.jsx("span",{className:`hero-flow-token__bar block h-full rounded-full ${a===0?"bg-success":a===1?"bg-primary":"bg-warning"}`,style:{width:`${t}%`}})},t))})}return null},ye=({activeScene:r,node:s,t,className:a="",compact:i=!1,index:n=0})=>{const{title:u,detail:m,value:l}=fe(t,r,s),o=["bars","queue","sparkline"].includes(s.variant),b=r==="circuit"&&o?e.jsx(be,{variant:s.variant}):null,p=r==="circuit"?b||l||(i?"":m):"",x=r==="circuit",g=x?{"--hero-flow-cycle":`${G}s`,"--hero-flow-delay":`${n*W}s`,"--hero-flow-accent":I[s.accent]||I.primary}:void 0;return e.jsxs("div",{"data-hero-flow-item":s.key,className:`flex min-w-0 items-center justify-between gap-2 rounded-full border bg-background/95 px-2.5 py-1.5 text-left shadow-sm backdrop-blur-md dark:bg-background/75 ${s.featured?"border-primary/40 text-primary ring-2 ring-primary/15":"border-primary/20 text-muted-foreground"} ${x?"hero-flow-token--receive":""} ${a}`,style:g,children:[x&&e.jsx("span",{className:"hero-flow-token__pulse","aria-hidden":"true"}),e.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[e.jsx(f,{name:s.icon,size:14,className:s.featured?"shrink-0 text-primary":"shrink-0 text-primary/80"}),e.jsx("span",{className:"truncate text-xs font-semibold leading-4 text-foreground",children:u})]}),p&&typeof p=="string"&&e.jsx("span",{className:"shrink-0 text-xs font-semibold text-primary",children:p}),p&&typeof p!="string"&&p]})},je=r=>{if(r<=1)return[500];const s=r===3?300:230,a=((r===3?700:770)-s)/(r-1);return Array.from({length:r},(i,n)=>s+a*n)},F=({activeScene:r,group:s,t})=>{const i=U(r)[s],n=i.length===3?"grid-cols-2 sm:grid-cols-3":"grid-cols-2 lg:grid-cols-4",u=i.length===3?"max-w-2xl":"max-w-3xl";return e.jsx("div",{"data-hero-flow-row":s,className:`relative z-10 mx-auto grid w-full ${u} gap-2 ${n}`,"aria-hidden":"true",children:i.map((m,l)=>e.jsx(ye,{activeScene:r,node:m,t,index:l,compact:s==="sources",className:"h-8 rounded-full"},`${r}-${m.key}-${s}`))})},z=({activeScene:r,group:s})=>{const a=U(r)[s].length,i=je(a),n=s==="outcomes",u=r==="circuit"&&s==="sources",m=r==="circuit",l=r==="overview",o=n?6:58,b=n?58:6;return e.jsx("div",{"data-hero-flow-connector":s,className:"-my-1 h-10 overflow-visible text-primary sm:h-11","aria-hidden":"true",children:e.jsxs("svg",{className:"h-full w-full overflow-visible",viewBox:"0 0 1000 64",preserveAspectRatio:"none",children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:`heroRowLine-${r}-${s}`,x1:"0",x2:"1",y1:"0",y2:"0",children:[e.jsx("stop",{offset:"0%",stopColor:"currentColor",stopOpacity:"0.12"}),e.jsx("stop",{offset:"50%",stopColor:"currentColor",stopOpacity:"0.62"}),e.jsx("stop",{offset:"100%",stopColor:"currentColor",stopOpacity:"0.12"})]})}),i.map((p,x)=>{const g=n?26:38,y=m&&n||u?`M 500 ${o} C 500 ${g}, ${p} ${g}, ${p} ${b}`:`M ${p} ${b} C ${p} ${g}, 500 ${g}, 500 ${o}`,h=m?G:pe,v=m?x*W:x*xe,C=v-h/2;return e.jsxs("g",{children:[e.jsx("path",{d:y,fill:"none",stroke:"currentColor",strokeOpacity:"0.16",strokeWidth:"4",strokeLinecap:"round"}),e.jsx("path",{d:y,fill:"none",stroke:`url(#heroRowLine-${r}-${s})`,strokeWidth:"2",strokeLinecap:"round"}
2),(m||l)&&e.jsx("circle",{r:"6.4",fill:"currentColor",opacity:"0.12",className:"motion-reduce:hidden",children:e.jsx("animateMotion",{path:y,dur:`${h}s`,begin:`${v}s`,repeatCount:"indefinite"})}),e.jsx("circle",{r:m?"3.1":"3.2",fill:"currentColor",opacity:m?"0.78":"0.62",className:"motion-reduce:hidden",children:e.jsx("animateMotion",{path:y,dur:`${h}s`,begin:`${v}s`,repeatCount:"indefinite"})}),(m||l)&&e.jsx("circle",{r:"2.1",fill:"currentColor",opacity:"0.42",className:"motion-reduce:hidden",children:e.jsx("animateMotion",{path:y,dur:`${h}s`,begin:`${C}s`,repeatCount:"indefinite"})})]},`${r}-${s}-${x}`)}),e.jsx("circle",{cx:"500",cy:o,r:"4",fill:"currentColor",opacity:"0.56"})]})})};function we(){const{t:r}=j(),[s,t]=c.useState(0),[a,i]=c.useState(!1),[n,u]=c.useState(!1),[m,l]=c.useState(!1),[o,b]=c.useState(()=>typeof document>"u"||!document.hidden),p=D(),x=!a&&!n&&!m&&o&&!p,g=$[s],w=g==="reconciliation"?"circuit":g==="application"?"application":"overview",y=c.useRef(null),h=c.useRef(null),v=c.useCallback(()=>{h.current&&(window.clearTimeout(h.current),h.current=null),u(!1)},[]),C=c.useCallback(()=>{a||p||(h.current&&window.clearTimeout(h.current),u(!0),h.current=window.setTimeout(()=>{h.current=null,u(!1)},he))},[p,a]);return c.useEffect(()=>()=>{h.current&&window.clearTimeout(h.current)},[]),c.useEffect(()=>{const d=()=>b(!document.hidden);return document.addEventListener("visibilitychange",d),()=>document.removeEventListener("visibilitychange",d)},[]),c.useEffect(()=>{if(!x)return;const d=window.setTimeout(()=>t(N=>(N+1)%$.length),ge);return()=>window.clearTimeout(d)},[x,s]),c.useEffect(()=>{y.current?.querySelectorAll("svg").forEach(d=>{x?d.unpauseAnimations?.():d.pauseAnimations?.()})},[x,g]),e.jsxs("div",{ref:y,"data-preview-motion":x?"playing":"paused",className:"mx-auto mt-6 max-w-5xl",role:"region","aria-roledescription":r("program.preview.carousel"),"aria-label":r("program.preview.scenes"),onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),onFocusCapture:d=>{d.target.closest("[data-motion-toggle]")||C()},children:[e.jsx("div",{className:"flex justify-center",children:e.jsx(X,{asChild:!0,size:"lg",children:e.jsx(A,{to:q,children:r("landing.hero.primary")})})}),e.jsx("div",{id:"treasury-preview-scene","data-active-scene":g,"aria-live":x?"off":"polite","aria-atomic":"true",className:"mt-8",children:e.jsx("div",{className:"mx-auto grid max-w-4xl text-center",children:$.map(d=>e.jsxs("div",{"aria-hidden":d!==g,className:`col-start-1 row-start-1 ${d===g?"visible":"invisible"}`,children:[e.jsx("h2",{className:"text-lg font-semibold leading-tight text-primary sm:text-xl",children:r(`landing.hero.scene.${d}.title`)}),e.jsx("p",{className:"mx-auto mt-2 max-w-2xl text-sm leading-6 text-muted-foreground sm:text-base",children:r(`landing.hero.scene.${d}.body`)})]},d))})}),e.jsxs("div",{className:"mb-5 mt-3 flex items-center justify-center gap-2",children:[e.jsx("div",{className:"flex gap-2",role:"group","aria-label":r("program.preview.scenes"),children:$.map((d,N)=>e.jsx("button",{type:"button","aria-label":r(`program.preview.scene.${d}`),title:r(`program.preview.scene.${d}`),"aria-pressed":N===s,"aria-controls":"treasury-preview-scene",onClick:()=>{t(N),C()},className:"group flex h-8 w-12 items-center rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:e.jsx("span",{"aria-hidden":"true",className:`h-0.5 w-full rounded-full ${N===s?"bg-primary":"bg-muted-foreground opacity-40 group-hover:opacity-70"}`})},d))}),p?e.jsx("span",{className:"sr-only",children:r("program.preview.reducedMotion")}):e.jsx("button",{type:"button","data-motion-toggle":!0,onClick:()=>{a&&v(),i(d=>!d)},"aria-label":r(a?"program.preview.play":"program.preview.pause"),title:r(a?"program.preview.play":"program.preview.pause"),className:"inline-flex h-8 w-8 items-center justify-center rounded-sm text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","aria-pressed":a,children:e.jsx(f,{name:a?"Play":"Pause",size:14})})]}),e.jsxs("div",{className:"relative z-10","data-hero-flow-stage":!0,children:[e.jsx(F,{activeScene:w,group:"sources",t:r}),e.jsx(z,{activeScene:w,group:"sources"}),e.jsx(ue,{activeScene:g,animated:x}),e.jsx(z,{activeScene:w,group:"outcomes"}),e.jsx(F,{activeScene:w,group:"outcomes",t:r})]})]})}const ve=[{key:"bank",icon:"Landmark"},{key:"card",icon:"CreditCard"},{key:"receipts",icon:"Receipt"},{key:"suppliers",icon:"FileCheck"},{key:"cash",icon:"WalletCards"},{key:"forecast",icon:"TrendingUp"}],Ne=[{key:"cash",icon:"WalletCards"},{key:"reconciliation",icon:"GitMerge"},{key:"forecast",icon:"TrendingUp"}],ke=c.lazy(()=>V(()=>import("./BootstrapLandingGate-rl30fqXn.js"),__vite__mapDeps([0,1,2,3,4,5]))),
2Ce=()=>e.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background",children:e.jsx("div",{className:"h-12 w-12 animate-spin rounded-full border-b-2 border-primary"})}),Se=()=>{const{t:r}=j(),s=e.jsxs(e.Fragment,{children:[e.jsxs(B,{children:[e.jsx("title",{children:r("landing.seo.title")}),e.jsx("meta",{name:"description",content:r("landing.seo.description")}),e.jsx("meta",{name:"keywords",content:r("landing.seo.keywords")}),e.jsx("meta",{property:"og:title",content:r("landing.seo.title")}),e.jsx("meta",{property:"og:description",content:r("landing.seo.description")}),e.jsx("meta",{property:"og:type",content:"website"}),e.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),e.jsx("meta",{name:"twitter:title",content:r("landing.seo.title")}),e.jsx("meta",{name:"twitter:description",content:r("landing.seo.description")})]}),e.jsxs(H,{children:[e.jsx("section",{className:"relative overflow-hidden border-b border-border bg-background",children:e.jsxs("div",{className:"relative mx-auto max-w-[90rem] px-4 py-7 sm:px-6 lg:px-8 lg:py-6",children:[e.jsx("p",{className:"text-center text-sm font-semibold uppercase tracking-[0.14em] text-primary sm:text-base",children:r("landing.hero.eyebrow")}),e.jsx("h1",{className:"mx-auto mt-3 max-w-4xl text-center text-3xl font-semibold leading-tight text-foreground sm:text-4xl",children:r("landing.hero.mainTitle")}),e.jsx("p",{className:"mx-auto mt-4 max-w-3xl text-center text-sm leading-6 text-muted-foreground sm:text-base",children:r("landing.hero.support")}),e.jsx(we,{})]})}),e.jsx("section",{className:"border-b border-border bg-muted/20 py-4","aria-label":r("landing.bridge.aria"),children:e.jsx("div",{className:"mx-auto grid max-w-5xl gap-3 px-4 text-sm text-muted-foreground sm:grid-cols-3 sm:px-6 lg:px-8",children:Ne.map(t=>e.jsxs("div",{className:"flex items-center justify-center gap-2",children:[e.jsx(f,{name:t.icon,size:17,className:"text-primary"}),e.jsx("span",{children:r(`landing.bridge.${t.key}`)})]},t.key))})}),e.jsx("section",{id:"platform",className:"scroll-mt-24 py-16 lg:py-20","aria-labelledby":"platform-heading",children:e.jsxs("div",{className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-8",children:[e.jsx(M,{id:"platform-heading",eyebrow:r("landing.pillars.eyebrow"),title:r("landing.pillars.title")}),e.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:ve.map(t=>e.jsx("article",{className:`rounded-lg border p-5 ${t.featured?"border-primary/30 bg-primary/5 md:col-span-2 lg:col-span-3":"border-border bg-card"}`,children:e.jsxs("div",{className:t.featured?"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between":"",children:[e.jsxs("div",{className:t.featured?"flex min-w-0 items-start gap-4":"",children:[e.jsx("div",{className:"inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-md bg-primary/10 text-primary",children:e.jsx(f,{name:t.icon,size:20})}),e.jsxs("div",{className:t.featured?"min-w-0":"mt-4",children:[e.jsx("h3",{className:"text-lg font-semibold text-card-foreground",children:r(`landing.pillars.${t.key}.title`)}),e.jsx("p",{className:"mt-2 max-w-3xl text-sm leading-6 text-muted-foreground",children:r(`landing.pillars.${t.key}.body`)})]})]}),t.featured&&e.jsx("span",{className:"inline-flex w-fit shrink-0 rounded-full border border-primary/25 bg-background/80 px-3 py-1 text-xs font-semibold text-primary",children:r("landing.pillars.agent.badge")})]})},t.key))})]})}),e.jsx(Y,{}),e.jsx(K,{}),e.jsxs("section",{className:"mx-auto max-w-7xl px-4 py-16 sm:px-6 lg:px-8 lg:py-20",children:[e.jsx(M,{eyebrow:r("program.plansEyebrow"),title:r("program.plansTitle"),description:r("program.plansBody")}),e.jsx(Z,{headingLevel:"h3"}),e.jsxs("div",{className:"mt-7 flex flex-wrap gap-5 font-semibold text-primary",children:[e.jsx(A,{className:"underline",to:"/implementation",children:r("program.implementation")}),e.jsx(A,{className:"underline",to:"/security",children:r("marketing.nav.security")})]})]}),e.jsx(Q,{}),e.jsx(J,{})]})]});return e.jsx(c.Suspense,{fallback:e.jsx(Ce,{}),children:e.jsx(ke,{children:s})})};export{Se as default};
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.