File: /www/server/panel/BTPanel/static/js/index-legacy111.js
!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,r,a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",o=a.toStringTag||"@@toStringTag";function l(t,a,i,o){var l=a&&a.prototype instanceof c?a:c,u=Object.create(l.prototype);return n(u,"_invoke",function(t,n,a){var i,o,l,c=0,u=a||[],p=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,o=0,l=e,d.n=n,s}};function f(t,n){for(o=t,l=n,r=0;!p&&c&&!a&&r<u.length;r++){var a,i=u[r],f=d.p,x=i[2];t>3?(a=x===n)&&(l=i[(o=i[4])?5:(o=3,3)],i[4]=i[5]=e):i[0]<=f&&((a=t<2&&f<i[1])?(o=0,d.v=n,d.n=i[1]):f<x&&(a=t<3||i[0]>n||n>x)&&(i[4]=t,i[5]=n,d.n=x,o=0))}if(a||t>1)return s;throw p=!0,n}return function(a,u,x){if(c>1)throw TypeError("Generator is already running");for(p&&1===u&&f(u,x),o=u,l=x;(r=o<2?e:l)||!p;){i||(o?o<3?(o>1&&(d.n=-1),f(o,l)):d.n=l:d.v=l);try{if(c=2,i){if(o||(a="next"),r=i[a]){if(!(r=r.call(i,l)))throw TypeError("iterator result is not an object");if(!r.done)return r;l=r.value,o<2&&(o=0)}else 1===o&&(r=i.return)&&r.call(i),o<2&&(l=TypeError("The iterator does not provide a '"+a+"' method"),o=1);i=e}else if((r=(p=d.n<0)?l:t.call(n,d))!==s)break}catch(r){i=e,o=1,l=r}finally{c=1}}return{value:r,done:p}}}(t,i,o),!0),u}var s={};function c(){}function u(){}function p(){}r=Object.getPrototypeOf;var d=[][i]?r(r([][i]())):(n(r={},i,function(){return this}),r),f=p.prototype=c.prototype=Object.create(d);function x(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,n(e,o,"GeneratorFunction")),e.prototype=Object.create(f),e}return u.prototype=p,n(f,"constructor",p),n(p,"constructor",u),u.displayName="GeneratorFunction",n(p,o,"GeneratorFunction"),n(f),n(f,o,"Generator"),n(f,i,function(){return this}),n(f,"toString",function(){return"[object Generator]"}),(t=function(){return{w:l,m:x}})()}function n(e,t,r,a){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}n=function(e,t,r,a){function o(t,r){n(e,t,function(e){return this._invoke(t,r,e)})}t?i?i(e,t,{value:r,enumerable:!a,configurable:!a,writable:!a}):e[t]=r:(o("next",0),o("throw",1),o("return",2))},n(e,t,r,a)}function r(e,t,n,r,a,i,o){try{var l=e[i](o),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,a)}function a(e){return function(){var t=this,n=arguments;return new Promise(function(a,i){var o=e.apply(t,n);function l(e){r(o,a,i,l,s,"next",e)}function s(e){r(o,a,i,l,s,"throw",e)}l(void 0)})}}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(t,n,r){return(n=function(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var a=r.call(t,n||"default");if("object"!=e(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function s(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e)||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 c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}System.register(["./base-lib-legacy.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./ActivityCenter.vue_vue_type_style_index_1_scoped_a56e7856_lang-legacy.js?v=1777008528","./index-legacy3.js?v=1777008528","./ssl-legacy.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy119.js?v=1777008528","./index-legacy116.js?v=1777008528"],function(e,n){"use strict";var r,i,l,c,u,p,d,f,x,v,m,g,y,h,b,w,k,_,C,j,T,I,O,M,S,D,L,z,P,A,E,R,F,H,V,q,B,Y,G,X,U,N,W,Z,$,J,K;return{setters:[function(e){r=e.j,i=e.k,l=e.A,c=e.q,u=e.c,p=e.r,d=e.H,f=e.g,x=e.C,v=e.v,m=e.L,g=e.M,y=e.e,h=e.p,b=e.R,w=e.x,k=e.s,_=e.y,C=e.bm,j=e.a6,T=e.w,I=e.o,O=e.n,M=e.u,S=e.F,D=e.B,L=e.z,z=e.aX,P=e.aW,A=e.T,E=e.a5,R=e.aY},function(e){F=e.j7,H=e.j8,V=e.ee,q=e.w,B=e.eP,Y=e.c7,G=e.cP,X=e.f,U=e.j,N=e.cZ,W=e.e},function(e){Z=e.u},function(e){$=e.h,J=e.k},function(e){K=e.ag},null,null,null],execute:function(){var n={xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 128 128"};var Q={render:function(e,t){return r(),i("svg",n,s(t[0]||(t[0]=[l('<g fill="#2f2f2f"><path d="M95.48 112.66H32.46l6.11-22.84h50.8z"></path><path d="M95.52 115.68H32.46c-.94 0-1.83-.44-2.39-1.18-.57-.74-.76-1.71-.52-2.62l6.11-22.84a3.02 3.02 0 0 1 2.92-2.24h50.8c1.37 0 2.57.92 2.92 2.24l5.98 22.36c.17.38.27.81.27 1.25-.01 1.67-1.36 3.03-3.03 3.03m-59.13-6.05h55.15l-4.49-16.8H40.89z"></path><path d="M24.42 112.66h79.09v8.35H24.42z"></path><path d="M103.51 124.03H24.42c-1.67 0-3.02-1.35-3.02-3.02v-8.35c0-1.67 1.35-3.02 3.02-3.02h79.09c1.67 0 3.02 1.35 3.02 3.02v8.35c0 1.67-1.35 3.02-3.02 3.02m-76.07-6.04h73.05v-2.31H27.44z"></path></g><defs><path id="a" d="M78.75 98.51H49.2c-1.02 0-1.85.83-1.85 1.85v8.35c0 1.02.83 1.85 1.85 1.85h29.55c1.02 0 1.85-.83 1.85-1.85v-8.35a1.85 1.85 0 0 0-1.85-1.85"></path></defs><use fill="#fcc21b" href="#a"></use><g fill="#fcc21b"><path d="M20.18 18.49c-1.88 0-3.67.33-5.32.98C7.9 22.24 5.9 30.13 7.53 36.49c1.36 5.32 6.12 9.43 10.23 11.15.94.39 1.9.69 2.83.98.92.28 1.78.55 2.62.9 1.25.52 2.42 1.53 3.04 2.64.62 1.12.46 1.74.12 2.98-.09.33-.18.69-.27 1.07-.19.88-.33 1.92-.01 2.95.51 1.68 1.8 2.72 3.35 2.72 2.85-.08 5.01-2.4 6.03-6.39l.01-.03.04-.17c.41-1.63.51-3.1.27-4.41-.21-1.22-.63-2.31-1.23-3.25-2.05-3.2-5.32-5.05-8.5-6.67-.56-.29-1.13-.56-1.7-.83-2.03-.97-4.14-1.98-5.63-3.56-1.25-1.33-1.63-3.17-1.01-4.81.58-1.54 1.89-2.51 3.58-2.66.19-.02.38-.03.56-.03 4.35 0 7.1 4.61 9.3 8.31l.2.33 1.53 2.56.44-2.95c.14-.91.26-1.88.26-2.82-.01-.65.01-1.32.02-1.98.09-4.13.19-8.8-4.34-11.47-2.79-1.65-6.02-2.56-9.09-2.56m73.08 32.57c.18-1.03.53-2.01 1.08-2.86 1.92-2.99 5.01-4.73 8.09-6.3 2.62-1.34 5.56-2.43 7.62-4.61 3.15-3.34 1.4-8.86-3.25-9.27-5.5-.48-8.68 5.12-11.07 9.13-.13-.86-.25-1.78-.25-2.65.04-4.65-.86-9.79 3.79-12.54 3.95-2.34 9.08-3.23 13.46-1.5 6.25 2.48 8.25 9.67 6.7 15.76-1.18 4.61-5.35 8.65-9.61 10.43-1.78.74-3.67 1.14-5.45 1.88-1.43.59-2.8 1.74-3.56 3.1-1.05 1.87-.37 2.95.04 4.81.17.79.28 1.62.04 2.4-.34 1.11-1.18 2-2.4 1.97-2.9-.08-4.34-3.25-4.95-5.64a.2.2 0 0 1-.02-.07c-.31-1.3-.5-2.71-.26-4.04"></path><path d="M107.82 18.49c-3.07 0-6.29.9-9.08 2.55-4.52 2.67-4.42 7.34-4.34 11.47.01.66.03 1.33.02 1.98 0 .94.12 1.91.26 2.82l.44 2.95 1.53-2.56.2-.33c2.2-3.7 4.95-8.31 9.3-8.31.18 0 .37.01.56.03 1.69.15 3 1.11 3.58 2.66.63 1.65.24 3.49-1.01 4.81-1.5 1.58-3.6 2.59-5.63 3.56-.58.28-1.15.55-1.71.83-3.18 1.62-6.45 3.47-8.5 6.68-.6.93-1.02 2.03-1.23 3.25-.24 1.31-.14 2.77.29 4.48l.02.06.01.04c1.02 4 3.18 6.34 5.94 6.42 1.65 0 2.93-1.04 3.45-2.72.32-1.03.17-2.06-.01-2.94-.09-.39-.18-.75-.28-1.08-.34-1.24-.51-1.87.12-2.99.62-1.11 1.79-2.12 3.04-2.64.84-.35 1.7-.61 2.62-.9.93-.29 1.9-.59 2.83-.98 4.12-1.71 8.87-5.83 10.23-11.15 1.63-6.36-.38-14.25-7.34-17.01-1.64-.65-3.43-.98-5.31-.98"></path><path d="M94.83 17.61c-5.71-5.28-14.6-7.84-22.16-8.43-2.89-.23-5.8-.31-8.7-.32-2.9.02-5.81.1-8.7.32-7.55.59-16.45 3.15-22.16 8.43-3.38 3.12-2.43 8.55-2.01 12.65.77 7.5 2.23 17.47 7.28 23.44 1.46 1.73 2.96 3.35 4.6 4.79 1.85 1.61 3.52 3.47 5.4 5.08 2.31 1.98 4.93 4.2 5.4 7.37.67 4.54-2.38 5.8-5.88 7.38-2.46 1.11-5.16 3.73-4.15 6.69 1.08 3.16 5.67 2.5 8.27 2.67 7.52.49 15.07.18 22.6-.04 2.61-.08 9.68.25 9.68-3.79 0-1.45-.68-2.83-1.72-3.82-.74-.7-1.61-1.28-2.54-1.7-3.5-1.58-6.56-2.84-5.88-7.38.48-3.17 3.09-5.39 5.4-7.37 1.88-1.61 3.55-3.46 5.4-5.08 1.64-1.44 3.14-3.06 4.61-4.79 5.04-5.97 6.5-15.94 7.28-23.44.41-4.12 1.35-9.54-2.02-12.66M63.97 29.38c-14.36 0-26-3.27-26-7.31s11.64-7.31 26-7.31 26 3.27 26 7.31c0 4.03-11.64 7.31-26 7.31"></path><path d="M63.97 7.78c-3.41.02-6.2.12-8.78.33-9.15.72-17.68 3.98-22.8 8.72-3.49 3.23-2.92 8.37-2.46 12.5l.11 1.05c.87 8.5 2.44 18.01 7.53 24.02 1.71 2.02 3.21 3.58 4.72 4.9.86.75 1.71 1.59 2.53 2.39.92.9 1.87 1.83 2.88 2.69 2.31 1.98 4.63 3.97 5.04 6.72.52 3.47-1.37 4.5-5.02 6.14l-.25.11c-3.11 1.4-5.91 4.5-4.72 8.01 1.12 3.31 4.93 3.34 7.71 3.36.54 0 1.05 0 1.5.03 2.72.18 5.65.27 8.93.27 3.92 0 7.89-.12 11.74-.25l2.03-.06c.24-.01.52-.01.83-.01 3.21-.04 9.88-.13 9.88-4.85 0-1.68-.75-3.35-2.05-4.59-.81-.77-1.79-1.43-2.83-1.9l-.25-.11c-3.65-1.65-5.53-2.67-5.02-6.14.41-2.76 2.74-4.75 4.99-6.67 1.06-.91 2.01-1.84 2.93-2.74.82-.8 1.67-1.64 2.53-2.39 1.5-1.31 3-2.87 4.73-4.9 5.07-6 6.65-15.51 7.52-24.02l.12-1.06c.45-4.12 1.02-9.26-2.46-12.48-5.12-4.74-13.65-8-22.8-8.72-2.61-.22-5.4-.33-8.81-.35m0 20.53c-15.45 0-24.93-3.64-24.93-6.24 0-2.61 9.49-6.24 24.93-6.24 15.45 0 24.93 3.64 24.93 6.24 0 2.61-9.48 6.24-24.93 6.24"></path></g><path fill="#855c52" d="M87.13 33.22c-.33 0-.67.11-.97.19-.68.17-1.32.47-2 .67-.6.17-1.17.38-1.76.58-1.14.41-2.81.52-3.67 1.44-.8.84-.87 2.46-1.03 3.53-.24 1.62-.39 3.25-.6 4.88-.4 3.11-1.2 6.14-2.24 9.1a52 52 0 0 1-2.05 4.96c-.67 1.41-1.41 2.81-2.25 4.14-.36.56-1.47 1.94-.7 2.55.45.36 1.39.31 1.87.09 5.3-2.5 8.93-7.35 11.41-12.51.77-1.59 1.43-3.24 2.04-4.91.76-2.08 1.38-4.2 1.98-6.33.37-1.3.71-2.61.96-3.94.19-1.02.87-3.92-.6-4.38a.9.9 0 0 0-.39-.06M74.66 86.05c-1.13.1-2.49.11-3.28-.3-.24-.13-.38-.29-.33-.57.05-.3.19-.29.4-.44.37-.26.82-.76 1.04-1.15.67-1.2.08-2.54-.36-3.71-.17-.45-.77-1.07-.15-1.43.34-.19.87-.1 1.22-.02.5.11 1.07.33 1.55.5 1.81.67 3.6 2.5 3.6 4.52 0 1.55-1.12 2.29-2.54 2.47-.34.04-.73.09-1.15.13"></path>',5)])))}},ee={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"};var te={render:function(e,t){return r(),i("svg",ee,s(t[0]||(t[0]=[c("path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8"},null,-1),c("path",{d:"M21 3v5h-5"},null,-1)])))}},ne={key:1,class:"floating-card-body"},re={class:"flex items-center gap-6px"},ae={class:"flex items-center gap-4px"},ie={class:"floating-card-content"},oe={class:"text-13px font-semibold mb-4px leading-tight flex items-center gap-4px flex-wrap"},le={key:0,class:"text-extraSmall px-6px py-1px bg-[var(--el-color-success-light-9)] text-success rounded-small font-normal"},se={class:"text-11px text-secondary leading-relaxed line-clamp-2 mb-8px"},ce={class:"flex items-center gap-4px px-8px py-3px bg-[var(--el-color-primary-light-9)] rounded-small w-fit floating-card-label"},ue={class:"text-11px font-bold text-primary"},pe={class:"floating-card-footer"},de=["disabled"],fe=u({__name:"FloatingTaskCard",props:{task:{},productInfo:{},initialTop:{default:72},initialRight:{default:20},onOpenDialog:{type:Function,default:void 0},onClose:{type:Function,default:void 0},onRefresh:{type:Function,default:void 0}},setup:function(e){var n=e,l=p(!0),u=p(!1),j=d({top:n.initialTop,right:n.initialRight}),T=f(function(){return{top:"".concat(j.top,"px"),right:"".concat(j.right,"px"),position:"fixed",zIndex:1e4}}),I={active:!1,startX:0,startY:0,startTop:0,startRight:0},O=function(e){I.active=!0,I.startX=e.clientX,I.startY=e.clientY,I.startTop=j.top,I.startRight=j.right;var t=function(e){if(I.active){var t=e.clientX-I.startX,n=e.clientY-I.startY;j.top=Math.max(8,I.startTop+n),j.right=Math.max(8,I.startRight-t)}},n=function(){I.active=!1,window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)};window.addEventListener("mousemove",t),window.addEventListener("mouseup",n)},M=function(){var e;l.value=!1,null===(e=n.onClose)||void 0===e||e.call(n)},S=function(){var e;M(),null===(e=n.onOpenDialog)||void 0===e||e.call(n)},D=p(!1),L=function(){var e={origin:{y:.7},zIndex:99999},t=function(t,n){return F(o(o(o({},e),n),{},{particleCount:Math.floor(200*t)}))};t(.25,{spread:26,startVelocity:55}),t(.2,{spread:60}),t(.35,{spread:100,decay:.91,scalar:.8}),t(.1,{spread:120,startVelocity:25,decay:.92,scalar:1.2}),t(.1,{spread:120,startVelocity:45})},z=function(){var e=a(t().m(function e(){return t().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!D.value&&n.onRefresh){e.n=1;break}return e.a(2);case 1:return e.p=1,D.value=!0,e.n=2,n.onRefresh();case 2:e.v&&(L(),setTimeout(function(){M(),S()},300));case 3:return e.p=3,D.value=!1,e.f(3);case 4:return e.a(2)}},e,null,[[1,,3,4]])}));return function(){return e.apply(this,arguments)}}();return function(t,n){return r(),x(C,{name:"floating-card"},{default:v(function(){var t;return[l.value?(r(),i("div",{key:0,class:m(["floating-task-card",{"is-collapsed":u.value}]),style:g(T.value)},[u.value?(r(),i("div",{key:0,class:"floating-card-icon",title:"展开任务卡片",onClick:n[0]||(n[0]=function(e){return u.value=!1})},[y(h(Q),{class:"w-22px h-22px text-primary"}),n[2]||(n[2]=c("span",{class:"floating-card-badge"},null,-1))])):(r(),i("div",ne,[c("div",{class:"floating-card-header",onMousedown:O},[c("div",re,[y(h(Q),{class:"w-14px h-14px text-primary"}),n[3]||(n[3]=c("span",{class:"text-small font-bold text-primary"},"进行中的任务",-1))]),c("div",ae,[c("button",{class:"floating-card-action-btn",title:"折叠",onClick:n[1]||(n[1]=b(function(e){return u.value=!0},["stop"]))},s(n[4]||(n[4]=[c("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"w-12px h-12px"},[c("polyline",{points:"18 15 12 9 6 15"})],-1)]))),c("button",{class:"floating-card-action-btn",title:"关闭",onClick:b(M,["stop"])},s(n[5]||(n[5]=[c("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"w-12px h-12px"},[c("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),c("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])))])],32),c("div",ie,[c("h3",oe,[w(k(e.task.title)+" ",1),e.task.completed?(r(),i("span",le,"已完成")):_("",!0),e.task.subTaskTotal&&e.task.subTaskTotal>1?(r(),i("span",{key:1,class:m(["text-extraSmall px-6px py-1px rounded-small font-normal",e.task.completed?"bg-[var(--el-color-success-light-9)] text-successDark":"bg-[var(--el-color-primary-light-9)] text-primary"])},k(null!==(t=e.task.subTaskCurrent)&&void 0!==t?t:0)+"/"+k(e.task.subTaskTotal),3)):_("",!0)]),c("p",se,k(e.task.description),1),c("div",ce,[c("span",ue," +"+k(e.task.reward)+" "+k(e.productInfo.unit)+" "+k(e.productInfo.name),1)])]),c("div",pe,[c("button",{class:"floating-card-open-btn",disabled:D.value,onClick:z},[y(h(te),{class:m(["w-11px h-11px",{"animate-spin":D.value}])},null,8,["class"]),w(" "+k(D.value?"刷新中...":"点击检查任务完成情况"),1)],8,de),c("button",{class:"floating-card-refresh-btn",onClick:S}," 打开活动中心 ")])]))],6)):_("",!0)]}),_:1})}}}),xe=null,ve=function(e){var t,n;xe&&document.body.contains(xe)&&document.body.removeChild(xe),xe=null;var r=document.createElement("div");xe=r;var a=j(fe,{task:e.task,productInfo:e.productInfo,initialTop:null!==(t=e.initialTop)&&void 0!==t?t:72,initialRight:null!==(n=e.initialRight)&&void 0!==n?n:20,onClose:function(){setTimeout(function(){document.body.contains(r)&&(a.unmount(),document.body.removeChild(r),xe===r&&(xe=null))},350)},onOpenDialog:e.onOpenDialog,onRefresh:e.onRefresh});return document.body.appendChild(r),a.mount(r),{close:function(){document.body.contains(r)&&(a.unmount(),document.body.removeChild(r),xe===r&&(xe=null))}}},me={xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 512 512"};var ge={render:function(e,t){return r(),i("svg",me,s(t[0]||(t[0]=[c("path",{fill:"currentColor","fill-rule":"evenodd",d:"M256 42.667C138.18 42.667 42.667 138.18 42.667 256S138.18 469.334 256 469.334 469.334 373.82 469.334 256 373.821 42.667 256 42.667m80.336 137.114 30.167 30.167-131.836 132.388-79.083-79.083 30.166-30.167 48.917 48.917z"},null,-1)])))}},ye={xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 24 24"};var he={render:function(e,t){return r(),i("svg",ye,s(t[0]||(t[0]=[c("path",{fill:"currentColor",d:"m8.243 7.34-6.38.925-.113.023a1 1 0 0 0-.44 1.684l4.622 4.499-1.09 6.355-.013.11a1 1 0 0 0 1.464.944l5.706-3 5.693 3 .1.046a1 1 0 0 0 1.352-1.1l-1.091-6.355 4.624-4.5.078-.085a1 1 0 0 0-.633-1.62l-6.38-.926-2.852-5.78a1 1 0 0 0-1.794 0z"},null,-1)])))}},be={xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 24 24"};var we={render:function(e,t){return r(),i("svg",be,s(t[0]||(t[0]=[c("path",{fill:"currentColor",d:"M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11z"},null,-1)])))}},ke={xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 24 24"};var _e={render:function(e,t){return r(),i("svg",ke,s(t[0]||(t[0]=[c("path",{fill:"currentColor",d:"m9.55 15.15 8.475-8.475q.3-.3.7-.3t.7.3.3.713-.3.712l-9.175 9.2q-.3.3-.7.3t-.7-.3L4.55 13q-.3-.3-.288-.712t.313-.713.713-.3.712.3z"},null,-1)])))}},Ce={key:0,class:"absolute inset-0 z-60 bg-[var(--el-bg-color)]/85 backdrop-blur-sm rounded-xl flex flex-col items-center justify-center gap-12px"},je={key:1,class:"absolute inset-0 z-50 bg-[var(--el-bg-color)]/80 backdrop-blur-sm rounded-xl flex flex-col items-center justify-center"},Te={class:"activity-center flex gap-24px px-12px text-default"},Ie={class:"mission-center w-[60%] flex flex-col"},Oe={class:"mb-16px"},Me={class:"flex items-center justify-between mb-6px"},Se={class:"flex flex-col"},De={class:"flex items-center gap-12px mb-[4px]"},Le={class:"text-13px text-secondary"},ze={key:0,class:"flex-1 flex flex-col"},Pe={class:"mb-12px bg-light p-4px rounded-extraLarge flex gap-4px"},Ae={class:"task-list flex-1 overflow-hidden space-y-8px max-h-[362px] min-h-[362px] pr-1"},Ee={class:"mb-12px relative z-10"},Re={class:"bg-light p-4px rounded-extraLarge flex gap-4px overflow-x-auto scrollbar-hide relative"},Fe=["onClick"],He={class:"text-13px"},Ve={class:"task-list flex-1 overflow-y-auto space-y-8px max-h-[362px] min-h-[362px] pr-1"},qe={key:0,class:"absolute inset-0 bg-gradient-to-r from-transparent via-[var(--el-color-success-light-9)] to-transparent opacity-30"},Be={class:"relative z-10"},Ye={class:"flex items-start justify-between mb-12px"},Ge={class:"flex-1"},Xe={class:"text-medium font-semibold mb-4px flex items-center gap-6px flex-wrap"},Ue={key:0,class:"text-[12px] px-6px py-1px bg-[var(--el-color-success-light-9)] text-success rounded-circle"},Ne={class:"text-small text-secondary leading-relaxed line-clamp-2"},We={class:"flex items-center justify-between"},Ze={key:0,class:"text-center py-32px"},$e={class:"mt-12px p-12px bg-gradient-to-r from-light bg-activity-to-color rounded-extraLarge"},Je={class:"flex items-center justify-between mb-8px"},Ke={class:"text-[14px] font-bold text-primary"},Qe={class:"checkin-station w-[40%] flex flex-col pt-8px"},et={class:"mb-12px min-h-[77px] p-14px bg-[var(--el-bg-color)] rounded-extraLarge relative overflow-hidden"},tt={key:0,class:"relative z-10 flex items-center justify-between py-0"},nt={key:1,class:"relative z-10 flex items-center justify-between py-0"},rt={class:"h-full flex flex-col justify-between"},at={class:"flex items-center gap-6px mb-4px"},it={key:0,class:"text-11px text-secondary pl-22px"},ot={key:1,class:"mt-5px"},lt={class:"inline-flex items-center gap-3px text-[12px] font-semibold px-6px py-2px rounded-large bg-[rgba(228,169,60,0.12)] text-[#e4a93c] leading-relaxed"},st={class:"mx-2px font-bold"},ct={class:"text-center px-12px py-6px bg-light rounded-10px shadow-sm"},ut={class:"text-28px font-bold text-primary leading-none pro-days-number"},pt={key:0,class:"mb-10px bg-gradient-to-br bg-activity-form-color bg-activity-via-color to-[var(--el-fill-color-light)] rounded-extraLarge p-10px overflow-hidden relative"},dt={class:"flex items-center justify-between my-10px pl-6px"},ft={class:"flex items-center gap-5px"},xt={class:"text-[12px] text-secondary bg-light px-5px py-1px rounded-lg"},vt={class:"font-semibold text-primary text-[14px]"},mt={class:"pl-6px flex flex-col gap-6px"},gt={class:"flex items-center gap-5px"},yt={key:1,class:"w-8px h-8px rounded-full bg-primary flex-shrink-0"},ht={class:"text-[12px] text-default"},bt={class:"flex items-center justify-center mt-10px"},wt={key:1,class:"mb-10px bg-light rounded-extraLarge p-10px"},kt={class:"calendar-container flex-1 bg-[var(--el-bg-color)] rounded-extraLarge p-8px flex flex-col"},_t={class:"flex items-center justify-between mb-6px pl-[6px] h-[20px]"},Ct={class:"flex items-center gap-6px"},jt={class:"flex items-center gap-6px"},Tt={class:"text-[12px] text-secondary"},It={class:"text-[14px] text-primary"},Ot={class:"calendar-header grid grid-cols-7 gap-2px mb-3px"},Mt={key:0,class:"calendar-body flex flex-col gap-2px flex-1"},St={key:1,class:"calendar-body flex flex-col gap-2px flex-1"},Dt={key:0},Lt={key:0},zt={class:"mt-8px"},Pt={key:0,class:"text-11px font-semibold opacity-90 mt-2 flex justify-center text-[#e4a93c]"},At={key:1,class:"text-11px font-normal opacity-85 mt-2 flex justify-center"},Et={class:"font-semibold text-primary"},Rt={class:"text-[#e4a93c]"},Ft={class:"flex flex-col gap-12px p-[16px]"},Ht={class:"p-12px bg-light rounded-large border border-lighter mb-4px"},Vt={class:"text-secondary text-14px leading-relaxed"},qt={class:"flex items-center gap-6px"},Bt={class:"flex-1 min-w-0"},Yt={class:"text-small text-secondary truncate"},Gt={key:0,class:"reward-badge flex items-center gap-2px px-8px py-4px rounded-large bg-activity-color flex-shrink-0"},Xt={class:"text-medium font-bold text-primary leading-none"},Ut={class:"text-[12px] text-primary font-medium"},Nt={class:"text-secondary leading-[2rem] opacity-85 text-[12px]"},Wt={class:"text-secondary leading-[2rem] opacity-85 text-[12px]"},Zt={class:"text-[#e4a93c]"},$t={class:"text-[#e4a93c]"},Jt={class:"text-[#e4a93c]"},Kt=".php_site_settings",Qt=".php_site_backup",en=".add-site-btn",tn=u({__name:"ActivityCenter",setup:function(e){var n=Z(),u=H().payment,b=f(function(){return u.bindUser}),j=X(),N=function(){var e=a(t().m(function e(){var r;return t().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,q({type:"calc",title:"活动奖励结算",content:"结算活动奖励后将无法继续参与活动,是否确认结算?"});case 1:return e.n=2,K();case 2:r=e.v,j.request(r),r.status&&n.setEnded(!0),e.n=4;break;case 3:e.p=3,e.v;case 4:return e.a(2)}},e,null,[[0,3]])}));return function(){return e.apply(this,arguments)}}(),W=function(){B(),J({disablePro:!1})},ee=p(),ne=p(80),re=d({visible:!1,type:"success",title:"",message:"",reward:void 0,unit:"天"}),ae=null,ie=function(e){if(ae&&clearTimeout(ae),ee.value){var t=ee.value.getBoundingClientRect();ne.value=window.innerHeight-t.top-20}Object.assign(re,o({visible:!0},e)),ae=setTimeout(function(){re.visible=!1},3e3)},oe=p([]),le=d({left:"0px",width:"0px"}),se=function(){var e=n.taskCategories.findIndex(function(e){return e.id===n.activeCategory});if(-1!==e&&oe.value[e]){var t=oe.value[e];le.left="".concat(t.offsetLeft,"px"),le.width="".concat(t.offsetWidth,"px")}};T(function(){return n.activeCategory},function(){O(function(){se()})}),T(function(){return n.loading},function(e){e||O(function(){se()})}),T(function(){return n.newlyCompletedTasks},function(e){e.length>0&&(e.forEach(function(e,t){setTimeout(function(){fe();var t=n.getProductInfo(e.productId);ie({type:"success",title:"🎉 任务完成!",message:"恭喜您完成任务「".concat(e.title,"」"),reward:e.reward,unit:t.unit})},800*t)}),n.clearNewlyCompletedTasks())},{deep:!0,immediate:!0});var ce=function(){var e=a(t().m(function e(){var r,a;return t().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,q({type:"default",title:"彻底关闭当前活动",content:"关闭后将不再显示该活动,是否继续?"});case 1:return e.n=2,K();case 2:r=e.v,j.request(r),r.status&&(n.setEnded(!0),null===(a=on())||void 0===a||a()),e.n=4;break;case 3:e.p=3,e.v;case 4:return e.a(2)}},e,null,[[0,3]])}));return function(){return e.apply(this,arguments)}}();I(function(){n.fetchActivityData(),O(function(){se(),function(){var e,t=null===(e=ee.value)||void 0===e||null===(e=e.closest(".el-dialog"))||void 0===e?void 0:e.querySelector(".el-dialog__header");if(t&&!t.querySelector("[data-dismiss-activity-btn]")){var n=document.createElement("button");n.setAttribute("data-dismiss-activity-btn","true"),n.textContent="不再提示该活动",Object.assign(n.style,{position:"absolute",right:"52px",top:"50%",transform:"translateY(-50%)",fontSize:"12px",padding:"3px 10px",borderRadius:"12px",border:"1px solid var(--el-border-color)",background:"transparent",color:"var(--el-text-color-secondary)",cursor:"pointer",transition:"all 0.2s",whiteSpace:"nowrap",zIndex:"1"}),n.addEventListener("mouseenter",function(){n.style.color="var(--el-color-danger)",n.style.borderColor="var(--el-color-danger)",n.style.background="var(--el-color-danger-light-9)"}),n.addEventListener("mouseleave",function(){n.style.color="var(--el-text-color-secondary)",n.style.borderColor="var(--el-border-color)",n.style.background="transparent"}),n.addEventListener("click",ce),t.style.position="relative",t.appendChild(n)}}()}),window.addEventListener("resize",se)});var ue=["日","一","二","三","四","五","六"],pe=f(function(){var e=new Date,t=e.getFullYear(),r=e.getMonth(),a=new Date(t,r,1),i=new Date(a);i.setDate(i.getDate()-a.getDay());for(var o=new Date(i),l=n.activityTimeRange.dayTime,s=[],c=0;c<6;c++){for(var u=[],p=0;p<7;p++){var d=o.getFullYear(),f=String(o.getMonth()+1).padStart(2,"0"),x=String(o.getDate()).padStart(2,"0"),v="".concat(d,"-").concat(f,"-").concat(x),m=o.getMonth()===r,g=v===l;u.push({date:v,day:o.getDate(),isCurrentMonth:m,isToday:g,isCheckedIn:n.isDateCheckedIn(v)}),o.setDate(o.getDate()+1)}u.some(function(e){return e.isCurrentMonth})&&s.push(u)}return s}),de=function(e){var t=[];return e.isCheckedIn?(t.push("bg-activity-color"),t.push("text-primary"),t.push("font-bold"),t.push("shadow-sm")):e.isToday?(t.push("border-2 border-primary"),t.push("text-primary"),t.push("font-bold"),t.push("animate-pulse-soft")):(t.push("text-secondary"),t.push("hover:bg-light"),t.push("hover:scale-110")),t.join(" ")},fe=function(e){var t={origin:{y:.7},zIndex:9999};function n(e,n){F(o(o(o({},t),n),{},{particleCount:Math.floor(200*e)}))}n(.25,{spread:26,startVelocity:55}),n(.2,{spread:60}),n(.35,{spread:100,decay:.91,scalar:.8}),n(.1,{spread:120,startVelocity:25,decay:.92,scalar:1.2}),n(.1,{spread:120,startVelocity:45})},xe=p(!1),me=p(""),ye=p(""),be=f(function(){return n.inviteUrl||"curl -sSO https://download.bt.cn/install/install_panel.sh && bash install_panel.sh copy"}),ke=M({legacy:!0}),tn=ke.copy,nn=ke.isSupported,rn=function(){var e=a(t().m(function e(){return t().w(function(e){for(;;)switch(e.p=e.n){case 0:if(nn.value){e.n=1;break}return j.error("当前浏览器不支持复制功能"),e.a(2);case 1:return e.p=1,e.n=2,tn(be.value);case 2:j.success("复制成功"),e.n=4;break;case 3:e.p=3,e.v,j.error("复制失败");case 4:return e.a(2)}},e,null,[[1,3]])}));return function(){return e.apply(this,arguments)}}(),an=R(),on=function(){var e=null==an?void 0:an.appContext.app.config.globalProperties.close;return"function"==typeof e?e:null},ln=function(e){me.value=(null==e?void 0:e.title)||"分享活动",ye.value=(null==e?void 0:e.description)||"",xe.value=!0},sn=function(){Ln()},cn=function(e,r){var i;ve({task:o({},e),productInfo:n.getProductInfo(e.productId),onOpenDialog:function(){return n.triggerOpenDialog()},onRefresh:(i=a(t().m(function r(){var a,i,o;return t().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,n.fetchActivityData();case 1:return i=n.tasks.find(function(t){return t.id===e.id}),o=null!==(a=null==i?void 0:i.completed)&&void 0!==a&&a,t.a(2,o)}},r)})),function(){return i.apply(this,arguments)})}),null==r||r()},un=new V({humanize:!0}),pn=function(){var e=a(t().m(function e(n){return t().w(function(e){for(;;)switch(e.n){case 0:return un.exec(a(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:if("/site/php"===U.currentRoute.value.path){e.n=1;break}return e.n=1,U.push("/site/php");case 1:return e.a(2)}},e)})),"跳转到站点管理"),n(un),e.n=1,un.run();case 1:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),dn=function(e){return e.waitFor(Kt,{timeout:5e3}).wait(500).click(Kt).wait(500)},fn=function(){return pn(function(e){return e.waitFor(en,{timeout:5e3}).wait(500).click(en)})},xn=function(){return pn(function(e){return e.waitFor(en,{timeout:5e3}).wait(500).click(en).click("#tab-addDeployment")})},vn=function(){return pn(function(e){dn(e).click("#tab-pseudo")})},mn=function(){return pn(function(e){dn(e).click("#tab-ssl").wait(1e3).click("#tab-letsEncryptList")})},gn=function(){return pn(function(e){dn(e).click("#tab-ssl").wait(1e3).click("#tab-busSslList")})},yn=function(){var e=a(t().m(function e(n,r){var i,o,l,s,c;return t().w(function(e){for(;;)switch(e.n){case 0:return un.exec(a(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:if("/soft/plugin"===U.currentRoute.value.path){e.n=1;break}return e.n=1,U.push("/soft/plugin");case 1:return e.a(2)}},e)})),"跳转到软件商店").wait(500),e.n=1,un.run();case 1:return(i=document.querySelector(".class-item"))&&!i.classList.contains("on")&&un.click(".class-item").wait(500),un.waitFor(".plugin_search_input input",{timeout:5e3}).wait(500).click(".plugin_search_input input").input(".plugin_search_input input",n,{clear:!0}).click(".plugin_search_input .el-button").wait(1500),e.n=2,un.run();case 2:if(o=Array.from(document.querySelectorAll(".soft_plugin_install")),!(l=o.find(function(e){return e.getAttribute("data-soft")===r}))){e.n=4;break}return un.click(l),e.n=3,un.run();case 3:case 5:return e.a(2);case 4:if(s=Array.from(document.querySelectorAll(".soft_plugin_settings")),!(c=s.find(function(e){return e.getAttribute("data-soft")===r}))){e.n=5;break}return un.click(c),e.n=5,un.run()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),hn=function(){var e=a(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,yn("nginx waf","btwaf");case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),bn=function(){var e=a(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,yn("网站监控报表","monitor");case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),wn=function(){var e=a(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,yn("多面板管理","node_manager");case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),kn=function(){var e=a(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,yn("宝塔AI助手","bt_agent");case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),_n=function(){var e=a(t().m(function e(){var n,r,i=arguments;return t().w(function(e){for(;;)switch(e.n){case 0:return n=i.length>0&&void 0!==i[0]?i[0]:"WordPress",r=i.length>1&&void 0!==i[1]?i[1]:"wordpress",un.exec(a(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:if("/docker/appstore"===U.currentRoute.value.path){e.n=1;break}return e.n=1,U.push("/docker/appstore");case 1:return e.a(2)}},e)})),"跳转到Docker应用商店").waitFor(".docker-app-list .class-item",{timeout:5e3}).click(".docker-app-list .class-item").waitFor(".docker_appstore_search",{timeout:5e3}).click(".docker_appstore_search").input(".docker_appstore_search input",n,{clear:!0}).click(".docker_appstore_search .el-button").waitFor('.docker_install_app[data-soft="'.concat(r||n,'"]'),{timeout:5e3}).click('.docker_install_app[data-soft="'.concat(r||n,'"]')),e.n=1,un.run();case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),Cn=function(){var e=a(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:return un.exec(a(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:if("/docker/orchestration"===U.currentRoute.value.path){e.n=1;break}return e.n=1,U.push("/docker/orchestration");case 1:return e.a(2)}},e)})),"跳转到容器编排").waitFor(".add_dialog_compose",{timeout:5e3}).wait(500).click(".add_dialog_compose"),e.n=1,un.run();case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),jn=function(){var e=a(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:return un.exec(a(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:if("/firewall/server-safe"===U.currentRoute.value.path){e.n=1;break}return e.n=1,U.push("/firewall/server-safe");case 1:return e.a(2)}},e)})),"跳转到服务器安全"),e.n=1,un.run();case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),Tn=function(){return pn(function(e){e.waitFor(Qt,{timeout:5e3}).wait(500).click(Qt).wait(500).click(".php_packup_btn")})},In=function(){var e=a(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:return un.exec(a(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:if("/crontab/task"===U.currentRoute.value.path){e.n=1;break}return e.n=1,U.push("/crontab/task");case 1:return e.a(2)}},e)})),"跳转到定时任务").waitFor(".crontab_add_task",{timeout:5e3}).wait(500).click(".crontab_add_task").waitFor(".crontab_task_type .el-select__wrapper",{timeout:5e3}).wait(500).click(".crontab_task_type .el-select__wrapper").waitFor('.el-popper[aria-hidden="false"] .el-select-dropdown__list',{timeout:5e3}).wait(500).click('.el-popper[aria-hidden="false"] .el-select-dropdown__item:nth-child(3)'),e.n=1,un.run();case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),On=function(){var e=a(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,yn("OpenClaw","dk_openclaw");case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),Mn=function(){var e=a(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,_n("deepseek_r1","deepseek_r1");case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),Sn=function(){var e=a(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,_n("ollama_and_openwebui","ollama_and_openwebui");case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),Dn=function(){var e=a(t().m(function e(r){var a,i,o;return t().w(function(e){for(;;)switch(e.n){case 0:if(a=n.tasks.find(function(e){return e.id===r}),i=on(),"1"!==r&&"666"!==r){e.n=1;break}return ln(a),e.a(2);case 1:if("2"!==r){e.n=2;break}return sn(),e.a(2);case 2:a&&cn(a,i),B(),o=r,e.n="3"===o?3:"4"===o?5:"5"===o?7:"6"===o?9:"7"===o?11:"8"===o?13:"9"===o?15:"10"===o?17:"11"===o?19:"12"===o?21:"13"===o?23:"14"===o?25:"15"===o||"16"===o?27:"22"===o||"23"===o?29:"24"===o?31:"25"===o?33:"26"===o?35:37;break;case 3:return e.n=4,fn();case 4:case 6:case 8:case 10:case 12:case 14:case 16:case 18:case 20:case 22:case 24:case 26:case 28:case 30:case 32:case 34:case 36:return e.a(3,37);case 5:return e.n=6,xn();case 7:return e.n=8,vn();case 9:return e.n=10,mn();case 11:return e.n=12,gn();case 13:return e.n=14,hn();case 15:return e.n=16,bn();case 17:return e.n=18,_n();case 19:return e.n=20,Cn();case 21:return e.n=22,jn();case 23:return e.n=24,Tn();case 25:return e.n=26,In();case 27:return e.n=28,wn();case 29:return e.n=30,kn();case 31:return e.n=32,On();case 33:return e.n=34,Mn();case 35:return e.n=36,Sn();case 37:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),Ln=function(){var e=a(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,n.performCheckIn();case 1:e.v?(setTimeout(function(){fe()},100),ie({type:"success",title:"✨ 签到成功!",message:"每日签到奖励已发放,记得明天再来哦~",reward:1,unit:"天"})):ie({type:"warning",title:"😊 已经签到过啦",message:"今日已签到,明天再来吧~"});case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),zn=function(){var e=a(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,n.fetchActivityData();case 1:j.success("任务列表已刷新");case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return function(e,t){var a,o,u,p,d,f,j,T=L,I=z,O=P,M=A,R=E,F=Y,H=G;return r(),i("div",{ref_key:"containerRef",ref:ee,class:"flex flex-col relative"},[b.value?_("",!0):(r(),i("div",Ce,[t[6]||(t[6]=l('<div class="flex items-center justify-center w-64px h-64px rounded-circle bg-[var(--el-color-warning-light-9)] mb-4px" data-v-a56e7856><svg xmlns="http://www.w3.org/2000/svg" class="w-36px h-36px text-warning" viewBox="0 0 24 24" fill="currentColor" data-v-a56e7856><path d="M12 2a5 5 0 1 1 0 10A5 5 0 0 1 12 2zm0 12c5.33 0 8 2.67 8 4v2H4v-2c0-1.33 2.67-4 8-4z" data-v-a56e7856></path><path d="M18.4 2.6A2 2 0 1 1 21 5.2" stroke="currentColor" stroke-width="1.5" fill="none" stroke-linecap="round" data-v-a56e7856></path><line x1="21" y1="6" x2="20" y2="7" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" data-v-a56e7856></line><circle cx="20" cy="10" r="1" fill="currentColor" data-v-a56e7856></circle></svg></div><h2 class="text-extraLarge font-bold mb-4px" data-v-a56e7856>当前用户未绑定账号</h2><p class="text-[14px] text-secondary text-center px-32px" data-v-a56e7856>当前活动需要绑定宝塔账号才能参与,请先绑定账号后再来领取奖励!</p>',3)),y(T,{type:"primary",round:"",size:"large",class:"mt-8px",onClick:t[0]||(t[0]=function(e){return h($)(b.value?"切换宝塔账号":"绑定宝塔账号,享受更多服务")})},{default:v(function(){return s(t[5]||(t[5]=[w(" 绑定宝塔账号 ",-1)]))}),_:1})])),h(n).isEnded?(r(),i("div",je,[y(h(ge),{class:"w-64px h-64px text-success mb-16px"}),t[8]||(t[8]=c("h2",{class:"text-extraLarge font-bold mb-8px"},"任务已结算或活动已结束",-1)),c("p",{class:"text-[14px] text-secondary"},[t[7]||(t[7]=w("快去体验更多高级功能吧!",-1)),c("span",{class:"text-primary cursor-pointer",onClick:W},"查看抵扣券")])])):_("",!0),c("div",Te,[c("div",Ie,[c("div",Oe,[c("div",Me,[c("div",Se,[c("div",De,[y(h(Q),{class:"w-24px h-24px text-primary"}),t[9]||(t[9]=c("h2",{class:"text-extraLarge font-bold"},"任务中心",-1))]),c("p",Le,"完成任务+签到,最高获得"+k(((null===(a=h(n).pullConfig)||void 0===a?void 0:a.sign_in_reward_limit)||0)+((null===(o=h(n).pullConfig)||void 0===o?void 0:o.task_reward_limit)||0))+"天专业版使用权!分享邀请领取的专业版无上限。",1)]),y(T,{type:"primary",plain:"",size:"small",loading:h(n).loading,onClick:zn},{default:v(function(){return[y(h(te),{class:"w-14px h-14px mr-4px"}),t[10]||(t[10]=w(" 刷新 ",-1))]}),_:1},8,["loading"])])]),h(n).loading?(r(),i("div",ze,[c("div",Pe,[(r(),i(S,null,D(4,function(e){return c("div",{key:e,class:"flex-1 h-31px bg-base rounded-large animate-pulse"})}),64))]),c("div",Ae,[(r(),i(S,null,D(3,function(e){return c("div",{key:e,class:"bg-[var(--el-bg-color)] rounded-extraLarge p-16px border border-lighter"},s(t[11]||(t[11]=[l('<div class="flex items-start justify-between mb-12px" data-v-a56e7856><div class="flex-1" data-v-a56e7856><div class="h-20px bg-base rounded-base w-60% mb-4px animate-pulse" data-v-a56e7856></div><div class="h-18px bg-base rounded-base w-100% animate-pulse mt-4px" data-v-a56e7856></div></div><div class="ml-12px w-40px h-40px rounded-circle bg-base animate-pulse" data-v-a56e7856></div></div><div class="flex items-center justify-between mt-2px" data-v-a56e7856><div class="h-22px bg-base rounded-small w-120px animate-pulse" data-v-a56e7856></div><div class="h-24px bg-base rounded-extraLarge w-70px animate-pulse" data-v-a56e7856></div></div>',2)])))}),64))]),t[12]||(t[12]=l('<div class="mt-12px p-12px bg-gradient-to-r from-light bg-activity-to-color rounded-extraLarge" data-v-a56e7856><div class="flex items-center justify-between mb-8px" data-v-a56e7856><div class="h-14px bg-base rounded-base w-80px animate-pulse" data-v-a56e7856></div><div class="h-16px bg-base rounded-base w-40px animate-pulse" data-v-a56e7856></div></div><div class="h-6px bg-base rounded-base w-100% animate-pulse" data-v-a56e7856></div></div>',1))])):(r(),i(S,{key:1},[c("div",Ee,[c("div",Re,[c("div",{class:"absolute top-4px bottom-4px bg-[var(--el-bg-color)] rounded-large transition-all duration-300 ease-out pointer-events-none z-0",style:g(le)},null,4),(r(!0),i(S,null,D(h(n).taskCategories.filter(function(e){return"0"!==e.id}),function(e,t){return r(),i("div",{key:e.id,ref_for:!0,ref:function(e){e&&(oe.value[t]=e)},class:m(["flex-1 min-w-max px-12px py-6px rounded-large cursor-pointer transition-colors duration-300 text-center flex items-center justify-center whitespace-nowrap z-10 relative",h(n).activeCategory===e.id?"text-primary font-bold":"text-secondary hover:text-default"]),onClick:function(t){return r=e.id,void n.setActiveCategory(r);var r}},[c("span",He,k(e.name),1)],10,Fe)}),128))])]),c("div",Ve,[(r(!0),i(S,null,D(h(n).currentCategoryTasks,function(e){var t;return r(),i("div",{key:e.id,class:m(["task-card group relative bg-[var(--el-bg-color)] rounded-extraLarge p-16px transition-all duration-300 border border-lighter overflow-hidden",{"task-completed":e.completed}])},[e.completed?(r(),i("div",qe)):_("",!0),c("div",Be,[c("div",Ye,[c("div",Ge,[c("h3",Xe,[w(k(e.title)+" ",1),e.completed?(r(),i("span",Ue,"已完成")):_("",!0),e.subTaskTotal&&e.subTaskTotal>1?(r(),i("span",{key:1,class:m(["text-[12px] px-6px py-1px rounded-circle font-normal",e.completed?"bg-[var(--el-color-success-light-9)] text-successDark":"bg-activity-color text-primary"])},k(null!==(t=e.subTaskCurrent)&&void 0!==t?t:0)+"/"+k(e.subTaskTotal),3)):_("",!0)]),c("p",Ne,k(e.description),1)]),c("div",{class:m(["ml-12px flex items-center justify-center w-40px h-40px rounded-circle flex-shrink-0 transition-all duration-300",e.completed?"bg-[var(--el-color-success-light-9)] text-success scale-110":"bg-activity-color text-primary group-hover:scale-110"])},[e.completed?(r(),x(h(ge),{key:0,class:"w-20px h-20px"})):(r(),x(h(Q),{key:1,class:"w-20px h-20px"}))],2)]),c("div",We,[c("div",{class:"flex items-center gap-6px px-10px py-4px bg-activity-color rounded-small",style:g({backgroundColor:h(n).getPluginColor(e.productId)})},[c("span",{class:"text-small font-bold text-primary",style:g({color:10000032===e.productId?"#E4A93C":""})}," +"+k(e.reward)+" "+k(h(n).getProductInfo(e.productId).unit)+" "+k(h(n).getProductInfo(e.productId).name),5)],4),y(T,{type:e.completed?"success":"primary",size:"small",plain:!e.completed,round:"",disabled:e.completed,class:m(["task-btn transition-all duration-300",!e.completed&&"hover:scale-105 active:scale-95"]),onClick:function(t){return Dn(e.id)}},{default:v(function(){return[e.completed?(r(),x(h(_e),{key:0,class:"mr-4px w-12px h-12px"})):(r(),x(h(we),{key:1,class:"mr-4px w-12px h-12px"})),w(" "+k(e.completed?"已完成":"去完成"),1)]}),_:2},1032,["type","plain","disabled","class","onClick"])])])],2)}),128)),0===h(n).currentCategoryTasks.length?(r(),i("div",Ze,s(t[13]||(t[13]=[c("p",{class:"text-13px text-secondary"},"暂无任务",-1)])))):_("",!0)]),c("div",$e,[c("div",Je,[t[14]||(t[14]=c("span",{class:"text-small text-secondary font-medium"},"全部任务进度",-1)),c("span",Ke,k(h(n).completedTaskCount)+" / "+k(h(n).totalTaskCount),1)]),y(I,{percentage:h(n).totalTaskCount>0?h(n).completedTaskCount/h(n).totalTaskCount*100:0,"show-text":!1,"stroke-width":6,class:"progress-bar"},null,8,["percentage"])])],64))]),c("div",Qe,[c("div",et,[h(n).loading?(r(),i("div",tt,s(t[15]||(t[15]=[c("div",{class:"flex-1"},[c("div",{class:"h-16px bg-base rounded-base w-120px mb-4px animate-pulse"}),c("div",{class:"h-14px bg-base rounded-base w-80% animate-pulse"})],-1),c("div",{class:"w-60px h-60px bg-base rounded-10px animate-pulse"},null,-1)])))):(r(),i("div",nt,[c("div",rt,[c("div",at,[y(h(he),{class:"w-16px h-16px text-primary"}),t[16]||(t[16]=c("h2",{class:"text-medium font-bold"},"免费领取专业版天数",-1))]),0===h(n).entMonths?(r(),i("p",it,"畅享专业版服务")):_("",!0),h(n).entMonths>0?(r(),i("div",ot,[c("span",lt,[t[17]||(t[17]=w(" 恭喜您,已额外获得",-1)),c("span",st,k(h(n).entMonths),1),t[18]||(t[18]=w("个月企业版 ",-1))])])):_("",!0)]),c("div",ct,[c("div",ut,k(h(n).proDays),1),t[19]||(t[19]=c("div",{class:"text-[12px] text-secondary mt-2px font-medium"},"累计天数",-1))])]))]),!h(n).loading&&h(n).shareTasks.length>0?(r(),i("div",pt,[t[24]||(t[24]=c("div",{class:"absolute top-0 right-0 w-100px h-100px bg-primary opacity-5 rounded-circle -translate-y-1/2 translate-x-1/2 pointer-events-none"},null,-1)),t[25]||(t[25]=c("div",{class:"absolute bottom-0 left-0 w-60px h-60px bg-primary opacity-5 rounded-circle translate-y-1/2 -translate-x-1/2 pointer-events-none"},null,-1)),c("div",dt,[c("div",ft,[t[22]||(t[22]=c("span",{class:"text-[14px] font-bold text-default"},"分享专区",-1)),c("span",xt,[t[20]||(t[20]=w(" 已邀请 ",-1)),c("span",vt,k(h(n).pullCount),1),t[21]||(t[21]=w(" 人 ",-1))])])]),c("div",mt,[(r(!0),i(S,null,D(h(n).shareTasks,function(e){var t;return r(),i("div",{key:e.id,class:"flex items-center justify-between"},[c("div",gt,[e.completed?(r(),x(h(_e),{key:0,class:"w-11px h-11px text-success"})):(r(),i("span",yt)),c("span",ht,k(e.title),1)]),c("span",{class:m(["text-[12px] font-bold px-6px py-4px rounded-medium flex-shrink-0 whitespace-nowrap",e.completed&&10000032===e.productId&&h(n).entMonths>0?"bg-[rgba(228,169,60,0.12)] text-[#e4a93c]":e.completed?"bg-[var(--el-color-success-light-9)] text-success":"bg-activity-color text-primary"]),style:g(e.completed||10000032!==e.productId?{}:{color:"#E4A93C"})},[10000032===e.productId&&h(n).entMonths>0?(r(),i(S,{key:0},[w(" 已获得"+k(null===(t=h(n).pullConfig)||void 0===t||null===(t=t.pull_count)||void 0===t?void 0:t.reward_1)+"个月企业版 ",1)],64)):(r(),i(S,{key:1},[w(" +"+k(e.reward)+k(h(n).getProductInfo(e.productId).unit)+k(h(n).getProductInfo(e.productId).name),1)],64))],6)])}),128))]),c("div",bt,[y(T,{type:"primary",round:"",class:"flex-shrink-0 w-full",onClick:rn},{default:v(function(){return s(t[23]||(t[23]=[c("i",{class:"svgtofont-el-document-copy mr-[4px]"},null,-1),w(" 复制分享安装命令 ",-1)]))}),_:1})])])):_("",!0),h(n).loading?(r(),i("div",wt,s(t[26]||(t[26]=[l('<div class="flex items-center gap-6px my-10px pl-6px" data-v-a56e7856><div class="h-14px bg-base rounded-base w-48px animate-pulse" data-v-a56e7856></div><div class="h-16px bg-base rounded-large w-56px animate-pulse" data-v-a56e7856></div></div><div class="pl-6px pr-2px" data-v-a56e7856><div class="h-8px bg-base rounded-circle w-full animate-pulse mb-2px" data-v-a56e7856></div><div class="flex justify-between mt-10px" data-v-a56e7856><div class="h-10px bg-base rounded-base w-24px animate-pulse" data-v-a56e7856></div><div class="h-10px bg-base rounded-base w-72px animate-pulse" data-v-a56e7856></div></div></div><div class="mt-10px h-32px bg-base rounded-extraLarge animate-pulse" data-v-a56e7856></div>',3)])))):_("",!0),c("div",kt,[c("div",_t,[c("div",Ct,[t[27]||(t[27]=c("h3",{class:"text-[14px] font-semibold"},"签到日历",-1)),h(n).loading?_("",!0):(r(),i("span",{key:0,class:m(["inline-flex items-center gap-2px text-12px py-[4px] px-[8px] font-semibold rounded-lg leading-none transition-all duration-300",[h(n).isCheckedInToday?"bg-[var(--el-color-success-light-9)] text-success cursor-default":"bg-[var(--el-color-warning-light-9)] text-warning cursor-pointer hover:scale-105 active:scale-95"]]),onClick:t[1]||(t[1]=function(e){return!h(n).isCheckedInToday&&!h(n).loading&&Ln()})},[c("span",{class:m(["w-5px h-5px rounded-full flex-shrink-0",h(n).isCheckedInToday?"bg-success":"bg-warning"])},null,2),w(" "+k(h(n).isCheckedInToday?"今日已签":"今日未签,点击签到"),1)],2))]),c("div",jt,[c("div",Tt,[t[28]||(t[28]=w(" 已签到 ",-1)),c("span",It,k(h(n).checkInHistory.length),1),t[29]||(t[29]=w(" 天 ",-1))])])]),c("div",Ot,[(r(),i(S,null,D(ue,function(e){return c("div",{key:e,class:"text-center text-10px text-secondary font-semibold"},k(e),1)}),64))]),h(n).loading?(r(),i("div",Mt,[(r(!0),i(S,null,D(pe.value.length,function(e){return r(),i("div",{key:e,class:"flex-1 grid grid-cols-7 gap-2px py-2px"},[(r(),i(S,null,D(7,function(e){return c("div",{key:e,class:"calendar-date"},s(t[30]||(t[30]=[c("div",{class:"date-cell w-full h-full rounded-base bg-base animate-pulse"},null,-1)])))}),64))])}),128))])):(r(),i("div",St,[(r(!0),i(S,null,D(pe.value,function(e,a){return r(),i("div",{key:a,class:"flex-1 grid grid-cols-7 gap-2px py-2px"},[(r(!0),i(S,null,D(e,function(e){return r(),i("div",{key:e.date,class:"calendar-date"},[e.isCurrentMonth&&e.isToday?(r(),x(O,{key:0,content:h(n).isCheckedInToday?"今日已签到 ✓":"点击签到,+1 天专业版",placement:"top","popper-class":"activity-checkin-tooltip",enterable:!1,visible:!h(n).isCheckedInToday||void 0,"popper-style":h(n).isCheckedInToday?"":"background: var(--el-color-primary); border-color: var(--el-color-primary); --el-tooltip-bg-color: var(--el-color-primary); --el-popper-border-color: var(--el-color-primary); --el-text-color-primary: var(--el-color-primary);",effect:h(n).isCheckedInToday?"dark":"custom"},{default:v(function(){return[c("div",{class:m(["date-cell w-full h-full rounded-base flex items-center justify-center text-11px font-medium transition-all duration-200",[de(e),h(n).isCheckedInToday||h(n).loading?"cursor-default":"cursor-pointer hover:scale-110 active:scale-95"]]),onClick:t[2]||(t[2]=function(e){return!h(n).isCheckedInToday&&!h(n).loading&&Ln()})},[e.isCheckedIn?(r(),x(h(_e),{key:1,class:"w-12px h-12px text-primary animate-scale-in"})):(r(),i("span",Dt,k(e.day),1))],2)]}),_:2},1032,["content","visible","popper-style","effect"])):e.isCurrentMonth?(r(),i("div",{key:1,class:m(["date-cell w-full h-full rounded-base flex items-center justify-center text-11px font-medium transition-all duration-200 cursor-default",de(e)])},[e.isCheckedIn?(r(),x(h(_e),{key:1,class:"w-12px h-12px text-primary animate-scale-in"})):(r(),i("span",Lt,k(e.day),1))],2)):_("",!0)])}),128))])}),128))]))]),c("div",zt,[h(n).checkInHistory.length>=((null===(u=h(n).pullConfig)||void 0===u?void 0:u.sign_in_count.sign_in_count)||999)?(r(),i("span",Pt," 已满足签到惊喜彩蛋条件,额外获得 "+k(null===(p=h(n).pullConfig)||void 0===p?void 0:p.sign_in_count.reward_1)+"个月 企业版 🎉 ",1)):(r(),i("span",At,[t[31]||(t[31]=w(" 每日签到 ",-1)),c("span",Et,"+"+k(null===(d=h(n).pullConfig)||void 0===d?void 0:d.sign_in_reward)+"天专业版",1),w(",签到满"+k(null===(f=h(n).pullConfig)||void 0===f?void 0:f.sign_in_count.sign_in_count)+"天,即可获得",1),c("span",Rt,k(null===(j=h(n).pullConfig)||void 0===j?void 0:j.sign_in_count.reward_1)+"个月企业版",1),t[32]||(t[32]=w("。 ",-1))]))])]),y(R,{modelValue:xe.value,"onUpdate:modelValue":t[4]||(t[4]=function(e){return xe.value=e}),title:me.value,width:"500px","align-center":"",class:"share-dialog"},{default:v(function(){return[c("div",Ft,[c("div",Ht,[c("p",Vt,k(ye.value),1)]),t[34]||(t[34]=c("p",{class:"text-secondary text-[14px] font-medium"},"请复制以下命令分享并安装:",-1)),c("div",qt,[y(M,{modelValue:be.value,"onUpdate:modelValue":t[3]||(t[3]=function(e){return be.value=e}),readonly:"",class:"flex-1 cursor-pointer",title:"点击复制命令",onClick:rn},null,8,["modelValue"]),y(T,{type:"primary",onClick:rn},{default:v(function(){return s(t[33]||(t[33]=[w(" 复制分享安装命令 ",-1)]))}),_:1})])])]}),_:1},8,["modelValue","title"]),y(C,{name:"notification-fade"},{default:v(function(){return[re.visible?(r(),i("div",{key:0,class:"activity-notification fixed left-1/2 -translate-x-1/2 z-99999 bg-base flex items-center gap-8px px-14px py-10px rounded-extraLarge shadow-lg max-w-500px",style:g({bottom:ne.value+"px"})},[c("div",{class:m(["notification-icon w-36px h-36px rounded-circle flex items-center justify-center flex-shrink-0","success"===re.type?"bg-success":"bg-[var(--el-color-warning)]"])},["success"===re.type?(r(),x(h(ge),{key:0,class:"w-20px h-20px text-white"})):(r(),x(h(Q),{key:1,class:"w-20px h-20px text-white"}))],2),c("div",Bt,[c("h3",{class:m(["text-[14px] font-bold mb-1px truncate","success"===re.type?"text-success":"text-warning"])},k(re.title),3),c("p",Yt,k(re.message),1)]),re.reward?(r(),i("div",Gt,[c("span",Xt,"+"+k(re.reward),1),c("span",Ut,k(re.unit||"天"),1)])):_("",!0)],4)):_("",!0)]}),_:1})]),y(H,{class:"!mt-20px px-12px"},{default:v(function(){var e,r,a,i,o,l,u,p;return[c("li",Nt,[w("如何结算:活动结束后,奖励将在"+k(h(n).activityExpireDate?h(n).activityExpireDate+"后":"活动结束后")+'自动兑换为抵扣券。如需立即领取,请点击"',1),y(F,{onClick:N},{default:v(function(){return s(t[35]||(t[35]=[w("结算活动奖励",-1)]))}),_:1}),t[36]||(t[36]=w('",领取后无法继续参与活动,请谨慎操作。',-1))]),c("li",Wt,[w("惊喜彩蛋:活动期间,签到累计签到"+k(null===(e=h(n).pullConfig)||void 0===e?void 0:e.sign_in_count.sign_in_count)+"天,即可获得",1),c("span",Zt,k(null===(r=h(n).pullConfig)||void 0===r?void 0:r.sign_in_count.reward_1)+"个月企业版",1),w(",成功邀请"+k(null===(a=h(n).pullConfig)||void 0===a?void 0:a.pull_count.pull_count)+"人,再额外获得",1),c("span",$t,k(null===(i=h(n).pullConfig)||void 0===i?void 0:i.pull_count.reward_1)+"个月企业版",1),t[37]||(t[37]=w(",最多领取",-1)),c("span",Jt,k(((null===(o=h(n).pullConfig)||void 0===o?void 0:o.sign_in_count.reward_1)||0)+((null===(l=h(n).pullConfig)||void 0===l?void 0:l.pull_count.reward_1)||0))+"个月企业版",1),w(";签到的专业版最多可+"+k(null===(u=h(n).pullConfig)||void 0===u?void 0:u.sign_in_reward_limit)+"天,"+k(null===(p=h(n).pullConfig)||void 0===p?void 0:p.sign_in_reward_limit)+"天后签到不会增加奖励。",1)]),t[38]||(t[38]=c("li",{class:"text-secondary leading-[2rem] opacity-85 text-[12px]"},"活动获得的专业版与企业版仅本账号使用,不可过户、折现、退款,不可开发票。",-1)),t[39]||(t[39]=c("li",{class:"text-secondary leading-[2rem] opacity-85 text-[12px]"},"活动最终解释权归宝塔官方所有。",-1))]}),_:1})],512)}}}),nn=N(tn,[["__scopeId","data-v-a56e7856"]]),rn={class:"demo-container p-8 bg-[var(--el-fill-color-lighter)]"},an={class:"mx-auto"},on=u({__name:"ActivityCenterDemo",setup:function(e){return function(e,t){return r(),i("div",rn,[c("div",an,[y(nn)])])}}}),ln={class:"p-8"};e("default",u({__name:"index",setup:function(e){var t=Z(),n=function(){W({title:"开年限时活动,完成任务赢取专业版会员天数",area:[95,70],component:on,showFooter:!1,customClass:"activity-center-dialog"})};return I(function(){t.registerOpenDialog(n)}),function(e,t){var a=L;return r(),i("div",ln,[y(a,{type:"primary",size:"large",onClick:n},{default:v(function(){return s(t[0]||(t[0]=[w(" 打开活动中心 ",-1)]))}),_:1})])}}}))}}})}();