-
-
Save mewisme/7755b24d57b6cd603c589892f40774d1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function () { | |
| let t = S.default.default_reaction.reaction_type.rType; | |
| !e.isDefaultButton && | |
| void 0 !== e.currentIcon && | |
| e.currentIcon.constructor === Number && | |
| o.b.getIconMap()[e.currentIcon] && | |
| (t = e.currentIcon); | |
| const a = o.b.getIconMap()[t]; | |
| let n; | |
| if (e.isDefaultButton) | |
| n = i.a.createElement(y, { | |
| url: S.default.default_reaction.reaction_thumb, | |
| msgId: e.msgId, | |
| }); | |
| else { | |
| let e = { top: "0px", display: "block", margin: "auto" }; | |
| a && | |
| "string" == typeof a && | |
| a.length <= Object(R.a)().R_ICON_MAX_LENGTH && | |
| (n = m.a.getHtmlFromText(a, !1, null, e)); | |
| } | |
| return i.a.createElement( | |
| "div", | |
| { | |
| className: Object(h.a)( | |
| "msg-reaction-icon reaction-shadow react-icon", | |
| Object(_.b)() && "mac", | |
| ), | |
| onMouseOver: u, | |
| onClick: function (n) { | |
| var s, i; | |
| d(n), | |
| l(!1), | |
| null === (s = e.sendReaction) || | |
| void 0 === s || | |
| s.call(e, { rType: t, rIcon: a }), | |
| null === (i = e.onClickQuickReactionButton) || | |
| void 0 === i || | |
| i.call(e); | |
| }, | |
| }, | |
| i.a.createElement( | |
| "span", | |
| { style: { pointerEvents: "none" } }, | |
| n, | |
| ), | |
| ); | |
| })(), | |
| (function () { | |
| let t; | |
| const a = {}; | |
| "inline" === e.showType | |
| ? ((a.left = "auto"), | |
| (a.right = 0), | |
| (a.transform = "translateX(0)"), | |
| (t = (e) => { | |
| e.stopPropagation(), | |
| r.default.throttle( | |
| g.default.logActionPhotoViewer(1830403), | |
| 1e3, | |
| ); | |
| })) | |
| : (!e.isFromMe || (e.isFromMe && n.current > 0)) && | |
| ((a.left = n.current), | |
| (a.right = "auto"), | |
| (a.transform = "translateX(-48%)"), | |
| !e.isFromMe && | |
| n.current < 0 && | |
| ((a.left = "auto"), | |
| (a.right = 0), | |
| (a.transform = "translateX(0)"))); | |
| const o = (t) => { | |
| var a; | |
| null === (a = e.sendReaction) || void 0 === a || a.call(e, t), | |
| l(!1), | |
| "inline" === e.showType && | |
| g.default.logActionPhotoViewer(1830404); | |
| }; | |
| return i.a.createElement( | |
| "div", | |
| { | |
| className: | |
| "emoji-list-wrapper" + | |
| (e.isFromMe ? " me" : "") + | |
| (e.isLinkMessage ? " link-msg" : "") + | |
| (s ? " show-elist" : " hide-elist"), | |
| onClick: (e) => { | |
| e.preventDefault(), e.stopPropagation(); | |
| }, | |
| style: a, | |
| }, | |
| i.a.createElement( | |
| "div", | |
| { className: "reaction-emoji-list", onMouseOver: E }, | |
| S.default.reactionMsgInfo.map((e, a) => | |
| i.a.createElement( | |
| "div", | |
| { | |
| key: "reaction-emoji-" + a, | |
| className: "reaction-emoji-icon", | |
| style: { animationDelay: 20 * (a + 1) + "ms" }, | |
| onClick: (t) => { | |
| d(t), o(e); | |
| }, | |
| onMouseOver: t, | |
| }, | |
| m.a.getHtmlFromText(e.rIcon), | |
| ), | |
| ), | |
| e.reactedList && | |
| e.hasReact && | |
| e.reactedList[0] && | |
| r.default.mapHasItem(e.reactedList[0]) | |
| ? i.a.createElement( | |
| "div", | |
| { | |
| key: | |
| "reaction-emoji-" + | |
| S.default.reactionMsgInfo.length, | |
| className: "reaction-emoji-icon", | |
| style: { | |
| animationDelay: | |
| 20 * (S.default.reactionMsgInfo.length + 1) + | |
| "ms", | |
| marginLeft: 0, | |
| marginRight: 0, | |
| }, | |
| onClick: (e) => { | |
| d(e), o(M); | |
| }, | |
| onMouseOver: t, | |
| }, | |
| i.a.createElement("i", { | |
| className: "fa fa-close clear-react", | |
| }), | |
| ) | |
| : null, | |
| ), | |
| i.a.createElement("div", { | |
| className: "reaction-emoji-bottom", | |
| onMouseOver: f, | |
| }), | |
| ); | |
| })(), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment