import{u as a,as as s,h as t,l,e,_ as c}from"./utils-lib.js?v=20260328163632";import{B as r,z as d}from"./naive-ui.js?v=20260328163632";import{k as i,r as u,y as o,V as n,W as p,X as m,_ as f,Y as y,a1 as g,Z as v,a3 as k,F as I,L as b,O as x,j as _,K as S}from"./base-lib.js?v=20260328163632";const w={class:"product-introduce"},h={class:"flex items-start"},j={class:"flex items-start flex-col"},C={class:"product-introduce-title"},B={class:"product-introduce-ps"},z={class:"product-introduce-groupBtn"},A={key:0,class:"product-introduce-hr"},F={class:"product-introduce-ul"},K={key:1,class:"flex justify-center"},L={key:0,class:"product-introduce-tab"},O=["onClick"],P={class:"max-h-[1120px] overflow-auto flex-1"},V=c(i({__name:"index",props:{data:{default:()=>({imgSrc:"",title:"",ps:"",source:0,desc:[],tabImgs:[],isInstall:!1,productSrc:"",pluginInfo:{}})}},setup(c){const i=c,{isAaPanel:V}=a(),W=u(0),X=u(""),Y=async a=>{i.data.pluginInfo},Z=()=>{s({sourceId:i.data.source})},q=()=>{window.open(i.data.productSrc)};return o((()=>{X.value=i.data.tabImgs[W.value]?"string"!=typeof i.data.tabImgs[W.value]?i.data.tabImgs[W.value].imgSrc:i.data.tabImgs:""})),(a,s)=>{const c=r,u=d;return n(),p("div",w,[m("div",h,[a.data.imgSrc?(n(),f(y(t),{key:0,src:a.data.imgSrc,class:"w-[70px] mr-[14px]"},null,8,["src"])):g("",!0),m("div",j,[m("p",C,v(a.data.title),1),m("p",B,v(a.data.ps),1),m("div",z,[a.data.productSrc?(n(),f(c,{key:0,type:"default",onClick:q},{default:k((()=>[_(v(y(l)("产品预览")),1)])),_:1})):g("",!0),a.data.isInstall?(n(),f(c,{key:1,type:"primary",onClick:Y},{default:k((()=>[_(v(y(l)("立即安装")),1)])),_:1})):y(V)?g("",!0):(n(),f(c,{key:2,type:"primary",onClick:Z},{default:k((()=>[_(v(y(l)("立即购买")),1)])),_:1}))])])]),54!=a.data.source?(n(),p("div",A)):g("",!0),m("ul",F,[(n(!0),p(I,null,b(a.data.desc,((a,t)=>(n(),p("li",{key:t},[s[0]||(s[0]=m("span",{class:"product-introduce-ul-icon"},null,-1)),m("span",null,v(a),1)])))),128))]),"zh"===y(e)?(n(),p("div",K,["string"!=typeof a.data.tabImgs[y(W)]?(n(),p("ul",L,[(n(!0),p(I,null,b(a.data.tabImgs,((a,s)=>(n(),p("li",{key:s,class:S(["whitespace-nowrap",s===y(W)?"on":""]),onClick:a=>(a=>{W.value=a,X.value=i.data.tabImgs[a].imgSrc})(s)},v(a.title),11,O)))),128))])):g("",!0),m("div",P,[x(u,{src:y(X),class:"w-[100%]"},null,8,["src"])])])):g("",!0)])}}}),[["__scopeId","data-v-8f0edde0"]]);export{V as B};
