1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f0fe5351-7c03-4a92-9e33-6e5082cdaba3",e._sentryDebugIdIdentifier="sentry-dbid-f0fe5351-7c03-4a92-9e33-6e5082cdaba3")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4432],{6296:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(78340).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},21362:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(78340).A)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},27500:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>u});var a=s(95155),r=s(12115),l=s(73321),i=s(97086),n=s(27529),d=s(40980),c=s(15282),o=s(6296),x=s(92289),m=s(41641),p=s(21362);function u(){let e=(0,l.useRouter)(),[t,s]=(0,r.useState)(!0),[u,h]=(0,r.useState)([]),[y,b]=(0,r.useState)(0),[g,f]=(0,r.useState)(1),[j,N]=(0,r.useState)(1),[w,v]=(0,r.useState)(!0),k=(0,r.useCallback)(async e=>{v(!0);try{let t=await n.Xi.emailReplies.list({page:e,limit:25});s(t.enabled),h(t.replies),b(t.total),f(t.page),N(t.pages)}catch{h([]),b(0)}finally{v(!1)}},[]);return(0,r.useEffect)(()=>{(async()=>{try{await n.Xi.emailReplies.markSeen()}catch{}await k(1)})()},[k]),(0,a.jsx)(i.A,{children:(0,a.jsxs)("div",{className:"max-w-4xl mx-auto px-4 py-6",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-6",children:[(0,a.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-xl bg-brand-50 text-brand-700",children:(0,a.jsx)(c.A,{size:20})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h1",{className:"text-xl font-semibold text-gray-900",children:"Email replies"}),(0,a.jsx)("p",{className:"text-sm text-gray-500",children:"Candidates who replied to your outreach â synced from connected Gmail."})]})]}),!t&&(0,a.jsx)("div",{className:"rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-amber-800",children:"Email reply sync is not enabled on this deployment. Replies still appear on each candidate's profile after manual sync."}),t&&w&&(0,a.jsxs)("div",{className:"flex items-center justify-center py-16 text-gray-400",children:[(0,a.jsx)(o.A,{className:"animate-spin mr-2",size:18}),"Loading repliesâ¦"]}),t&&!w&&0===u.length&&(0,a.jsxs)("div",{className:"rounded-xl border border-dashed border-gray-200 bg-gray-50 px-6 py-12 text-center",children:[(0,a.jsx)(x.A,{className:"mx-auto mb-3 text-gray-300",size:32}),(0,a.jsx)("p",{className:"text-gray-600 font-medium",children:"No candidate replies yet"}),(0,a.jsx)("p",{className:"text-sm text-gray-400 mt-1",children:"When someone replies to a bulk email or outreach, they'll show up here automatically."})]}),t&&!w&&u.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{className:"text-xs text-gray-500 mb-3",children:[y," candidate",1===y?"":"s"," with inbound replies"]}),(0,a.jsx)("ul",{className:"divide-y divide-gray-100 rounded-xl border border-gray-200 bg-white shadow-sm overflow-hidden",children:u.map(t=>(0,a.jsx)("li",{children:(0,a.jsxs)("button",{type:"button",onClick:()=>e.push(`/candidates/${t.candidateId}`),className:"w-full text-left px-4 py-3 hover:bg-gray-50 transition-colors flex items-start gap-3",children:[(0,a.jsx)("div",{className:"mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-green-100 text-green-700",children:(0,a.jsx)(x.A,{size:14})}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,a.jsx)("span",{className:"font-medium text-gray-900",children:t.candidateName||t.candidateEmail}),t.unread&&(0,a.jsx)("span",{className:"text-[10px] font-semibold uppercase tracking-wide px-1.5 py-0.5 rounded-full bg-brand-100 text-brand-800",children:"New"}),(0,a.jsx)("span",{className:"text-xs text-gray-400 ml-auto shrink-0",children:(0,d.r6)(t.latestInboundAt)})]}),(0,a.jsx)("p",{className:"text-sm text-gray-600 truncate mt-0.5",children:t.subject||"(no subject)"}),t.snippet&&(0,a.jsx)("p",{className:"text-xs text-gray-400 truncate mt-0.5",children:t.snippet})]})]})},t.candidateId))}),j>1&&(0,a.jsxs)("div",{className:"flex items-center justify-between mt-4 text-sm",children:[(0,a.jsxs)("button",{type:"button",disabled:g<=1,onClick:()=>k(g-1),className:(0,d.cn)("inline-flex items-center gap-1 px-3 py-1.5 rounded-lg border",g<=1?"opacity-40 cursor-not-allowed":"hover:bg-gray-50"),children:[(0,a.jsx)(m.A,{size:14})," Previous"]}),(0,a.jsxs)("span",{className:"text-gray-500",children:["Page ",g," of ",j]}),(0,a.jsxs)("button",{type:"button",disabled:g>=j,onClick:()=>k(g+1),className:(0,d.cn)("inline-flex items-center gap-1 px-3 py-1.5 rounded-lg border",g>=j?"opacity-40 cursor-not-allowed":"hover:bg-gray-50"),children:["Next ",(0,a.jsx)(p.A,{size:14})]})]})]})]})})}},33584:(e,t,s)=>{Promise.resolve().then(s.bind(s,27500))},41641:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(78340).A)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},92289:(e,t,s)=>{"use strict";s.d(t,{A:()=>a});let a=(0,s(78340).A)("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]])}},e=>{e.O(0,[8500,8437,9060,2917,7529,7086,9793,8441,2209,7358],()=>e(e.s=33584)),_N_E=e.O()}]);
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.