import{q as k,v,o as e,c as a,a as s,g as r,t as c,j as g,n as f,i as d,h as w,w as C}from"./index-Cdt4oMy6.js";import{A as M}from"./AppPopUp-OwQEDrbP.js";const x={class:"wrapper"},y={class:"logo_wrapper"},q=["src","alt"],b={key:0,class:"mask"},p={class:"mask_left"},A={class:"mask_logo_wrapper"},B=["src","alt"],H={class:"mask_right"},L={key:0,class:"mask_title"},S={key:1,class:"mask_title"},T=["href"],z=["innerHTML"],V={class:"mask_left"},j={class:"mask_logo_wrapper"},N=["src","alt"],P={class:"mask_right"},U={class:"mask_title"},D=["innerHTML"],E={__name:"Card",props:{item:{type:Object,required:!0,default:()=>{}}},emits:["changeState"],setup(t,{emit:m}){const o=v.useMq(),h=t,l=m;function _(){l("changeState",h.item.id)}function n(){l("changeState",null)}function u(i){return i.startsWith("https://")?i:`https://${i}`}return(i,G)=>(e(),a("div",{class:"card",onClick:_},[s("div",x,[s("div",y,[s("img",{src:t.item.src,alt:t.item.title,class:"logo"},null,8,q)])]),t.item.active&&!r(o).xs?(e(),a("div",b,[s("div",{class:f(["mask_wrapper",t.item.positionGorizont+" "+t.item.positionVertical])},[s("div",p,[s("div",A,[s("img",{src:t.item.src,alt:t.item.title,class:"logo"},null,8,B)])]),s("div",H,[t.item.url?(e(),a("div",S,[s("a",{href:u(t.item.url),target:"_blank"},c(t.item.title),9,T)])):(e(),a("div",L,c(t.item.title),1)),s("div",{class:"mask_description",innerHTML:t.item.description},null,8,z),s("button",{class:"close",onClick:g(n,["stop"])})])],2)])):d("",!0),t.item.active&&r(o).xs?(e(),w(M,{key:1,onClose:n},{default:C(()=>[s("div",V,[s("div",j,[s("img",{src:t.item.src,alt:t.item.title,class:"logo"},null,8,N)])]),s("div",P,[s("div",U,c(t.item.title),1),s("div",{class:"mask_description",innerHTML:t.item.description},null,8,D)])]),_:1})):d("",!0)]))}},W=k(E,[["__scopeId","data-v-2afaabd6"]]);export{W as A};