"use strict";(globalThis.webpackChunkinfinity_hitab_client=globalThis.webpackChunkinfinity_hitab_client||[]).push([[3674,5088],{43691:(e,t,i)=>{i.d(t,{Z:()=>r});var l=i(13151),a=i(57268),s=i(29445),o=i(94209),n=i(1585),d=i(13197),c=i(50344);const r=(0,a.aZ)({__name:"hi-sidebar",props:{show:{type:Boolean},width:{default:400}},emits:["update:show"],setup(e,t){let{emit:i}=t;const r=e,u=(0,a.Fl)({get:()=>r.show,set(e){i("update:show",e)}}),p=(0,s.iH)(r.width);return(0,d.C)((0,c.uniqueId)("hi-sidebar"),(e=>{e<n.qf?p.value=e:p.value=r.width}),!0)(),(e,t)=>{const i=l.Z;return(0,a.wg)(),(0,a.j4)(i,{show:(0,s.SU)(u),"onUpdate:show":t[0]||(t[0]=e=>(0,s.dq)(u)?u.value=e:null),ani:"slide-left",class:"inset-y-0 left-0 bg-color-m1 bg-opacity-80 pt-[32px] shadow-side-bar backdrop-blur-[40px]",width:p.value},{default:(0,a.w5)((()=>[(0,a._)("div",{class:"h-full",style:(0,o.normalizeStyle)({width:p.value+"px"})},[(0,a.WI)(e.$slots,"default")],4)])),_:3},8,["show","width"])}}})},63674:(e,t,i)=>{i.r(t),i.d(t,{default:()=>m});var l=i(43691),a=i(24099),s=i(13234),o=i(57268),n=i(29445),d=i(94209),c=i(74582),r=i(45088),u=i(63931),p=i(10435),h=i(96073),v=i(63477);const x={id:"search-added",class:"pb-[20px]"},w=(0,o._)("div",{class:"mb-[20px] overflow-hidden rounded-[8px]"},[(0,o._)("img",{src:c})],-1),m=(0,o.aZ)({__name:"search-added",setup(e){const t=(0,u.R)(),{addList:i}=(0,p.Jk)(t),c=(0,n.iH)(null),m=(0,n.iH)(!1),b=()=>{m.value=!0,c.value=null},f=e=>{m.value=!0,c.value=e},_=e=>{t.saveCustomListItem(e,"add"),m.value=!1,e.id?h.f.sendEvent("edit-added-search",e.bgType,(0,v.Si)(e.target)):h.f.sendEvent("add-added-search",e.bgType,(0,v.Si)(e.target))},g=e=>{t.deleteCustomListItem(e,"add")};return(e,t)=>{const u=s.Z,p=a.Z,h=l.Z;return(0,o.wg)(),(0,o.iD)(o.HY,null,[(0,o._)("div",x,[w,((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)((0,n.SU)(i),(e=>((0,o.wg)(),(0,o.j4)(r.default,{key:e.id,icon:e,editable:!0,checkable:!1,onEdit:f,onDelete:g},null,8,["icon"])))),128)),(0,o.Wm)(u,{type:"primary",plain:"",size:"block",class:"h-[35px] text-[14px]",onClick:b},{default:(0,o.w5)((()=>[(0,o.Uk)((0,d.toDisplayString)("添加"),1)])),_:1})]),(0,o.Wm)(h,{show:m.value,"onUpdate:show":t[1]||(t[1]=e=>m.value=e)},{default:(0,o.w5)((()=>[(0,o.Wm)(p,{type:"search",title:"自定义添加",icon:c.value,show:m.value,onBack:t[0]||(t[0]=e=>m.value=!1),onOnSuccess:_},null,8,["title","icon","show"])])),_:1},8,["show"])],64)}}})},45088:(e,t,i)=>{i.r(t),i.d(t,{default:()=>w});var l=i(22406),a=i(94630),s=i(62951),o=i(57268),n=i(94209),d=i(29445),c=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"},h={class:"text-dot pl-[10px] text-[14px] text-color-t2"},v={class:"flex items-center"},x=(0,o.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 x=e,w=(0,c.R)(),m=(0,d.iH)(!1),b=(0,d.iH)(x.icon.id===w.currentId?{edit:{text:"编辑",handler(){i("edit",(0,r.Z)(x.icon))}}}:{edit:{text:"编辑",handler(){i("edit",(0,r.Z)(x.icon))}},remove:{text:"删除",handler(){i("delete",x.icon.id)}}}),f=()=>{w.currentIdList.includes(x.icon.id)?w.deleteCurrentListItem(x.icon.id):w.addCurrentListItem(x.icon.id)};return(e,t)=>{const i=s.Z,c=a.Z,r=l.Z;return(0,o.wg)(),(0,o.iD)("div",u,[(0,o._)("div",p,[(0,o.Wm)(i,{"max-size":24,icon:x.icon,class:"h-[24px] w-[24px] flex-shrink-0 rounded-[6px]"},null,8,["icon"]),(0,o._)("span",h,(0,n.toDisplayString)(x.icon.name),1)]),(0,o._)("div",v,[x.editable?((0,o.wg)(),(0,o.j4)(c,{key:0,show:m.value,"onUpdate:show":t[0]||(t[0]=e=>m.value=e),options:(0,d.SU)(b)},{reference:(0,o.w5)((()=>[(0,o._)("button",{class:(0,n.normalizeClass)(m.value?"block":"hidden group-hover:block")},[(0,o._)("i",{class:(0,n.normalizeClass)([m.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,o.kq)("",!0),x.checkable?((0,o.wg)(),(0,o.j4)(r,{key:1,value:(0,d.SU)(w).currentIdList.includes(x.icon.id),class:"ml-[12px]",title:"是否添加到主页去",onClick:f},null,8,["value","title"])):(0,o.kq)("",!0)])])}}});const w=(0,i(76911).Z)(x,[["__scopeId","data-v-0301562c"]])},74582:(e,t,i)=>{e.exports=i.p+"assets/img/7322ed8c.gif"}}]);