import{_ as D}from"./DUQr9DrG.js";import{_ as R}from"./sSMn-h0p.js";import{_ as x}from"./gxHWKiUc.js";import O from"./BBDFeM-T.js";import{E as U}from"./CTWtVE-T.js";import{d as M,a as y,o as T,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,b9 as L,F as Y,i as j,h as r,t as s,H as G,n as H}from"./JQJBiNWj.js";import{_ as J}from"./DTOFlTEg.js";import{_ as Z}from"./CYDRfonM.js";import{M as q,_ as Q}from"./CSVLls9e.js";import{a as b}from"./BRY5UTQQ.js";import W from"./CuNuZBQO.js";import{A as h}from"./CLzE61HQ.js";import{T as X}from"./C3JtJyG7.js";import{u as oo}from"./CL7Msd7o.js";import{u as to}from"./BfZwoNNq.js";import{h as ao,r as io}from"./CLkB_muw.js";import{T as A}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"./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";import"./DTBQT8lh.js";const eo={class:"base-grid grid lg:grid-cols-4 grid-cols-2"},ro=M({__name:"Filtros",setup(I){return(n,p)=>{const c=R,l=O,_=x;return T(),y("div",eo,[t(c,{"show-trechos-homogeneos":""}),t(_,{name:"parametro",label:"Parâmetro:"},{default:a(()=>[t(l,{id:"parametro-icp",name:"parametro","option-label":"label","option-value":"value",options:m(U).TIPO_STATUS_ATENDIMENTO,placeholder:"Selecione...","show-clear":"","show-toggle-all":!1},null,8,["options"])]),_:1})])}}}),so=Object.assign(ro,{__name:"AtivosMonitoracoesPavimentoIcpFiltros"}),mo=q.extend({parametro:N.string()}),Vt=M({__name:"index",async setup(I){let n,p;const c=oo({view:K.ATV_VISUALIZAR_MONITORACAO_PAVIMENTO_ICP}),l=G(),_=V(),S=([n,p]=$(()=>_.getEmpresaSelecionada()),n=await n,p(),n),d=to(A.PavimentoIcp,i=>j.ativos.monitoracoes.findAllByTipo(S.sigla,A.PavimentoIcp,i));function g(i){return l(i).format("DD/MM/YYYY")}function C(i){c.value.view&&H(io(`${i.data.id.idMonitoracao}`),ao(i))}const u=z(!1);return(i,f)=>{const E=D,F=so,P=J,e=W,k=Z,w=Q;return T(),y(Y,null,[t(E,{title:"Monitorações - ICP"}),B(t(P,{status:m(d).status.value,schema:m(mo),"paginated-url":""},{default:a(()=>[t(F)]),_:1},8,["status","schema"]),[[L,!m(u)]]),t(w,{"tipo-ativo":"PAVICP",onTabChange:f[0]||(f[0]=o=>u.value=o==="AnaliseCienciaDados")},{dados:a(()=>[t(k,{value:m(d),onRowClick:C},{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(g(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:"parametroIcp",header:"Parâmetro",sortable:""},{body:a(o=>[r(s(m(X)[o.data.parametroIcp]),1)]),_:1})]),_:1},8,["value"])]),_:1})],64)}}});export{Vt as default};
