import{_ as P}from"./DDV-HLQE.js";import{_ as R}from"./DW2av1UZ.js";import{_ as O}from"./BqnRxGiA.js";import U from"./C5Oc2f2M.js";import{E as I}from"./CTWtVE-T.js";import{d as A,a as M,o as S,f as t,w as a,g as m,z as N,R as K,O as V,P as $,j as z,C as B,b5 as Y,F as j,i as L,h as r,t as s,H as X,n as G}from"./dVzHJMF1.js";import{_ as H}from"./CPhxMljB.js";import{_ as J}from"./C682XpkB.js";import{M as Z,_ as q}from"./8xtJPFc-.js";import{a as b}from"./BRY5UTQQ.js";import Q from"./G1F3Bacz.js";import{A as h}from"./DJzKbefB.js";import{T as W}from"./C3JtJyG7.js";import{u as oo}from"./CJ1p9Ehj.js";import{u as to}from"./BWID9sOX.js";import{h as ao,r as io}from"./pI06Dkb8.js";import{T as E}from"./Byi2WFzI.js";import"./DhLu8RVk.js";import"./CWHHmK0V.js";import"./yXj_05M0.js";import"./Bhud8mbC.js";import"./tESAK1vk.js";import"./B79Hoqpc.js";import"./CX2DUt_P.js";import"./RwcpOhWN.js";import"./B-d7gz-d.js";import"./BSLzRQpY.js";import"./CNJ8Vm0G.js";import"./Bpf-t_rp.js";import"./yHxjwlra.js";import"./KG16xCEZ.js";import"./FcRkkR--.js";import"./DP0doleY.js";import"./BAtzogEJ.js";import"./DYJY2RZG.js";import"./a1m94JqE.js";import"./CM8mMzv6.js";import"./BuQ9u7Je.js";import"./BW5cYMVL.js";import"./DiwqsPB4.js";import"./KcBrPYTF.js";import"./Coj9p228.js";import"./B7Hqpkvs.js";import"./r1Y5hC84.js";import"./Dhxod4ql.js";import"./CELWndHG.js";import"./Bc99g-CG.js";import"./BSe03gVj.js";import"./BGFPOxrp.js";import"./CL2jyiz8.js";import"./C9L2ikqF.js";import"./B3dHCiEQ.js";import"./BZjcnCH7.js";import"./wlXwsacy.js";import"./fvoe36K6.js";import"./BNYh59m7.js";import"./CrEL4Vxb.js";import"./cMkL48JQ.js";import"./iZ-xiGRB.js";import"./CBbadgK0.js";import"./Brk5FU9k.js";import"./CH1bAkoS.js";import"./DaykkcNl.js";import"./D2P12BLM.js";import"./DTJCrQga.js";import"./DDpCYtr5.js";import"./C9UvFovT.js";import"./FaLtR_4n.js";import"./B_Kqq5Cu.js";import"./B-6EeO4n.js";import"./CPg0DzIm.js";import"./BphmgIhx.js";import"./ClA_a7pZ.js";import"./KnKI0YOK.js";import"./D8XE_5qi.js";import"./DcOKUJR4.js";import"./9Jp4JupG.js";import"./Cn3xUAbr.js";import"./CFjb8Eh0.js";import"./3sg4s6vk.js";import"./DnEvudPM.js";import"./BdiRL104.js";import"./D0hx4cN5.js";import"./CFPdi0lF.js";import"./DTBQT8lh.js";const eo={class:"base-grid grid lg:grid-cols-4 grid-cols-2"},ro=A({__name:"Filtros",setup(x){return(n,p)=>{const c=R,l=U,d=O;return S(),M("div",eo,[t(c,{"show-trechos-homogeneos":""}),t(d,{name:"parametro",label:"Parâmetro:"},{default:a(()=>[t(l,{id:"parametro-exsudacao",name:"parametro","option-label":"label","option-value":"value",options:m(I).TIPO_STATUS_ATENDIMENTO,placeholder:"Selecione...","show-clear":"","show-toggle-all":!1},null,8,["options"])]),_:1})])}}}),so=Object.assign(ro,{__name:"AtivosMonitoracoesPavimentoExsudacaoFiltros"}),mo=Z.extend({parametro:N.string()}),$t=A({__name:"index",async setup(x){let n,p;const c=oo({view:K.ATV_VISUALIZAR_MONITORACAO_PAVIMENTO_EXSUDACAO}),l=X(),d=V(),y=([n,p]=$(()=>d.getEmpresaSelecionada()),n=await n,p(),n),_=to(E.PavimentoExsudacao,i=>L.ativos.monitoracoes.findAllByTipo(y.sigla,E.PavimentoExsudacao,i));function T(i){return l(i).format("DD/MM/YYYY")}function g(i){c.value.view&&G(io(`${i.data.id.idMonitoracao}`),ao(i))}const u=z(!1);return(i,f)=>{const C=P,F=so,k=H,e=Q,w=J,D=q;return S(),M(j,null,[t(C,{title:"Monitorações - Exsudação"}),B(t(k,{status:m(_).status.value,schema:m(mo),"paginated-url":""},{default:a(()=>[t(F)]),_:1},8,["status","schema"]),[[Y,!m(u)]]),t(D,{"tipo-ativo":"PAVEXS",onTabChange:f[0]||(f[0]=o=>u.value=o==="AnaliseCienciaDados")},{dados:a(()=>[t(w,{value:m(_),onRowClick:g},{default:a(()=>[t(e,{field:"anoFiscalizacao",header:"Ano fiscalização",sortable:""},{body:a(o=>[r(s(o.data.anoFiscalizacao),1)]),_:1}),t(e,{field:"anoConcessao",header:"Ano concessão",sortable:""},{body:a(o=>[r(s(o.data.anoConcessao),1)]),_:1}),t(e,{field:"datMonitoracao",header:"Data inspeção",sortable:""},{body:a(o=>[r(s(T(o.data.datMonitoracao)),1)]),_:1}),t(e,{field:"rodovia",header:"Rodovia",sortable:""},{body:a(o=>{var v;return[r(s((v=o.data.rodovia)==null?void 0:v.descricao),1)]}),_:1}),t(e,{field:"uf",header:"UF",sortable:""},{body:a(o=>[r(s(o.data.uf),1)]),_:1}),t(e,{field:"sentido",header:"Sentido",sortable:""},{body:a(o=>[r(s(m(h).Enums.TipoSentido[o.data.sentido]),1)]),_:1}),t(e,{field:"direcao",header:"Direção",sortable:""},{body:a(o=>[r(s(m(h).Enums.TipoDirecao[o.data.direcao]),1)]),_:1}),t(e,{field:"kmInicial",header:"KM inicial",sortable:""},{body:a(o=>[r(s(("applyKmEstacaMask"in i?i.applyKmEstacaMask:m(b))(o.data.kmInicial)),1)]),_:1}),t(e,{field:"kmFinal",header:"KM final",sortable:""},{body:a(o=>[r(s(("applyKmEstacaMask"in i?i.applyKmEstacaMask:m(b))(o.data.kmFinal)),1)]),_:1}),t(e,{field:"parametroExsudacao",header:"Parâmetro",sortable:""},{body:a(o=>[r(s(m(W)[o.data.parametroExsudacao]),1)]),_:1})]),_:1},8,["value"])]),_:1})],64)}}});export{$t as default};
