PageSourceSearch

https://www.fondationhgm.com/_nuxt/Cgde-uKe.js

js fondationhgm.com collected 2026-10-06 06:50:23 UTC 2,644 bytes, 1 lines download raw bytes

1import z from"./BA8Vdm3G.js";import H from"./DSQC0Jy1.js";import{i as Q,a0 as q,a2 as G,P as k,n as u,Q as J,c as d,o as s,f as w,g as K,a,z as r,d as y,b as o,p as g,a3 as R,t as b,T as h,U as X,a4 as Y,a5 as Z,H as ee,a6 as P,a7 as te}from"./po_5gNh8.js";import{v as S}from"./BSqnDRJq.js";import{u as se}from"./B117DLJU.js";const ae=["data-lenis-prevent","aria-labelledby","aria-describedby"],oe={class:"visually-hidden"},ie={key:0,id:"popup-title",class:"Popup__title"},ue={__name:"Popup",props:{title:{type:String},wysiwyg:{type:String},ariaTitle:{type:String},ariaDescription:{type:String},link:{type:Object},isOpen:{type:Boolean,default:!1}},emits:["closePopup"],setup(t,{emit:T}){const C={cta_context:"popup"},O=Q(),{start:x,stop:B}=q(),D=G(),i=t,m=T,E=k(()=>i.ariaTitle??(i.title&&"popup-title")),F=k(()=>i.ariaDescription??(i.wysiwyg&&"popup-description")),l=u(),p=u(),n=u(),{init:$,destroy:M,activate:N,deactivate:L}=se(n);J(()=>i.isOpen,e=>{e?ee(()=>{W()}):A()});const c=()=>{m("closePopup")},f=e=>{e.key==="Escape"&&m("closePopup")},_=e=>{l.value.raf(e*1e3)},V=()=>{l.value=new te({wrapper:p.value,content:n.value,duration:1.2,easing:e=>Math.min(1,1.001-Math.pow(2,-10*e)),orientation:"vertical",gestureOrientation:"vertical",smoothWheel:!0,wheelMultiplier:1,smoothTouch:!1,touchMultiplier:2,infinite:!1}),P.ticker.add(_)},W=()=>{B(),V(),document.addEventListener("keydown",f),$(),N()},A=()=>{L(),M(),document.removeEventListener("keydown",f),P.ticker.remove(_),l.value.destroy(),x()};return(e,v)=>{const I=z,U=H,j=X;return s(),d(Z,{to:"body",disabled:!t.isOpen},[w(Y,{name:"fade"},{default:K(()=>[t.isOpen?(s(),a("div",{key:0,class:"Popup","data-lenis-prevent":!o(O).$device.isDesktop||null,role:"dialog","aria-modal":!0,"aria-labelledby":o(E),"aria-describedby":o(F)},[v[0]||(v[0]=y("div",{class:"Popup__bg","aria-hidden":!0},null,-1)),o(D).default?(s(),a("div",{key:0,class:"Popup__wrapper",ref_key:"wrapper",ref:p},[g((s(),a("div",{class:"Popup__slot",ref_key:"content",ref:n},[R(e.$slots,"default")])),[[o(S),c]])],512)):(s(),a("div",{key:1,class:"Popup__wrapper",ref_key:"wrapper",ref:p},[g((s(),a("div",{class:"Popup__content",ref_key:"content",ref:n},[y("button",{class:"Popup__close fade-hover",onClick:c},[w(I,{"aria-hidden":!0}),y("span",oe,b(e.$translate("popup_close_label")),1)]),t.title?(s(),a("h4",ie,b(t.title),1)):r("",!0),t.wysiwyg?(s(),d(U,h({key:1,id:"popup-description",class:"Popup__wysiwyg"},{wysiwyg:t.wysiwyg}),null,16)):r("",!0),t.link?(s(),d(j,h({key:2,class:"Popup__link"},t.link,{tracking:C}),null,16)):r("",!0)])),[[o(S),c]])],512))],8,ae)):r("",!0)]),_:3})],8,["disabled"])}}};export{ue 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.