1import{_ as We}from"./p1WpBErb.js";import{_ as rt}from"./BxiZN8xj.js";import{_ as ut}from"./D4Ee_p1g.js";import{_ as dt}from"./7KSo98BW.js";import{_ as ct}from"./BFYC_9ly.js";import{_ as mt}from"./DBR4m5-Y.js";import{_ as pt}from"./C6fjrZkR.js";import{_ as gt}from"./BUE9XYuO.js";import{E as Ge,w as te,L as ft,O as a,at as ce,u as e,G as n,ao as t,aq as M,ap as d,ar as p,am as v,az as P,aJ as de,aj as ze,aF as Be,aH as He,h as se,b as m,j as xe,n as Ue,i as Le,ax as Je,ay as ue,aA as Ie}from"./Dgi4Cgz7.js";import{m as Ae,u as Re,as as qe,Z as ae,D as bt,ab as vt,M as xt,t as Pe,ay as Te,O as ht}from"./CLHRk2aN.js";import{u as Ke}from"./DIVhq5lI.js";import{e as _t,c as yt}from"./BJvG0b9Y.js";import{u as wt,o as kt,a as St,n as Ct,c as $t}from"./DJJmyNE4.js";import{c as Mt}from"./l6pIxQMD.js";import"./DlAUqK2U.js";import"./DFS6Gt0F.js";import"./BpTCuZlx.js";import"./BlHBaMxA.js";import"./MUC4b06Z.js";import"./CaOec3_D.js";import"./BQV8tqAq.js";import"./CdP6Qq0f.js";import"./DgXiNt6b.js";import"./CK9oYwjT.js";import"./C_Pdgby9.js";import"./Bl-yfRwy.js";import"./BbG4dmM_.js";import"./d-PxyssI.js";import"./D8lcDqcD.js";import"./BRvMQ8oZ.js";import"./BTgXFgn5.js";import"./DyN0gJyJ.js";import"./Cu4iOH9a.js";import"./nYWBXiyq.js";const jt={class:"max-h-[90vh] w-full max-w-md overflow-y-auto rounded-lg bg-white p-6 shadow-xl",role:"dialog","aria-modal":"true","aria-labelledby":"matchmaker-batch-job-title"},Lt={class:"mb-4 flex items-start justify-between gap-3"},It={class:"mt-1 text-sm text-gray-500"},Tt={key:0},Dt=["disabled"],zt={key:0,class:"space-y-4"},Bt={class:"mb-2 text-xs text-gray-500"},At={class:"mb-2 text-xs text-gray-500"},Rt={key:0,class:"space-y-4 border-t border-gray-100 pt-4"},Et={class:"mb-2 text-xs text-gray-500"},Nt={class:"mb-2 text-xs text-gray-500"},Ft={key:1,class:"rounded-lg border border-red-200 bg-red-50 p-3"},Vt={class:"text-xs font-medium uppercase tracking-wide text-red-800"},Ot={class:"mt-1 whitespace-pre-wrap break-words text-sm text-red-700"},Ut={key:0,class:"mt-2 space-y-0.5 text-xs text-red-600"},Jt={key:0},qt={key:1},Pt={class:"flex justify-end gap-2 pt-2"},Wt=["disabled"],Gt={key:1,class:"space-y-4 py-4"},Ht={key:0,class:"text-center"},Kt={key:0,class:"rounded-lg bg-blue-50 px-3 py-2 text-sm text-blue-800"},Qt={class:"text-center"},Zt={key:1,class:"mt-2 text-sm text-gray-500"},Xt={key:2,class:"mt-1 text-base font-medium text-gray-800"},Yt={key:3,class:"mt-2 text-sm text-green-700"},es={key:4,class:"mt-4 rounded-lg border border-red-200 bg-red-50 p-3 text-left"},ts={class:"text-xs font-medium uppercase tracking-wide text-red-800"},ss={class:"mt-1 whitespace-pre-wrap break-words text-sm text-red-700"},as={key:0,class:"mt-2 space-y-0.5 text-xs text-red-600"},os={key:0},ns={key:1},ls={key:5,class:"mt-2 text-xs text-gray-500"},is={key:0},rs=15e3,us=Ge({__name:"MatchmakerBatchJobModal",props:{open:{type:Boolean},matchingId:{},listingTitle:{}},emits:["update:open","started","completed","failed"],setup(oe,{emit:he}){const _e=new Set(["finished","failed"]),B=oe,H=he,{startMatchmakerJob:K,getActiveMatchmakerJob:Ee,checkMatchmakerJob:ye,getMatchmakerJobResults:w}=Ke(),W=se({get:()=>B.open,set:r=>H("update:open",r)}),y=m(!1),F=m(!1),x=m(!1),_=m(!1),j=m(null),g=m(null),b=m(null),R=m(null),A=m(null),V=m(null),N=m(!1),S=xe({desired_matches:5,score_threshold:4,max_iterations:50,batch_size:10}),G={desired_matches:"Quantidade mÃnima de compradores compatÃveis que a busca deve encontrar antes de encerrar.",score_threshold:"Só conta como match quem tiver score de compatibilidade igual ou acima deste valor (escala 0â5).",batch_size:"Número de candidatos analisados por rodada antes de calcular scores e avaliar a nota.",max_iterations:"Limite de rodadas da busca; evita execuções longas se não houver matches suficientes."},L={check_active:"Verificação de busca em andamento",start:"InÃcio da busca em lote",poll:"Consulta de status do job",results:"Obtenção dos resultados",job_failed:"Job falhou no servidor"},u={pending:"Aguardando inÃcio",fetching_batch:"Buscando candidatos compatÃveis",enqueuing_pairs:"Disparando cálculo de scores",evaluating_threshold:"Avaliando matches encontrados",finished:"ConcluÃdo",failed:"Falhou"},I=se(()=>{const r=g.value;return r?u[r]??r.replaceAll("_"," "):""}),E=se(()=>V.value?V.value.toLocaleTimeString("pt-BR",{hour:"2-digit",minute:"2-digit",second:"2-digit"}):""),ne=se(()=>x.value||_.value||j.value!=null);let $=null,T=null;function O(){$&&(clearTimeout($),$=null)}function U(r){b.value={...r,occurredAt:r.occurredAt??new Date().toISOString()},H("failed",r.message)}function Q(){O(),T&&(clearTimeout(T),T=null),F.value=!1,x.value=!1,_.value=!1,j.value=null,g.value=null,b.value=null,R.value=null,A.value=null,V.value=null,N.value=!1}function J(){_.value||x.value||(W.value=!1,Q())}function me(){const r=b.value;return["=== Diagnóstico â Busca em lote Matchmaker ===",`Gerado em: ${new Date().toLocaleStr
1ing("pt-BR")}`,"","--- Anúncio alvo ---",`ID: ${B.matchingId}`,...B.listingTitle?[`TÃtulo: ${B.listingTitle}`]:[],"","--- Erro ---",...r?[`Fase: ${L[r.phase]}`,`Mensagem: ${r.message}`,`Ocorrido em: ${new Date(r.occurredAt).toLocaleString("pt-BR")}`,...r.jobId!=null?[`Job ID: ${r.jobId}`]:[],...r.jobStatus?[`Status do job: ${r.jobStatus} (${u[r.jobStatus]??r.jobStatus})`]:[]]:["Mensagem: Erro desconhecido"],"","--- Configurações utilizadas ---",`Matches desejados: ${S.desired_matches}`,`Nota mÃnima: ${S.score_threshold}`,`Tamanho do batch: ${S.batch_size}`,`Máx. iterações: ${S.max_iterations}`].join(` 2`)}async function h(){try{await navigator.clipboard.writeText(me()),N.value=!0,T&&clearTimeout(T),T=setTimeout(()=>{N.value=!1},2e3)}catch{}}function Z(r){O(),$=setTimeout(()=>{pe(r)},rs)}async function pe(r){const{result:i,value:k}=await ye(r);if(V.value=new Date,!i||typeof k=="string"){U({phase:"poll",message:typeof k=="string"?k:"Erro ao consultar status.",jobId:r,jobStatus:g.value}),_.value=!1;return}if(g.value=k.current_status,k.current_status==="finished"){O();const C=await w(r);if(_.value=!1,!C.result||typeof C.value=="string"){U({phase:"results",message:typeof C.value=="string"?C.value:"Erro ao buscar resultados.",jobId:r,jobStatus:k.current_status});return}A.value=C.value.total_matches??0,H("completed",C.value);return}if(k.current_status==="failed"){O(),_.value=!1,U({phase:"job_failed",message:"A busca em lote falhou no servidor antes de concluir. Verifique os parâmetros ou tente novamente.",jobId:r,jobStatus:k.current_status});return}_e.has(k.current_status)||(_.value=!0,Z(r))}async function z(r,i){j.value=r,b.value=null,A.value=null,_.value=!0,i?.initialStatus&&(g.value=i.initialStatus),i?.resumed?R.value=i.message??"Retomando o acompanhamento da busca em andamento para este anúncio.":R.value=null,H("started"),await pe(r)}async function we(){if(!B.matchingId)return;x.value=!0,b.value=null;const{result:r,value:i}=await Ee(B.matchingId);if(x.value=!1,!r||typeof i=="string"){U({phase:"check_active",message:typeof i=="string"?i:"Não foi possÃvel verificar buscas em andamento."});return}i.active&&i.jobId!=null&&await z(i.jobId,{resumed:!0,message:"Há uma busca em andamento para este anúncio. Acompanhando o progresso.",initialStatus:i.current_status})}async function ge(){if(!B.matchingId||F.value||_.value)return;F.value=!0,b.value=null,R.value=null,g.value=null,A.value=null;const{result:r,value:i}=await K(B.matchingId,{desired_matches:S.desired_matches,score_threshold:S.score_threshold,max_iterations:S.max_iterations,batch_size:S.batch_size});if(F.value=!1,!r||typeof i=="string"){U({phase:"start",message:typeof i=="string"?i:"Não foi possÃvel iniciar a busca."});return}await z(i.jobId,{resumed:i.resumed,message:i.message,initialStatus:i.current_status??"pending"})}return te(()=>B.open,r=>{if(!r){Q();return}we()}),ft(()=>{O(),T&&clearTimeout(T)}),(r,i)=>{const k=We;return a(),ce(He,{to:"body"},[e(W)?(a(),n("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4",onClick:Be(J,["self"])},[t("div",jt,[t("div",Lt,[t("div",null,[i[5]||(i[5]=t("h2",{id:"matchmaker-batch-job-title",class:"text-lg font-semibold text-gray-800"}," Buscar matches em lote ",-1)),t("p",It,[M(" Anúncio #"+d(oe.matchingId)+" ",1),oe.listingTitle?(a(),n("span",Tt," · "+d(oe.listingTitle),1)):p("",!0)])]),t("button",{type:"button",class:"rounded p-1 text-gray-500 hover:bg-gray-100",disabled:e(_)||e(x),onClick:J},[v(k,{path:e(Ae),class:"size-5 fill-current"},null,8,["path"])],8,Dt)]),e(ne)?(a(),n("div",Gt,[e(x)?(a(),n("div",Ht,[v(k,{class:"mx-auto size-10 animate-spin fill-blue-600",path:e(ae)},null,8,["path"]),i[10]||(i[10]=t("p",{class:"mt-3 text-sm text-gray-600"}," Verificando se há busca em andamento... ",-1))])):(a(),n(ze,{key:1},[e(R)?(a(),n("p",Kt,d(e(R)),1)):p("",!0),t("div",Qt,[e(_)&&e(g)!=="finished"&&e(g)!=="failed"?(a(),ce(k,{key:0,class:"mx-auto size-10 animate-spin fill-blue-600",path:e(ae)},null,8,["path"])):p("",!0),e(j)?(a(),n("div",Zt,"Job #"+d(e(j)),1)):p("",!0),e(g)?(a(),n("div",Xt,d(e(I)),1)):p("",!0),e(g)==="finished"&&e(A)!=null?(a(),n("p",Yt,d(e(A))+" match(es) encontrado(s) com a nota mÃnima. ",1)):p("",!0),e(b)?(a(),n("div",es,[t("p",ts,d(L[e(b).phase]),1),t("p",ss,d(e(b).message),1),e(b).jobId!=null||e(b).jobStatus?(a(),n("div",as,[e(b).jobId!=null?(a(),n("p",os,"Job #"+d(e(b).jobId),1)):p("",!0),e(b).jobStatus?(a(),n("p",ns," Status: "+d(e(I)||e(b).jobStatus),1)):p("",!0)])):p("",!0),t("button",{type:"button",class:"mt-3 inline-flex items-center gap-1.5 rounded-md border border-red-300 bg-white px-3 py-1.5 text-xs font-medium text-red-700 hover:bg-red-100",onClick:h},[v(k,{class:"size-3.5 fill-current",path:e(N)?e(Re):e(qe)},null,8,["path"]),M(" "+d(e(N)?"Copiado!":"Copiar diagnóstico"),1)])])):e(_)?(a(),n("p",ls,[i[11]||(i[11]=M(" Atualizando a cada 15 segundos ",
2-1)),e(E)?(a(),n("span",is," · última verificação à s "+d(e(E)),1)):p("",!0),i[12]||(i[12]=t("br",null,null,-1)),i[13]||(i[13]=M(" Pode levar alguns minutos. Você pode acompanhar o status aqui. ",-1))])):p("",!0)]),e(_)?p("",!0):(a(),n("button",{key:1,type:"button",class:"mx-auto block rounded-lg bg-blue-600 px-4 py-2 text-sm text-white hover:bg-blue-700",onClick:J}," Fechar "))],64))])):(a(),n("div",zt,[t("div",null,[i[6]||(i[6]=t("label",{class:"mb-1 block text-sm font-medium text-gray-700"}," Matches desejados ",-1)),t("p",Bt,d(G.desired_matches),1),P(t("input",{"onUpdate:modelValue":i[0]||(i[0]=C=>e(S).desired_matches=C),type:"number",min:"1",max:"50",class:"w-full rounded-lg border border-gray-300 px-3 py-2 text-sm"},null,512),[[de,e(S).desired_matches,void 0,{number:!0}]])]),t("div",null,[i[7]||(i[7]=t("label",{class:"mb-1 block text-sm font-medium text-gray-700"}," Nota mÃnima (0â5) ",-1)),t("p",At,d(G.score_threshold),1),P(t("input",{"onUpdate:modelValue":i[1]||(i[1]=C=>e(S).score_threshold=C),type:"number",min:"1",max:"5",step:"0.5",class:"w-full rounded-lg border border-gray-300 px-3 py-2 text-sm"},null,512),[[de,e(S).score_threshold,void 0,{number:!0}]])]),t("button",{type:"button",class:"text-sm text-blue-600 hover:underline",onClick:i[2]||(i[2]=C=>y.value=!e(y))},d(e(y)?"Ocultar":"Mostrar")+" opções avançadas ",1),e(y)?(a(),n("div",Rt,[t("div",null,[i[8]||(i[8]=t("label",{class:"mb-1 block text-sm font-medium text-gray-700"}," Tamanho do batch ",-1)),t("p",Et,d(G.batch_size),1),P(t("input",{"onUpdate:modelValue":i[3]||(i[3]=C=>e(S).batch_size=C),type:"number",min:"1",max:"50",class:"w-full rounded-lg border border-gray-300 px-3 py-2 text-sm"},null,512),[[de,e(S).batch_size,void 0,{number:!0}]])]),t("div",null,[i[9]||(i[9]=t("label",{class:"mb-1 block text-sm font-medium text-gray-700"}," Máx. iterações ",-1)),t("p",Nt,d(G.max_iterations),1),P(t("input",{"onUpdate:modelValue":i[4]||(i[4]=C=>e(S).max_iterations=C),type:"number",min:"1",max:"100",class:"w-full rounded-lg border border-gray-300 px-3 py-2 text-sm"},null,512),[[de,e(S).max_iterations,void 0,{number:!0}]])])])):p("",!0),e(b)?(a(),n("div",Ft,[t("p",Vt,d(L[e(b).phase]),1),t("p",Ot,d(e(b).message),1),e(b).jobId!=null||e(b).jobStatus?(a(),n("div",Ut,[e(b).jobId!=null?(a(),n("p",Jt,"Job #"+d(e(b).jobId),1)):p("",!0),e(b).jobStatus?(a(),n("p",qt," Status: "+d(e(I)||e(b).jobStatus),1)):p("",!0)])):p("",!0),t("button",{type:"button",class:"mt-3 inline-flex items-center gap-1.5 rounded-md border border-red-300 bg-white px-3 py-1.5 text-xs font-medium text-red-700 hover:bg-red-100",onClick:h},[v(k,{class:"size-3.5 fill-current",path:e(N)?e(Re):e(qe)},null,8,["path"]),M(" "+d(e(N)?"Copiado!":"Copiar diagnóstico"),1)])])):p("",!0),t("div",Pt,[t("button",{type:"button",class:"rounded-lg border border-gray-300 px-4 py-2 text-sm text-gray-700 hover:bg-gray-50",onClick:J}," Cancelar "),t("button",{type:"button",class:"rounded-lg bg-blue-600 px-4 py-2 text-sm text-white hover:bg-blue-700 disabled:opacity-50",disabled:e(F),onClick:ge},d(e(F)?"Iniciando...":"Iniciar busca"),9,Wt)])]))])])):p("",!0)])}}}),ds=Object.assign(us,{__name:"ConsultantMatchmakerBatchJobModal"}),cs={class:"mx-auto max-w-7xl p-6"},ms={class:"mb-8 flex items-center justify-between"},ps={class:"flex items-center"},gs={class:"space-y-6"},fs={class:"grid grid-cols-1 gap-6 lg:grid-cols-2"},bs={class:"rounded-lg border border-gray-200 bg-white p-6 shadow-md"},vs={class:"space-y-3"},xs=["disabled"],hs={key:0,class:"text-sm text-gray-500"},_s={key:1,class:"max-h-56 divide-y divide-gray-100 overflow-y-auto rounded-md border border-gray-200"},ys=["onClick"],ws={class:"font-medium text-gray-800"},ks={class:"mt-1 flex gap-2 text-xs text-gray-500"},Ss={key:0},Cs={key:1,class:"ml-auto"},$s={key:0,class:"rounded-lg border-2 border-blue-200 bg-gradient-to-br from-blue-50 via-white to-white p-4 shadow-lg transition-all hover:shadow-xl"},Ms={class:"flex items-start justify-between gap-3"},js={class:"min-w-0 flex-1"},Ls={class:"mb-2 flex items-center gap-2"},Is={class:"flex size-8 flex-shrink-0 items-center justify-center rounded-full bg-gradient-to-br from-blue-500 to-blue-600 shadow-md"},Ts={class:"min-w-0"},Ds={class:"text-xs text-gray-500"},zs={key:0,class:"flex items-center justify-center py-4"},Bs={key:1,class:"space-y-2"},As={class:"truncate text-sm font-bold text-gray-800"},Rs={class:"grid grid-cols-2 gap-2 rounded-lg bg-gray-50 p-2"},Es={key:0},Ns={class:"truncate text-xs font-bold text-green-600"},Fs={key:1},Vs={class:"truncate text-xs font-semibold text-gray-800"},Os={key:2},Us={class:"truncate text-xs font-semibold text-gray-800"},Js={key:3},qs={class:"truncate text-xs font-semibold text-gray-800"},Ps={key:4,class:"col-span-2"},Ws={class:"truncate text-xs font-medium text-gray-700"},Gs={class:"flex flex-shrink-0 flex-col gap-2"},Hs=["disabled"],Ks={key:0,class:"rounded-lg border border-gray-200 bg-white p-8 shadow-md"},Qs={key:1,class:"space-y-4"},Zs={class:"flex flex-col gap-2 rounded-lg border border-gray-200 bg-white p-2 shadow-md"},Xs={class:"flex w-full items-center gap-2"},Ys={class:"flex w-full items-center gap-2"},ea={key:0,class:"flex h-full w-full justify-center align-middle text-zinc-500"},ta={key:1,class:"rounded-lg border border-gray-200 bg-white p-8 shadow-md"},sa={class:"py-8 text-center"},aa={class:"mb-4 text-4xl"},oa={class:"mb-2 text-lg font-semibold text-gray-800"},na={key:0,class:"mx-auto mb-4 max-w-lg text-sm text-red-700"},la={key:1,class:"text-gray-600"},ia=["disabled"],ra={key:2,class:"rounded-lg border border-gray-200 bg-white p-6 shadow-md"},ua={class:"flex-col items-center justify-between space-y-4"},da={class:"flex items-center"},ca={class:"text-lg font-semibold text-gray-800"},ma={class:"my-auto ml-auto flex flex-wrap items-center justify-end gap-2"},pa=["disabled"],ga={key:0,class:"mt-1 flex items-center text-sm text-gray-500"},fa={key:1,class:"mt-1 text-sm text-blue-600"},ba={class:"w-full"},va={class:"grid grid-cols-1 gap-4"},xa={class:"w-full"},ha={key:0,class:"group absolute -left-4 -top-3 z-20 flex h-8 w-8 items-center justify-center rounded-full bg-gradient-to-br from-blue-500 to-blue-600 text-sm font-bold text-white shadow-xl ring-2 ring-white transition-all duration-200 hover:scale-110 hover:shadow-2xl"},_a={class:"w-fit"}
2,ya={class:"mt-2 w-fit rounded-lg border border-gray-200 bg-white px-3 py-2.5 shadow-sm"},wa={class:"flex flex-col gap-2"},ka={class:"flex flex-wrap items-center gap-1.5"},Sa={key:0,class:"inline-flex items-center gap-1 rounded-full bg-emerald-100 px-2 py-1 text-xs font-medium text-emerald-800"},Ca={key:1,class:"inline-flex items-center gap-1 rounded-full bg-indigo-100 px-2 py-1 text-xs font-medium text-indigo-800"},$a={key:2,class:"inline-flex items-center gap-1 rounded-full bg-green-100 px-2 py-1 text-xs font-medium text-green-800"},Ma={key:3,class:"inline-flex items-center gap-1 rounded-full bg-gray-100 px-2 py-1 text-xs font-medium text-gray-600"},ja={class:"mx-auto flex"},La=["onClick"],Ia=["onClick"],Ta={class:"w-full"},Da={class:"flex items-center justify-between border-b border-gray-200 px-4 py-3"},za={class:"flex max-h-[calc(90vh-4.5rem)] min-h-0 flex-1 flex-col overflow-hidden"},Ba={key:0,class:"flex flex-1 items-center justify-center py-12"},De="current_sign_in_at",bo=Ge({__name:"find-buyers",setup(oe){const{getSimilarBusinesses:he,getMatchUsersFromSimilarBusinesses:_e}=Ke(),{fetchConsultantChatsRaw:B,setConsultantSelectedChat:H}=_t(),K=wt(),{user:Ee}=yt(),ye=m(!0),w=xe({matchmaker_grade:0,current_sign_in_at:0,total_interactions_type:0}),W=m(De),y=xe({onlyWithScore:null,contacted:null,lastLoginDays:null});async function F(){y.onlyWithScore=null,y.contacted=null,y.lastLoginDays=null,Object.keys(w).forEac
2h(o=>{w[o]=0}),W.value=De,u.value&&await z(u.value,!0)}const x=m(K.query.business_id||""),_=m(""),j=m([]),g=m(null),b=m(!1),R=m(!1),A=o=>`${[o.titulo||`Anúncio #${o.id}`,o.valor?new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(Number(o.valor)):null,o.cidade&&o.estado?`${o.cidade}, ${o.estado}`:null].filter(Boolean).join(" ⢠")} (ID: ${o.id})`,V=async o=>{const s=o.trim();if(s.length<2){j.value=[];return}b.value=!0;try{const f=await $fetch("/api/consultants/listings/search",{method:"GET",params:{q:s}});j.value=f.listings}catch{j.value=[]}finally{b.value=!1}},N=Mt(o=>{V(o)},600),S=async o=>{g.value=o,x.value=String(o.id),R.value=!0,_.value=A(o),j.value=[],await Ue(),await z(x.value)},G=()=>{g.value=null,x.value="",_.value="",j.value=[],$.value=null,T.value=!1,u.value="",I.value=[],E.value=0},L=m(!1),u=m(""),I=m([]),E=m(0),ne=m(!1),$=m(null),T=m(!1),O=se(()=>!!(u.value||x.value||g.value)&&!L.value&&(!!$.value||T.value&&I.value.length===0));async function U(){const o=u.value||x.value;!o||L.value||($.value=null,await z(o,!0,!0))}const Q=m(0),J=m([]),me=m(""),h=m(null),Z=m(!1),pe=async o=>{if(!(!o||Z.value)){Z.value=!0;try{const s=await $t(`/api/consultants/listings/${o}`,"$vrguguyBg7");if(typeof s.data.value=="string"){const f=JSON.parse(s.data.value);f.done&&f.listing&&(h.value=f.listing)}}catch{h.value=null}finally{Z.value=!1}}};async function z(o,s=!0,f=!1){if(L.value)return;L.value=!0,$.value=null,u.value=o,await pe(o),St().push({path:"/consultant/matchmaking/find-buyers",query:{...K.query,business_id:x.value}}),s&&(D.page=0);const ke=y.onlyWithScore??!1,Se=y.contacted??!1,Ce=new Date(Date.now()-(y.lastLoginDays??0)*24*60*60*1e3),$e=y.lastLoginDays?Ce.toISOString():void 0,be=w[W.value],Me=be!==0?W.value:"",je=be===1?"ASC":"DESC";if(f||J.value.length===0||me.value!==u.value){const c=await he(u.value);if(!c.result){const ee=typeof c.value=="string"?c.value:"Falha ao buscar anúncios similares.";$.value=ee,T.value=!0,s&&(I.value=[],E.value=0),L.value=!1;return}me.value=u.value,J.value=c.value.map(ee=>ee.ad_id)}const l=await _e(o,[o,...J.value],D.step,D.page*D.step,ke,$e,Me,je,Se);if(!l.result){const c=typeof l.value=="string"?l.value:"Falha ao buscar compradores compatÃveis.";$.value=c,T.value=!0,s&&(I.value=[],E.value=0),L.value=!1;return}T.value=!0,$.value=null,l.total!==void 0&&(E.value=l.total),ne.value=!0,l.totalContacted!==void 0&&(Q.value=l.totalContacted),ne.value=!1;const ve=new Date;I.value=l.value.map(c=>{const ee=new Date(c.user_current_sign_in_at??c.created_at);let Oe=new Set;return c.interactions_types.split(", ").forEach(lt=>{lt.split(",").forEach(it=>{Oe.add(it)})}),{id:c.user_id,nome:c.user_name,email:c.user_email,telefone:c.user_telefone,vender_negocio:c.user_vender_negocio,comprar_negocio:c.user_comprar_negocio,corretor:c.user_corretor,created_at:c.user_account_creation_date,phone_validated_at:c.user_has_phone_validated,last_login:Math.max(1,Math.round(Math.abs(Math.max(ve.getTime(),ee.getTime())-ee.getTime())/(1e3*60*60*24))),flag:{id:c.flag_id,value:c.flag_priority,explanation:c.flag_explanation,created_at:c.flag_created_at},interactions:{types:Array.from(Oe),type_count:c.total_interactions_type,last_id:c.closest_ad_id},score:{grade:c.matchmaker_grade,status:c.matchmaker_status,reasoning:c.matchmaker_reasoning,extra_info:c.matchmaker_extra_info},was_contacted:c.was_user_contacted,conversation_id:c.conversation_id??null,explicitly_interested_in_ad:Number(c.explicitly_interested_in_ad??0)===1,interested_in_similar_companies:Number(c.interested_in_similar_companies??0)===1,interest_source:c.interest_source??null,interest_last_intake_event_id:c.interest_last_intake_event_id??null}}),L.value=!1}function we(o,s,f){return`Olá ${o}, encontrei uma oportunidade de negócio que pode te interessar: ${s} (#${f}). Se quiser, posso te passar mais detalhes. Tem interesse em marcar uma conversa rápida?`}const ge=se(()=>h.value?.titulo||g.value?.titulo||(u.value?`Anúncio #${u.value}`:"")),r=m(!1),i=m(null),k=m(!1);async function C(o){const s=o.conversation_id;if(!(s==null||!u.value)){i.value=String(s),r.value=!0,k.value=!0;try{await B(u.value),H(u.value,String(s))}finally{k.value=!1}}}function Ne(){r.value=!1,i.value=null}const le=m(!1),q=m(null);
2function Qe(o){q.value=o,le.value=!0}function Ze(){le.value=!1,q.value=null}function Xe(o){const s=q.value;s&&(s.conversation_id=o.conversation_id),Ze()}async function fe(o,s){switch(o){case"acessar":Ct(`/consultant/users/${s}`);break;case"ordenar":const f=s;Object.keys(w).forEach(Y=>{Y!==f&&(w[Y]=0)}),f&&(w[f]=(w[f]+2)%3-1),W.value=!f||!w[f]?De:f,u.value&&await z(u.value,!0);break}}kt(async()=>{if(ye.value=!1,K.query.business_id&&x.value){if(x.value.trim())try{await V(x.value.trim());const o=j.value.find(s=>String(s.id)===x.value.trim());o&&(g.value=o,_.value=A(o))}catch{}await z(x.value)}});const D=xe({page:0,step:10}),Fe=m(null);te(()=>D.page,()=>{u.value&&(z(u.value,!1),Ue(()=>{Fe.value?.scrollIntoView({behavior:"smooth",block:"start"})}))}),te(()=>[y.onlyWithScore,y.contacted,y.lastLoginDays],()=>{u.value&&z(u.value,!0)}),te(()=>K.query.business_id,o=>{o&&typeof o=="string"&&(x.value=o,x.value.trim()&&V(x.value.trim()).then(()=>{const s=j.value.find(f=>String(f.id)===x.value.trim());s&&(g.value=s,_.value=A(s))}),z(o))}),te(_,o=>{if(R.value){R.value=!1;return}o.trim()?N(o):G()});const ie=m([]),Ye=o=>{o&&!ie.value.includes(o)&&ie.value.push(o)},et=()=>{ie.value=[]},tt=async()=>{if(ie.value.length===0)return;const o=ie.value.map(async s=>{if(s&&s.calculateScore)try{await s.calculateScore()}catch{}});await Promise.all(o)},re=m(!1),X=m(!1);function st(){!u.value||X.value||(re.value=!0)}async function at(){X.value=!1,re.value=!1,u.value&&await z(u.value,!0)}function ot(o){X.value=!1}function nt(){X.value=!0}te(()=>I.value,()=>{et()});function Ve(o){window.open(o,"_blank")}return(o,s)=>{const f=We,Y=rt,ke=ut,Se=dt,Ce=ct,$e=mt,be=pt,Me=gt,je=ds;return a(),n("div",cs,[t("div",ms,[t("div",ps,[t("button",{onClick:s[0]||(s[0]=l=>o.$router.back()),class:"mr-4 rounded-lg p-2 text-gray-600 transition-colors hover:bg-gray-100 hover:text-gray-800"}," â Voltar "),s[15]||(s[15]=t("div",null,[t("h1",{class:"text-3xl font-bold text-gray-800"}," Centro de Matchmaking "),t("p",{class:"text-gray-600"}," Conecte vendedores e compradores com base em compatibilidade ")],-1))])]),t("div",gs,[t("div",fs,[t("div",bs,[s[17]||(s[17]=t("h2",{class:"mb-4 text-lg font-semibold text-gray-800"}," Selecionar Anúncio ",-1)),t("div",vs,[t("div",null,[s[16]||(s[16]=t("label",{class:"mb-2 block text-sm font-medium text-gray-700"}," Buscar anúncio * ",-1)),P(t("input",{"onUpdate:modelValue":s[1]||(s[1]=l=>Le(_)?_.value=l:null),type:"text",placeholder:"ID, tÃtulo, email do usuário ou setor",disabled:e(L),class:"w-full rounded-md border border-gray-300 px-3 py-2 text-sm shadow-sm focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500 disabled:cursor-not-allowed disabled:opacity-50"},null,8,xs),[[de,e(_)]])]),e(b)?(a(),n("div",hs," Carregando anúncios... ")):p("",!0),e(j).length>0?(a(),n("ul",_s,[(a(!0),n(ze,null,Je(e(j),l=>(a(),n("li",{key:l.id,class:"cursor-pointer bg-white px-4 py-3 text-sm hover:bg-blue-50",onClick:ve=>S(l)},[t("div",ws,d(A(l)),1),t("div",ks,[l.setores?(a(),n("div",Ss," Setores: "+d(l.setores),1)):p("",!0),l.user_email?(a(),n("div",Cs,d(l.user_email),1)):p("",!0)])],8,ys))),128))])):p("",!0)])]),e(u)||e(g)?(a(),n("div",$s,[t("div",Ms,[t("div",js,[t("div",Ls,[t("div",Is,[v(f,{path:e(bt),class:"size-4 fill-white"},null,8,["path"])]),t("div",Ts,[s[18]||(s[18]=t("h2",{class:"truncate text-sm font-bold text-gray-800"}," Anúncio Selecionado ",-1)),t("p",Ds," ID: "+d(e(u)||e(g)?.id),1)])]),e(Z)?(a(),n("div",zs,[v(f,{class:"size-4 animate-spin fill-blue-600",path:e(ae)},null,8,["path"]),s[19]||(s[19]=t("span",{class:"ml-2 text-xs text-gray-500"},"Carregando...",-1))])):e(h)||e(g)?(a(),n("div",Bs,[t("div",null,[t("h3",As,d(e(h)?.titulo||e(g)?.titulo||`Anúncio #${e(u)||e(g)?.id}`),1)]),t("div",Rs,[e(h)?.valor||e(g)?.valor?(a(),n("div",Es,[s[20]||(s[20]=t("span",{class:"text-[10px] font-medium text-gray-600"},"Preço",-1)),t("p",Ns,d(new Intl.NumberFormat("pt-BR",{style:"currency",currency:"BRL"}).format(Number(e(h)?.valor||e(g)?.valor))),1)])):p("",!0),e(h)?.cidade&&e(h)?.estado||e(g)?.cidade&&e(g)?.estado?(a(),n("div",Fs,[s[21]||(s[21]=t("span",{class:"text-[10px] font-medium text-gray-600"},"Localização",-1)),t("p",Vs,d(e(h)?.cidade&&e(h)?.estado?`${e(h).cidade}, ${e(h).estado}`:e(g)?.cidade&&e(g)?.estado?`${e(g).cidade}, ${e(g).estado}`:"-"),1)])):p("",!0),e(h)?.setores||e(g)?.setores?(a(),n("div",Os,[s[22]||(s[22]=t("span",{class:"text-[10px] font-medium text-gray-600"}
2,"Setor",-1)),t("p",Us,d(e(h)?.setores?String(e(h).setores).split("$")[0]:e(g)?.setores?e(g).setores.split(", ")[0]:"-"),1)])):p("",!0),e(h)?.status||e(g)?.status?(a(),n("div",Js,[s[23]||(s[23]=t("span",{class:"text-[10px] font-medium text-gray-600"},"Status",-1)),t("p",qs,d(e(h)?.status||e(g)?.status||"-"),1)])):p("",!0),e(h)?.user_email||e(g)?.user_email?(a(),n("div",Ps,[s[24]||(s[24]=t("span",{class:"text-[10px] font-medium text-gray-600"},"Criado por",-1)),t("p",Ws,d(e(h)?.user_email||e(g)?.user_email),1)])):p("",!0)])])):p("",!0)]),t("div",Gs,[t("button",{onClick:s[2]||(s[2]=l=>Ve(`/consultant/listings/${e(u)||e(g)?.id}`)),class:"flex items-center gap-2 rounded-lg bg-blue-600 px-3 py-2 text-xs font-medium text-white transition-colors hover:bg-blue-700",title:"Ver detalhes completos do anúncio"},[v(f,{path:e(vt),class:"size-4 fill-white"},null,8,["path"]),s[25]||(s[25]=M(" Ver Detalhes ",-1))]),t("button",{onClick:s[3]||(s[3]=l=>Ve(`/companies/${e(u)||e(g)?.id}`)),class:"flex items-center gap-2 rounded-lg bg-pink-600 px-3 py-2 text-xs font-medium text-white transition-colors hover:bg-pink-700",title:"Ver página do anúncio"},[v(f,{path:e(xt),class:"size-4 fill-white"},null,8,["path"]),s[26]||(s[26]=M(" Acessar Anúncio ",-1))]),e(O)?(a(),n("button",{key:0,type:"button",class:"flex items-center gap-2 rounded-lg bg-amber-600 px-3 py-2 text-xs font-medium text-white transition-colors hover:bg-amber-700 disabled:cursor-not-allowed disabled:opacity-50",disabled:e(L),title:"Refazer busca de compradores compatÃveis",onClick:U},[v(f,{path:e(Pe),class:"size-4 fill-white"},null,8,["path"]),s[27]||(s[27]=M(" Refazer busca ",-1))],8,Hs)):p("",!0),t("button",{onClick:G,class:"flex items-center gap-2 rounded-lg border border-gray-300 bg-white px-3 py-2 text-xs font-medium text-gray-700 transition-colors hover:bg-gray-50"},[v(f,{path:e(Ae),class:"size-4 fill-gray-700"},null,8,["path"]),s[28]||(s[28]=M(" Limpar ",-1))])])])])):p("",!0)]),e(I).length===0&&!e(u)?(a(),n("div",Ks,[...s[29]||(s[29]=[t("div",{class:"py-12 text-center"},[t("div",{class:"mb-4 text-6xl"},"ð¯"),t("h2",{class:"mb-2 text-xl font-semibold text-gray-800"}," Selecione um Anúncio "),t("p",{class:"text-gray-600"}," Escolha um anúncio à esquerda para ver compradores compatÃveis e iniciar o processo de matchmaking. ")],-1)])])):(a(),n("div",Qs,[t("div",Zs,[t("div",Xs,[s[30]||(s[30]=t("label",{class:"text-sm font-medium text-gray-700"},"Ordenar:",-1)),t("button",{onClick:s[4]||(s[4]=l=>fe("ordenar","matchmaker_grade")),class:ue(`rounded-lg px-3 py-1 text-sm transition-colors ${e(w).matchmaker_grade!==0?"bg-blue-500 text-white":"bg-gray-200 text-gray-700 hover:bg-gray-300"}`)}," Score "+d(e(w).matchmaker_grade?e(w).matchmaker_grade===1?"â":"â":""),3),t("button",{onClick:s[5]||(s[5]=l=>fe("ordenar","current_sign_in_at")),class:ue(`rounded-lg px-3 py-1 text-sm transition-colors ${e(w).current_sign_in_at!==0?"bg-blue-500 text-white":"bg-gray-200 text-gray-700 hover:bg-gray-300"}`)}," Ãltimo Login "+d(e(w).current_sign_in_at?e(w).current_sign_in_at===1?"â":"â":""),3),t("button",{onClick:s[6]||(s[6]=l=>fe("ordenar","total_interactions_type")),class:ue(`rounded-lg px-3 py-1 text-sm transition-colors ${e(w).total_interactions_type!==0?"bg-blue-500 text-white":"bg-gray-200 text-gray-700 hover:bg-gray-300"}`)}," Quantidade de Interações Diferentes "+d(e(w).total_interactions_type?e(w).total_interactions_type===1?"â":"â":""),3)]),t("div",Ys,[s[34]||(s[34]=t("label",{class:"text-sm font-medium text-gray-700"},"Filtros:",-1)),P(t("select",{"onUpdate:modelValue":s[7]||(s[7]=l=>e(y).onlyWithScore=l),class:"rounded-lg border-gray-300 px-3 py-1 text-sm focus:border-blue-500 focus:ring-2 focus:ring-blue-500"},[...s[31]||(s[31]=[t("option",{value:null},"Com ou sem Score",-1),t("option",{value:!0},"Com Score",-1)])],512),[[Ie,e(y).onlyWithScore]]),P(t("select",{"onUpdate:modelValue":s[8]||(s[8]=l=>e(y).contacted=l),class:"rounded-lg border-gray-300 px-3 py-1 text-sm focus:border-blue-500 focus:ring-2 focus:ring-blue-500"},[...s[32]||(s[32]=[t("option",{value:null},"Independente de Contato",-1),t("option",{value:!0},"Já Contatados",-1)])],512),[[Ie,e(y).contacted]]),P(t("select",{"onUpdate:modelValue":s[9]||(s[9]=l=>e(y).lastLoginDays=l),class:"rounded-lg border-gray-300 px-3 py-1 text-sm focus:border-blue-500 focus:ring-2 focus:ring-blue-500"},[...s[33]||(s[33]=[t("option",{value:null},"Qualquer Login",-1),t("option",{value:7},"Ãltimos 7 dias",-1),t("option",{value:30},"Ãltimos 30 dias",-1),t("option",{value:90},"Ãltimos 90 dias",-1)])],512),[[Ie,e(y).lastLoginDays]]),t("button",{onClick:F,class:"ml-auto rounded-lg bg-red-500 px-3 py-1 text-sm text-white hover:bg-red-600"}," Limpar Filtros ")])]),e(L)?(a(),n("div",ea,[v(f,{class:"my-4 size-12 animate-spin fill-cyan-600 stroke-cyan-600",path:e(ae)},null,8,["path"])])):e(I).length===0?(a(),n("div",ta,[t("div",sa,[t("div",aa,d(e($)?"â ï¸":"ð¥"),1),t("h3",oa,d(e($)?"Erro ao buscar compradores":"Nenhum usuário encontrado"),1),e($)?(a(),n("p",na,d(e($)),1)):(a(),n("p",la," Não encontramos compradores compatÃveis com este anúncio. Tente refazer a busca ou selecionar outro anúncio. ")),e(O)?(a(),n("button",{key:2,type:"button",class:"mt-4 inline-flex items-center gap-2 rounded-lg bg-blue-600 px-4 py-2 text-sm font-medium text-white transition-colors hover:bg-blue-700 disabled:cursor-not-allowed disabled:opacity-50",disabled:e(L),onClick:U},[v(f,{path:e(Pe),class:"size-4 fill-white"},null,8,["path"]),s[35]||(s[35]=M(" Refazer busca ",-1))],8,ia)):p("",!0)])])):(a(),n("div",ra,[t("div",ua,[t("div",null,[t("div",da,[t("h2",ca," Compradores CompatÃveis ("+d(e(E))+") ",1),t("div",ma,[e(u)?(a(),n("button",{key:0,t
2ype:"button",disabled:e(X),class:"h-fit rounded-lg bg-blue-600 px-4 py-2 text-sm text-white hover:bg-blue-700 disabled:cursor-not-allowed disabled:opacity-50",onClick:st},d(e(X)?"Job em andamento...":"Buscar matches em lote"),9,pa)):p("",!0),e(I).length>0?(a(),n("button",{key:1,type:"button",onClick:tt,class:"h-fit rounded-lg bg-purple-500 px-4 py-2 text-sm text-white hover:bg-purple-600"}," Calcular Todos os Scores desta Página ")):p("",!0)])]),e(ne)?(a(),n("div",ga,[v(f,{class:"mr-1 size-4 animate-spin fill-gray-500",path:e(ae)},null,8,["path"]),s[36]||(s[36]=M(" Verificando status de contato... ",-1))])):e(Q)>0?(a(),n("div",fa,d(e(Q))+" usuário(s) já contatado(s) sobre este anúncio ",1)):p("",!0)])]),t("div",{ref_key:"resultsTopRef",ref:Fe,class:"mt-6 space-y-4"},[t("div",ba,[v(Y,{class:"mx-auto",page:e(D).page,"onUpdate:page":s[10]||(s[10]=l=>e(D).page=l),step:e(D).step,total:e(E)},null,8,["page","step","total"])]),t("div",va,[(a(!0),n(ze,null,Je(e(I),(l,ve)=>(a(),n("div",{key:l.id,class:"mx-4 flex gap-4"},[t("div",xa,[v(ke,{data:l.flag,userId:l.id,businessId:e(u),onCreatedFlag:c=>l.flag=c,onDeletedFlag:c=>l.flag=void 0,class:"w-full"},null,8,["data","userId","businessId","onCreatedFlag","onDeletedFlag"]),t("div",{class:ue(["relative",{"rounded-lg border-l-4 border-blue-500 bg-gradient-to-r from-blue-50 to-transparent":l.was_contacted}])},[l.was_contacted?(a(),n("div",ha,[v(f,{class:"size-4 fill-white",path:e(Re)},null,8,["path"]),s[37]||(s[37]=t("div",{class:"pointer-events-none absolute -left-3 -top-12 z-30 transform whitespace-nowrap rounded-lg bg-gray-900 px-3 py-2 text-sm text-white opacity-0 shadow-lg transition-all duration-200 group-hover:opacity-80"},[M(" Usuário já foi contatado sobre este anúncio "),t("div",{class:"absolute left-5 top-full h-0 w-0 -translate-x-1/2 transform border-l-4 border-r-4 border-t-4 border-transparent border-t-gray-900"})],-1))])):p("",!0),v(Se,{user:l,onAction:fe,class:ue(["w-full rounded-lg border border-gray-200 transition-all duration-200",{"border-green-500":l.flag?.value===1,"border-red-500":l.flag?.value===-1,"border-blue-400 bg-gradient-to-r from-blue-50 to-blue-100 shadow-md":l.was_contacted}])},null,8,["user","class"])],2),v(Ce,{userId:l.id,showEmptyState:!1,showFullWidthAddButton:!1,autoLoad:!0,limit:2,class:"w-full"},null,8,["userId"])]),t("div",_a,[v($e,{ref_for:!0,ref:Ye,userId:Number(l.id),adId:Number(e(u)),initialScore:l.score,class:"mt-10 h-fit w-44",autoCalculate:e(D).page===0,autoCalculateDelayMs:e(D).page===0?ve*5e3:0},null,8,["userId","adId","initialScore","autoCalculate","autoCalculateDelayMs"]),t("div",ya,[s[42]||(s[42]=t("div",{class:"mb-2 border-b border-gray-100 pb-2 text-xs font-bold tracking-wide"}," Contato nesse anúncio ",-1)),t("div",wa,[t("div",ka,[l.explicitly_interested_in_ad?(a(),n("span",Sa," Interesse explÃcito ")):p("",!0),l.interested_in_similar_companies?(a(),n("span",Ca," Aceita similares ")):p("",!0),l.conversation_id?(a(),n("span",$a,[v(f,{class:"size-3.5 fill-green-600",path:e(Te)},null,8,["path"]),s[38]||(s[38]=M(" Conversa existente ",-1))])):(a(),n("span",Ma,[v(f,{class:"size-3.5 text-gray-500",path:e(Te)},null,8,["path"]),s[39]||(s[39]=M(" Sem chat iniciado ",-1))]))]),t("div",ja,[l.conversation_id?(a(),n("button",{key:0,type:"button",class:"inline-flex items-center gap-1.5 rounded-lg bg-cyan-600 px-3 py-1.5 text-xs font-medium text-white transition-colors hover:bg-cyan-700",onClick:c=>C(l)},[v(f,{class:"size-4 fill-white",path:e(Te)},null,8,["path"]),s[40]||(s[40]=M(" Ver conversa ",-1))],8,La)):(a(),n("button",{key:1,type:"button",class:"inline-flex items-center gap-1.5 rounded-lg bg-cyan-600 px-3 py-1.5 text-xs font-medium text-white transition-colors hover:bg-cyan-700",onClick:c=>Qe(l)},[v(f,{class:"size-4 fill-white",path:e(ht)},null,8,["path"]),s[41]||(s[41]=M(" Enviar mensagem ",-1))],8,Ia))])])])])]))),128))]),t("div",Ta,[v(Y,{class:"mx-auto",page:e(D).page,"onUpdate:page":s[11]||(s[11]=l=>e(D).page=l),step:e(D).step,total:e(E)},null,8,["page","step","total"])])],512)]))]))]),(a(),ce(He,{to:"body"},[e(r)?(a(),n("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",onClick:Be(Ne,["self"])},[t("div",{class:"flex max-h-[90vh] w-full max-w-4xl flex-col overflow-hidden rounded-xl bg-white shadow-2xl",onClick:s[12]||(s[12]=Be(()=>{},["stop"]))},[t("div",Da,[s[43]||(s[43]=t("h3",{class:"text-lg font-semibold text-gray-800"},"Conversa",-1)),t("button",{type:"button",class:"rounded-lg p-2 text-gray-500 hover:bg-gray-100 hover:text-gray-700",onClick:Ne},[v(f,{class:"size-5",path:e(Ae)},null,8,["path"])])]),t("div",za,[e(k)?(a(),n("div",Ba,[v(f,{class:"size-8 animate-spin fill-cyan-600",path:e(ae)},null,8,["path"])])):e(u)?(a(),ce(be,{key:1,"listing-id":e(u),class:"h-full min-h-0 flex-1"},null,8,["listing-id"])):p("",!0)])])])):p("",!0)])),v(Me,{modelValue:e(le),"onUpdate:modelValue":s[13]||(s[13]=l=>Le(le)?le.value=l:null),recipient:e(q)?{id:e(q).id,nome:e(q).nome}:null,"listing-id":e(u)||void 0,"default-message":e(q)&&e(u)?we(e(q).nome,e(ge),e(u)):void 0,onSent:Xe},null,8,["modelValue","recipient","listing-id","default-message"]),e(u)?(a(),ce(je,{key:0,open:e(re),"onUpdate:open":s[14]||(s[14]=l=>Le(re)?re.value=l:null),"matching-id":e(u),"listing-title":e(ge),onStarted:nt,onCompleted:at,onFailed:ot},null,8,["open","matching-id","listing-title"])):p("",!0)])}}});
2export{bo 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.