PageSourceSearch

https://freelacerto.com/assets/EmpresaHome-quWQ8XeI.js

js freelacerto.com collected 2026-10-02 01:31:05 UTC 28,322 bytes, 28 lines download raw bytes

1import{u as We,c0 as De,c1 as Ee,s as z,c2 as Y,t as Ne,b as He,c3 as Le,j as e,U as _}from"./index-D0NFXJHP.js";import{u as Me,i as Fe,r as l,L as m}from"./react-vendor-B-clOVnp.js";import{L as Oe}from"./LoadingValue-DG3GUidW.js";import{A as Ue}from"./AvaliarPendentesDrawer-BW40ccAH.js";import{u as Ve,b as qe,c as Ye}from"./useTutorialContratanteModo-CRxa2qC-.js";import{P as _e}from"./PopupCampanhaPlano500-EHFtAk7P.js";import{a1 as Xe,ai as Ze,s as Je,u as Ke,a2 as Qe,a3 as Ge,bg as re,g as ea,J as oe,ab as fe,Y as te,aw as ne,aa,ay as $,t as P,p as T,r as W,cj as ie,bs as le,aF as de,ck as ce}from"./icons-l1P0DWf7.js";import"./SoftskillsSelector-ayrgY8t8.js";const p="#031D44",B="#00C4D4",D=o=>Number(o||0).toLocaleString("pt-BR",{style:"currency",currency:"BRL"}),E=o=>o?new Date(o).toLocaleString("pt-BR",{day:"2-digit",month:"short",hour:"2-digit",minute:"2-digit"}):"—";function sa({nome:o}){const t={background:"linear-gradient(90deg,#f3f4f6 0%,#e5e7eb 50%,#f3f4f6 100%)",backgroundSize:"200% 100%",animation:"lvShimmer 1.4s ease-in-out infinite",borderRadius:6};return e.jsxs("div",{children:[e.jsxs("div",{style:me,children:[e.jsx(fe,{size:18,color:B}),e.jsxs("h1",{style:{margin:0,fontSize:17},children:["Olá, ",o,"!"]})]}),e.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(180px, 1fr))",gap:10,marginBottom:18},children:[p,B].map((d,h)=>e.jsxs("div",{style:{background:"#fff",padding:12,borderRadius:8,border:"1px solid #e5e7eb",borderLeft:`4px solid ${d}`},children:[e.jsx("div",{style:{...t,height:10,width:"65%",marginBottom:10}}),e.jsx("div",{style:{...t,height:26,width:"30%"}})]},h))}),e.jsxs("div",{style:{marginBottom:18},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[e.jsx("div",{style:{...t,height:11,width:180}}),e.jsx("div",{style:{...t,height:11,width:55}})]}),e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[0,1].map(d=>e.jsxs("div",{style:{display:"flex",gap:12,alignItems:"center",padding:12,background:"#fff",border:"1px solid #e5e7eb",borderRadius:10},children:[e.jsx("div",{style:{...t,width:44,height:44,borderRadius:10,flexShrink:0}}),e.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:8},children:[e.jsx("div",{style:{...t,height:13,width:"55%"}}),e.jsx("div",{style:{...t,height:11,width:"35%"}}),e.jsx("div",{style:{...t,height:10,width:"45%"}})]})]},d))})]}),e.jsx("div",{style:{...t,height:11,width:60,marginBottom:8}}),e.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(180px, 1fr))",gap:10,marginBottom:18},children:[0,1,2,3,4,5].map(d=>e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:10,padding:12,background:"#fff",borderRadius:8,border:"1px solid #e5e7eb",borderLeft:"4px solid #e5e7eb"},children:[e.jsx("div",{style:{...t,width:18,height:18,borderRadius:4,flexShrink:0}}),e.jsx("div",{style:{...t,height:12,flex:1}})]},d))})]})}function xa(){const{token:o,usuario:t}=We();Me();const d=Ve(),[h,f]=Fe(),[x,y]=l.useState(De),{abrir:he,ModalEl:xe}=Ee(),[ue,A]=l.useState(!1),j=t?._id||"anon",[ge,N]=l.useState(!1),H=new Intl.DateTimeFormat("en-CA",{timeZone:"America/Sao_Paulo",year:"numeric",month:"2-digit"}).format(new Date).slice(0,7),L=`empresa-relatorio-mensal-dismissed:${t?._id||"anon"}:${t?.empresaId||t?.empresa?._id||t?.empresaNome||"empresa"}:${H}`;l.useEffect(()=>{try{N(localStorage.getItem(L)==="1")}catch{N(!1)}},[L]);const X=(()=>{const a=H.split("-").map(Number),s=Number(new Intl.DateTimeFormat("en-CA",{timeZone:"America/Sao_Paulo",day:"2-digit"}).format(new Date)),r=new Date(Date.UTC(a[0],a[1]-1,1)),n=new Date(Date.UTC(a[0],a[1],0)).getUTCDate();return s>=n-6?H:s<=7?(r.setUTCMonth(r.getUTCMonth()-1),`${r.getUTCFullYear()}-${String(r.getUTCMonth()+1).padStart(2,"0")}`):null})(),be=l.useCallback(async()=>{const s=await(await fetch("/api/empresa/home",{headers:{Authorization:`Bearer ${o}`}})).json();if(s.error)throw new Error(s.error);return{proximas:s.proximas||[],resumo:s.resumo||{},checkinPendente:s.checkinPendente||{abertos:[],proximos:[]}}},[o]),ye=l.useCallback(async()=>{const s=await(await fetch("/api/empresa/eventos-buscando",{headers:{Authorization:`Bearer ${o}`}})).json();if(s.error)throw new Error(s.error);return{eventos:s.eventos||[]}}
1,[o]),je=l.useCallback(async()=>{const s=await(await fetch("/api/empresa/avaliacoes-pendentes",{headers:{Authorization:`Bearer ${o}`}})).json();if(s.error)throw new Error(s.error);return{eventos:s.eventos||[]}},[o]),ve=l.useCallback(async()=>{const s=await(await fetch("/api/empresa/eventos-cancelados",{headers:{Authorization:`Bearer ${o}`}})).json();if(s.error)throw new Error(s.error);return{eventos:s.eventos||[]}},[o]),we=l.useCallback(async()=>{const s=await(await fetch("/api/empresa/eventos-agendados",{headers:{Authorization:`Bearer ${o}`}})).json();if(s.error)throw new Error(s.error);return{acontecendo:s.acontecendo||[],confirmados:s.confirmados||s.eventos||[],checkinPendente:s.checkinPendente||{abertos:[],proximos:[]}}},[o]),{dados:v,atualizando:ke,erro:Ce,doCache:ze,recarregar:Z}=z({chave:`empresaHome:home:${j}`,fetcher:be,ativa:!!o}),{dados:J,atualizando:Se,doCache:Ie,recarregar:M}=z({chave:`empresaHome:buscando:${j}`,fetcher:ye,ativa:!!o}),{dados:Be,recarregar:w}=z({chave:`empresaHome:pendentes:${j}`,fetcher:je,ativa:!!o}),{dados:k,recarregar:F}=z({chave:`empresaHome:agendados:${j}`,fetcher:we,ativa:!!o}),{dados:Ae,recarregar:O}=z({chave:`empresaHome:cancelados:${j}`,fetcher:ve,ativa:!!o});v?.proximas;const K=v?.resumo||{},U=J?.eventos||[],Re=!J&&!Ie&&Se,Q=k?.acontecendo||[],G=k?.confirmados||k?.eventos||[],ee=Ae?.eventos||[],ae=Ce?.message||"",$e=[...v?.checkinPendente?.abertos||[],...k?.checkinPendente?.abertos||[]].map(a=>a.checkin),Pe=[...v?.checkinPendente?.proximos||[],...k?.checkinPendente?.proximos||[]].map(a=>a.checkin),[u,V]=l.useState(()=>new Set),R=Be?.eventos||[],i=u.size===0?R:R.map(a=>a.tipo==="escala"?u.has(`escala|${a.escalaId}|${a.diaId}`)?null:a:{...a,freelancers:(a.freelancers||[]).filter(s=>!u.has(`${a.eventoId}|${s.userBubbleId}`))}).filter(a=>a&&(a.tipo==="escala"||(a.freelancers||[]).length>0));l.useEffect(()=>{if(u.size===0)return;const a=new Set;R.forEach(r=>{r.tipo==="escala"?a.add(`escala|${r.escalaId}|${r.diaId}`):(r.freelancers||[]).forEach(n=>a.add(`${r.eventoId}|${n.userBubbleId}`))});const s=new Set;u.forEach(r=>{a.has(r)&&s.add(r)}),s.size!==u.size&&V(s)},[R,u]);const q=!v&&!ze&&ke,C=i.length>0,g=i.reduce((a,s)=>s.tipo==="escala"?a+1:a+(s.freelancers?.length||0),0);l.useEffect(()=>{if(h.get("avaliar")==="1"&&i.length>0){A(!0);const a=new URLSearchParams(h);a.delete("avaliar"),f(a,{replace:!0})}},[h,i,f]),Y(M,20*1e3,!!o),Y(F,60*1e3,!!o),Y(O,60*1e3,!!o),l.useEffect(()=>{const a=s=>{const r=s?.detail;r?.eventoId&&r?.userBubbleId?V(n=>{const b=new Set(n);return b.add(`${r.eventoId}|${r.userBubbleId}`),b}):r?.escalaId&&r?.diaId&&V(n=>{const b=new Set(n);return b.add(`escala|${r.escalaId}|${r.diaId}`),b}),w()};return window.addEventListener("avaliacoes-pendentes-changed",a),()=>window.removeEventListener("avaliacoes-pendentes-changed",a)},[w]),Ne(l.useCallback(()=>{Z(),M(),w(),F(),O()},[Z,M,w,F,O]));const se=l.useCallback(async a=>{if(!C)return;a.preventDefault(),await He({titulo:"Avaliações pendentes",mensagem:`Você precisa avaliar ${g===1?"o freelancer":`os ${g} freelancers`} do${i.length===1?"":"s"} seu${i.length===1?"":"s"} último${i.length===1?"":"s"} evento${i.length===1?"":"s"} antes de iniciar uma nova contratação.`,textoConfirmar:"Avaliar agora",textoCancelar:"Voltar"})&&A(!0)},[C,i,g]);l.useEffect(()=>{let a=!1;return Le(o).then(s=>{a||y(s)}).catch(()=>{}),()=>{a=!0}},[o]);const Te=[{to:"/escalas/criar",label:"Criar Escala",icon:Xe,cor:B,mod:"escalasContratante",bloqueavel:!0},{to:"/contratar",label:"Contratar Freelancer",icon:Ze,cor:"#7c3aed",bloqueavel:!0,intercepta:!0},{to:"/meus-eventos",label:"Contratações",icon:Je,cor:"#ea580c"},{to:"/escalas",label:"Minhas Escalas",icon:Ke,cor:p,mod:"escalasContratante"},{to:"/empresa/vagas-clt",label:"Vagas CLT",icon:Qe,cor:"#16a34a",mod:"vagasClt"},{to:"/empresa/colaboradores",label:"Colaboradores",icon:Ge,cor:"#f59e0b",mod:"colaboradores"},{to:"/empresa/estatisticas",label:"Estatísticas",icon:re,cor:"#0ea5e9"},{to:"/empresa/meu-plano",label:"Meu Plano",icon:ea,cor:"#d97706",mod:"planoPacote"},{to:"/empresa/perfil",label:"Perfil da Empresa",icon:oe,cor:"#6b7280"}].filter(a=>!a.mod||x[a.mod]);return e.jsxs("div",{style:{width:"100%",maxWidth:1100,minWidth:0,boxSizing:"border-box",padding:20,margin:"0 auto",overflowX:"hidden"},children:[q?e.jsx(sa,{nome:t?.empresaNome||t?.primeiroNome||"Contratante"}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{style:me,children:[e.jsx(fe,{size:18,color:B}),e.jsxs("h1",{style:{margin:0,fontSize:17},children:["Olá, ",t?.empresaNome||t?.primeiroNome||"Contratante"]})]}),d==="home"&&e.jsx(qe,{}),d==="agenda"&&e.jsx(Ye,{}),X&&!ge&&e.jsxs("div",{className:"empresa-report-banner",children:[e.jsx("style",{children:`
2             .empresa-report-banner{position:relative;display:flex;align-items:center;gap:12px;margin:0 0 16px;padding:11px 48px 11px 12px;border:1px solid #b8e6e5;border-radius:13px;background:linear-gradient(110deg,#edf9f7 0%,#f7fbfa 70%,#f2f8f7 100%);box-shadow:0 5px 16px rgba(3,29,68,.045);animation:empresaReportIn .28s ease-out both}
3             .empresa-report-banner-mark{display:grid;place-items:center;width:40px;height:40px;flex:0 0 auto;border-radius:11px;background:#d6f1ee;color:#087f89}
4             .empresa-report-banner-link{display:flex;align-items:center;gap:9px;flex:1;min-width:0;text-decoration:none;color:#06385b}
5             .empresa-report-banner-overline{position:absolute;top:8px;margin-left:0;color:#518083;font-size:9px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
6             .empresa-report-banner-link strong{padding-top:13px;font-size:14px;line-height:1.3}
7             .empresa-report-banner-arrow{display:grid;place-items:center;width:27px;height:27px;margin-left:auto;flex:0 0 auto;border-radius:50%;background:#07395c;color:#fff;transition:transform .18s ease}
8             .empresa-report-banner-link:hover .empresa-report-banner-arrow{transform:translateX(3px)}
9             .empresa-report-banner-close{position:absolute;right:9px;top:9px;display:grid;place-items:center;width:28px;height:28px;border:0;border-radius:8px;background:transparent;color:#557278;font-size:24px;line-height:1;cursor:pointer}
10             .empresa-report-banner-close:hover{background:#dff0ee;color:#113f58}
11             @keyframes empresaReportIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
12             @media(max-width:480px){.empresa-report-banner{padding-left:10px;gap:9px}.empresa-report-banner-mark{width:35px;height:35px}.empresa-report-banner-link strong{font-size:12px}.empresa-report-banner-arrow{width:24px;height:24px}}
13           `}),e.jsx("div",{className:"empresa-report-banner-mark",children:e.jsx(re,{size:20})}),e.jsxs(m,{to:`/empresa/relatorio-mensal?mes=${X}`,className:"empresa-report-banner-link",children:[e.jsx("span",{className:"empresa-report-banner-overline",children:"Fechamento mensal"}),e.jsx("strong",{children:"Clique aqui para ver o seu relatorio mensal"}),e.jsx("span",{className:"empresa-report-banner-arrow",children:e.jsx(te,{size:16})})]}),e.jsx("button",{type:"button",className:"empresa-report-banner-close","aria-label":"Fechar aviso",onClick:()=>{try{localStorage.setItem(L,"1")}catch{}N(!0)},children:e.jsx("span",{"aria-hidden":"true",children:"×"})})]}),C&&(()=>{const a=g===1&&i.find(r=>(r.freelancers||[]).length>0)?.freelancers?.[0]||null,s=a?i.find(r=>(r.freelancers||[]).some(n=>n.userBubbleId===a.userBubbleId)):null;return e.jsxs("div",{style:{marginBottom:18,background:"#fff1f2",border:"2px solid #fda4af",borderRadius:12,padding:14,boxShadow:"0 2px 6px rgba(220,38,38,0.10)"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:4},children:[e.jsx(ne,{size:18,color:"#dc2626"}),e.jsx("h2",{style:{margin:0,fontSize:14,color:"#991b1b",textTransform:"uppercase",letterSpacing:"0.04em"},children:g===1?"Avaliação pendente":`${g} avaliações pendentes`})]}),a&&e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:12,background:"#fff",border:"1px solid #fecaca",borderRadius:10,padding:"8px 10px",margin:"8px 0 10px"},children:[e.jsx(_,{foto:a.foto,nome:a.nome,pro:a?.isPro,size:44,style:{border:"2px solid #fecaca"}}),e.jsxs("div",{style:{minWidth:0},children:[e.jsx("div",{style:{fontWeight:800,color:"#991b1b",fontSize:15,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:a.nome}),s?.tipoHabilidade&&e.jsx("div",{style:{fontSize:12,color:"#7f1d1d",marginTop:2},children:s.tipoHabilidade})]})]}),e.jsxs("div",{style:{fontSize:13,color:"#7f1d1d",marginBottom:10},children:["Avalie ",g===1?"o freelancer":"os freelancers"," do",i.length===1?"":"s"," seu",i.length===1?"":"s"," último",i.length===1?"":"s"," evento",i.length===1?"":"s"," para liberar novas contratações."]}),e.jsxs("button",{type:"button",onClick:()=>A(!0),style:{width:"100%",marginBottom:10,padding:"10px 14px",background:"#dc2626",color:"#fff",border:"none",borderRadius:10,fontWeight:800,fontSize:14,cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:8,textTransform:"uppercase",letterSpacing:"0.04em"},children:[e.jsx(aa,{size:16,fill:"#fff"})," Avaliar agora"]})]})})(),e.jsx(Ue,{aberto:ue,onFechar:()=>A(!1),pendentes:i,token:o,onConcluido:w}),!t?.logotipo&&e.jsxs(m,{to:"/empresa/perfil",style:{display:"flex",alignItems:"flex-start",gap:10,background:"#fffbeb",border:"1.5px solid #fcd34d",borderRadius:10,padding:"12px 14px",marginBottom:14,textDecoration:"none"},children:[e.jsx(oe,{size:20,color:"#92400e",style:{flexShrink:0,marginTop:1}}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsx("div",{style:{fontWeight:700,fontSize:14,color:"#92400e"},children:"Adicione a logo da sua empresa"}),e.jsx("div",{style:{fontSize:13,color:"#78350f",marginTop:2,lineHeight:1.4},children:"Uma logo profissional passa mais credibilidade aos freelancers que recebem suas propostas."})]}),e.jsx("span",{style:{width:26,height:26,borderRadius:"50%",background:"#f59e0b",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,alignSelf:"center"},children:e.jsx(te,{size:14,color:"#fff"})})]}),e.jsxs("div",{"data-tutorial":"empresa-home-resumo",style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(min(180px, 100%), 1fr))",gap:10,marginBottom:18,minWidth:0},children:[(x.escalasContratante!==void 0?x.escalasContratante:x.escalas)&&e.jsx(pe,{titulo:d==="home"?"Contratações ativas":"Escalas ativas",loading:q,valor:K.escalasAtivas??0,cor:p,to:"/escalas"}),e.jsx(pe,{titulo:"Contratações no mês",loading:q,valor:K.contratacoesMes??0,cor:B,to:"/meus-eventos"})]}),U.length===0&&Re&&e.jsxs(I,{titulo:e.jsxs(e.Fragment,{children:[e.jsx($,{size:13,color:"#7c3aed",style:{verticalAlign:-2,marginRight:4}}),"Buscando freelancers"]}),children:[[0,1].map(a=>e.jsxs("div",{style:{...S,cursor:"default"},children:[e.jsxs("div",{className:"busca-pulse-mini",children:[e.jsx("span",{className:"busca-pulse-ring"}),e.jsx("span",{className:"busca-pulse-ring d2"}),e.jsx("span",{className:"busca-pulse-core",children:e.jsx($,{size:18,color:"#fff"})})]}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsx("div",{style:{height:14,width:"55%",borderRadius:6,background:"#eef2ff"},className:"sk-pulse"}),e.jsx("div",{style:{height:11,width:"35%",borderRadius:6,background:"#f3f4f6",marginTop:8},className:"sk-pulse"})]})]},a)),e.jsx("style",{children:`
14            .busca-pulse-mini { position: relative; width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
15            .busca-pulse-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #7c3aed; opacity: 0; animation: buscaPulseOut 2.2s ease-out infinite; }
16            .busca-pulse-ring.d2 { animation-delay: 1.1s; }
17            @keyframes buscaPulseOut { 0% { transform: scale(0.55); opacity: 0.7; } 100% { transform: scale(1.35); opacity: 0; } }
18            .busca-pulse-core { width: 32px; height: 32px; border-radius: 50%; background: #7c3aed; display: flex; align-items: center; justify-content: center; z-index: 1; box-shadow: 0 6px 16px rgba(124,58,237,0.3); }
19            @keyframes skPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
20            .sk-pulse { animation: skPulse 1.2s ease-in-out infinite; }
21          `})]}),U.length>0&&e.jsxs(I,{titulo:e.jsxs(e.Fragment,{children:[e.jsx($,{size:13,color:"#7c3aed",style:{verticalAlign:-2,marginRight:4}}),"Buscando freelancers"]}),verMais:"/meus-eventos",children:[U.slice(0,3).map(a=>e.jsxs(m,{to:`/empresa/evento/${a.id}`,style:S,children:[e.jsxs("div",{className:"busca-pulse-mini",children:[e.jsx("span",{className:"busca-pulse-ring"}),e.jsx("span",{className:"busca-pulse-ring d2"}),e.jsx("span",{className:"busca-pulse-core",children:e.jsx($,{size:18,color:"#fff"})})]}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,flexWrap:"wrap"},children:[e.jsx("span",{style:{fontWeight:700,color:p},children:a.tipoHabilidade||"Evento"}),e.jsx("span",{style:{fontSize:9,fontWeight:700,letterSpacing:"0.05em",textTransform:"uppercase",padding:"2px 6px",borderRadius:999,background:a.intermediada?"#ede9fe":"#dbeafe",color:a.intermediada?"#6d28d9":"#1d4ed8",border:`1px solid ${a.intermediada?"#c4b5fd":"#bfdbfe"}`,whiteSpace:"nowrap"},children:a.intermediada?"Contratação intermediada":"Contratação direta"})]}),e.jsx("div",{style:{fontSize:12,color:"#5b21b6",fontWeight:600,textTransform:"uppercase",letterSpacing:"0.04em"},children:a.status}),e.jsxs("div",{style:{display:"flex",gap:10,marginTop:4,fontSize:12,color:"#6b7280",flexWrap:"wrap"},children:[e.jsxs("span",{style:c,children:[e.jsx(P,{size:11})," ",E(a.dataInicio)]}),e.jsx("span",{style:c,children:e.jsx("strong",{style:{color:"#16a34a"},children:D(a.valor)})}),a.endereco?.cidade&&e.jsxs("span",{style:c,children:[e.jsx(T,{size:11}
21)," ",[a.endereco.bairro,a.endereco.cidade].filter(Boolean).join(" / ")]})]})]}),a.candidatos>0?e.jsxs("span",{style:{fontSize:10,fontWeight:700,color:"#065f46",background:"#ecfdf5",border:"1px solid #a7f3d0",padding:"3px 8px",borderRadius:999,whiteSpace:"nowrap"},children:[a.candidatos," ",a.candidatos===1?"CANDIDATO":"CANDIDATOS"]}):e.jsx(W,{size:16,color:"#9ca3af"})]},a.id)),e.jsx("style",{children:`
22            @keyframes pulseBusca { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
23            .busca-pulse-mini { position: relative; width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
24            .busca-pulse-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #7c3aed; opacity: 0; animation: buscaPulseOut 2.2s ease-out infinite; }
25            .busca-pulse-ring.d2 { animation-delay: 1.1s; }
26            @keyframes buscaPulseOut { 0% { transform: scale(0.55); opacity: 0.7; } 100% { transform: scale(1.35); opacity: 0; } }
27            .busca-pulse-core { width: 32px; height: 32px; border-radius: 50%; background: #7c3aed; display: flex; align-items: center; justify-content: center; z-index: 1; box-shadow: 0 6px 16px rgba(124,58,237,0.3); }
28          `})]}),Q.length>0&&e.jsxs(I,{titulo:e.jsxs(e.Fragment,{children:[e.jsx(ie,{size:13,color:"#2563eb",style:{verticalAlign:-2,marginRight:4}}),"Eventos acontecendo agora",e.jsxs("span",{style:{marginLeft:8,fontSize:10,fontWeight:800,color:"#2563eb",background:"#dbeafe",border:"1px solid #bfdbfe",borderRadius:999,padding:"2px 8px",letterSpacing:"0.06em",display:"inline-flex",alignItems:"center",gap:5,verticalAlign:1},children:[e.jsx("span",{style:{width:7,height:7,borderRadius:"50%",background:"#2563eb",display:"inline-block",animation:"pulseBusca 1.5s ease-in-out infinite"}}),"AO VIVO"]})]}),children:[Q.slice(0,4).map(a=>e.jsxs(m,{to:`/empresa/evento/${a.id}`,style:{...S,border:"1px solid #bfdbfe",background:"#eff6ff"},children:[e.jsx("div",{style:{width:44,height:44,borderRadius:10,background:"#dbeafe",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,animation:"pulseBusca 1.5s ease-in-out infinite"},children:e.jsx(ie,{size:22,color:"#2563eb"})}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsx("div",{style:{fontWeight:700,color:p},children:a.tipoHabilidade||"Evento"}),e.jsxs("div",{style:{display:"flex",gap:10,marginTop:4,fontSize:12,color:"#6b7280",flexWrap:"wrap"},children:[e.jsxs("span",{style:c,children:[e.jsx(P,{size:11})," ",E(a.dataInicio)]}),e.jsx("span",{style:c,children:e.jsx("strong",{style:{color:"#16a34a"},children:D(a.valor)})}),a.endereco?.cidade&&e.jsxs("span",{style:c,children:[e.jsx(T,{size:11})," ",[a.endereco.bairro,a.endereco.cidade].filter(Boolean).join(" / ")]})]}),a.confirmados?.length>0&&e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,marginTop:6},children:[e.jsx("div",{style:{display:"flex"},children:a.confirmados.slice(0,4).map((s,r)=>e.jsx(_,{foto:s.foto,nome:s.nome,pro:s.isPro,size:24,title:s.nome,style:{border:"2px solid #fff",marginLeft:r?-8:0}},s.userBubbleId))}),e.jsxs("span",{style:{fontSize:11,color:"#2563eb",fontWeight:600},children:[a.confirmadosCount," ",a.confirmadosCount===1?"confirmado":"confirmados",a.vagas?` / ${a.vagas}`:""]})]})]}),e.jsx(W,{size:16,color:"#9ca3af"})]},a.id)),e.jsx("style",{children:"@keyframes pulseBusca { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }"})]}),G.length>0&&e.jsx(I,{titulo:e.jsxs(e.Fragment,{children:[e.jsx(le,{size:13,color:"#16a34a",style:{verticalAlign:-2,marginRight:4}}),"Eventos confirmados"]}),children:G.slice(0,4).map(a=>{const s=Pe.find(n=>n.tipo==="avulsa"?n.eventoId===a.id:!1),r=$e.find(n=>n.tipo==="avulsa"?n.eventoId===a.id:!1);return e.jsxs(m,{to:`/empresa/evento/${a.id}`,style:S,children:[e.jsx("div",{style:{width:44,height:44,borderRadius:10,background:"#dcfce7",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:e.jsx(le,{size:22,color:"#16a34a"})}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsx("div",{style:{fontWeight:700,color:p},children:a.tipoHabilidade||"Evento"}),e.jsxs("div",{style:{display:"flex",gap:10,marginTop:4,fontSize:12,color:"#6b7280",flexWrap:"wrap"},children:[e.jsxs("span",{style:c,children:[e.jsx(P,{size:11})," ",E(a.dataInicio)]}),e.jsx("span",{style:c,children:e.jsx("strong",{style:{color:"#16a34a"},children:D(a.valor)})}),a.endereco?.cidade&&e.jsxs("span",{style:c,children:[e.jsx(T,{size:11}
28)," ",[a.endereco.bairro,a.endereco.cidade].filter(Boolean).join(" / ")]})]}),a.confirmados?.length>0&&e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,marginTop:6},children:[e.jsx("div",{style:{display:"flex"},children:a.confirmados.slice(0,4).map((n,b)=>e.jsx(_,{foto:n.foto,nome:n.nome,pro:n.isPro,size:24,title:n.nome,style:{border:"2px solid #fff",marginLeft:b?-8:0}},n.userBubbleId))}),e.jsxs("span",{style:{fontSize:11,color:"#16a34a",fontWeight:600},children:[a.confirmadosCount," ",a.confirmadosCount===1?"confirmado":"confirmados",a.vagas?` / ${a.vagas}`:""]})]}),r&&e.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:4,marginTop:6,background:"#dcfce7",border:"1px solid #86efac",borderRadius:6,padding:"2px 7px"},children:[e.jsx(de,{size:11,color:"#16a34a"}),e.jsx("span",{style:{fontSize:11,color:"#15803d",fontWeight:700},children:"Check-in disponível agora"})]}),!r&&s&&e.jsxs("div",{style:{display:"inline-flex",alignItems:"center",gap:4,marginTop:6,background:"#fef3c7",border:"1px solid #fde68a",borderRadius:6,padding:"2px 7px"},children:[e.jsx(de,{size:11,color:"#b45309"}),e.jsx("span",{style:{fontSize:11,color:"#92400e",fontWeight:600},children:"Check-in abre em breve"})]})]}),e.jsx(W,{size:16,color:"#9ca3af"})]},a.id)})}),ee.length>0&&e.jsx(I,{titulo:e.jsxs(e.Fragment,{children:[e.jsx(ce,{size:13,color:"#dc2626",style:{verticalAlign:-2,marginRight:4}}),"Eventos cancelados"]}),children:ee.slice(0,4).map(a=>e.jsxs(m,{to:`/empresa/evento/${a.id}`,style:{...S,border:"1px solid #fecaca",background:"#fef2f2"},children:[e.jsx("div",{style:{width:44,height:44,borderRadius:10,background:"#fee2e2",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:e.jsx(ce,{size:22,color:"#dc2626"})}),e.jsxs("div",{style:{flex:1,minWidth:0},children:[e.jsx("div",{style:{fontWeight:700,color:p},children:a.tipoHabilidade||"Evento"}),e.jsx("div",{style:{fontSize:12,color:"#b91c1c",fontWeight:600},children:a.canceladoPor?`${a.canceladoPor} cancelou${a.canceladosCount>1?` (+${a.canceladosCount-1})`:""}`:"Freelancer cancelou"}),e.jsxs("div",{style:{display:"flex",gap:10,marginTop:4,fontSize:12,color:"#6b7280",flexWrap:"wrap"},children:[e.jsxs("span",{style:c,children:[e.jsx(P,{size:11})," ",E(a.dataInicio)]}),e.jsx("span",{style:c,children:e.jsx("strong",{style:{color:"#16a34a"},children:D(a.valor)})}),a.endereco?.cidade&&e.jsxs("span",{style:c,children:[e.jsx(T,{size:11})," ",[a.endereco.bairro,a.endereco.cidade].filter(Boolean).join(" / ")]})]})]}),e.jsx(W,{size:16,color:"#9ca3af"})]},a.id))}),e.jsx("h2",{style:ra,children:"Atalhos"}),e.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(min(180px, 100%), 1fr))",gap:10,marginBottom:18,minWidth:0},children:Te.map(a=>{const s=a.bloqueavel&&C;return e.jsxs(m,{to:a.to,onClick:r=>{if(a.intercepta){if(C){se(r);return}he(r);return}s&&se(r)},style:{...oa,borderLeft:`4px solid ${s?"#9ca3af":a.cor}`,opacity:s?.55:1,cursor:s?"not-allowed":"pointer"},title:s?"Avalie os freelancers pendentes antes de iniciar uma nova contratação":void 0,children:[e.jsx(a.icon,{size:18,color:s?"#9ca3af":a.cor}),e.jsx("span",{style:{fontSize:13,fontWeight:600,color:s?"#6b7280":"#111827"},children:a.label}),s&&e.jsx(ne,{size:14,color:"#dc2626",style:{marginLeft:"auto"}})]},a.to)})}),ae&&e.jsx("div",{style:{background:"#fee2e2",color:"#991b1b",padding:10,borderRadius:8,marginTop:10},children:ae})]}),xe,e.jsx(_e,{token:o})]})}const me={display:"flex",alignItems:"center",gap:10,background:p,color:"#fff",padding:"10px 16px",borderRadius:999,marginBottom:16,width:"fit-content"},ra={fontSize:13,color:"#374151",textTransform:"uppercase",letterSpacing:"0.06em",margin:"4px 0 8px"},oa={display:"flex",alignItems:"center",gap:10,padding:12,background:"#fff",borderRadius:8,border:"1px solid #e5e7eb",textDecoration:"none",boxShadow:"0 1px 2px rgba(0,0,0,0.03)",minWidth:0,maxWidth:"100%",boxSizing:"border-box",overflowWrap:"anywhere"},S={display:"flex",gap:12,alignItems:"center",padding:12,background:"#fff",border:"1px solid #e5e7eb",borderRadius:10,width:"100%",maxWidth:"100%",minWidth:0,boxSizing:"border-box",textAlign:"left",cursor:"pointer",font:"inherit",color:"inherit",textDecoration:"none",overflowWrap:"anywhere"},c={display:"inline-flex",alignItems:"center",gap:3};function I({titulo:o,verMais:t,children:d}){return e.jsxs("div",{style:{marginBottom:18},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[e.jsx("h2",{style:{fontSize:13,color:"#374151",textTransform:"uppercase",letterSpacing:"0.06em",margin:0},children:o}),t&&e.jsx(m,{to:t,style:{fontSize:12,color:p,textDecoration:"none",fontWeight:600},children:"Ver tudo →"})]}),e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:8},children:d})]})}function pe({titulo:o,valor:t,cor:d,loading:h,to:f}){const x=e.jsxs("div",{style:{background:"#fff",padding:12,borderRadius:8,border:"1px solid #e5e7eb",borderLeft:`4px solid ${d}
28`,cursor:f?"pointer":"default",transition:f?"box-shadow 0.15s":void 0},onMouseEnter:f?y=>y.currentTarget.style.boxShadow="0 2px 8px rgba(0,0,0,0.10)":void 0,onMouseLeave:f?y=>y.currentTarget.style.boxShadow="none":void 0,children:[e.jsx("div",{style:{fontSize:11,color:"#6b7280",textTransform:"uppercase",letterSpacing:"0.06em"},children:o}),e.jsx("div",{style:{fontSize:20,fontWeight:700,color:p,marginTop:4,minHeight:24},children:e.jsx(Oe,{loading:h,value:t,cor:d,tamanho:20})})]});return f?e.jsx(m,{to:f,style:{textDecoration:"none",display:"block"},children:x}):x}export{xa 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.