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