PageSourceSearch

https://www.asgardhire.ai/assets/auto-apply-activity.lazy-zq7QTslr.js

js asgardhire.ai collected 2026-10-02 01:11:29 UTC 2,765 bytes, 1 lines download raw bytes

1import{bE as f,r as n,j as e,at as g,L as h,al as y,T as v,c as j}from"./index-D4_zyxsV.js";import{P as N}from"./PublicFooter-CqDdNQ11.js";import{b as R,D as A,R as w}from"./RunDetailSheet-EhdgO4SY.js";import"./urls-Dpy4Y14n.js";import"./play-circle-CWMY5nSz.js";import"./useResourceCostConfirmation-DYvsSU1b.js";import"./InsufficientCreditsDialog-hMsWjTsA.js";import"./tooltip-Bsh7qjGa.js";import"./runStatusLabels-DBpyI8L6.js";import"./radio-BSAVU_KX.js";import"./mail-DVrsqgN6.js";const d=14;function D(s,r){const o=Math.max(0,Math.min(r,s.length));return{visible:s.slice(0,o),remaining:s.length-o}}const k=()=>{};function S(){const{data:s=[],isLoading:r}=f(),[o,u]=n.useState(d),[c,a]=n.useState(null),i=n.useMemo(()=>R([],s,Date.now()).days,[s]),{visible:m,remaining:l}=D(i,o),p=s.find(t=>t.run_id===c)??null,x=s.find(t=>["ASSIGNED","RUNNING","PAUSED"].includes(t.status))??null,b=n.useCallback(t=>{a(t.run_id)},[]);return e.jsxs("div",{className:"flex min-h-screen flex-col bg-muted/50 font-funnel",children:[e.jsx(g,{}),e.jsxs("main",{className:"mx-auto w-full max-w-3xl flex-1 px-4 py-6 sm:px-6 sm:py-8",children:[e.jsxs("div",{className:"mb-4 flex flex-col items-start justify-between gap-3 sm:flex-row sm:gap-4",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-medium tracking-[-0.045em] text-foreground sm:text-3xl",children:"Auto-apply activity"}),e.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Every auto-apply you have run, newest first."})]}),e.jsxs(h,{to:"/auto-apply",className:"inline-flex flex-shrink-0 items-center gap-1.5 rounded-lg border border-border bg-card px-3 py-2 text-xs font-semibold text-muted-foreground transition-colors hover:bg-muted/50",children:[e.jsx(y,{size:14})," Back to Auto-apply"]})]}),r?e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[e.jsx(v,{size:16,variant:"current",spin:!0,title:""})," Loading activity…"]}):i.length===0?e.jsx("div",{className:"rounded-2xl border border-border bg-card px-5 py-8 text-center text-base text-muted-foreground",children:"No auto-apply activity yet."}):e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"overflow-hidden rounded-2xl border border-border bg-card shadow-sm",children:m.map(t=>e.jsx(A,{day:t,onOpenRun:b,onRemoveParked:k,removing:!1,setupComplete:!0},t.key))}),l>0?e.jsxs("button",{type:"button",onClick:()=>u(t=>t+d),className:"mt-3 w-full cursor-pointer rounded-lg border border-border bg-card py-2 text-sm font-semibold text-muted-foreground transition-colors hover:bg-muted/50",children:["Show older days (",l," left)"]}):null]})]}),e.jsx(N,{}),e.jsx(w,{run:p,blockingRun:x,onClose:()=>a(null)})]})}const O=j("/_candidate/auto-apply-activity")({component:S});export{O as Route};

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.