Module 650588

1,633 characters · in 6c84c70b226fa2cf.js
Dependencies
Required by (2)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{A:()=>y});var l=n(627968),r=n(64700),i=n(503698),a=n.n(i),s=n(661531),o=n(834730),u=n(922016),c=n(305866),d=n(939249),p=n(7807),m=n(807348),h=n(277192),A=n(375708),C=n(139599);let E=[54,8,8,8];function y(e){let{onSelect:t,sound:n}=e,[i,y]=r.useState(!1),P=r.useRef(null),S=a()(C.Qq,C.Ow);function _(e){y(!1),t?.(e)}let f=e=>(0,l.jsxs)("div",{className:C.Ry,children:[(0,l.jsxs)("div",{className:C.__invalid_customGiftHeaderText,children:[(0,l.jsx)(o.E,{variant:"text-md/bold",children:A.intl.string(A.t.aThJz8)}),(0,l.jsx)(o.E,{variant:"text-sm/normal",children:A.intl.string(A.t.stGFA3)})]}),(0,l.jsx)("div",{className:C.$H,children:e})]});return(0,l.jsx)(u.Y,{targetElementRef:P,shouldShow:i,position:"bottom",align:"left",onRequestClose:()=>y(!1),renderPopout:e=>{let{closePopout:t}=e;return(0,l.jsx)(c.l,{children:(0,l.jsx)(h.A,{suppressPlaySound:!0,shouldShowLockedSounds:!1,guildId:null,channel:null,onClose:t,onSelect:_,analyticsSource:"gift soundboard",soundButtonOverlay:m.If.ADD,listPadding:E,renderHeader:f,defaultSoundsOnly:!0})})},children:()=>(0,l.jsx)(d.D,{className:a()(C.kL,C.Ow),onClick:()=>y(!0),innerRef:P,children:null==n?(0,l.jsxs)("div",{className:C.hQ,children:[(0,l.jsx)(p.J,{size:"custom",color:s.A.colors.ICON_STRONG,className:C.tc,width:14,height:14}),(0,l.jsx)(o.E,{className:S,variant:"text-sm/semibold",lineClamp:1,children:A.intl.string(A.t.aThJz8)})]}):(0,l.jsxs)("div",{className:C.hQ,children:[(0,l.jsx)(o.E,{className:S,variant:"text-sm/semibold",lineClamp:1,children:n.emojiName}),(0,l.jsx)(o.E,{className:S,variant:"text-sm/semibold",lineClamp:1,children:n.name})]})})})}}