1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./entry.C0N6dtQ1.css"])))=>i.map(i=>d[i]); 2import{d as k,L as b,y as v,l as B,c as a,e as u,j as C,h as r,t as i,F as m,r as x,m as s,a as g,k as L,p as N,o as n,g as w,f as j,n as z,N as V,J as A}from"./BSKDPYTP.js";import I from"./Da0zqb6Y.js";import{_ as S}from"./CrwtK9si.js";const E=V(()=>A(()=>import("./CFcyHF68.js"),__vite__mapDeps([0]),import.meta.url).then(e=>e.default||e)),F={class:"flex flex-col p-2"},P={class:"text-primary text-lg font-light mb-1.5"},$={class:"flex items-center justify-center font-medium text-xxs gap-2 mr-6"},q={class:"flex items-center"},D={key:0,class:"h-full w-full text-grey text-xs flex flex-col text-center justify-center px-4"},M={key:1,class:"h-full w-full text-grey text-xs flex flex-col text-center justify-center px-4"},O={key:2,class:"h-full mx-auto w-full text-grey text-sm flex flex-col items-center justify-center"},T=k({__name:"BarometerLineChart",props:{blank:{type:Boolean,default:!1},logo:{type:String,default:null},animation:{type:Number,default:100},data:{type:Array,default:[]},pending:{type:Boolean,default:!1},error:{type:Boolean,default:!1},title:{type:String,default:"Prix moyen sur 1 an"}},setup(e){const{$host:_}=b(),c=B(!1);return v(()=>c.value=!0),(J,l)=>{const d=I,y=S,h=E,p=N;
2return n(),a("div",F,[u("h2",P,i(e.title),1),(n(!0),a(m,null,x(e.data,(t,o)=>{var f;return n(),a(m,null,[t.legend?(n(),a("p",{key:0,class:j(["text-xs mb-1",{"text-black":o===0,"text-grey":o!==0}])},i(t.legend)+": "+i(t.mean?(f=t.mean)==null?void 0:f.toFixed(2):"---")+" â¬/m² ",3)):w("",!0)],64)}),256)),u("div",$,[(n(!0),a(m,null,x(e.data,t=>(n(),a("div",q,[u("span",{class:"w-2 h-2 mr-2 block rounded-full",style:z({backgroundColor:t.color})},null,4),s(" "+i(t.label),1)]))),256))]),e.error?(n(),a("div",D,[r(d,{name:"outlet-error",class:"h-1/2"}),l[0]||(l[0]=s(" Impossible d'obtenir le graphique ",-1))])):!e.pending&&e.data.filter(t=>{var o;return((o=t.data)==null?void 0:o.length)>0}).length==0?(n(),a("div",M,[r(d,{name:"padlock",class:"h-1/2 mb-4"}),l[1]||(l[1]=s(" Malheureusement, nous n'avons pas assez d'informations pour construire ce graphique. ",-1))])):e.pending||!g(c)?(n(),a("div",O,[r(y,{class:"h-full drop-shadow-lg mb-4 max-h-[150px]"}),l[2]||(l[2]=s(" Chargement... ",-1))])):(n(),C(h,{key:3,class:"h-full w-full",logo:e.logo,animation:e.animation,datas:e.data.filter(t=>{var o;return((o=t.data)==null?void 0:o.length)>0})},null,8,["logo","animation","datas"])),r(p,{class:"text-xxs text-grey text-center",href:"https://".concat(g(_)),external:e.blank,target:e.blank?"_blank":"_self"},{default:L(()=>[...l[3]||(l[3]=[s(" terrain-construction.com ",-1)])]),_:1},8,["href","external","target"])])}}}),H=Object.assign(T,{__name:"WidgetsBarometerLineChart"});export{H as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.