Module 43105

1,186 characters · in 1e428f805ec7b494.js
Dependencies
Source Raw
function(e,t,n){n.d(t,{A:()=>p,h:()=>_});var a=n(627968),r=n(64700),l=n(503698),i=n.n(l),s=n(353795),o=n(312640),c=n(208756),d=n(798618),u=n(916845),m=n(627330),h=n(824078);function p(e){let{title:t,body:n,badge:l,graphic:p,size:_="md",actions:g,textLink:f,gradientColor:E,onRequestClose:x,popoverRef:v,position:b,caretConfig:S,scrollBehavior:I,...k}=e,C=r.useCallback((e,t)=>{x?.(t)},[x]),y=r.useCallback(()=>{x?.("user:explicit")},[x]),M={targetElementRef:k.targetElementRef,shouldShow:k.shouldShow,hasVideo:k.hasVideo,position:b,caretConfig:S,onRequestClose:C,gradientColor:E,scrollBehavior:I,..."edge"===k.alignmentStrategy?{alignmentStrategy:"edge",align:k.align}:{alignmentStrategy:"trigger-center"}};return(0,a.jsx)(o.x,{...M,children:(0,a.jsxs)("div",{ref:v,"data-mana-component":"popover",children:[(0,a.jsx)(u.q,{onClick:y,variant:null!=E?"color-mix":void 0}),null!=p&&(0,a.jsx)("div",{className:i()(h.graphic,{[h[`graphic--${_}`]]:null!=_}),children:(0,a.jsx)(s.v,{...p,aspectRatio:p.aspectRatio??("sm"===_?"2/1":"16/9")})}),(0,a.jsx)(m.D,{title:t,body:n,badge:l,textLink:f}),null!=g&&g.length>0?(0,a.jsx)(c.Z,{actions:g}):null,(0,a.jsx)(d.F,{})]})})}let _=21552==n.j?p:null}