import{x as M,s as g,b as B,o as t,g as T,k as l,H as s,aG as V,i as n,a6 as d,f as c,M as m,h as _,j as u,N as $,am as h,I as w}from"./B7moA0Zy.js";import{_ as N}from"./CdxtG-CO.js";import"./CM9z76KS.js";const S={__name:"Modal",props:{data:{type:Object}},setup(a){const i=a,{modal:e}=g(B()),r=new Map([["sections_modalCatalog_BlockType","catalog"],["sections_modalVideo_BlockType","video"]]);function f(){e.value=r.get(i.data.modal.__typename)||!1}return(p,o)=>{const k=$,y=h,v=N,C=w;return t(),T("div",null,[l(k,{data:{themes:a.data.themes},onClick:f},{default:s(()=>[V(p.$slots,"default",{},void 0,!0)]),_:3},8,["data"]),l(C,null,{default:s(()=>[(t(),n(d,{to:"#modal"},[a.data.modal.__typename==="sections_modalCatalog_BlockType"&&a.data.modal.src?c((t(),n(y,{key:0,onCloseModal:o[0]||(o[0]=x=>e.value=!1),data:{url:a.data.modal.src}},null,8,["data"])),[[m,_(e)==="catalog"]]):u("",!0)])),(t(),n(d,{to:"#modal"},[a.data.modal.__typename==="sections_modalVideo_BlockType"&&a.data.modal.src?c((t(),n(v,{key:0,onCloseModal:o[1]||(o[1]=x=>e.value=!1),data:a.data.modal},null,8,["data"])),[[m,_(e)==="video"]]):u("",!0)]))]),_:1})])}}},I=M(S,[["__scopeId","data-v-2a7399fe"]]);export{I as default};