System.register(["./admin-setting-legacy.2d83c4ce.js","./index-legacy.492b6ebd.js","./unit-legacy.203f0ef2.js","./request-legacy.01567c6f.js"],(function(e){"use strict";var n,i,a,t,u;return{setters:[function(e){n=e.l,i=e.c},function(e){a=e.au},function(e){t=e.b},function(e){u=e.E}],execute:function(){e("u",(function(){var e=a(n,{formatResult:function(e){var n=e.data;return n.linkExpireTimes=JSON.parse(n.linkExpireTimes),n}}),r=e.data,s=e.loading,c=e.reload,l=a(i,{manual:!0,onSuccess:function(){u({message:"保存成功",type:"success"})}}),o=l.loading,f=l.run;return{data:r,dataLoading:s,reload:c,saveData:function(){r.value.linkExpireTimes=r.value.linkExpireTimes.filter((function(e){if(e.value&&e.unit)return e.seconds=t(e),!0})),r.value.linkExpireTimes=JSON.stringify(r.value.linkExpireTimes),r.value.directLinkPrefix?f(r.value).then((function(){c()})):u.warning("直链前缀不能为空")},saveLoading:o}}))}}}));
