PageSourceSearch

https://scout.huntshare.tech/_nuxt/CSHSv4o9.js

js huntshare.tech collected 2026-10-06 07:16:17 UTC 25,839 bytes, 1 lines download raw bytes

1import{h as wt,aH as bt,g as K,s as dt,m as O,X as M,r as z,i as st,c as E,F as Rt,b as Z,G as ft,q as r,t as i,a9 as I,x as e,Y as nt,B as n,a6 as lt,D as t,aY as rt,a8 as j,S as o,$ as P,ab as vt,Z as G,ai as ct,C as $,v as C,a7 as U,aa as et,ap as yt,a2 as at,a4 as h,a5 as ut,aV as tt,b2 as zt,z as Y,bA as kt,Q as Et,o as Pt,aO as Ut,aX as At,bC as jt,ac as Ft,H as Nt}from"./CoH3aSMr.js";import{P as Dt}from"./Bo8n6mQa.js";import{u as pt}from"./BGPO0PJ0.js";import{a as Bt}from"./DXdEE6Ly.js";import{B as b}from"./CZETIz27.js";import{V as It}from"./B8JDJ--H.js";import{u as Lt}from"./ClFUXl6Q.js";const Ot=()=>{const{$apiRoute:s}=wt();return bt(`${s}/scout/get_statuses/`,{method:"POST",server:!1},"$jmrEqYSP6-")},Yt=s=>{const{$apiRoute:l}=wt();return bt(`${l}/scout/get_users_tasks/`,{query:{page:s||1,size:20},server:!1,watch:[s]},"$UakUX67Fre")},Mt=()=>{const{error:s,mutate:l,pending:a,success:v}=pt((y,g,k)=>y("/scout/tasks/create_with_tags",{body:{tags:k,text:g},method:"POST"}),{success:K("scout-task.created")});return{addTasks:l,error:s,pending:a,success:v}},Wt=()=>{const{error:s,mutate:l,pending:a,success:v}=pt((g,k)=>g("/scout/delete_task/",{method:"POST",query:{task_id:k}}),{error:null,rethrow:!0,success:K("scout-task.deleted")});return{deleteScout:async g=>{try{return await l(g)}catch{dt("error",s.value?.status===401?K("scout-task.noRights"):K("scout-task.deleteFailed"),"")}},error:s,pending:a,success:v}},qt=()=>{const{error:s,mutate:l,pending:a,success:v}=pt((y,g,k,V,_)=>y(`/scout/tasks/update_with_tags/${_}?new_name=${V}`,{body:{tags:k,text:g},method:"POST"}),{error:null,success:K("scout-task.updated")});return{error:s,pending:a,success:v,updateTasks:l}},Gt={class:"panel"},Kt={style:{"margin-bottom":"10px"}},Ht={key:0,style:{display:"flex","align-items":"center"}},Xt={style:{opacity:"0.7","margin-right":"10px","white-space":"nowrap"}},Jt=["placeholder"],Qt={style:{"margin-left":"20px",display:"flex","align-items":"center",color:"'var(--grey-main)'",opacity:"0.5"}},Zt={style:{width:"20px","margin-left":"5px",height:"auto",display:"flex","align-items":"center"}},te={key:1},ee={class:"block-main"},se={class:"container"},ae={style:{"font-size":"18px"}},oe={class:"textarea-wrapper"},ie=["disabled","placeholder","onKeydown"],ne={style:{display:"flex","justify-content":"space-between","align-items":"flex-end","flex-wrap":"wrap",gap:"30px"}},le={style:{"font-size":"18px"}},re={style:{"white-space":"pre-line"}},de={class:"container",style:{"padding-bottom":"70px"}},ce={style:{"font-size":"18px","margin-bottom":"30px",width:"100%"}},ue={style:{color:"'var(--grey-main)'",opacity:"0.5"}},pe={class:"tag-container"},he={key:"input",style:{display:"flex"}},ge={style:{display:"flex",height:"33px"}},me=["placeholder"],fe=["onClick"],ve=["onClick"],ye={class:"tag-action"},ke={key:"tag_loader",style:{width:"100%","text-align":"center"}},_e={style:{"font-weight":"600"},class:"loading-doted"},xe={style:{position:"absolute",bottom:"30px",right:"35px"}},we={key:0,style:{color:"var(--red-20)",width:"100%","text-align":"center","margin-bottom":"25px"}},be={href:"/user/account?chapter=subscription",target:"_self",class:"no-link",style:{color:"var(--blue-50)","white-space":"pre-line"}},$e={key:1,style:{color:"var(--red-20)",width:"100%","text-align":"center","margin-bottom":"25px","white-space":"pre-line"}},Te={style:{display:"flex","flex-direction":"row",gap:"15px"}},Se=O({__name:"ScoutForm",props:{id:{},modelValue:{}},emits:["onFinish","update:modelValue"],setup(s,{emit:l}){const{t:a}=M(),v=s,y=z(""),g=z(!1),k=z(!1),V=z(!1),_=st("currentUser"),A=void 0,T=l,S=z(""),d=z([]),f=E({get:()=>v.modelValue.description,set:c=>T("update:modelValue",{...v.modelValue,description:c})}),x=E({get:()=>v.modelValue.tags,set:c=>T("update:modelValue",{...v.modelValue,tags:c})}),W=E({get:()=>v.modelValue.task_name,set:c=>T("update:modelValue",{...v.modelValue,task_name:c})});function L(c){x.value.includes(c)||(x.value=[...x.value,c])}const H=()=>{const c=y.value&&y.value?.trim();if(!c||c?.length<=0)return;c.split(",").map(p=>p?.trim()).filter(p=>p?.length>0)?.forEach(p=>L(p)),y.value=""};function D(){x.value=[...x.value,...d.value.filter(c=>!x.value.includes(c))],d.value=[]}const ot=()=>{J()},X=c=>{x.value=x.value.filter(u=>u!==c)},it=()=>{const c=new Set(x.value);d.value=d.value.filter(u=>!c.has(u))};Rt(()=>{it()});const F=E(()=>{const c=f.value?.replace(/\s+/g,"");return/^(https?:\/\/[^\s/$.?#].[^\s]*)$/i.test(c)});Z(F,(c,u)=>{c!==u&&J()});let R,w=null,N=null,q=null;async function $t(c,u=[]){if(!c||c?.length<10||F.value)return null;w&&w.abort(),w=new AbortController;const p=ft();try{return await $fetch(`${p.public.apiRoute}/scout/task_description_with_tags/start_generate`,{body:JSON.stringify({tags:u,text:c}),method:"POST",signal:w.signal})}catch(B){return B?.name==="AbortError"||console.error(B),null}}function Tt(){}Z(S,(c,u)=>{c&&c!==u&&ht(c)}),Z([f,x],([c,u],[p,B])=>{clearTimeout(R),R=setTimeout(async()=>{const Q=await $t(c,u);Q?.hash&&(S.value=Q.hash)},3e3)},{deep:!0});async function ht(c){k.value=!0,N&&N.abort(),q&&clearTimeout(q),N=new AbortController;const u=ft();try{const p=await $fetch(`${u.public.apiRoute}/scout/task_description_with_tags/${c}`,{credentials:"include",method:"GET",signal:N.signal});if(d.value=Array.isArray(p)?p:[],x.value?.length===0&&d.value?.length>0){const B=d.value.slice(0,7);x.value=[...x.value,...B],d.value=d.value.filter(Q=>!B.includes(Q))}}catch(p){if(p?.status===404){q=setTimeout(()=>ht(c),1e3);return}p?.name==="AbortError"?console.warn("loadTags aborted"):console.error("Ошибка получения тегов:",p)}finally{k.value=!1}}function St(){}const{addTasks:Ct}=Mt(),{updateTasks:Vt}=qt();Z(()=>f.value,(c,u)=>{c?.trim()===""&&u?.trim()!==""&&J()});const J=()=>{x.value=[],d.value=[],S.value="",w&&w.abort(),N&&N.abort(),q&&clearTimeout(q),clearTimeout(R)},gt=async()=>{g.value=!0,V.value=!1;const{data:c}=yt();f.value?.replace(/\s+/g,"");try{v.id?await Vt(f.value,x.value,v.modelValue.task_name,v.id):await Ct(f.value,x.value),J(),f.value=null,T("onFinish")}catch(u){console.error("Ошибка при создании скаута:",u)}finally{g.value=!1}},mt=async()=>{g.value=!0,V.value=!1;const{data:c}=yt(),u=f.value?.replace(/\s+/g,"");try{const{content:p}=await $fetch("/api/scrape-text",{params:{url:u}});f.value=p?.trim()}catch(p){V.value=!0,console.error("Ошибка при вытаскивании текста:",p)}finally{g.value=!1}};return(c,u)=>(i(),r(I,null,[e("div",Gt,[e("div",Kt,[s.id?(i(),r("h2",Ht,[e("span",Xt,"id "+n(s.id),1),nt(e("input",{"onUpdate:modelValue":u[0]||(u[0]=p=>rt(W)?W.value=p:null),class:"plain-textarea",placeholder:t(a)("monitoring-form.
1input-placeholder-text")},null,8,Jt),[[lt,t(W)]]),e("div",Qt,[j(n(t(a)("monitoring-form.edit-mode"))+" ",1),e("div",Zt,[o(t(P),{name:"outlined:edit"})])])])):(i(),r("div",te,[e("h2",null,n(t(a)("monitoring-form.form-title")),1),e("div",null,n(t(a)("monitoring-form.build-ai-text."+t(_)?.user_type)),1)]))]),e("div",ee,[e("div",se,[e("div",null,[e("span",ae,n(t(A)),1)]),e("div",oe,[nt(e("textarea",{"onUpdate:modelValue":u[1]||(u[1]=p=>rt(f)?f.value=p:null),disabled:t(_)?.scout_balance<=0||t(g),class:"sort-input custom-scroll",placeholder:t(a)("monitoring-form.input-placeholder"),onInput:Tt,onKeydown:vt(G(St,["prevent"]),["tab"])},null,40,ie),[[lt,t(f)]])]),e("div",ne,[e("div",le,[e("span",re,n(t(a)("monitoring-form.form-hint")),1)])])]),e("div",de,[e("div",null,[e("div",ce,[e("span",null,[j(n(t(a)("monitoring-form.edit-ai-text."+t(_)?.user_type))+" ",1),e("span",ue,n(t(a)("monitoring-form.edit-note")),1)])]),e("div",pe,[o(ct,{name:"fade-up"},{default:$(()=>[t(F)&&!t(g)?(i(),r("div",{key:"tag_exstract",class:"tag",style:{"border-color":"var(--base-primary)"},onClick:u[2]||(u[2]=p=>mt())},n(t(a)("monitoring-form.extract-link")),1)):C("",!0),t(f)?.length>10&&t(_)?.scout_balance>0&&!t(g)&&t(x)?.length>0?(i(),r("div",{key:"tag_create",class:"tag",style:{"border-color":"var(--base-primary)"},onClick:u[3]||(u[3]=p=>gt())},n(t(a)("monitoring-form.create-task")),1)):C("",!0),t(x)?.length>0?(i(),r("div",{key:"tag_clear",class:"tag",style:{"border-color":"var(--red-20)",color:"var(--red-20)"},onClick:u[4]||(u[4]=p=>ot())},n(t(a)("monitoring-form.clear-all")),1)):C("",!0),e("div",he,[e("div",ge,[nt(e("input",{"onUpdate:modelValue":u[5]||(u[5]=p=>rt(y)?y.value=p:null),style:{"padding-left":"18px","border-radius":"12px","font-size":"16px",height:"33px"},type:"text",placeholder:t(a)("monitoring-form.tag-name-placeholder"),class:"custom-input",onKeyup:vt(H,["enter"])},null,40,me),[[lt,t(y)]]),o(U,{style:{width:"33px",height:"33px",padding:"5px"},disabled:t(y)?.length<=2,onClick:H},{default:$(()=>[o(t(P),{name:"outlined:plus"})]),_:1},8,["disabled"])])]),(i(!0),r(I,null,et(t(x),p=>(i(),r("div",{key:p,class:"tag tag-deleted",onClick:B=>X(p)},[j(n(p)+" ",1),u[8]||(u[8]=e("div",{class:"tag-action",style:{"font-size":"8px"}}," ✕ ",-1))],8,fe))),128)),t(d)?.length>0?(i(),r("div",{key:"tag_accept_all",class:"tag",style:{"border-color":"var(--base-primary)",color:"var(--base-primary)"},onClick:u[6]||(u[6]=p=>D())},n(t(a)("monitoring-form.apply-all-tags")),1)):C("",!0),(i(!0),r(I,null,et(t(d),p=>(i(),r("div",{key:p,class:"tag tag-add",style:{opacity:"0.5"},onClick:B=>L(p)},[j(n(p)+" ",1),e("div",ye,[o(t(P),{name:"outlined:mark"})])],8,ve))),128)),t(d)?.length<10&&t(f)?.length>=10&&!t(F)?(i(),r("div",ke,[e("span",_e,n(t(a)("monitoring-form.analyzing")),1)])):C("",!0)]),_:1})])])]),e("div",xe,[t(_)?.scout_balance<=0?(i(),r("div",we,[j(n(t(a)("monitoring-form.no-tasks"))+" ",1),e("a",be,n(t(a)("monitoring-form.see-tariff")),1)])):C("",!0),t(V)?(i(),r("div",$e,n(t(a)("monitoring-form.link-error")),1)):C("",!0),o(U,{type:"primary",style:{"padding-left":"48px","padding-right":"48px"},disabled:t(f)?.length<=10||t(_)?.scout_balance<=0,loading:t(g),onClick:u[7]||(u[7]=p=>t(F)?mt():gt())},{default:$(()=>[e("div",Te,[o(t(P),{name:"outlined:search"}),j(" "+n(t(F)?t(a)("monitoring-form.extract-link"):s.id?t(a)("monitoring-form.update-task"):t(a)("monitoring-form.create-task")),1)])]),_:1},8,["disabled","loading"])])])]),e("div",null,[o(Bt,{user_type:t(_)?.user_type??"HR"},null,8,["user_type"])])],64))}}),Ce=at(Se,[["__scopeId","data-v-4fd58cac"]]),Ve={key:0,class:"loader-info"},Re=["stroke-width","stroke"],ze=["stroke","stroke-width","stroke-linecap","stroke-dashoffset","transform"],Ee=["stroke","stroke-width","stroke-linecap","stroke-dashoffset","transform"],Pe={key:0,class:"loader-info"},_t=120,Ue=O({__name:"BaseProgress",props:{format:{default:s=>`${s}%`,type:Function},percent:{default:0,type:Number},showInfo:{default:!0,type:Boolean},status:{default:"normal",type:String},steps:{default:0,type:Number},strokeColor:{default:"var(--base-primary)",type:String},strokeLinecap:{default:"round",type:String},strokeWidth:{default:10,type:[Number,String]},success:{default:()=>({percent:0,strokeColor:"var(--success-main)"}),type:Object},trailColor:{default:"#249dff50",type:String},type:{default:"line",type:String}},setup(s){const l=s,a=E(()=>{let A=l.percent+"%";if(l.steps>0){const T=100/l.steps;A=`${Math.floor(l.percent/T)*T}%`}return{backgroundColor:l.strokeColor,borderRadius:l.strokeLinecap==="round"?"100px":"0",height:"100%",width:A}}),v=E(()=>l.format(l.percent,l.success.percent)),y=50-Number(l.strokeWidth)/2,g=2*Math.PI*y,k=E(()=>g*(1-l.percent/100)),V=E(()=>g*(1-(l.success&&l.success.percent?l.success.percent:0)/100)),_=E(()=>`rotate(${l.type==="dashboard"?-135:-90} 50 50)`);return(A,T)=>(i(),r("div",{class:h(["loader",`loader-${s.type}`])},[s.type==="line"?(i(),r(I,{key:0},[e("div",{class:"loader-line-outer",style:ut({backgroundColor:s.trailColor,height:s.strokeWidth+"px"})},[e("div",{class:"loader-line-inner",style:ut(a.value)},null,4)],4),s.showInfo?(i(),r("div",Ve,n(v.value),1)):C("",!0)],64)):s.type==="circle"||s.type==="dashboard"?(i(),r(I,{key:1},[(i(),r("svg",{width:_t,height:_t,viewBox:"0 0 100 100",class:"loader-circle"},[e("circle",{class:"loader-trail",cx:"50",cy:"50",r:y,"stroke-width":s.strokeWidth,fill:"none",stroke:s.trailColor},null,8,Re),e("circle",{class:"loader-path",cx:"50",cy:"50",r:y,fill:"none",stroke:s.strokeColor,"stroke-width":s.strokeWidth,"stroke-linecap":s.strokeLinecap,"stroke-dasharray":g,"stroke-dashoffset":k.value,transform:_.value},null,8,ze),s.success&&s.success.percent?(i(),r("circle",{key:0,class:"loader-success",cx:"50",cy:"50",r:y,fill:"none",stroke:s.success.strokeColor,"stroke-width":s.strokeWidth,"stroke-linecap":s.strokeLinecap,"stroke-dasharray":g,"stroke-dashoffset":V.value,transform:_.value},null,8,Ee)):C("",!0)])),s.showInfo?(i(),r("div",Pe,n(v.value),1)):C("",!0)],64)):C("",!0)],2))}}),Ae=at(Ue,[["__scopeId","data-v-39631fd5"]]),je="_card_jw2ri_1",Fe="_cell_jw2ri_10",Ne="_title_jw2ri_36",De="_short_jw2ri_59",m={card:je,cell:Fe,"load-head":"_load-head_jw2ri_18","task-name-container":"_task-name-container_jw2ri_25","task-id-container":"_task-id-container_jw2ri_30",title:Ne,"card-container":"_card-container_jw2ri_48",short:De,"description-clamp":"_description-clamp_jw2ri_63"},Be={style:{"font-size":"18px"}},Ie={style:{"min-width":"500px","max-width":"500px",width:"100%"}},Le={style:{width:"100%",display:"flex","flex-direction":"row","justify-content":"space-between"}},Oe={style:{width:"120px"}},Ye={key:0,style:{"font-size":"18px"}},Me={key:1,style:{"font-size":"18px"}},We={style:{width:"100%"}},qe={style:{display:"flex",gap:"10px"}},Ge=O({__name:"ScoutTaskEmpty",props:{data:{}},setup(s){const{t:l}=M();return st("currentUser"),(a,v)=>(i(),r("div",{class:h([!s.data?.search_query&&"short",t(m)["card-container"]])},[e("div",{class:h(t(m)["task-id-container"])},n(s.data.id),3),e("div",{class:h(t(m)["task-name-container"])},[e("div",{class:h(t(m).title)},n(t(l)("monitoring-task.title")),3),e("div",Be,n(s.data?.task_name||s.data?.name),1)],2),e("div",Ie,[e("div",Le,[e("div",null,n(t(l)("monitoring-task.processing")),1)]),o(t(b),{style:{height:"10px","background-color":"var(--accent-hover)"}})]),e("div",Oe,[e("div",{class:h(t(m).title)},n(t(l)("monitoring-task.created-at")),3),s.data?.created_at?(i(),r("div",Ye,n(t(tt)(s.data?.created_at).format("DD.MM.YYYY")),1)):(i(),r("div",Me,n(t(l)("monitoring-task.not-known")),1))]),e("div",We,[e("div",{class:h(t(m).title)},n(t(l)("monitoring-task.description")),3),e("div",{class:h(t(m)["description-clamp"])}
1,n(s.data?.description),3)]),e("div",qe,[o(U,{disabled:!0,type:"danger",style:{padding:"0px",width:"40px",height:"40px"}},{default:$(()=>[o(t(P),{name:"outlined:basket",style:{height:"18px"}})]),_:1}),o(U,{style:{padding:"0px",width:"40px",height:"40px"},type:"aclib",disabled:!0},{default:$(()=>[o(t(P),{name:"outlined:arrow",style:{transform:"rotate(90deg)",height:"24px"}})]),_:1})])],2))}}),Ke={style:{"font-size":"18px",width:"26px","word-break":"normal"}},He={style:{width:"300px"}},Xe={style:{"font-size":"18px"}},Je={style:{width:"50%"}},Qe={style:{width:"10%"}},Ze={style:{width:"50%"}},ts={style:{width:"10%"}},es={style:{width:"120px"}},ss={key:0,style:{"font-size":"18px"}},as={key:1,style:{"font-size":"18px"}},os={style:{width:"160px"}},is={style:{"font-size":"18px"}},ns={style:{width:"100%"}},ls={style:{display:"flex",gap:"10px"}},rs=O({__name:"ScoutTaskLoader",props:{data:{}},setup(s){return(l,a)=>(i(),r("div",null,[a[0]||(a[0]=j(" f ",-1)),e("div",Ke,[o(t(b))]),e("div",He,[e("div",{class:h(t(m).title)},[o(t(b))],2),e("div",Xe,[o(t(b))])]),e("div",{class:h(t(m).cell)},[e("div",{class:h(t(m)["load-head"])},[e("div",Je,[o(t(b))]),e("div",Qe,[o(t(b))])],2),o(t(b))],2),e("div",{class:h(t(m).cell)},[e("div",{class:h(t(m)["load-head"])},[e("div",Ze,[o(t(b))]),e("div",ts,[o(t(b))])],2),o(t(b))],2),e("div",es,[e("div",{class:h(t(m).title)},[o(t(b))],2),s.data?.created_at?(i(),r("div",ss,[o(t(b))])):(i(),r("div",as,[o(t(b))]))]),e("div",os,[e("div",{class:h(t(m).title)},[o(t(b))],2),e("div",is,[o(t(b))])]),e("div",ns,[e("div",{class:h(t(m).title)},[o(t(b))],2),e("div",{class:h(t(m)["description-clamp"])},[o(t(b))],2)]),e("div",ls,[o(t(b),{style:{width:"40px",height:"40px","border-radius":"90px"},type:"image"}),o(t(b),{style:{width:"40px",height:"40px","border-radius":"90px"},type:"image"})])]))}}),ds=["href"],cs={style:{"font-size":"18px"}},us={key:0,style:{display:"flex",gap:"15px",height:"44px",width:"100%"}},ps={key:1},hs={key:2},gs={style:{width:"120px"}},ms={key:0,style:{"font-size":"18px"}},fs={key:1,style:{"font-size":"18px"}},vs={style:{"font-size":"18px"}},ys={style:{width:"100%"}},ks={style:{display:"flex",gap:"10px"}},_s=["href"],xs=["href"],xt=O({__name:"ScoutTask",props:{data:{},loading:{type:Boolean,default:!1}},emits:["click","onEdit","deleted"],setup(s,{emit:l}){const{t:a}=M(),v=st("currentUser"),y=l,{deleteScout:g}=Wt(),k=s,V=async(S,d)=>{d.preventDefault(),d.stopPropagation(),await g(S),y("deleted",S)},_=(S,d)=>{d.preventDefault(),d.stopPropagation(),y("onEdit",S)};zt();const A=E(()=>{if(!k.data||!k.data.statuses)return!1;const S=Number(k.data.statuses.linkedin)||0,d=Number(k.data.statuses.telegram)||0;return(S+d)/2===100&&(!k.data.total_count||k.data.total_count===0)}),T=(S,d)=>{let f=`/user/scout/result/${S}`;d==="NEAR"?f+="?result=NEAR":d==="linkedin"?f+="?filter=linkedin":d==="telegram"&&(f+="?filter=telegram"),window.open(f,"_blank")};return(S,d)=>(i(),r("a",{href:`/user/scout/result/${s.data?.id}`,target:"_blank",style:{height:"100%"},class:"no-link"},[e("div",{class:h(t(m).card)},[s.loading?(i(),Y(rs,{key:0,class:h(t(m)["card-container"])},null,8,["class"])):s.data?.search_query?(i(),r("div",{key:2,class:h(t(m)["card-container"])},[e("div",{class:h(t(m)["task-id-container"])},n(s.data.id),3),e("div",{class:h(t(m)["task-name-container"])},[e("div",{class:h(t(m).title)},n(t(a)("monitoring-task.title")),3),e("div",cs,n(s.data?.task_name||s.data?.name),1)],2),e("div",{class:h(t(m).cell),style:ut([{"min-width":"500px","max-width":"500px",width:"100%"},s.data?.total_count>0&&"align-items: center"])},[s.data?.total_count>0?(i(),r("div",us,[o(U,{style:{height:"100%",width:"100%"},onClick:d[0]||(d[0]=G(()=>T(s.data?.id,"linkedin"),["stop","prevent"]))},{default:$(()=>[o(t(P),{name:"social:stabel-linkedin",style:{width:"15px",height:"auto","margin-right":"15px"}}),e("div",null,n(t(a)("monitoring-task.linkedin-button")),1)]),_:1}),d[5]||(d[5]=e("div",{style:{width:"1px",height:"44px","background-color":"var(--grey-main)",opacity:"0.5"}},null,-1)),o(U,{style:{height:"100%",width:"100%"},onClick:d[1]||(d[1]=G(()=>T(s.data?.id,"telegram"),["stop","prevent"]))},{default:$(()=>[o(t(P),{name:"social:stabel-telegram",style:{width:"15px",height:"auto","margin-right":"15px"}}
1),e("div",null,n(t(a)("monitoring-task.telegram-button")),1)]),_:1})])):A.value?(i(),r("div",ps,[e("div",{class:h(t(m)["load-head"])},[e("div",{class:h(t(m).title)},n(t(a)("monitoring-task.in-progress")),3)],2),e("a",{class:"link",href:"#",onClick:d[2]||(d[2]=(...f)=>t(kt)&&t(kt)(...f))},n(t(a)("monitoring-task.support-link")),1)])):(i(),r("div",hs,[e("div",{class:h(t(m)["load-head"])},[e("div",{class:h(t(m).title)},n(t(a)("monitoring-task.in-progress")),3),s.data?.total_count>=5||t(tt)().diff(t(tt)(s.data.created_at),"day")>=10?C("",!0):(i(),r("div",{key:0,class:h((s.data?.statuses?.linkedin===void 0||s.data?.statuses?.telegram===void 0)&&"loading-doted")},n(s.data?.statuses?.linkedin===void 0||s.data?.statuses?.telegram===void 0?" . . . ":((s.data?.statuses?.linkedin+s.data?.statuses?.telegram)/2).toFixed(1)+"%"),3))],2),s.data?.statuses?.linkedin!==void 0||s.data?.statuses?.telegram!==void 0?(i(),Y(t(Ae),{key:0,percent:parseFloat(((s.data?.statuses?.linkedin+s.data?.statuses?.telegram)/2).toFixed(2)),format:f=>""},null,8,["percent"])):(i(),Y(t(b),{key:1,style:{height:"10px","background-color":"#249dff50",opacity:"1"},"action-color":"var(--blue-20)"}))]))],6),e("div",gs,[e("div",{class:h(t(m).title)},n(t(a)("monitoring-task.created-at")),3),s.data?.created_at?(i(),r("div",ms,n(t(tt)(s.data?.created_at).format("DD.MM.YYYY")),1)):(i(),r("div",fs,n(t(a)("monitoring-task.not-known")),1))]),e("div",null,[e("div",{class:h(t(m).title)},n(t(a)("monitoring-task.found",{count:t(a)(`global.product.${t(v)?.user_type??"HR"}`,1)})),3),e("div",vs,n(s.data?.total_count||0),1)]),e("div",ys,[e("div",{class:h(t(m).title)},n(t(a)("monitoring-task.description")),3),e("div",{class:h(t(m)["description-clamp"])},n(s.data?.description),3)]),e("div",ks,[o(U,{style:{padding:"0px",width:"40px",height:"40px"},type:"ghost",onClick:d[3]||(d[3]=G(f=>_(s.data.id,f),["prevent"]))},{default:$(()=>[o(t(P),{name:"outlined:edit",style:{height:"15px",width:"15px"}})]),_:1}),o(It,{text:t(a)("monitoring-task.manual-tooltip"),position:"left"},{activator:$(({props:f})=>[e("a",Et(f,{href:`/#hash=${s.data.search_hash}`,target:"_blank"}),[o(U,{style:{padding:"0px",width:"40px",height:"40px"},type:"ghost"},{default:$(()=>[o(t(P),{name:"outlined:search",style:{transform:"rotate(90deg)",height:"18px"}})]),_:1})],16,_s)]),_:1},8,["text"]),o(U,{type:"danger",style:{padding:"0px",width:"40px",height:"40px"},onClick:d[4]||(d[4]=G(f=>V(s.data?.id,f),["prevent"]))},{default:$(()=>[o(t(P),{name:"outlined:basket",style:{height:"18px"}})]),_:1}),e("a",{href:`/user/scout/result/${s.data?.id}`,target:"_blank"},[o(U,{style:{padding:"0px",width:"40px",height:"40px"},type:"aclib"},{default:$(()=>[o(t(P),{name:"outlined:arrow",style:{transform:"rotate(90deg)",height:"24px"}})]),_:1})],8,xs)])],2)):(i(),Y(Ge,{key:1,data:s.data,class:h(t(m)["card-container"])},null,8,["data","class"]))],2)],8,ds))}}),ws="scout_page_tour_v1",bs=O({__name:"ScoutTour",props:{formEl:{},tasksEl:{}},setup(s){const l=s,{t:a}=M(),{finish:v,isFinished:y}=Lt(ws),g=z(!1),k=z(null);Pt(()=>{y.value||setTimeout(()=>{g.value=!0},600)});function V(){k.value?.reset(),g.value=!0}function _(){g.value=!1,v()}function A(){g.value=!1,v()}const T=E(()=>[{description:a("monitoring.tour.step1.description"),title:a("monitoring.tour.step1.title")},{description:a("monitoring.tour.step2.description"),placement:"bottom-start",target:l.formEl,title:a("monitoring.tour.step2.title")},{description:a("monitoring.tour.step3.description"),placement:"top-start",target:l.tasksEl,title:a("monitoring.tour.step3.title")}]);return(S,d)=>(i(),r("div",null,[o(Ut,{name:"tour-btn-fade"},{default:$(()=>[g.value?C("",!0):(i(),Y(U,{key:0,type:"primary",style:{"border-radius":"100%",width:"23px",height:"23px",padding:"0",display:"flex","align-items":"center","justify-content":"center"},class:"scout-tour-trigger",title:t(a)("monitoring.tour.step1.title"),onClick:V},{default:$(()=>[...d[0]||(d[0]=[j(" ? ",-1)])]),_:1},8,["title"]))]),_:1}),o(t(At),{ref_key:"tourRef",ref:k,steps:T.value,visible:g.value,"prev-label":t(a)("monitoring.tour.prev"),"next-label":t(a)("monitoring.tour.next"),"finish-label":t(a)("monitoring.tour.finish"),onClose:_,onFinish:A},null,8,["steps","visible","prev-label","next-label","finish-label"])]))}}),$s=at(bs,[["__scopeId","data-v-1e7b726f"]]),Ts={style:{width:"100%"}},Ss={class:"requests-grid"},Cs={key:0,class:"no-scouts"},Vs={key:0,style:{display:"flex","flex-direction":"column","align-items":"center"}},Rs={style:{"margin-bottom":"20px"}},zs={href:"/user/account?chapter=subscription",target:"_self"},Es={key:1},Ps={href:"/",target:"_self",class:"no-link",style:{color:"var(--base-secondary)"}},Us={key:1,style:{display:"flex","flex-direction":"column",gap:"10px"}},As={key:2},js=O({__name:"ScoutPage",setup(s){const{t:l}=M(),a=z(null),v=E(()=>a.value??null),y=z(null),g=E(()=>y.value??null),k=st("currentUser"),V=z(1),{data:_,error:A,pending:T,refresh:S}=Yt(V),{data:d,error:f,pending:x,refresh:W}=Ot();function L(){S(),W()}const H=F=>{L()},D=z(X()),ot=F=>{const R=_.value?.tasks.find(w=>w.id===F);R&&(D.value=R,L())};z(X());function X(){return{description:"",id:-1,tags:[],task_name:"",total_count:0}}const it=async()=>{D.value.id?dt("success",l("monitoring.taskUpdated"),""):dt("success",l("monitoring.taskCreated"),""),await Ft(),L()};return jt(L,5e3),(F,R)=>
1(i(),r(I,null,[e("div",Ts,[e("div",{ref_key:"formRef",ref:a,class:"search-top-panel-info","data-tour":"scout-form"},[o(Ce,{id:D.value?.id>0?String(D.value?.id):void 0,modelValue:D.value,"onUpdate:modelValue":R[0]||(R[0]=w=>D.value=w),onOnFinish:R[1]||(R[1]=()=>it())},null,8,["id","modelValue"])],512),t(_)?.tasks&&t(k)?(i(),r("div",{key:0,ref_key:"tasksRef",ref:y,class:"panel-container","data-tour":"scout-tasks"},[e("div",Ss,[t(_)&&!t(_).tasks&&!t(T)?(i(),r("div",Cs,[t(k)?.scout_balance===-1?(i(),r("div",Vs,[e("span",Rs,n(t(l)("monitoring.noAccessTitle")),1),e("a",zs,[o(U,{style:{height:"40px"}},{default:$(()=>[j(n(t(l)("monitoring.buyLicense")),1)]),_:1})])])):(i(),r("div",Es,[j(n(t(l)("monitoring.noTasks"))+" ",1),e("a",Ps,n(t(l)("monitoring.createLink")),1)]))])):C("",!0),t(_)?.tasks?(i(),r("div",Us,[o(ct,{name:"fade-down"},{default:$(()=>[(i(!0),r(I,null,et(t(_)?.tasks,w=>(i(),r("div",{key:w.id,class:"request-item"},[j(n(t(k)?.team?.id===1?t(l)("monitoring.adminInfo",{count:w?.linkedin_suitable_count,name:w?.creator?.name,updated:w?.updated_at,userId:w?.user_id}):null)+" ",1),o(xt,{data:w,loading:w.id<=0,onDeleted:R[2]||(R[2]=N=>H(N)),onOnEdit:R[3]||(R[3]=N=>ot(N))},null,8,["data","loading"])]))),128)),o(Dt,{"current-page":V.value,"total-pages":t(_).pagination.total_pages},null,8,["current-page","total-pages"])]),_:1})])):t(T)?(i(),r("div",As,[o(ct,{name:"fade-down"},{default:$(()=>[(i(),r(I,null,et(5,w=>e("div",{key:w,class:"request-item",style:{"margin-bottom":"15px"}},[o(xt,{data:void 0,loading:!0})])),64))]),_:1})])):C("",!0)])],512)):C("",!0)]),o($s,{"form-el":v.value,"tasks-el":g.value},null,8,["form-el","tasks-el"])],64))}}),Fs=at(js,[["__scopeId","data-v-85c6acec"]]),Ms={__name:"index",setup(s){const{t:l}=M();return Nt({title:()=>`${l("monitoring.pageTitle")} | HÜNT`}),(a,v)=>(i(),Y(Fs))}};export{Ms 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.