import{_ as s}from"./index111.js?v=1761009159";import{u as e}from"./index110.js?v=1761009159";import{u as t,dp as a,dq as l,e as n,L as i,b as r,_ as c,N as o}from"./utils-lib.js?v=1761009159";import{c as m,r as p,v as d,x as u,z as x,e as b,B as f,y as _,C as y,F as w,b0 as v,aE as g,N as h,f as j,aC as k,a6 as T,Q as C,K as P}from"./base-lib.js?v=1761009159";import{_ as z}from"./we-com.js?v=1761009159";import{e as I,p as V,m as q}from"./validator.js?v=1761009159";import"./index112.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";const A={class:"px-[12px] !bg-[transparent]"},B={class:"module-ui"},E={class:"py-52px flex justify-center flex-col items-center"},H={class:"flex mb-16px justify-center"},L={key:0,class:"text-center mb-40px"},M={key:1,class:"text-center mb-40px"},N={class:"w-76% rounded-base overflow-hidden flex justify-center"},F={class:"rounded-base overflow-hidden text-0"},K=c(m({__name:"index",setup(s){const{load:e,request:c}=r(),{payment:o,plugin:m}=t();a();const T=p([["概览","overview.png"],["邮箱","mailbox.png"],["发送任务","sendtask.png"],["邮件模板","temp.png"],["设置","setting.png"]]),C=async()=>{const s=e("正在初始化安装信息，请稍后...");try{const s=await l();c(s),q()}catch(t){}finally{s.close()}},P=s=>"https://www.bt.cn/Public/new/plugin/mail_sys/".concat(s);return(s,e)=>{const t=n,a=i,l=j,r=k,c=g;return d(),u("div",A,[x("div",B,[x("div",E,[e[8]||(e[8]=x("div",{class:"mb-12px text-center text-subtitleLarge font-bold"},"宝塔邮局管理器",-1)),x("div",H,[e[5]||(e[5]=x("div",{class:"text-center text-base mr-[10px] color-desc text-tertiary"},"自建邮局服务器，多域，多用户邮局，邮件服务器，支持SMTP/IMAP/POP3/HTTP接口，25端口",-1)),b(t,{href:"https://www.bt.cn/new/wechat_customer",class:"!text-base mr-[10px]"},{default:f(()=>e[2]||(e[2]=[x("img",{src:z,class:"w-[16px] h-[16px]"},null,-1),x("span",null,"联系客服",-1)])),_:1,__:[2]}),x("div",{class:"flex items-center mr-[10px]",onClick:e[0]||(e[0]=s=>_(I)({name:"宝塔邮局",type:36,id:63}))},e[3]||(e[3]=[x("i",{class:"svgtofont-desired !text-medium mr-[4px]"},null,-1),x("span",{class:"bt-link !text-base"},"需求反馈",-1)])),b(t,{href:"https://www.bt.cn/bbs/thread-141971-1-1.html",class:"!text-base mr-[4px]"},{default:f(()=>e[4]||(e[4]=[y(">> 使用文档",-1)])),_:1,__:[4]})]),e[9]||(e[9]=x("div",{class:"mb-16px"},[x("ul",{class:"ul-style"},[x("li",null,"发件成功率分析"),x("li",null,"集成webmail"),x("li",null,"群发邮件")])],-1)),"free"===_(o).authType?(d(),u("div",L,[b(a,{type:"primary",size:"large",class:"!text-medium w-[140px]",onClick:e[1]||(e[1]=s=>_(V)({sourceId:360}))},{default:f(()=>e[6]||(e[6]=[y("立即购买",-1)])),_:1,__:[6]})])):(d(),u("div",M,[b(a,{type:"primary",size:"large",class:"!text-medium w-[140px]",onClick:C},{default:f(()=>e[7]||(e[7]=[y("立即安装",-1)])),_:1,__:[7]})])),x("div",N,[b(c,{"tab-position":"left",class:"carousel"},{default:f(()=>[(d(!0),u(w,null,v(_(T),(s,e)=>(d(),h(r,{label:s[0],lazy:"",key:e},{default:f(()=>[x("div",F,[b(l,{src:P(s[1]),class:"max-h-[100%] object-scale-down","preview-src-list":[P(s[1])]},null,8,["src","preview-src-list"])])]),_:2},1032,["label"]))),128))]),_:1})])])])])}}}),[["__scopeId","data-v-bb166237"]]),O={key:1},Q=m({__name:"index",setup(l){const{BtRouterTabs:n}=e({}),{refs:{tabActive:i,install:r},cutTabsEvent:c}=a(),{payment:m}=t();return T(()=>{o(["/plugin?action=get_soft_find","/mail/manage/user_surplus","/plugin?action=a&name=mail_sys&s=get_today_count"])}),(e,t)=>{const a=s;return"free"!==_(m).authType&&_(r)?(d(),h(_(n),{key:0,modelValue:_(i),"onUpdate:modelValue":t[0]||(t[0]=s=>C(i)?i.value=s:null),class:P(_(i))},null,8,["modelValue","class"])):(d(),u("div",O,[b(a,{contentClass:"router-tabs-content p-[1.2rem] m-[1.6rem]",disabled:"","show-content":!1}),b(K,{class:"bg-white rounded-medium"})]))}}});export{Q as default};
