import{c as a,r as t,aI as s,v as l,x as e,z as r,N as d,D as i,A as n,B as o,C as c,F as u,b0 as p,y as m,e as f,G as v,f as g,K as y}from"./base-lib.js?v=1761009159";import{Z as I,f as k,_}from"./utils-lib.js?v=1761009159";import{k as b,p as S}from"./validator.js?v=1761009159";const x={class:"product-introduce"},w={class:"flex items-start"},C={class:"flex items-start flex-col"},j={class:"product-introduce-title"},h={class:"product-introduce-ps"},B={class:"product-introduce-groupBtn"},P={key:0,class:"product-introduce-hr"},D={class:"product-introduce-ul"},z={class:"flex justify-center"},A={key:0,class:"product-introduce-tab"},F=["onClick"],G={class:"max-h-[112rem] overflow-auto"},K=_(a({__name:"index",props:{data:{default:()=>({name:"",imgSrc:"",title:"",ps:"",source:0,desc:[],tabImgs:[],isInstall:!1,isSkipPay:!1,productSrc:"",pluginInfo:{}})}},setup(a){const _=a,K=t(0),N=t(""),Z=async a=>{var t,s;if(!_.data.pluginInfo&&!_.data.name)return;let l=(null==(t=_.data)?void 0:t.name)||"";I(_.data.pluginInfo,"name")&&(l=null==(s=_.data.pluginInfo)?void 0:s.name),b({name:l,type:"i",softData:{..._.data.pluginInfo||{},name:l,callBack:()=>{window.location.reload()}}})},q=()=>{S({sourceId:_.data.source})},E=()=>{window.open(_.data.productSrc,"_blank","noopener,noreferrer")};return s(()=>{var a;N.value=(null==(a=_.data)?void 0:a.tabImgs[K.value])?"string"!=typeof _.data.tabImgs[K.value]?_.data.tabImgs[K.value].imgSrc:_.data.tabImgs:""}),(a,t)=>{var s,I;const b=k,S=v,H=g;return l(),e("div",x,[r("div",w,[a.data.imgSrc?(l(),d(b,{key:0,src:a.data.imgSrc,class:"w-[7rem] mr-[1.4rem]"},null,8,["src"])):i("",!0),r("div",C,[r("p",j,n(a.data.title),1),r("p",h,n(a.data.ps),1),r("div",B,[a.data.productSrc?(l(),d(S,{key:0,type:"default",onClick:E},{default:o(()=>t[0]||(t[0]=[c(" 产品预览 ",-1)])),_:1,__:[0]})):i("",!0),(null==(s=a.data.pluginInfo)?void 0:s.setup)&&a.data.isInstall||!((null==(I=a.data.pluginInfo)?void 0:I.endtime)>=0||a.data.isSkipPay)?a.data.isSkipPay?i("",!0):(l(),d(S,{key:2,type:"primary",onClick:q},{default:o(()=>t[2]||(t[2]=[c(" 立即购买 ",-1)])),_:1,__:[2]})):(l(),d(S,{key:1,type:"primary",onClick:Z},{default:o(()=>t[1]||(t[1]=[c(" 立即安装 ",-1)])),_:1,__:[1]}))])])]),54!=a.data.source?(l(),e("div",P)):i("",!0),r("ul",D,[(l(!0),e(u,null,p(a.data.desc,(a,s)=>(l(),e("li",{key:s},[t[3]||(t[3]=r("span",{class:"product-introduce-ul-icon"},null,-1)),r("span",null,n(a),1)]))),128))]),r("div",z,["string"!=typeof a.data.tabImgs[m(K)]?(l(),e("ul",A,[(l(!0),e(u,null,p(a.data.tabImgs,(a,t)=>(l(),e("li",{key:t,class:y(["whitespace-nowrap",t===m(K)?"on":""]),onClick:a=>(a=>{K.value=a,N.value=_.data.tabImgs[a].imgSrc})(t)},n(a.title),11,F))),128))])):i("",!0),r("div",G,[f(H,{src:m(N),class:"flex-1"},null,8,["src"])])])])}}}),[["__scopeId","data-v-d362b4ec"]]);export{K as _};
