File: /www/server/panel/BTPanel/static/js/index-legacy43.js
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(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,e){if(t){if("string"==typeof t)return n(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):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,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}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,e,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function u(n,r,a,i){var u=r&&r.prototype instanceof l?r:l,s=Object.create(u.prototype);return o(s,"_invoke",function(n,r,o){var a,i,u,l=0,s=o||[],f=!1,p={p:0,n:0,v:t,a:v,f:v.bind(t,4),d:function(e,n){return a=e,i=0,u=t,p.n=n,c}};function v(n,r){for(i=n,u=r,e=0;!f&&l&&!o&&e<s.length;e++){var o,a=s[e],v=p.p,m=a[2];n>3?(o=m===r)&&(u=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=t):a[0]<=v&&((o=n<2&&v<a[1])?(i=0,p.v=r,p.n=a[1]):v<m&&(o=n<3||a[0]>r||r>m)&&(a[4]=n,a[5]=r,p.n=m,i=0))}if(o||n>1)return c;throw f=!0,r}return function(o,s,m){if(l>1)throw TypeError("Generator is already running");for(f&&1===s&&v(s,m),i=s,u=m;(e=i<2?t:u)||!f;){a||(i?i<3?(i>1&&(p.n=-1),v(i,u)):p.n=u:p.v=u);try{if(l=2,a){if(i||(o="next"),e=a[o]){if(!(e=e.call(a,u)))throw TypeError("iterator result is not an object");if(!e.done)return e;u=e.value,i<2&&(i=0)}else 1===i&&(e=a.return)&&e.call(a),i<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=t}else if((e=(f=p.n<0)?u:n.call(r,p))!==c)break}catch(e){a=t,i=1,u=e}finally{l=1}}return{value:e,done:f}}}(n,a,i),!0),s}var c={};function l(){}function s(){}function f(){}e=Object.getPrototypeOf;var p=[][a]?e(e([][a]())):(o(e={},a,function(){return this}),e),v=f.prototype=l.prototype=Object.create(p);function m(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,o(t,i,"GeneratorFunction")),t.prototype=Object.create(v),t}return s.prototype=f,o(v,"constructor",f),o(f,"constructor",s),s.displayName="GeneratorFunction",o(f,i,"GeneratorFunction"),o(v),o(v,i,"Generator"),o(v,a,function(){return this}),o(v,"toString",function(){return"[object Generator]"}),(r=function(){return{w:u,m:m}})()}function o(t,e,n,r){var a=Object.defineProperty;try{a({},"",{})}catch(t){a=0}o=function(t,e,n,r){function i(e,n){o(t,e,function(t){return this._invoke(e,n,t)})}e?a?a(t,e,{value:n,enumerable:!r,configurable:!r,writable:!r}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},o(t,e,n,r)}function a(t,e,n,r,o,a,i){try{var u=t[a](i),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function i(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function u(t){a(i,r,o,u,c,"next",t)}function c(t){a(i,r,o,u,c,"throw",t)}u(void 0)})}}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function c(e,n,r){return(n=function(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}System.register(["./base-lib-legacy.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./we-com-legacy.js?v=1777008528","./index-legacy3.js?v=1777008528","./useMethods-legacy.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy119.js?v=1777008528","./index-legacy116.js?v=1777008528"],function(t,n){"use strict";var o,a,l,s,f,p,v,m,y,d,b,h,g,x,w,j,O,_,k,I,P,S,M,D,T,E,A,F,G;return{setters:[function(t){o=t.c,a=t.r,l=t.g,s=t.w,f=t.j,p=t.k,v=t.q,m=t.M,y=t.C,d=t.p,b=t.bR,h=t.y,g=t.L,x=t.o,w=t.e,j=t.v,O=t.x,_=t.s,k=t.F,I=t.B,P=t.aE,S=t.aG},function(t){M=t.cZ,D=t.L,T=t.c7,E=t.a},function(t){A=t._},function(t){F=t.a0},function(t){G=t.j},null,null,null],execute:function(){var n=["src"],R=["src"],C=o({__name:"index",props:{topImg:{},bottomImg:{},width:{default:"100%"},height:{default:660},aspectRatio:{},autoHeight:{type:Boolean,default:!0},fit:{default:"cover"},keepOnLeave:{type:Boolean,default:!0},className:{default:""},style:{default:function(){return{}}}},setup:function(t){var e=t,r=a(null),o=a(!1),i=a(.5),x=a(.5),w=a({x:.5,y:.5}),j=a(!1),O=a(0),_=l(function(){return[e.topImg,e.bottomImg]}),k=l(function(){return{objectFit:e.fit}}),I=a(null),P=l(function(){var t;return null!==(t=e.aspectRatio)&&void 0!==t?t:I.value});function S(t,e){for(var n=Math.min(100,Math.max(0,t))/100,r=Math.min(100,Math.max(0,e))/100,o=(45-Math.max(-75,40*(r-n)))*Math.PI/180,a=Math.cos(o),i=Math.sin(o),u=function(t){return(t.x-n)*a+(t.y-r)*i},c=function(t,e){var n=u(t),r=n/(n-u(e));return{x:t.x+(e.x-t.x)*r,y:t.y+(e.y-t.y)*r}},l=[{x:0,y:0},{x:1,y:0},{x:1,y:1},{x:0,y:1}],s=[],f=0;f<l.length;f++){var p=l[f],v=l[(f+1)%l.length],m=u(p)<=0,y=u(v)<=0;m&&y?s.push(v):m&&!y?s.push(c(p,v)):!m&&y&&(s.push(c(p,v)),s.push(v))}var d=s.map(function(t){return"".concat((100*t.x).toFixed(2),"% ").concat((100*t.y).toFixed(2),"%")}).join(", ");return"polygon(".concat(d,")")}function M(t){var e=t.currentTarget.getBoundingClientRect(),n=(t.clientX-e.left)/e.width,r=(t.clientY-e.top)/e.height;i.value=Math.min(1,Math.max(0,n)),x.value=Math.min(1,Math.max(0,r)),w.value={x:i.value,y:x.value}}function D(t){o.value=!0,M(t)}function T(t){o.value&&M(t)}function E(){o.value=!1}function A(){var t=(i.value+x.value)/2;O.value=t>=.5?1:0,j.value=!0}function F(){j.value=!1}s(function(){return[e.bottomImg,e.topImg]},function(){return function(){var t=e.bottomImg||e.topImg;if(t){var n=new Image;n.onload=function(){n.naturalWidth&&n.naturalHeight&&(I.value=n.naturalWidth/n.naturalHeight)},n.src=t}}()},{immediate:!0});var G=l(function(){return o.value?{x:i.value,y:x.value}:e.keepOnLeave?w.value:{x:1,y:1}}),C=l(function(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach(function(e){c(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({width:"number"==typeof e.width?"".concat(e.width,"px"):e.width,height:!1!==e.autoHeight&&P.value?void 0:"number"==typeof e.height?"".concat(e.height,"px"):e.height,aspectRatio:!1!==e.autoHeight&&P.value?"".concat(P.value," / 1"):void 0,position:"relative",overflow:"hidden",borderRadius:"12px"},e.style)}),H=l(function(){var t=G.value;return{clipPath:S(100*t.x,100*t.y),transition:o.value?"none":"clip-path 120ms ease"}});return function(e,o){return f(),p("div",{ref_key:"wrapRef",ref:r,class:g(["lr-mask-wrap",t.className]),style:m(C.value),onMouseenter:D,onMousemove:T,onMouseleave:E,onClick:A},[v("img",{src:t.bottomImg,class:"lr-mask-bottom",style:m(k.value)},null,12,n),v("img",{src:t.topImg,class:"lr-mask-top",style:m([k.value,H.value])},null,12,R),j.value?(f(),y(d(b),{key:0,class:"autofix-image-viewer",teleported:"","zoom-rate":1,"url-list":_.value,"initial-index":O.value,"hide-on-click-modal":!0,onClose:F},null,8,["url-list","initial-index"])):h("",!0)],38)}}}),H=M(C,[["__scopeId","data-v-1c2ad00d"]]),L={class:"p-16px"},B={class:"py-52px flex justify-center flex-col items-center"},N={class:"flex mb-16px justify-center"},z={class:"text-center mb-40px"},W={class:"w-76% rounded-base overflow-hidden"},q={class:"rounded-base overflow-hidden text-0"},U=o({__name:"index",setup:function(t){var n=D().refs.settingData,o=[["应用商店","appstore"],["总览","conmanger"],["网站","dockersite"],["容器","container"],["线上镜像","cloudimages"],["本地镜像","images"],["容器编排","orchestration"],["网络","network"],["存储卷","storage"],["仓库","warehouse"],["设置","setting"]],a=function(){var t=i(r().m(function t(){return r().w(function(t){for(;;)switch(t.n){case 0:if(!n.value.installing){t.n=1;break}return F(),t.a(2);case 1:G();case 2:return t.a(2)}},t)}));return function(){return t.apply(this,arguments)}}(),u=function(t,e){return"https://www.bt.cn/Public/new/plugin/dockermode/".concat(t,"-").concat(e,".png")};return x(i(r().m(function t(){return r().w(function(t){for(;;)switch(t.n){case 0:1===n.value.installing&&F();case 1:return t.a(2)}},t)}))),function(t,r){var i=T,c=E,l=P,s=S;return f(),p("div",L,[v("div",B,[r[3]||(r[3]=v("div",{class:"mb-12px text-center text-subtitleLarge font-bold"},"宝塔Docker模块",-1)),v("div",N,[r[2]||(r[2]=v("div",{class:"text-center text-base mr-[10px] color-desc text-tertiary"},"可视化Docker模块,提供图形用户界面,能够以更直观的方式管理和操作Docker容器",-1)),w(i,{href:"https://www.bt.cn/new/wechat_customer",class:"!text-base mr-[10px]"},{default:j(function(){return e(r[0]||(r[0]=[v("img",{src:A,class:"w-[16px] h-[16px]"},null,-1),v("span",null,"联系客服",-1)]))}),_:1}),w(i,{href:"https://www.bt.cn/bbs/thread-141215-1-1.html",class:"!text-base mr-[4px]"},{default:j(function(){return e(r[1]||(r[1]=[O(">> 使用文档",-1)]))}),_:1})]),r[4]||(r[4]=v("div",{class:"mb-16px"},[v("ul",{class:"ul-style"},[v("li",null,"一键部署应用"),v("li",null,"Docker快速建站"),v("li",null,"容器管理"),v("li",null,"容器编排")])],-1)),v("div",z,[w(c,{type:"primary",size:"large",class:"!text-medium w-[140px]",onClick:a},{default:j(function(){return[O(_(d(n).installing?"正在安装...":"立即安装"),1)]}),_:1})]),v("div",W,[w(s,{"tab-position":"left",class:"carousel"},{default:j(function(){return[(f(),p(k,null,I(o,function(t,e){return w(l,{label:t[0],lazy:"",key:e},{default:j(function(){return[v("div",q,[w(H,{topImg:u(t[1],"white"),bottomImg:u(t[1],"black")},null,8,["topImg","bottomImg"])])]}),_:2},1032,["label"])}),64))]}),_:1})])])])}}});t("default",M(U,[["__scopeId","data-v-feeda76b"]]))}}})}();