System.register(["./base-lib-legacy.js?v=20260328163632","./utils-lib-legacy.js?v=20260328163632","./naive-ui-legacy.js?v=20260328163632"],(function(e,n){"use strict";var t,l,s,a,i,c,r,o,u,p,f,m,d,x,v,y,h,w,g,_,k,b,C,L,R,j,V,E;return{setters:[function(e){t=e.k,l=e.ah,s=e.o,a=e.V,i=e.W,c=e.X,r=e.Z,o=e.Y,u=e.O,p=e.a3,f=e.a2,m=e.F,d=e.L,x=e.a1,v=e.c,y=e.J,h=e.N,w=e._,g=e.l,_=e.v},function(e){k=e.u,b=e.bQ,C=e.l,L=e._,R=e.bN,j=e.q,V=e.f},function(e){E=e.B}],execute:function(){var H=""+new URL("../images/soft_ico/hot.png",n.meta.url).href,P=""+new URL("../images/soft_ico/hots.png",n.meta.url).href,S={class:"type-item"},A={class:"type-name justify-between"},U={class:"flex items-center"},B={class:"history-list relative max-h-[200px] overflow-x-hidden overflow-y-auto"},D=["onClick","title"],F={class:"truncate leading-16px"},I=["onClick"],M={class:"type-item"},N={class:"type-name"},O={class:"search-list"},q=["onClick"],z={key:0,class:"type-item"},J={class:"type-name"},Q={class:"recommend-list"},W=["onClick"],X=["src"],Y=L(t({__name:"history",setup:function(e){var n=k().isAaPanel,t=l(b()),v=t.historyList,y=t.softSearchList,h=t.softRecommendList,w=b(),g=w.handleOpenPluginEvent,_=w.clearFindHistoryEvent,L=w.inputHistoryEvent,R=w.clearAllHistoryEvent,j=w.initHistory;return s(j),function(e,t){var l=E;return a(),i("div",{class:"history-box w-[560px] lt-xl:(!w-[500px]) lt-lg:(!w-[360px]) <md:(!w-[300px]) lt-sm:(!w-[200px])",onMousedown:t[0]||(t[0]=f((function(){}),["prevent"]))},[c("div",S,[c("span",A,[c("span",null,r(o(C)("搜索历史")),1),u(l,{type:"default",size:"small",onClick:f(o(R),["stop"])},{default:p((function(){return[c("span",U,[t[1]||(t[1]=c("i",{class:"svgtofont-el-delete mr-[4px]"},null,-1)),c("span",null,r(o(C)("清空")),1)])]})),_:1},8,["onClick"])]),c("div",B,[(a(!0),i(m,null,d(o(v),(function(e,n){return a(),i("div",{class:"history-item max-w-[calc(100%+10px)] h-[30px]",onClick:function(n){return o(L)(e.val)},title:e.val},[c("span",F,r(e.val),1),c("i",{class:"svgtofont-el-close p-[2px]",onClick:f((function(t){return o(_)(e.val,n)}),["stop"])},null,8,I)],8,D)})),256))])]),c("div",M,[c("span",N,[c("span",null,r(o(C)("搜索排行")),1),t[2]||(t[2]=c("img",{class:"w-[24px] h-[12px] ml-[5px]",src:H,alt:""},null,-1))]),c("div",O,[(a(!0),i(m,null,d(o(y),(function(e){return a(),i(m,null,[o(n)&&"MongoDB"!==e.name||!o(n)?(a(),i("div",{key:0,class:"search-item",onClick:function(n){return o(g)(e.ename)}},r(e.name),9,q)):x("",!0)],64)})),256))])]),o(n)?x("",!0):(a(),i("div",z,[c("span",J,[c("span",null,r(o(C)("热门推荐")),1),t[3]||(t[3]=c("img",{class:"w-[14px] h-[14px] ml-[5px]",src:P,alt:""},null,-1))]),c("div",Q,[(a(!0),i(m,null,d(o(h),(function(e){return a(),i("div",{class:"recommend-item",onClick:function(n){return o(g)(e.ename,210)}},[c("img",{src:"../static/images/soft_ico/ico-".concat(e.ename,".png")},null,8,X),c("span",null,r(e.name),1)],8,W)})),256))])]))],32)}}}),[["__scopeId","data-v-af1086e8"]]),Z={class:"w-full flex items-center justify-between mb-[20px] flex-wrap"},$={class:"flex items-center"},G={class:"soft-left-title w-[80px] pr-16px text-[14px] flex justify-end"},K={class:"flex flex-1 relative"},T={class:"flex items-center mt-4px"};e("S",L(t({__name:"index",setup:function(e){var n=R(),t=n.searchRef,l=n.isLoading,s=n.searchVal,f=n.showRefresh,m=n.tabActive,d=n.refreshRouteData,k=n.$reset_history,b=v((function(){return"deployment"===m.value}));return y(k),function(e,n){var m=E;return a(),i("div",Z,[c("div",$,[c("span",G,r(o(C)("应用搜索")),1),c("div",K,[u(o(j),{class:"!w-[580px] lt-xl:(!w-[500px]) lt-lg:(!w-[360px]) <md:(!w-[300px]) lt-sm:(!w-[200px])",ref_key:"searchRef",ref:t,modelValue:o(s),"onUpdate:modelValue":n[0]||(n[0]=function(e){return h(s)?s.value=e:null}),placement:"bottom-start",disabledPopover:o(b),onSearch:n[1]||(n[1]=function(e){return o(d)(0,1)}),placeholder:o(C)("支持应用名称、字段模糊搜索")},{default:p((function(){return[o(f)?(a(),w(Y,{key:0})):x("",!0)]})),_:1},8,["modelValue","disabledPopover","placeholder"])])]),c("div",T,[u(m,{onClick:n[2]||(n[2]=function(e){return o(d)(1)}),disabled:o(l)},{default:p((function(){return[g(u(o(V),{icon:"el-loading mr-4px"},null,512),[[_,o(l)]]),c("span",null,r(o(C)("更新软件列表 / 支付状态")),1)]})),_:1},8,["disabled"])])])}}}),[["__scopeId","data-v-3894c77c"]]))}}}));
