import{_ as D}from"./DDV-HLQE.js";import{_ as R}from"./DW2av1UZ.js";import{_ as x}from"./BqnRxGiA.js";import O from"./C5Oc2f2M.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,b5 as L,F as Y,i as j,h as r,t as s,H as G,n as H}from"./dVzHJMF1.js";import{_ as J}from"./CPhxMljB.js";import{_ as Z}from"./C682XpkB.js";import{M as q,_ as Q}from"./8xtJPFc-.js";import{a as b}from"./BRY5UTQQ.js";import W from"./G1F3Bacz.js";import{A as h}from"./DJzKbefB.js";import{T as X}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 A}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=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()}),$t=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{$t as default};
