import{aa as p,r as c,o as a,g as t,j as m,h as o,a as d,n as v,i as _}from"./app-BYcXwl4U.js";const f={key:0},g={key:1},w={__name:"MoreOptionsIndicator",emits:["change","update:modelValue"],setup(h,{emit:i}){const s=p("$popupState",null),l=i,e=c(!1),r=function(){e.value=!e.value,s!=null?s.ctx.moreOptionsVisible=e.value:window.X_VIEW_CTX.moreOptionsVisible=e.value,l("change",e.value),l("update:modelValue",e.value)};return(u,n)=>(a(),t("a",{href:"",style:{"font-weight":"normal"},onClick:n[0]||(n[0]=_(V=>r(),["prevent"])),class:"flex items-center gap-1"},[m(u.$slots,"default",{},()=>[e.value?o("",!0):(a(),t("span",f,"更多选项")),e.value?(a(),t("span",g,"收起选项")):o("",!0)]),d("i",{class:v(["pi",{"pi-angle-down":!e.value,"pi-angle-up":e.value}])},null,2)]))}};export{w as _};
