Module 650588

1,633 characters · in a51634e1ddf37c74.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),a=n(64700),i=n(503698),r=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(334348),C=n(375708),A=n(139599);let E=[54,8,8,8];function y(e){let{onSelect:t,sound:n}=e,[i,y]=a.useState(!1),P=a.useRef(null),S=r()(A.Qq,A.Ow);function _(e){y(!1),t?.(e)}let T=e=>(0,l.jsxs)("div",{className:A.Ry,children:[(0,l.jsxs)("div",{className:A.__invalid_customGiftHeaderText,children:[(0,l.jsx)(o.E,{variant:"text-md/bold",children:C.intl.string(C.t.aThJz8)}),(0,l.jsx)(o.E,{variant:"text-sm/normal",children:C.intl.string(C.t.stGFA3)})]}),(0,l.jsx)("div",{className:A.$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:T,defaultSoundsOnly:!0})})},children:()=>(0,l.jsx)(d.D,{className:r()(A.kL,A.Ow),onClick:()=>y(!0),innerRef:P,children:null==n?(0,l.jsxs)("div",{className:A.hQ,children:[(0,l.jsx)(p.J,{size:"custom",color:s.A.colors.ICON_STRONG,className:A.tc,width:14,height:14}),(0,l.jsx)(o.E,{className:S,variant:"text-sm/semibold",lineClamp:1,children:C.intl.string(C.t.aThJz8)})]}):(0,l.jsxs)("div",{className:A.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})]})})})}}