import{_ as N}from"./DDV-HLQE.js";import{_ as O}from"./DW2av1UZ.js";import{_ as C}from"./BqnRxGiA.js";import w from"./C5Oc2f2M.js";import{E as U}from"./CTWtVE-T.js";import{d as v,a as b,o as A,f as o,w as a,g as i,F as h,z as g,R as K,j as x,C as V,b5 as L,h as m,t as s,H as B}from"./dVzHJMF1.js";import{M as $,u as Y,_ as j}from"./D5v1XHs-.js";import{_ as z}from"./CPhxMljB.js";import{_ as G}from"./C682XpkB.js";import{_ as H}from"./8xtJPFc-.js";import{a as d}from"./BRY5UTQQ.js";import J from"./G1F3Bacz.js";import{A as I}from"./DJzKbefB.js";import{T as Z}from"./C3JtJyG7.js";import{u as q}from"./CJ1p9Ehj.js";import{T as M}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"./DTBQT8lh.js";import"./BWID9sOX.js";import"./JmK0ihQ-.js";import"./pI06Dkb8.js";import"./CYPvPNyX.js";import"./COliOQKD.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";const Q=v({__name:"Filtros",setup(E){return(f,l)=>{const c=O,n=w,_=C;return A(),b(h,null,[o(c,{"show-trechos-homogeneos":""}),o(_,{name:"parametro",label:"Parâmetro:"},{default:a(()=>[o(n,{id:"parametro-iri",name:"parametro","option-label":"label","option-value":"value",options:i(U).TIPO_STATUS_ATENDIMENTO,placeholder:"Selecione...","show-clear":"","show-toggle-all":!1},null,8,["options"])]),_:1})],64)}}}),W=Object.assign(Q,{__name:"AtivosMonitoracoesPavimentoIriFiltros"}),X=$.extend({parametro:g.string()}),gt=v({__name:"index",setup(E){const f=q({view:K.ATV_VISUALIZAR_MONITORACAO_PAVIMENTO_IRI}),l={INDIVIDUAL:M.PavimentoIri,SEGMENTADO:M.PavimentoIriSth},c=B(),{monitoracoesList:n,tipoSelecionado:_,handleRowClick:T}=Y(l.INDIVIDUAL,l.SEGMENTADO);function S(e){return c(e).format("DD/MM/YYYY")}const u=x(!1);return(e,p)=>{const D=N,k=W,y=j,P=z,r=J,F=G,R=H;return A(),b(h,null,[o(D,{title:"Monitorações - Pavimentos - IRI"}),V(o(P,{status:i(n).status.value,schema:i(X),"paginated-url":""},{default:a(()=>[o(y,null,{default:a(()=>[o(k)]),_:1})]),_:1},8,["status","schema"]),[[L,!i(u)]]),o(R,{"tipo-ativo":"PAVIRI","pavimento-tabs":"",onTabChange:p[1]||(p[1]=t=>u.value=t==="AnaliseCienciaDados")},{dados:a(()=>[o(F,{value:i(n),onRowClick:p[0]||(p[0]=t=>i(T)(t,i(f).view))},{default:a(()=>[o(r,{field:"tipo",header:"Tipo"},{body:a(()=>[m(s(i(_)),1)]),_:1}),o(r,{field:"anoFiscalizacao",header:"Ano fiscalização",sortable:""}),o(r,{field:"anoConcessao",header:"Ano concessão",sortable:""}),o(r,{field:"datMonitoracao",header:"Data inspeção",sortable:""},{body:a(t=>[m(s(S(t.data.datMonitoracao)),1)]),_:1}),o(r,{field:"rodovia.descricao",header:"Rodovia",sortable:""}),o(r,{field:"uf",header:"UF",sortable:""}),o(r,{field:"kmReferencial",header:"KM referencial",sortable:""},{body:a(t=>[m(s(("applyKmEstacaMask"in e?e.applyKmEstacaMask:i(d))(t.data.kmReferencial)),1)]),_:1}),o(r,{field:"sentido",header:"Sentido",sortable:""},{body:a(t=>[m(s(i(I).Enums.TipoSentido[t.data.sentido]),1)]),_:1}),o(r,{field:"direcao",header:"Direção",sortable:""},{body:a(t=>[m(s(i(I).Enums.TipoDirecao[t.data.direcao]),1)]),_:1}),o(r,{field:"kmInicial",header:"KM inicial",sortable:""},{body:a(t=>[m(s(("applyKmEstacaMask"in e?e.applyKmEstacaMask:i(d))(t.data.kmInicial)),1)]),_:1}),o(r,{field:"kmFinal",header:"KM final",sortable:""},{body:a(t=>[m(s(("applyKmEstacaMask"in e?e.applyKmEstacaMask:i(d))(t.data.kmFinal)),1)]),_:1}),o(r,{field:"parametroIri",header:"Parâmetro",sortable:""},{body:a(t=>[m(s(i(Z)[t.data.parametroIri]),1)]),_:1})]),_:1},8,["value"])]),_:1})],64)}}});export{gt as default};
