System.register(["./base-lib-legacy.js?v=1761009159","./utils-lib-legacy.js?v=1761009159","./__commonjsHelpers__-legacy.js?v=1761009159"],function(e,t){"use strict";var a,l,n,i,s,c,r,u,o,p,m,f,d,v,x,_,y,b,g,D,h,w,k,C,j,z;return{setters:[function(e){a=e.c,l=e.r,n=e.aA,i=e.q,s=e.H,c=e.I,r=e.y,u=e.v,o=e.x,p=e.z,m=e.e,f=e.Q,d=e.F,v=e.b0,x=e.N,_=e.D,y=e.K,b=e.A,g=e.C,D=e.B,h=e.G,w=e.ax},function(e){k=e.aC,C=e.f,j=e.e,z=e._},null],execute:function(){var t={class:"flex h-[46rem]"},H={class:"p-[20px] pl-0 grid grid-cols-2 gap-x-4 w-full h-[46rem] overflow-auto"},S={class:"flex flex-col items-start leading-10 flex-1"},I={class:"text-medium mb-[4px]"},L={class:"truncate inline-block w-[80%]"},T=["innerHTML"],V={class:"truncate inline-block w-[80%]"},A={class:"truncate inline-block w-[80%]"},M={class:"flex items-center flex-1"},q={class:"flex items-center flex-1"};e("default",z(a({__name:"other-template",props:{compData:{default:function(){}}},setup:function(e){var a=e,z=l(""),B=l(),F=l(a.compData.templateData.list),G=l(a.compData.templateId),K=l(!1),N=n("popupClose"),Q=function(e){F.value="all"===e?a.compData.templateData.list:""===e?a.compData.templateData.list.filter(function(e){return 0===e.is_many}):a.compData.templateData.list.filter(function(t){return String(t.type)===e})};return i(function(){K.value=!0,B.value=a.compData.templateData.dep_type.map(function(e){return{label:e.title,name:String(e.tid),lazy:!0}}),B.value.unshift({label:"全部",name:"all",lazy:!0}),B.value.unshift({label:"精选推荐",name:"",lazy:!0}),z.value=String(B.value[0].name),F.value=a.compData.templateData.list.filter(function(e){return 0===e.is_many}),K.value=!1}),function(e,l){var n=k,i=C,U=j,E=h,J=w,O=s("bt-loading");return c((u(),o("div",t,[p("div",null,[m(n,{class:"w-full !h-full",type:"left-bg-card",modelValue:r(z),"onUpdate:modelValue":l[0]||(l[0]=function(e){return f(z)?z.value=e:null}),options:r(B),onChange:Q},null,8,["modelValue","options"])]),p("div",H,[(u(!0),o(d,null,v(r(F),function(e){return u(),o("div",{key:e.id,class:y([{"template-focus":r(G)===e.id},"mb-[8px] flex p-[20px] rounded-base h-[18rem] template-hover"])},[m(i,{src:"/site_dep_ico/".concat(e.name.toLowerCase(),".png"),class:"!max-h-[3.6rem] !max-w-[4rem] mr-[8px]"},null,8,["src"]),p("div",S,[p("span",I,b(e.title),1),p("span",L,[l[1]||(l[1]=g(" 简介：",-1)),p("span",{innerHTML:e.ps},null,8,T)]),p("span",V," 版本："+b(e.version),1),p("span",A," 评分："+b(e.score),1),p("div",M,[p("span",q,[l[2]||(l[2]=p("div",{class:"flex-1"},"官网：",-1)),m(U,{class:"!truncate w-[10.6rem]",href:e.official},{default:D(function(){return[g(b(e.official),1)]}),_:2},1032,["href"])]),m(E,{type:"primary",class:"!ml-[12px]",onClick:function(t){return function(e){G.value=e.id,a.compData.selectTemplate(e.id),N()}(e)}},{default:D(function(){return l[3]||(l[3]=[g("选择模板",-1)])}),_:2,__:[3]},1032,["onClick"])])])],2)}),128)),r(F).length?_("",!0):(u(),x(J,{key:0,description:"暂无数据",class:"w-200%"}))])])),[[O,r(K)]])}}}),[["__scopeId","data-v-ef3b1d12"]]))}}});
