PageSourceSearch

https://app.meetalfred.com/hIl4D4Iw.js

js meetalfred.com collected 2026-10-01 13:55:21 UTC 11,372 bytes, 1 lines download raw bytes

1import{q as e,J as u,x as D,w as l,D as V,p as S}from"./-1RkBR9N.js";import{d as r,u as J}from"./DcX6Tqyv.js";import{aC as se,aD as M,aE as ne,a8 as Z,Z as P,c6 as t,Q as ee,as as U,c7 as oe,c8 as le,a as I,c9 as re,ar as Y,ae as g,ca as ce,G as de,cb as W,aq as me,r as he,cc as xe,cd as pe,bw as ue,l as O,ce as ge,aj as Ee,N as fe,cf as De,cg as Te,by as ye,o as je,M as ve,bo as Ae,k as Se,f as Ie,g as Ne,h as L,i as Ce,H as _e,d as we,aH as Fe,ah as be,bp as Me,bE as Oe}from"./CiccYPAo.js";import"./OD3CCZJ0.js";import"./CDnTS3JI.js";import{u as Le}from"./BKCQFyoj.js";import"./q0y4LOUZ.js";import"./WS1EPDiJ.js";import{l as Pe}from"./BEJVGkx6.js";import{u as Re}from"./DUNqYFrB.js";import"./CHXTyely.js";import"./DT8QgAgI.js";const ke=8,Be=D(l,{target:"e1r5sya66"})("flex:1;min-width:0;height:100%;display:flex;flex-direction:column;border-radius:12px;border:1px solid ",({theme:o})=>o.palette.greyBlue[30],";background-color:#ffffff;overflow:hidden;"),Ge=D(l,{target:"e1r5sya65"})({name:"1qcgktf",styles:"flex:1;min-height:0;overflow:hidden"}),z=D(l,{target:"e1r5sya64"})({name:"26yv6c",styles:"flex:0 0 260px;min-width:0;display:flex;align-items:center;gap:12px"}),He=D(l,{target:"e1r5sya63"})({name:"89y6mi",styles:"flex:1;min-width:0;display:flex;flex-direction:column;gap:6px"}),$=D(l,{target:"e1r5sya62"})({name:"10v03cg",styles:"flex:1 1 0;min-width:0"}),q=D(l,{target:"e1r5sya61"})({name:"1i5605o",styles:"flex:0 0 220px;min-width:0"}),K=D(l,{target:"e1r5sya60"})({name:"19dlx8g",styles:"flex:0 0 200px;min-width:0"}),X=({"data-testid":o="activity-table-skeleton"})=>e.jsxs(Be,{"data-testid":o,children:[e.jsxs(se,{children:[e.jsx(z,{children:e.jsx(u,{variant:"rounded",width:48,height:18,sx:M})}),e.jsx($,{children:e.jsx(u,{variant:"rounded",width:56,height:18,sx:M})}),e.jsx(q,{children:e.jsx(u,{variant:"rounded",width:72,height:18,sx:M})}
1),e.jsx(K,{children:e.jsx(u,{variant:"rounded",width:42,height:18,sx:M})})]}),e.jsx(Ge,{children:Array.from({length:ke},(a,c)=>e.jsxs(ne,{sx:{minHeight:64},children:[e.jsxs(z,{children:[e.jsx(u,{variant:"circular",width:32,height:32}),e.jsxs(He,{children:[e.jsx(u,{variant:"rounded",width:"68%",height:16}),e.jsx(u,{variant:"rounded",width:"48%",height:12})]})]}),e.jsx($,{children:e.jsx(u,{variant:"rounded",width:"82%",height:16})}),e.jsx(q,{children:e.jsx(u,{variant:"rounded",width:"76%",height:16})}),e.jsxs(K,{children:[e.jsx(u,{variant:"rounded",width:"64%",height:16}),e.jsx(u,{variant:"rounded",width:"40%",height:12,sx:{mt:"6px"}})]})]},c))})]}),We=({values:o,onChange:a})=>{const{companyName:c}=Z(),{names:n,campaigns:E,filters:T}=o,{data:f=[]}=Re({},{refetchOnMount:!0}),m={[t.ALFRED_DESKTOP_APP_ACTION]:`${c} action`,[t.ALREADY_CONNECTED]:"Already connected",[t.ALREADY_INVITED]:"Already invited",[t.CHAINED_MESSAGES_SENT]:"Chained messages sent",[t.CONNECTED]:"Connected",[t.EMAIL_BOUNCED]:"Email bounced",[t.EMAIL_OPENED]:"Email opened",[t.EMAIL_REPLY_DETECTED]:"Email replies",[t.EMAILED]:"Emailed",[t.EVENT_MESSAGE_SENT]:"Event Messages",[t.FOUND]:"Found",[t.GREETINGS]:"Greetings",[t.GROUP_MESSAGE_SENT]:"Group Messages",[t.INMAIL_REPLY_DETECTED]:"InMail replies",[t.INMAIL_SKIPPED]:"InMail Skipped",[t.INMAIL_MESSAGE_SENT]:"InMails",[t.INVITE_TO_COMPANY_SENT]:"Invite to company sent",[t.INVITE_TO_EVENT_SENT]:"Invite to event sent",[t.INVITE_WITHDRAWN]:"Invites withdrawn",[t.REQUESTED_CONNECT]:"Invites",[t.FOLLOWED_UP_AFTER_CONNECT]:"Invites followed up",[t.LEAD_EXCLUDED]:"Lead Excluded/Included",[t.FOLLOWED_A_PROFILE]:"Linkedin profiles followed",[t.MESSAGE_POSTPONED]:"Message postponed",[t.MESSAGE_SENT]:"Messages",[t.NO_EMAIL_FOUND]:"No Email Found",[t.LINKEDIN_REPLY_DETECTED]:"Replies",[t.RETURNED_TO_CAMPAIGN]:"Returned to campaign",[t.LEAD_POSTPONED]:"Unable to resend invitation",[t.UNABLE_TO_SEND_CHAINED_MESSAGE]:"Unable to send chained messages",[t.UNABLE_TO_SEND_INMAIL]:"Unable to send InMail message",[t.VIEWED]:"Viewed",[t.TWITTER_MESSAGE_SENT]:"X (Twitter) DMs",[t.LEAD_FOLLOWED_IN_TWITTER]:"X (Twitter) Follows",[t.TWITTER_REPLY_DETECTED]:"X (Twitter) replies"},x=(f==null?void 0:f.map(({id:s,name:d})=>({label:d,value:String(s)})))||[],p=x.filter(({value:s})=>E.includes(s)),y=n.map(s=>({value:s,label:s})),i=Object.entries(m).map(([s,d])=>({label:d,value:s})),v=i.filter(({value:s})=>T.includes(s));return e.jsxs(l,{"data-testid":"campaigns-search-bar",display:"flex",flexDirection:"column",gap:"8px",width:"100%",children:[e.jsx(P,{isMulti:!0,isCreatable:!0,searchable:!0,placeholder:"Search by name...",value:y,additionalProps:{components:{DropdownIndicator:()=>null}},onChange:s=>a({names:Array.isArray(s)?s.map(({value:d})=>d):[]})}),e.jsx(P,{isMulti:!0,searchable:!0,placeholder:"Select actions",options:i,value:v,onChange:s=>a({filters:(s==null?void 0:s.map(({value:d})=>d))??[]})}),e.jsx(P,{isMulti:!0,searchable:!0,placeholder:"Select campaigns",options:x,value:p,onChange:s=>a({campaigns:(s==null?void 0:s.map(({value:d})=>d))??[]})})]})},Q=D(me,{target:"eap1cnt0"})({name:"dyliz6",styles:"max-width:100%;width:100%"}),te=()=>r().format(g),H=o=>{const a=te();return{names:o.names??[],campaigns:o.campaigns??[],filters:o.filters??[],timeFilter:o.timeFilter??"all",customFromDate:o.customFromDate??a,customToDate:o.customToDate??a}},Ve=()=>{const o=V(),a=ee(({campaign:i})=>i.activityParams),c=S.useMemo(()=>H(a),[a]),[n,E]=S.useState(()=>H(a)),T=!Pe(n,c),f=!!(c.names.length||c.filters.length||c.campaigns.length||c.timeFilter!=="all"),m=i=>{E(v=>({...v,...i}))},x=()=>{const i=H({names:[],campaigns:[],filters:[],timeFilter:"all"});E(i),o(W({names:[],campaigns:[],filters:[],timeFilter:"all",customFromDate:i.customFromDate,customToDate:i.customToDate}))},p=()=>{o(W({names:n.names,campaigns:n.campaigns,filters:n.filters,timeFilter:n.timeFilter,customFromDate:n.customFromDate,customToDate:n.customToDate}))},y=U.find(i=>i.value===n.timeFilter);return e.jsxs(oe,{"data-testid":"activity-filters-sidebar",children:[e.jsx(le,{children:e.jsxs(l,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[e.jsx(I,{semibold:!0,children:"Filters"}),f&&e.jsx(l,{display:"flex",gap:"4px",sx:{cursor:"pointer"},onClick:x,children:e.jsx(I,{fontSize:"12px",lineHeight:"16px",children:"Clear All"})})]})}),e.jsxs(re,{children:[e.jsx(We,{values:{names:n.names,campaigns:n.campaigns,filters:n.filters},onChange:m}),e.jsxs(l,{"data-testid":"activity-date-filter",display:"flex",flexDirection:"column",gap:"8px",children:[e.jsx(P,{size:"l",value:y,onChange:i=>i&&m({timeFilter:i.value}
1),options:U,controlLabel:e.jsx(e.Fragment,{children:e.jsx(I,{inline:!0,children:"Filter by: "})})}),n.timeFilter==="custom"&&e.jsxs(l,{display:"flex",flexDirection:"column",gap:"8px",children:[e.jsx(Q,{selected:r(n.customFromDate,g).toDate(),placeholderText:"from",dateFormat:"dd.MM.yyyy",maxDate:r(n.customToDate,g).toDate(),onChange:i=>i&&m({customFromDate:r(i).format(g)}),icon:e.jsx(Y,{}),showIcon:!0}),e.jsx(Q,{selected:r(n.customToDate,g).toDate(),placeholderText:"to",dateFormat:"dd.MM.yyyy",maxDate:r(te(),g).toDate(),minDate:r(n.customFromDate,g).toDate(),onChange:i=>i&&m({customToDate:r(i).format(g)}),icon:e.jsx(Y,{}),showIcon:!0})]})]})]}),e.jsx(ce,{children:e.jsx(de,{size:{width:"100%"},disabled:!T,onClick:p,children:"Search"})})]})};r.extend(J);const Ue=o=>{var N;const{person:a,description:c,campaignStatus:n,isCampaignRemoved:E,isLeadRemoved:T,createdAt:f,msgCreatedAt:m,campaignName:x,campaignId:p,message:y,sentEmailLead:i,rowIndex:v=0}=o,s=V(),d=S.useRef(null),[R,k]=S.useState(!0),{companyName:C,logoIconBlack:B}=Z(),{name:_}=he({...a,name:xe(o),companyName:C,companyLogo:B},{withAction:!0}),A=S.useMemo(()=>p&&pe({isCampaignRemoved:E,isLeadRemoved:T}),[T,E]),G=n==="archived";S.useEffect(()=>{const h=d.current;h&&k(h.scrollWidth>h.clientWidth)},[]);const w=()=>{s(je({type:ve.VIEW_LEAD,closable:!1,params:{campaignId:p,entityUrn:a==null?void 0:a.key}}))};return e.jsxs(ue,{staggerDelayMs:ye(v),hoverBgColor:({light:h})=>h.main,onClick:a&&w,cursor:"pointer",children:[e.jsx(O,{justifyContent:"flex-start",paddingBox:"12px",children:e.jsx(ge,{name:_||`${C} action`,title:a==null?void 0:a.currentTitle,picture:a==null?void 0:a.picture,fallbackPicture:(N=a==null?void 0:a.linkedInData)==null?void 0:N.pic,isPremium:a==null?void 0:a.isPremium,showLogo:!_})}),e.jsx(O,{paddingBox:"12px",children:e.jsx(I,{capitalizeFirstLetter:!0,fontSize:"15px",children:Ee(c,y,i==null?void 0:i.email)})}),e.jsx(O,{paddingBox:"12px",children:e.jsx(fe,{variant:"lightBlue",crop:!0,tooltip:R&&x,to:`/campaign/details/overview/${p}`,onClick:h=>h.stopPropagation(),disabled:E,cursor:"pointer",color:"#1B4ED2",children:e.jsxs(l,{display:"flex",alignItems:"center",children:[e.jsx(l,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",ref:d,fontSize:"15px",children:x}),G&&e.jsx(I,{display:"block",color:"error.main",children:" (archived)"}),A&&e.jsx(De,{tooltip:{title:A,placement:"right"}})]})})}),e.jsx(O,{paddingBox:"12px",children:e.jsxs(l,{display:"flex",flexDirection:"column",children:[Te(r.utc(m||f).local(),"MMMM Do YYYY"),e.jsx(I,{fontSize:"12px",color:"#666",children:r.utc(m||f).local().format("h:mm a")})]})})]})};r.extend(J);const Ye=D(l,{target:"e185jynw0"})({name:"1pajyl6",styles:"position:relative;flex:1;min-height:0;display:flex;flex-direction:column"}),st=()=>{const o=V(),{activityParams:a}=ee(({campaign:j})=>j),c=j=>o(W(j)),{page:n,perPage:E,sortField:T,sortOrder:f,names:m,campaigns:x,filters:p,timeFilter:y="all",customFromDate:i,customToDate:v}=a,s=r().format(g),d=i||s,R=v||s,{data:k,isLoading:C,isFetching:B,isPlaceholderData:_}=Le({...a,timeFilter:y,customFromDate:r(d,g).utc(!0).startOf("day").toISOString(),customToDate:r(R,g).utc(!0).endOf("day").toISOString()},{refetchOnMount:!0,keepPreviousData:!0}),A=Ae(C),G=B&&_&&!A,{actions:w=[],total:N=0}=k??{},h={sortField:T,sortOrder:f,onSortFieldChange:(j,b)=>c({sortField:j,sortOrder:b})},ae=!!(m!=null&&m.length||x!=null&&x.length||p!=null&&p.length||y!=="all");let F="data";A?F="skeleton":!N&&!ae&&(F="empty");const ie=e.jsxs(Se,{paginationProps:{page:n,perPage:E,total:N,onPaginationChange:c},children:[e.jsx(Ie,{children:e.jsxs(Ne,{children:[e.jsx(L,{width:"260px",name:"name",sorting:h,children:"Name"}),e.jsx(L,{width:"35%",name:"action",sorting:h,children:"Action"}),e.jsx(L,{width:"20%",name:"campaign",sorting:h,children:"Campaign"}),e.jsx(L,{width:"200px",name:"date",sorting:h,children:"Date"})]})}),e.jsx(Ce,{placeholder:!w.length&&"No activity yet.",children:w.map((j,b)=>e.jsx(Ue,{rowIndex:b,...j},`${j.createdAt}-${b}`))})]});return e.jsxs(e.Fragment,{children:[e.jsxs(_e,{children:[e.jsx(we,{children:"Activity"}),e.jsx(l,{display:"flex",justifyContent:"flex-end",alignItems:"center",width:"100%",children:e.jsx(Fe,{articleLink:"https://help.meetalfred.com/en/articles/5615162-review-campaign-activities",videoLink:"https://player.vimeo.com/video/617467697"})})]}),e.jsx(be,{children:e.jsx(Ye,{children:A||F==="empty"?e.jsx(Me,{view:F,skeleton:e.jsx(X,{}),emptyState:e.jsx(Oe,{src:"https://player.vimeo.com/video/617467697",title:"No activity yet",description:"It looks like you don't have activity yet."}),children:null}):e.jsxs(l,{display:"flex",gap:"12px",flex:"1",minHeight:0,width:"100%",children:[e.jsx(Ve,{}),e.jsx(l,{display:"flex",flexDirection:"column",flex:"1",minWidth:0,minHeight:0,children:G?e.jsx(X,{}):ie})]})})})]})};export{st as CampaignsActivity};

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.