import{K as f,E as b,A as V,B as o,b as e,G as n,Q as s,c as l,S as r,V as c,h as v,i as $}from"#entry";import{a as y,V as g}from"./DlybGOWB.js";import{V as C}from"./DArAxlee.js";import{V as k}from"./C63UuyGC.js";import{V as _}from"./DSnRMG2T.js";import{V as B}from"./D1vV9CHW.js";import"./BML-0xFj.js";import"./CIr4U5gS.js";const T={class:"mx-auto"},S={class:"mx-auto"},A=["id","baseurl"],I={__name:"EventEmbed",props:{event:{type:Object,default:()=>({})}},emits:["close"],setup(d){const i=f("settings"),u=d,m=$(()=>`<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(m)),1),e(c,{class:"float-end",variant:"flat",color:"primary",onClick:a[0]||(a[0]=p=>t.$copyToClipboard(r(m)))},{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,A)])])]),_:1}),e(_,null,{default:o(()=>[e(B),e(c,{variant:"outlined",color:"warning",onClick:a[1]||(a[1]=p=>t.$emit("close"))},{default:o(()=>[n(s(t.$t("common.close")),1)]),_:1}),e(c,{variant:"outlined",color:"primary",onClick:a[2]||(a[2]=p=>t.$copyToClipboard(r(m)))},{default:o(()=>[n(s(t.$t("common.copy")),1)]),_:1})]),_:1})]),_:1}))}};export{I as default};
