PageSourceSearch

https://web.laifaxin.com/assets/index-DyeaGadt.js

js laifaxin.com collected 2026-09-24 13:31:04 UTC 35,725 bytes, 1 lines download raw bytes

1import{j as e,aL as Ze,T as fe,b8 as Re,a3 as Je,a4 as et,aN as tt,s as P,n as Se,p as ce,B as M,D as nt,a as _t,x as y,eo as Ke,ep as He,b as Tt,aC as Me,d as Lt,ca as st,u as zt,bN as Pt,bx as Rt,I as ge,cC as ot,aO as be,bF as Fe,c8 as Bt,bi as at,F as it,S as rt,C as Be,bA as We,au as Te,bH as Ce,bb as Wt,bs as ve,aH as lt,cL as ct,aG as dt,bG as Ee,bB as Ve,av as Et,eQ as Vt,eO as $t,bl as Ge}from"./@mui-DIvZKyk5.js";import{aZ as Kt,cm as qe,cn as Le,co as ke,aM as pt,g as F,y as ee,cp as Ht,cq as Nt,aa as Mt,ad as Ft,cr as Gt,cs as qt,f as ut,ct as mt,av as $e,j as ht,a6 as Ue,bM as Ut,cu as Yt,ac as xt,as as ft,at as gt,an as Qt,aw as wt,cv as yt,e as jt,ax as Xt,c6 as Zt,cw as Jt,aA as en,ah as tn,c as nn}from"./index-ChlzNN7f.js";import{I as sn}from"./index-4LMp_24X.js";import{r as O}from"./@dnd-kit-lk9a0Fnl.js";import{R as on,a as an}from"./recoil-Qt05xcsG.js";import{f as le}from"./table-pMgz8yty.js";import{j as Ye}from"./search-3GzqUN1l.js";import"./lodash-BGDvc8uJ.js";import"./cheerio-CC_BxCXR.js";import"./parse5-CnDYI-t1.js";import{r as rn}from"./arrayAndObjectHandle-Bi_cl2YF.js";import{L as ln,g as Qe,C as cn,u as bt,a as Ct,b as vt}from"./contacts-cid-autocomplete-BjePxOWe.js";import{A as kt}from"./ai-rating-create-dialog-D4HHsJgY.js";import{u as dn}from"./use-page-size-DF3bLlkK.js";import{u as pn}from"./use-default-view-BQ7SgIv1.js";import{a as un,b as mn,d as hn,c as xn,e as fn}from"./views-CYyJeLO2.js";import{C as je}from"./custom-button-DEZni6Pj.js";import{T as gn}from"./table-views-header-CB2lF0Le.js";import{C as wn}from"./country-autocomplete-CzWOCTGH.js";import{V as yn}from"./view-filters-dialog-DPb86f5O.js";import{r as jn}from"./company-table-cell-DUTUJ9ug.js";import"./i18next-vSwsns86.js";import"./framer-motion-zf-c6Y7J.js";import"./ali-oss-C0WPLnSs.js";import"./apexcharts-B416p9gJ.js";import"./custom-autocomplete-BY_Z6aAj.js";import"./hooks-BZ7gywcM.js";import"./index-43Ysushl.js";import"./view-select-popover-IAeNVObg.js";import"./use-view-list-DOQ0gODf.js";import"./filters-drawer-CoTnW6xx.js";import"./contacts-cid-view-CmnHNMga.js";import"./score-level-select-DFOzSqST.js";import"./clues-tags-autocomplete-cnWEnuHg.js";function ze(c){const a=Kt.filter(s=>s.en===c||s.abb2===c)[0];return{abb2:a==null?void 0:a.abb2,en:a==null?void 0:a.en,cn:a==null?void 0:a.cn}}function bn({id:c,label:a,error:s,variant:w,multiple:x,helperText:v,hiddenLabel:f,placeholder:u,getValue:l="name",...I}){const A=qe.map(j=>l==="name"?j.en:j.abb2),z=(j,d,{selected:h})=>{const i=ze(d);if(!i.en)return null;const{en:b,abb2:k,cn:g}=i,L=`${k}:${b}`;return O.createElement("li",{...j,key:L},e.jsx(Le,{code:i.abb2,sx:{mr:1,width:22,height:22,borderRadius:"50%"}},`flag_${k}`),g)},T=j=>{const d=ze(j.inputProps.value),h={...j,label:a,variant:w,placeholder:u,helperText:v,hiddenLabel:f,error:!!s,inputProps:{...j.inputProps,autoComplete:"new-password"}};return x?e.jsx(fe,{...h}):e.jsx(fe,{...h,InputProps:{...j.InputProps,startAdornment:e.jsx(Re,{position:"start",sx:{...!d.abb2&&{display:"none"}},children:e.jsx(Le,{code:d.abb2,sx:{width:22,height:22,borderRadius:"50%"}},d.en)})},sx:{[`& .${Je.root}`]:{[`& .${ke.flag}`]:{ml:.5,mr:-.5}},[`& .${et.root}`]:{[`& .${ke.flag}`]:{ml:.5,mr:-.5,mt:f?0:-2}}}})},E=(j,d)=>j.map((h,i)=>{const b=ze(h);return O.createElement(tt,{...d({index:i}),key:b.en,label:b.cn,size:"small",variant:"soft",icon:e.jsx(Le,{code:b.abb2,sx:{width:16,height:16,borderRadius:"50%"}},b.en)})});return e.jsx(Ze,{id:`country-select-${c}`,multiple:x,options:A,autoHighlight:!x,disableCloseOnSelect:x,renderOption:z,renderInput:T,renderTags:x?E:void 0,filterOptions:(j,d)=>{const h=d.inputValue?d.inputValue.toLowerCase():"";return qe.filter(i=>i.py.includes(h)||i.abb2.toLowerCase().includes(h)||i.en.toLowerCase().includes(h)||i.cn.toLowerCase().includes(h)).map(i=>l==="name"?i.en:i.abb2)},getOptionLabel:j=>`${j.en} ${j.cn} ${j.py} ${j.abb2}`,...I})}function St({id:c,label:a,error:s,variant:w,multiple:x,helperText:v,hiddenLabel:f,placeholder:u,value:l,...I}){const A=ln.map(d=>d.en),z=(d,h)=>{const i=Qe(h);return i.cn?O.createElement("li",{...d,key:i.en},i.en," (",i.cn,")"):null},T=d=>{const h={...d,label:a,variant:w,placeholder:u,helperText:v,hiddenLabel:f,error:!!s,inputProps:{...d.inputProps,autoComplete:"new-password"}};return x?e.jsx(fe,{...h}):e.jsx(fe,{...h,sx:{[`& .${Je.root}
1`]:{[`& .${ke.flag}`]:{ml:.5,mr:-.5}},[`& .${et.root}`]:{[`& .${ke.flag}`]:{ml:.5,mr:-.5,mt:f?0:-2}}}})},E=(d,h)=>d.map((i,b)=>{const k=Qe(i);return O.createElement(tt,{...h({index:b}),key:k.en,label:k.en,size:"small",variant:"soft",color:"primary"})}),j=d=>{var i,b;const h=(i=d.target)==null?void 0:i.value;if(d.key==="Enter"&&h&&!l.includes(h)){const k=rn(h);k&&l.push(...k.split(";")),d.preventDefault(),(b=I==null?void 0:I.onChange)==null||b.call(I,d,[...l],"createOption")}};return e.jsx(Ze,{fullWidth:!0,value:l,id:`linkedin-industry-select-${c}`,multiple:x,options:A,autoHighlight:!x,disableCloseOnSelect:x,renderOption:z,renderInput:T,renderTags:x?E:void 0,onKeyDown:j,noOptionsText:e.jsx(P,{variant:"body2",children:"回车键可以直接创建新行业"}),...I})}const Cn=on({key:"linkedinCompanyAdvanceMode",default:!1}),Ne=()=>{const[c,a]=an(Cn),s="linkedin:company:advance:mode",[w,x]=pt(s,!1),v=f=>{a(f),x(f)};return O.useEffect(()=>{c!==w&&a(w)},[w]),{advanceMode:c,setAdvanceMode:a,onModeChange:v}},vn=()=>{const c="search:linkedin:company:history",[a,s]=pt(c,[]);return{history:a,setHistory:s,onAddHistory:(v,f)=>{if(!v)return;const u=[...a],l=u.findIndex(I=>I.keyword===v);l>=0&&u.splice(l,1),u.splice(0,0,f),u.length>100&&u.splice(100,1),s(u)},onDeleteHistory:v=>{const f=[...a],u=f.findIndex(l=>l.keyword===v);u>=0&&f.splice(u,1),s(f)}}};function kn(){const{advanceMode:c,onModeChange:a}=Ne();return e.jsx(Se,{sx:{right:0,top:192,zIndex:999,display:"flex",cursor:"pointer",position:"fixed",color:"text.primary",borderTopLeftRadius:16,borderBottomLeftRadius:16,bgcolor:"background.paper",padding:s=>s.spacing(1,3,1,2),boxShadow:s=>s.customShadows.dropdown,transition:s=>s.transitions.create(["opacity"]),"&:hover":{opacity:.72},p:0},children:c?e.jsx(ce,{title:"切换到简单模式",children:e.jsx(M,{variant:"contained",color:"primary",onClick:()=>a(!1),children:"简单模式"})}):e.jsx(ce,{title:"切换到高级模式",children:e.jsx(M,{variant:"contained",color:"primary",onClick:()=>a(!0),children:"高级模式"})})})}function It({open:c,onClose:a,onSuccess:s,action:w,params:x}){const{run:v,loading:f}=F(Ht,{manual:!0,onSuccess:({success:A})=>{A&&(ee("加入黑名单成功"),a(),s())}}),{run:u,loading:l}=F(Nt,{manual:!0,onSuccess:({success:A})=>{A&&(ee("取消黑名单成功"),a(),s())}}),I=()=>{w==="add"&&v(x),w==="cancel"&&u(x)};return e.jsxs(nt,{open:c,onClose:a,fullWidth:!0,maxWidth:"xs",scroll:"body",translate:"no",children:[e.jsxs(_t,{children:[w==="add"&&e.jsxs(y,{direction:"row",spacing:1,children:[e.jsx(Ke,{}),e.jsx(P,{children:" 加入黑名单"})]}),w==="cancel"&&e.jsxs(y,{direction:"row",spacing:1,children:[e.jsx(He,{}),e.jsx(P,{children:" 取消黑名单"})]})]}),e.jsx(Tt,{children:e.jsxs(y,{spacing:1,children:[e.jsxs(y,{direction:"row",children:[e.jsxs(P,{gutterBottom:!0,variant:"body2",sx:{flexGrow:1},children:["选中数量:",e.jsx("strong",{children:x.selectTotal})]}),e.jsx(P,{gutterBottom:!0,variant:"caption",sx:{color:"red"},children:"只对有域名的公司生效"})]}),w==="add"&&e.jsx(Me,{severity:"warning",children:"进入黑名单后不再保存相关邮箱!"}),w==="cancel"&&e.jsx(Me,{severity:"info",children:"将所选中域名从黑名单移除!"})]})}),e.jsxs(Lt,{children:[e.jsx(M,{onClick:a,autoFocus:!0,variant:"outlined",children:"关闭"}),e.jsx(st,{variant:"contained",color:"primary",loading:f||l,onClick:I,children:"提交"})]})]})}function Ot({open:c,onClose:a,initValues:s,onSuccess:w}){const{openPayConfirm:x}=Mt(),v=A=>{const{success:z,code:T}=A??{};x(T),z&&(a(),w())},{run:f,loading:u}=F(qt,{manual:!0,onSuccess:A=>v(A)}),l=u,I=A=>{f({...A,...s})};return e.jsxs(nt,{open:c,onClose:a,fullWidth:!0,maxWidth:"sm",scroll:"body",translate:"no",children:[e.jsxs(y,{alignItems:"center",spacing:1,sx:{py:2,px:2.5},direction:"row",justifyContent:"space-between",children:[e.jsx(P,{variant:"h6",children:"保存公司及联系人"}),e.jsxs(y,{direction:"row",alignItems:"center",spacing:.25,children:[e.jsx(P,{variant:"body2",children:"您已选择"}),e.jsx(P,{variant:"subtitle2",color:"primary",children:e.jsx(Ft,{num:s.selectTotal})}),e.jsx(P,{variant:"body2",children:"家企业进行保存"})]})]}),e.jsx(Gt,{loading:l,onSubmit:I,onClose:a,saveNum:s.selectTotal})]})}const Sn=["name","domain","short_description","specialties"],In=[{name:"公司名称",value:"name",icon:"mdi:company"},{name:"公司域名",value:"domain",icon:"gridicons:domains"},{name:"公司简介",value:"short_description",icon:"material-symbols:descriptio"},{name:"主营业务",value:"specialties",icon:"material-symbols:match-word"}],On=Et("span")(({theme:c})=>({...c.typography.caption,width:60,flexShrink:0,color:c.palette.text.secondary,fontWeight:c.typography.fontWeightSemiBold}));function Pe({name:c,value:a}){return e.jsxs(y,{direction:"row",alignItems:"center",flexGrow:1,sx:{width:1,overflow:"hidden"},children:[e.jsxs(On,{children:[c,":"]}),e.jsx(P,{component:"span",variant:"body2",noWrap:!0,children:a})]})}function An(){const c=localStorage.getItem("linkedin_precise_matching")==="true",[a,s]=ut({filters:[],page:1,current:1,sortModel:[],tableData:[],total:0,selectKeys:[],selectOption:"current",selectTotal:0,keyword:"",keyword_fields:Sn,relation:"eq",blackAction:"add",blackOpen:!1,saveOpen:!1,editable:!1,
1country:"Global",industries:[],companyCode:[],companySize:[],fullSearch:c,keywordActive:!1,searchActive:!1,aiRatingOpen:!1}),w=mt(o=>o.openDrawer),{onModeChange:x}=Ne(),v=zt(),f=$e(),{windowHeight:u,windowWidth:l}=ht(),{history:I,onAddHistory:A,onDeleteHistory:z}=vn(),T=O.useRef(null),{runAsync:E,loading:j,refresh:d}=F(yt,{manual:!0,debounceWait:200,throttleWait:200,onSuccess:({success:o,data:t})=>{if(o&&t){const{all:n,current:m,list:C,relation:S,total:H}=t;s({tableData:C,total:!h.length&&!g?n:H,page:m,relation:S,selectKeys:[]})}s({searchActive:!1})},onError:()=>{s({searchActive:!1})}}),{filters:h,sortModel:i,page:b,selectKeys:k,keyword:g,keyword_fields:L,selectTotal:te,selectOption:ne,fullSearch:G,tableData:V,keywordActive:q}=a,U=10,$=()=>{const o=b,t=le(i);return{logic:"and",viewId:"all",keyword:G&&g&&!/".*"/.test(g)?`"${g}"`:g,keyword_fields:L,filter:{},filters:h,current:o,pageSize:U,sort:t}},D=()=>({...$(),selectKeys:k,selectOption:ne,selectTotal:te}),de=()=>{const o=$(),t=le(i);return{...o,selectKeys:k,selectOption:ne,selectTotal:te,selectSort:t}},N=async o=>{const t=$();if(o&&(t.current=o),g.length>=128){ee("关键词长度超过限制",{variant:"error"});return}if(s({keywordActive:!1}),o===1&&g){const{industries:n,companyCode:m,companySize:C}=a;A(g,{keyword:g,keyword_fields:L,filters:h,industries:n,companyCode:m,companySize:C,fullSearch:G})}s({searchActive:!0}),await E(t),localStorage.setItem("linkedin_precise_matching",G==null?void 0:G.toString())},se=async o=>{s({...o,searchActive:!0});const{fullSearch:t,keyword:n}=o,m=le(i),S=t&&n&&!/".*"/.test(n)?`"${n}"`:n;await E({...o,keyword:S,current:1,pageSize:U,sort:m,logic:"add"})},ae=o=>{const{domain:t}=o;if(!t){ee("暂无公司网站信息",{variant:"error"});return}w(t)};O.useEffect(()=>{N()},[b,U,i]),O.useEffect(()=>{N(1)},[h,L]);const J=(o,t)=>{const n=[...h],m=n.findIndex(C=>C&&C.property===o&&C.operator==="include");m>=0?t.length?n[m]={...n[m],values:t}:n.splice(m,1):n.push({property:o,operator:"include",values:t}),s({page:1,filters:n})},Y=e.jsx(y,{justifyContent:"center",alignItems:"center",children:a.total?e.jsx(Pt,{color:"primary",count:Math.ceil((a.total>1e4?1e4:a.total)/U),page:b,onChange:async(o,t)=>{s({page:t})}}):null}),R=()=>{const t=I.filter(n=>n.keyword.toLowerCase().includes(g.toLowerCase())).slice(0,9);return t.length?e.jsx(Ee,{sx:{px:2},children:t.map((n,m)=>e.jsxs(Ve,{sx:{py:0,minHeight:32},onClick:async()=>se(n),children:[e.jsx(Ce,{children:e.jsx(Fe,{sx:{color:"text.disabled"}})}),e.jsx(ve,{primary:n.keyword}),e.jsx(Vt,{children:e.jsx(M,{size:"small",onClick:C=>{var S;C.stopPropagation(),z(n.keyword),(S=T.current)==null||S.focus()},children:"删除"})})]},m))}):e.jsx(P,{sx:{color:"text.disabled",mt:1},children:"暂无匹配的历史纪录"})},pe=e.jsxs(y,{spacing:2,sx:{px:2.5,pb:2},children:[e.jsx(y,{sx:{maxHeight:54,overflow:"visible",width:1},children:e.jsx(Rt,{onClickAway:()=>s({keywordActive:!1}),children:e.jsxs(y,{sx:{boxShadow:q?`0 0 0 2px ${v.vars.palette.primary.main}`:void 0,borderRadius:1,zIndex:999,bgcolor:"common.white",pb:1},children:[e.jsxs(y,{direction:"row",alignItems:"center",sx:{height:54,boxShadow:q?void 0:v.customShadows.dropdown,bgcolor:"common.white",borderRadius:1,px:1},children:[e.jsx(ce,{title:"关键词字段设置",children:e.jsx(ge,{onClick:f.onOpen,size:"small",children:e.jsx(ot,{fontSize:"small"})})}),e.jsx(be,{sx:{height:32,mr:1},orientation:"vertical"}),e.jsx(Fe,{sx:{color:"text.disabled"}}),e.jsx(Bt,{id:"global-search-input",ref:T,sx:{ml:1,flex:1,minHeight:48},placeholder:"请输入客户领英关键词(从领英介绍和主营业务中找关键词)",value:a.keyword,onChange:o=>s({keyword:o.target.value}),onKeyDown:o=>{o.stopPropagation(),o.code==="Enter"&&N(1)},autoFocus:!0,onClick:()=>s({keywordActive:!0}),autoComplete:"off"}),g?e.jsx(ge,{size:"small",onClick:()=>s({keyword:""}),sx:{mr:1},children:e.jsx(at,{fontSize:"small"})}):null,e.jsx(st,{variant:"contained",color:"primary",sx:{mr:2},onClick:()=>{N(1)},loading:j||a.searchActive,children:"立即搜索"}),e.jsx(be,{sx:{height:32},orientation:"vertical"}),e.jsx(it,{control:e.jsx(rt,{checked:a.fullSearch,onChange:(o,t)=>s({fullSearch:t})}),label:"精准",labelPlacement:"start"})]}
1),e.jsxs(y,{component:"div",sx:{display:q?"block":"none",bgcolor:"common.white",px:2},children:[e.jsx(be,{}),e.jsx(y,{children:I!=null&&I.length?R():e.jsx(P,{sx:{color:"text.disabled",mt:1},children:"暂无搜索历史纪录"})})]})]})})}),e.jsxs(y,{direction:{xs:"column",md:"row"},alignItems:"center",justifyContent:"center",spacing:2,children:[e.jsx(St,{id:"linkedin-company-industry",multiple:!0,fullWidth:!0,limitTags:3,label:"行业选择",placeholder:"输入关键词过滤",value:a.industries,onChange:(o,t)=>{J("industry",t),s({industries:t})},size:"small"}),e.jsx(bn,{label:"国家选择",placeholder:"输入关键词过滤",id:"multiple-code",getValue:"code",multiple:!0,fullWidth:!0,limitTags:3,value:a.companyCode,onChange:(o,t)=>{J("company_code",t),s({companyCode:t})},size:"small"}),e.jsx(cn,{size:"small",multiple:!0,value:a.companySize,onChange:(o,t)=>{const n=t.map(m=>m.value);J("company_size",n),s({companySize:n})}})]})]}),ue=o=>{const t=[...L],n=t.indexOf(o);if(n>=0?t.splice(n,1):t.push(o),t.length===0){ee("至少选择 1 个字段!",{variant:"error"}),s({keyword_fields:["name"]});return}s({keyword_fields:t})},oe=e.jsx(y,{children:a.tableData.length&&a.tableData.map((o,t)=>{const{id:n,name:m,website:C,highlight:S,logo_url:H,short_description:Ie,company_country:we,company_code:ie,industry:Oe,company_size:me,linkedin_url:he,black:ye}=o;return e.jsxs(y,{sx:{py:1,cursor:"pointer",borderBottom:`solid 1px ${Ue(v.vars.palette.grey["500Channel"],.16)}`,"&:hover":{bgcolor:"background.neutral"}},onClick:()=>ae(o),direction:"row",alignItems:"flex-start",spacing:.5,children:[e.jsx(Be,{onClick:Q=>Q.stopPropagation(),checked:k.includes(n),onChange:(Q,re)=>{const X=[...k],Z=X.findIndex(Ae=>Ae===n);re&&Z<0&&(X.push(n),s({selectKeys:X,selectOption:"current",selectTotal:X.length})),!re&&Z>=0&&(X.splice(Z,1),s({selectKeys:X,selectOption:"current",selectTotal:X.length}))}}),e.jsxs(y,{sx:{overflow:"hidden",width:1,textDecoration:ye?"line-through":void 0,color:ye?"text.disabled":void 0},children:[e.jsxs(We,{disablePadding:!0,secondaryAction:e.jsx(Te,{href:he,target:"_blank",onClick:Q=>Q.stopPropagation(),children:e.jsx(Ut,{})}),children:[e.jsx(Ce,{children:e.jsx(Wt,{src:(H||"").replace("media.licdn.com","lk-img.17ark.com")})}),e.jsx(ve,{id:n,primary:e.jsx(Te,{component:"button",color:"inherit",sx:{fontSize:16,fontWeight:600},onClick:Q=>{Q.stopPropagation(),ae(o)},children:S!=null&&S.name?Ye(S==null?void 0:S.name):m}),primaryTypographyProps:{noWrap:!0},secondary:C?e.jsx(Te,{href:C,target:"_blank",children:C}):"暂无官网地址"})]},n),e.jsx(y,{direction:"row",flexGrow:1,children:e.jsx(P,{variant:"body2",noWrap:!0,flexGrow:1,children:S!=null&&S.short_description?Ye(S==null?void 0:S.short_description):Ie||"暂无简介"})}),e.jsxs(y,{direction:"row",alignItems:"center",sx:{overflow:"hidden"},children:[e.jsx(Pe,{name:"国家地区",value:e.jsxs(y,{direction:"row",alignItems:"center",spacing:1,children:[e.jsx(Se,{sx:{width:"18px",height:"18px"},component:"img",src:ie&&we?`/assets/icons/flagall/${ie==null?void 0:ie.toLowerCase()}.svg`:"/assets/icons/flags/ic_flag_globla.svg",alt:"country"}),we]})}),e.jsx(Pe,{name:"所属行业",value:Oe||"无"}),e.jsx(Pe,{name:"公司规模",value:me||"无"})]})]})]},n)})||e.jsx(Yt,{title:"查询数据结果为空",description:"请修改关键词或筛选条件",sx:{pt:5,pb:10}})});return e.jsxs(xt,{children:[e.jsx(y,{sx:{mx:"auto",maxWidth:{xs:640,sm:720,md:880,lg:960}},children:e.jsxs(lt,{sx:{py:2,minHeight:u-156,width:l>=1200&&960||l>=1e3&&880||l>=900&&800||l>=800&&720||l-48},children:[pe,k.length?e.jsx(ft,{rowCount:V.length,rowTotal:a.total<1e4?a.total:1e4,selectTotal:a.selectTotal,selectOption:a.selectOption,action:e.jsxs(y,{direction:"row",spacing:1,children:[e.jsx(M,{color:"secondary",onClick:()=>s({aiRatingOpen:!0}),startIcon:e.jsx(gt,{}),variant:"contained",children:"AI评分"}),e.jsx(M,{color:"primary",onClick:()=>s({saveOpen:!0}),startIcon:e.jsx(ct,{}),variant:"contained",children:"保存联系人"}),e.jsx(M,{color:"primary",onClick:()=>s({blackAction:"add",blackOpen:!0}),startIcon:e.jsx(Ke,{}),variant:"outlined",children:"加入黑名单"}),e.jsx(M,{color:"primary",onClick:()=>s({blackAction:"cancel",blackOpen:!0}),startIcon:e.jsx(He,{}),variant:"outlined",children:"取消黑名单"})]}),sx:{height:53,px:2},onSelectAllRows:o=>{if(o){const t=V.map(n=>n.id);s({selectKeys:t,selectTotal:t.length,selectOption:"current"})}else s({selectKeys:[],selectTotal:0,selectOption:"current"})},onSelectChange:(o,t)=>{const n=V.map(m=>m.id);s({selectKeys:n,selectTotal:t,selectOption:o})}}):e.jsxs(y,{children:[e.jsx(y,{sx:{height:4},children:a.searchActive&&e.jsx(dt,{color:"primary",sx:{width:1}})}),e.jsxs(y,{alignItems:"center",direction:"row",spacing:1,justifyContent:"space-between",sx:{px:3,py:1,bgcolor:"background.neutral",borderBottom:`solid 1px ${Ue(v.vars.palette.grey["500Channel"],.16)}`},children:[e.jsxs(P,{variant:"body2",children:[a.total===1e4?"大于":"约"," ",e.jsx("strong",{children:a.total})," 个结果"]}),Y,e.jsx(M,{variant:"contained",color:"primary",onClick:()=>x(!0),size:"small",children:"高级模式"})]})]}),e.jsx(Qt,{fillContent:!0,sx:{maxHeight:u-360,px:2},children:oe})]})}),e.jsx(kt,{open:a.aiRatingOpen,params:D(),onClose:()=>s({aiRatingOpen:!1}),onSuccess:()=>{s({selectKeys:[],selectOption:"current",selectTotal:0})},table:"linkedinCompany"}),e.jsx(It,{action:a.blackAction,params:D(),open:a.blackOpen,onClose:()=>s({blackOpen:!1}),onSuccess:()=>{s({selectKeys:[],selectOption:"current",selectTotal:0}),d()}}),e.jsx(Ot,{open:a.saveOpen,onClose:()=>s({saveOpen:!1}),initValues:de(),onSuccess:()=>s({selectKeys:[],selectOption:"current",selectTotal:0})}),e.jsx(wt,{open:f.open,onClose:f.onClose,hiddenArrow:!0,sx:{width:160,maxHeight:374,overflow:"auto"},arrow:"top-left",children:e.jsx(Ee,{children:In.map(o=>{const{name:t,value:n}=o;return e.jsx(We,{disablePadding:!0,children:e.jsxs(Ve,{role:void 0,dense:!0,onClick:()=>ue(n),children:[e.jsx(Ce,{children:e.jsx(Be,{edge:"start",checked:L==null?void 0:L.includes(n),tabIndex:-1,disableRipple:!0})}),e.jsx(ve,{id:n,primary:t,sx:{overflow:"hidden",textOverflow:"ellipsis"}})]})},n)})})})]})}const Dn=[{name:"公司名称",value:"name",icon:"mdi:company"},{name:"公司域名",value:"domain",icon:"gridicons:domains"},{name:"公司简介",value:"short_description",icon:"material-symbols:descriptio"},{name:"主营业务",value:"specialties",icon:"material-symbols:match-word"}];function _n({keyword:c,keyword_fields:a,onKeywordChange:s,filters:w,onFiltersChange:x,onKeywordFieldsChange:v,setViewChanged:f,onViewChange:u,view:l,listRefresh:I,setAddViewId:A,pinViews:z,tmpViews:T,setTmpViews:E,onViewIdChange:j,pinViewsRefresh:d,viewType:h,pinViewsSave:i,setViewAddOpen:b,fullSearch:k,onFullSearchChange:g}){const[L,te]=O.useState([]),[ne,G]=O.useState([]),V=$e(),{openDrawer:q,closeDrawer:U,row:$}=bt(),D=jt(),{openDrawer:de,closeDrawer:N}=Ct(),se=$e(),{openDrawer:ae,closeDrawer:J,open:Y,row:R}=vt();O.useEffect(()=>{const o=w.find(C=>C&&C.property==="company_code"&&C.operator==="include"),{values:t}=o??{};te(t||[]);const n=w.find(C=>C&&C.property==="industry"&&C.operator==="include"),{values:m}=n??{};G(m||[])},[w]);const pe=o=>{const t=[...w],n=t.findIndex(m=>m&&m.property==="company_code"&&m.operator==="include");n>=0?o.length?t[n]={...t[n],values:o}:t.splice(n,1):t.push({property:"company_code",operator:"include",values:o}),x(t)},ue=o=>{const t=[...w],n=t.findIndex(m=>m&&m.property==="industry"&&m.operator==="include");n>=0?o.length?t[n]={...t[n],values:o}:t.splice(n,1):t.push({property:"industry",operator:"include",values:o}),x(t)},oe=o=>{const t=[...a],n=t.indexOf(o);if(n>=0?t.splice(n,1):t.push(o),t.length===0){ee("至少选择 1 个字段!",{variant:"error"}),v(["name"]);return}v(t)};return e.jsxs(y,{alignItems:{xs:"flex-end",md:"center"},direction:{xs:"column",md:"row"},spacing:2,sx:{px:2,minHeight:60},children:[e.jsx(yn,{onViewIdChange:j,setViewChanged:f,onViewChange:u,view:l,pinViewsRefresh:d,onSuccess:async o=>{var n,m,C,S;A(o);const t=z.map(H=>H==null?void 0:H.viewId).filter(H=>H!=="all");t.length<6&&await i({viewType:h,viewIds:[...t,o]}),j(o),se.onClose(),b(!1),f(!1),J(),N(),(n=R==null?void 0:R.row)!=null&&n.href&&D.push((m=R==null?void 0:R.row)==null?void 0:m.href),(C=$==null?void 0:$.row)!=null&&C.viewId&&j((S=$==null?void 0:$.row)==null?void 0:S.viewId),f(!1),I()},onAddSuccess:o=>{const t=z==null?void 0:z.filter(n=>(n==null?void 0:n.viewId)!=="all");(t==null?void 0:t.length)>=6&&E(T.concat([o]))}}),e.jsx(St,{id:"linkedin-company-industry",multiple:!0,fullWidth:!0,limitTags:3,label:"行业选择",placeholder:"输入关键词过滤",value:ne,onChange:(o,t)=>{ue(t)},size:"small"}),e.jsx(wn,{multiple:!0,value:L,onChange:(o,t)=>{const n=t.map(m=>m.abb2);pe(n)},includeGlobal:!1,size:"small"}),e.jsx(fe,{label:"关键词",placeholder:"请输入关键词",value:c,fullWidth:!0,size:"small",onChange:o=>s(o.target.value),InputProps:{startAdornment:e.jsx(Re,{position:"start",children:e.jsx(ce,{title:"关键词字段设置",children:e.jsx(ge,{onClick:V.onOpen,size:"small",children:e.jsx(ot,{fontSize:"small"})})})}),endAdornment:!!c&&e.jsx(Re,{position:"end",children:e.jsx(ce,{title:"清空",children:e.jsx(ge,{onClick:()=>s(""),size:"small",children:e.jsx(at,{fontSize:"small"})})})})}}),e.jsxs(wt,{open:V.open,onClose:V.onClose,hiddenArrow:!0,sx:{width:160,maxHeight:374,overflow:"auto"},arrow:"top-left",children:[e.jsx(it,{control:e.jsx(rt,{checked:k,onChange:(o,t)=>g(t)}),label:"精准匹配",labelPlacement:"start"}),e.jsx(be,{}),e.jsx(Ee,{children:Dn.map(o=>{const{name:t,value:n,icon:m}=o;return e.jsx(We,{disablePadding:!0,children:e.jsxs(Ve,{role:void 0,dense:!0,onClick:()=>oe(n),children:[e.jsx(Ce,{children:e.jsx(Be,{edge:"start",checked:a==null?void 0:a.includes(n),tabIndex:-1,disableRipple:!0})}),e.jsx(ve,{id:n,primary:t,sx:{overflow:"hidden",textOverflow:"ellipsis"}})]})},n)})})]})]})}function Tn({tableData:c,loading:a,flushData:s,total:w,page:x,pageSize:v,onPageChange:f,sortModel:u,onSortChange:l,selectKeys:I,onSelectChange:A,relation:z}){const T=mt(i=>i.openDrawer),{windowHeight:E}=ht(),d=[{headerName:"企业名",field:"name",width:256,renderCell:({row:i})=>jn("orgName",i),cellClassName:({row:i})=>i.black?"Black":"",sortable:!1},{headerName:"行业",field:"industry",width:128,cellClassName:i=>i.row.black?"Black":""},{headerName:"国家/地区",field:"company_country",width:64,renderCell:i=>{const{company_country:b}=i.row,k=Zt.find(g=>g.en===b)??{en:b,cn:b};return Jt(k)},cellClassName:i=>i.row.black?"Black":"",align:"center"}
1,{headerName:"省/州",field:"company_state",width:86,cellClassName:i=>i.row.black?"Black":""},{headerName:"城市",field:"company_city",width:86,cellClassName:i=>i.row.black?"Black":""},{headerName:"规模",field:"company_size",width:86,cellClassName:i=>i.row.black?"Black":""},{headerName:"域名",field:"domain",width:86,cellClassName:i=>i.row.black?"Black":"",sortable:!1},{headerName:"公司简介",field:"short_description",width:386,cellClassName:i=>i.row.black?"Black":"",sortable:!1},{headerName:"主营业务",field:"keywords",width:256,cellClassName:i=>i.row.black?"Black":"",sortable:!1},{headerName:"公司地址",field:"company_address",width:386,cellClassName:i=>i.row.black?"Black":"",sortable:!1}],h=i=>{const{domain:b}=i;if(!b){ee("暂无公司网站信息",{variant:"error"});return}T(b)};return e.jsx(Se,{sx:{height:E-212<300?300:E-212,"& .Black":{color:"text.disabled",textDecoration:"line-through"}},children:e.jsx(Xt,{rowKey:"id",loading:a,rows:c,columns:d,rowCount:w,onRowClick:({row:i})=>h(i),page:x,pageSize:v,onPageChange:f,sortModel:u,onSortModelChange:l,relation:z,rowSelectionModel:I,onRowSelectionModelChange:A,tableName:"linkedinCompany",initialState:{pinnedColumns:{left:[$t.field,"name"]}}})})}const Xe=["name","domain","short_description","specialties"];function Ln(){const c=en("up","md"),a=jt(),s="linkedinCompany",{defaultViewId:w}=pn(s),[x,v]=O.useState(w),f=localStorage.getItem("linkedin_precise_matching")==="true",[u,l]=ut({filters:[],viewName:"",viewChanged:!1,page:1,current:1,sortModel:[],tableData:[],total:0,selectKeys:[],selectOption:"current",selectTotal:0,allCount:0,keyword:"",keyword_fields:Xe,relation:"eq",blackAction:"add",blackOpen:!1,saveOpen:!1,editable:!1,logic:"and",fullSearch:f,aiRatingOpen:!1}),{run:I,loading:A,refresh:z}=F(yt,{manual:!0,debounceWait:300,onSuccess:({success:r,data:p})=>{if(r&&p){const{all:_,current:B,list:K,relation:W,total:xe}=p;l({tableData:K,total:xe,page:B,allCount:_,relation:W,selectKeys:[]})}}}),{filters:T,viewName:E,viewChanged:j,tableData:d,sortModel:h,total:i,page:b,selectKeys:k,keyword:g,keyword_fields:L,selectTotal:te,selectOption:ne,editable:G,logic:V,fullSearch:q}=u,{pageSize:U,setPageSize:$}=dn(),D={logic:V,filters:T,viewId:x,viewType:s,name:E,keyword:g,keyword_fields:L,editable:G},de=()=>{const r=/".*"/,p=u.fullSearch&&g&&!r.test(g)?`"${g}"`:g;return{selectKeys:k,selectSort:le(h),selectTotal:te,selectOption:ne,filters:T,filter:{},keyword:p,keyword_fields:L,logic:V}},N=r=>{const{viewId:p,filters:_,name:B,keyword:K,keyword_fields:W,editable:xe,logic:_e}=r;x!==p&&(v(p),l({viewChanged:!1})),l({logic:_e,page:1,filters:_,viewName:B,editable:xe,keyword:K||"",keyword_fields:W!=null&&W.length?W:Xe})},se=r=>{const p=r||b,_=le(h),B=/".*"/,K=u.fullSearch&&g&&!B.test(g)?`"${g}"`:g;I({viewId:x,logic:V,keyword:K,keyword_fields:L,filter:{},filters:T,current:p,pageSize:U,sort:_}),localStorage.setItem("linkedin_precise_matching",q==null?void 0:q.toString())},{closeDrawer:ae}=Ct(),{closeDrawer:J,row:Y}=vt(),{row:R}=bt(),[pe,ue]=O.useState({}),[oe,o]=O.useState(""),t="所有企业",[n,m]=O.useState([{viewId:"all",name:t,notEdit:!0,temp:!1}]),[C,S]=O.useState([]),[H,Ie]=O.useState([]),[we,ie]=O.useState(!1),[Oe,me]=O.useState(!1),{run:he}=F(un,{manual:!0,debounceWait:300,onSuccess:({data:r})=>{r&&(N(r),J(),ae())}}),{run:ye}=F(mn,{manual:!0,debounceWait:300,onSuccess:({success:r})=>{var p,_,B,K;r&&(ee("保存成功"),l({viewChanged:!1}),J(),ae(),(p=Y==null?void 0:Y.row)!=null&&p.href&&a.push((_=Y==null?void 0:Y.row)==null?void 0:_.href),(B=R==null?void 0:R.row)!=null&&B.viewId&&Z((K=R==null?void 0:R.row)==null?void 0:K.viewId))}}),{run:Q}=F(hn,{manual:!0,debounceWait:300,onSuccess:async({success:r})=>{r&&(oe&&he({viewId:oe,type:s}),De())}}),{run:re,refresh:X}=F(xn,{manual:!0,debounceWait:200,throttleWait:200,onSuccess:r=>{const{data:p}=r??{};if(p){const{mineViews:_,othersViews:B,systemViews:K}=p,W={total:_.length,list:_,name:"我创建的"},xe={total:B.length,list:B,name:"其他人创建"},_e={total:K.length,list:K,name:"系统默认"};ue({mineViews:W,othersViews:xe,systemViews:_e})}}}),Z=r=>{he({viewId:r,type:s}),re({type:s})},{run:Ae,refresh:De}=F(fn,{manual:!0,onSuccess:({data:r})=>{if(r){const p=r.filter(W=>W.viewId!=="all"),_=[{viewId:"all",name:t,notEdit:!0,count:u.allCount},...p],B=p.map(W=>W.viewId!=="all"&&W.viewId);m(_),Ie(B),_.findIndex(W=>W.viewId===x)<0&&Z("all")}}}),At=r=>{if(r==="reset"){he({viewId:x}),l({viewChanged:!1});return}if(r==="save"){ye({...D,type:D==null?void 0:D.viewType});return}r==="saveAs"&&me(!0)};O.useEffect(()=>{Ae({type:s}),re({type:s})},[s]),O.useEffect(()=>{const r=[...n],p=r.findIndex(_=>_.viewId==="all");p===0&&(r[p]={...r[p],count:u.allCount},m(r))},[u.allCount]),O.useEffect(()=>{D!=null&&D.viewId&&(D==null?void 0:D.viewId)!=="all"&&Z(D==null?void 0:D.viewId)},[]),O.useEffect(()=>{se()},[]),O.useEffect(()=>{se()},[b,U,h]),O.useEffect(()=>{se(1)},[T,g,L,q,V]);const Dt=r=>{const p=!(x==="all"&&r.length===0);l({filters:r,viewChanged:p})};return e.jsxs(xt,{children:[e.jsxs(lt,{children:[e.jsx(gn,{allCount:u.allCount,view:D,onViewChange:N,viewChanged:j,setViewChanged:r=>l({viewChanged:r}),allViewData:pe,listRun:re,addViewId:oe,setAddViewId:o,pinViewIds:H,pinViews:n,setPinViews:m,tmpViews:C,setTmpViews:S,viewId:x,onViewIdChange:Z,pinViewsRefresh:De,viewType:s,onHandleAction:At,pinViewsSave:Q,filtersOpen:we,setFiltersOpen:ie,viewAddOpen:Oe,setViewAddOpen:me}
1),k.length?e.jsx(ft,{rowCount:d.length,rowTotal:i,selectTotal:u.selectTotal,selectOption:u.selectOption,action:e.jsxs(y,{direction:"row",spacing:1,children:[e.jsx(je,{name:"AI评分",icon:e.jsx(gt,{}),color:"secondary",variant:"extended",onClick:()=>l({aiRatingOpen:!0}),size:"small"}),e.jsx(ce,{title:"若不能正常打开,请选择始终允许弹出窗口",children:c?e.jsx(M,{size:"small",color:"primary",variant:"contained",startIcon:e.jsx(Ge,{}),sx:{fontWeight:700,fontSize:"0.875rem",p:2,height:"34px",borderRadius:"20px"},onClick:()=>{const r=d==null?void 0:d.filter(p=>k.includes(p.id));for(const p in r)window.open(r[p].website||r[p].link)},children:"打开网站"}):e.jsx(ge,{sx:{background:"#078DEE",color:"#fff",width:"40px",height:"40px"},onClick:()=>{const r=d==null?void 0:d.filter(p=>k.includes(p.id));for(const p in r)window.open(r[p].website||r[p].link)},children:e.jsx(Ge,{sx:{fontSize:24}})})}),e.jsx(je,{name:"保存联系人",icon:e.jsx(ct,{}),color:"primary",variant:"extended",onClick:()=>l({saveOpen:!0}),size:"small"}),e.jsx(je,{name:"加入黑名单",icon:e.jsx(Ke,{}),color:"primary",variant:"extended",onClick:()=>l({blackAction:"add",blackOpen:!0}),size:"small"}),e.jsx(je,{name:"取消黑名单",icon:e.jsx(He,{}),color:"primary",variant:"extended",onClick:()=>l({blackAction:"cancel",blackOpen:!0}),size:"small"})]}),sx:{minHeight:60},onSelectAllRows:r=>{if(r){const p=d.map(_=>_.id);l({selectKeys:p,selectTotal:p.length,selectOption:"current"})}else l({selectKeys:[],selectTotal:0,selectOption:"current"})},onSelectChange:(r,p)=>{const _=d.map(B=>B.id);l({selectKeys:_,selectTotal:p,selectOption:r})}}):e.jsx(_n,{filters:T,keyword:g,keyword_fields:L,onKeywordChange:r=>l({keyword:r}),onFiltersChange:Dt,onKeywordFieldsChange:r=>l({keyword_fields:r}),setViewChanged:r=>l({viewChanged:r}),onViewChange:N,view:D,pinViewsRefresh:De,listRefresh:X,setAddViewId:o,pinViews:n,tmpViews:C,setTmpViews:S,onViewIdChange:Z,viewType:s,pinViewsSave:Q,setViewAddOpen:me,fullSearch:u.fullSearch,onFullSearchChange:r=>l({fullSearch:r})}),!k.length&&e.jsx(y,{sx:{height:4},children:A&&e.jsx(dt,{color:"primary",sx:{width:1}})}),e.jsx(Tn,{relation:u.relation,tableData:d,loading:A,flushData:z,total:i,page:b,pageSize:U,sortModel:h,onPageChange:(r,p)=>{l({page:r}),$(p)},onSortChange:r=>l({sortModel:r}),selectKeys:k,onSelectChange:r=>l({selectKeys:r,selectOption:"current",selectTotal:r.length})})]}),e.jsx(It,{action:u.blackAction,params:de(),open:u.blackOpen,onClose:()=>l({blackOpen:!1}),onSuccess:z}),e.jsx(Ot,{open:u.saveOpen,onClose:()=>l({saveOpen:!1}),initValues:{keyword:g,keyword_fields:L,filters:T,selectKeys:k,selectTotal:te,selectOption:ne,selectSort:le(h)},onSuccess:()=>l({selectKeys:[],selectOption:"current",selectTotal:0})}),e.jsx(kt,{open:u.aiRatingOpen,params:de(),onClose:()=>l({aiRatingOpen:!1}),onSuccess:()=>{l({selectKeys:[],selectOption:"current",selectTotal:0})},table:"linkedinCompany"})]})}const zn=[{step:1,title:"1. 简单模式——帮你快速锁定目标",description:c=>e.jsxs(P,{variant:"body2",children:["通过关键词、行业、国家等🖼️",c.renderModalButton("多维度筛选",{title:"多维度筛选",content:e.jsx("img",{src:"https://cos.files.maozhishi.com/data/web/web-files/img/20250310122505.png",alt:"多维度筛选",style:{maxWidth:"100%"}})}),",快速🖼️",c.renderModalButton("锁定目标客户",{title:"锁定目标客户",content:e.jsx("img",{src:"https://cos.files.maozhishi.com/data/web/web-files/img/20250310132911.png",alt:"锁定目标客户",style:{maxWidth:"100%"}})}),"。(📖",c.renderLink("查看基础教程","https://www.laifa.xin/zhinan/linkedin-customer-search#search-customers"),")"]})},{step:2,title:"2. 高级模式——组合条件,深度挖掘",description:c=>e.jsxs(P,{variant:"body2",children:["创建🖼️",c.renderModalButton("自定义视图",{title:"自定义视图",content:e.jsx("img",{src:"https://cos.files.maozhishi.com/data/web/web-files/img/20250310144427.png",alt:"自定义视图",style:{maxWidth:"100%"}})}),",组合复杂筛选条件,实现🖼️",c.renderModalButton("更高阶的精准搜索",{title:"更高阶的精准搜索",content:e.jsx("img",{src:"https://cos.files.maozhishi.com/data/web/web-files/img/202503101
151923.png",alt:"更高阶的精准搜索",style:{maxWidth:"100%"}})}),"。(📖",c.renderLink("查看高级教程","https://www.laifa.xin/zhinan/linkedin-customer-search#advanced-mode"),")"]})},{step:3,title:"3. 洞察客户,批量触达",description:c=>e.jsxs(P,{variant:"body2",children:["点击🖼️",c.renderModalButton("分析客户详情",{title:"分析客户详情",content:e.jsx("img",{src:"https://cos.files.maozhishi.com/data/web/web-files/img/20250310133833.png",alt:"分析客户详情",style:{maxWidth:"100%"}})}),",一键🖼️",c.renderModalButton("批量保存决策人邮箱",{title:"批量保存决策人邮箱",content:e.jsx("img",{src:"https://cos.files.maozhishi.com/data/web/web-files/img/20250310153100.png",alt:"批量保存决策人邮箱",style:{maxWidth:"100%"}})}),"。(📖",c.renderLink("查看保存教程","https://www.laifa.xin/zhinan/linkedin-customer-search#save-emails"),")"]})}],Pn="linkedin-company-guide-display";function Rn(){const{advanceMode:c}=Ne(),[a,s]=tn(Pn,!0);return e.jsxs(e.Fragment,{children:[!c&&e.jsx(Se,{sx:{px:2.5,pt:1},children:e.jsx(sn,{title:"领英搜索",subtitle:"基于领英(LinkedIn)构建的客户数据库,通过 关键词、行业、规模、国家 等,帮你快速定位目标客户",guideUrl:"https://www.laifa.xin/zhinan/linkedin-customer-search",stepsData:zn,isdisplayGuide:a,setIsdisplayGuide:s})}),e.jsx(kn,{}),c?e.jsx(Ln,{}):e.jsx(An,{})]})}function fs(){return e.jsxs(e.Fragment,{children:[e.jsx(nn,{children:e.jsx("title",{children:" 领英搜索 - 来发信"})}),e.jsx(Rn,{})]})}export{fs 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.