System.register(["./page_layout-legacy.js?v=1763625242172","./public-legacy.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy14.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172"],(function(e,t){"use strict";var l,a,n,i,o,s,r,d,u,c,p,x,_,v,m,f,g,y,w,h,j,S;return{setters:[e=>{l=e.ap,a=e.dU,n=e._,i=e.dX},e=>{o=e.u},e=>{s=e.a,r=e._},e=>{d=e.k,u=e.P,c=e.r,p=e.R,x=e.S,_=e.U,v=e.X,m=e.a4,f=e.V,g=e.a3,y=e.aj,w=e.I,h=e.ap},e=>{j=e.au,S=e.dh},null,null],execute:function(){const t={class:"p-24px"},b={class:"flex items-center pl-12px"},C={class:"flex-1 ml-14px"},k={class:"text-16px font-bold text-font1"},N={class:"p-10px mt-24px mx-12px text-14px",style:{backgroundColor:"var(--site-confirm-calc-box-bg)"}},R={class:"mt-10px"};e("default",d({__name:"index",props:{data:{}},setup(e,{expose:d}){const{t:T}=u(),U=e,{rows:z}=U.data,D=l(),X=a(),$=c(null),H=c(""),I=c(!1),P=c("");let V=null;const q=e=>{h((()=>{(e=>{P.value=e,I.value=!0,$.value?.focus(),V&&clearTimeout(V),V=window.setTimeout((()=>{I.value=!1}),3e3)})(e)}))()},A=async(e,t=!1)=>await i({project_name:e.name},t),B=e=>{o({title:T("Site.Cert.index_56"),hideClose:!0,component:s,data:{title:T("Site.Cert.index_56"),api:A,data:z,callback:t=>{e(),E(t)}}})},E=e=>{X.setRefresh(!0),o({title:T("Site.DelSite.index_11"),width:440,footer:!0,component:r,data:{title:T("Site.Cert.index_56"),data:e,status:"done",columns:[{key:"name",title:T("Site.TableRow.index_1"),ellipsis:{tooltip:{width:"trigger"}}}]}})};return d({onConfirm:async({hide:e})=>""==H.value?(q(T("Site.DelSite.ContentText5")),!1):H.value!==T("Node.index_41")?(q(T("Node.index_38")),!1):(await(async e=>{1===z.length?(await A(z[0],!0),X.setRefresh(!0),e?.()):B(e)})(e),void e())}),(e,l)=>{const a=n,i=j,o=S;return p(),x("div",t,[_("div",b,[v(a,{name:"base-warning",size:"34",color:"#f0a020"}),_("div",C,[_("div",k,[_("div",null,m(e.$t("Node.index_39")),1)])])]),_("div",N,[_("div",null,m(e.$t("Node.index_40",[f(T)("Node.index_41")])),1),_("div",R,[v(o,{show:f(I),"onUpdate:show":l[1]||(l[1]=e=>y(I)?I.value=e:null),trigger:"manual",placement:"top-start","arrow-point-to-center":!0,style:w({"--n-color":f(D).errorColor,"--n-text-color":"#fff"})},{trigger:g((()=>[v(i,{ref_key:"inputRef",ref:$,value:f(H),"onUpdate:value":l[0]||(l[0]=e=>y(H)?H.value=e:null),size:"small",placeholder:""},null,8,["value"])])),default:g((()=>[_("div",null,m(f(P)),1)])),_:1},8,["show","style"])])])])}}}))}}}));
