import{_ as r,C as c,A as i,b as m}from"./app.js";import"./swiper.js";const d={name:"Share",components:{CustomHtmlBlock:c},props:["element"],computed:{isNativeApp(){return i}},methods:{nativeShare:function(){console.log("[SoylentShare] Send native share request for `"+this.element.data.share_url+"`"),m.sendPayload({type:"shareURL",message:this.element.data.share_message,url:this.element.data.share_url})}},mounted(){}},t=window.Vue.createElementVNode,s=window.Vue.openBlock,_=window.Vue.createElementBlock;window.Vue.createCommentVNode;const u=window.Vue.resolveComponent,h=window.Vue.createBlock,p={key:0,class:"element soylent share"},k={class:"idvl-socs-tools size-ff"},v=t("span",null,"Share",-1),w=[v];function f(S,o,n,V,B,e){const a=u("CustomHtmlBlock");return e.isNativeApp?(s(),_("div",p,[t("div",k,[t("a",{class:"idvl-socs-share ss-share",title:"Seite teilen",onClick:o[0]||(o[0]=(...l)=>e.nativeShare&&e.nativeShare(...l))},w)])])):(s(),h(a,{key:1,element:n.element},null,8,["element"]))}const N=r(d,[["render",f]]);export{N as default};