import{_ as d,m as f}from"./D8XE_5qi.js";import{d as g,c as i,b as _,a as b,g as e,o,w as x,f as c,e as s,_ as F}from"./dVzHJMF1.js";const I={key:1,class:"w-full h-full flex flex-col gap-2 items-center justify-center text-gray-400 bg-gray-50 bg-opacity-80 rounded-lg cursor-default select-none"},y={class:"text-5xl"},h=g({__name:"WithRectangle",props:{latInicial:{default:0},lngInicial:{default:0},latFinal:{default:0},lngFinal:{default:0}},setup(n){const t=i(()=>Number.isFinite(n.latInicial)&&Number.isFinite(n.lngInicial)&&Number.isFinite(n.latFinal)&&Number.isFinite(n.lngFinal)),u=i(()=>t.value?[[n.latInicial,n.lngInicial],[n.latFinal,n.lngFinal]]:[]);return(a,l)=>{const r=d,m=F;return e(t)?(o(),_(r,{key:0,center:[a.latInicial,a.lngInicial],zoom:14},{default:x(()=>[c(e(f),{bounds:e(u)},null,8,["bounds"])]),_:1},8,["center"])):(o(),b("div",I,[s("span",y,[c(m,{name:"material-symbols:location-off-rounded"})]),l[0]||(l[0]=s("p",{class:"text-xl"},"Localização não encontrada.",-1))]))}}}),k=Object.assign(h,{__name:"UiMapWithRectangle"});export{k as _};
