PageSourceSearch

https://securoxen.io/assets/page-c3XOcrgR.js

js securoxen.io collected 2026-10-02 01:57:58 UTC 3,503 bytes, 1 lines download raw bytes

1import{j as e,i as c,h as j,d as g}from"./index-0qbe4j-K.js";import{b as d,L as p}from"./react-vendor-CuqwDvgQ.js";import{B as N}from"./base-layout-DaMwzoR8.js";import{E as b}from"./empty-ynZ7YKNF.js";import{S as a}from"./skeleton-BJ8OkINw.js";import{U as w,T as u}from"./underline-tabs-2JrkAtj2.js";import{O as y}from"./order-row-rtvRHVgE.js";import{b as k,c as E}from"./use-portal-overview-CH85dO9-.js";import{i as x}from"./engagements-fHqvU0Sw.js";import{i as O}from"./engagements-service-CdOU7Cm3.js";import"./separator-y_AUlMtH.js";import"./index-RMECr4EV.js";import"./index-BqofzlGR.js";import"./index-CiYLqn6R.js";import"./app-icon-AzWZizR9.js";import"./highlight-7Lme_vfI.js";import"./index-fQbr3YLv.js";import"./index-DMNugQWA.js";import"./sidebar-CkKgxlKr.js";import"./sheet-C6SrAI_i.js";import"./tooltip-CyqT2N0J.js";import"./index-DTk4Cdmh.js";import"./index-DjQahpwR.js";import"./index-Cpz9K9gG.js";import"./use-spring-D9a5Y3Ix.js";import"./index-l9j0_l5U.js";import"./badge-DDqArN_7.js";import"./index-DRrqZmx6.js";import"./index-D17hSi50.js";import"./page-transition-DPFLNUVD.js";import"./use-reduced-motion-CqF7cx4E.js";import"./useQuery-B4deSjS3.js";import"./messages-DOk92uVf.js";function ae(){const{state:t,isPending:s}=k(),h=E(),[i,l]=d.useState("active"),f=h.data??[],{active:n,past:m}=d.useMemo(()=>{const r=t.kind==="ready"?t.engagements:[];return{active:r.filter(x),past:r.filter(v=>!x(v))}},[t]),o=i==="active"?n:m;return e.jsx(N,{title:"Orders",description:"Every piece of work we have done for you, current and past.",icon:c,children:e.jsxs("div",{className:"flex flex-col gap-6",children:[e.jsxs(w,{active:i,label:"Order status",children:[e.jsxs(u,{value:"active",onSelect:r=>l(r),children:["Active"," ",e.jsx("span",{className:"text-muted-foreground tabular-nums",children:s?"":`(${n.length})`})]}),e.jsxs(u,{value:"past",onSelect:r=>l(r),children:["Past"," ",e.jsx("span",{className:"text-muted-foreground tabular-nums",children:s?"":`(${m.length})`})]})]}),s&&e.jsx("div",{className:"flex flex-col gap-3","aria-busy":"true","aria-live":"polite",children:[0,1].map(r=>e.jsxs("div",{className:"border-border space-y-3 rounded-xl border p-4",children:[e.jsx(a,{className:"h-5 w-56 max-w-full"}),e.jsx(a,{className:"h-4 w-32"}),e.jsx(a,{className:"h-1.5 w-full"})]},r))}),!s&&t.kind==="error"&&e.jsxs("div",{className:"flex gap-3 rounded-xl border border-amber-500/40 p-4",children:[e.jsx(j,{className:"mt-0.5 size-5 shrink-0 text-amber-500"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium",children:"Could not load your orders"}),e.jsxs("p",{className:"text-muted-foreground mt-1 text-sm leading-relaxed",children:["Nothing is lost - this is a display problem. Reload, and if it persists"," ",e.jsx(p,{to:"/contact",className:"text-primary underline underline-offset-2",children:"tell us"}),"."]})]})]}),!s&&o.length>0&&e.jsx("ul",{className:"flex flex-col gap-3",children:o.map(r=>e.jsx("li",{children:e.jsx(y,{engagement:r,invoices:O(f,r.id)})},r.id))}),!s&&t.kind!=="error"&&o.length===0&&e.jsx(b,{icon:e.jsx(c,{className:"size-8"}),title:i==="active"?"No work in progress":"Nothing finished yet",description:i==="active"?"When we start something for you, it appears here with its status and what it will produce.":"Completed and cancelled orders are kept here so you always have the record.",action:i==="active"?e.jsx(g,{variant:"outline",asChild:!0,children:e.jsx(p,{to:"/services",children:"What we take on"})}):void 0})]})})}export{ae 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.