const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/lottie_light-Cf7eNyTO.js","js/index-xnhGKCfe.js","css/index-BarkczBl.css"])))=>i.map(i=>d[i]);
import{b7 as p,Q as _,r as v,c0 as h,O as y,aS as b,aT as C,bf as k,a$ as t,b0 as s,bi as A,c1 as B,aW as V,aX as g}from"./index-xnhGKCfe.js";import{d as R}from"./active-D6grRBZQ.js";const $={class:"content"},w={class:"title"},D={class:"number"},I={class:"tip"},N=p({__name:"ReceivedGift",props:{amount:{type:Number,required:!0},visible:{type:Boolean,default:!1}},emits:["handleClose"],setup(i,{emit:c}){const l=i,d=c,u=B(async()=>V(()=>import("./lottie_light-Cf7eNyTO.js").then(e=>e.l),__vite__mapDeps([0,1,2]))),o=v(null);let a=null;const r=()=>{d("handleClose")},m=async e=>{o.value&&(a&&a.destroy(),a=(await u()).loadAnimation({container:o.value,renderer:"canvas",loop:!1,autoplay:!0,path:e}))};return _(()=>o.value,e=>{e&&m(R)},{immediate:!0}),h(()=>{a&&(a.destroy(),a=null)}),y(async()=>{}),(e,n)=>(C(),b(A,{modelValue:l.visible,"onUpdate:modelValue":n[0]||(n[0]=f=>l.visible=f),hideClose:!1,maskNotClose:!0,title:"",onClose:r},{default:k(()=>[t("div",$,[t("div",w,s(e.$t("t870")),1),t("div",null,[t("div",{class:"giftpackAnimat",ref_key:"lottieAnit",ref:o},null,512),t("div",D,s(i.amount),1),t("p",I,s(e.$t("t862")),1)]),t("div",{class:"confirmBtn",onClick:r},s(e.$t("t29")),1)])]),_:1},8,["modelValue"]))}}),G=g(N,[["__scopeId","data-v-f0499f79"]]);export{G as R};
