PageSourceSearch

https://www.marcovasco.fr/_nuxt/CNRYnKFf.js

js marcovasco.fr collected 2026-10-02 07:27:48 UTC 2,864 bytes, 1 lines download raw bytes

1import{_ as E}from"./Dz93fpJa.js";import{d as R,Q as q,u as $,s as D,r as y,c as S,cK as V,w as j,I,cu as G,cL as K,a as u,o as s,F as m,h,i as f,J as L,e as i,b as M,t as g,R as U,K as Y,n as C,g as z,H,_ as J}from"./BL5Dr1Hs.js";import{_ as Q}from"./CN3TJfFX.js";import{u as W}from"./3dxm_Z3O.js";import"./CKd5TbWz.js";const X=["onClick"],Z={class:"title"},tt={class:"links-container"},et={class:"links accordion-content"},ot=R({__name:"FooterSections",props:q({openable:{type:Boolean},mobileSquish:{type:Boolean},centered:{type:Boolean}},{openable:!1,mobileSquish:!1,centered:!1}),async setup(st){let r,v;const c=$(),b=W();b.fetchFooter();const{sections:F,practicalInformations:p}=D(b),d=y(null),l=y(null),P=S(()=>[...d.value?[d.value]:[],...l.value?[l.value]:[],...F.value]),N=V(),w=S(()=>N.value?.statusCode);async function O(t){const[e]=await Promise.all([H({filters:{slug:t},fields:["practicalInformationsFooterLinks","preposition","slug","label"]})]);return{country:e.country}}if(p.value.length>0&&(l.value={id:3,title:"Infos Pratiques",links:[...p.value]}),c.params.country_id&&!w.value){const{country:t}=([r,v]=j(()=>O(c.params.country_id)),r=await r,v(),r),e=x(t,c);e.length&&(d.value={id:1,title:"Activités",links:e});const o=B(t,c);o?.length&&(l.value={id:2,title:t?.attributes.practicalInformationsFooterLinks?.title??"",links:[...o,...p.value]})}function x(t,e){return[{id:1,name:`Toutes nos activités ${t?.attributes.preposition} ${t?.attributes.label}`,url:`/${e?.params.continent_id}/${e?.params.country_id}/activites`}]}function B(t,e){return t?.attributes.practicalInformationsFooterLinks?t?.attributes.practicalInformationsFooterLinks.links?.map((o,_)=>({id:_,name:I(o.name,{PAYS:K(t.attributes.label),PREPOSITION:t?.attributes.preposition}),url:I(o.url,{PREPOSITION:G(t?.attributes.preposition),SLUG_CONTINENT:e?.params.continent_id,SLUG_PAYS:e?.params.country_id})})):[]}function k(t){return!!t?.links.every(e=>typeof e.icon=="string")}return(t,e)=>{const o=E,_=U,T=Q;return s(),u("div",{class:C(["footer-line",{squish:t.mobileSquish,centered:t.centered}])},[(s(!0),u(m,null,h(z(P),n=>(s(),f(T,{key:n?.id,class:C(["section",{openable:t.openable,icons:k(n)}]),disabled:k(n)||!t.openable,"mobile-only":""},{default:L(({toggle:A})=>[i("div",{class:"title-container",onClick:A},[i("div",Z,g(n?.title),1),M(o,{class:"accordion-arrow",name:"arrow-footer-down"})],8,X),e[0]||(e[0]=i("div",{class:"title-separator"},null,-1)),i("div",tt,[i("div",et,[(s(!0),u(m,null,h(n?.links,a=>(s(),u(m,{key:a.id},[typeof a.icon=="string"?(s(),f(o,{key:0,name:a.icon??""},null,8,["name"])):(s(),f(_,{key:1,to:`${a.url}/`,class:"link"},{default:L(()=>[Y(g(a.name),1)]),_:2},1032,["to"]))],64))),128))])])]),_:2},1032,["class","disabled"]))),128))],2)}}}),lt=Object.assign(J(ot,[["__scopeId","data-v-fad19890"]]),{__name:"FooterSections"});export{lt 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.