2026-07-09 15:20:19 +03:30
|
|
|
import{ao as g,al as _,d as Y,ah as j,g as P,E as W,h as o,az as _n,b as p,a6 as Me,F as _e,aD as An,a4 as xe,a5 as pe,a9 as je,aC as re,ak as Ae,ac as Re,P as ke,an as rn,av as De,X as on,aH as sn,aI as Rn,aj as kn,V as Dn,aJ as Ln,aK as Je,O as Fn,ad as cn,v as Tn,a8 as Ne,j as Se,aL as jn,aM as vn}from"./index-a08997de.js";import{a as fn,S as $e,d as dn,e as Nn,f as $n,O as Ce,T as Vn,K as Bn,s as be}from"./isSymbol-6a02f777.js";import{c as Ie}from"./vnode-ddd966cb.js";import{w as Ve}from"./_plugin-vue_export-helper-20260c74.js";var Dt=["xxxl","xxl","xl","lg","md","sm","xs"],we={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)",xxxl:"(min-width: 2000px)"},le=new Map,Be=-1,Pe={},zn={matchHandlers:{},dispatch:function(e){return Pe=e,le.forEach(function(i){return i(Pe)}),le.size>=1},subscribe:function(e){return le.size||this.register(),Be+=1,le.set(Be,e),e(Pe),Be},unsubscribe:function(e){le.delete(e),le.size||this.unregister()},unregister:function(){var e=this;Object.keys(we).forEach(function(i){var a=we[i],t=e.matchHandlers[a];t==null||t.mql.removeListener(t==null?void 0:t.listener)}),le.clear()},register:function(){var e=this;Object.keys(we).forEach(function(i){var a=we[i],t=function(v){var f=v.matches;e.dispatch(g(g({},Pe),{},_({},i,f)))},r=window.matchMedia(a);r.addListener(t),e.matchHandlers[a]={mql:r,listener:t},t(r)})}};const Lt=zn;var fe={adjustX:1,adjustY:1},de=[0,0],Gn={topLeft:{points:["bl","tl"],overflow:fe,offset:[0,-4],targetOffset:de},topCenter:{points:["bc","tc"],overflow:fe,offset:[0,-4],targetOffset:de},topRight:{points:["br","tr"],overflow:fe,offset:[0,-4],targetOffset:de},bottomLeft:{points:["tl","bl"],overflow:fe,offset:[0,4],targetOffset:de},bottomCenter:{points:["tc","bc"],overflow:fe,offset:[0,4],targetOffset:de},bottomRight:{points:["tr","br"],overflow:fe,offset:[0,4],targetOffset:de}};const Hn=Gn;var Wn=["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"];const Ft=Y({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:j.string.def("rc-dropdown"),transitionName:String,overlayClassName:j.string.def(""),openClassName:String,animation:j.any,align:j.object,overlayStyle:{type:Object,default:void 0},placement:j.string.def("bottomLeft"),overlay:j.any,trigger:j.oneOfType([j.string,j.arrayOf(j.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:j.array,hideAction:j.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:j.number.def(.15),mouseLeaveDelay:j.number.def(.1)},emits:["visibleChange","overlayClick"],slots:["overlay"],setup:function(e,i){var a=i.slots,t=i.emit,r=i.expose,s=P(!!e.visible);W(function(){return e.visible},function(h){h!==void 0&&(s.value=h)});var v=P();r({triggerRef:v});var f=function(d){e.visible===void 0&&(s.value=!1),t("overlayClick",d)},C=function(d){e.visible===void 0&&(s.value=d),t("visibleChange",d)},m=function(){var d,K=(d=a.overlay)===null||d===void 0?void 0:d.call(a),D={prefixCls:"".concat(e.prefixCls,"-menu"),onClick:f,getPopupContainer:function(){return v.value.getPopupDomNode()}};return p(_e,null,[e.arrow&&p("div",{class:"".concat(e.prefixCls,"-arrow")},null),Ie(K,D,!1)])},y=o(function(){var h=e.minOverlayWidthMatchTrigger,d=h===void 0?!e.alignPoint:h;return d}),I=function(){var d,K=(d=a.default)===null||d===void 0?void 0:d.call(a);return s.value&&K?Ie(K[0],{class:e.openClassName||"".concat(e.prefixCls,"-open")},!1):K},b=o(function(){return!e.hideAction&&e.trigger.indexOf("contextmenu")!==-1?["click"]:e.hideAction});return function(){var h=e.prefixCls,d=e.arrow,K=e.showAction,D=e.overlayStyle,U=e.trigger,A=e.placement,x=e.align,N=e.getPopupContainer,q=e.transitionName,L=e.animation,M=e.overlayClassName,S=_n(e,Wn);return p(fn,g(g({},S),{},{prefixCls:h,ref:v,popupClassName:Me(M,_({},"".concat(h,"-show-arrow"),d)),p
|