1import{d as h,G as _,R as y,c as x,o as w,e as n,al as f,a as I,D as p,f as i,_ as g,$ as M,i as b,V as $,b as B,w as D,a2 as E,u as v,t as S,am as O}from"./nIGrv85a.js";const K=["onKeydown"],L={class:"modal__content"},N=h({__name:"Modal",props:{defaultOpen:{type:Boolean,default:!1},enableClickAway:{type:Boolean,default:!0},hideDefaultCloseButton:{type:Boolean,default:!1}},emits:["open","close","before-close"],setup(t,{expose:m,emit:c}){const l=t,d=c,r=()=>{s.value=!0},a=()=>{s.value=!1};m({open:r,close:a});const e=_(null),s=_(l.defaultOpen),u=o=>{l.enableClickAway&&o.target===e.value&&(s.value=!1)};return y(s,o=>{e.value&&(o===!0?(e.value.showModal(),document.documentElement.classList.add("overflow-hidden"),d("open")):(d("before-close"),e.value.dataset.closing="true",document.documentElement.classList.remove("overflow-hidden"),e.value.addEventListener("animationend",()=>{e.value&&(e.value.dataset.closing="false",e.value.close(),d("close"))},{once:!0})))}),(o,C)=>{const k=g;return w(),x("dialog",{ref_key:"modal",ref:e,class:"modal",onClick:u,onKeydown:M(p(a,["prevent"]),["esc"])},[n("div",L,[t.hideDefaultCloseButton?I("",!0):f(o.$slots,"close-button",{key:0},()=>[n("button",{type:"button",class:"modal__close-button","aria-label":"Close modal",onClick:p(a,["stop"])},[i(k,{name:"mdi:close-thick",size:"2rem"})])],!0),f(o.$slots,"modal-content",{},void 0,!0)])],40,K)}}}),P=Object.assign(b(N,[["__scopeId","data-v-93603189"]]),{__name:"Modal"}),V={class:"promo-modal__content"},z={class:"promo-modal__image-col"},A={class:"promo-modal__title"},F="promo-modal-",R=h({__name:"PromoModal",props:{content:{},id:{}},setup(t){const m=t,c=_(null),l=`${F}${m.id}`,d=()=>{window.localStorage.setItem(l,"true")},r=a=>{a.target instanceof HTMLElement&&a.target.nodeName==="A"&&window.localStorage.setItem(l,"true")};return $(()=>{window.localStorage.getItem(l)||c.value?.open()}),(a,e)=>{const s=E,u=g,o=O;return w(),B(v(P),{ref_key:"modal",ref:c,class:"promo-modal","hide-default-close-button":!0,onClose:d},{"modal-content":D(()=>[n("div",V,[n("div",z,[i(s,{class:"promo-modal__image","image-data":t.content.image,sizes:"(min-width: 1500px) 600px, (min-width: 768px) 40vw, (min-width: 556px) 500px, 90vw"},null,8,["image-data"])]),n("div",{class:"promo-modal__text-col",onClick:r},[n("button",{type:"button",class:"promo-modal__close-button","aria-label":"Close modal",onClick:e[0]||(e[0]=p(C=>v(c)?.close(),["stop"]))},[i(u,{name:"mdi:close-thick",size:"2rem"})]),n("h2",A,S(t.content.title),1),i(o,{class:"promo-modal__description",document:t.content.description},null,8,["document"])])])]),_:1},512)}}}),T=Object.assign(b(R,[["__scopeId","data-v-709bdeff"]]),{__name:"PromoModal"});export{T 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.