import{cG as f,bB as b,X as V,cS as o,a3 as e,a2 as n,c0 as s,W as l,c7 as r,V as m,r as v,O as $}from"#entry";import{b as y,V as g}from"./RTCSF0Ks.js";import{V as C}from"./R1_j74h_.js";import{V as k}from"./C8MHOe0D.js";import{V as _}from"./BgQ5eU58.js";import{V as B}from"./VoZA954X.js";import"./BKDgfSxC.js";import"./Cp3UUybv.js";const T={class:"mx-auto"},S={class:"mx-auto"},N=["id","baseurl"],G={__name:"EventEmbed",props:{event:{type:Object,default:()=>({})}},emits:["close"],setup(d){const i=f("settings"),u=d,c=$(()=>`<script src='${i.value.baseurl}/gancio-events.es.js'><\/script>
<gancio-event baseurl='${i.value.baseurl}' id=${u.event.id}></gancio-event>

`);return(t,a)=>(b(),V(g,null,{default:o(()=>[e(y,{class:"bg-primary"},{default:o(()=>[n(s(t.$t("common.embed_title")),1)]),_:1}),e(C,null,{default:o(()=>[n(s(t.$t("common.embed_help"))+" ",1),e(k,{class:"pa-5 my-4 bg-blue-grey-darken-4 text-body-1 text-lime-lighten-3"},{default:o(()=>[l("pre",null,s(r(c)),1),e(m,{class:"float-end",variant:"flat",color:"primary",onClick:a[0]||(a[0]=p=>t.$copyToClipboard(r(c)))},{default:o(()=>[n(s(t.$t("common.copy"))+" ",1),e(v,{class:"ml-1",icon:"mdi-content-copy"})]),_:1})]),_:1}),l("p",T,[l("span",S,[l("gancio-event",{id:d.event.id,baseurl:r(i).baseurl},null,8,N)])])]),_:1}),e(_,null,{default:o(()=>[e(B),e(m,{variant:"outlined",color:"warning",onClick:a[1]||(a[1]=p=>t.$emit("close"))},{default:o(()=>[n(s(t.$t("common.close")),1)]),_:1}),e(m,{variant:"outlined",color:"primary",onClick:a[2]||(a[2]=p=>t.$copyToClipboard(r(c)))},{default:o(()=>[n(s(t.$t("common.copy")),1)]),_:1})]),_:1})]),_:1}))}};export{G as default};
