PageSourceSearch

https://www.ftu.org.hk/_nuxt/PM00KlGD.js

js ftu.org.hk collected 2026-09-25 04:50:04 UTC 2,351 bytes, 1 lines download raw bytes

1import{d as x,c as y,i as c,b as C,o as b,q as i,p as U,m as s,a0 as g,e as W,W as k,a_ as p,au as S,_ as R}from"./D1FcBL9p.js";import{_ as T}from"./EgekFmNJ.js";const M=""+new URL("share_whatsapp.C9Vg6jMd.png",import.meta.url).href,A=""+new URL("share_wechat.DRikIU3l.png",import.meta.url).href,$=x({__name:"ShareModal",props:{webUrl:{default:""}},setup(u,{expose:d}){const l=u,h=y(()=>l.webUrl?l.webUrl:typeof window<"u"?`${window.location.protocol}//${window.location.host}`:""),t=c(!1),o=c({url:""}),m=(a={})=>{o.value={...o.value,...a},o.value.url&&o.value.url.indexOf("/")===0&&(o.value.url=h.value+o.value.url),t.value=!0},n=()=>{t.value=!1},w=()=>{const e=`https://wa.me/send?text=${encodeURIComponent(`${o.value.url}`)}`;window.open(e,"_blank"),n()},f=async()=>{const a=o.value.url||"";try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(a),p("分享內容已複製到剪貼板");else{const e=document.createElement("textarea");e.value=a,e.style.position="fixed",e.style.left="-999999px",e.style.top="-999999px",document.body.appendChild(e),e.focus(),e.select();const r=document.execCommand("copy");if(document.body.removeChild(e),r)p("分享內容已複製到剪貼板");else throw new Error("Copy failed")}n()}catch(e){console.error("复制失败:",e),S("複製失敗,請重試")}};return d({openShareModal:m,closeShareModal:n}
1),(a,e)=>{const r=k,_=T;return b(),C(_,null,{default:i(()=>[U(r,{show:W(t),"onUpdate:show":e[0]||(e[0]=v=>g(t)?t.value=v:null),position:"center",style:{borderRadius:"20px",width:"80%",maxWidth:"344px"},closeable:"","close-icon":"cross","close-icon-position":"top-right","overlay-class":"share-overlay",onClose:n,onClickOverlay:n},{default:i(()=>[s("div",{class:"share-content"},[e[3]||(e[3]=s("div",{class:"share-title"},[s("span",null,"分享至")],-1)),s("div",{class:"share-platforms"},[s("div",{class:"share-item",onClick:w},[...e[1]||(e[1]=[s("div",{class:"share-icon-wrapper"},[s("img",{class:"share-icon",src:M,alt:"WhatsApp"})],-1),s("span",{class:"share-name"},"WhatsApp",-1)])]),s("div",{class:"share-item",onClick:f},[...e[2]||(e[2]=[s("div",{class:"share-icon-wrapper"},[s("img",{class:"share-icon",src:A,alt:"Wechat"})],-1),s("span",{class:"share-name"},"Wechat",-1)])])])])]),_:1},8,["show"])]),_:1})}}}),O=R($,[["__scopeId","data-v-90b5a9e2"]]);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.