← Back
Editing: store-legacy6.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(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return r};var n,r={},o=Object.prototype,a=o.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",p=u.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(n){l=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),u=new S(r||[]);return i(a,"_invoke",{value:P(e,n,u)}),a}function v(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}r.wrap=d;var f="suspendedStart",y="suspendedYield",m="executing",h="completed",b={};function g(){}function w(){}function x(){}var M={};l(M,c,(function(){return this}));var I=Object.getPrototypeOf,T=I&&I(I(_([])));T&&T!==o&&a.call(T,c)&&(M=T);var k=x.prototype=g.prototype=Object.create(M);function N(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function L(t,n){function r(o,i,u,c){var s=v(t[o],t,i);if("throw"!==s.type){var p=s.arg,l=p.value;return l&&"object"==e(l)&&a.call(l,"__await")?n.resolve(l.__await).then((function(e){r("next",e,u,c)}),(function(e){r("throw",e,u,c)})):n.resolve(l).then((function(e){p.value=e,u(p)}),(function(e){return r("throw",e,u,c)}))}c(s.arg)}var o;i(this,"_invoke",{value:function(e,t){function a(){return new n((function(n,o){r(e,t,n,o)}))}return o=o?o.then(a,a):a()}})}function P(e,t,r){var o=f;return function(a,i){if(o===m)throw Error("Generator is already running");if(o===h){if("throw"===a)throw i;return{value:n,done:!0}}for(r.method=a,r.arg=i;;){var u=r.delegate;if(u){var c=E(u,r);if(c){if(c===b)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var s=v(e,t,r);if("normal"===s.type){if(o=r.done?h:y,s.arg===b)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=h,r.method="throw",r.arg=s.arg)}}}function E(e,t){var r=t.method,o=e.iterator[r];if(o===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=n,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var a=v(o,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,b;var i=a.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,b):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,b)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function _(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function e(){for(;++o<t.length;)if(a.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=n,e.done=!0,e};return i.next=i}}throw new TypeError(e(t)+" is not iterable")}return w.prototype=x,i(k,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:w,configurable:!0}),w.displayName=l(x,p,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,l(e,p,"GeneratorFunction")),e.prototype=Object.create(k),e},r.awrap=function(e){return{__await:e}},N(L.prototype),l(L.prototype,s,(function(){return this})),r.AsyncIterator=L,r.async=function(e,t,n,o,a){void 0===a&&(a=Promise);var i=new L(d(e,t,n,o),a);return r.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},N(k),l(k,p,"Generator"),l(k,c,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},r.values=_,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,o){return u.type="throw",u.arg=e,t.next=r,o&&(t.method="next",t.arg=n),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=a.call(i,"catchLoc"),s=a.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,b):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:_(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),b}},r}function n(e,t,n,r,o,a,i){try{var u=e[a](i),c=u.value}catch(e){return void n(e)}u.done?t(c):Promise.resolve(c).then(r,o)}function r(e){return function(){var t=this,r=arguments;return new Promise((function(o,a){var i=e.apply(t,r);function u(e){n(i,o,a,u,c,"next",e)}function c(e){n(i,o,a,u,c,"throw",e)}u(void 0)}))}}function o(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 o=r.call(t,n||"default");if("object"!=e(o))return o;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}System.register(["./utils-lib-legacy.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER"],(function(n,a){"use strict";var i,u,c,s,p,l,d,v,f,y,m,h,b,g,w,x,M,I,T,k,N,L,P,E,C,O,S,_,D,A,B,j,V,q;return{setters:[function(e){i=e.u,u=e.g9,c=e.M,s=e.ga,p=e.K,l=e.gb,d=e.gc,v=e.gd,f=e.ge,y=e.a5,m=e.at,h=e.p,b=e.cy,g=e.n,w=e.L,x=e.gf,M=e.gg,I=e.b,T=e.R,k=e.gh,N=e.gi,L=e.gj,P=e.gk,E=e.gl,C=e.aW,O=e.gm,S=e.gn},function(e){_=e.j,D=e.r,A=e.t,B=e.k,j=e.g},function(e){V=e.p,q=e.b}],execute:function(){n("P",_("PRODUCT-PAYMENT-STORE",(function(){var n=D({}),_=D(),F=D(!1),R=i(),U=R.payment,W=R.authTypeTitle,Y=R.isUpdatePayment,G=R.isRefreshSoftList,H=R.setAuthState,J=R.authExpirationTime,K=R.forceLtd,z=R.aliyunEcsLtd,Z=A(U.value),$=Z.authType,Q=Z.voucherOpenTime,X=(Z.newUserVoucherOpenTime,Z.bindUser),ee=Z.isGetCoupon,te=D(!1),ne=D(),re=D(!1),oe=D(!1),ae=B({}),ie=D(!0),ue=D(!1),ce=B({cycleMode:{activeCycleInfo:{cycle:12},list:[]},numsMode:{list:[],activeNumsInfo:{count:1,price:0,discount:0}},couponMode:{status:!1,activeCouponId:"",activeCouponInfo:{},discountsTitle:"",disabled:!1,count:0,list:[],endTimeNum:0},couponInfo:o(o(o({},u.pro,[]),u.ltd,[]),u.dev,[]),enterpriseMode:{status:!1,isHidden:!1},devCycleInfo:{isGetOperated:!1,data:{}},voucherMode:{loading:!1,isExist:!1,proTypeList:{},typeActive:0,typeList:{},list:[],active:0,activeInfo:{pid:0,code:""}},payMode:{activePayType:"wechat",activeBuyInfo:{price:0,count:0,cycle:0,originalPrice:0,discount:0},activeBalanceInfo:{},balance:0,activePayCode:{apliy:"",wechat:""},qrcode:{value:"",size:110},payTips:{status:!1,name:"",day:0},isLastBuyRepeat:!1,lastPayTime:0,createOrderTime:[]}}),se=B({right:!0,left:!1}),pe=D(!1),le=B({d:"00",h:"00",m:"00",s:"00"}),de=null,ve=null,fe=B({status:!0,title:"正在获取产品信息,请稍侯..."}),ye=B({status:!0,title:"正在生成支付订单,请稍侯..."}),me=D(!1),he=D(!1),be=D(),ge=D(0),we=j((function(){return"".concat("alipay"===(null==ce?void 0:ce.payMode.activePayType)?"ali":"wechat","-pay.svg")})),xe=function(){var e,t=document.getElementById("list-box"),n=172*ce.cycleMode.list.length;if(null!==t){var r=t.clientWidth;if(!(n<r)){var o=document.getElementById("list"),a=Math.abs(parseInt(null===(e=window.getComputedStyle(o,null))||void 0===e?void 0:e.left,10));a+r-360<r?(o.style.left="0px",se.right=!0,se.left=!1):o.style.left="-".concat(a-360,"px")}}},Me=function(){var e=r(t().mark((function e(n){var r;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:xe(),fe.status=!0,ce.enterpriseMode.status=!1,r=u.ltd,"string"==typeof n&&(n=ae.typeList.find((function(e){return e.type===n}))),ae.activeTypeInfo=n,ce.cycleMode.list=[],ce.numsMode.activeNumsInfo.count=1,ae.unbindAuthor.status=!1,ae.unbindAuthor.count=0,at(),e.t0=n.type,e.next="coupon"===e.t0?14:"plugin"===e.t0||"ltd"===e.t0||"pro"===e.t0||"dev"===e.t0?20:32;break;case 14:return fe.title="正在获取产品抵扣券,请稍侯...",e.next=17,ot({pid:n.pid});case 17:return fe.status=!1,ce.voucherMode.proTypeList[r]&&nt({pid:r,list:ce.voucherMode.proTypeList[r].list}),e.abrupt("break",32);case 20:if(fe.title="正在获取产品信息,请稍侯...",!X.value){e.next=26;break}return e.next=24,tt(n.pid);case 24:e.next=29;break;case 26:Lt(n.type),Et(),Ye();case 29:return fe.status=!1,Ie(ce.cycleMode.list[0]),e.abrupt("break",32);case 32:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ie=function(){var e=r(t().mark((function e(n,r){var o;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Pt("cycle",n)){e.next=2;break}return e.abrupt("return");case 2:if(ce.numsMode.list=n.nums,ce.cycleMode.activeCycleInfo=n,ce.enterpriseMode.isHidden=!("ltd"===(null==ae?void 0:ae.activeTypeInfo.type)&&12===n.cycle),void 0===r&&!ce.enterpriseMode.isHidden&&ce.enterpriseMode.status&&(ce.enterpriseMode.status=!1),at(),null===(o=n.nums)||void 0===o||!o.length){e.next=10;break}return e.next=10,Te(n.nums[0]);case 10:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Te=function(){var e=r(t().mark((function e(n){var r,o,a,i,u;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Pt("nums",n)){e.next=2;break}return e.abrupt("return");case 2:if(ce.numsMode.activeNumsInfo=n,r=[],o=ce.couponMode.list,"pro"!==(null==ae?void 0:ae.activeTypeInfo.type)&&"ltd"!==(null==ae?void 0:ae.activeTypeInfo.type)){e.next=14;break}if(!(o.length>0)){e.next=14;break}if(o.forEach((function(e){Number(e.val1)<=n.price&&r.push(e)})),!r.length){e.next=14;break}return ce.couponMode.status=!0,r.sort((function(e,t){return Number(t.val2)-Number(e.val2)})),ke(null===(a=r[0].id)||void 0===a?void 0:a.toString()),e.abrupt("return",!1);case 14:!pe.value&&ce.couponMode.count>0&&((u=o.filter((function(e){return Number(e.val1)<=n.price}))[0])||(ce.couponMode.status=!1),pe.value=!0,ce.couponMode.activeCouponId=null==u||null===(i=u.id)||void 0===i?void 0:i.toString(),ce.couponMode.endTimeNum=Math.floor((null==u?void 0:u.endtime)-Math.floor((new Date).getTime()/1e3))),Le();case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ke=function(){var e=r(t().mark((function e(n){var r,o;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=3;break}return ce.couponMode.status=!1,e.abrupt("return",c.error("请选择优惠券"));case 3:(r=ce.couponMode.list.find((function(e){return e.id===Number(n)}))||{}).val1&&Number(r.val1)<=ce.numsMode.activeNumsInfo.price&&(ce.couponMode.status=!0,ce.couponMode.activeCouponId=n.toString(),void 0!==(o=ce.couponMode.list.find((function(e){return e.id===Number(n)})))&&(ce.couponMode.activeCouponInfo=o,ce.couponMode.endTimeNum=Math.floor(o.endtime-Math.floor((new Date).getTime()/1e3)),o.name.indexOf("0.99")>-1?ce.couponMode.discountsTitle=o.name:ce.couponMode.discountsTitle="已使用优惠券,立减".concat(o.val2,"元"))),Le();case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ne=D(!1),Le=function(){var e=r(t().mark((function e(){var n,r,o,a,i,v,f,y,m,h,b,g,w,x,M,I,T,k,N,L,P,E,C,O,S=arguments;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=S.length>0&&void 0!==S[0]?S[0]:{pid:Number(ce.numsMode.activeNumsInfo.pid),cycle:Number(ce.cycleMode.activeCycleInfo.cycle),source:Number(ne.value),num:Number(ce.numsMode.activeNumsInfo.count),coupon:ce.couponMode.status&&ce.couponMode.activeCouponId||"",get_ali_msg:0,regain:0},r=!(S.length>1&&void 0!==S[1])||S[1],!z.value){e.next=4;break}return e.abrupt("return");case 4:return e.prev=4,o=(new Date).getTime()/1e3,ce.payMode.createOrderTime.push(o),r&&(ye.status=!0),e.next=10,s(n);case 10:if(a=e.sent,i=a.data,v=ae.activeTypeInfo,f=v.pid,y=ce.enterpriseMode.status,!(f===u.ltd&&(y&&Number(n.pid)!==u.dev||!y&&Number(n.pid)!==u.ltd)||f!==u.ltd&&Number(n.pid)!==f||Number(ce.numsMode.activeNumsInfo.count)!==n.num||n.cycle!==Number(ce.cycleMode.activeCycleInfo.cycle))){e.next=17;break}return e.abrupt("return");case 17:if("string"!=typeof i.data||"inherit_order"!==i.data){e.next=22;break}return c.msg({message:i.msg,type:"warning"}),e.next=21,bt();case 21:return e.abrupt("return",Le());case 22:if("string"!=typeof i.msg||-1===i.msg.indexOf("接口请求失败")){e.next=25;break}return c.msg({customClass:"panel-cloud-error",dangerouslyUseHTMLString:!0,message:i.msg,type:"error",duration:0,showClose:!0}),e.abrupt("return");case 25:if(m=i.ali_msg,h=i.msg,b=i.extra,g=void 0===b?void 0:b,w=i.data,x=i.is_coupon,M=i.status_code,I=w.cash_fee,T=w.uid,ce.payMode.activeBuyInfo=Xe(I,i),120!==M||!g){e.next=42;break}if(ce.payMode.payTips.name=g.name,"pro"!==ae.activeTypeInfo.type||"永久授权"!==J.value){e.next=36;break}return ae.unbindAuthor.status=!0,ae.unbindAuthor.count=null==g?void 0:g.rest_unbind_count,ye.status=!1,xt.value={type:null==ae?void 0:ae.activeTypeInfo.type,typeName:W.value,extra:g},e.abrupt("return",!1);case 36:ce.payMode.payTips.status=!0,k=new Date(1e3*g.end_time).getTime()-(new Date).getTime(),N=k/864e5,ce.payMode.payTips.day=Math.ceil(N),e.next=43;break;case 42:ce.payMode.payTips.status=!1;case 43:return x&&x.length>0&&Q.value<(new Date).getTime()/1e3&&100!==Q.value?(me.value=!0,We({isCoupon:x})):!he.value&&ce.couponMode.list.length>0&&!re.value&&!me.value&&(he.value=!0,L=ce.couponMode.list[0],L.val1,L.val2,P=L.id,L.pid,ke(P)),w.returnTime=o,ce.payMode.activeBalanceInfo=w,ce.payMode.lastPayTime<=0?p({request:l({pid:w.pid}),data:{res:[Number,"buyVerify"]},success:function(e){e&&(ce.payMode.lastPayTime=e.buyVerify,Oe())}}):Oe(),e.next=49,p({request:d({uid:T}),data:{res:[Number,"credits"]}});case 49:if(E=e.sent,C=E.credits,ce.payMode.balance=C/100,(O=ce.payMode.createOrderTime)[O.length-1]===w.returnTime){e.next=55;break}return e.abrupt("return",!1);case 55:ye.status=!1,ce.payMode.balance>=ce.payMode.activeBuyInfo.price?ce.payMode.activePayType="balance":ce.payMode.activeBuyInfo.price>=6e3?(Ne.value=!0,ce.payMode.activePayType="wechat"===ce.payMode.activePayType?"alipay":ce.payMode.activePayType):ce.payMode.balance<ce.payMode.activeBuyInfo.price&&(ce.payMode.activeBuyInfo.price<6e3?ce.payMode.activePayType="wechat":ce.payMode.activePayType="alipay"),Ne.value&&ce.payMode.activeBuyInfo.price<6e3&&(ce.payMode.activePayType="wechat",Ne.value=!1),ce.payMode.activePayCode.apliy=m,ce.payMode.activePayCode.wechat=h,ce.payMode.qrcode.value="wechat"===ce.payMode.activePayType?h:m,"ltd"===(null==ae?void 0:ae.activeTypeInfo.type)&&_e(ce.numsMode.activeNumsInfo.count),de&&clearTimeout(de),"coupon"!==(null==ae?void 0:ae.activeTypeInfo.type)&&setTimeout((function(){ie.value=!0,Je((new Date).getTime()/1e3)}),5e3),t=void 0,t={cycleMode:ce.cycleMode,numsMode:ce.numsMode,payMode:ce.payMode,typeTab:null==ae?void 0:ae.activeTypeInfo.type,enterpriseMode:ce.enterpriseMode,couponMode:ce.couponMode},sessionStorage.setItem("PAY-VIEW-INFO",JSON.stringify(t)),e.next=70;break;case 67:e.prev=67,e.t0=e.catch(4);case 70:case"end":return e.stop()}var t}),e,null,[[4,67]])})));return function(){return e.apply(this,arguments)}}(),Pe=D({}),Ee=D(),Ce=function(){var e=r(t().mark((function e(){var n;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ke(Pe.value.id),e.next=3,Ee.value;case 3:null==(n=e.sent)||n.unmount();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Oe=function(){(new Date).getTime()/1e3-ce.payMode.lastPayTime<1800?ce.payMode.isLastBuyRepeat=!0:ce.payMode.isLastBuyRepeat=!1},Se=D(0),_e=function(){var e=r(t().mark((function e(n){var r,o,a,i;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=[],!ce.devCycleInfo.isGetOperated||!ce.devCycleInfo.data.nums.length){e.next=5;break}r=ce.devCycleInfo.data.nums,e.next=12;break;case 5:return e.next=7,v({pid:100000068});case 7:o=e.sent,a=o.data,r=a[12].nums,ce.devCycleInfo.isGetOperated=!0,ce.devCycleInfo.data=a[12];case 12:(i=r.find((function(e){return e.count===n})))&&(Se.value=i.price);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),De=D(""),Ae=D(!1),Be=D(Math.floor(Date.now()/1e3)),je=function(){var e=r(t().mark((function e(n){var r,o,a,i,u;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,f();case 3:if(r=e.sent,o=r.data,ee.value=!0,!y(null==o?void 0:o.status)||0!==(null==o?void 0:o.status)){e.next=10;break}return c.request({msg:o.msg,status:!1}),Ae.value=!0,e.abrupt("return");case 10:return a={100000011:"pro",100000032:"ltd",100000068:"dev"}[o.data[0].pid],i=o.data[0].id,c.request({msg:o.msg,status:!0}),e.next=16,Re.value;case 16:if(null==(u=e.sent)||u.unmount(),n&&"function"==typeof n&&n(),!Fe.value){e.next=23;break}return e.next=22,V({disablePro:"pro"!==a,sourceId:176,isHomeBubble:{id:i,pro:a}});case 22:return e.abrupt("return",!1);case 23:return e.next=25,Ge(i,a);case 25:e.next=30;break;case 27:e.prev=27,e.t0=e.catch(0),m(e.t0);case 30:case"end":return e.stop()}}),e,null,[[0,27]])})));return function(t){return e.apply(this,arguments)}}(),Ve=function(){var e=r(t().mark((function e(n){var r,o,a,i,u,s=arguments;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=!(s.length>1&&void 0!==s[1])||s[1],o=0,a="",De.value=n,e.t0=De.value,e.next="today"===e.t0?7:"week"===e.t0?10:"forver"===e.t0?13:16;break;case 7:return o=new Date((new Date).toLocaleDateString()).getTime()+864e5-1,a="今日内不再通知",e.abrupt("break",16);case 10:return o=new Date((new Date).toLocaleDateString()).getTime()+6048e5-1,a="近7天内不再通知",e.abrupt("break",16);case 13:return o=-100,a="永久不再通知",e.abrupt("break",16);case 16:if(o=Math.floor(o>0?o/1e3:o),!r){e.next=20;break}return e.next=20,h({title:"提示",content:"".concat(a,",是否确认?")});case 20:if(Fe.value){e.next=33;break}return e.prev=21,e.next=24,b({limit_time:o});case 24:i=e.sent,r&&c.request(i),e.next=31;break;case 28:e.prev=28,e.t1=e.catch(21),m(e.t1);case 31:e.next=35;break;case 33:Q.value=o,sessionStorage.setItem("voucherOpenTime",Q.value.toString());case 35:return e.next=37,Re.value;case 37:null==(u=e.sent)||u.unmount(),ee.value=!0;case 40:case"end":return e.stop()}}),e,null,[[21,28]])})));return function(t){return e.apply(this,arguments)}}(),qe=D([]),Fe=D(!1),Re=D(),Ue=D(),We=function(){var e=r(t().mark((function e(n){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!z.value){e.next=2;break}return e.abrupt("return");case 2:qe.value=n.isCoupon,Fe.value=n.isHome||!1,Re.value=g({area:40,component:function(){return w((function(){return a.import("./index-legacy311.js?v=VERSION_NUMBER")}),void 0,a.meta.url)},customClass:"voucherFetchView",compData:n,onCancel:function(){Ae.value&&window.location.reload()}});case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ye=function(){var e=r(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!z.value&&!U.value.bindUser){e.next=2;break}return e.abrupt("return");case 2:Ue.value=g({area:40,component:function(){return w((function(){return a.import("./index-legacy414.js?v=VERSION_NUMBER")}),void 0,a.meta.url)},customClass:"voucherFetchView"});case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ge=function(){var e=r(t().mark((function e(n,r){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,He();case 2:if(r===(null==ae?void 0:ae.activeTypeInfo.type)){e.next=5;break}return e.next=5,Me(r);case 5:return e.next=7,ke(n);case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),He=function(){var e=r(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!z.value){e.next=2;break}return e.abrupt("return");case 2:if(ce.couponInfo[u.pro]=[],ce.couponInfo[u.ltd]=[],ce.couponInfo[u.dev]=[],X.value){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,p({request:x(),data:{res:[Array,"data"]},success:function(e){var t=(new Date).getTime()/1e3;e.data.forEach((function(e){var n,r=Math.floor((e.endtime-Math.floor(t))/3600),o=0;r>24?o=Math.floor(r/24):r>0&&(o=1),e.newName="".concat(e.name,"( ").concat(o,"天后过期)"),null===(n=ce.couponInfo[e.product_id])||void 0===n||n.push(e)})),at()}});case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Je=function(){var e=r(t().mark((function e(n){var r,o,a,i,u,c,s;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,F.value){e.next=3;break}return e.abrupt("return");case 3:if(n&&sessionStorage.setItem("PAY-VIEW-INFO-TIME","".concat(n)),!(r=sessionStorage.getItem("PAY-VIEW-INFO-TIME"))){e.next=12;break}if(!(parseInt("".concat((new Date).getTime()/1e3-Number(r)),10)>600&&F.value)){e.next=11;break}return ie.value=!1,sessionStorage.removeItem("PAY-VIEW-INFO-TIME"),e.abrupt("return",h({title:"支付超时",icon:"warning",content:"由于您长时间未操作,支付超时,请刷新网页重新购买!",onConfirm:function(){it(),window.location.reload()},onCancel:function(){it(),window.location.reload()}}));case 11:F.value||sessionStorage.removeItem("PAY-VIEW-INFO-TIME");case 12:if(de&&clearTimeout(de),"coupon"!==(null==ae?void 0:ae.activeTypeInfo.type)&&!ae.unbindAuthor.status){e.next=15;break}return e.abrupt("return");case 15:if("balance"!==ce.payMode.activePayType){e.next=18;break}return de=setTimeout((function(){Je()}),4e3),e.abrupt("return");case 18:return o=(new Date).getTime()/1e3,e.next=21,p({request:M({wxoid:ce.payMode.activeBalanceInfo.wxoid,py_type:"alipay"===ce.payMode.activePayType?"ali":""}),data:{status:[Boolean,"status"],data:[Object,"data"]}});case 21:a=e.sent,i=a.status,u=a.data,c=["WAIT_BUYER_PAY","TRADE_CLOSED"],u&&c.includes(u.status)&&(ue.value=!0),i?Qe():(s=(new Date).getTime()/1e3,ve=setTimeout(Je,s-o<1?4e3:3e3)),e.next=32;break;case 29:e.prev=29,e.t0=e.catch(0),m(e.t0);case 32:case"end":return e.stop()}}),e,null,[[0,29]])})));return function(t){return e.apply(this,arguments)}}(),Ke=function(){(window.location.pathname.includes("/waf")||K.value)&&window.location.reload()},ze=function(){var e=r(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:-1!==window.location.pathname.indexOf("/soft/plugin")&&(Y.value=!0,G.value=!0);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ze=D({}),$e=function(){var e=r(t().mark((function e(){var n,r,o,a,i;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,E({force:1});case 2:return n=e.sent,r=n.data,o=new C(r,{ltd:Number,pro:Number}).exportData(),a=o.ltd,i=o.pro,H([0,i,a]),e.abrupt("return",{ltd:a,pro:i});case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Qe=function(){var e=r(t().mark((function e(){var n,r,o,i,u;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ze();case 3:return it(),e.next=6,$e();case 6:if(i=e.sent,"plugin"!==(null==ae||null===(n=ae.activeTypeInfo)||void 0===n?void 0:n.type)){e.next=9;break}return e.abrupt("return",I().success("".concat(ae.activeTypeInfo.title,"支付成功")));case 9:u="dev"===(null==ae||null===(r=ae.activeTypeInfo)||void 0===r?void 0:r.type)?"ltd":(null==ae||null===(o=ae.activeTypeInfo)||void 0===o?void 0:o.type)||"",Object.assign(Ze.value,{type:ae.activeTypeInfo.type,typeTipsList:ae.activeTypeInfo.tipsList,cycle:ce.payMode.activeBuyInfo.cycle,count:ce.payMode.activeBuyInfo.count,lastTime:T(i[u]),title:ae.activeTypeInfo.title}),g({area:68,component:function(){return w((function(){return a.import("./index-legacy415.js?v=VERSION_NUMBER")}),void 0,a.meta.url)}}),Ke(),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(0),m(e.t0);case 18:case"end":return e.stop()}}),e,null,[[0,15]])})));return function(){return e.apply(this,arguments)}}(),Xe=function(e,t){var n=ce.cycleMode,r=ce.numsMode,o=ce.couponMode,a=n.activeCycleInfo,i=a.originalPrice,u=r.activeNumsInfo,c=o.activeCouponInfo,s=o.status,p=e/100,l=a.title||"",d=u.count||0,v=i*d;return s&&(c.name.includes("0.99")?(p=v-c.val1,l="".concat(c.experimental_interval,"天"),d=1):p=t.price),{price:p,count:d,cycle:l,originalPrice:v,discount:c}},et=D(!1),tt=function(){var e=r(t().mark((function e(n){var r,o,a,i,c,s,p,l,d,f,y;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,et.value=!0,e.next=4,v({pid:n});case 4:for(i in r=e.sent,o=r.data,Number(o.pid)===u.dev&&(delete o[1],delete o[6],delete o[36],ce.devCycleInfo.isGetOperated=!0,ce.devCycleInfo.data=o[12]),a=[],o)Object.prototype.hasOwnProperty.call(o,i)&&(c=o[i],s=c.price,p=c.tip,l=c.sprice,d=c.nums,f=c.sort,isNaN(Number(i))||(y=Number(i)%12==0?"".concat(Number(i)/12,"年"):"".concat(Number(i),"个月"),a.push({cycle:Number(i),price:s,recommend:p,originalPrice:l,nums:d,sort:f,title:y,everyDay:(s/Number(i)/30).toFixed(2)})));a.sort((function(e,t){return e.sort-t.sort})),ce.cycleMode.list=a,e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),m(e.t0);case 16:return e.prev=16,et.value=!1,e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[0,13,16,19]])})));return function(t){return e.apply(this,arguments)}}(),nt=function(e){var t=e.list,n=e.pid;return ce.voucherMode.list=t,ce.voucherMode.typeActive=n,t.length?rt(t[0]):c.warn("暂无可用优惠券")},rt=function(e){var t=e.id,n=e.product_id,r=e.code;ce.voucherMode.active=t,ce.voucherMode.activeInfo={pid:n,code:r}},ot=function(){var e=r(t().mark((function e(n){var r,o;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ce.voucherMode.typeList={},e.prev=1,ce.voucherMode.loading=!0,e.next=5,k(n);case 5:r=e.sent,o=r.data,ce.voucherMode.isExist=!(0===o.length),o.forEach((function(e){var t=e.product_id,n=e.name;ce.voucherMode.typeList.hasOwnProperty(t)?ce.voucherMode.typeList[t].list.push(e):ce.voucherMode.typeList[t]={name:n,pid:t,list:[e]}})),["100000011","100000032"].reverse().forEach((function(e){if(ce.voucherMode.typeList[e]){var t=ce.voucherMode.typeList[e];ce.voucherMode.proTypeList[e]=t,delete ce.voucherMode.typeList[e]}})),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(1),m(e.t0);case 16:return e.prev=16,ce.voucherMode.loading=!1,e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[1,13,16,19]])})));return function(t){return e.apply(this,arguments)}}(),at=function(){var e=ae.activeTypeInfo,t=e.type,n=e.pid;if(["plugin","coupon"].includes(t))ce.couponMode.count=0,ce.couponMode.list=[];else{var r,o=n;ce.enterpriseMode.status&&"ltd"===t&&(o=u.dev),ce.couponMode.count=(null===(r=ce.couponInfo[o])||void 0===r?void 0:r.length)||0,ce.couponMode.list=ce.couponInfo[o]}ce.couponMode={status:!1,activeCouponId:"",activeCouponInfo:{},discountsTitle:"",count:ce.couponMode.count,list:ce.couponMode.list,disabled:!ce.couponMode.count,endTimeNum:0},ce.couponMode.count<=0&&(ce.couponMode.disabled=!0,ce.couponMode.status=!1)},it=function(){var e=r(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:window.onbeforeunload=function(){},Ct(),_.value("close");case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ut=function(){var e=r(t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!z.value){e.next=4;break}return $e(),it(),e.abrupt("return",!1);case 4:if(X.value){e.next=7;break}return it(),e.abrupt("return",!1);case 7:return e.next=9,h({title:"温馨提示",content:'支付过程中,请勿关闭该页面,以免出现支付异常!<br><a\n\t\t\t\tclass="bt-link text-[1.2rem]"\n\t\t\t\thref="https://www.bt.cn/new/wechat_customer"\n\t\t\t\ttarget="_blank"\n\t\t\t\trel="noreferrer noopener"\n\t\t\t\t>支付遇到问题?联系客服</a\n\t\t\t>',isHtml:!0,width:"40rem"});case 9:return it(),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ct=function(){if(z.value)return"dev";var e="free"===$.value?"ltd":$.value;return oe.value||"ltd"===e||(e="pro"),e},st=function(e,t){return null==t?void 0:t.some((function(t){return t.type===e}))},pt=function(){var n=r(t().mark((function n(){var r,o,a;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(re.value&&Object.keys(re.value).length>0&&"object"===e(re.value))){t.next=4;break}return r=re.value,o=r.id,a=r.pro,t.next=4,Ge(o,a);case 4:case"end":return t.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),lt=D(),dt=function(){var e=r(t().mark((function e(n){var r;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Me(n),e.next=3,lt.value;case 3:null==(r=e.sent)||r.unmount();case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),vt=D(!1),ft=function(){var e=r(t().mark((function e(){var n,r,o,a,i,u;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=sessionStorage.getItem("PAY-VIEW-INFO-REMARKS")){e.next=4;break}return e.next=4,p({loading:vt,request:O(),data:{pro_list:[Array,"pro"],list:[Array,"ltd"],vip_pro_list:[Array,"vip_pro_list"],activity_list:[Array,"activityList"]},success:function(e){n=JSON.stringify(e),sessionStorage.setItem("PAY-VIEW-INFO-REMARKS",n)}});case 4:r=JSON.parse(n),vt.value=!1,o=r.pro,a=r.ltd,i=r.vip_pro_list,u=r.activityList,ae.typeList[1].tipsList=o,ae.typeList[2].tipsList=a,ae.typeList[3].tipsList=i,(new DOMParser).parseFromString(u,"text/xml"),ae.activityList=u||"",ae.activeTypeInfo=ae.typeList.find((function(e){return e.type===ae.activeTypeInfo.type})),He();case 15:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),yt=D([{type:"wechat",title:"微信扫码支付"},{type:"alipay",title:"支付宝扫码支付"},{type:"balance",title:"余额支付"},{type:"accounts",title:"对公转账"}]),mt=function(){var e=r(t().mark((function e(n){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ue.value=!1,e.t0=n.type,e.next="wechat"===e.t0?4:"alipay"===e.t0?9:18;break;case 4:if(!(ce&&(null==ce?void 0:ce.payMode.activeBuyInfo.price)>=6e3)){e.next=7;break}return c.warn("刷新支付金额已超过微信单笔支付额度,请选择其他支付方式"),e.abrupt("return",!1);case 7:return ce.payMode.qrcode.value=ce.payMode.activePayCode.wechat,e.abrupt("break",18);case 9:if(""!==ce.payMode.activePayCode.apliy&&!n.isRegain){e.next=16;break}return e.next=12,Le({pid:Number(ce.numsMode.activeNumsInfo.pid),cycle:Number(ce.cycleMode.activeCycleInfo.cycle),source:Number(ne.value),num:Number(ce.numsMode.activeNumsInfo.count),coupon:ce.couponMode.status&&ce.couponMode.activeCouponId||"",get_ali_msg:1,regain:n.isRegain?1:0},!0);case 12:ce.payMode.qrcode.value=ce.payMode.activePayCode.apliy,ue.value=!1,e.next=17;break;case 16:ce.payMode.qrcode.value=ce.payMode.activePayCode.apliy;case 17:return e.abrupt("break",18);case 18:ce.payMode.activePayType=n.type;case 19:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ht=function(){var e=r(t().mark((function e(){var n,r,o,a;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p({loading:"正在支付中...",request:N({num:Number(null==ce||null===(n=ce.numsMode)||void 0===n||null===(n=n.activeNumsInfo)||void 0===n?void 0:n.count),cycle:Number(null==ce||null===(r=ce.cycleMode)||void 0===r||null===(r=r.activeCycleInfo)||void 0===r?void 0:r.cycle),uid:Number(null==ce||null===(o=ce.payMode)||void 0===o||null===(o=o.activeBalanceInfo)||void 0===o?void 0:o.uid),pid:Number(null==ce||null===(a=ce.payMode)||void 0===a||null===(a=a.activeBalanceInfo)||void 0===a?void 0:a.pid),coupon:ce.couponMode.status&&ce.couponMode.activeCouponId||""}),data:{res:String,success:Boolean},success:function(e){c.request({msg:e.res,status:e.success}),e.success&&Qe()}});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),bt=function(){var e=r(t().mark((function e(){var n;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,$e();case 3:e.sent&&(c.request({msg:"刷新成功",status:!0}),null!=ae&&null!==(n=ae.activeTypeInfo)&&void 0!==n&&n.type&&Me(ae.activeTypeInfo.type)),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),m(e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),gt=D(!1),wt=function(){var e=r(t().mark((function e(){var n,r,o,a,i,u;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(gt.value=!0,""!==(null==ce?void 0:ce.voucherMode.activeInfo.code)){e.next=3;break}return e.abrupt("return",c.warn("请选择抵扣券"));case 3:return e.next=5,p({loading:"正在使用抵扣券,请稍侯...",request:L({pid:Number(null==ce?void 0:ce.voucherMode.activeInfo.pid),code:(null==ce?void 0:ce.voucherMode.activeInfo.code)||""}),data:{extra:[Object,"extra"],status:Boolean,status_code:[Number,"statusCode"],msg:String}});case 5:if(n=e.sent,r=n.status,o=n.extra,a=void 0===o?void 0:o,i=n.statusCode,u=n.msg,gt.value=!1,!r){e.next=21;break}return e.next=15,$e();case 15:c.request({msg:u,status:r}),ze(),it(),Ke(),e.next=22;break;case 21:120!==i||r?c.request({msg:u,status:r}):(gt.value=!1,kt({type:null==ae?void 0:ae.activeTypeInfo.type,typeName:W.value,extra:a}));case 22:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),xt=D({}),Mt=D(!1),It=D(),Tt=function(){var e=r(t().mark((function e(){var n,r,o,a,i=arguments;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.length>0&&void 0!==i[0]&&i[0],!(xt.value.extra.rest_unbind_count>0)){e.next=35;break}return e.prev=2,e.next=5,h({title:"提示",content:"解绑当前【".concat(W.value,"授权】,继续操作!")});case 5:return Mt.value=!0,e.next=8,P();case 8:if(r=e.sent,o=r.data,c.request({msg:o.res,status:o.success}),!o.success){e.next=25;break}return e.next=14,$e();case 14:if(!n){e.next=18;break}setTimeout((function(){Me(ae.activeTypeInfo.type)}),500),e.next=20;break;case 18:return e.next=20,ot({pid:u.coupon});case 20:return ze(),e.next=23,It.value;case 23:null==(a=e.sent)||a.unmount();case 25:e.next=30;break;case 27:e.prev=27,e.t0=e.catch(2);case 30:return e.prev=30,Mt.value=!1,e.finish(30);case 33:e.next=36;break;case 35:window.open("https://www.bt.cn/admin/profe_ee","_blank","noopener,noreferrer");case 36:case"end":return e.stop()}}),e,null,[[2,27,30,33]])})));return function(){return e.apply(this,arguments)}}(),kt=function(e){xt.value=e,It.value=g({area:[32,29],component:function(){return w((function(){return a.import("./index-legacy417.js?v=VERSION_NUMBER")}),void 0,a.meta.url)}})},Nt=function(){var e=r(t().mark((function e(r){var o,a;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r&&(n.value=r),F.value=!0,i=void 0,c=void 0,s=void 0,i=n.value,c=i.pluginInfo,s=i.disablePro,te.value=!!c,ne.value=n.value.sourceId,oe.value=s,re.value=n.value.isHomeBubble,Object.assign(ae,{typeList:[{type:"plugin",title:te.value?c.title:"插件",describe:te.value?8===c.type?"【专业版】已包含此插件":"【企业版】已包含此插件":"",pid:te.value?c.pid:0,isHidden:!te.value,tipsTitle:"插件说明",tipsList:[]},{type:"pro",title:"".concat(S,"专业版"),describe:"适用于个人用户、个人项目",pid:u.pro,isHidden:s,tipsTitle:"专业版特权",tipsList:[]},{type:"ltd",title:"".concat(S,"企业版"),describe:"适用于官网,电商、教育、医疗等用户",pid:u.ltd,recommend:!0,tipsTitle:"企业版特权",tipsList:[]},{type:"dev",title:"企业运维托管",describe:"适用于无专业技术、需技术服务的企业",pid:u.dev,tipsTitle:"企业运维托管特权",isHidden:te.value,tipsList:["网站性能优化","网站安全扫描","网站攻击防护","服务器运维托管","企业版所有特权","文件防篡改配置","文件代码同步部署","系统文件垃圾清理","数据库数据同步部署","50x/40x网站报错处理","CPU内存占用过高处理"]},{type:"coupon",title:"抵扣券",describe:"抵扣券授权",pid:u.coupon,tipsTitle:"抵扣券来源",tipsList:["官网后台购买","活动页购买","推广赠送","更换绑定IP"]}],activityList:"",activeTypeInfo:{type:"pro",describe:"",title:"",pid:0,recommend:!1,tipsTitle:"",tipsList:[]},unbindAuthor:{status:!1,count:0}}),ft(),vt.value=!0,o=ct(),t=void 0,a=null==ae||null===(t=ae.typeList)||void 0===t?void 0:t.filter((function(e){return!0!==(null==e?void 0:e.isHidden)})),st(o,a)||(o="ltd"),e.next=11,Me(o);case 11:pt(),U.value.bindUser&&(window.onbeforeunload=function(){return"是否要离开"});case 13:case"end":return e.stop()}var t,i,c,s}),e)})));return function(t){return e.apply(this,arguments)}}(),Lt=function(e){ce.cycleMode.list="dev"===e?[{cycle:12,price:5999,recommend:!1,originalPrice:12e3,nums:[{count:1,price:-1,discount:0},{count:3,price:-1,discount:0},{count:5,price:-1,discount:0},{count:10,price:-1,discount:0},{count:20,price:-1,discount:0},{count:50,price:-1,discount:0},{count:100,price:-1,discount:0}],sort:1,title:"1年",everyDay:"16.66"}]:[{cycle:12,price:1399,recommend:!1,originalPrice:3588,nums:[{count:1,price:-1,discount:0},{count:3,price:-1,discount:0},{count:5,price:-1,discount:0},{count:10,price:-1,discount:0},{count:20,price:-1,discount:0},{count:50,price:-1,discount:0},{count:100,price:-1,discount:0}],sort:1,title:"1年",everyDay:"3.89"},{cycle:36,price:2999,recommend:!1,originalPrice:10764,nums:[{count:1,price:-1,discount:0},{count:3,price:-1,discount:0},{count:5,price:-1,discount:0},{count:10,price:-1,discount:0},{count:20,price:-1,discount:0},{count:50,price:-1,discount:0},{count:100,price:-1,discount:0}],sort:2,title:"3年",everyDay:"2.78"},{cycle:6,price:999,recommend:!1,originalPrice:1794,nums:[{count:1,price:-1,discount:0},{count:3,price:-1,discount:0},{count:5,price:-1,discount:0},{count:10,price:-1,discount:0},{count:20,price:-1,discount:0},{count:50,price:-1,discount:0},{count:100,price:-1,discount:0}],sort:3,title:"6个月",everyDay:"5.55"},{cycle:1,price:599,recommend:!1,originalPrice:599,nums:[{count:1,price:-1,discount:0},{count:3,price:-1,discount:0},{count:5,price:-1,discount:0},{count:10,price:-1,discount:0},{count:20,price:-1,discount:0},{count:50,price:-1,discount:0},{count:100,price:-1,discount:0}],sort:4,title:"1个月",everyDay:"19.97"}]},Pt=function(e,t){return!(!X.value&&("nums"===e&&1!==t.count||"cycle"===e&&12!==t.cycle))||(q(),!1)},Et=function(){var e=Number(sessionStorage.getItem("PAYMENT-NEW-COUPON-TIME"));(!e||e<(new Date).getTime())&&(e=(new Date).getTime()+6e5,sessionStorage.setItem("PAYMENT-NEW-COUPON-TIME",e.toString())),ge.value=e},Ct=function(){Ne.value=!1,F.value=!1,ue.value=!1,ve&&clearTimeout(ve),de&&clearTimeout(de),be.value&&clearInterval(be.value)};return{voucherFetchInstance:Re,openNewUserVoucherFetchViewDialog:Ye,compData:n,isRemarksLoading:vt,productPriceLoading:et,isPlugin:te,productInfo:ae,product:ce,enterprise:Se,tabLoading:fe,iSwitch:se,countDown:le,switchLeft:xe,switchRight:function(){var e=document.getElementById("list-box"),t=172*ce.cycleMode.list.length,n=e.clientWidth;if(!(t<n)){var r=document.getElementById("list"),o=Math.abs(parseInt(window.getComputedStyle(r,null).left,10));o+n+360>t?(r.style.left="-".concat(t-n,"px"),se.right=!1,se.left=!0):r.style.left="-".concat(o+360,"px")}},changeTypeTabEvent:Me,changeCycleTabEvent:Ie,changeNumsTabEvent:Te,enterpriseEvent:function(e){ce.enterpriseMode.status=Boolean(e),e?Ie({cycle:12,price:ce.devCycleInfo.data.price,recommend:!1,originalPrice:ce.devCycleInfo.data.sprice,nums:ce.devCycleInfo.data.nums,sort:0,title:"1年",everyDay:(ce.devCycleInfo.data.price/12/30).toFixed(2)},"dev"):Ie(ce.cycleMode.list[0])},changeCouponBoxEvent:function(e){var t=ce.couponMode,n=t.status,r=t.count,o=t.activeCouponId;if(0===r)return ce.couponMode.status=!1,c.warn("暂无可用优惠券");if(ce.couponMode.status=void 0!==e?Boolean(e):!n,""!==o&&ce.couponMode.status)ke(o);else if(""===o&&ce.couponMode.status)return c.request({msg:"请选择优惠券",status:!1}),ce.couponMode.status=!1,!1;Le()},changeCouponEvent:ke,openPrivilegeContrast:function(){lt.value=g({area:[97,75],component:function(){return w((function(){return a.import("./index-legacy416.js?v=VERSION_NUMBER")}),void 0,a.meta.url)}})},newUserVoucherFetchInstance:Ue,newUserVoucherEndTime:ge,scanned:ue,bindUser:X,paymentLoading:ye,payList:yt,changePayTypeEvent:mt,paySuccessData:Ze,openBuySuccessView:Qe,changeBalanceBuyEvent:ht,changeRefreshAuthor:bt,couponItem:qe,closeAfterReload:Ae,timeClose:De,siteList:[{label:"今日内不再提醒",value:"today"},{label:"近7天内不再提醒",value:"week"},{label:"永久不再提醒",value:"forver"}],timeNow:Be,addZero:function(e){return e<10?"0".concat(e):"".concat(e)},claimCouponEvent:je,changeCloseTimeEvent:Ve,couponCompData:Pe,changeVoucher:Ce,activePayIcon:we,voucherLoading:gt,getVoucherCycleDescribe:function(e,t){return"month"===t?e%12?"".concat(e,"个月"):"".concat(e/12,"年"):"".concat(e+("year"===t?"年":"天"))},useChangeVoucher:wt,changeVoucherEvent:rt,changeVoucherTypeEvent:nt,refreshSoftEvent:ze,isDisabledAuth:Mt,authType:$,bindAuthData:xt,changeUnbindAuthor:Tt,privilegeList:["多对一技术支持","全年5次安全排查","5分钟极速响应","30+款付费插件","20+企业版专享功能","1000条免费短信(年付)","2张SSL商用证书(年付)","一对一服务(年付)","WAF防火墙","更换授权IP","客服优先响应","15+款付费插件","15天无理由退款"],proPrivilegeList:[0,0,0,0,0,0,0,0,1,1,1,1,1],ltdPrivilegeList:[0,0,1,1,1,1,1,1,1,1,1,1,1],plusPrivilegeList:[1,1,1,1,1,1,1,1,1,1,1,1,1],go2tab:dt,emits:_,onCancel:ut,init:Nt,$reset:Ct}})))}}}))}();
Save File
Cancel