1import{c as l}from"./base-cross-HirV8R-F.js";import{b as r,o as a,c,f as d,m,g as i,a as o,e as p,n as u,d as _}from"./app-DQAwaQDQ.js";import{_ as f}from"./_plugin-vue_export-helper-DlAUqK2U.js";const h={name:"v-modal",components:{crossIcon:l},computed:{modalOpen(){return this.$store.state.modalOpen},modalInner(){return this.$store.state.modalContent},modalProps(){return this.$store.state.modalProps},modalClasses(){return this.$store.state.modalClasses}},mounted:function(){document.addEventListener("keydown",s=>{s.keyCode==27&&this.closeModal()})},methods:{closeModal(){this.modalOpen&&(this.$store.commit("closeModal"),document.getElementById(this.$store.state.modalTrigger)!=null&&(document.getElementById(this.$store.state.modalTrigger).focus(),window.history.replaceState(null,null," ")))}}},C={class:"o-modal__icon--close icon i-close"},g=o("span",{class:"h-accessibility"},"Close",-1);function y(s,t,k,I,v,e){const n=r("crossIcon");return e.modalOpen?(a(),c("div",{key:0,class:u(["o-modal",[{"o-modal--open":e.modalOpen},e.modalClasses]])},[(a(),d(i({...e.modalInner}),m(e.modalProps,{class:"a-fade__content"}),null,16)),o("button",{onClick:t[0]||(t[0]=B=>e.closeModal()),class:"o-modal__close"},[o("span",C,[g,p(n)])])],2)):_("",!0)}const M=f(h,[["render",y]]);export{M as default}; 2//# sourceMappingURL=modal-D3vENFQs.js.map
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.