import{_ as p}from"./BHFADP6o.js";import{_ as v}from"./4FMzYxPj.js";import{a as t}from"./BRY5UTQQ.js";import{f as s}from"./DcOKUJR4.js";import f from"./CJYlvWEf.js";import{A as u}from"./CLzE61HQ.js";import{d as _,b as y,w as b,o as z,e as o,f as i,g as e}from"./JQJBiNWj.js";const g={class:"base-grid"},k={class:"col-span-12 lg:col-span-5 grid grid-cols-2 gap-4 h-fit"},L={class:"col-span-12 lg:col-span-7"},M=_({__name:"CardLocalizacao",props:{monitoracao:{}},setup(K){return(a,l)=>{const n=f,m=p,c=v;return z(),y(c,{title:"Localização"},{default:b(()=>{var d,r;return[o("div",g,[o("div",k,[o("div",null,[l[0]||(l[0]=o("label",{for:"localizacao_rodovia"},"Rodovia:",-1)),i(n,{id:"localizacao_rodovia",type:"text",value:(d=a.monitoracao.rodovia)==null?void 0:d.descricao,"read-only":"",disabled:""},null,8,["value"])]),o("div",null,[l[1]||(l[1]=o("label",{for:"localizacao_uf"},"UF:",-1)),i(n,{id:"localizacao_uf",type:"text",value:(r=a.monitoracao.rodovia)==null?void 0:r.uf,disabled:"","read-only":""},null,8,["value"])]),o("div",null,[l[2]||(l[2]=o("label",{for:"localizacao_sentido"},"Sentido:",-1)),i(n,{id:"localizacao_sentido",type:"text",value:e(u).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(n,{id:"localizacao_direcao",type:"text",value:e(u).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(n,{id:"localizacao_km_inicial",type:"text",value:("applyKmEstacaMask"in a?a.applyKmEstacaMask:e(t))(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(n,{id:"localizacao_km_final",type:"text",value:("applyKmEstacaMask"in a?a.applyKmEstacaMask:e(t))(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(n,{id:"localizacao_latitude_inicial",type:"text",value:("formatLatLng"in a?a.formatLatLng:e(s))(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(n,{id:"localizacao_longitude_inicial",type:"text",value:("formatLatLng"in a?a.formatLatLng:e(s))(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(n,{id:"localizacao_km_estacao",type:"text",value:("applyKmEstacaMask"in a?a.applyKmEstacaMask:e(t))(a.monitoracao.kmReferencial),disabled:"","read-only":""},null,8,["value"])])]),o("div",L,[i(m,{lat:a.monitoracao.latitude,lng:a.monitoracao.longitude},null,8,["lat","lng"])])])]}),_:1})}}}),T=Object.assign(M,{__name:"AtivosMonitoracoesFaixaDominioCardLocalizacao"});export{T as _};
