System.register(["./firewall-legacy-BLYDdl9f.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785"],(function(e,a){"use strict";var l,r,t,s,i,n,c,u,o,d,g;return{setters:[e=>{l=e.G},e=>{r=e.i,t=e.m},e=>{s=e.k,i=e.r,n=e.o,c=e.K,u=e.$,o=e.Z,d=e._,g=e.S},null,null],execute:function(){const a={class:"h-300px"},p=["innerHTML"];e("default",s({__name:"log",props:{data:{}},setup(e){const s=e,v=i("None"),f=async()=>{if(!s.data.path)return;const{message:e}=await l({filename:s.data.path});if(r(e)){v.value=e.result.replace(/\n/g,"<br/>");const a=v.value.includes("FireWall Migrate Service Finish"),l=v.value.includes("FireWall Migrate Error");(a||l)&&(w&&(clearInterval(w),w=null),a?(t.success("Firewall data migrated successfully"),setTimeout((()=>{window.location.reload()}),2e3)):t.error("Firewall data migration failed"))}};f();let w=null;return n((()=>{w=setInterval((()=>{f()}),1e3)})),c((()=>{w&&clearInterval(w)})),(e,l)=>(u(),o("div",a,[d("pre",{innerHTML:g(v),class:"h-full overflow-auto bg-black text-white p-10px whitespace-pre-wrap"},null,8,p)]))}}))}}}));
