System.register(["./page_layout-legacy.js?v=1764830988434","./public-legacy.js?v=1764830988434","./soft-legacy.js?v=1764830988434"],function(e,s){"use strict";var t,a,i,n,o,l,r,c,u,g,m,y;return{setters:[e=>{t=e.u,a=e.m,i=e.c,n=e.d,o=e.b0,l=e.X,r=e.W,c=e.i},e=>{u=e.b,g=e.m,m=e.a},e=>{y=e.u}],execute:function(){e("i",async e=>{const{close:s}=a.loading("Processing, please wait...");try{const{message:s}=await i({sName:e});if(n(s)){const e=s.versions[0].full_version;m({title:"Install plugin",content:`Are you sure to install [${s.title} v${e}] plugin?`,onConfirm:async()=>{s.status?await o({sName:s.name,version:e,upgrade:e}):await o({sName:s.name,version:e}),l()}})}}finally{s()}}),e("u",async(e,s)=>{const{close:t}=a.loading("Processing, please wait...");try{const{message:t}=await i({sName:e});if(n(t)){const e=t.versions[0].full_version;m({title:"Install plugin",content:`Are you sure to install [${t.title} v${e}] plugin?`,onConfirm:async()=>{const{message:a}=await r({sName:t.name,version:e,upgrade:e,type:1});if(n(a)){if(a.result)return void l();await y({name:a.name,tmp_path:a.tmp_path,title:c.global.t("Soft.index_21")},()=>{s?.()})}}})}}finally{t()}}),e("c",async(e,s,o=!1)=>t().isFree?(u({source:s}),Promise.reject()):await(async(e,s=!0)=>{let t;s&&(t=a.loading("Processing, please wait..."));try{const{message:s}=await i({sName:e});return n(s)&&s.setup?s:(g(e),Promise.reject())}finally{s&&t?.close()}})(e,o)),e("g",e=>`/static/img/soft_ico/ico-${e.replace(/-+[{0-9},.,]+$/,"")}.png`)}}});
