PageSourceSearch

https://sciencespo-lille.eu/_nuxt/B-hSpUmE.js

js sciencespo-lille.eu collected 2026-10-02 09:56:33 UTC 4,900 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Bd_H4QTq.js","./vendor-photoswipe.lC4zhnxn.css"])))=>i.map(i=>d[i]);
2import{o as H,a0 as T,_ as w,a5 as v,at as B,c as r,au as W,ab as d,q as x,ad as z,a as n,h as l,aa as g,g as _,af as N,ae as O,t as b,F as I,k as q,aj as $,f as G}from"./BMd4Dy-t.js";import{u as R,h as j,_ as F,e as J,d as Z}from"./CxSwRqVi.js";import U from"./D24eZPTT.js";import{u as K}from"./CtaE8Gwm.js";const Q=["innerHTML"],X={key:0,"aria-hidden":"true",class:"h-cta-icon"},Y={key:0,class:"el__text"},ee={key:0},ie={__name:"BlockGallery",props:{galerie_titre:{type:String,required:!0},galerie_image_list:{type:Array,required:!0},galerie_has_popin:{type:Boolean,required:!1,default:!1},galerie_has_cta_global:{type:Boolean,required:!1,default:!1},galerie_cta_global:{type:Object,required:!1,default:()=>({})}},setup(a){const A=a,f=j,L=z("sliderDOM"),{formatLegendWithCopyright:k}=K(),m=x(null),y=()=>{m.value=window.innerHeight*.7},P=o=>Math.min(o,m.value),C=(o,t)=>t<=m.value?o:o/t*m.value;H(()=>{A.galerie_has_popin&&D(),y(),window.addEventListener("resize",y)}),T(()=>{window.removeEventListener("resize",y)});const c=x(null),E=x(!1),D=async()=>{const[{default:o}]=await Promise.all([w(()=>import("./Bd_H4QTq.js").then(t=>t.p),__vite__mapDeps([0,1]),import.meta.url),w(()=>import("./Bd_H4QTq.js").then(t=>t.a),__vite__mapDeps([0,1]),import.meta.url)]);c.value=new o({gallery:L.value,children:".el__image",arrowPrevSVG:'<span class="icon-arrow-reverse"/>',arrowNextSVG:'<span class="icon-arrow-forward"/>',closeSVG:'<span class="icon-close"/>',zoomSVG:'<span class="pswp__zoom_in icon-zoom-in"></span><span class="pswp__zoom_out icon-zoo-mout"></span>',pswpModule:()=>w(()=>import("./Bd_H4QTq.js").then(t=>t.b),__vite__mapDeps([0,1]),import.meta.url),padding:{top:48,bottom:48,left:24,right:24},bgOpacity:.9,secondaryZoomLevel:2,maxZoomLevel:3}),c.value.on("uiRegister",()=>{const t=c.value.pswp;t.on("slideInit",i=>{const u=i.slide,s=u.data?.element;if(!s)return;const e=document.createElement("div");e.className="pswp-custom-container";const p=document.createElement("div");p.className="pswp-custom-caption",p.innerHTML=s.dataset.caption||"";const h=document.createElement("div");if(h.className="pswp-custom-button",e.appendChild(p),e.appendChild(h),u.container.appendChild(e),s.dataset.cta){const S=JSON.parse(s.dataset.cta),V=v(f,S,{default:()=>S.cta_text}),M=R();V.appContext=M.vueApp._context,B(V,h),t.on("destroy",()=>B(null,h))}}),t.on("contentActivate",i=>{if(!i.content?.element)return;const s=i.content.displayedImageHeight,e=i.content.displayedImageWidth;document.documentElement.style.setProperty("--img-height",`${s}px`),document.documentElement.style.setProperty("--img-width",`${e}px`)})}),c.value.on("openingAnimationStart",()=>{E.value=!0}),c.value.on("closingAnimationEnd",()=>{E.value=!1}),c.value.init()};return(o,t)=>{const i=F,u=J,s=U;return n(),r("div",{ref_key:"sliderDOM",ref:L,class:"block-gallery wrapper is-grid"},[v(s,{"previous-arrow-class":"icon-fleche-gauche","next-arrow-class":"icon-fleche-droite"},W({items:d(()=>[(n(!0),r(I,null,q(a.galerie_image_list,(e,p)=>(n(),r("li",{key:p},[(n(),g($(a.galerie_has_popin?"a":"div"),{href:e.image.url,"aria-label":a.galerie_has_popin?e.infos.titre||e.infos.alt:void 0,class:"el__image","data-cropped":"true","data-pswp-height":P(e.image.height),"data-pswp-width":C(e.image.width,e.image.height),"data-caption":_(k)(e.infos.legend,e.infos.copyright,e.infos.titre),"data-cta":e.has_cta&&e.cta?JSON.stringify(e.cta):null},{default:d(()=>[v(i,{image:e.image,"force-alt":e.infos.alt,"force-legend":_(k)(e.infos.legend||e.image.caption,e.infos.copyright||e.image.meta?.copyright,e.infos.titre),"raw-caption":"","display-description":!(e?.image_titre||e?.image_texte)},{default:d(()=>[a.galerie_has_popin?(n(),r("span",X,[...t[0]||(t[0]=[G("span",{class:"icon-full-screen"},null,-1)])])):l("",!0)]),_:1},8,["image","force-alt","force-legend","display-description"])]),_:2},1032,["href","aria-label","data-pswp-height","data-pswp-width","data-caption","data-cta"])),e?.image_titre||e?.image_texte||e?.has_cta?(n(),r("div",Y,[e?.image_titre?(n(),r("h3",ee,b(e.image_titre),1)):l("",!0),e?.image_texte?(n(),g(u,{key:1,html:e.image_texte},null,8,["html"])):l("",!0),e.has_cta?(n(),g(_(f),N({key:2,ref_for:!0},e.cta),{default:d(()=>[O(b(e.cta.cta_text||("__"in o?o.__:_(Z))("Voir plus")),1)]),_:2},1040)):l("",!0)])):l("",!0)]))),128))]),_:2},[a.galerie_titre||a.galerie_has_cta_global&&a.galerie_cta_global.cta_text?{name:"header",fn:d(()=>[a.galerie_titre?(n(),r("h2",{key:0,class:"header__title",innerHTML:a.galerie_titre},null,8,Q)):l("",!0),a.galerie_has_cta_global&&a.galerie_cta_global.cta_text?(n(),g(_(f),N({key:1},a.galerie_cta_global,{class:"header__cta"}),{default:d(()=>[O(b(a.galerie_cta_global.cta_text),1)]),_:1},16)):l("",!0)]),key:"0"}:void 0]),1024)],512)}}};export{ie 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.