import{a as e,o as l,j as a,w as s,f as n,h as t,e as c,F as o,k as u,I as i,l as r,p as f,A as _,N as p,B as m}from"./index-90c12cc1.js";import{P as x}from"./Popup.4e72ea57.js";import{a9 as d,aa as h}from"./images.cf3befb9.js";import{_ as v}from"./_plugin-vue_export-helper.1b428a4d.js";const k=v({__name:"InviteFriends",emits:["share"],setup(v,{expose:k,emit:j}){const b=e(null),y=e("分享");function C(){b.value.close()}function I(e){j("share",e),C()}k({open:function(e){e&&(y.value=e),b.value.show()}});const w=[{label:"微信好友",value:"wechat",icon:d},{label:"生成海报",value:"photo",icon:h}];return(e,d)=>{const h=f,v=_,k=p,j=m;return l(),a(x,{ref_key:"popupRef",ref:b,title:y.value},{rightOption:s((()=>[n("span")])),default:s((()=>[t(j,{class:"share-box flex flex-ai__center flex-jc__sa"},{default:s((()=>[(l(),c(o,null,u(w,(e=>(l(),c(o,{key:e.value},["wechat"===e.value?(l(),a(k,{key:0,"open-type":"share",onClick:l=>I(e),class:"item flex flex-column flex-jc__center flex-ai__center"},{default:s((()=>[t(h,{src:e.icon},null,8,["src"]),t(v,null,{default:s((()=>[i(r(e.label),1)])),_:2},1024)])),_:2},1032,["onClick"])):(l(),a(j,{key:1,onClick:l=>I(e),class:"item flex flex-column flex-jc__center flex-ai__center"},{default:s((()=>[t(h,{src:e.icon},null,8,["src"]),t(v,null,{default:s((()=>[i(r(e.label),1)])),_:2},1024)])),_:2},1032,["onClick"]))],64)))),64))])),_:1}),t(j,{class:"cancel",onClick:C},{default:s((()=>[i(" 取消 ")])),_:1})])),_:1},8,["title"])}}},[["__scopeId","data-v-9c41d5c5"]]);export{k as I};
