PageSourceSearch

https://www.villesavivre.fr/_nuxt/DslmU1So.js

js villesavivre.fr collected 2026-10-02 21:14:48 UTC 7,013 bytes, 2 lines download raw bytes

1import{_ as G}from"./QNMs1a7U.js";import{F as X}from"./TB0pEovc.js";import{d as E,r as x,s as Y,i as p,o as d,j as i,l as s,b as c,t as m,v as M,x as j,F as w,n as R,_ as D,k,u as Q,w as U,g as h,q as J,e as K,y as F,p as $,z as O}from"./CWszUqHM.js";import{_ as W}from"./DIcHWeq8.js";import{_ as Z}from"./BfK-9nN0.js";import{_ as ee}from"./I9faiv_S.js";import{u as se}from"./Dl9oqErc.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};u.SENTRY_RELEASE={id:"df60f8e"}}catch{}})();try{(function(){var u=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new u.Error().stack;r&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[r]="9b730dbb-bfbd-441a-99e8-158fca73c840",u._sentryDebugIdIdentifier="sentry-dbid-9b730dbb-bfbd-441a-99e8-158fca73c840")})()}catch{}const te={class:"svg-map-control relative"},ne=["innerHTML"],oe=E({__name:"BigFranceMap",props:{subRegions:Array},setup(u){const r=u,g=x("none"),y=x("none"),v=x("-1000px"),b=x(""),o=x(""),T=a=>a.toLocaleString(),L=a=>{var e;const _=(a.composedPath&&a.composedPath()||[])[0].id,n=(e=r.subRegions)==null?void 0:e.find(t=>t.fr_code_dep===_);n&&(g.value="block",y.value=`${a.offsetX+20}px`,v.value=`${a.offsetY+20}px`,b.value=`${_} ${n.name}`,o.value=`${T(n.total_cities)} communes<br />
2                      ${T(n.population)} habitants`)},N=()=>{g.value="none",y.value="none",v.value="-1000px",b.value="",o.value=""},I=a=>{var e;const f=a.target;if(!f||!f.id)return;const _=f.id,n=(e=r.subRegions)==null?void 0:e.find(t=>t.fr_code_dep===_);if(n){const t=n.slug==="paris"?"/paris-75056/":`/regions/${n.parent.slug}/departements/${n.slug}/`;window.location.href=t}};return Y(()=>{const a=document.querySelector(".bigmap-france");if(!a)return;const f="ontouchstart"in window||navigator.maxTouchPoints>0,_=n=>{const e=n.target;e&&e.tagName&&e.tagName.toLowerCase()==="path"&&(n.preventDefault(),I(n))};f?a.addEventListener("touchend",_,{passive:!1}):(a.addEventListener("click",_),a.addEventListener("mouseover",n=>{const e=n.target;e&&e.tagName&&e.tagName.toLowerCase()==="path"&&L(n)}),a.addEventListener("mouseleave",n=>{const e=n.target;e&&e.tagName&&e.tagName.toLowerCase()==="path"&&N()}))}),(a,f)=>(d(),p("div",te,[i(c(X),{class:"bigmap-france"}),s("div",{class:"infocard-map",id:"infocard",style:M({display:c(g),left:c(y),top:c(v)})},[s("h3",null,m(c(b)),1),s("p",{innerHTML:c(o)},null,8,ne)],4)]))}}),ae={class:"ranking-tiles"},le={class:"tile-icon"},ie={class:"tile-text"},ce={class:"tile-label"},re={class:"tile-sub"},ue=E({__name:"HomeRankingTiles",setup(u){const r=[{icon:"trophy",label:"Meilleures villes",sub:"Note globale des habitants",to:"/classements/meilleures-villes"},{icon:"shield-halved",label:"Sécurité",sub:"Cadre sûr au quotidien",to:"/classements/meilleures-villes/securite"},{icon:"tree",label:"Cadre de vie",sub:"Environnement & nature",to:"/classements/meilleures-villes/environnement"},{icon:"school",label:"Éducation",sub:"Écoles & enseignement",to:"/classements/meilleures-villes/education"},{icon:"money-bill-wave",label:"Revenu médian",sub:"Niveau de vie",to:"/classements/revenu-median"},{icon:"snowflake",label:"Fraîcheur d'été",sub:"Les villes où il fait bon l'été",to:"/classements/villes-les-plus-fraiches-l-ete"}];return(g,y)=>{const v=j("FontAwesomeIcon"),b=D;return d(),p("div",ae,[(d(),p(w,null,R(r,o=>i(b,{key:o.to,to:o.to,class:"ranking-tile"},{default:k(()=>[s("span",le,[i(v,{icon:o.icon},null,8,["icon"])]),s("span",ie,[s("span",ce,m(o.label),1),s("span",re,m(o.sub),1)]),i(v,{icon:"arrow-right",class:"tile-arrow"})]),_:2},1032,["to"])),64))])}}}),de={class:"welcome-page"},_e={class:"welcome-bigmap"},pe={class:"block-page"},me={class:"quick-cities"},fe={class:"trust-band"},ve={class:"ad-container"},ge={class:"top-cities-section"},be={class:"top-cities-list"},he={class:"rank-badge"},ye={class:"city-info"},we={class:"city-name"},ke={class:"city-score"},xe={class:"score-text"},$e={class:"view-all-container"},Ce={class:"regions-card"},Re={class:"card-content"},Te=E({__name:"index",async setup(u){let r,g;const y=Q(),{public:{baseApiURL:v}}=y,{formatNumericValue:b}=se(),{data:o,error:T}=([r,g]=U(()=>K(`${v}/home`,"$77hSeXQoip")),r=await r,g(),r),L=h(()=>{var e;return(e=o.value)==null?void 0:e.subRegions});h(()=>{var e;return(e=o.value)==null?void 0:e.regions});const N=h(()=>{var e;return(e=o.value)==null?void 0:e.cities}),I=h(()=>{var e;return(e=o.value)==null?void 0:e.reviews}),a=h(()=>{var e;return(e=o.value)==null?void 0:e.featuredCity}),f=h(()=>{var e;return(e=o.value)==null?void 0:e.bestRatedCities}),_=h(()=>{var e;return(e=o.value)==null?void 0:e.totalCities}),n=e=>{var t;return e!=null&&e.cover_url&&e.cover_url!==""?e.cover_url:((t=e==null?void 0:e.region)==null?void 0:t.cover_url)||""};return(e,t)=>{const A=G,B=oe,H=ue,C=D,q=W,S=Z,V=ee,z=J;return d(),p("div",null,[i(A,{city:c(a)},null,8,["city"]),i(z,null,{default:k(()=>[s("div",de,[s("div",_e,[i(B,{subRegions:c(L)},null,8,["subRegions"]),s("div",pe,[t[0]||(t[0]=s("h3",{class:"block-title"},"Explorez par thème",-1)),i(H)])]),s("div",me,[t[1]||(t[1]=s("span",{class:"quick-cities-label"},"Grandes villes :",-1)),(d(!0),p(w,null,R(c(N),l=>(d(),F(C,{key:l.id,to:{name:"city",params:{city:l.slug}}},{default:k(()=>[$(m(l.full_name),1)]),_:2},1032,["to"]))),128))]),s("p",fe,[c(_)?(d(),p(w,{key:0},[$(m(c(b)(c(_)))+" communes",1)],64)):(d(),p(w,{key:1},[$("Toutes les communes de France")],64)),t[2]||(t[2]=$(" · 9 thématiques comparées · données INSEE · Météo France · SSMSI · ARCEP "))])]),s("div",ve,[i(q,{"data-ad-client":"ca-pub-6732261448177277","data-ad-slot":"1053242810","data-ad-format":"auto","data-full-width-responsive":!0})]),s("div",ge,[t[5]||(t[5]=s("h2",{class:"welcome-h2"},"Top des villes",-1)),s("div",be,[(d(!0),p(w,null,R(c(f),(l,P)=>(d(),F(C,{key:l.id,class:"top-city-item",to:{name:"city",params:{city:l.slug}},style:M({backgroundImage:`url(${n(l)})`})},{default:k(()=>[t[3]||(t[3]=s("div",{class:"overlay"},null,-1)),s("div",he,m(P+1),1),s("div",ye,[s("span",we,m(l.full_name),1),s("div",ke,[i(S,{value:l.value,total:5},null,8,["value"]),s("span",xe,m(l.value.toFixed(2))+"/5",1)])])]),_:2,__:[3]},1032,["to","style"]))),128))]),s("div",$e,[i(C,{to:"/classements/meilleures-villes",class:"btn-view-all"},{default:k(()=>t[4]||(t[4]=[$(" Voir tout le classement ")])),_:1,__:[4]})])]),t[6]||(t[6]=s("h2",{class:"welcome-h2"},"Derniers avis publiés",-1)),s("div",Ce,[(d(!0),p(w,null,R(c(I),l=>(d(),p("div",{key:l.id,class:"cards"},[i(C,{to:{name:"city",params:{city:l.city.slug},hash:"#reviews"}},{default:k(()=>[s("div",Re,[s("h3",null,m(l.city.full_name)+" ("+m(l.city.default_zipcode)+")",1),i(S,{value:l.score_global,total:5},null,8,["value"]),s("p",null,[i(V,{content:l.body,truncate:200},null,8,["content"])])])]),_:2},1032,["to"])]))),128))])]),_:1,__:[6]})])}}}),De=O(Te,[["__scopeId","data-v-e72d4814"]]);export{De 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.