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,u as f,w as p,y as m}from"./element-plus-D99A5MMY.js";import{m as h}from"./vue-BxO6XIpA.js";import"./main-D027d2Op.js";import{n as g,r as _,t as v}from"./usePopup-D1kkDbGu.js";import{c as y,n as b,s as x,t as S}from"../index.js";import{a as C,r as w}from"./components-CfUrF7Oa.js";import{t as T}from"./collection-Fg2QwatV.js";var E={key:2,class:`options-content__wrapper`},D={class:`options-content__title`},O={class:`match-wrapper`},k=a({__name:`index`,setup(e){let{t:a}=h(),k=g(),{gotoCollectionEditPage:A}=v(),{getTargetHostname:j}=T();return(e,h)=>{let g=c,v=f;return r(),i(l,null,[p(u(S),null,{default:o(()=>[p(u(x),{modelValue:u(k).searchKeyword,"onUpdate:modelValue":h[0]||=e=>u(k).searchKeyword=e,class:`options-content__header-search`,type:`text`,size:`large`,placeholder:u(a)(`pages.list.placeholder.search`)},null,8,[`modelValue`,`placeholder`])]),_:1}),u(k).collectionListData.length?u(k).filterCollectionList.length?(r(),i(`section`,E,[m(`p`,D,d(u(a)(`collection.info.title`,2)),1),p(g,{class:`options-content__scroll`,"max-height":`var(--options-scroll-max-height)`},{default:o(()=>[m(`aside`,O,[(r(!0),i(l,null,n(u(k).filterCollectionList,e=>(r(),s(w,{key:e.id,title:u(a)(`collection.op.edit`),size:`large`,name:e.name,onClick:t=>u(A)({pageTarget:u(_).Options,collectionId:e.id})},{target:o(()=>[t(d(u(j)(e.matchItem)),1)]),default:o(()=>[p(u(y),{name:`arrowRight`})]),_:2},1032,[`title`,`name`,`onClick`]))),128))])]),_:1})])):(r(),s(u(C),{key:1,size:`large`,state:`noMatch`})):(r(),s(u(C),{key:0,size:`large`,state:`empty`})),p(u(b),null,{default:o(()=>[p(v,{type:`primary`,onClick:h[1]||=e=>u(A)({pageTarget:u(_).Options})},{default:o(()=>[t(d(u(a)(`collection.op.new`)),1)]),_:1})]),_:1})],64)}}});export{k as default};
//# sourceMappingURL=options-CApNYCKe.js.map