Loading
function(e,t,n){"use strict";n.d(t,{A:()=>E,j:()=>g});var l=n(627968),i=n(64700),s=n(503698),r=n.n(s),a=n(312640),o=n(208756),u=n(798618),c=n(916845),d=n(534514),m=n(834730),h=n(353795),p=n(989108);function f(e){let{title:t,body:n}=e;return(0,l.jsxs)("div",{className:p.header,children:[(0,l.jsx)(d.D,{variant:"heading-md/semibold",className:p.title,children:t}),(0,l.jsx)("div",{className:p.headerBody,children:(0,l.jsx)(m.E,{variant:"text-sm/normal",color:"none",children:n})})]})}function g(e){let{title:t,body:n,graphic:s,size:d="md",actions:m,gradientColor:g,onRequestClose:E,position:A,caretConfig:C,scrollBehavior:x,showCloseButton:I=!0,isCaretHoverable:_=!1,shouldTrapFocus:S=!1,returnRef:y,onNudgeChange:v,...T}=e,[N,j]=i.useState(A??"top");i.useEffect(()=>{null!=A&&j(A)},[A]);let b=i.useMemo(()=>({align:C?.align??"center",customOffset:C?.customOffset}),[C]),R=i.useCallback(()=>{E?.()},[E]),P=i.useCallback(e=>{E?.(e)},[E]),L=i.useCallback(e=>{j(e)},[]),M=_?p.caretHoverable:void 0,O={targetElementRef:T.targetElementRef,shouldShow:T.shouldShow,hasVideo:T.hasVideo,position:N,caretConfig:b,onRequestClose:R,gradientColor:g,onPositionChange:L,onNudgeChange:v,scrollBehavior:x,modal:S,returnRef:y,gradientOffsetBottom:0,experimental_ignoreModalClicks:!1,..."edge"===T.alignmentStrategy?{alignmentStrategy:"edge",align:T.align}:{alignmentStrategy:"trigger-center"}};return(0,l.jsx)(a.x,{...O,children:(0,l.jsxs)("div",{"data-mana-component":"popover",children:[I&&(0,l.jsx)(c.q,{onClick:P,variant:null!=g?"color-mix":void 0}),null!=s&&(0,l.jsx)("div",{className:r()(p.graphic,{[p[`graphic--${d}`]]:null!=d}),children:(0,l.jsx)(h.v,{...s,aspectRatio:s.aspectRatio??("sm"===d?"2/1":"16/9")})}),(0,l.jsx)(f,{title:t,body:n}),null!=m&&m.length>0?(0,l.jsx)(o.Z,{actions:m,className:p.actionBar}):null,null!=b&&(0,l.jsx)(u.F,{className:M})]})})}let E=g}