File: /www/server/panel/BTPanel/static/js/index-legacy545.js
!function(){function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(e,n):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 t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,l="function"==typeof Symbol?Symbol:{},o=l.iterator||"@@iterator",a=l.toStringTag||"@@toStringTag";function r(n,l,o,a){var r=l&&l.prototype instanceof s?l:s,u=Object.create(r.prototype);return i(u,"_invoke",function(n,i,l){var o,a,r,s=0,u=l||[],d=!1,p={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(t,n){return o=t,a=0,r=e,p.n=n,c}};function v(n,i){for(a=n,r=i,t=0;!d&&s&&!l&&t<u.length;t++){var l,o=u[t],v=p.p,f=o[2];n>3?(l=f===i)&&(r=o[(a=o[4])?5:(a=3,3)],o[4]=o[5]=e):o[0]<=v&&((l=n<2&&v<o[1])?(a=0,p.v=i,p.n=o[1]):v<f&&(l=n<3||o[0]>i||i>f)&&(o[4]=n,o[5]=i,p.n=f,a=0))}if(l||n>1)return c;throw d=!0,i}return function(l,u,f){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&v(u,f),a=u,r=f;(t=a<2?e:r)||!d;){o||(a?a<3?(a>1&&(p.n=-1),v(a,r)):p.n=r:p.v=r);try{if(s=2,o){if(a||(l="next"),t=o[l]){if(!(t=t.call(o,r)))throw TypeError("iterator result is not an object");if(!t.done)return t;r=t.value,a<2&&(a=0)}else 1===a&&(t=o.return)&&t.call(o),a<2&&(r=TypeError("The iterator does not provide a '"+l+"' method"),a=1);o=e}else if((t=(d=p.n<0)?r:n.call(i,p))!==c)break}catch(t){o=e,a=1,r=t}finally{s=1}}return{value:t,done:d}}}(n,o,a),!0),u}var c={};function s(){}function u(){}function d(){}t=Object.getPrototypeOf;var p=[][o]?t(t([][o]())):(i(t={},o,function(){return this}),t),v=d.prototype=s.prototype=Object.create(p);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,i(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e}return u.prototype=d,i(v,"constructor",d),i(d,"constructor",u),u.displayName="GeneratorFunction",i(d,a,"GeneratorFunction"),i(v),i(v,a,"Generator"),i(v,o,function(){return this}),i(v,"toString",function(){return"[object Generator]"}),(n=function(){return{w:r,m:f}})()}function i(e,t,n,l){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}i=function(e,t,n,l){function a(t,n){i(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!l,configurable:!l,writable:!l}):e[t]=n:(a("next",0),a("throw",1),a("return",2))},i(e,t,n,l)}function l(e,t,n,i,l,o,a){try{var r=e[o](a),c=r.value}catch(e){return void n(e)}r.done?t(c):Promise.resolve(c).then(i,l)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(i,o){var a=e.apply(t,n);function r(e){l(a,i,o,r,c,"next",e)}function c(e){l(a,i,o,r,c,"throw",e)}r(void 0)})}}System.register(["./base-lib-legacy.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./store-legacy4.js?v=1777008528","./store-legacy3.js?v=1777008528","./config-legacy.js?v=1777008528","./index-legacy119.js?v=1777008528","./index-legacy219.js?v=1777008528","./index-legacy3.js?v=1777008528","./index-legacy273.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy116.js?v=1777008528"],function(t,i){"use strict";var l,a,r,c,s,u,d,p,v,f,y,m,g,x,h,M,b,k,w,I,C,T,j,L,D,_,N,O,S,A,z,E,B,U,P,Q,V,R,Z,G,H,F,W,q,J,Y,K,X,$,ee;return{setters:[function(e){l=e.c,a=e.j,r=e.k,c=e.q,s=e.x,u=e.s,d=e.p,p=e.e,v=e.v,f=e.z,y=e.aI,m=e.J,g=e.K,x=e.L,h=e.F,M=e.B,b=e.y,k=e.C,w=e.I,I=e.o,C=e.aV,T=e.r,j=e.A,L=e.R,D=e.w,_=e.U,N=e.am,O=e.an,S=e.aB,A=e.a8},function(e){z=e.c,E=e.w,B=e.k,U=e.eF,P=e.cZ,Q=e.c7,V=e.d8,R=e.a,Z=e.cu,G=e.R,H=e.eL,F=e.j},function(e){W=e.P},function(e){q=e.H},function(e){J=e.Z},function(e){Y=e._},function(e){K=e.default},function(e){X=e.h,$=e.aF},function(e){ee=e._},null,null],execute:function(){var i={class:"software-install"},te={class:"software-view"},ne={class:"flex items-center leading-[2.2rem]"},ie={class:"flex justify-center mt-[1.6rem]"},le=l({__name:"index",props:{options:{default:function(){return{name:"",title:""}}},icon:{type:Boolean},width:{},height:{}},setup:function(t){var l=W().errorMask,y=z().resetAuthState,m=function(){var e=o(n().m(function e(){return n().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,E({icon:"warning-filled",title:"解绑宝塔账号",content:"解绑宝塔账号后,将无法正常使用面板功能,是否继续操作?"});case 1:return e.n=2,B({loading:"正在解绑宝塔账号,请稍候...",request:J(),message:!0});case 2:y(),setTimeout(o(n().m(function e(){return n().w(function(e){for(;;)switch(e.n){case 0:U("/bind");case 1:return e.a(2)}},e)})),2e3);case 3:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();return function(t,n){var o=f;return a(),r("div",null,[n[2]||(n[2]=c("div",{class:"software-mask"},null,-1)),c("div",i,[c("div",te,[c("div",ne,[n[0]||(n[0]=c("i",{class:"svgtofont-el-warning text-orange mr-[8px] !text-[3rem]"},null,-1)),s(" "+u(d(l).title),1)]),c("div",ie,[p(o,{type:"primary",onClick:m},{default:v(function(){return e(n[1]||(n[1]=[s("解绑宝塔账号",-1)]))}),_:1})])])])])}}}),oe=P(le,[["__scopeId","data-v-6f674d8a"]]),ae={class:"sidebar-title"},re={class:"flex flex-col"},ce={class:"sidebar-privilege"},se=["innerHTML"],ue={key:1,class:"pt-16px"},de={class:"whitespace-nowrap"},pe={key:0,class:"sidebar-tips-item pro-introduce safe-report"},ve={key:1,class:"pro-left-footer-recom"},fe=l({__name:"index",setup:function(t){var n=W(),i=y(n),l=i.productInfo,o=i.isPlugin,f=i.compData,w=n.openPrivilegeContrast;return function(t,n){var i,y,I,C,T,j,L,D,_,N,O,S,A=Q;return a(),r("div",{class:x(["sidebar-info","sidebar-".concat(null===(i=d(l))||void 0===i||null===(i=i.activeTypeInfo)||void 0===i?void 0:i.type)])},[c("div",ae,[m(c("span",{class:x("icon-currency !mr-10px !w-[2.4rem] icon-"+(null===(y=d(l))||void 0===y||null===(y=y.activeTypeInfo)||void 0===y?void 0:y.type))},null,2),[[g,!d(o)]]),c("span",null,u(null===(I=d(l))||void 0===I||null===(I=I.activeTypeInfo)||void 0===I?void 0:I.title),1)]),m(c("div",{class:"sidebar-describe"},u(null===(C=d(l))||void 0===C||null===(C=C.activeTypeInfo)||void 0===C?void 0:C.describe),513),[[g,!d(o)]]),c("div",re,[c("div",ce,u(null===(T=d(l))||void 0===T||null===(T=T.activeTypeInfo)||void 0===T?void 0:T.tipsTitle)+":",1),"plugin"===(null===(j=d(l))||void 0===j||null===(j=j.activeTypeInfo)||void 0===j?void 0:j.type)?(a(),r("div",{key:0,class:"w-[16.5rem] text-base leading-loose mt-[2rem]",innerHTML:null===(L=d(f))||void 0===L||null===(L=L.pluginInfo)||void 0===L?void 0:L.ps},null,8,se)):(a(),r("div",ue,[(a(!0),r(h,null,M(null===(D=d(l))||void 0===D||null===(D=D.activeTypeInfo)||void 0===D?void 0:D.tipsList,function(e,t){return a(),r("div",{key:t,class:"sidebar-tips-item"},[n[1]||(n[1]=c("span",{class:"mr-8px"},[c("i",{class:"svgtofont-el-check font-black text-[var(--el-color-warning-light-3)] text-medium"})],-1)),c("span",de,u(e),1)])}),128))]))]),"dev"===(null===(_=d(l))||void 0===_||null===(_=_.activeTypeInfo)||void 0===_?void 0:_.type)?(a(),r("div",pe,[n[3]||(n[3]=c("span",{"data-v-0c1f7542":"",class:"mr-4px"},[c("i",{class:"svgtofont-el-star-filled font-black text-[var(--el-color-warning-light-3)]"})],-1)),c("span",null,[p(A,{target:"_blank",href:"https://www.bt.cn/new/product/safety_report.html",style:{"text-decoration":"underline"}},{default:v(function(){return e(n[2]||(n[2]=[s("获取安全检查报告",-1)]))}),_:1})])])):b("",!0),"plugin"===(null===(N=d(l))||void 0===N||null===(N=N.activeTypeInfo)||void 0===N?void 0:N.type)?(a(),r("div",ve,[c("span",null,[s("Linux企业版可免费使用【"+u(null===(O=d(l))||void 0===O||null===(O=O.activeTypeInfo)||void 0===O?void 0:O.title)+"】等30+款插件,价格仅售¥",1),n[4]||(n[4]=c("span",{class:"plugin_pro_price"},"1399",-1)),n[5]||(n[5]=s("/年",-1))])])):"coupon"!==(null===(S=d(l))||void 0===S||null===(S=S.activeTypeInfo)||void 0===S?void 0:S.type)?(a(),r("div",{key:2,class:"sidebar-details",onClick:n[0]||(n[0]=function(){return d(w)&&d(w).apply(void 0,arguments)})},"特权对比")):(a(),k(A,{key:3,class:"sidebar-details",href:"https://www.bt.cn/new/activity.html",target:"_blank"},{default:v(function(){return e(n[6]||(n[6]=[s(" 查看更多活动 ",-1)]))}),_:1}))],2)}}}),ye=P(fe,[["__scopeId","data-v-f2a24eea"]]),me={class:"flex flex-col w-[16rem]"},ge=["onClick"],xe={class:"flex items-center pl-20px"},he={class:"relative p-12px h-[14rem] border-[1px] rounded-base border-light"},Me={class:"relative"},be={class:"w-[11rem] flex items-center justify-center text-base mt-[2rem]"},ke={class:"w-[11rem] flex items-center justify-center text-small mt-[4rem] text-tertiary"},we={class:"pay-price-model"},Ie={class:"repeat-buy-tips"},Ce={class:"mt-4px mb-1.2rem"},Te={key:0,class:"repeat-buy-tips text-danger py-[8px] mb-1.2rem"},je={class:"userinfo"},Le={class:"line-through text-tertiaryer"},De={key:0,class:"font-bold mt-8px coupon-discounts-titile"},_e={class:"box"},Ne={class:"userinfo"},Oe={class:"my-16px price"},Se={class:"text-iconLarge font-bold"},Ae={class:"line-through text-tertiaryer"},ze={key:0,class:"font-bold mt-8px coupon-discounts-titile"},Ee={key:0,class:"payment-cont h-13rem"},Be={class:"mt-1.2rem"},Ue={class:"availableBalance text-subtitleLarge"},Pe={key:0,class:"flex items-center"},Qe={key:1,class:"flex flex-col w-[25rem] pl-2rem accounts-box"},Ve={key:0,class:"unbind-mask"},Re={class:"unbind-auth px-2rem py-1rem"},Ze={class:"text-base unbind-author-content"},Ge={key:1,class:"flex flex-col items-center justify-center h-full w-full"},He=l({__name:"index",setup:function(t){var n=z(),i=n.payment,l=n.authExpirationTime,o=(n.forceLtd,W()),k=y(o),I=k.paymentLoading,C=k.payList,T=k.productInfo,j=k.product,L=k.activePayIcon,D=k.scanned,_=o.changeUnbindAuthor,N=o.changePayTypeEvent,O=o.changeBalanceBuyEvent,S=o.changeRefreshAuthor;return function(t,n){var o,y,k,A,z,E,B,U,P,Z,G,H,F,W,q,J,Y,K,te,ne,ie,le,oe,ae,re,ce,se,ue,de,pe,ve,fe,ye,He,Fe,We,qe=ee,Je=V,Ye=Q,Ke=f,Xe=R,$e=w("bt-loading");return m((a(),r("div",{class:x(["pay-mode-view","pay-"+(null===(o=d(T))||void 0===o||null===(o=o.activeTypeInfo)||void 0===o?void 0:o.type)])},[d(i).bindUser?(a(),r(h,{key:0},[c("div",me,[(a(!0),r(h,null,M(d(C),function(e){var t;return a(),r("div",{key:e.type,class:x(["pay-mode-item",{active:e.type===(null===(t=d(j))||void 0===t||null===(t=t.payMode)||void 0===t?void 0:t.activePayType)}]),onClick:function(t){return d(N)(e)}},[c("span",{class:x("icon icon-"+e.type)},null,2),c("span",null,u(e.title),1)],10,ge)}),128))]),c("div",xe,[["wechat","alipay"].includes((null===(y=d(j))||void 0===y||null===(y=y.payMode)||void 0===y?void 0:y.activePayType)||"")?(a(),r(h,{key:0},[c("div",he,[c("div",Me,[m(p(qe,{value:null===(k=d(j))||void 0===k||null===(k=k.payMode)||void 0===k||null===(k=k.qrcode)||void 0===k?void 0:k.value,size:null===(A=d(j))||void 0===A?void 0:A.payMode.qrcode.size},null,8,["value","size"]),[[g,null===(z=d(j))||void 0===z||null===(z=z.payMode)||void 0===z||null===(z=z.qrcode)||void 0===z?void 0:z.value]]),d(D)?(a(),r("div",{key:0,class:"absolute z-10 inset-0 flex items-center flex-col justify-center bg-black/70 text-white p-2 text-center rounded",onClick:n[0]||(n[0]=function(e){return d(N)({type:"alipay",isRegain:!0})})},e(n[8]||(n[8]=[s(" 已扫码,",-1),c("br",null,null,-1),s("请完成支付",-1),c("br",null,null,-1),c("div",{class:"svgtofont-el-refresh-right text-medium cursor-pointer"},null,-1)])))):b("",!0)]),m(c("div",be,"获取中",512),[[g,!(null!==(E=d(j))&&void 0!==E&&null!==(E=E.payMode)&&void 0!==E&&null!==(E=E.qrcode)&&void 0!==E&&E.value)]]),p(Je,{type:"icons",src:d(L),class:"!absolute bg-white border-[0.2rem] border-light rounded-small mr-4px w-2.4rem h-2.4rem top-24 left-22"},null,8,["src"]),m(c("div",ke,"请尝试切换支付方式",512),[[g,!(null!==(B=d(j))&&void 0!==B&&null!==(B=B.payMode)&&void 0!==B&&null!==(B=B.qrcode)&&void 0!==B&&B.value)]])]),c("div",we,[m(c("div",Ie,[n[11]||(n[11]=c("div",{class:"text-danger p-8px"},"检测到您30分钟内有重复支付订单!",-1)),c("div",Ce,[n[10]||(n[10]=s(" 如遇到支付后授权未生效,请尝试 ",-1)),p(Ye,{class:"underline",onClick:n[1]||(n[1]=function(e){return d(S)()})},{default:v(function(){return e(n[9]||(n[9]=[s("刷新授权",-1)]))}),_:1})])],512),[[g,null===(U=d(j))||void 0===U||null===(U=U.payMode)||void 0===U?void 0:U.isLastBuyRepeat]]),null===(P=d(j))||void 0===P||!P.payMode.payTips.status||null!==(Z=d(j))&&void 0!==Z&&null!==(Z=Z.payMode)&&void 0!==Z&&Z.isLastBuyRepeat?b("",!0):(a(),r("div",Te,[s(" 【"+u(null===(G=d(j))||void 0===G?void 0:G.payMode.payTips.name)+"】 ",1),(null===(H=d(j))||void 0===H?void 0:H.payMode.payTips.day)>=0?(a(),r(h,{key:0},[s(" 还剩 "+u(null===(F=d(j))||void 0===F?void 0:F.payMode.payTips.day)+" 天到期",1)],64)):(a(),r(h,{key:1},[s(u(d(l)),1)],64)),s(" , 支付后【"+u(null===(W=d(j))||void 0===W?void 0:W.payMode.payTips.name)+"】自动转为抵扣券 ",1)])),c("div",{class:x(["flex flex-col",null!==(q=d(j))&&void 0!==q&&null!==(q=q.payMode)&&void 0!==q&&q.isLastBuyRepeat&&null!==(J=d(j))&&void 0!==J&&J.couponMode.status?"":"mb-16px"])},[c("div",je,[s(" 当前账号:"+u(d(i).bindUser)+" ",1),c("a",{class:"underline cursor-pointer",onClick:n[2]||(n[2]=function(e){return d(X)("切换宝塔账号")})},"切换账号")]),c("div",{class:x(["buy-price",null!==(Y=d(j))&&void 0!==Y&&null!==(Y=Y.payMode)&&void 0!==Y&&Y.isLastBuyRepeat&&null!==(K=d(j))&&void 0!==K&&K.couponMode.status?"":"mt-16px"])},[n[13]||(n[13]=c("span",null,"支付金额:",-1)),c("span",null,[n[12]||(n[12]=c("span",{class:"text-large font-bold"},"¥",-1)),c("span",null,u(null===(te=d(j))||void 0===te?void 0:te.payMode.activeBuyInfo.price),1)]),c("span",null,u(null===(ne=d(j))||void 0===ne?void 0:ne.payMode.activeBuyInfo.cycle)+"/"+u(null===(ie=d(j))||void 0===ie?void 0:ie.payMode.activeBuyInfo.count)+"台",1),c("span",Le," 原价: "+u(null===(le=d(j))||void 0===le?void 0:le.payMode.activeBuyInfo.originalPrice)+"元 ",1),null!==(oe=d(j))&&void 0!==oe&&oe.couponMode.status?(a(),r("div",De,u(null===(ae=d(j))||void 0===ae?void 0:ae.couponMode.discountsTitle),1)):b("",!0)],2)],2)])],64)):(a(),r(h,{key:1},[c("div",_e,[c("div",Ne,[s(" 当前账号:"+u(d(i).bindUser)+" ",1),c("a",{class:"underline cursor-pointer",onClick:n[3]||(n[3]=function(e){return d(X)("切换宝塔账号")})},"切换账号")]),c("div",Oe,[n[15]||(n[15]=s(" 支付金额: ",-1)),c("span",Se,[n[14]||(n[14]=c("b",{class:"text-large"},"¥",-1)),s(u(null===(re=d(j))||void 0===re?void 0:re.payMode.activeBuyInfo.price),1)]),c("span",null,u(null===(ce=d(j))||void 0===ce?void 0:ce.payMode.activeBuyInfo.cycle)+"/"+u(null===(se=d(j))||void 0===se?void 0:se.payMode.activeBuyInfo.count)+"台",1)]),c("div",Ae," 原价: "+u(null===(ue=d(j))||void 0===ue?void 0:ue.payMode.activeBuyInfo.originalPrice)+"元 ",1),null!==(de=d(j))&&void 0!==de&&de.couponMode.status?(a(),r("div",ze,u(null===(pe=d(j))||void 0===pe?void 0:pe.couponMode.discountsTitle),1)):b("",!0)]),"balance"==(null===(ve=d(j))||void 0===ve?void 0:ve.payMode.activePayType)?(a(),r("div",Ee,[n[20]||(n[20]=s(" 可用余额 ",-1)),c("div",Be,[c("span",Ue,u(null===(fe=d(j))||void 0===fe?void 0:fe.payMode.balance),1),n[16]||(n[16]=s("元 ",-1))]),p(Ke,{class:"!my-1rem",type:"primary",disabled:(null===(ye=d(j))||void 0===ye?void 0:ye.payMode.balance)<d(j).payMode.activeBuyInfo.price,onClick:n[4]||(n[4]=function(e){return d(O)()})},{default:v(function(){return e(n[17]||(n[17]=[s("立即购买",-1)]))}),_:1},8,["disabled"]),(null===(He=d(j))||void 0===He?void 0:He.payMode.balance)<d(j).payMode.activeBuyInfo.price?(a(),r("div",Pe,[n[19]||(n[19]=s("当前余额不足,请先",-1)),p(Ye,{target:"_blank",href:"https://www.bt.cn/admin/recharge"},{default:v(function(){return e(n[18]||(n[18]=[s("充值余额",-1)]))}),_:1})])):b("",!0)])):(a(),r("div",Qe,[n[22]||(n[22]=c("div",null,[c("span",null,"开户名称: "),s("广东堡塔安全技术有限公司")],-1)),n[23]||(n[23]=c("div",null,[c("span",null,"开户银行: "),s("招商银行股份有限公司东莞天安数码城支行")],-1)),c("div",null,[n[21]||(n[21]=c("span",null,"银行账号: ",-1)),c("span",{class:"cursor-pointer",onClick:n[5]||(n[5]=function(){return d($)&&d($).apply(void 0,arguments)})},"联系客服")])]))],64))]),null!==(Fe=d(T))&&void 0!==Fe&&null!==(Fe=Fe.unbindAuthor)&&void 0!==Fe&&Fe.status?(a(),r("div",Ve,[c("div",Re,[n[28]||(n[28]=c("div",{class:"text-subtitleLarge mb-[1.2rem] mt-[.4rem]"},"检测到授权冲突",-1)),c("div",Ze,[n[24]||(n[24]=s(" 当前面板已绑定【",-1)),c("span",{class:x(d(i).authType+"-author-name")},u(null===(We=d(j))||void 0===We?void 0:We.payMode.payTips.name),3),n[25]||(n[25]=s("】 ",-1)),n[26]||(n[26]=c("span",{class:"text-danger"},"永久授权",-1)),n[27]||(n[27]=s(",若要购买/更换其他授权,请先解绑当前授权。 ",-1))]),n[29]||(n[29]=c("div",null,"专业版/企业版每月允许免费更改服务器IP(解绑授权)一次,超过限制次数后请手动购买解绑次数。",-1)),p(Ke,{type:"primary",class:"text-base !mt-[1.4rem]",onClick:n[6]||(n[6]=function(e){return d(_)(!0)})},{default:v(function(){var e,t;return[s(u((null===(e=d(T))||void 0===e||null===(e=e.unbindAuthor)||void 0===e?void 0:e.count)>0?"解绑授权,剩余次数".concat(null===(t=d(T))||void 0===t||null===(t=t.unbindAuthor)||void 0===t?void 0:t.count,"次"):"点击前往购买解绑次数"),1)]}),_:1})])])):b("",!0)],64)):(a(),r("div",Ge,[p(Xe,{type:"primary",onClick:n[7]||(n[7]=function(e){return d(X)()})},{default:v(function(){return e(n[30]||(n[30]=[s("当前未绑定宝塔账号,无法购买产品,点击绑定",-1)]))}),_:1})]))],2)),[[$e,!(!d(I).status||!d(i).bindUser)],[$e,d(I).title,"title"],[$e,"large","size"]])}}}),Fe=P(He,[["__scopeId","data-v-b791c71f"]]),We={class:"h-[98%]"},qe={class:"flex justify-between items-center relative text-[1.4rem]"},Je={class:"flex"},Ye={class:"flex flex-wrap overflow-y-auto max-h-[12rem]"},Ke=["onClick"],Xe=["onClick"],$e={class:"relative"},et={class:"flex flex-wrap overflow-y-auto max-h-[25rem]"},tt=["onClick"],nt={class:"!text-extraSmall"},it={key:0},lt={class:"mt-24px flex items-center"},ot={key:2,class:"flex flex-col items-center justify-center w-full h-full mt-20rem"},at=l({__name:"index",setup:function(t){var n=W();z();var i=y(n),l=i.product,o=i.voucherLoading,g=i.authTypeTitle,T=i.authExpirationTime,j=n.changeTypeTabEvent,L=n.changeVoucherTypeEvent,D=n.changeVoucherEvent,_=n.getVoucherCycleDescribe,N=n.useChangeVoucher,O=n.unBindAuthor,S=n.getUnbindCount;return I(function(){S()}),function(t,n){var i,y=C,I=f,S=w("scroll-shadow"),A=w("bt-loading");return a(),r("section",We,["正式版"!==d(g)?(a(),k(y,{key:0,class:"!mt-[2.8rem]",closable:!1,type:"info"},{default:v(function(){return[c("div",qe,[c("div",Je,[n[2]||(n[2]=s("当前面板已绑定【",-1)),c("span",{class:x(d(g)+"-author-name")},u(d(g)),3),s("】,到期时间:"+u(d(T))+"。",1)]),c("span",{class:"mr-[1rem] cursor-pointer hover:text-danger absolute right-[-355px]",onClick:n[0]||(n[0]=function(){return d(O)&&d(O).apply(void 0,arguments)})},"解绑")])]}),_:1})):b("",!0),null!==(i=d(l))&&void 0!==i&&i.voucherMode.isExist?(a(),r(h,{key:1},[m((a(),r("div",{class:x(["relative mb-8px","正式版"!==d(g)?"!mt-[1.4rem]":"!mt-[2.8rem]"])},[m((a(),r("div",Ye,[(a(!0),r(h,null,M(d(l).voucherMode.proTypeList,function(e){return a(),r("div",{key:e.pid,class:x(["pay-voucher-type btn-box",{active:d(l).voucherMode.typeActive===e.pid,hidden:e.hidden}]),onClick:function(t){return d(L)(e)}},[c("span",{class:x({"icon-pro":e.pid===d(Z).pro,"icon-ltd":e.pid===d(Z).ltd})},null,2),c("span",null,u(e.name),1)],10,Ke)}),128)),(a(!0),r(h,null,M(d(l).voucherMode.typeList,function(e){return a(),r("div",{key:e.pid,class:x(["pay-voucher-type btn-box",{active:d(l).voucherMode.typeActive===e.pid,hidden:e.hidden}]),onClick:function(t){return d(L)(e)}},[c("span",null,u(e.name),1)],10,Xe)}),128))])),[[S]])],2)),[[A,d(l).voucherMode.loading]]),n[4]||(n[4]=c("div",{class:"flex"},[c("span",{class:"pay-view-title"},"抵扣券列表"),c("div",{class:"mt-20px"})],-1)),c("div",$e,[m((a(),r("div",et,[(a(!0),r(h,null,M(d(l).voucherMode.list,function(e){return a(),r("div",{key:e.id,class:x(["pay-voucher-item",{active:d(l).voucherMode.active===e.id}]),onClick:function(t){return d(D)(e)}},[c("span",null,[999===e.cycle&&"month"===e.unit?(a(),r(h,{key:0},[s("永久授权")],64)):(a(),r(h,{key:1},[s(u(d(_)(e.cycle,e.unit)),1)],64))]),c("span",nt,"到期时间: "+u(e.timeout>0?d(G)(e.timeout,"yyyy-MM-dd"):"长期有效"),1)],10,tt)}),128)),d(l).voucherMode.list.length?b("",!0):(a(),r("div",it,"抵扣券列表为空"))])),[[S]])]),c("div",lt,[p(I,{type:"primary",disabled:d(o)||!d(l).voucherMode.list.length,onClick:d(N)},{default:v(function(){return[s(u(d(o)?"正在提交中,请稍候...":"立即使用"),1)]}),_:1},8,["disabled","onClick"]),n[3]||(n[3]=c("div",{class:"ml-12px text-base text-tertiary"},"堡塔官网后台、参与活动购买的产品抵扣券,可用于开通授权或续费",-1))]),n[5]||(n[5]=c("div",{class:"relative hidden"},null,-1))],64)):(a(),r("div",ot,[n[7]||(n[7]=c("div",{class:"pay-voucher-empty"},null,-1)),p(I,{plain:"",onClick:n[1]||(n[1]=function(e){return d(j)("ltd")})},{default:v(function(){return e(n[6]||(n[6]=[s("抵扣券列表为空,点击购买",-1)]))}),_:1})]))])}}}),rt=P(at,[["__scopeId","data-v-2b1b9e0d"]]),ct=P(l({__name:"index",emits:["open"],setup:function(t,n){var i=n.emit,l=T(!0),o=function(){l.value=!1,i("open")},s=function(){l.value=!1};return function(t,n){return l.value?(a(),r("div",{key:0,class:"service-tip",onClick:o},[n[1]||(n[1]=j('<div class="service-tip-icon" data-v-529e7653><svg class="w-[6rem] h-[6rem]" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 42 42" width="42.000000" height="42.000000" fill="none" data-v-529e7653><defs data-v-529e7653><linearGradient id="paint_linear_0" x1="10.6440563" x2="43.0824127" y1="0" y2="4.55157042" gradientUnits="userSpaceOnUse" data-v-529e7653><stop stop-color="rgb(249,114,26)" offset="0" stop-opacity="1" data-v-529e7653></stop><stop stop-color="rgb(239,71,66)" offset="1" stop-opacity="1" data-v-529e7653></stop></linearGradient></defs><rect id="svg 3" width="42.000000" height="42.000000" x="0.000000" y="0.000000" data-v-529e7653></rect><path id="矢量 5" d="M41.5421 9.09691C41.2476 8.80223 40.8562 8.63997 40.4402 8.63997L34.8319 8.63997C35.2825 7.796 35.5193 6.84925 35.5193 5.87996C35.5193 2.63779 32.8817 4.19319e-05 29.6397 4.19319e-05C26.4446 4.19319e-05 23.81 2.48253 22.5242 3.96195C21.9679 4.59966 21.4452 5.30088 20.9996 6.00613C20.5562 5.30546 20.0338 4.60453 19.4755 3.96232C18.1875 2.48257 15.5504 0 12.3597 0C9.11769 0 6.48011 2.6377 6.48011 5.87992C6.48011 6.84736 6.71733 7.79403 7.16895 8.63993L1.56033 8.63993C0.700337 8.63993 0.000671387 9.33968 0.000671387 10.1998L0.000671387 16.6801C0.000671387 17.5401 0.700337 18.2397 1.56033 18.2397L2.16095 18.2397L2.16095 38.2796C2.16095 40.331 3.8294 42 5.88021 42L36.1193 42C38.1706 42 39.8393 40.331 39.8393 38.2796L39.8393 18.2398L40.44 18.2398C41.2995 18.2398 41.9989 17.5401 41.9989 16.6801L41.9989 10.1998C41.999 9.78336 41.8367 9.39168 41.5421 9.09691ZM18.9158 8.63997L12.3597 8.63997C10.8376 8.63997 9.59935 7.40189 9.59935 5.88C9.59935 4.35799 10.8376 3.11974 12.3597 3.11974C13.7894 3.11974 15.526 4.17298 17.1242 6.0094C17.841 6.83314 18.4815 7.77565 18.9158 8.63997ZM22.9774 10.5644L22.9774 40.2647L19.0221 40.2647L19.0221 10.5644L22.9774 10.5644ZM32.4003 5.87979C32.4001 7.40177 31.1617 8.63997 29.6397 8.63997L23.0838 8.63997C23.5177 7.77691 24.1581 6.83456 24.8751 6.00944C26.4734 4.17306 28.2101 3.11975 29.64 3.11975C31.162 3.11974 32.4003 4.35791 32.4003 5.87979Z" fill="url(#paint_linear_0)" fill-rule="nonzero" data-v-529e7653></path></svg></div><div class="service-tip-content" data-v-529e7653><div class="tip-title" data-v-529e7653>免费领体验资格</div></div>',2)),c("div",{class:"service-tip-close",onClick:L(s,["stop"])},e(n[0]||(n[0]=[c("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[c("path",{d:"M1 1L11 11M11 1L1 11",stroke:"#999999","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])))])):b("",!0)}}}),[["__scopeId","data-v-529e7653"]]),st={key:0,class:"h-[90px] w-full flex"},ut={class:"tab-menu !flex-1 py-[1.6rem]"},dt={key:1,class:"advantage-list"},pt={key:0,class:"text-base text-ltd"},vt={key:1,class:"text-base text-ltd"},ft={key:2,class:"h-full p-2rem"},yt={class:"w-full flex items-center flex-col justify-center mt-[1.6rem]"},mt={key:3,class:"h-full"},gt={key:0,class:"h-30 w-full flex"},xt=["onClick"],ht={class:"text-default"},Mt={class:"text-secondary"},bt={id:"lib-pay-theme-tips",class:"lib-pay-line-item proS lib-pay-theme-tips"},kt=["innerHTML"],wt={id:"list-box",class:"list-box",style:{"max-width":"72rem"}},It={id:"list",class:"flex",style:{transition:"all 500ms",left:"0",position:"relative"}},Ct=["onClick"],Tt={class:"pay-product-price"},jt={class:"line-through border-b pb-4px pt-4px border-dashed border-lighter text-tertiaryer"},Lt={class:"text-center pt-4px"},Dt={key:0,class:"pay-product-recommend transform scale-80"},_t={class:"dev-advantage"},Nt={key:0},Ot={class:"mb-[1.6rem]"},St={class:"flex"},At=["onClick"],zt={key:0,class:"pay-auth-discount transform scale-80"},Et={key:0,class:"text-danger mt-[4px]"},Bt={class:"flex !ml-0"},Ut={class:"artificial_price"},Pt={key:0,class:"text-tertiary voucherEndtime"},Qt={key:1,class:"mt-[1.6rem] flex justify-center"},Vt={key:4,class:"tooTool-links absolute right-[3rem] bottom-6 cursor-pointer"},Rt={class:"flex items-center inline-block"},Zt={class:"relative"},Gt=l({__name:"index",setup:function(t){var i=W(),l=y(i),I=l.productInfo,C=l.product,j=l.enterprise,A=l.tabLoading,E=l.iSwitch,U=l.countDown,P=l.productPriceLoading,R=i.switchLeft,Z=i.switchRight,G=i.changeTypeTabEvent,F=i.changeCycleTabEvent,q=i.changeNumsTabEvent,J=i.enterpriseEvent,X=i.changeCouponBoxEvent,ee=i.changeCouponEvent,te=T(null),ne=z(),ie=ne.aliyunEcsLtd,le=ne.payment,oe=ne.aliyunEcsFailed;D(function(){return C.value.couponMode.endTimeNum>0},function(e){e&&C.value.couponMode.activeCouponId&&(clearInterval(te.value),te.value=setInterval(function(){var e,t,n,i,l;C.value.couponMode.endTimeNum>0?(C.value.couponMode.endTimeNum--,e=C.value.couponMode.endTimeNum,t=Math.floor(e/86400),n=Math.floor(e/3600%24),i=Math.floor(e/60%60),l=Math.floor(e%60),U.value.d=t<10?"0".concat(t.toString()):t.toString(),U.value.h=n<10?"0".concat(n.toString()):n.toString(),U.value.m=i<10?"0".concat(i.toString()):i.toString(),U.value.s=l<10?"0".concat(l.toString()):l.toString()):clearInterval(te.value)},1e3))});var ae=function(){var e=o(n().m(function e(){var t;return n().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,B({loading:"正在获取阿里云授权,请稍后...",request:H({client:2})});case 1:t=e.v,oe.value=!t.status,window.location.reload();case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();setTimeout(function(){},1e3);var re=function(){window.open("https://marketnext.console.aliyun.com/bizlist","_blank","noopener,noreferrer")};return function(t,n){var i,l,o,y,T,D,z,B,H=V,W=f,te=_,ne=N,ce=O,se=K,ue=S,de=Y,pe=Q,ve=w("bt-loading");return a(),r("div",{class:x(["flex flex-[8] flex-col","theme-".concat(null===(i=d(I))||void 0===i||null===(i=i.activeTypeInfo)||void 0===i?void 0:i.type," ").concat(d(ie)?"h-full":"")])},[d(ie)?(a(),r("div",st,[c("div",ut,[c("span",{class:x(["text-large font-bold text-black flex items-center my-2","product-ltd"])},e(n[10]||(n[10]=[c("i",{class:x("svgtofont-icon-ltd !text-subtitleLarge text-ltd font-normal mr-[0.8rem]")},null,-1),c("span",{class:"text-primary"},"阿里云 & Linux面板企业版",-1)])))])])):b("",!0),d(ie)?(a(),r("div",dt,[n[13]||(n[13]=c("i",{class:"svgtofont-el-warning-filled !text-round text-ltd font-normal mr-[0.8rem]"},null,-1)),"ltd"===d(le).authType?(a(),r("span",pt,[n[11]||(n[11]=s(" 此版本为阿里云联合宝塔面板定制的Linux企业版,续费企业版请从",-1)),c("span",{class:"btlink cursor-pointer",onClick:re},"阿里云控制台"),n[12]||(n[12]=s("操作",-1))])):(a(),r("span",vt,u(d(oe)?"检测到无法正常绑定宝塔账号":"检测到无法正常使用企业版")+" ,请扫码联系客服处理",1))])):b("",!0),"ltd"!==d(le).authType&&d(ie)?(a(),r("div",ft,[c("div",yt,[p(H,{class:"w-[24rem] h-[24rem]",src:"customer/customer-qrcode.png"}),p(W,{type:"primary",size:"large",class:"mt-[2.4rem] w-[10rem]",onClick:ae},{default:v(function(){return e(n[14]||(n[14]=[s("重新认证",-1)]))}),_:1})])])):(a(),r("div",mt,[d(ie)?b("",!0):(a(),r("div",gt,[(a(!0),r(h,null,M(null===(l=d(I))||void 0===l?void 0:l.typeList,function(e){var t;return a(),r("div",{key:e.type,class:x(["tab-menu",{"tab-acitve":e.type===(null===(t=d(I))||void 0===t||null===(t=t.activeTypeInfo)||void 0===t?void 0:t.type),"tab-rec":e.recommend,"!flex-1":"coupon"===e.type,"!hidden":e.isHidden||("coupon"===e.type||"plugin"===e.type)&&!d(le).bindUser}]),onClick:function(t){return d(G)(e)}},[c("span",{class:x(["text-medium font-bold text-black flex items-center my-2","product-"+e.type])},[c("span",{class:x("icon-currency icon-"+e.type)},null,2),c("span",ht,u(e.title),1)],2),c("span",Mt,u(e.describe),1)],10,xt)}),128))])),m((a(),r("div",{class:x(["flex-[1] pb-[32px] px-[28px]",{"pt-16px":d(ie)}])},[m(c("div",bt,[n[15]||(n[15]=c("img",{style:{"margin-right":"10px"},src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAuMDAwMDAwIiBoZWlnaHQ9IjIyLjAwMDAwMCIgdmlld0JveD0iMCAwIDIwIDIyIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KCTxkZXNjPgoJCQlDcmVhdGVkIHdpdGggUGl4c28uCgk8L2Rlc2M+Cgk8cGF0aCBpZD0icGF0aCIgZD0iTTEzLjM0MDggNS4zNDIxOUMxMy43NDk1IDYuMjkxMzUgMTMuODEwOSA3Ljg1OTg5IDEyLjk2NDkgOC42MTQwMUMxMS41OTE0\t\t\t\t\t\t\t\t\t\t\t\tIDMuMDc5ODYgOC4xNTc3MSAyIDguMTU3NzEgMkM4LjU2NjM1IDQuODEzMzIgNi43MjI5IDcuODky\t\t\t\t\t\t\t\t\t\t\t\tMDkgNC45MTIwNSAxMC4yMTI3QzQuODUwNjUgOS4xMDA2NSA0Ljc4NTQ2IDguMzQ4NTcgNC4xOTQ1\t\t\t\t\t\t\t\t\t\t\t\tOCA3LjIwMjMzQzQuMDY3OTkgOS4yNjM1NSAyLjU3MTc4IDEwLjkwMDUgMi4xMzQ0IDEyLjk2MTdD\t\t\t\t\t\t\t\t\t\t\t\tMS42MDQ5OCAxNS44MDkyIDIuNTcxNzggMTcuODA2MSA2LjI1MjkzIDIwQzUuMDk4MDggMTcuNDgy\t\t\t\t\t\t\t\t\t\t\t\tMyA1LjcyMzQ1IDE2LjA0MDQgNi42Mjg5MSAxNC43MzMzQzcuNTk1NyAxMy4yMjkxIDcuODQ4ODgg\t\t\t\t\t\t\t\t\t\t\t\tMTEuNzg3MyA3Ljg0ODg4IDExLjc4NzNDNy44NDg4OCAxMS43ODczIDguNjI3NjkgMTIuODAwOCA4\t\t\t\t\t\t\t\t\t\t\t\tLjMxODg1IDE0LjQwMzVDOS42MjcxNCAxMi44MzUgOS44ODAzMSAxMC4zMTEyIDkuNjk0MjcgOS4z\t\t\t\t\t\t\t\t\t\t\t\tOTYyN0MxMi42ODg3IDExLjU5MDIgMTQuMDI5NSAxNi40MzQ2IDEyLjI4MzkgMTkuOTM1NkMyMS41\t\t\t\t\t\t\t\t\t\t\t\tMTg0IDE0LjQwNTUgMTQuNTU3IDYuMTkwODMgMTMuMzQwOCA1LjM0MjE5WiIgZmlsbC1ydWxlPSJu\t\t\t\t\t\t\t\t\t\t\t\tb256ZXJvIiBmaWxsPSIjRUMwMjAyIi8+Cgk8ZGVmcy8+Cjwvc3ZnPgo="},null,-1)),c("span",{class:"tips-span text-warning pr-[1rem]",innerHTML:null===(o=d(I))||void 0===o?void 0:o.activityList},null,8,kt)],512),[[g,"coupon"!=(null===(y=d(I))||void 0===y||null===(y=y.activeTypeInfo)||void 0===y?void 0:y.type)&&(null===(T=d(I))||void 0===T?void 0:T.activityList)&&!d(ie)]]),"coupon"!==(null===(D=d(I))||void 0===D||null===(D=D.activeTypeInfo)||void 0===D?void 0:D.type)?(a(),r(h,{key:0},[c("span",{class:x(["pay-view-title !mt-12px h-[1.8rem]","".concat(d(ie)?"text-center":"")])},"产品周期",2),m((a(),r("div",{class:x(["box","".concat(d(ie)?"flex justify-center":"")])},[m(c("div",{class:"switch-cycle-left",onClick:n[0]||(n[0]=function(){return d(R)&&d(R).apply(void 0,arguments)})},e(n[16]||(n[16]=[c("i",{id:"switch-left",class:"svgtofont-el-arrow-left",style:{"font-size":"var(--el-font-size-large)","font-weight":"900"}},null,-1)])),512),[[g,d(E).left]]),c("div",wt,[c("div",It,[(a(!0),r(h,null,M(d(C).cycleMode.list,function(e,t){return a(),r("div",{key:t,class:x(["pay-product-cycle btn-box btn-box-2 relative",{active:e.cycle===d(C).cycleMode.activeCycleInfo.cycle}]),onClick:function(t){return d(F)(e)}},[c("div",Tt,[n[17]||(n[17]=c("span",null,"¥",-1)),c("span",null,u(e.price),1),c("span",null,"/"+u(e.title),1)]),c("div",jt,"原价:"+u(e.originalPrice)+"元",1),c("div",Lt,"低至"+u(e.everyDay)+"元/天",1),e.recommend?(a(),r("div",Dt,u(e.recommend),1)):b("",!0)],10,Ct)}),128)),m(c("div",_t,null,512),[[g,"dev"==(null===(z=d(I))||void 0===z||null===(z=z.activeTypeInfo)||void 0===z?void 0:z.type)]])])]),m(c("div",{class:"switch-cycle-right",onClick:n[1]||(n[1]=function(){return d(Z)&&d(Z).apply(void 0,arguments)})},e(n[18]||(n[18]=[c("i",{id:"switch-right",class:"svgtofont-el-arrow-right",style:{"font-size":"var(--el-font-size-large)","font-weight":"900"}},null,-1)])),512),[[g,d(E).right&&d(C).cycleMode.list.length>4]])],2)),[[ve,d(P)]]),d(ie)?(a(),r("div",Qt,[p(ue,{placement:"bottom-start",effect:"light",trigger:"hover",width:"180","popper-class":"el-tooltip-white !p-[8px]"},{reference:v(function(){return e(n[28]||(n[28]=[c("span",{class:"btlink"},"了解更多",-1)]))}),default:v(function(){return[p(se,{class:"bg-white"})]}),_:1})])):(a(),r("div",Nt,[n[27]||(n[27]=c("span",{class:"pay-view-title h-[1.8rem]"},"授权数量",-1)),c("div",Ot,[c("div",St,[(a(!0),r(h,null,M(d(C).numsMode.list,function(e,t){return a(),r("div",{key:t,class:x([{active:e.count===d(C).numsMode.activeNumsInfo.count},"pay-auth-item btn-box"]),onClick:function(t){return d(q)(e)}},[c("span",null,u(e.count)+"台",1),1!=e.discount&&d(le).bindUser?(a(),r("span",zt,u(10*e.discount)+"折 ",1)):b("",!0)],10,At)}),128))]),d(C).numsMode.activeNumsInfo.count>1?(a(),r("p",Et,"购买多台授权会默认减1台用于本机授权,剩余的授权台数以抵扣券的方式发放到当前账号,购买后请切换至抵扣券查看")):b("",!0)]),d(C).enterpriseMode.isHidden?b("",!0):(a(),r("div",{key:0,class:x(["artificial",{active:d(C).enterpriseMode.status}]),onClick:n[4]||(n[4]=L(function(e){return d(J)(!d(C).enterpriseMode.status)},["self"]))},[p(te,{modelValue:d(C).enterpriseMode.status,"onUpdate:modelValue":n[2]||(n[2]=function(e){return d(C).enterpriseMode.status=e}),onChange:n[3]||(n[3]=function(e){return d(J)(e)})},{default:v(function(){return[c("div",Bt,[n[22]||(n[22]=c("span",null,"人工运维托管",-1)),c("span",Ut,"¥"+u(d(j)),1),c("div",null,[p(H,{type:"icons",src:"icon-artificial1.svg"}),n[19]||(n[19]=c("span",{class:"ml-[5px]"},"专家技术支持",-1))]),c("div",null,[p(H,{type:"icons",src:"icon-artificial2.svg"}),n[20]||(n[20]=c("span",{class:"ml-[5px]"},"5分钟内急速响应",-1))]),c("div",null,[p(H,{type:"icons",src:"icon-artificial3.svg"}),n[21]||(n[21]=c("span",{class:"ml-[5px]"},"问题解决率达99%",-1))])])]}),_:1},8,["modelValue"])],2)),m(c("div",{class:x("product-coupon-box cursor-pointer "+(d(C).couponMode.status?"active":"")),onClick:n[7]||(n[7]=L(function(e){return d(X)()},["self"]))},[p(te,{modelValue:d(C).couponMode.status,"onUpdate:modelValue":n[5]||(n[5]=function(e){return d(C).couponMode.status=e}),disabled:d(C).couponMode.disabled,onChange:d(X)},{default:v(function(){return[s("优惠券("+u(d(C).couponMode.count)+")",1)]}),_:1},8,["modelValue","disabled","onChange"]),p(ce,{modelValue:d(C).couponMode.activeCouponId,"onUpdate:modelValue":n[6]||(n[6]=function(e){return d(C).couponMode.activeCouponId=e}),disabled:d(C).couponMode.disabled,placeholder:d(C).couponMode.count>0?"请选择优惠券":"无可用优惠券",class:"!w-[18rem] coupon-select",onChange:d(ee)},{default:v(function(){return[(a(!0),r(h,null,M(d(C).couponMode.list,function(e){return a(),k(ne,{key:e.id,disabled:d(C).numsMode.activeNumsInfo.price<parseInt(e.val1),label:e.newName,value:"".concat(e.id)},null,8,["disabled","label","value"])}),128))]}),_:1},8,["modelValue","disabled","placeholder","onChange"]),d(C).couponMode.endTimeNum>0?(a(),r("div",Pt,[c("span",null,u(d(U).d),1),n[23]||(n[23]=s("天",-1)),c("span",null,u(d(U).h),1),n[24]||(n[24]=s("时",-1)),c("span",null,u(d(U).m),1),n[25]||(n[25]=s("分",-1)),c("span",null,u(d(U).s),1),n[26]||(n[26]=s("秒 后失效 ",-1))])):b("",!0)],2),[[g,"dev"!==(null===(B=d(I))||void 0===B||null===(B=B.activeTypeInfo)||void 0===B?void 0:B.type)]]),p(Fe)]))],64)):(a(),k(rt,{key:1}))],2)),[[ve,d(A).status],[ve,d(A).title,"title"],[ve,"large","size"]])])),d(ie)?b("",!0):(a(),r("div",Vt,[c("span",{onClick:n[8]||(n[8]=function(){return d($)&&d($).apply(void 0,arguments)})},e(n[29]||(n[29]=[c("i",null,null,-1),s("购买未生效",-1)]))),p(de),c("div",Rt,[c("span",null,[n[31]||(n[31]=c("i",null,null,-1)),p(pe,{class:"!text-disabled",href:"https://www.bt.cn/admin/product_orders"},{default:v(function(){return e(n[30]||(n[30]=[s("申请发票",-1)]))}),_:1})]),p(de)]),c("div",Zt,[p(ct,{onOpen:d($)},null,8,["onOpen"]),c("span",{onClick:n[9]||(n[9]=function(){return d($)&&d($).apply(void 0,arguments)})},e(n[32]||(n[32]=[c("i",null,null,-1),s("联系客服",-1)])))])]))],2)}}}),Ht=P(Gt,[["__scopeId","data-v-f337f90e"]]);t("default",l({__name:"index",props:{compData:{default:function(){return{disablePro:!0,sourceId:"0",plugin:!0,pluginInfo:{title:"",describe:"",pid:0},isHomeBubble:{}}}}},emits:["close"],setup:function(e,t){var n=t.expose,i=t.emit,l=z().aliyunEcsLtd,o=q(),c=e,s=W(),u=y(s),v=u.productInfo,f=u.emits,m=u.errorMask,g=s.onCancel,h=s.init,M=s.$reset,w=i;return f.value=w,I(function(){h(c.compData)}),A(function(){M(),sessionStorage.removeItem("PAY-VIEW-INFO-TIME"),"home"===F.currentRoute.value.name&&o.getRecommendInfo()}),n({onCancel:g}),function(e,t){var n;return a(),r("div",{class:x(["flex w-full h-full","theme-"+(null===(n=d(v))||void 0===n||null===(n=n.activeTypeInfo)||void 0===n?void 0:n.type)])},[d(l)?b("",!0):(a(),k(ye,{key:0})),p(Ht,{ref:"productSelectRef"},null,512),d(m).status?(a(),k(oe,{key:1})):b("",!0)],2)}}}))}}})}();