File: /www/server/panel/BTPanel/static/js/store-legacy4.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,o,r="function"==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",u=r.toStringTag||"@@toStringTag";function i(t,r,a,u){var i=r&&r.prototype instanceof s?r:s,l=Object.create(i.prototype);return n(l,"_invoke",function(t,n,r){var a,u,i,s=0,l=r||[],p=!1,d={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,n){return a=t,u=0,i=e,d.n=n,c}};function v(t,n){for(u=t,i=n,o=0;!p&&s&&!r&&o<l.length;o++){var r,a=l[o],v=d.p,f=a[2];t>3?(r=f===n)&&(i=a[(u=a[4])?5:(u=3,3)],a[4]=a[5]=e):a[0]<=v&&((r=t<2&&v<a[1])?(u=0,d.v=n,d.n=a[1]):v<f&&(r=t<3||a[0]>n||n>f)&&(a[4]=t,a[5]=n,d.n=f,u=0))}if(r||t>1)return c;throw p=!0,n}return function(r,l,f){if(s>1)throw TypeError("Generator is already running");for(p&&1===l&&v(l,f),u=l,i=f;(o=u<2?e:i)||!p;){a||(u?u<3?(u>1&&(d.n=-1),v(u,i)):d.n=i:d.v=i);try{if(s=2,a){if(u||(r="next"),o=a[r]){if(!(o=o.call(a,i)))throw TypeError("iterator result is not an object");if(!o.done)return o;i=o.value,u<2&&(u=0)}else 1===u&&(o=a.return)&&o.call(a),u<2&&(i=TypeError("The iterator does not provide a '"+r+"' method"),u=1);a=e}else if((o=(p=d.n<0)?i:t.call(n,d))!==c)break}catch(o){a=e,u=1,i=o}finally{s=1}}return{value:o,done:p}}}(t,a,u),!0),l}var c={};function s(){}function l(){}function p(){}o=Object.getPrototypeOf;var d=[][a]?o(o([][a]())):(n(o={},a,function(){return this}),o),v=p.prototype=s.prototype=Object.create(d);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,n(e,u,"GeneratorFunction")),e.prototype=Object.create(v),e}return l.prototype=p,n(v,"constructor",p),n(p,"constructor",l),l.displayName="GeneratorFunction",n(p,u,"GeneratorFunction"),n(v),n(v,u,"Generator"),n(v,a,function(){return this}),n(v,"toString",function(){return"[object Generator]"}),(t=function(){return{w:i,m:f}})()}function n(e,t,o,r){var a=Object.defineProperty;try{a({},"",{})}catch(e){a=0}n=function(e,t,o,r){function u(t,o){n(e,t,function(e){return this._invoke(t,o,e)})}t?a?a(e,t,{value:o,enumerable:!r,configurable:!r,writable:!r}):e[t]=o:(u("next",0),u("throw",1),u("return",2))},n(e,t,o,r)}function o(e,t,n,o,r,a,u){try{var i=e[a](u),c=i.value}catch(e){return void n(e)}i.done?t(c):Promise.resolve(c).then(o,r)}function r(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var u=e.apply(t,n);function i(e){o(u,r,a,i,c,"next",e)}function c(e){o(u,r,a,i,c,"throw",e)}i(void 0)})}}function a(t,n,o){return(n=function(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var r=o.call(t,n||"default");if("object"!=e(r))return r;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:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t}System.register(["./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./index-legacy3.js?v=1777008528"],function(n,o){"use strict";var u,i,c,s,l,p,d,v,f,y,m,h,b,M,g,w,I,T,k,N,C,P,L,E,S,O,_,x,D,A,B,j,V,q,F;return{setters:[function(e){u=e.c,i=e.cu,c=e.M,s=e.cv,l=e.k,p=e.cw,d=e.cx,v=e.cy,f=e.cz,y=e.a3,m=e.w,h=e.cA,b=e.e,M=e._,g=e.cB,w=e.cC,I=e.f,T=e.R,k=e.cD,N=e.cE,C=e.cF,P=e.cG,L=e.cH,E=e.cI,S=e.cJ,O=e.cK,_=e.cL},function(e){x=e.aJ,D=e.r,A=e.t,B=e.H,j=e.aK,V=e.g},function(e){q=e.k,F=e.h}],execute:function(){n("P",x("PRODUCT-PAYMENT-STORE",function(){var n=D({}),x=D(),R=D(!1),U=u(),H=U.payment,W=U.paymentVoucherType,G=U.authTypeTitle,Y=U.isUpdatePayment,J=U.isRefreshSoftList,K=U.setAuthState,z=U.authExpirationTime,Z=U.forceLtd,$=U.aliyunEcsLtd,Q=U.getUnbindNumber,X=A(H.value),ee=X.authType,te=X.voucherOpenTime,ne=(X.newUserVoucherOpenTime,X.bindUser),oe=X.isGetCoupon,re=D(!1),ae=D(),ue=D(!1),ie=D(!1),ce=B({}),se=D(!0),le=D(!1),pe=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:a(a(a({},i.pro,[]),i.ltd,[]),i.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:[]}}),de=B({right:!0,left:!1}),ve=D(!1),fe=B({d:"00",h:"00",m:"00",s:"00"}),ye=null,me=null,he=B({status:!0,title:"正在获取产品信息,请稍侯..."}),be=B({status:!0,title:"正在生成支付订单,请稍侯..."}),Me=B({status:!1,title:""}),ge=D(!1),we=D(!1),Ie=D(),Te=D(0),ke=j("payCloseCount",0),Ne=V(function(){return"".concat("alipay"===(null==pe?void 0:pe.payMode.activePayType)?"ali":"wechat","-pay.svg")}),Ce=function(){var e,t=document.getElementById("list-box"),n=172*pe.cycleMode.list.length;if(null!==t){var o=t.clientWidth;if(!(n<o)){var r=document.getElementById("list"),a=Math.abs(parseInt(null===(e=window.getComputedStyle(r,null))||void 0===e?void 0:e.left,10));a+o-360<o?(r.style.left="0px",de.right=!0,de.left=!1):r.style.left="-".concat(a-360,"px")}}},Pe=function(){var e=r(t().m(function e(n){var o,r;return t().w(function(e){for(;;)switch(e.n){case 0:Ce(),he.status=!0,pe.enterpriseMode.status=!1,o=i.ltd,"string"==typeof n&&(n=ce.typeList.find(function(e){return e.type===n})),ce.activeTypeInfo=n,pe.cycleMode.list=[],pe.numsMode.activeNumsInfo.count=1,ce.unbindAuthor.status=!1,ce.unbindAuthor.count=0,pt(),r=n.type,e.n="coupon"===r?1:"plugin"===r||"ltd"===r||"pro"===r||"dev"===r?3:7;break;case 1:return he.title="正在获取产品抵扣券,请稍侯...",e.n=2,lt({pid:n.pid});case 2:return he.status=!1,pe.voucherMode.proTypeList[i.coupon]&&ct({pid:i.coupon,list:pe.voucherMode.proTypeList[i.coupon].list}),pe.voucherMode.proTypeList[i.pro]&&ct({pid:i.pro,list:pe.voucherMode.proTypeList[i.pro].list}),pe.voucherMode.proTypeList[o]&&ct({pid:o,list:pe.voucherMode.proTypeList[o].list}),e.a(3,7);case 3:if(he.title="正在获取产品信息,请稍侯...",!ne.value){e.n=5;break}return e.n=4,it(n.pid);case 4:e.n=6;break;case 5:Bt(n.type),Vt(),Ze();case 6:return he.status=!1,Le(pe.cycleMode.list[0]),e.a(3,7);case 7:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),Le=function(){var e=r(t().m(function e(n,o){var r;return t().w(function(e){for(;;)switch(e.n){case 0:if(jt("cycle",n)){e.n=1;break}return e.a(2);case 1:if(pe.numsMode.list=n.nums,pe.cycleMode.activeCycleInfo=n,pe.enterpriseMode.isHidden=!("ltd"===(null==ce?void 0:ce.activeTypeInfo.type)&&12===n.cycle),void 0===o&&!pe.enterpriseMode.isHidden&&pe.enterpriseMode.status&&(pe.enterpriseMode.status=!1),pt(),null===(r=n.nums)||void 0===r||!r.length){e.n=2;break}return e.n=2,Ee(n.nums[0]);case 2:return e.a(2)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),Ee=function(){var e=r(t().m(function e(n){var o,r,a,u,i;return t().w(function(e){for(;;)switch(e.n){case 0:if(jt("nums",n)){e.n=1;break}return e.a(2);case 1:if(pe.numsMode.activeNumsInfo=n,o=[],r=pe.couponMode.list,"pro"!==(null==ce?void 0:ce.activeTypeInfo.type)&&"ltd"!==(null==ce?void 0:ce.activeTypeInfo.type)){e.n=2;break}if(!(r.length>0)){e.n=2;break}if(r.forEach(function(e){Number(e.val1)<=n.price&&o.push(e)}),console.log("切换授权数量",o,n,pe),!o.length){e.n=2;break}return pe.couponMode.status=!0,o.sort(function(e,t){return Number(t.val2)-Number(e.val2)}),Se(null===(a=o[0].id)||void 0===a?void 0:a.toString()),e.a(2,!1);case 2:!ve.value&&pe.couponMode.count>0&&(i=r.filter(function(e){return Number(e.val1)<=n.price})[0],console.log(i,"89750938"),i||(pe.couponMode.status=!1),console.log(pe.couponMode.status,"0909"),ve.value=!0,pe.couponMode.activeCouponId=null==i||null===(u=i.id)||void 0===u?void 0:u.toString(),pe.couponMode.endTimeNum=Math.floor((null==i?void 0:i.endtime)-Math.floor((new Date).getTime()/1e3))),xe();case 3:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),Se=function(){var e=r(t().m(function e(n){var o,r;return t().w(function(e){for(;;)switch(e.n){case 0:if(n){e.n=1;break}return pe.couponMode.status=!1,e.a(2,c.error("请选择优惠券"));case 1:console.log("切换优惠券",pe,n,pe.couponMode.activeCouponInfo.val1,pe.numsMode.activeNumsInfo.price),(o=pe.couponMode.list.find(function(e){return e.id===Number(n)})||{}).val1&&Number(o.val1)<=pe.numsMode.activeNumsInfo.price&&(pe.couponMode.status=!0,pe.couponMode.activeCouponId=n.toString(),void 0!==(r=pe.couponMode.list.find(function(e){return e.id===Number(n)}))&&(pe.couponMode.activeCouponInfo=r,pe.couponMode.endTimeNum=Math.floor(r.endtime-Math.floor((new Date).getTime()/1e3)),r.name.indexOf("0.99")>-1?pe.couponMode.discountsTitle=r.name:pe.couponMode.discountsTitle="已使用优惠券,立减".concat(r.val2,"元"))),xe();case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),Oe=function(){var e={cycleMode:pe.cycleMode,numsMode:pe.numsMode,payMode:pe.payMode,typeTab:null==ce?void 0:ce.activeTypeInfo.type,enterpriseMode:pe.enterpriseMode,couponMode:pe.couponMode};sessionStorage.setItem("PAY-VIEW-INFO",JSON.stringify(e))},_e=D(!1),xe=function(){var e=r(t().m(function e(){var n,o,r,a,u,v,f,y,m,h,b,M,g,w,I,T,k,N,C,P,L,E,S,O,_,x,D=arguments;return t().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=D.length>0&&void 0!==D[0]?D[0]:{pid:Number(pe.numsMode.activeNumsInfo.pid),cycle:Number(pe.cycleMode.activeCycleInfo.cycle),source:Number(ae.value),num:Number(pe.numsMode.activeNumsInfo.count),coupon:pe.couponMode.status&&pe.couponMode.activeCouponId||"",get_ali_msg:0,regain:0},o=!(D.length>1&&void 0!==D[1])||D[1],!$.value){e.n=1;break}return e.a(2);case 1:return e.p=1,a=(new Date).getTime()/1e3,pe.payMode.createOrderTime.push(a),o&&(be.status=!0),e.n=2,s(n);case 2:if(u=e.v,v=u.data,f=ce.activeTypeInfo,y=f.pid,m=pe.enterpriseMode.status,!(y===i.ltd&&(m&&Number(n.pid)!==i.dev||!m&&Number(n.pid)!==i.ltd)||y!==i.ltd&&Number(n.pid)!==y||Number(pe.numsMode.activeNumsInfo.count)!==n.num||n.cycle!==Number(pe.cycleMode.activeCycleInfo.cycle))){e.n=3;break}return e.a(2);case 3:if("string"!=typeof v.data||"inherit_order"!==v.data){e.n=5;break}return c.msg({message:v.msg,type:"warning"}),e.n=4,Ct();case 4:return e.a(2,xe());case 5:if("string"!=typeof v.msg||-1===v.msg.indexOf("接口请求失败")){e.n=6;break}return c.msg({customClass:"panel-cloud-error",dangerouslyUseHTMLString:!0,message:v.msg,type:"error",duration:0,showClose:!0}),e.a(2);case 6:if(v.status||1e3!==(null===(r=v.data)||void 0===r?void 0:r.code)){e.n=7;break}return Me.status=!0,be.status=!1,Me.title=v.data.msg,e.a(2);case 7:if(h=v.ali_msg,b=v.msg,M=v.extra,g=void 0===M?void 0:M,w=v.data,I=v.is_coupon,T=v.status_code,k=w.cash_fee,N=w.uid,pe.payMode.activeBuyInfo=at(k,v),120!==T||!g){e.n=9;break}if(pe.payMode.payTips.name=g.name,"pro"!==ce.activeTypeInfo.type||"永久授权"!==z.value){e.n=8;break}return ce.unbindAuthor.status=!0,ce.unbindAuthor.count=null==g?void 0:g.rest_unbind_count,be.status=!1,Et.value={type:null==ce?void 0:ce.activeTypeInfo.type,typeName:G.value,extra:g},e.a(2,!1);case 8:pe.payMode.payTips.status=!0,C=new Date(1e3*g.end_time).getTime()-(new Date).getTime(),P=C/864e5,pe.payMode.payTips.day=Math.ceil(P),e.n=10;break;case 9:pe.payMode.payTips.status=!1;case 10:if(console.log(I,"isCoupon"),!(I&&I.length>0&&te.value<(new Date).getTime()/1e3&&100!==te.value)){e.n=11;break}ge.value=!0,ze({isCoupon:I}),e.n=12;break;case 11:if(we.value||!(pe.couponMode.list.length>0)||ue.value||ge.value){e.n=12;break}return we.value=!0,L=pe.couponMode.list[0],L.val1,L.val2,E=L.id,L.pid,Se(E),e.a(2);case 12:if(w.returnTime=a,pe.payMode.activeBalanceInfo=w,!(pe.payMode.lastPayTime<=0)){e.n=14;break}if(w.pid){e.n=13;break}return c.error("请求失败"),e.a(2);case 13:l({request:p({pid:w.pid}),data:{res:[Number,"buyVerify"]},success:function(e){e&&(pe.payMode.lastPayTime=e.buyVerify,je())}}),e.n=15;break;case 14:je();case 15:return e.n=16,l({request:d({uid:N}),data:{res:[Number,"credits"]}});case 16:if(S=e.v,O=S.credits,pe.payMode.balance=O/100,(_=pe.payMode.createOrderTime)[_.length-1]===w.returnTime){e.n=17;break}return e.a(2,!1);case 17:be.status=!1,pe.payMode.balance>=pe.payMode.activeBuyInfo.price?pe.payMode.activePayType="balance":pe.payMode.activeBuyInfo.price>=6e3?(_e.value=!0,pe.payMode.activePayType="wechat"===pe.payMode.activePayType?"alipay":pe.payMode.activePayType):pe.payMode.balance<pe.payMode.activeBuyInfo.price&&(pe.payMode.activeBuyInfo.price<6e3?pe.payMode.activePayType="wechat":pe.payMode.activePayType="alipay"),_e.value&&pe.payMode.activeBuyInfo.price<6e3&&(pe.payMode.activePayType="wechat",_e.value=!1),pe.payMode.activePayCode.apliy=h,pe.payMode.activePayCode.wechat=b,pe.payMode.qrcode.value="wechat"===pe.payMode.activePayType?b:h,"ltd"===(null==ce?void 0:ce.activeTypeInfo.type)&&qe(pe.numsMode.activeNumsInfo.count),ye&&clearTimeout(ye),"coupon"!==(null==ce?void 0:ce.activeTypeInfo.type)&&setTimeout(function(){se.value=!0,Xe((new Date).getTime()/1e3)},5e3),Oe(),e.n=19;break;case 18:e.p=18,x=e.v,console.log(x);case 19:return e.a(2)}},e,null,[[1,18]])}));return function(){return e.apply(this,arguments)}}(),De=D({}),Ae=D(),Be=function(){var e=r(t().m(function e(){var n;return t().w(function(e){for(;;)switch(e.n){case 0:return Se(De.value.id),e.n=1,Ae.value;case 1:null==(n=e.v)||n.unmount();case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),je=function(){(new Date).getTime()/1e3-pe.payMode.lastPayTime<1800?pe.payMode.isLastBuyRepeat=!0:pe.payMode.isLastBuyRepeat=!1},Ve=D(0),qe=function(){var e=r(t().m(function e(n){var o,r,a,u;return t().w(function(e){for(;;)switch(e.n){case 0:if(o=[],!pe.devCycleInfo.isGetOperated||!pe.devCycleInfo.data.nums.length){e.n=1;break}o=pe.devCycleInfo.data.nums,e.n=3;break;case 1:return e.n=2,v({pid:100000068});case 2:r=e.v,a=r.data,o=a[12].nums,pe.devCycleInfo.isGetOperated=!0,pe.devCycleInfo.data=a[12];case 3:(u=o.find(function(e){return e.count===n}))&&(Ve.value=u.price);case 4:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),Fe=D(""),Re=D(!1),Ue=D(Math.floor(Date.now()/1e3)),He=function(){var e=r(t().m(function e(n,o){var r,a,u,i,s;return t().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,f({type:W.value});case 1:if(r=e.v,a=r.data,oe.value=!0,!y(null==a?void 0:a.status)||0!==(null==a?void 0:a.status)){e.n=2;break}return c.request({msg:a.msg,status:!1}),Re.value=!0,e.a(2);case 2:return u={100000011:"pro",100000032:"ltd",100000068:"dev"}[a.data[0].pid],i=a.data[0].id,c.request({msg:a.msg,status:!0}),e.n=3,Je.value;case 3:if(null==(s=e.v)||s.unmount(),n&&"function"==typeof n&&n(),!Ye.value&&!o){e.n=5;break}return e.n=4,q({disablePro:"pro"!==u,sourceId:Ye.value?176:0,isHomeBubble:{id:i,pro:u}});case 4:return e.a(2,!1);case 5:return e.n=6,$e(i,u);case 6:e.n=8;break;case 7:e.p=7,e.v;case 8:return e.a(2)}},e,null,[[0,7]])}));return function(t,n){return e.apply(this,arguments)}}(),We=function(){var e=r(t().m(function e(n){var o,r,a,u,i,s,l=arguments;return t().w(function(e){for(;;)switch(e.p=e.n){case 0:o=!(l.length>1&&void 0!==l[1])||l[1],r=0,a="",Fe.value=n,s=Fe.value,e.n="today"===s?1:"week"===s?2:"forver"===s?3:4;break;case 1:return r=new Date((new Date).toLocaleDateString()).getTime()+864e5-1,a="今日内不再通知",e.a(3,4);case 2:return r=new Date((new Date).toLocaleDateString()).getTime()+6048e5-1,a="近7天内不再通知",e.a(3,4);case 3:return r=-100,a="永久不再通知",e.a(3,4);case 4:if(r=Math.floor(r>0?r/1e3:r),!o){e.n=5;break}return e.n=5,m({title:"提示",content:"".concat(a,",是否确认?")});case 5:if(Ye.value){e.n=10;break}return e.p=6,e.n=7,h({limit_time:r});case 7:u=e.v,o&&c.request(u),e.n=9;break;case 8:e.p=8,e.v;case 9:e.n=11;break;case 10:te.value=r,sessionStorage.setItem("voucherOpenTime",te.value.toString());case 11:return e.n=12,Je.value;case 12:null==(i=e.v)||i.unmount(),oe.value=!0;case 13:return e.a(2)}},e,null,[[6,8]])}));return function(t){return e.apply(this,arguments)}}(),Ge=D([]),Ye=D(!1),Je=D(),Ke=D(),ze=function(){var e=r(t().m(function e(n){return t().w(function(e){for(;;)switch(e.n){case 0:if(!$.value){e.n=1;break}return e.a(2);case 1:Ge.value=n.isCoupon,Ye.value=n.isHome||!1,Je.value=b({area:40,component:function(){return M(function(){return o.import("./index-legacy183.js?v=1777008528")},void 0,o.meta.url)},customClass:"voucherFetchView",compData:n,onCancel:function(){Re.value&&window.location.reload()}});case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),Ze=function(){var e=r(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:if(!$.value&&!H.value.bindUser){e.n=1;break}return e.a(2);case 1:Ke.value=b({area:40,component:function(){return M(function(){return o.import("./index-legacy184.js?v=1777008528")},void 0,o.meta.url)},customClass:"voucherFetchView"});case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),$e=function(){var e=r(t().m(function e(n,o){return t().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Qe();case 1:if(o===(null==ce?void 0:ce.activeTypeInfo.type)){e.n=2;break}return e.n=2,Pe(o);case 2:return e.n=3,Se(n);case 3:return e.a(2)}},e)}));return function(t,n){return e.apply(this,arguments)}}(),Qe=function(){var e=r(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:if(!$.value){e.n=1;break}return e.a(2);case 1:if(pe.couponInfo[i.pro]=[],pe.couponInfo[i.ltd]=[],pe.couponInfo[i.dev]=[],ne.value){e.n=2;break}return e.a(2);case 2:return e.n=3,l({request:g(),data:{res:[Array,"data"]},success:function(e){var t=(new Date).getTime()/1e3;e.data.forEach(function(e){var n,o=Math.floor((e.endtime-Math.floor(t))/3600),r=0;o>24?r=Math.floor(o/24):o>0&&(r=1),e.newName="".concat(e.name,"( ").concat(r,"天后过期)"),null===(n=pe.couponInfo[e.product_id])||void 0===n||n.push(e)}),pt()}});case 3:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),Xe=function(){var e=r(t().m(function e(n){var o,r,a,u,i,c,s;return t().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,R.value){e.n=1;break}return e.a(2);case 1:if(n&&sessionStorage.setItem("PAY-VIEW-INFO-TIME","".concat(n)),!(o=sessionStorage.getItem("PAY-VIEW-INFO-TIME"))){e.n=3;break}if(!(parseInt("".concat((new Date).getTime()/1e3-Number(o)),10)>600&&R.value)){e.n=2;break}return se.value=!1,sessionStorage.removeItem("PAY-VIEW-INFO-TIME"),e.a(2,m({title:"支付超时",icon:"warning",content:"由于您长时间未操作,支付超时,请刷新网页重新购买!",onConfirm:function(){dt(),window.location.reload()},onCancel:function(){dt(),window.location.reload()}}));case 2:R.value||sessionStorage.removeItem("PAY-VIEW-INFO-TIME");case 3:if(ye&&clearTimeout(ye),"coupon"!==(null==ce?void 0:ce.activeTypeInfo.type)&&!ce.unbindAuthor.status){e.n=4;break}return e.a(2);case 4:if("balance"!==pe.payMode.activePayType){e.n=5;break}return ye=setTimeout(function(){Xe()},4e3),e.a(2);case 5:return r=(new Date).getTime()/1e3,e.n=6,l({request:w({wxoid:pe.payMode.activeBalanceInfo.wxoid,py_type:"alipay"===pe.payMode.activePayType?"ali":""}),data:{status:[Boolean,"status"],data:[Object,"data"]}});case 6:a=e.v,u=a.status,i=a.data,c=["WAIT_BUYER_PAY","TRADE_CLOSED"],i&&c.includes(i.status)&&(le.value=!0),u?rt():(s=(new Date).getTime()/1e3,me=setTimeout(Xe,s-r<1?4e3:3e3)),e.n=8;break;case 7:e.p=7,e.v;case 8:return e.a(2)}},e,null,[[0,7]])}));return function(t){return e.apply(this,arguments)}}(),et=function(){(window.location.pathname.includes("/waf")||Z.value)&&window.location.reload()},tt=function(){var e=r(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:-1!==window.location.pathname.indexOf("/soft/plugin")&&(Y.value=!0,J.value=!0);case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),nt=D({}),ot=function(){var e=r(t().m(function e(){var n,o,r,a,u;return t().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,L({force:1});case 1:return n=e.v,o=n.data,r=new E(o,{ltd:Number,pro:Number}).exportData(),a=r.ltd,u=r.pro,K([0,u,a]),e.a(2,{ltd:a,pro:u})}},e)}));return function(){return e.apply(this,arguments)}}(),rt=function(){var e=r(t().m(function e(){var n,r,a,u,i;return t().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,tt();case 1:return dt(),e.n=2,ot();case 2:if(u=e.v,"plugin"!==(null==ce||null===(n=ce.activeTypeInfo)||void 0===n?void 0:n.type)){e.n=3;break}return e.a(2,I().success("".concat(ce.activeTypeInfo.title,"支付成功")));case 3:i="dev"===(null==ce||null===(r=ce.activeTypeInfo)||void 0===r?void 0:r.type)?"ltd":(null==ce||null===(a=ce.activeTypeInfo)||void 0===a?void 0:a.type)||"",Object.assign(nt.value,{type:ce.activeTypeInfo.type,typeTipsList:ce.activeTypeInfo.tipsList,cycle:pe.payMode.activeBuyInfo.cycle,count:pe.payMode.activeBuyInfo.count,lastTime:T(u[i],"yyyy-MM-dd"),title:ce.activeTypeInfo.title}),b({area:68,component:function(){return M(function(){return o.import("./index-legacy185.js?v=1777008528")},void 0,o.meta.url)}}),et(),e.n=5;break;case 4:e.p=4,e.v;case 5:return e.a(2)}},e,null,[[0,4]])}));return function(){return e.apply(this,arguments)}}(),at=function(e,t){var n=pe.cycleMode,o=pe.numsMode,r=pe.couponMode,a=n.activeCycleInfo,u=a.originalPrice,i=o.activeNumsInfo,c=r.activeCouponInfo,s=r.status,l=e/100,p=a.title||"",d=i.count||0,v=u*d;return s&&(c.name.includes("0.99")?(l=v-c.val1,p="".concat(c.experimental_interval,"天"),d=1):l=t.price),{price:l,count:d,cycle:p,originalPrice:v,discount:c}},ut=D(!1),it=function(){var e=r(t().m(function e(n){var o,r,a,u,c,s,l,p,d,f,y;return t().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,ut.value=!0,e.n=1,v({pid:n});case 1:for(u in o=e.v,r=o.data,Number(r.pid)===i.dev&&(delete r[1],delete r[6],delete r[36],pe.devCycleInfo.isGetOperated=!0,pe.devCycleInfo.data=r[12]),a=[],r)Object.prototype.hasOwnProperty.call(r,u)&&(c=r[u],s=c.price,l=c.tip,p=c.sprice,d=c.nums,f=c.sort,isNaN(Number(u))||(y=Number(u)%12==0?"".concat(Number(u)/12,"年"):"".concat(Number(u),"个月"),a.push({cycle:Number(u),price:s,recommend:l,originalPrice:p,nums:d,sort:f,title:y,everyDay:(s/Number(u)/30).toFixed(2)})));a.sort(function(e,t){return e.sort-t.sort}),pe.cycleMode.list=a,e.n=3;break;case 2:e.p=2,e.v;case 3:return e.p=3,ut.value=!1,e.f(3);case 4:return e.a(2)}},e,null,[[0,2,3,4]])}));return function(t){return e.apply(this,arguments)}}(),ct=function(e){var t=e.list,n=e.pid;return pe.voucherMode.list=t,pe.voucherMode.typeActive=n,t.length?st(t[0]):c.warn("暂无可用优惠券")},st=function(e){var t=e.id,n=e.product_id,o=e.code;pe.voucherMode.active=t,pe.voucherMode.activeInfo={pid:n,code:o}},lt=function(){var e=r(t().m(function e(n){var o,r;return t().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,pe.voucherMode.loading=!0,pe.voucherMode.list=[],pe.voucherMode.typeList={},pe.voucherMode.proTypeList={},e.n=1,k(n);case 1:o=e.v,r=o.data,pe.voucherMode.isExist=!(0===r.length),r.forEach(function(e){var t=e.product_id,n=e.name;pe.voucherMode.typeList.hasOwnProperty(t)?pe.voucherMode.typeList[t].list.push(e):pe.voucherMode.typeList[t]={name:n,pid:t,list:[e]}}),["100000011","100000032"].reverse().forEach(function(e){if(pe.voucherMode.typeList[e]){var t=pe.voucherMode.typeList[e];pe.voucherMode.proTypeList[e]=t,delete pe.voucherMode.typeList[e]}}),e.n=3;break;case 2:e.p=2,e.v;case 3:return e.p=3,pe.voucherMode.loading=!1,e.f(3);case 4:return e.a(2)}},e,null,[[0,2,3,4]])}));return function(t){return e.apply(this,arguments)}}(),pt=function(){var e=ce.activeTypeInfo,t=e.type,n=e.pid;if(["plugin","coupon"].includes(t))pe.couponMode.count=0,pe.couponMode.list=[];else{var o,r=n;pe.enterpriseMode.status&&"ltd"===t&&(r=i.dev),pe.couponMode.count=(null===(o=pe.couponInfo[r])||void 0===o?void 0:o.length)||0,pe.couponMode.list=pe.couponInfo[r]}pe.couponMode={status:!1,activeCouponId:"",activeCouponInfo:{},discountsTitle:"",count:pe.couponMode.count,list:pe.couponMode.list,disabled:!pe.couponMode.count,endTimeNum:0},pe.couponMode.count<=0&&(pe.couponMode.disabled=!0,pe.couponMode.status=!1)},dt=function(){var e=r(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:window.onbeforeunload=function(){},Rt(),x.value("close");case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),vt=function(){var e=r(t().m(function e(){var n,o,r=arguments;return t().w(function(e){for(;;)switch(e.n){case 0:return n=r.length>0&&void 0!==r[0]?r[0]:{},e.n=1,l({request:S(n)});case 1:return o=e.v,e.a(2,o.data)}},e)}));return function(){return e.apply(this,arguments)}}(),ft=function(){var e=r(t().m(function e(){var n;return t().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!$.value){e.n=1;break}return ot(),dt(),e.a(2,!1);case 1:if(ne.value){e.n=2;break}return dt(),e.a(2,!1);case 2:if(ke.value++,!(ke.value>=3)){e.n=4;break}return ke.value=0,W.value=5,e.n=3,vt({type:W.value});case 3:if(!((n=e.v).length>0)){e.n=4;break}return ze({isCoupon:n,close:dt,isLimited:!0}),e.a(2,!1);case 4:return e.p=4,e.n=5,m({title:"温馨提示",content:'支付过程中,请勿关闭该页面,以免出现支付异常!<br><a\n\t\t\t\tclass="bt-link text-small"\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 5:W.value=0,dt(),e.n=7;break;case 6:e.p=6,e.v;case 7:return e.a(2,!1)}},e,null,[[4,6]])}));return function(){return e.apply(this,arguments)}}(),yt=function(){var e;return null==ce||null===(e=ce.typeList)||void 0===e?void 0:e.filter(function(e){return!0!==(null==e?void 0:e.isHidden)})},mt=function(){if($.value)return"dev";var e="free"===ee.value?"ltd":ee.value;return ie.value||"ltd"===e||(e="pro"),e},ht=function(e,t){return null==t?void 0:t.some(function(t){return t.type===e})},bt=function(){var n=r(t().m(function n(){var o,r,a;return t().w(function(t){for(;;)switch(t.n){case 0:if(!(ue.value&&Object.keys(ue.value).length>0&&"object"===e(ue.value))){t.n=1;break}return o=ue.value,r=o.id,a=o.pro,t.n=1,$e(r,a);case 1:return t.a(2)}},n)}));return function(){return n.apply(this,arguments)}}(),Mt=D(),gt=function(){var e=r(t().m(function e(n){var o;return t().w(function(e){for(;;)switch(e.n){case 0:return Pe(n),e.n=1,Mt.value;case 1:null==(o=e.v)||o.unmount();case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),wt=D(!1),It=function(){var e=r(t().m(function e(){var n,o,r,a,u,i;return t().w(function(e){for(;;)switch(e.n){case 0:if(n=sessionStorage.getItem("PAY-VIEW-INFO-REMARKS")){e.n=1;break}return e.n=1,l({loading:wt,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 1:o=JSON.parse(n),wt.value=!1,r=o.pro,a=o.ltd,u=o.vip_pro_list,i=o.activityList,ce.typeList[1].tipsList=r,ce.typeList[2].tipsList=a,ce.typeList[3].tipsList=u,(new DOMParser).parseFromString(i,"text/xml"),ce.activityList=i||"",ce.activeTypeInfo=ce.typeList.find(function(e){return e.type===ce.activeTypeInfo.type}),Qe();case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),Tt=D([{type:"wechat",title:"微信扫码支付"},{type:"alipay",title:"支付宝扫码支付"},{type:"balance",title:"余额支付"},{type:"accounts",title:"对公转账"}]),kt=function(){var e=r(t().m(function e(n){var o;return t().w(function(e){for(;;)switch(e.n){case 0:le.value=!1,o=n.type,e.n="wechat"===o?1:"alipay"===o?3:7;break;case 1:if(!(pe&&(null==pe?void 0:pe.payMode.activeBuyInfo.price)>=6e3)){e.n=2;break}return c.warn("刷新支付金额已超过微信单笔支付额度,请选择其他支付方式"),e.a(2,!1);case 2:return pe.payMode.qrcode.value=pe.payMode.activePayCode.wechat,e.a(3,7);case 3:if(""!==pe.payMode.activePayCode.apliy&&!n.isRegain){e.n=5;break}return e.n=4,xe({pid:Number(pe.numsMode.activeNumsInfo.pid),cycle:Number(pe.cycleMode.activeCycleInfo.cycle),source:Number(ae.value),num:Number(pe.numsMode.activeNumsInfo.count),coupon:pe.couponMode.status&&pe.couponMode.activeCouponId||"",get_ali_msg:1,regain:n.isRegain?1:0},!0);case 4:pe.payMode.qrcode.value=pe.payMode.activePayCode.apliy,le.value=!1,e.n=6;break;case 5:pe.payMode.qrcode.value=pe.payMode.activePayCode.apliy;case 6:return e.a(3,7);case 7:pe.payMode.activePayType=n.type;case 8:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),Nt=function(){var e=r(t().m(function e(){var n,o,r,a;return t().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,l({loading:"正在支付中...",request:N({num:Number(null==pe||null===(n=pe.numsMode)||void 0===n||null===(n=n.activeNumsInfo)||void 0===n?void 0:n.count),cycle:Number(null==pe||null===(o=pe.cycleMode)||void 0===o||null===(o=o.activeCycleInfo)||void 0===o?void 0:o.cycle),uid:Number(null==pe||null===(r=pe.payMode)||void 0===r||null===(r=r.activeBalanceInfo)||void 0===r?void 0:r.uid),pid:Number(null==pe||null===(a=pe.payMode)||void 0===a||null===(a=a.activeBalanceInfo)||void 0===a?void 0:a.pid),coupon:pe.couponMode.status&&pe.couponMode.activeCouponId||""}),data:{res:String,success:Boolean},success:function(e){c.request({msg:e.res,status:e.success}),e.success&&rt()}});case 1:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),Ct=function(){var e=r(t().m(function e(){var n;return t().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,ot();case 1:e.v&&(c.request({msg:"刷新成功",status:!0}),null!=ce&&null!==(n=ce.activeTypeInfo)&&void 0!==n&&n.type&&Pe(ce.activeTypeInfo.type)),e.n=3;break;case 2:e.p=2,e.v;case 3:return e.a(2)}},e,null,[[0,2]])}));return function(){return e.apply(this,arguments)}}(),Pt=D(!1),Lt=function(){var e=r(t().m(function e(){var n,o,r,a,u,i;return t().w(function(e){for(;;)switch(e.n){case 0:if(Pt.value=!0,""!==(null==pe?void 0:pe.voucherMode.activeInfo.code)){e.n=1;break}return e.a(2,c.warn("请选择抵扣券"));case 1:return e.n=2,l({loading:"正在使用抵扣券,请稍侯...",request:C({pid:Number(null==pe?void 0:pe.voucherMode.activeInfo.pid),code:(null==pe?void 0:pe.voucherMode.activeInfo.code)||""}),data:{extra:[Object,"extra"],status:Boolean,status_code:[Number,"statusCode"],msg:String}});case 2:if(n=e.v,o=n.status,r=n.extra,a=void 0===r?void 0:r,u=n.statusCode,i=n.msg,Pt.value=!1,!o){e.n=4;break}return e.n=3,ot();case 3:c.request({msg:i,status:o}),tt(),dt(),et(),e.n=5;break;case 4:120!==u||o?c.request({msg:i,status:o}):(Pt.value=!1,xt({type:null==ce?void 0:ce.activeTypeInfo.type,typeName:G.value,extra:a}));case 5:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),Et=D({}),St=D(!1),Ot=D(),_t=function(){var e=r(t().m(function e(){var n,o,r,a,u,s=arguments;return t().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=s.length>0&&void 0!==s[0]&&s[0],!(Et.value.extra.rest_unbind_count>0)){e.n=12;break}return e.p=1,e.n=2,m({title:"提示",content:"解绑当前【".concat(G.value,"授权】,继续操作!")});case 2:return St.value=!0,e.n=3,P();case 3:if(o=e.v,r=o.data,c.request({msg:r.res,status:r.success}),!r.success){e.n=8;break}return e.n=4,ot();case 4:if(!n){e.n=5;break}setTimeout(function(){Pe(ce.activeTypeInfo.type)},500),e.n=6;break;case 5:return e.n=6,lt({pid:i.coupon});case 6:return tt(),e.n=7,Ot.value;case 7:null==(a=e.v)||a.unmount();case 8:e.n=10;break;case 9:e.p=9,u=e.v,console.log(u,"error");case 10:return e.p=10,St.value=!1,e.f(10);case 11:e.n=13;break;case 12:window.open("https://www.bt.cn/admin/profe_ee","_blank","noopener,noreferrer");case 13:return e.a(2)}},e,null,[[1,9,10,11]])}));return function(){return e.apply(this,arguments)}}(),xt=function(e){Et.value=e,Ot.value=b({area:[32,29],component:function(){return M(function(){return o.import("./index-legacy187.js?v=1777008528")},void 0,o.meta.url)}})},Dt=function(){var e=n.value,t=e.pluginInfo,o=e.disablePro;re.value=!!t,ae.value=n.value.sourceId,ie.value=o,ue.value=n.value.isHomeBubble,Object.assign(ce,{typeList:[{type:"plugin",title:re.value?t.title:"插件",describe:re.value?8===t.type?"【专业版】已包含此插件":"【企业版】已包含此插件":"",pid:re.value?t.pid:0,isHidden:!re.value,tipsTitle:"插件说明",tipsList:[]},{type:"pro",title:"".concat(_,"专业版"),describe:"适用于个人用户、个人项目",pid:i.pro,isHidden:o,tipsTitle:"专业版特权",tipsList:[]},{type:"ltd",title:"".concat(_,"企业版"),describe:"适用于官网,电商、教育、医疗等用户",pid:i.ltd,recommend:!0,tipsTitle:"企业版特权",tipsList:[]},{type:"dev",title:"企业运维托管",describe:"适用于无专业技术、需技术服务的企业",pid:i.dev,tipsTitle:"企业运维托管特权",isHidden:re.value,tipsList:["网站性能优化","网站安全扫描","网站攻击防护","服务器运维托管","企业版所有特权","文件防篡改配置","文件代码同步部署","系统文件垃圾清理","数据库数据同步部署","50x/40x网站报错处理","CPU内存占用过高处理"]},{type:"coupon",title:"抵扣券",describe:"抵扣券授权",pid:i.coupon,tipsTitle:"抵扣券来源",tipsList:["官网后台购买","活动页购买","推广赠送","更换绑定IP"]}],activityList:"",activeTypeInfo:{type:"pro",describe:"",title:"",pid:0,recommend:!1,tipsTitle:"",tipsList:[]},unbindAuthor:{status:!1,count:0}})},At=function(){var e=r(t().m(function e(o){var r,a;return t().w(function(e){for(;;)switch(e.n){case 0:return o&&(n.value=o),R.value=!0,Dt(),It(),wt.value=!0,r=mt(),a=yt(),ht(r,a)||(r="ltd"),e.n=1,Pe(r);case 1:bt(),H.value.bindUser&&(window.onbeforeunload=function(){return"是否要离开"});case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),Bt=function(e){pe.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"}]},jt=function(e,t){return!(!ne.value&&("nums"===e&&1!==t.count||"cycle"===e&&12!==t.cycle))||(F(),!1)},Vt=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())),Te.value=e},qt=D(0),Ft=function(){var e=r(t().m(function e(){var n;return t().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Q();case 1:n=e.v,qt.value=n;case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),Rt=function(){_e.value=!1,R.value=!1,le.value=!1,we.value=!1,me&&clearTimeout(me),ye&&clearTimeout(ye),Ie.value&&clearInterval(Ie.value)};return{voucherFetchInstance:Je,openNewUserVoucherFetchViewDialog:Ze,compData:n,isRemarksLoading:wt,productPriceLoading:ut,isPlugin:re,productInfo:ce,product:pe,enterprise:Ve,tabLoading:he,iSwitch:de,countDown:fe,switchLeft:Ce,switchRight:function(){var e=document.getElementById("list-box"),t=172*pe.cycleMode.list.length,n=e.clientWidth;if(!(t<n)){var o=document.getElementById("list"),r=Math.abs(parseInt(window.getComputedStyle(o,null).left,10));r+n+360>t?(o.style.left="-".concat(t-n,"px"),de.right=!1,de.left=!0):o.style.left="-".concat(r+360,"px")}},changeTypeTabEvent:Pe,changeCycleTabEvent:Le,changeNumsTabEvent:Ee,enterpriseEvent:function(e){pe.enterpriseMode.status=Boolean(e),e?Le({cycle:12,price:pe.devCycleInfo.data.price,recommend:!1,originalPrice:pe.devCycleInfo.data.sprice,nums:pe.devCycleInfo.data.nums,sort:0,title:"1年",everyDay:(pe.devCycleInfo.data.price/12/30).toFixed(2)},"dev"):Le(pe.cycleMode.list[0])},changeCouponBoxEvent:function(e){var t=pe.couponMode,n=t.status,o=t.count,r=t.activeCouponId;if(0===o)return pe.couponMode.status=!1,c.warn("暂无可用优惠券");if(console.log("点击优惠券栏目",pe),pe.couponMode.status=void 0!==e?Boolean(e):!n,""!==r&&pe.couponMode.status)Se(r);else if(""===r&&pe.couponMode.status)return c.request({msg:"请选择优惠券",status:!1}),pe.couponMode.status=!1,!1;xe()},changeCouponEvent:Se,openPrivilegeContrast:function(){Mt.value=b({area:[97,76],component:function(){return M(function(){return o.import("./index-legacy186.js?v=1777008528")},void 0,o.meta.url)}})},newUserVoucherFetchInstance:Ke,newUserVoucherEndTime:Te,scanned:le,errorMask:Me,bindUser:ne,paymentLoading:be,payList:Tt,changePayTypeEvent:kt,paySuccessData:nt,openBuySuccessView:rt,changeBalanceBuyEvent:Nt,changeRefreshAuthor:Ct,couponItem:Ge,closeAfterReload:Re,timeClose:Fe,siteList:[{label:"今日内不再提醒",value:"today"},{label:"近7天内不再提醒",value:"week"},{label:"永久不再提醒",value:"forver"}],timeNow:Ue,addZero:function(e){return e<10?"0".concat(e):"".concat(e)},claimCouponEvent:He,changeCloseTimeEvent:We,couponCompData:De,changeVoucher:Be,activePayIcon:Ne,voucherLoading:Pt,getVoucherCycleDescribe:function(e,t){return"month"===t?e%12?"".concat(e,"个月"):"".concat(e/12,"年"):"".concat(e+("year"===t?"年":"天"))},useChangeVoucher:Lt,changeVoucherEvent:st,changeVoucherTypeEvent:ct,refreshSoftEvent:tt,unbindBuyAuthorDialog:xt,authTypeTitle:G,authExpirationTime:z,getUnbindCount:Ft,unBindAuthor:function(){xt({type:null==ce?void 0:ce.activeTypeInfo.type,typeName:G.value,extra:{rest_unbind_count:qt.value}})},isDisabledAuth:St,authType:ee,bindAuthData:Et,changeUnbindAuthor:_t,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:gt,emits:x,onCancel:ft,init:At,$reset:Rt}}))}}})}();