File: /www/server/panel/BTPanel/static/js/add-sqlite-legacy.js
!function(){function e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var n,r,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",u=o.toStringTag||"@@toStringTag";function i(e,o,a,u){var i=o&&o.prototype instanceof l?o:l,f=Object.create(i.prototype);return t(f,"_invoke",function(e,t,o){var a,u,i,l=0,f=o||[],s=!1,p={p:0,n:0,v:n,a:d,f:d.bind(n,4),d:function(e,t){return a=e,u=0,i=n,p.n=t,c}};function d(e,t){for(u=e,i=t,r=0;!s&&l&&!o&&r<f.length;r++){var o,a=f[r],d=p.p,v=a[2];e>3?(o=v===t)&&(i=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=n):a[0]<=d&&((o=e<2&&d<a[1])?(u=0,p.v=t,p.n=a[1]):d<v&&(o=e<3||a[0]>t||t>v)&&(a[4]=e,a[5]=t,p.n=v,u=0))}if(o||e>1)return c;throw s=!0,t}return function(o,f,v){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&d(f,v),u=f,i=v;(r=u<2?n:i)||!s;){a||(u?u<3?(u>1&&(p.n=-1),d(u,i)):p.n=i:p.v=i);try{if(l=2,a){if(u||(o="next"),r=a[o]){if(!(r=r.call(a,i)))throw TypeError("iterator result is not an object");if(!r.done)return r;i=r.value,u<2&&(u=0)}else 1===u&&(r=a.return)&&r.call(a),u<2&&(i=TypeError("The iterator does not provide a '"+o+"' method"),u=1);a=n}else if((r=(s=p.n<0)?i:e.call(t,p))!==c)break}catch(r){a=n,u=1,i=r}finally{l=1}}return{value:r,done:s}}}(e,a,u),!0),f}var c={};function l(){}function f(){}function s(){}r=Object.getPrototypeOf;var p=[][a]?r(r([][a]())):(t(r={},a,function(){return this}),r),d=s.prototype=l.prototype=Object.create(p);function v(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,t(e,u,"GeneratorFunction")),e.prototype=Object.create(d),e}return f.prototype=s,t(d,"constructor",s),t(s,"constructor",f),f.displayName="GeneratorFunction",t(s,u,"GeneratorFunction"),t(d),t(d,u,"Generator"),t(d,a,function(){return this}),t(d,"toString",function(){return"[object Generator]"}),(e=function(){return{w:i,m:v}})()}function t(e,n,r,o){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}t=function(e,n,r,o){function u(n,r){t(e,n,function(e){return this._invoke(n,r,e)})}n?a?a(e,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):e[n]=r:(u("next",0),u("throw",1),u("return",2))},t(e,n,r,o)}function n(e,t,n,r,o,a,u){try{var i=e[a](u),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(r,o)}System.register(["./base-lib-legacy.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./index-legacy116.js?v=1777008528","./database-legacy.js?v=1777008528","./index-legacy3.js?v=1777008528","./useStore-legacy4.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy119.js?v=1777008528"],function(t,r){"use strict";var o,a,u,i,c,l,f,s,p,d,v,y,m,h,b,g,_,j,w;return{setters:[function(e){o=e.c,a=e.r,u=e.I,i=e.j,c=e.k,l=e.e,f=e.v,s=e.J,p=e.p,d=e.R,v=e.ad,y=e.ab},function(e){m=e.k,h=e.cO,b=e.cZ},function(e){g=e._},function(e){_=e.addModulesDatabase},function(e){j=e.w},function(e){w=e.g},null,null],execute:function(){var r={class:"p-24px"},O=o({__name:"add-sqlite",setup:function(t,o){var b=o.expose,O=w().refreshTableList,x=a(),S=a({name:"",path:""}),k={path:[{required:!0,message:"请选择数据库文件",trigger:["blur","change"]}]},T=function(){j({type:"file",path:"",change:function(e){return S.value.path=e}})},G=function(){var t,r=(t=e().m(function t(n){return e().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,x.value.validate();case 1:return e.n=2,m({loading:"正在添加数据库,请稍后...",request:_(S.value,"sqlite"),message:!0});case 2:O(),n();case 3:return e.a(2)}},t)}),function(){var e=this,r=arguments;return new Promise(function(o,a){var u=t.apply(e,r);function i(e){n(u,o,a,i,c,"next",e)}function c(e){n(u,o,a,i,c,"throw",e)}i(void 0)})});return function(e){return r.apply(this,arguments)}}();return b({onConfirm:G}),function(e,t){var n=g,o=v,a=h,m=y,b=u("trim");return i(),c("div",r,[l(m,{model:p(S),ref_key:"addDataBaseForm",ref:x,rules:k,onSubmit:t[2]||(t[2]=d(function(){},["prevent"]))},{default:f(function(){return[l(o,{label:"路径",prop:"path"},{default:f(function(){return[s(l(n,{modelValue:p(S).path,"onUpdate:modelValue":t[0]||(t[0]=function(e){return p(S).path=e}),icon:"icon-file_mode",name:"path",onIconClick:T,placeholder:"请选择数据库文件",width:"28rem"},null,8,["modelValue"]),[[b]])]}),_:1}),l(o,{label:"名称"},{default:f(function(){return[l(a,{width:"28rem",modelValue:p(S).name,"onUpdate:modelValue":t[1]||(t[1]=function(e){return p(S).name=e}),placeholder:"可以不填写,默认为数据库文件名"},null,8,["modelValue"])]}),_:1})]}),_:1},8,["model"])])}}});t("default",b(O,[["__scopeId","data-v-9fe42e36"]]))}}})}();