System.register(["./index-legacy-DQdImDha.js?v=1773287522785","./useLoading-legacy-IiShPpjk.js?v=1773287522785","./index-legacy-CHm18dY8.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785"],(function(e,t){"use strict";var s,a,n,i,l,d,u,c,r,o,x,g,y,p,_,f,m,v,j,P,k,W,$,h,L,w,C;return{setters:[e=>{s=e.t,a=e.h,n=e.Q,i=e.i},e=>{l=e.u},e=>{d=e.a6,u=e.a7},e=>{c=e.k,r=e.R,o=e.a6,x=e.r,g=e.e,y=e.$,p=e.Z,_=e.a0,f=e.a9,m=e._,v=e.aa,j=e.S,P=e.a8,k=e.ak,W=e.j},e=>{$=e.ad,h=e.a0,L=e.B,w=e.k,C=e.g},null],execute:function(){const t={class:"p-20px"},H={class:"text-14px leading-22px"},M={class:"text-14px leading-22px"},S=["innerHTML"];e("default",c({__name:"index",props:{data:{}},setup(e){const{t:c}=r(),T=e,b=s(),{isPro:B}=o(b),{site:Q}=T.data,{loading:R,setLoading:Z}=l(!1),q=x(!1),z=g({status:!0,text:""}),A=()=>{a({title:c("WP.index_35"),content:c("WP.index_36"),onConfirm:async({hide:e})=>{if(!B.value)return void n({source:214});z.text="",q.value=!0,e();const{message:t}=await d({s_id:Q.id});i(t)&&(z.text=t.result,z.status=!0,q.value=!1)}})},D=async()=>{z.text="",Z(!0);try{const e=await u({s_id:Q.id});z.status=!0,i(e.message)&&(z.text=e.message.result)}catch(e){z.status=!1,z.text=C(e,"message.result","")}finally{Z(!1)}};return(e,s)=>{const a=$,n=h,i=L,l=w;return y(),p("div",t,[_(a,{type:"default",class:"mb-16px","show-icon":!1},{default:f((()=>[m("div",H,v(e.$t("WP.index_33")),1),m("div",M,v(e.$t("WP.index_37")),1)])),_:1}),j(z).text?(y(),P(a,{key:0,type:j(z).status?"success":"error"},{default:f((()=>[m("span",{innerHTML:j(z).text},null,8,S)])),_:1},8,["type"])):k("",!0),_(n,{class:"my-16px!"}),_(l,{class:"justify-evenly!"},{default:f((()=>[_(i,{type:"primary",onClick:D,loading:j(R)},{default:f((()=>[W(v(e.$t("WP.index_34")),1)])),_:1},8,["loading"]),_(i,{type:"info",onClick:A,loading:j(q)},{default:f((()=>[W(v(e.$t("WP.index_35")),1)])),_:1},8,["loading"])])),_:1})])}}}))}}}));
