Module 43105

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