1import{aJ as C,b as O,j as e,L as u,F as $,ak as L}from"./main-Cp7rj4La.js";import{u as H,b as z,f as T}from"./index-D4eo-TXN.js";import{F as B}from"./MagnifyingGlassIcon-ESjf9_xr.js";function R(r){return r?new Intl.DateTimeFormat("en-US",{dateStyle:"medium",timeStyle:"short"}).format(new Date(r)):"â"}function W({status:r}){const o=r==="waiting";return e.jsx("span",{className:"inline-flex items-center rounded-full px-2 py-1 text-label-12",style:{background:`color-mix(in srgb, var(--color-${o?"l3":"l1"}) 12%, transparent)`,color:`var(--color-${o?"l3":"l1"})`,border:`1px solid color-mix(in srgb, var(--color-${o?"l3":"l1"}) 30%, transparent)`,fontFamily:"var(--font-mono)"},children:o?"Waiting":"Ready"})}function U({order:r}){const o=!!r.deliveryEmailClickedAt;return e.jsx("span",{className:"inline-flex items-center rounded-full px-2 py-1 text-label-12",title:o?R(r.deliveryEmailClickedAt):"Not opened yet",style:{background:o?"color-mix(in srgb, var(--color-l1) 12%, transparent)":"var(--color-gray-alpha-200)",color:o?"var(--color-l1)":"var(--color-gray-700)",border:o?"1px solid color-mix(in srgb, var(--color-l1) 30%, transparent)":"1px solid var(--color-border)",fontFamily:"var(--font-mono)"},children:o?`Opened (${r.deliveryEmailClickCount})`:"Not Opened"})}const K=[{id:"status",header:"Status",cell:({row:r})=>e.jsx(W,{status:r.original.status})},{id:"order",header:"Order",cell:({row:r})=>e.jsx(u,{to:"/admin/orders/$id",params:{id:r.original.id},className:"rounded-sm text-label-14 transition-colors duration-150 hover:underline focus-visible:ring-2 focus-visible:ring-[var(--color-accent)]",style:{color:"var(--color-gray-1000)"},children:L(r.original)})},{accessorKey:"requesterEmail",header:"Customer",cell:({row:r})=>e.jsx("span",{className:"block max-w-xs truncate text-label-14",title:r.original.requesterEmail,style:{color:"var(--color-gray-900)"},children:r.original.requesterEmail})},{accessorKey:"tier",header:"Tier",cell:({row:r})=>e.jsx("span",{className:"text-label-14",style:{color:"var(--color-gray-900)"},children:r.original.tier})},{id:"deliveryEmailOpened",header:"Link Opened",cell:({row:r})=>e.jsx(U,{order:r.original})},{accessorKey:"createdAt",header:"Created",cell:({row:r})=>e.jsx("time",{dateTime:r.original.createdAt,className:"whitespace-nowrap text-label-14 tabular-nums",style:{color:"var(--color-gray-700)"},children:R(r.original.createdAt)})}],V=[],v=1e3,j=300,c={top:16,right:18,bottom:36,left:46},N=["var(--chart-series-1)","var(--chart-series-2)","var(--chart-series-3)","var(--chart-series-4)","var(--chart-series-5)","var(--chart-series-6)","var(--chart-series-7)","var(--chart-series-8)"],_={"private-design-md":"Private DESIGN.md","catalog-design-md":"Catalog DESIGN.md","private-vibecoder-kit":"Private VibeCoder Kit","catalog-vibecoder-kit":"Catalog VibeCoder Kit","catalog-vibecoder-kit-free-design-md":"Catalog Kit + DESIGN.md","standalone-product":"Standalone Product","mobile-starter-kit":"Mobile Starter Kit",manual:"Manual"};function F(r){return _[r]??r.split("-").filter(Boolean).map(o=>o.toLowerCase()==="md"?"MD":`${o.charAt(0).toUpperCase()}${o.slice(1)}`).join(" ")}function S(r){return new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",timeZone:"UTC"}).format(new Date(`${r}T00:00:00Z`))}function q(r){if(r<=4)return 4;const o=r/4,s=10**Math.floor(Math.log10(o)),l=o/s;return(l<=1?1:l<=2?2:l<=5?5:10)*s*4}const G=[7,14,30],X=new Intl.NumberFormat("en-US",{style:"percent",maximumFractionDigits:0,signDisplay:"exceptZero"});function Y(r,o,s){const l=r.days.slice(-s).reduce((i,d)=>i+(d.byTier[o]??0),0),t=r.days.slice(-s*2,-s).reduce((i,d)=>i+(d.byTier[o]??0),0);return{days:s,current:l,previous:t}}function Z(r,o){if(o===0&&r>0)return{label:"New",color:"var(--color-accent)"};if(o===0)return{label:"0%",color:"var(--color-gray-600)"};const s=(r-o)/o;return{label:X.format(s),color:s>0?"var(--chart-series-1)":s<0?"var(--chart-series-7)":"var(--color-gray-600)"}}function J({volume:r}){const o=new Intl.NumberFormat("en-US"),s=r.tiers.map((l,t)=>({...l,color:N[t%N.length],metrics:G.map(i=>Y(r,l.tier,i))})).sort((l,t)=>
1(t.metrics[2]?.current??0)-(l.metrics[2]?.current??0)||t.total-l.total);return e.jsxs("section",{"aria-labelledby":"tier-performance-title",className:"mt-4 overflow-hidden rounded-xl",style:{background:"var(--color-card)",border:"1px solid var(--color-border)"},children:[e.jsxs("header",{className:"border-b px-4 py-3 sm:px-5",style:{borderColor:"var(--color-border)"},children:[e.jsx("h2",{id:"tier-performance-title",className:"text-heading-16 text-balance",style:{color:"var(--color-gray-1000)"},children:"Tier Performance"}),e.jsx("p",{className:"mt-1 text-copy-13 text-pretty",style:{color:"var(--color-gray-700)"},children:"Each period compares with the immediately preceding period of the same length."})]}),s.length===0?e.jsx("p",{className:"px-5 py-6 text-copy-13",style:{color:"var(--color-gray-700)"},children:"No tier activity in the last 90 days."}):e.jsx("div",{className:"grid gap-4 p-4 sm:grid-cols-2 xl:grid-cols-4",children:s.map(l=>e.jsxs("article",{className:"min-w-0 rounded-lg p-3",style:{background:"var(--color-background-200)",border:"1px solid var(--color-border)"},children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[e.jsx("span",{className:"h-0.5 w-5 shrink-0","aria-hidden":"true",style:{background:l.color}}),e.jsx("h3",{className:"truncate text-label-13",title:F(l.tier),style:{color:"var(--color-gray-1000)"},children:F(l.tier)})]}),e.jsx("dl",{className:"mt-3 grid grid-cols-3",children:l.metrics.map((t,i)=>{const d=Z(t.current,t.previous);return e.jsxs("div",{className:i>0?"border-l pl-2":"",style:{borderColor:"var(--color-border)"},children:[e.jsxs("dt",{className:"text-label-12",style:{color:"var(--color-gray-600)"},children:[t.days,"D"]}),e.jsxs("dd",{className:"mt-1 flex min-w-0 items-baseline gap-1.5",children:[e.jsx("span",{className:"text-label-14 tabular-nums",style:{color:"var(--color-gray-1000)",fontFamily:"var(--font-mono)"},children:o.format(t.current)}),e.jsx("span",{className:"truncate text-label-12 tabular-nums","aria-label":`${d.label} compared with ${o.format(t.previous)} orders in the previous ${t.days} days`,title:`${o.format(t.previous)} in the previous ${t.days} days`,style:{color:d.color,fontFamily:"var(--font-mono)"},children:d.label})]})]},t.days)})})]},l.tier))})]})}function Q({volume:r}){const[o,s]=O.useState(null),l=new Intl.NumberFormat("en-US"),t=v-c.left-c.right,i=j-c.top-c.bottom,d=q(Math.max(...r.days.map(a=>a.total),0)),w=Array.from({length:5},(a,n)=>d/4*n),m=[0,29,59,r.days.length-1],h=[0,14,29,44,59,74,r.days.length-1],p=a=>c.left+a/Math.max(1,r.days.length-1)*t,k=a=>c.top+i-a/d*i,y=[{key:"total",label:"Total",color:"var(--color-accent)",total:r.total,values:r.days.map(a=>a.total)},...r.tiers.map((a,n)=>({key:a.tier,label:F(a.tier),color:N[n%N.length],total:a.total,values:r.days.map(x=>x.byTier[a.tier]??0)}))],f=o===null?null:r.days[o],g=o===null?null:p(o),b=260,A=42+y.length*18,M=g===null?0:g+b+12>v-c.right?g-b-12:g+12;function P(a){const n=a.currentTarget.getBoundingClientRect(),x=(a.clientX-n.left)/n.width*v,D=Math.min(r.days.length-1,Math.max(0,Math.round((x-c.left)/t*(r.days.length-1))));s(E=>E===D?E:D)}function I(a){["ArrowLeft","ArrowRight","Home","End"].includes(a.key)&&(a.preventDefault(),s(n=>{if(a.key==="Home")return 0;if(a.key==="End")return r.days.length-1;const x=n??r.days.length-1;return a.key==="ArrowLeft"?Math.max(0,x-1):Math.min(r.days.length-1,x+1)}))}return e.jsxs("section",{"aria-labelledby":"order-volume-title",className:"overflow-hidden rounded-xl",style:{background:"var(--color-card)",border:"1px solid var(--color-border)"},children:[e.jsxs("header",{className:"flex flex-col gap-4 border-b p-5 sm:flex-row sm:items-start sm:justify-between",style:{borderColor:"var(--color-border)"},children:[e.jsxs("div",{children:[e.jsx("h2",{id:"order-volume-title",className:"text-heading-16 text-balance",style:{color:"var(--color-gray-1000)"},children:"90-Day Order Volume"}),e.jsx("p",{className:"mt-1 text-copy-13 text-pretty",style:{color:"var(--color-gray-700)"},children:"Daily order count in UTC, split by order type."})]}),e.jsxs("div",{className:"shrink-0 sm:text-right",children:[e.jsx("p",{className:"text-label-12",style:{color:"var(--color-gray-700)",fontFamily:"var(--font-mono)"},children:"90-Day Total"}),e.jsx("p",{className:"mt-1 text-heading-24 tabular-nums",style:{color:"var(--color-gray-1000)",fontFamily:"var(--font-mono)"},children:l.format(r.total)})]})]}),e.jsx("ul",{"aria-label":"Order volume series",className:"flex flex-wrap gap-x-4 gap-y-2 border-b px-5 py-3",style:{borderColor:"var(--color-border)"},children:y.map(a=>e.jsxs("li",{className:"flex min-w-0 items-center gap-2",children:[e.jsx("span",{className:a.key==="total"?"h-0.5 w-5 shrink-0":"h-px w-5 shrink-0","aria-hidden":"true",style:{background:a.color}}),e.jsx("span",{className:"truncate text-label-12",title:a.label,style:{color:"var(--color-gray-800)"},children:a.label}),e.jsx("span",{className:"text-label-12 tabular-nums",style:{color:"var(--color-gray-600)",fontFamily:"var(--font-mono)"},children:l.format(a.total)})]},a.key))}),e.jsxs("div",{tabIndex:0,"aria-label":"Interactive 90-day order volume chart","aria-describedby":"order-volume-chart-instructions order-volume-chart-live",onFocus:()=>s(a=>a??r.days.length-1),onBlur:()=>s(null),onKeyDown:I,onPointerLeave:()=>s(null),className:"overflow-x-auto p-4 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--color-accent)] sm:p-5",children:[e.jsx("p",{id:"order-volume-chart-instructions",className:"sr-only",children:"Move the pointer across the chart or use the Left and Right Arrow keys to inspect daily values. Use Home and End to jump to the first or last day."}),e.jsx("p",{id:"order-volume-chart-live",className:"sr-only","aria-live":"polite",children:f?`${S(f.date)}. ${y.map(a=>`${a.label}: ${l.format(a.values[o??0]??0)}`).join(". ")}.`:""}),e.jsxs("svg",{role:"img","aria-labelledby":"order-volume-chart-title order-volume-chart-description",onPointerMove:P,width:v,height:j,viewBox:`0 0 ${v} ${j}`,className:"h-auto min-w-[720px]",style:{width:"100%"},children:[e.jsx("title",{id:"order-volume-chart-title",children:"Daily orders over the last 90 days"}),e.jsxs("desc",{id:"order-volume-chart-description",children:["A sharp line shows total daily orders. Additional lines show daily orders for each order type. The 90-day total is ",l.format(r.total),"."]}),e.jsx("rect",{x:c.left,y:c.top,width:t,height:i,fill:"transparent",pointerEvents:"all"}),w.map(a=>{const n=k(a);return e.jsxs("g",{children:[e.jsx("line",{x1:c.left,x2:v-c.right,y1:n,y2:n,stroke:"var(--color-border)",strokeWidth:"1",shapeRendering:"crispEdges"}),e.jsx("text",{x:c.left-10,y:n+4,textAnchor:"end",fill:"var(--color-gray-600)",fontFamily:"var(--font-mono)",fontSize:"11",children:l.format(a)})]},a)}),h.map(a=>e.jsx("line",{x1:p(a),x2:p(a),y1:c.top,y2:c.top+i,stroke:"var(--color-border)",strokeWidth:"1",strokeDasharray:"2 6",shapeRendering:"crispEdges"},a)),y.slice().reverse().map(a=>e.jsx("polyline",{points:a.values.map((n,x)=>`${p(x)},${k(n)}`).join(" "),fill:"none",stroke:a.color,strokeWidth:a.key==="total"?3:1.5,strokeLinecap:"square",strokeLinejoin:"miter",vectorEffect:"non-scaling-stroke"},a.key)),f&&g!==null?e.jsxs("g",{pointerEvents:"none",children:[e.jsx("line",{x1:g,x2:g,y1:c.top,y2:c.top+i,stroke:"var(--color-gray-500)",strokeWidth:"1",shapeRendering:"crispEdges"}),y.slice().reverse().map(a=>{const n=a.values[o??0]??0;return e.jsx("rect",{x:g-3,y:k(n)-3,width:"6",height:"6",fill:a.color,stroke:"var(--color-card)",strokeWidth:"1"},a.key)}),e.jsxs("g",{transform:`translate(${M} ${c.top+8})`,children:[e.jsx("rect",{width:b,height:A,rx:"8",fill:"var(--color-background-200)",stroke:"var(--color-gray-500)"}),e.jsx("text",{x:"12",y:"20",fill:"var(--color-gray-1000)",fontFamily:"var(--font-mono)",fontSize:"12",children:S(f.date)}),e.jsx("line",{x1:"12",x2:b-12,y1:"30",y2:"30",stroke:"var(--color-border)",shapeRendering:"crispEdges"}),y.map((a,n)=>{const x=48+n*18;return e.jsxs("g",{children:[e.jsx("rect",{x:"12",y:x-7,width:"7",height:"7",fill:a.color}),e.jsx("text",{x:"26",y:x,fill:"var(--color-gray-800)",fontFamily:"var(--font-sans)",fontSize:"11",children:a.label}),e.jsx("text",{x:b-12,y:x,textAnchor:"end",fill:"var(--color-gray-1000)",fontFamily:"var(--font-mono)",fontSize:"11",children:l.format(a.values[o??0]??0)})]},a.key)})]})]}):null,m.map(a=>{const n=r.days[a];return n?e.jsx("text",{x:p(a),y:j-8,textAnchor:a===0?"start":a===r.days.length-1?"end":"middle",fill:"var(--color-gray-600)",fontFamily:"var(--font-mono)",fontSize:"11",children:S(n.date)},n.date):null})]})]})]})}function oe(){const r=C.useLoaderData(),o=C.useSearch(),s=C.useNavigate(),l=o.page??1,t=r.ok?r.page:l,i=new Intl.NumberFormat("en-US"),d=H({data:r.ok?r.orders:V,columns:K,getCoreRowModel:z(),getRowId:m
1=>m.id,manualFiltering:!0,manualPagination:!0,pageCount:r.ok?r.totalPages:1,state:{globalFilter:o.email??"",pagination:{pageIndex:t-1,pageSize:r.ok?r.pageSize:25}}});O.useEffect(()=>{!r.ok||l===r.page||s({search:m=>({...m,page:r.page>1?r.page:void 0}),replace:!0,resetScroll:!1})},[r,s,l]);function w(m){m.preventDefault();const h=new FormData(m.currentTarget),p=String(h.get("email")??"").trim();s({search:{email:p||void 0,page:void 0},resetScroll:!1})}return e.jsxs("div",{className:"flex flex-col",style:{background:"var(--color-background)",minHeight:"100vh"},children:[e.jsxs("main",{id:"main-content",className:"mx-auto w-full max-w-6xl flex-1 px-4 py-8 sm:px-6 lg:px-10",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-end sm:justify-between gap-4 mb-6",children:[e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("p",{className:"text-label-13",style:{color:"var(--color-accent)",fontFamily:"var(--font-mono)"},children:"Admin"}),e.jsx("h1",{className:"text-heading-32 text-balance",style:{color:"var(--color-gray-1000)"},children:"Orders"})]}),r.ok?e.jsxs("div",{className:"flex flex-wrap gap-3",children:[e.jsx(u,{to:"/admin/catalog-deliveries",search:{q:"",status:"all",source:"all",page:1},className:"inline-flex min-h-10 items-center rounded-md px-4 text-label-13 transition-colors hover:bg-[var(--color-gray-100)] focus-visible:ring-2 focus-visible:ring-[var(--color-accent)]",style:{border:"1px solid var(--color-border)",color:"var(--color-gray-1000)"},children:"Automatic Delivery"}),e.jsx(u,{to:"/admin/orders/new",className:"inline-flex min-h-10 w-fit touch-manipulation items-center rounded-md px-4 text-label-13 transition-opacity duration-150 hover:opacity-90 focus-visible:ring-2 focus-visible:ring-[var(--color-accent)]",style:{background:"var(--color-accent)",color:"var(--color-background)"},children:"New Manual Order"})]}):null]}),r.ok?e.jsxs(e.Fragment,{children:[e.jsx(Q,{volume:r.orderVolume}),e.jsx(J,{volume:r.orderVolume}),e.jsxs("section",{"aria-labelledby":"orders-table-title",className:"mt-6 overflow-hidden rounded-xl",style:{background:"var(--color-card)",border:"1px solid var(--color-border)"},children:[e.jsxs("div",{className:"flex flex-col gap-4 border-b p-4 lg:flex-row lg:items-end lg:justify-between lg:p-5",style:{borderColor:"var(--color-border)"},children:[e.jsxs("div",{children:[e.jsx("h2",{id:"orders-table-title",className:"text-heading-16",style:{color:"var(--color-gray-1000)"},children:"Order Queue"}),e.jsx("p",{className:"mt-1 text-copy-13 text-pretty",style:{color:"var(--color-gray-700)"},children:"Waiting orders appear first, with the newest orders at the top."})]}),e.jsxs("form",{onSubmit:w,role:"search",className:"flex w-full max-w-md items-center gap-2",children:[e.jsx("label",{htmlFor:"order-email-search",className:"sr-only",children:"Search Orders by Email"}),e.jsxs("div",{className:"relative min-w-0 flex-1",children:[e.jsx(B,{className:"pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2","aria-hidden":"true",style:{color:"var(--color-gray-600)"}}),e.jsx("input",{id:"order-email-search",name:"email",type:"search",inputMode:"email",autoComplete:"off",spellCheck:!1,defaultValue:o.email??"",placeholder:"Search by emailâ¦",className:"h-10 w-full rounded-md pl-9 pr-3 text-copy-14 transition-colors duration-150 placeholder:text-[var(--color-gray-600)] focus-visible:ring-2 focus-visible:ring-[var(--color-accent)]",style:{background:"var(--color-background-200)",border:"1px solid var(--color-border)",color:"var(--color-gray-1000)"}},o.email??"")]}),e.jsx("button",{type:"submit",className:"h-10 shrink-0 touch-manipulation rounded-md px-4 text-label-13 transition-colors duration-150 hover:bg-[var(--color-gray-200)] focus-visible:ring-2 focus-visible:ring-[var(--color-accent)]",style:{background:"var(--color-gray-100)",border:"1px solid var(--color-border)",color:"var(--color-gray-1000)"},children:"Search"})]})]}),e.jsxs("div",{className:"flex items-center justify-between gap-4 border-b px-4 py-3 sm:px-5",style:{borderColor:"var(--color-border)"},children:[e.jsxs("p",{className:"text-label-12 tabular-nums","aria-live":"polite",style:{color:"var(--color-gray-700)",fontFamily:"var(--font-mono)"},children:[i.format(r.totalOrders)," ",r.totalOrders===1?"order":"orders"]}),o.email?e.jsx(u,{to:"/admin/orders",search:{email:void 0,page:void 0},resetScroll:!1,className:"inline-flex min-h-10 touch-manipulation items-center rounded-md px-2 text-label-12 transition-colors duration-150 hover:bg-[var(--color-gray-100)] focus-visible:ring-2 focus-visible:ring-[var(--color-accent)]",style:{color:"var(--color-gray-900)"},children:"Clear Search"}):null]}),d.getRowModel().rows.length===0?e.jsxs("div",{className:"px-5 py-12 text-center",children:[e.jsx("h3",{className:"text-heading-20",style:{color:"var(--color-gray-1000)"},children:o.email?"No Matching Orders":"No Orders Yet"}),e.jsx("p",{className:"mx-auto mt-2 max-w-md text-copy-14 text-pretty",style:{color:"var(--color-gray-700)"},children:o.email?`No customer email contains â${o.email}â. Try another email address.`:"New orders will appear here after they are created."})]}):e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full min-w-[980px] border-collapse text-left",children:[e.jsx("caption",{className:"sr-only",children:"Orders sorted by delivery status and newest creation date"}),e.jsx("thead",{children:d.getHeaderGroups().map(m=>e.jsx("tr",{style:{borderBottom:"1px solid var(--color-border)"},children:m.headers.map(h=>e.jsx("th",{scope:"col",className:"whitespace-nowrap px-4 py-3 text-label-12",style:{color:"var(--color-gray-700)"},children:h.isPlaceholder?null:T(h.column.columnDef.header,h.getContext())},h.id))},m.id))}),e.jsx("tbody",{children:d.getRowModel().rows.map(m=>e.jsx("tr",{className:"transition-colors duration-150 hover:bg-[var(--color-gray-100)]",style:{borderBottom:"1px solid var(--color-border)"},children:m.getVisibleCells().map(h=>e.jsx("td",{className:"px-4 py-3",children:T(h.column.columnDef.cell,h.getContext())},h.id))},m.id))})]})}),r.totalPages>
11?e.jsxs("nav",{"aria-label":"Order Pages",className:"flex flex-col gap-3 border-t px-4 py-4 sm:flex-row sm:items-center sm:justify-between sm:px-5",style:{borderColor:"var(--color-border)"},children:[e.jsxs("p",{className:"text-copy-13 tabular-nums",style:{color:"var(--color-gray-700)"},children:[i.format((t-1)*r.pageSize+1),"â",i.format(Math.min(t*r.pageSize,r.totalOrders))," ","of ",i.format(r.totalOrders)]}),e.jsxs("div",{className:"flex items-center gap-2",children:[d.getCanPreviousPage()?e.jsx(u,{to:"/admin/orders",search:{email:o.email,page:t-1===1?void 0:t-1},className:"inline-flex min-h-10 touch-manipulation items-center rounded-md px-3 text-label-13 transition-colors duration-150 hover:bg-[var(--color-gray-100)] focus-visible:ring-2 focus-visible:ring-[var(--color-accent)]",style:{border:"1px solid var(--color-border)",color:"var(--color-gray-900)"},children:"Previous"}):null,e.jsxs("span",{className:"px-2 text-label-12 tabular-nums",style:{color:"var(--color-gray-700)",fontFamily:"var(--font-mono)"},children:["Page ",i.format(t)," of"," ",i.format(r.totalPages)]}),d.getCanNextPage()?e.jsx(u,{to:"/admin/orders",search:{email:o.email,page:t+1},className:"inline-flex min-h-10 touch-manipulation items-center rounded-md px-3 text-label-13 transition-colors duration-150 hover:bg-[var(--color-gray-100)] focus-visible:ring-2 focus-visible:ring-[var(--color-accent)]",style:{border:"1px solid var(--color-border)",color:"var(--color-gray-900)"},children:"Next"}):null]})]}):null]})]}):e.jsxs("div",{className:"rounded-xl p-5",style:{background:"var(--color-card)",border:"1px solid var(--color-border)"},children:[e.jsx("p",{className:"text-copy-14",style:{color:"var(--color-gray-900)"},children:r.message}),e.jsx(u,{to:"/auth",search:{next:"/admin/orders"},className:"mt-4 inline-flex min-h-10 touch-manipulation items-center rounded-md px-3 text-label-13 transition-opacity duration-150 hover:opacity-90 focus-visible:ring-2 focus-visible:ring-[var(--color-accent)]",style:{background:"var(--color-accent)",color:"var(--color-background)"},children:"Sign In"})]})]}),e.jsx($,{})]})}export{oe 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.