PageSourceSearch

https://southliu.github.io/assets/js/@[email protected]._10a31a0bc65d94f368a74c6c42119dd8.BP4ufCbN.js

js southliu.github.io collected 2026-10-03 09:59:19 UTC 3,263 bytes, 1 lines download raw bytes

1import{T as e}from"./@[email protected]_766f604215423df1100d912c9c357147.DOuP0IZq.js";import{w as t,K as o,c as r,g as n,s as a}from"./@[email protected]_r_39d8c4b197f541c8c42d43536a2b7ff2.BzDRMfiV.js";import{c as s}from"./[email protected]";import{a as i,e as c}from"./[email protected]";const{ESC:l,TAB:f}=o;const p=i.forwardRef((e,t)=>{const{overlay:o,arrow:s,prefixCls:l}=e,f=i.useMemo(()=>{let e;return e="function"==typeof o?o():o,e},[o]),p=r(t,n(f));return c.createElement(c.Fragment,null,s&&c.createElement("div",{className:"".concat(l,"-arrow")}),c.cloneElement(f,{ref:a(f)?p:void 0}))}),u={adjustX:1,adjustY:1},m=[0,0],v={topLeft:{points:["bl","tl"],overflow:u,offset:[0,-4],targetOffset:m},top:{points:["bc","tc"],overflow:u,offset:[0,-4],targetOffset:m},topRight:{points:["br","tr"],overflow:u,offset:[0,-4],targetOffset:m},bottomLeft:{points:["tl","bl"],overflow:u,offset:[0,4],targetOffset:m},bottom:{points:["tc","bc"],overflow:u,offset:[0,4],targetOffset:m},bottomRight:{points:["tr","br"],overflow:u,offset:[0,4],targetOffset:m}};function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},g.apply(this,arguments)}const d=c.forwardRef((o,u)=>{var m;const{arrow:d=!1,prefixCls:b="rc-dropdown",transitionName:w,animation:h,align:y,placement:C="bottomLeft",placements:O=v,getPopupContainer:R,showAction:E,hideAction:j,overlayClassName:k,overlayStyle:x,visible:N,trigger:P=["hover"],autoFocus:A,overlay:L,children:M,onVisibleChange:_,...F}=o,[S,T]=c.useState(),V="visible"in o?N:S,W=h?"".concat(b,"-").concat(h):w,D=c.useRef(null),B=c.useRef(null),H=c.useRef(null);c.useImperativeHandle(u,()=>D.current);const I=e=>{T(e),null==_||_(e)};!function({visible:e,triggerRef:o,onVisibleChange:r,autoFocus:n,overlayRef:a}){const s=i.useRef(!1),c=()=>{var t,n;e&&(null==(n=null==(t=o.current)?void 0:t.focus)||n.call(t),null==r||r(!1))},p=()=>{var e;return!!(null==(e=a.current)?void 0:e.focus)&&(a.current.focus(),s.current=!0,!0)},u=e=>{switch(e.keyCode){case l:c();break;case f:{let t=!1;s.current||(t=p()),t?e.preventDefault():c();break}}};i.useEffect(()=>e?(window.addEventListener("keydown",u),n&&t(p,3),()=>{window.removeEventListener("keydown",u),s.current=!1}):()=>{s.current=!1},[e])}({visible:V,triggerRef:H,onVisibleChange:I,autoFocus:A,overlayRef:B});const K=()=>c.createElement(p,{ref:B,overlay:L,prefixCls:b,arrow:d}),X=c.cloneElement(M,{className:s(null==(m=M.props)?void 0:m.className,V&&(()=>{const{openClassName:e}=o;return void 0!==e?e:"".concat(b,"-open")})()),ref:a(M)?r(H,n(M)):void 0});let Y=j;return Y||-1===P.indexOf("contextMenu")||(Y=["click"]),c.createElement(e,g({builtinPlacements:O},F,{prefixCls:b,ref:D,popupClassName:s(k,{["".concat(b,"-show-arrow")]:d}),popupStyle:x,action:P,showAction:E,hideAction:Y,popupPlacement:C,popupAlign:y,popupMotion:{motionName:W},popupVisible:V,stretch:(()=>{const{minOverlayWidthMatchTrigger:e,alignPoint:t}=o;return"minOverlayWidthMatchTrigger"in o?e:!t})()?"minWidth":"",popup:"function"==typeof L?K:K(),onOpenChange:I,onPopupClick:e=>{const{onOverlayClick:t}=o;T(!1),t&&t(e)},getPopupContainer:R}),X)});export{d as D};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.