import{aa as i,a3 as c,o as l,e as p,q as d,f as a,p as t,n as u}from"./vendor-CI5NvTnj.js";const h=["data-href"],f=a("i",{class:"mi-facebook icon-24px"},null,-1),b=[f],g={__name:"index",props:{url:{type:String,required:!0},buttonClass:{type:String,default:""}},setup(e){const r=e;i("https://connect.facebook.net/cs_CZ/sdk.js#xfbml=1&version=v10.0&appId=360031200867268&autoLogAppEvents=1",c,{crossorigin:"anonymous",async:!0,defer:!0});const o=()=>{window.open(`https://www.facebook.com/sharer/sharer.php?u=${r.url}&src=sdkpreparse`,"share","width=650,height=650")};return(n,s)=>(l(),p("div",{class:u(e.buttonClass),"data-href":e.url,"data-layout":"button","data-size":"large",onClick:t(o,["prevent"])},[d(n.$slots,"default",{},()=>[a("a",{target:"_blank",class:"fb-xfbml-parse-ignore js-social-share btn btn-primary btn-gradient p-1 p-sm-2 rounded-circle border-0",onClick:s[0]||(s[0]=t(()=>{},["prevent"]))},b)])],10,h))}};export{g as _};