Loading
function(t,e,r){var n=r(477900),i=r(582128),l=r(503698),o=r.n(l),a=r(27232),s=r(505930),u=r(866665),c=r(939249),d=r(497685),_=r(996566),f=r(594061),E=r(188567),I=r(652215),h=r(650583),S=r(792996),m=r(47299);let g=i.memo(function(t){let{width:e,height:r,src:l,gifSrc:g,url:p,format:R,className:F}=t,[G,y]=i.useState(!1),[C,A]=i.useState(!1),T=(0,_.km)((0,d.xo)(p),C),w=T?S.intl.string(S.t["5/NS74"]):S.intl.string(S.t.nIH0v8),D=T?a.StarIcon:s.StarOutlineIcon;function N(t){t.preventDefault(),t.stopPropagation(),y(!0),T?(0,d.Tr)(p):((0,d.wg)({url:p,src:l,gifSrc:g,width:e,height:r,format:R}),E._.dispatch(I.jej.FAVORITE_GIF))}function U(){(0,f.cE)(),A(!0)}return i.useEffect(()=>{if(!G)return;let t=setTimeout(()=>{y(!1)},500);return()=>clearTimeout(t)},[G]),(0,n.jsx)(u.m,{text:w,children:(0,n.jsx)(c.D,{"aria-label":w,ignoreKeyPress:!0,className:o()(F,m.jj,{[m.wH]:T,[m.TV]:G}),onMouseDown:t=>t.preventDefault(),onMouseEnter:U,onFocus:U,onClick:N,onKeyDown:function(t){(t.key===h.dh.ENTER||t.key===h.dh.SPACE)&&N(t)},onDoubleClick:t=>t.preventDefault(),children:(0,n.jsx)(D,{color:"currentColor",className:m.Kk,size:"custom",width:20,height:20})})})});r.d(e,{},{A:g})}