import{Y as g,b as w,s as b,H as C,f as l,an as S,m as q,j as R,k as s,l as d,t as i,w as h}from"./BCLrUOBx.js";const $={class:"flex start mt-15 mt-sm social-share gap-10"},x={class:"mr-10 color-lite hide-sm"},B=["onClick"],T={class:"hide block-sm"},j=["onClick"],y={class:"hide block-sm"},D=["onClick"],N={class:"hide block-sm"},V={__name:"SocialShare",props:{product:{type:Object}},setup(_){const k=_,{product:n}=g(k),f=w(),{site_setting:m}=b(f),v=C(),r=l(()=>{const t=window.location.origin;return v?t+v.path:t}),o=l(()=>{var t,e;return((t=n.value)==null?void 0:t.meta_title)||((e=m.value)==null?void 0:e.meta_title)||""}),c=l(()=>{var t,e;return((t=n.value)==null?void 0:t.meta_description)||((e=m.value)==null?void 0:e.meta_description)||""}),u=l(()=>{var t;return((t=n.value)==null?void 0:t.tags)??""});return(t,e)=>{const p=S("share-network");return R(),q("div",$,[s("span",x,i(t.$t("socialShare.share"))+": ",1),d(p,{network:"facebook",url:r.value,title:o.value,description:c.value,quote:o.value,hashtags:u.value},{default:h(({share:a})=>[s("div",{class:"cp flex gap-10",onClick:a},[e[0]||(e[0]=s("i",{class:"icon facebook-icon"},null,-1)),s("span",T,i(t.$t("socialShare.facebook")),1)],8,B)]),_:1},8,["url","title","description","quote","hashtags"]),d(p,{network:"twitter",url:r.value,title:o.value,description:c.value,quote:o.value,hashtags:u.value},{default:h(({share:a})=>[s("div",{class:"mlr-5 cp flex gap-10",onClick:a},[e[1]||(e[1]=s("i",{class:"icon twitter-icon"},null,-1)),s("span",y,i(t.$t("socialShare.twitter")),1)],8,j)]),_:1},8,["url","title","description","quote","hashtags"]),d(p,{network:"pinterest",url:r.value,title:o.value,description:c.value,quote:o.value,hashtags:u.value},{default:h(({share:a})=>[s("div",{class:"cp flex gap-10",onClick:a},[e[2]||(e[2]=s("i",{class:"icon pinterest-icon"},null,-1)),s("span",N,i(t.$t("socialShare.pinterest")),1)],8,D)]),_:1},8,["url","title","description","quote","hashtags"])])}}};export{V as default};
