import{_ as N}from"./DUQr9DrG.js";import{_ as O}from"./sSMn-h0p.js";import{_ as C}from"./gxHWKiUc.js";import w from"./BBDFeM-T.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,b9 as L,h as m,t as s,H as B}from"./JQJBiNWj.js";import{M as $,u as Y,_ as j}from"./CISxZwAX.js";import{_ as z}from"./DTOFlTEg.js";import{_ as G}from"./CYDRfonM.js";import{_ as H}from"./CSVLls9e.js";import{a as d}from"./BRY5UTQQ.js";import J from"./CuNuZBQO.js";import{A as I}from"./CLzE61HQ.js";import{T as Z}from"./C3JtJyG7.js";import{u as q}from"./CL7Msd7o.js";import{T as M}from"./BKl0aY3w.js";import"./BwwR4PPN.js";import"./B6O9xiO5.js";import"./HM4z-iuB.js";import"./DqVYbxj5.js";import"./CxkaGOlL.js";import"./BgAkS4D_.js";import"./DKM0wLqG.js";import"./D7IyRfqO.js";import"./CbtPaznW.js";import"./Dc_YXEFz.js";import"./DmwTwIPt.js";import"./B-La3K3C.js";import"./F98GHXdS.js";import"./DvBDpJyt.js";import"./FcRkkR--.js";import"./Dk4pWsnS.js";import"./BSHuRY0P.js";import"./DPeK_S5k.js";import"./ClVEEBFD.js";import"./2JTb7YQn.js";import"./CeGk6Fsr.js";import"./D1rKqwCM.js";import"./CeWG_dyW.js";import"./CDSORL4U.js";import"./BAmc1GPw.js";import"./CJYlvWEf.js";import"./3oa0FK2h.js";import"./DvDPnlY-.js";import"./D8TjaAl-.js";import"./BoTzJngr.js";import"./qAEGbaa4.js";import"./BnQEpK3N.js";import"./yKVtex9U.js";import"./Cr9ZZaT-.js";import"./DNRi6U01.js";import"./BYfmWBgX.js";import"./Bli8EQqv.js";import"./BagArUDo.js";import"./CRodc3LN.js";import"./DncddsCV.js";import"./Dm5UwSfy.js";import"./D42GNhrT.js";import"./BuR5k2Xw.js";import"./DTBQT8lh.js";import"./BfZwoNNq.js";import"./DA9LdHVd.js";import"./CLkB_muw.js";import"./DcwUl3bn.js";import"./D7gSulp_.js";import"./G7u0egV4.js";import"./CH1bAkoS.js";import"./Dd3ROLQd.js";import"./f6QOa6wf.js";import"./Tk23Dwa0.js";import"./DMxbovom.js";import"./DBWLnasn.js";import"./RO0fiRDZ.js";import"./vkXHPWu2.js";import"./CASPyZT-.js";import"./CfLdzzlL.js";import"./CjLYEAc3.js";import"./BTchAptP.js";import"./CXVd19p6.js";import"./DcOKUJR4.js";import"./C2t9sOuH.js";import"./BtEXx3og.js";import"./BQiDFkvr.js";import"./B2KGk13o.js";import"./RsGXowbb.js";import"./aFksSSEN.js";import"./Dc2HEpOy.js";import"./CJPOHzeV.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()}),Ut=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{Ut as default};
