import{r as e}from"./rolldown-runtime-Z1f0ZVYe.js";import"./posthog-js-P19JMAcQ.js";import{C as t,I as n,P as r,S as i,T as a,W as o,b as s,d as c,g as l,it as u,ot as d,w as f,y as p}from"./element-plus-D99A5MMY.js";import{m}from"./vue-BxO6XIpA.js";import"./main-D027d2Op.js";import{n as h,r as g,t as _}from"./usePopup-D1kkDbGu.js";import{c as v,r as y,s as b}from"../index.js";import{a as x,r as S}from"./components-CfUrF7Oa.js";import{t as C}from"./collection-Fg2QwatV.js";import{t as w}from"./header-MAmzC49O.js";var T={class:`popup-header__group`},E={class:`popup-content__container`},D=y(a({__name:`index`,setup(e){let{t:a}=m(),y=h(),{gotoCollectionEditPage:D,gotoCollectionPage:O}=_(),{getTargetHostname:k}=C();return(e,m)=>{let h=c;return r(),i(l,null,[f(u(w),null,{left:o(()=>[p(`section`,T,[f(u(v),{name:`add`,"class-name":`add`,title:u(a)(`collection.op.new`),onClick:m[0]||=e=>u(D)({pageTarget:u(g).Popup})},null,8,[`title`]),f(u(b),{modelValue:u(y).searchKeyword,"onUpdate:modelValue":m[1]||=e=>u(y).searchKeyword=e,type:`text`,class:`popup-header__search`,placeholder:u(a)(`pages.list.placeholder.search`)},null,8,[`modelValue`,`placeholder`])])]),right:o(()=>[f(u(v),{name:`openWithNewWindow`,title:u(a)(`pages.popupHeader.newWindow`),onClick:m[2]||=e=>u(O)({pageTarget:u(g).Options,blank:!0})},null,8,[`title`])]),_:1}),u(y).collectionListData.length?u(y).filterCollectionList.length?(r(),s(h,{key:2,class:`popup-content_scroll`,"max-height":`var(--popup-actual-height)`},{default:o(()=>[p(`section`,E,[(r(!0),i(l,null,n(u(y).filterCollectionList,e=>(r(),s(S,{key:e.id,title:u(a)(`collection.op.edit`),name:e.name,onClick:t=>u(D)({pageTarget:u(g).Popup,collectionId:e.id})},{target:o(()=>[t(d(u(k)(e.matchItem)),1)]),default:o(()=>[f(u(v),{name:`arrowRight`})]),_:2},1032,[`title`,`name`,`onClick`]))),128))])]),_:1})):(r(),s(u(x),{key:1,state:`noMatch`})):(r(),s(u(x),{key:0,state:`empty`}))],64)}}}),[[`__scopeId`,`data-v-f66ec4c0`]]);export{D as default};
//# sourceMappingURL=popup-DbP3xsT5.js.map