import{u as e,bN as s,bO as t,aI as a,l,bP as i,_ as n,a1 as o,a2 as c}from"./utils-lib.js?v=20260328163632";import{S as r}from"./index185.js?v=20260328163632";import{R as p}from"./index186.js?v=20260328163632";import{k as x,x as m,o as u,n as f,V as d,W as v,X as y,l as g,v as b,Y as w,O as _,a3 as k,a2 as h,j,Z as T,K as C,H as E,F as L,a1 as P,L as A,w as I,J as S,_ as z,U as B}from"./base-lib.js?v=20260328163632";import{B as O,A as R,g as $}from"./naive-ui.js?v=20260328163632";import"./__commonjsHelpers__.js?v=20260328163632";import"./env-lib.js?v=20260328163632";const D={class:"recom-content"},H={class:"flex items-center mr-[30px] relative"},F={class:"flex flex-col justify-center"},J={class:"flex items-center"},K={class:"flex items-center"},N={class:"mr-[10px]"},U={key:0,class:"text-[#fc6d26]"},V={key:1},W={class:"bt-warn !font-bold !text-[14px]"},X={class:"flex items-center"},Y={class:"!text-warning"},Z={class:"product-recom-list"},q=n(x({__name:"index",setup(n){const{payment:o}=e(),c=m(o.value.authType),r=m(o.value.authExpirationTime),{tabTypeActive:p}=s(),{isActivePay:x,isShowType:I,isExpTime:S,isDistanceDays:z,isShowColor:B,recomList:q,pluginPayEvent:G}=t();return u((()=>{f((()=>{const e=setInterval((async()=>{if(window.$extension){const s=await window.$extension();a(s.extensionElement)&&!s.extensionElement&&clearTimeout(e),s.extensionElement&&(s.extensionElement({custom:{openPay:()=>{G(x.value?30:29)}}}),clearTimeout(e))}}),1e3)}))})),(e,s)=>{const t=O,a=R,n=$;return d(),v("div",{class:C(["recom-view",w(c)+"-view"])},[y("div",D,[g(y("div",H,[_(t,{class:"payment-btn relative",onClick:s[1]||(s[1]=e=>w(G)(w(x)?30:29))},{default:k((()=>[g(y("i",{class:"svgtofont-free-recommend -left-[3px] -top-[5px] absolute !text-[red] !text-[40px]",onClick:s[0]||(s[0]=h((e=>w(G)(w(x)?30:29)),["stop"]))},null,512),[[b,w(I)]]),j(" "+T(w(x)?w(l)("立即续费"):w(l)("立即购买")),1)])),_:1})],512),[[b,!(0===w(r)&&12!==w(p))]]),y("div",F,[y("div",J,[y("span",K,[y("i",{class:C("svgtofont-icon-".concat(w(I)?"ltd":"pro"," relative top-[1px] mr-[4px] !text-[24px]")),style:E({color:w(B)})},null,6),y("span",{class:"text-[14px] font-bold",style:E({color:w(B)})},[y("span",N,T(w(l)(w(I)?"企业版":"专业版"))+" "+T(w(x)?"":w(l)("特权")),1),w(x)?(d(),v("span",U,[j(T(w(l)("到期时间:"))+" ",1),0!==w(r)?(d(),v("span",{key:0,class:"cursor-pointer",onClick:s[2]||(s[2]=e=>w(G)(33))},[j(T(w(S))+" ",1),w(z)>7?(d(),v(L,{key:0},[j(T(w(l)("（续费）")),1)],64)):P("",!0),w(z)<=7?(d(),v(L,{key:1},[j(T(w(l)("(还有{0}天到期，点击续费)",[w(z)])),1)],64)):P("",!0),w(z)<=0?(d(),v(L,{key:2},[j(T(w(l)("（已到期，点击续费）")),1)],64)):P("",!0)])):(d(),v("span",V,T(w(l)("永久授权")),1))])):P("",!0)],4)]),_(a,{vertical:"",class:"!mx-[20px]"}),s[4]||(s[4]=y("span",{id:"productIntroduce"},null,-1)),y("span",W,[_(n,{placement:"bottom-start",effect:"light",trigger:"hover",width:200},{trigger:k((()=>[y("span",X,[s[3]||(s[3]=y("i",{class:"svgtofont-icon-customer-service mr-[2px] !text-[18px] !text-warning"},null,-1)),y("span",Y,T(w(l)("在线客服")),1)])])),default:k((()=>[_(i,{class:"bg-white"})])),_:1})])]),y("div",Z,[(d(!0),v(L,null,A(w(q),(e=>(d(),v("div",{key:e.title,class:"recom-item text-[var(--text-color-2)]"},[y("i",{class:C("svgtofont-".concat(e.icon," !text-[20px] !text-[#966000]"))},null,2),y("span",null,T(e.title),1)])))),128))])])])],2)}}}),[["__scopeId","data-v-d49227cb"]]),G={class:"w-full items-center flex mb-16px"},M={class:"soft-left-title w-[80px] pr-16px text-[14px] flex justify-end mb-4px"},Q={class:"flex flex-1 relative flex-wrap"},ee=["onClick"],se={class:"text-14px text-[var(--text-color-2)]"},te=n(x({__name:"index",setup(a){const{isAaPanel:i,isRefreshSoftList:n,forceLtd:x}=e(),{isLoading:m,tabTypeActive:f}=s(),{typeList:b,BtTable:h,BtPage:j,pageOptions:E,refreshPluginList:O,toggleClassEvent:R,$reset:$}=t();return I((()=>n.value),(e=>{e&&(O(),n.value=!1)})),u(O),S($),(e,s)=>{const t=B("bt-loading");return d(),v("div",null,[_(r),_(p),y("div",G,[y("span",M,T(w(l)("应用分类")),1),y("div",Q,[(d(!0),v(L,null,A(w(b),(e=>(d(),v("div",{key:e.id,class:C(["class-item mb-4px",{on:w(f)===e.id}]),onClick:s=>w(R)(e.id)},T(e.title),11,ee)))),128))])]),w(x)||w(i)?P("",!0):(d(),z(q,{key:0})),_(w(c),null,{content:k((()=>[g((d(),z(w(h),{"scroll-x":1080},{empty:k((()=>[y("span",null,T(w(l)("未查询到搜索内容")),1)])),_:1})),[[t,w(m)],[t,w(l)("正在获取软件列表，请稍候..."),"title"]])])),"footer-right":k((()=>[_(w(j),{"show-size-picker":"","page-sizes":w(o)([6,10,12,16,20,50,200]),onRefresh:s[0]||(s[0]=e=>w(O)())},{suffix:k((()=>[y("span",se,T(w(l)("共 {0} 条",[w(E).itemCount])),1)])),_:1},8,["page-sizes"])])),_:1})])}}}),[["__scopeId","data-v-83a79422"]]);export{te as default};
