1import{i as j,ae as z,aw as K,N as w,A as c,W as q,c as u,o as s,f as k,g as G,a,I as l,d,b as o,B as h,K as H,m as J,t as b,L as g,z as Q,ah as R,av as X,U as Y,ax as P,ay as Z}from"./M11_3F0Z.js";import ee from"./DQdKQfXu.js";import{a as S}from"./D9Nf6Ihw.js";import{u as te}from"./BPNpy4SG.js";const se=["data-lenis-prevent","aria-labelledby","aria-describedby"],ae={class:"visually-hidden"},oe={key:0,id:"popup-title",class:"Popup__title"},pe={__name:"Popup",props:{title:{type:String,default:null},wysiwyg:{type:String,default:null},ariaTitle:{type:String,default:null},ariaDescription:{type:String,default:null},link:{type:Object,default:null},isOpen:{type:Boolean,default:!1}},emits:["closePopup"],setup(t,{emit:T}){const C=j(),{start:O,stop:B}=z(),x=K(),i=t,y=T,D=w(()=>i.ariaTitle??(i.title&&"popup-title")),E=w(()=>i.ariaDescription??(i.wysiwyg&&"popup-description")),r=c(),f=c(),n=c(),{init:F,destroy:N,activate:$,deactivate:L}=te(n);q(()=>i.isOpen,e=>{e?Y(()=>{W()}):A()});const p=()=>{y("closePopup")},m=e=>{e.key==="Escape"&&y("closePopup")},_=e=>{r.value.raf(e*1e3)},M=()=>{r.value=new Z({wrapper: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(),M(),document.addEventListener("keydown",m),F(),$()},A=()=>{L(),N(),document.removeEventListener("keydown",m),P.ticker.remove(_),r.value.destroy(),O()};return(e,v)=>{const I=J,V=ee,U=Q;return s(),u(X,{to:"#app-overlays",disabled:!t.isOpen},[k(R,{name:"fade"},{default:G(()=>[t.isOpen?(s(),a("div",{key:0,class:"Popup","data-lenis-prevent":!o(C).$device.isDesktop||null,role:"dialog","aria-modal":!0,"aria-labelledby":o(D),"aria-describedby":o(E)},[v[0]||(v[0]=d("div",{class:"Popup__bg","aria-hidden":!0},null,-1)),o(x).default?(s(),a("div",{key:0,ref_key:"wrapper",ref:f,class:"Popup__wrapper"},[h((s(),a("div",{ref_key:"content",ref:n,class:"Popup__slot"},[H(e.$slots,"default")])),[[o(S),p]])],512)):(s(),a("div",{key:1,ref_key:"wrapper",ref:f,class:"Popup__wrapper"},[h((s(),a("div",{ref_key:"content",ref:n,class:"Popup__content"},[d("button",{class:"Popup__close fade-hover",onClick:p},[k(I,{"aria-hidden":!0}),d("span",ae,b(e.$translate("popup_close_label")),1)]),t.title?(s(),a("h4",oe,b(t.title),1)):l("",!0),t.wysiwyg?(s(),u(V,g({key:1,id:"popup-description",class:"Popup__wysiwyg"},{wysiwyg:t.wysiwyg}),null,16)):l("",!0),t.link?(s(),u(U,g({key:2,class:"Popup__link"},t.link),null,16)):l("",!0)])),[[o(S),p]])],512))],8,se)):l("",!0)]),_:3})],8,["disabled"])}}};export{pe 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.