PageSourceSearch

https://www.tapsave.net/_nuxt/BwJ6ZE9G.js

js tapsave.net collected 2026-09-24 15:08:36 UTC 4,010 bytes, 1 lines download raw bytes

1import{_,u as k,g as $,o as n,c as i,d as e,t as o,F as v,i as f,r as L,O as T,D as M,l as j,k as S,n as d,m as b,j as B}from"./DV4Ldf93.js";const C={class:"bg-white rounded-2xl shadow-2xl w-full max-w-md mx-4 overflow-hidden animate-fade-in"},D={class:"bg-gradient-to-r from-amber-500 to-orange-500 px-6 py-5 text-white relative"},V={class:"flex items-center gap-3"},N={class:"text-xl font-bold"},R={class:"text-sm text-white/80 mt-0.5"},F={class:"p-6 max-h-[60vh] overflow-y-auto"},I={key:0,class:"flex items-center justify-center py-8"},O={key:1,class:"text-center py-8 text-gray-400"},z={key:0,class:"text-xs text-amber-500 mb-3"},E={class:"flex justify-between items-center"},P={class:"font-semibold text-gray-800"},q={class:"text-amber-600 font-bold text-base"},A={class:"flex items-center justify-between mt-1.5"},Y={class:"text-xs text-gray-400"},Z={class:"text-xs font-medium text-gray-600"},G={class:"mt-2 h-1.5 bg-gray-200 rounded-full overflow-hidden"},H={key:1,class:"flex justify-between items-center bg-amber-50 rounded-xl px-4 py-3 border border-amber-200 mt-3"},J={class:"font-bold text-amber-700"},K={class:"font-bold text-amber-600 text-base"},Q={__name:"VipStatusDialog",props:{vipStatus:{type:Object,default:null}},setup(g){const u=g,h=B(),{locale:U}=k(),r=b(!1),c=b(null),m=d(()=>u.vipStatus||c.value),l=d(()=>m.value?.activeVipRecords||[]),p=d(()=>m.value?.totalRemainingTimes||0),x=async()=>{if(!(u.vipStatus||!j())){r.value=!0;try{const t=await S.get(h.public.apiBase+"/vip/status");t.code===200&&(c.value=t.data)}catch{}finally{r.value=!1}}},y=s=>{if(!s)return"-";const t=new Date(s),a=w=>String(w).padStart(2,"0");return`${t.getFullYear()}-${a(t.getMonth()+1)}-${a(t.getDate())}`};return $(x),(s,t)=>(n(),i("div",{class:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center z-50",onClick:t[2]||(t[2]=M(a=>s.$emit("close"),["self"]))},[e("div",C,[e("div",D,[e("button",{class:"absolute top-3 right-3 text-white/80 hover:text-white transition",onClick:t[0]||(t[0]=a=>s.$emit("close"))},[...t[3]||(t[3]=[e("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)])]),e("div",V,[t[4]||(t[4]=e("div",{class:"w-10 h-10 bg-white/20 rounded-xl flex items-center justify-center"},[e("svg",{class:"w-6 h-6",fill:"currentColor",viewBox:"0 0 24 24"},[e("path",{d:"M12 2L15.09 8.26L22 9.27L17 14.14L18.18 21.02L12 17.77L5.82 21.02L7 14.14L2 9.27L8.91 8.26L12 2Z"})])],-1)),e("div",null,[e("h2",N,o(s.$t("vipMyVip")),1),e("p",R,o(s.$t("vipTotalLeftLabel",{count:p.value})),1)])])]),e("div",F,[r.value?(n(),i("div",I,[...t[5]||(t[5]=[e("div",{class:"w-8 h-8 border-3 border-amber-500 border-t-transparent rounded-full animate-spin"},null,-1)])])):l.value.length?(n(),i(v,{key:2},[l.value.length>1?(n(),i("p",z," 💡 "+o(s.$t("vipMultiPlanNote",{count:l.value.length})),1)):f("",!0),(n(!0),i(v,null,L(l.value,a=>(n(),i("div",{key:a.orderNo,class:"bg-gray-50 rounded-xl px-4 py-3 mb-2.5 border border-gray-100"},[e("div",E,[e("span",P,o(a.timesTotal)+" "+o(s.$t("vipTimes")),1),e("span",q,o(a.remainingTimes)+" "+o(s.$t("vipTimesLeft")),1)]),e("div",A,[e("span",Y,o(s.$t("vipExpires")),1),e("span",Z,o(y(a.expireTime)),1)]),e("div",G,[e("div",{class:"h-full bg-gradient-to-r from-amber-400 to-orange-400 rounded-full transition-all",style:T({width:`${Math.max(5,Math.round(a.remainingTimes/(a.timesTotal||1)*100))}%`})},null,4)])]))),128)),l.value.length>1?(n(),i("div",H,[e("span",J,o(s.$t("vipTotalLeft")),1),e("span",K,o(p.value)+" "+o(s.$t("vipTimesLeft")),1)])):f("",!0)],64)):(n(),i("div",O,o(s.$t("vipNoActivePlans")),1)),e("button",{class:"w-full mt-4 py-2.5 rounded-xl text-sm font-medium text-amber-600 border border-amber-200 hover:bg-amber-50 transition-all duration-150",onClick:t[1]||(t[1]=a=>s.$emit("open-vip-purchase"))},o(s.$t("vipRenewOrBuyMore")),1)])])]))}},X=_(Q,[["__scopeId","data-v-dd81aea3"]]);export{X 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.