PageSourceSearch

https://www.mecalux.de/o/frontend-js-clay-web/__liferay__/exports/@clayui$popover.js

js mecalux.de collected 2026-09-25 04:23:35 UTC 4,296 bytes, 2 lines download raw bytes

1import{FocusScope as Q,Keys as X,LinkOrButton as Z,MouseSafeArea as ee,Overlay as te,PanelResizer as oe,ClayPortal as N,delegate as ne,doAlign as R,getEllipsisItems as re,getLocatorValue as se,observeRect as w,isMac as le,isIPhone as ae,isIPad as ce,isIOS as ie,isAppleDevice as ue,setElementFullHeight as fe,stack as f,sub as pe,throttle as me,useControlledState as F,useDebounce as de,useFocusManagement as be,FOCUSABLE_ELEMENTS as Ee,useHover as ve,useId as Te,useInteractionFocus as Ie,useFocusVisible as _e,useIsFirstRender as Le,useIsMobileDevice as he,useMousePosition as ye,useNavigation as Pe,isTypeahead as Se,getFocusableList as Me,useOverlayPosition as Oe,usePrevious as Ne}from"../../../frontend-js-clay-web/__liferay__/exports/@clayui$shared.js";import{}from"../../../frontend-js-react-web/__liferay__/exports/classnames.js";import K from"../../../frontend-js-react-web/__liferay__/exports/classnames.js";var _=K;import{Children as ge,Component as He,Fragment as ke,Profiler as De,PureComponent as Be,StrictMode as Ge,Suspense as Ve,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED as je,cloneElement as ze,createContext as Ke,createElement as Ue,createFactory as $e,createRef as We,forwardRef as Ye,isValidElement as qe,lazy as Je,memo as Qe,startTransition as Xe,unstable_act as Ze,useCallback as x,useContext as et,useDebugValue as tt,useDeferredValue as ot,useEffect as c,useId as nt,useImperativeHandle as rt,useInsertionEffect as st,useLayoutEffect as lt,useMemo as at,useReducer as ct,useRef as E,useState as it,useSyncExternalStore as ut,useTransition as ft,version as pt}from"../../../frontend-js-react-web/__liferay__/exports/react.js";import U from"../../../frontend-js-react-web/__liferay__/exports/react.js";var n=U;var $={bottom:["tc","bc"],"bottom-left":["tl","bl"],"bottom-right":["tr","br"],left:["cr","cl"],"left-bottom":["br","bl"],"left-top":["tr","tl"],right:["cl","cr"],"right-bottom":["bl","br"],"right-top":["tl","tr"],top:["bc","tc"],"top-left":["bl","tl"],"top-right":["br","tr"]},L=[0,4],h=[-4,0],y=[4,0],P=[0,-4],W={bctc:P,blbr:y,bltl:P,brbl:h,brtr:P,clcr:y,crcl:h,tcbc:L,tlbl:L,tltr:y,trbr:L,trtl:h},v=n.forwardRef(function({alignPosition:T="bottom",children:C,className:g,closeOnClickOutside:S=!1,containerProps:H={},defaultShow:k=!1,disableScroll:i=!1,displayType:M,header:O,onOffset:D=t=>W[t.join("")],onShowChange:B,show:G,size:V,trigger:s,...j},u){let[t,d]=F({defaultName:"defaultShow",defaultValue:k,handleName:"onShowChange",name:"show",onChange:B,value:G}),l=E(null),o=E(null),p=E(null);u||(u=o);let b=x(()=>{if(u.current&&l.current){let e=$[T];R({offset:D(e),points:e,sourceElement:u.current,targetElement:l.current})}},[T,l,u]);c(()=>{s&&b()},[b,t]),c(()=>{if(s&&l.current)return w(l.current,b)},[b]),c(()=>{!i&&p.current&&t&&p.current.focus(),i&&o.current&&t&&o.current.focus()},[i,o,p,t]),c(()=>{if(S&&s){let e=r=>{let a=[o,p,l],z=(Array.isArray(a)?a:[a]).filter(m=>m.current).map(m=>m.current);r.target instanceof Node&&!z.find(m=>m.contains(r.target))&&d(!1)};return window.addEventListener("mousedown",e),()=>{window.removeEventListener("mousedown",e)}}},[S,s]),c(()=>(t&&f.push(o),()=>{let e=f.indexOf(o);e>=0&&f.splice(e,1)}),[t,o]),c(()=>{let e=a=>{a.key==="Escape"&&f[f.length-1]===o&&(d(!1),l.current?.focus())},r=a=>{o.current&&!o.current.contains(a.relatedTarget)&&d(!1)};if(t)return document.addEventListener("keydown",e),window.addEventListener("blur",r),()=>{document.removeEventListener("keydown",e),window.removeEventListener("blur",r)}},[t]);let I=n.createElement("div",{className:_(g,"popover",`clay-popover-${T}`,{[`popover-${M}`]:M,"popover-width-lg":V==="lg",show:t}),ref:u,...j,tabIndex:i?-1:void 0},n.createElement("div",{className:"arrow"}),n.createElement("div",{className:_({"inline-scroller":!i}),ref:p,tabIndex:i?void 0:-1},O&&n.createElement("div",{className:"popover-header"},O),n.createElement("div",{className:"popover-body"},C)));return s&&(I=n.createElement(n.Fragment,null,n.cloneElement(s,{onClick:e=>{s.props.onClick&&s.props.onClick(e),d(!t)},ref:e=>{if(e){l.current=e;let{ref:r}=s;typeof r=="function"?r(e):r&&(r.current=e)}}}),t&&n.createElement(N,{...H},I))),I});v.displayName="ClayPopover";var A=v;var ht=A;export{v as Popover,ht as default};
2//# sourceMappingURL=@clayui$popover.(NNEUXFHR).js.map

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.