File: /www/server/panel/BTPanel/static/js/php-command-legacy.js
!function(){function t(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(t){if("string"==typeof t)return n(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?n(t,r):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=Array(n);r<n;r++)e[r]=t[r];return e}function r(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,n,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.toStringTag||"@@toStringTag";function a(r,o,i,u){var a=o&&o.prototype instanceof l?o:l,f=Object.create(a.prototype);return e(f,"_invoke",function(r,e,o){var i,u,a,l=0,f=o||[],s=!1,p={p:0,n:0,v:t,a:y,f:y.bind(t,4),d:function(n,r){return i=n,u=0,a=t,p.n=r,c}};function y(r,e){for(u=r,a=e,n=0;!s&&l&&!o&&n<f.length;n++){var o,i=f[n],y=p.p,v=i[2];r>3?(o=v===e)&&(a=i[(u=i[4])?5:(u=3,3)],i[4]=i[5]=t):i[0]<=y&&((o=r<2&&y<i[1])?(u=0,p.v=e,p.n=i[1]):y<v&&(o=r<3||i[0]>e||e>v)&&(i[4]=r,i[5]=e,p.n=v,u=0))}if(o||r>1)return c;throw s=!0,e}return function(o,f,v){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&y(f,v),u=f,a=v;(n=u<2?t:a)||!s;){i||(u?u<3?(u>1&&(p.n=-1),y(u,a)):p.n=a:p.v=a);try{if(l=2,i){if(u||(o="next"),n=i[o]){if(!(n=n.call(i,a)))throw TypeError("iterator result is not an object");if(!n.done)return n;a=n.value,u<2&&(u=0)}else 1===u&&(n=i.return)&&n.call(i),u<2&&(a=TypeError("The iterator does not provide a '"+o+"' method"),u=1);i=t}else if((n=(s=p.n<0)?a:r.call(e,p))!==c)break}catch(n){i=t,u=1,a=n}finally{l=1}}return{value:n,done:s}}}(r,i,u),!0),f}var c={};function l(){}function f(){}function s(){}n=Object.getPrototypeOf;var p=[][i]?n(n([][i]())):(e(n={},i,function(){return this}),n),y=s.prototype=l.prototype=Object.create(p);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,e(t,u,"GeneratorFunction")),t.prototype=Object.create(y),t}return f.prototype=s,e(y,"constructor",s),e(s,"constructor",f),f.displayName="GeneratorFunction",e(s,u,"GeneratorFunction"),e(y),e(y,u,"Generator"),e(y,i,function(){return this}),e(y,"toString",function(){return"[object Generator]"}),(r=function(){return{w:a,m:v}})()}function e(t,n,r,o){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}e=function(t,n,r,o){function u(n,r){e(t,n,function(t){return this._invoke(n,r,t)})}n?i?i(t,n,{value:r,enumerable:!o,configurable:!o,writable:!o}):t[n]=r:(u("next",0),u("throw",1),u("return",2))},e(t,n,r,o)}function o(t,n,r,e,o,i,u){try{var a=t[i](u),c=a.value}catch(t){return void r(t)}a.done?n(c):Promise.resolve(c).then(e,o)}System.register(["./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./site-legacy.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528"],function(n,e){"use strict";var i,u,a,c,l,f,s,p,y,v,m,d,b,h,g,P,j,_,w,S,O,k,x;return{setters:[function(t){i=t.k,u=t.cP},function(t){a=t.c,c=t.r,l=t.o,f=t.I,s=t.J,p=t.p,y=t.j,v=t.k,m=t.q,d=t.e,b=t.v,h=t.F,g=t.B,P=t.C,j=t.Q,_=t.x,w=t.am,S=t.an,O=t.z},function(t){k=t.getCliVersion,x=t.setCliVersion},null],execute:function(){var e={class:"p-[20px]"};n("default",a({__name:"php-command",setup:function(n){var a=c(),A=c([{content:"此处可设置命令行运行php时使用的PHP版本"},{content:"安装新的PHP版本后此处需要重新设置"},{content:"其它PHP版本在命令行可通过php+版本的方式运行,如:php74,php80"},{content:"PHP-CLI:一种运行 PHP 脚本的方式,它允许您在命令行终端中直接执行PHP脚本文件,请根据您的需求选择合适的版本。"}]),H=c(),C=c(!1),T=function(){var t,n=(t=r().m(function t(){return r().w(function(t){for(;;)switch(t.n){case 0:i({loading:C,request:k(),data:{"select.version":[String,H],versions:[Array,a]}});case 1:return t.a(2)}},t)}),function(){var n=this,r=arguments;return new Promise(function(e,i){var u=t.apply(n,r);function a(t){o(u,e,i,a,c,"next",t)}function c(t){o(u,e,i,a,c,"throw",t)}a(void 0)})});return function(){return n.apply(this,arguments)}}(),G=function(){i({loading:"正在设置版本,请稍后...",request:x({php_version:H.value}),message:!0})};return l(function(){T()}),function(n,r){var o=w,i=S,c=O,l=u,k=f("bt-loading");return s((y(),v("div",e,[r[2]||(r[2]=m("span",{class:"mr-[12px]"},"PHP-CLI版本",-1)),d(i,{modelValue:p(H),"onUpdate:modelValue":r[0]||(r[0]=function(t){return j(H)?H.value=t:null}),class:"!w-[32rem]",placeholder:"请选择版本"},{default:b(function(){return[(y(!0),v(h,null,g(p(a),function(t,n){return y(),P(o,{key:n,label:t.name,value:t.version},null,8,["label","value"])}),128))]}),_:1},8,["modelValue"]),d(c,{type:"primary",onClick:G,class:"!my-[20px] !block"},{default:b(function(){return t(r[1]||(r[1]=[_("保存",-1)]))}),_:1}),d(l,{options:p(A)},null,8,["options"])])),[[k,p(C)]])}}}))}}})}();