import{_ as z}from"./B-OQMoXK.js";import{_ as u}from"./4FMzYxPj.js";import{a as d}from"./BRY5UTQQ.js";import{f as e,a as c}from"./DcOKUJR4.js";import L from"./CJYlvWEf.js";import{A as m}from"./CLzE61HQ.js";import{d as p,b as f,w as v,o as b,e as o,f as n,g as t}from"./JQJBiNWj.js";import{_ as k}from"./ChCYGtok.js";import{g as F}from"./BKl0aY3w.js";const K={class:"base-grid"},M={class:"col-span-12 lg:col-span-5 base-grid grid-cols-2 max-lg:grid-cols-1"},C={class:"col-span-12 lg:col-span-7"},E=p({__name:"CardLocalizacao",props:{monitoracao:{}},setup(g){return(a,l)=>{const i=L,r=z,y=u;return b(),f(y,{title:"Localização"},{default:v(()=>{var s;return[o("div",K,[o("div",M,[o("div",null,[l[0]||(l[0]=o("label",{for:"localizacao-rodovia"},"Rodovia:",-1)),n(i,{id:"localizacao-rodovia",type:"text",value:(s=a.monitoracao.rodovia)==null?void 0:s.descricao,"read-only":"",disabled:""},null,8,["value"])]),o("div",null,[l[1]||(l[1]=o("label",{for:"localizacao-uf"},"UF:",-1)),n(i,{id:"localizacao-uf",type:"text",value:a.monitoracao.uf,"read-only":"",disabled:""},null,8,["value"])]),o("div",null,[l[2]||(l[2]=o("label",{for:"localizacao-sentido"},"Sentido:",-1)),n(i,{id:"localizacao-sentido",type:"text",value:t(m).Enums.TipoSentido[a.monitoracao.sentido],"read-only":"",disabled:""},null,8,["value"])]),o("div",null,[l[3]||(l[3]=o("label",{for:"localizacao-direcao"},"Direção:",-1)),n(i,{id:"localizacao-direcao",type:"text",value:t(m).Enums.TipoDirecao[a.monitoracao.direcao],"read-only":"",disabled:""},null,8,["value"])]),o("div",null,[l[4]||(l[4]=o("label",{for:"localizacao-km-inicial"},"KM inicial:",-1)),n(i,{id:"localizacao-km-inicial",type:"text",value:("applyKmEstacaMask"in a?a.applyKmEstacaMask:t(d))(a.monitoracao.kmInicial),"read-only":"",disabled:""},null,8,["value"])]),o("div",null,[l[5]||(l[5]=o("label",{for:"localizacao-km-final"},"KM final:",-1)),n(i,{id:"localizacao-km-final",type:"text",value:("applyKmEstacaMask"in a?a.applyKmEstacaMask:t(d))(a.monitoracao.kmFinal),"read-only":"",disabled:""},null,8,["value"])]),o("div",null,[l[6]||(l[6]=o("label",{for:"localizacao-lat-km-inicial"},"Latitude (Km inicial):",-1)),n(i,{id:"localizacao-lat-km-inicial",type:"text",value:("formatLatLng"in a?a.formatLatLng:t(e))(a.monitoracao.latitude),"read-only":"",disabled:""},null,8,["value"])]),o("div",null,[l[7]||(l[7]=o("label",{for:"localizacao-lng-km-inicial"}," Longitude (Km inicial): ",-1)),n(i,{id:"localizacao-lng-km-inicial",type:"text",value:("formatLatLng"in a?a.formatLatLng:t(e))(a.monitoracao.longitude),"read-only":"",disabled:""},null,8,["value"])]),o("div",null,[l[8]||(l[8]=o("label",{for:"localizacao-lat-km-final"},"Latitude (Km final):",-1)),n(i,{id:"localizacao-lat-km-final",type:"text",value:("formatLatLng"in a?a.formatLatLng:t(e))(a.monitoracao.latitudeFinal),"read-only":"",disabled:""},null,8,["value"])]),o("div",null,[l[9]||(l[9]=o("label",{for:"localizacao-lng-km-final"},"Longitude (Km final):",-1)),n(i,{id:"localizacao-lng-km-final",type:"text",value:("formatLatLng"in a?a.formatLatLng:t(e))(a.monitoracao.longitudeFinal),"read-only":"",disabled:""},null,8,["value"])]),o("div",null,[l[10]||(l[10]=o("label",{for:"localizacao-extensao"},"Extensão (m):",-1)),n(i,{id:"localizacao-extensao",type:"text",value:("formatFloatNumber"in a?a.formatFloatNumber:t(c))(a.monitoracao.extensao),"read-only":"",disabled:""},null,8,["value"])])]),o("div",C,[n(r,{"lat-inicial":a.monitoracao.latitude,"lng-inicial":a.monitoracao.longitude,"lat-final":a.monitoracao.latitudeFinal,"lng-final":a.monitoracao.longitudeFinal},null,8,["lat-inicial","lng-inicial","lat-final","lng-final"])])])]}),_:1})}}}),w=Object.assign(E,{__name:"AtivosMonitoracoesPavimentoCardLocalizacao"}),N={class:"base-grid grid-cols-3 max-lg:grid-cols-2"},_=p({__name:"CardCaracteristicas",props:{monitoracao:{}},setup(g){return(a,l)=>{const i=k,r=u;return b(),f(r,{title:"Características"},{default:v(()=>[o("div",N,[n(i,{id:"caracteristicas-num-faixa-sentido",label:"Nº faixa sentido:",value:a.monitoracao.faixasSentido,"read-only":"",disabled:""},null,8,["value"]),n(i,{id:"caracteristicas-faixa",label:"Faixa:",value:t(F)[a.monitoracao.faixa],"read-only":"",disabled:""},null,8,["value"]),n(i,{id:"caracteristicas-extensao",label:"Extensão (m):",value:("formatFloatNumber"in a?a.formatFloatNumber:t(c))(a.monitoracao.extensao),"read-only":"",disabled:""},null,8,["value"])])]),_:1})}}}),D=Object.assign(_,{__name:"AtivosMonitoracoesPavimentoCardCaracteristicas"});export{w as _,D as a};
