import{_ as y}from"./BHFADP6o.js";import{_ as u}from"./4FMzYxPj.js";import{a as d}from"./BRY5UTQQ.js";import{f as c}from"./DcOKUJR4.js";import z from"./CJYlvWEf.js";import{A as m}from"./CLzE61HQ.js";import{d as p,b as v,w as _,o as f,e as o,f as i,g as t,H as k}from"./JQJBiNWj.js";import{_ as M}from"./ChCYGtok.js";const L={class:"base-grid"},I={class:"col-span-12 lg:col-span-5 grid grid-cols-2 gap-4"},K={class:"col-span-12 lg:col-span-7"},E=p({__name:"CardLocalizacao",props:{monitoracao:{}},setup(g){return(a,l)=>{const e=z,n=y,s=u;return f(),v(s,{title:"Localização"},{default:_(()=>{var r;return[o("div",L,[o("div",I,[o("div",null,[l[0]||(l[0]=o("label",{for:"localizacao_rodovia"},"Rodovia:",-1)),i(e,{id:"localizacao_rodovia",type:"text",value:(r=a.monitoracao.rodovia)==null?void 0:r.descricao,"read-only":"",disabled:""},null,8,["value"])]),o("div",null,[l[1]||(l[1]=o("label",{for:"localizacao_uf"},"UF:",-1)),i(e,{id:"localizacao_uf",type:"text",value:a.monitoracao.uf,disabled:"","read-only":""},null,8,["value"])]),o("div",null,[l[2]||(l[2]=o("label",{for:"localizacao_sentido"},"Sentido:",-1)),i(e,{id:"localizacao_sentido",type:"text",value:t(m).Enums.TipoSentido[a.monitoracao.sentido],disabled:"","read-only":""},null,8,["value"])]),o("div",null,[l[3]||(l[3]=o("label",{for:"localizacao_direcao"},"Direção:",-1)),i(e,{id:"localizacao_direcao",type:"text",value:t(m).Enums.TipoDirecao[a.monitoracao.direcao],disabled:"","read-only":""},null,8,["value"])]),o("div",null,[l[4]||(l[4]=o("label",{for:"localizacao_km_inicial"},"KM inicial:",-1)),i(e,{id:"localizacao_km_inicial",type:"text",value:("applyKmEstacaMask"in a?a.applyKmEstacaMask:t(d))(a.monitoracao.kmInicial),disabled:"","read-only":""},null,8,["value"])]),o("div",null,[l[5]||(l[5]=o("label",{for:"localizacao_km_final"},"KM final:",-1)),i(e,{id:"localizacao_km_final",type:"text",value:("applyKmEstacaMask"in a?a.applyKmEstacaMask:t(d))(a.monitoracao.kmFinal),disabled:"","read-only":""},null,8,["value"])]),o("div",null,[l[6]||(l[6]=o("label",{for:"localizacao_latitude_inicial"},"Latitude:",-1)),i(e,{id:"localizacao_latitude_inicial",type:"text",value:("formatLatLng"in a?a.formatLatLng:t(c))(a.monitoracao.latitude),disabled:"","read-only":""},null,8,["value"])]),o("div",null,[l[7]||(l[7]=o("label",{for:"localizacao_longitude_inicial"},"Longitude:",-1)),i(e,{id:"localizacao_longitude_inicial",type:"text",value:("formatLatLng"in a?a.formatLatLng:t(c))(a.monitoracao.longitude),disabled:"","read-only":""},null,8,["value"])]),o("div",null,[l[8]||(l[8]=o("label",{for:"localizacao_km_estacao"},"KM referencial:",-1)),i(e,{id:"localizacao_km_estacao",type:"text",value:("applyKmEstacaMask"in a?a.applyKmEstacaMask:t(d))(a.monitoracao.kmReferencial),disabled:"","read-only":""},null,8,["value"])])]),o("div",K,[i(n,{lat:a.monitoracao.latitude,lng:a.monitoracao.longitude},null,8,["lat","lng"])])])]}),_:1})}}}),F=Object.assign(E,{__name:"AtivosMonitoracoesCardLocalizacao"}),D={class:"base-grid grid-cols-3 max-lg:grid-cols-1"},S={class:"col-span-2 max-lg:col-span-1 base-grid grid-cols-2"},C=p({__name:"Intervencao",props:{monitoracao:{}},setup(g){const a=k();function l(n){return n?a(n).format("DD/MM/YYYY"):""}function e(n){return n?n==="S"?"Sim":n==="N"?"Não":n:""}return(n,s)=>{const r=M,b=u;return f(),v(b,{title:"Intervenção"},{default:_(()=>[o("div",D,[i(r,{id:"intervencao-programada",label:"Intervenção programada:",value:e(n.monitoracao.intervencaoProgramada),"read-only":"",disabled:""},null,8,["value"]),o("div",S,[i(r,{id:"datProgramadaIntervencao",label:"Data programada intervenção:",value:l(n.monitoracao.datProgramadaIntervencao),"read-only":"",disabled:""},null,8,["value"]),i(r,{id:"datMaximaIntervencao",label:"Data máxima da intervenção:",value:l(n.monitoracao.datMaximaIntervencao),"read-only":"",disabled:""},null,8,["value"])])])]),_:1})}}}),T=Object.assign(C,{__name:"AtivosMonitoracoesCardIntervencao"});export{F as _,T as a};
