1import{a6 as m,d as _,a7 as c,r as b,m as g,b as x,u as r,i as a,o as s,c as l,g as y,e as i,p as D,k as d}from"./entry.02fd8f87.js";import{F as p}from"./FBShare.5f5c1c10.js";const C=t=>{const e=document.createElement("textarea");e.value=t,e.style.top="0",e.style.left="0",e.style.position="fixed",document.body.appendChild(e),e.focus(),e.select();try{const u=document.execCommand("copy");return document.body.removeChild(e),!0}catch{return!1}},k=t=>{const{success:e}=m();try{if(!navigator.clipboard){C(t),e("\u10DA\u10D8\u10DC\u10D9\u10D8 \u10D3\u10D0\u10D9\u10DD\u10DE\u10D8\u10E0\u10D3\u10D0!");return}navigator.clipboard.writeText(t).then(function(){return e("\u10DA\u10D8\u10DC\u10D9\u10D8 \u10D3\u10D0\u10D9\u10DD\u10DE\u10D8\u10E0\u10D3\u10D0!"),!0},function(u){return!1})}catch(u){console.log(u)}},f=t=>document.location.origin+t,E={key:0,class:"sharers mb-8 flex items-center justify-between bg-site-orange px-6 py-2.5 text-white"},T=y("p",{class:"font-bpgnino text-lsm"},"\u10D2\u10D0\u10D0\u10D6\u10D8\u10D0\u10E0\u10D4:",-1),B={class:"flex justify-center"},A={key:1,class:"mb-9 flex items-center justify-end"},S=_({__name:"All",props:{url:{...c.stringRequired},title:{...c.stringRequired},isMob:{type:Boolean,default:!1}},setup(t){const e=t,u=b(!0);g(()=>{navigator.share===void 0&&(u.value=!1)});const h=()=>{k(f(e.url));const{success:o}=m();o("\u10DA\u10D8\u10DC\u10D9\u10D8 \u10D3\u10D0\u10D9\u10DD\u10DE\u10D8\u10E0\u10D3\u10D0!")},v=()=>{try{navigator.share({title:e.title,text:e.title,url:f(e.url)})}catch(o){console.warn(o)}};return(o,N)=>{const n=x("v-icon");return r(a)||e.isMob?(s(),l("div",E,[T,y("div",B,[i(p,{class:"mr-6",url:e.url},null,8,["url"]),r(a)&&u.value?(s(),D(n,{key:0,path:"article/copy-link",class:"mr-6",onClick:h})):d("",!0),r(a)&&u.value?(s(),D(n,{key:1,path:"article/share",onClick:v})):d("",!0)])])):(s(),l("div",A,[i(p,{small:!1,url:e.url},null,8,["url"])]))}}});
1export{S as default};
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.