"use strict";(globalThis.webpackChunkinfinity_hitab_client=globalThis.webpackChunkinfinity_hitab_client||[]).push([[9199,5088],{39199:(e,t,i)=>{i.r(t),i.d(t,{default:()=>r});var l=i(57268),n=i(29445),o=i(68398),c=i(45088),a=i(63931),s=i(10435);const d={id:"search-default"},r=(0,l.aZ)({__name:"search-default",setup(e){const t=(0,a.R)(),{defaultList:i}=(0,s.Jk)(t);return(e,t)=>((0,l.wg)(),(0,l.iD)("div",d,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)((0,n.SU)(i),(e=>(0,l.wy)(((0,l.wg)(),(0,l.j4)(c.default,{key:e.id,icon:e,editable:!1},null,8,["icon"])),[[o.vShow,!e.hide]]))),128))]))}})},45088:(e,t,i)=>{i.r(t),i.d(t,{default:()=>v});var l=i(22406),n=i(94630),o=i(62951),c=i(57268),a=i(94209),s=i(29445),d=i(63931),r=i(20399);const u={class:"search-list-item group mb-[8px] flex w-[360px] items-center justify-between rounded-[6px] px-[10px] py-[8px] duration-150 hover:bg-color-m2 hover:bg-opacity-[0.06]"},p={class:"text-dot flex items-center"},x={class:"text-dot pl-[10px] text-[14px] text-color-t2"},h={class:"flex items-center"},m=(0,c.aZ)({__name:"search-list-item",props:{icon:null,editable:{type:Boolean,default:!0},checkable:{type:Boolean,default:!0}},emits:["edit","delete"],setup(e,t){let{emit:i}=t;const m=e,v=(0,d.R)(),b=(0,s.iH)(!1),_=(0,s.iH)(m.icon.id===v.currentId?{edit:{text:"编辑",handler(){i("edit",(0,r.Z)(m.icon))}}}:{edit:{text:"编辑",handler(){i("edit",(0,r.Z)(m.icon))}},remove:{text:"删除",handler(){i("delete",m.icon.id)}}}),f=()=>{v.currentIdList.includes(m.icon.id)?v.deleteCurrentListItem(m.icon.id):v.addCurrentListItem(m.icon.id)};return(e,t)=>{const i=o.Z,d=n.Z,r=l.Z;return(0,c.wg)(),(0,c.iD)("div",u,[(0,c._)("div",p,[(0,c.Wm)(i,{"max-size":24,icon:m.icon,class:"h-[24px] w-[24px] flex-shrink-0 rounded-[6px]"},null,8,["icon"]),(0,c._)("span",x,(0,a.toDisplayString)(m.icon.name),1)]),(0,c._)("div",h,[m.editable?((0,c.wg)(),(0,c.j4)(d,{key:0,show:b.value,"onUpdate:show":t[0]||(t[0]=e=>b.value=e),options:(0,s.SU)(_)},{reference:(0,c.w5)((()=>[(0,c._)("button",{class:(0,a.normalizeClass)(b.value?"block":"hidden group-hover:block")},[(0,c._)("i",{class:(0,a.normalizeClass)([b.value?"text-opacity-80":"text-opacity-60 hover:text-opacity-80 ","iconfont icon-single_hover_icon text-[20px] text-color-t1"])},null,2)],2)])),_:1},8,["show","options"])):(0,c.kq)("",!0),m.checkable?((0,c.wg)(),(0,c.j4)(r,{key:1,value:(0,s.SU)(v).currentIdList.includes(m.icon.id),class:"ml-[12px]",title:"是否添加到主页去",onClick:f},null,8,["value","title"])):(0,c.kq)("",!0)])])}}});const v=(0,i(76911).Z)(m,[["__scopeId","data-v-0301562c"]])}}]);