PageSourceSearch

https://easy-split-test.lovable.app/assets/tests._id.index-DCI_KDzt.js

js easy-split-test.lovable.app collected 2026-10-03 03:29:52 UTC 2,773 bytes, 1 lines download raw bytes

1import{c as p,j as e,L as u,B as j}from"./index-BPqwWd53.js";import{u as v}from"./useQuery-XvgIAEh6.js";import{u as f,g as b}from"./tests.functions-B2yUxm7C.js";function k(){const{id:t}=p({from:"/_authenticated/tests/$id/"}),a=f(b),{data:s,isLoading:i}=v({queryKey:["test",t],queryFn:()=>a({data:{id:t}}),refetchInterval:15e3});if(i||!s)return e.jsx("main",{className:"mx-auto max-w-5xl px-6 py-10 text-sm text-muted-foreground",children:"Laden…"});const{visitsA:r,visitsB:n,convA:o,convB:m}=s.stats,l=r?o/r:0,d=n?m/n:0,g=r+n;let c="Nog niet genoeg data";return g>=30&&(l===d?c="Resultaten zijn momenteel gelijk":c=l>d?"Variant A wint momenteel":"Variant B wint momenteel"),e.jsxs("main",{className:"mx-auto max-w-5xl px-6 py-10",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-semibold tracking-tight",children:s.name}),e.jsxs("p",{className:"text-sm text-muted-foreground break-all",children:["Bedankpagina: ",s.entry_url]})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(u,{to:"/tests/$id/setup",params:{id:t},children:e.jsx(j,{variant:"outline",children:"Scripts plaatsen"})}),e.jsx(u,{to:"/tests/$id/settings",params:{id:t},children:e.jsx(j,{variant:"outline",children:"Instellingen"})})]})]}),e.jsxs("div",{className:"mt-6 rounded-2xl border bg-card p-6 text-center shadow-sm",children:[e.jsx("div",{className:"text-xs uppercase tracking-wide text-muted-foreground",children:"Winnaar"}),e.jsx("div",{className:"mt-1 text-xl font-semibold text-primary",children:c})]}),e.jsxs("div",{className:"mt-6 grid gap-6 md:grid-cols-2",children:[e.jsx(h,{label:"Variant A",url:s.variant_a_url,visits:r,conv:o,rate:l}),e.jsx(h,{label:"Variant B",url:s.variant_b_url,visits:n,conv:m,rate:d})]})]})}function h({label:t,url:a,visits:s,conv:i,rate:r}){return e.jsxs("div",{className:"rounded-2xl border bg-card p-6 shadow-sm",children:[e.jsxs("div",{className:"flex items-baseline justify-between",children:[e.jsx("h3",{className:"text-lg font-semibold",children:t}),e.jsx("a",{href:a,target:"_blank",rel:"noreferrer",className:"text-xs text-primary hover:underline",children:"Openen"})]}),e.jsx("p",{className:"mt-1 text-xs text-muted-foreground break-all",children:a}),e.jsxs("div",{className:"mt-6 grid grid-cols-3 gap-3",children:[e.jsx(x,{label:"Bezoekers",value:s}),e.jsx(x,{label:"Conversies",value:i}),e.jsx(x,{label:"Ratio",value:`${(r*100).toFixed(1)}%`})]})]})}function x({label:t,value:a}){return e.jsxs("div",{className:"rounded-lg bg-muted/40 px-3 py-4 text-center",children:[e.jsx("div",{className:"text-[11px] uppercase tracking-wide text-muted-foreground",children:t}),e.jsx("div",{className:"mt-1 text-2xl font-semibold",children:a})]})}export{k as component};

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.