import{B as e,b as t}from"./souav-I_ihqEhP.js";import{C as a,r as s,P as l,Q as n,S as o,u as i,V as u,N as c}from"./chunk-BRI0aX6c.js";import"./chunk-D1JGNTfG.js";import"./chunk-9PZSJnHb.js";import"./chunk-Bf-nSo-6.js";import"./chunk-DwkOxDMO.js";import"./chunk-CMQyd8eO.js";import"./chunk-a7obrEbD.js";import"./chunk-DQhVL27x.js";import"./chunk-cn7T4ICr.js";import"./chunk-Bh3yC0yB.js";import"./chunk-DjdYu-xF.js";import"./chunk-BHPWSuhB.js";/* empty css              */const r={key:0,class:"fixed z-[2002] flex h-full w-full max-w-[480px] items-center justify-center bg-black/50 px-[12px]"},m={class:"relative w-full"},v=["src"],h=t(a({__name:"ShareDialog",setup(t,{expose:a}){const h=s(!1),p=s(""),f=s(),d=()=>{p.value="animate_close",setTimeout(()=>{h.value=!1,p.value="",document.documentElement.style.overflow=""},300)};return a({show:async e=>{f.value=e,h.value=!0,document.documentElement.style.overflow="hidden",p.value="animate__animated animate__zoomIn",async function(){var e,t;if(navigator.share)try{await navigator.share({title:null==(e=f.value)?void 0:e.title,text:"",url:null==(t=f.value)?void 0:t.description})}catch(a){}}()},hide:d}),(t,a)=>h.value?(c(),l("div",r,[o("div",{class:u([p.value,"relative flex w-full flex-col items-center justify-center"])},[o("div",m,[o("img",{src:i(e),class:"pointer-events-none w-full",alt:""},null,8,v),o("div",{class:"absolute bottom-0 flex h-[13.5%] w-full items-center justify-center"},[o("button",{class:"h-full w-[42%] bg-transparent",onClick:d})])])],2)])):n("",!0)}}),[["__scopeId","data-v-9dad5734"]]);export{h as default};
