1import{f as $,am as R,as as V,Y as u,k as p,F as w,a3 as L,q as i,aE as N,e as U,d as T,ae as s,H as I,a2 as h}from"./CS9danzX.js";import{a as q}from"./CwH7FRsG.js";import{u as B}from"./Di2Gj-gz.js";function E(m){return new URL(globalThis.location.href)}const F={class:"va-contact-links"},S={__name:"VaShareLinksV2",props:{text:{type:String,default:""}},setup(m){const d=m,{t}=R(),o=h(!1),f=t("components.share_links.copy_modal.title"),l=h(""),{public:{siteUrl:k}}=V(),{pathname:x}=E(),{reachGoal:v}=B(),r=`${k}${x}`,_=[{id:"telegram",iconName:"telegram",iconCollection:"va-icons",aria:t("components.share_links.aria.telegram"),href:`https://telegram.me/share/url?url=${r}&text=${d.text}`,goal:"tg"},{id:"vk",iconName:"vk",iconCollection:"va-icons",aria:t("components.share_links.aria.vk"),href:`https://vk.com/share.php?url=${r}`,goal:"vk"},{id:"link",iconName:"link",iconCollection:"ph",aria:t("components.share_links.aria.link"),href:""}];async function g(){try{await navigator.clipboard.writeText(r),o.value=!0,l.value=t("components.share_links.copy_modal.success")}catch(n){o.value=!0,console.error(n),l.value=t("components.share_links.copy_modal.error")}}function b(n){const a=_.find(c=>c.id===n)?.goal;a&&v(a),n==="link"&&g()}return(n,a)=>{const c=U,y=T,C=q;return u(),p("div",F,[(u(),p(w,null,L(_,e=>i(y,{key:e.id,"aria-label":e.aria,href:e.href,target:"_blank",style:{height:"24px",cursor:"pointer"},external:"",onClick:A=>b(e.id)},{default:N(()=>[i(c,{name:`${e.iconCollection}:${e.iconName}`},null,8,["name"])]),_:2},1032,["aria-label","href","onClick"])),64)),i(C,{modelValue:s(o),"onUpdate:modelValue":a[0]||(a[0]=e=>I(o)?o.value=e:null),title:s(f),text:s(l),"show-close-button":!1,"button-text":s(t)("components.share_links.copy_modal.button")},null,8,["modelValue","title","text","button-text"])])}}},O=$(S,[["__scopeId","data-v-b39b3f71"]]);export{O as _};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.