import{_ as e}from"./index105.js?v=1761009159";import{_ as s}from"./index114.js?v=1761009159";import{u as t,af as a,_ as l,l as n}from"./utils-lib.js?v=1761009159";import{c as o,V as i,s as r,q as c,n as p,v as m,x,z as d,I as f,J as u,y as v,e as g,B as y,R as w,C as b,A as _,K as k,L as j,F as h,D as L,b0 as C,G as E,az as T,h as I,w as P,a6 as S,H as A,N as D}from"./base-lib.js?v=1761009159";import{S as z,w as R}from"./validator.js?v=1761009159";import{S as $}from"./index380.js?v=1761009159";import{R as H}from"./index381.js?v=1761009159";import{_ as N}from"./index106.js?v=1761009159";import{_ as U}from"./index104.js?v=1761009159";import q from"./index161.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./column.js?v=1761009159";const B={class:"recom-content"},F={class:"flex items-center mr-[30px] relative"},G={class:"flex flex-col justify-center"},J={class:"flex items-center"},K={class:"flex items-center"},V={class:"mr-[10px]"},M={key:0,class:"text-warning"},O={key:1},Q={class:"product-recom-list"},W=l(o({__name:"index",setup(e){const{payment:s}=t(),l=i(s.value.authType),n=i(s.value.authExpirationTime),{tabTypeActive:o}=r(z()),{pluginPayEvent:P}=R(),{isActivePay:S,isShowType:A,isExpTime:D,isDistanceDays:$,isShowColor:H,recomList:W}=r(R());return c(()=>{p(()=>{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:()=>{P(S.value?30:29)}}}),clearTimeout(e))}},1e3)})}),(e,s)=>{const t=U,a=E,i=N,r=T,c=I;return m(),x("div",{class:k(["recom-view",v(l)+"-view"])},[d("div",B,[f(d("div",F,[g(a,{class:"payment-btn relative",onClick:s[1]||(s[1]=e=>v(P)(v(S)?30:29))},{default:y(()=>[f(d("i",{class:"-left-[0px] -top-[6px] absolute !text-[red] !text-titleLarge",onClick:s[0]||(s[0]=w(e=>v(P)(v(S)?30:29),["stop"]))},[g(t,{name:"icon-recommend",size:"30"})],512),[[u,v(A)]]),b(" "+_(v(S)?"立即续费":"立即购买"),1)]),_:1})],512),[[u,!(0===v(n)&&12!==v(o))]]),d("div",G,[d("div",J,[d("span",K,[d("i",{class:k("svgtofont-icon-".concat(v(A)?"ltd":"pro"," relative top-[1px] mr-[4px] !text-subtitleLarge")),style:j({color:v(H)})},null,6),d("span",{class:"text-base font-bold",style:j({color:v(H)})},[d("span",V,_(v(A)?"企业版":"专业版")+_(v(S)?"":"特权"),1),v(S)?(m(),x("span",M,[s[3]||(s[3]=b(" 到期时间: ",-1)),0!==v(n)?(m(),x("span",{key:0,class:"cursor-pointer",onClick:s[2]||(s[2]=e=>v(P)(33))},[b(_(v(D))+" ",1),v($)>7?(m(),x(h,{key:0},[b("（续费）")],64)):L("",!0),v($)<=7?(m(),x(h,{key:1},[b(" (还有"+_(v($))+"天到期，点击续费) ",1)],64)):L("",!0),v($)<=0?(m(),x(h,{key:2},[b("（已到期，点击续费）")],64)):L("",!0)])):(m(),x("span",O," 永久授权 "))])):L("",!0)],4)]),g(i,{class:"!mx-[20px]"}),s[5]||(s[5]=d("span",{id:"productIntroduce"},null,-1)),g(c,{type:"warning",class:"!font-bold !text-base"},{default:y(()=>[g(r,{placement:"bottom-start",effect:"light",trigger:"hover",width:"180","popper-class":"el-tooltip-white !p-[8px]"},{reference:y(()=>s[4]||(s[4]=[d("span",{class:"flex items-center"},[d("i",{class:"svgtofont-icon-customer-service mr-[2px] !text-large !text-warning"}),d("span",{class:"!text-warning"},"在线客服")],-1)])),default:y(()=>[g(q)]),_:1})]),_:1})]),d("div",Q,[(m(!0),x(h,null,C(v(W),e=>(m(),x("div",{key:e.title,class:"recom-item"},[d("i",{class:k("svgtofont-".concat(e.icon," !text-extraLarge !text-warningDark"))},null,2),d("span",null,_(e.title),1)]))),128))])])])],2)}}}),[["__scopeId","data-v-81e888c5"]]),X={class:"w-full h-full"},Y={class:"w-full items-center flex mb-16px"},Z={class:"flex flex-1 relative flex-wrap"},ee=["onClick"],se=l(o({__name:"index",setup(a){const{isLoading:l,tabTypeActive:o}=r(z()),{isRefreshSoftList:i,forceLtd:p,aliyunEcsLtd:u}=t(),{refreshPluginList:w,openNpsEvent:b,toggleClassEvent:j,$reset:E}=R(),{TableColumn:T,tablePage:I,softTableList:N,typeList:U}=r(R());return P(()=>i.value,e=>{e&&(w(),i.value=!1)}),c(w),S(E),(t,a)=>{const i=n,r=s,c=e,p=A("bt-loading");return m(),x("div",X,[g($),g(H),d("div",Y,[a[4]||(a[4]=d("span",{class:"w-[80px] pr-16px text-base flex justify-end mb-4px"},"应用分类",-1)),d("div",Z,[(m(!0),x(h,null,C(v(U),e=>(m(),x("div",{key:e.id,class:k(["class-item mb-4px",{on:v(o)===e.id}]),onClick:s=>v(j)(e.id)},_(e.title),11,ee))),128))])]),v(u)?L("",!0):(m(),D(W,{key:0})),g(c,null,{content:y(()=>[f((m(),D(i,{class:"soft-table",column:v(T),data:v(N)},{empty:y(()=>[d("span",{class:"bt-link",onClick:a[0]||(a[0]=(...e)=>v(b)&&v(b)(...e))},"未查询到搜索内容,提交需求反馈")]),_:1},8,["column","data"])),[[p,v(l)],[p,"正在获取软件列表，请稍候...","title"]])]),"footer-right":y(()=>[g(r,{page:v(I).page,"onUpdate:page":a[1]||(a[1]=e=>v(I).page=e),row:v(I).row,"onUpdate:row":a[2]||(a[2]=e=>v(I).row=e),total:v(I).total,rowList:[10,15,20,30,50,100],onChange:a[3]||(a[3]=e=>v(w)())},null,8,["page","row","total"])]),_:1})])}}}),[["__scopeId","data-v-542dc5f1"]]);export{se as default};
