1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BljuYNWb.js","./CZO_kbxe.js","./entry.DzLCVlfi.css"])))=>i.map(i=>d[i]); 2import{a9 as B,br as D,Q as p,$ as m,an as E,_ as V,U as g,W as y,aD as i,aV as e,aK as a,V as j,bk as M,X as l,bn as Q,bj as T,bI as A}from"./CZO_kbxe.js";import{_ as R}from"./wxz5ECD-.js";import"./DL1TxsSW.js";import"./BGGUAEei.js";import"./DHC8vXKX.js";const F={class:"flex items-center justify-between w-full gap-3"},I={class:"flex items-center gap-3"},L={class:"flex items-center justify-center size-10 rounded-full bg-primary-500/15 border border-primary-400/25"},N={class:"space-y-5"},z={class:"flex items-center gap-2"},P={class:"flex-1 min-w-0 px-3 py-2 rounded-lg bg-elevated/50 border border-default"},H={class:"text-sm text-toned font-mono truncate block"},K={class:"flex justify-center"},W={class:"flex items-center gap-3 w-full"},X=B({__name:"ShareModal",props:{username:{}},emits:["close"],setup(v,{emit:x}){const t=v,b=x,f=D(),c=p(()=>`https://mychar.gg/${t.username}`),w=p(()=>`${c.value}?ref=qr`),C=p(()=>`mychar.gg/${t.username}`),n=m(!1),_=m(!1),d=m(null);let s=null;E(async()=>{_.value=!!navigator.share;const{default:h}=await V(async()=>{const{default:o}=await import("./BljuYNWb.js").then(u=>u.q);return{default:o}},__vite__mapDeps([0,1,2]),import.meta.url);s=new h({width:280,height:280,data:w.value,image:"/logo_short_transparent.png",dotsOptions:{type:"rounded",gradient:{type:"linear",rotation:2.35,colorStops:[{offset:0,color:"#1A1265"},{offset:1,color:"#EBEBDF"}]}},cornersSquareOptions:{type:"extra-rounded",color:"#1A1265"},cornersDotOptions:{type:"dot",color:"#1A1265"},backgroundOptions:{color:"#EBEBDF"},imageOptions:{crossOrigin:"anonymous",margin:8},qrOptions:{errorCorrectionLevel:"H"}}),d.value&&s.append(d.value)});async function k(){try{await navigator.clipboard.writeText(c.value),n.value=!0,f.add({title:"Link copied to clipboard",color:"success"}),setTimeout(()=>{n.value=!1},2e3)}catch{f.add({title:"Failed to copy link",color:"error"})}}async function S(){s&&s.download({name:`mychar-${t.username}`,extension:"png"})}async function $(){try{await navigator.share({title:`@${t.username} on mychar.gg`,text:`Check out @${t.username}'s character page on mychar.gg`,url:c.value})}catch{}}return(h,o)=>{const u=T,r=M,O=A,U=R;return y(),g(U,null,{header:i(({close:q})=>[e("div",F,[e("div",I,[e("div",L,[a(u,{name:"i-lucide-share-2",class:"size-5 text-primary-400"})]),o[0]||(o[0]=e("h3",{class:"text-base font-semibold text-highlighted"}," Share Character ",-1))]),a(O,{text:"Close"},{default:i(()=>[a(r,{color:"neutral",variant:"ghost",icon:"i-lucide-x",onClick:G=>{q(),b("close")}},null,8,["onClick"])]),_:2},1024)])]),body:i(()=>[e("div",N,[e("div",z,[e("div",P,[e("span",H,Q(l(C)),1)]),a(r,{icon:l(n)?"i-lucide-check":"i-lucide-copy",color:l(n)?"success":"neutral",variant:"soft",onClick:k},null,8,["icon","color"])]),e("div",K,[e("div",{ref_key:"qrContainer",ref:d,class:"rounded-xl overflow-hidden"},null,512)])])]),footer:i(()=>[e("div",W,[a(r,{label:"Download QR",icon:"i-lucide-download",color:"neutral",variant:"soft",onClick:S}),o[1]||(o[1]=e("div",{class:"flex-1"},null,-1)),l(_)?(y(),g(r,{key:0,label:"Share",icon:"i-lucide-share",color:"primary",onClick:$})):j("",!0)])]),_:1})}}}),te=Object.assign(X,{__name:"ShareModal"});export{te as default}; 3//# sourceMappingURL=BkAO2GJc.js.map
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.