import{V as s,p as e,P as a,n as l,Q as o,_ as t}from"./utils-lib.js?v=1761009159";import{_ as n}from"./index415.js?v=1761009159";import{c as r,s as i,r as c,g as m,q as p,a6 as u,v as d,x as v,e as f,B as x,z as j,F as y,b0 as I,y as b,A as S,aY as w,K as _}from"./base-lib.js?v=1761009159";import{u as g}from"./useStore12.js?v=1761009159";import{t as E,b as T,c as C,m as P,d as A}from"./usePayController.js?v=1761009159";import{applyCertOrderRenw as L}from"./site.js?v=1761009159";import{u as M}from"./useStore11.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./useStore4.js?v=1761009159";import"./useController13.js?v=1761009159";import"./index105.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";import"./useController6.js?v=1761009159";import"./validator.js?v=1761009159";import"./useController5.js?v=1761009159";import"./useMethod5.js?v=1761009159";import"./useController4.js?v=1761009159";import"./useStore10.js?v=1761009159";const D={class:"px-[3rem] py-[2rem] pb-[24px]"},V={class:"ssl-pay-type"},Y=["onClick"],q={class:"p-[24px] flex flex-col justify-center items-center"},W={class:"mt-[16px] text-base font-bold flex items-center"},k={class:"text-subtitleLarge ml-[8px] text-warning"},H={class:"ssl-pay-info"},R={class:"ssl-pay-info-line"},h={class:"ssl-pay-info-line"},z={class:"mt-[16px] flex items-center justify-center"},F=t(r({__name:"pay-bus-ssl",props:{compData:{default:{oid:0,wxcode:"",alicode:"",qq:"",orderInfo:{},productInfo:{}}}},emits:["close"],setup(t,{emit:r}){const{productInfo:F,orderInfo:N}=g(),{sslIsRefresh:B}=i(M()),K=t,O=r,Q=[{name:"微信支付",label:"wxcode"},{name:"支付宝支付",label:"alicode"}],G=c(!1),J=m(()=>K.compData[E.value]),U=()=>{var s;s={productInfo:F.value,orderInfo:N.value},l({title:"支付成功",area:[60,60],component:()=>o(()=>import("./pay-bus-success2.js?v=1761009159"),__vite__mapDeps([]),import.meta.url),compData:s}),B.value=!0,O("close")},X=async s=>{s&&sessionStorage.setItem("PAY-SSL-VIEW-TIME","".concat(s));const l=sessionStorage.getItem("PAY-SSL-VIEW-TIME");if(l){if(parseInt("".concat((new Date).getTime()/1e3-Number(l)),10)>600&&G.value)return sessionStorage.removeItem("PAY-SSL-VIEW-TIME"),e({title:"支付超时",icon:"warning",content:"由于您长时间未操作，支付超时，请刷新网页重新购买！",onConfirm:()=>{close(),window.location.reload()},onCancel:()=>{close(),window.location.reload()}});G.value||sessionStorage.removeItem("PAY-SSL-VIEW-TIME")}await P(),T.value?(C.value&&clearTimeout(C.value),C.value=setTimeout(()=>{X()},3e3)):F.value.isRenew?await a({request:L({oid:F.value.oid}),message:!0}):U()};return p(async()=>{G.value=!0,X((new Date).getTime()/1e3)}),u(()=>{T.value=!1,G.value=!1,clearTimeout(C.value)}),(e,a)=>{var l,o,t,r;const i=w,c=n;return d(),v("div",D,[f(i,{type:"error",closable:!1},{title:x(()=>a[0]||(a[0]=[j("span",{class:"text-small"},[j("i",{calss:"svgtofont-el-warning-outline text-small"}),j("span",null," 禁止含有诈骗、赌博、色情、木马、病毒等违法违规业务信息的站点申请SSL证书，如有违反，撤销申请，停用账号。 ")],-1)])),_:1}),j("div",V,[(d(),v(y,null,I(Q,s=>j("span",{key:s.name,class:_("ssl-pay-tab-item ".concat(s.label===b(E)?"isActive":"")),onClick:e=>b(A)(s.label,!0)},[j("span",{class:_("pay-icon ".concat(s.label))},null,2),j("span",null,S(s.name),1)],10,Y)),64))]),j("div",q,[f(c,{value:b(J),size:160},null,8,["value"]),j("span",W,[a[1]||(a[1]=j("span",null,"总计",-1)),j("span",k,S(null==(l=b(F))?void 0:l.totalPrice.toFixed(2))+" 元 ",1)])]),j("div",H,[j("div",R,[a[2]||(a[2]=j("span",{class:"w-[5rem]"},"商品名称",-1)),j("span",null,S("".concat((null==(o=b(F))?void 0:o.productName)+(null==(t=b(F))?void 0:t.years),"年").concat((null==(r=b(F))?void 0:r.install)?"(包含部署服务)":"")),1)]),j("div",h,[a[3]||(a[3]=j("span",{class:"w-[5rem]"},"下单时间",-1)),j("span",null,S(b(s)(b(N).addtime,"yyyy-MM-dd HH:mm:ss")),1)])]),j("div",z,[a[4]||(a[4]=j("span",{class:"scan-icon"},null,-1)),j("span",null,S("wxcode"===b(E)?"微信扫一扫支付":"支付扫一扫支付"),1)])])}}}),[["__scopeId","data-v-28b71940"]]);export{F as default};
function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = []
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
