MercuryLWARenderer",["MercuryConfig","MessengerLightweightActionUtils","MessengerTextWithEntities.react","TextWithEntities.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b;c("MercuryConfig").MessengerNewEmojiGK?b=i.jsx(c("MessengerTextWithEntities.react"),{renderEmoji:!0,renderEmoticons:!0,text:d("MessengerLightweightActionUtils").getCollapsedLWAText(a)}):b=i.jsx(c("TextWithEntities.react"),{renderEmoji:!0,renderEmoticons:!0,text:d("MessengerLightweightActionUtils").getCollapsedLWAText(a)});return i.jsx("span",{children:b})}a.displayName=a.name+" [from "+f.id+"]";g.renderCollapsedText=a}),98);
-----
MessengerLogMessage.react",["cx","ix","Image.react","MNCommerceLogMessageUtils","MercuryLWARenderer","MercuryXMATRenderer","MessengerLightweightActionUtils","MessengerLogMessageBody.react","MessengerLogMessageRenderer.bs","MessengerMessage.bs","convertMIGColorToFIGColor","joinClasses","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react"));a=j;var l=a.useEffect,m=a.useState,n=i("86913");function o(a){var b=a.message,e=a.thread;a=a.viewer;var f=m(null),g=f[0],h=f[1];l(function(){b.log_message_type==="log:subscribe"&&d("MessengerLogMessageRenderer.bs").renderSubscribeMessage(b,h)},[b]);if(g!=null)return g;return d("MessengerLightweightActionUtils").isLWAMessage(b)?d("MercuryLWARenderer").renderCollapsedText(b):k.jsx(c("MessengerLogMessageBody.react"),{message:b,viewer:a,thread:e})}o.displayName=o.name+" [from "+f.id+"]";b=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var e=b.prototype;e.render=function(){var a=null,b=this.$1();if(b==null&&this.props.message.log_message_type!=="log:orion"){var e=c("convertMIGColorToFIGColor")(this.props.thread&&this.props.thread.solid_color);b=d("MercuryXMATRenderer").renderText(e,this.props.message,this.props.isLastOfType,this.props.onImageLoad,this.props.isPageMessage,this.props.viewer,this.props.defaultCurrency)}return k.jsxs("div",{className:this.$2(),children:[this.$3(),k.jsx("i",{className:"_uwa"}),k.jsx("span",{className:"_3oh-",children:b?b:k.jsx(o,{message:this.props.message,viewer:this.props.viewer,thread:this.props.thread})}),a]})};e.$1=function(){var a=this.props.message;if(c("MNCommerceLogMessageUtils").isCommercePageAdminMessage(a))return c("MNCommerceLogMessageUtils").getCommercePageManage(a,!0);return c("MNCommerceLogMessageUtils").isThreadResurrectionXMAT(a)?c("MNCommerceLogMessageUtils").getThreadResurrectionManage(a):null};e.$3=function(){return!d("MessengerMessage.bs").hasError(this.props.message)?null:k.jsx(c("Image.react"),{className:"_41-9",src:n})};e.$2=function(){var a,b=this.props.message,d=b.log_message_type==="log:unsubscribe"&&b.log_message_data.removed_participants.indexOf(b.author)!==-1,e=this.props.viewer;switch(b.log_message_type){case"log:subscribe":a="_uwb";break;case"log:unsubscribe":a=d?"_uwc":"_uwe";break;case"log:phone-call":a=b.log_message_data.caller.indexOf(e)!==-1?"_uwf":"_uwg";break;case"log:video-call":a=b.log_message_data.caller.indexOf(e)!==-1?"_uwh":"_uwi";break;case"log:thread-name":a="_uwj";break;case"log:thread-image":a="_uwk";break;case"log:error-msg":a="_uwl";break;case"log:live-listen":a="_uwm";break;case"log:wallpaper":a="_uwn";break;case"log:orion":a="_uwo";break;case"log:switch":a="_uwp";break;case"log:page-reply":a="_uwq";break}return c("joinClasses")("_497p"+((b.log_message_type==="log:phone-call"||b.log_message_type==="log:video-call")&&!b.log_message_data.answered?" _3no3":"")+(b.log_message_data&&b.log_message_data.message_type==="instant_game_update"?" _11es":""),a)};return b}(k.PureComponent);g["default"]=b}),98);
-----
MessageList.react",["cx","Actor","CurrentUser","MercuryIDs","MercuryMessageGroup","MercuryShareAttachmentRenderLocations","MessengerDomIDs.bs","MessengerLightweightActionUtils","MessengerMessage.bs","MessengerObjectAssociationType","MessengerParticipantUtils.bs","MessengerPresenceProvider.bs","ReactDOM_DEPRECATED","cr:1140097","cr:832269","immutable","nullthrows","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k=2,l=1e3*60*60,m=6,n=function(a){var b;b=(b=a)!=null?(b=b.log_message_data)!=null?b.message_type:b:b;switch(b){case"group_poll":return(b=a)!=null?(b=b.log_message_data)!=null?(b=b.untypedData)!=null?b.question_id:b:b:b;case"instant_game_update":return(b=a)!=null?(b=b.log_message_data)!=null?(b=b.untypedData)!=null?b.game_id:b:b:b;case"lightweight_event_create":case"lightweight_event_update":case"lightweight_event_delete":case"lightweight_event_update_time":case"lightweight_event_update_title":case"lightweight_event_update_location":case"lightweight_event_notify_before_event":case"lightweight_event_notify":case"lightweight_event_rsvp":return(b=a)!=null?(b=b.log_message_data)!=null?(b=b.untypedData)!=null?b.event_id:b:b:b;case"confirm_friend_request":b=((b=a)!=null?(b=b.log_message_data)!=null?(b=b.untypedData)!=null?b.friend_request_subtype:b:b:b)||((b=a)!=null?(b=b.log_message_data)!=null?(b=b.untypedData)!=null?b.subtype:b:b:b);return!b||b.toLowerCase()!=="icebreaker"?null:q(a);case"messenger_icebreaker_vote_cast":return q(a);default:return null}},o=function(a){return d("MessengerLightweightActionUtils").isLWAMessage(a)?"lwa":null};a=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,c,d;for(var e=arguments.length,f=new Array(e),g=0;ge&&(e=g.timestamp);g=a.messages.filter(function(a){return a.timestamp<=e});var i=a.messages.filter(function(a){return a.timestamp>e});g=d("MercuryMessageGroup").calculateMessageGroups(g,c);c=d("MercuryMessageGroup").calculateMessageGroups(i,c);i=i.filter(function(a){return a.log_message_type==null}).size;return{messageGroups:[].concat(g,c),prevMessages:f,newMessagesGroupIndex:g.length,newMessagesCountForDisplay:i,lastReadTimestamp:e}}else return{messageGroups:d("MercuryMessageGroup").calculateMessageGroups(a.messages,a.location),prevMessages:a.messages};else return null};var f=e.prototype;f.render=function(){var a=this,e=this.props,f=e.DateBreak,g=e.forGameChat,h=e.location,i=e.selectedMessageId,q=e.MessageGroup,r=e.CollapsedLogMessageGroup,w=[],x=[];e=this.props.thread&&this.props.thread.solid_color;var y=e?{backgroundColor:e}:null,z=this.state.activeMessageID,A=this.state.messageGroups,B=A.length,C=this.props.readReceipts;e=C.last();var D=e?e.watermark:0,E=d("MercuryIDs").getParticipantIDFromUserID(this.props.viewer),F={};for(e=this.props.messages.size-1;e>=0;e--){var G=this.props.messages.get(e),H=n(G)||o(G);H&&!F[H]&&(F[H]=G.message_id)}var I=function(n){var I=n>0?A[n-1]:null;I=I&&I.length>0?I[I.length-1]:null;var K=A[n],L=K[0],M=K[K.length-1],N=!1;b("cr:832269")!=null&&n>0&&n===a.state.newMessagesGroupIndex&&a.state.newMessagesCountForDisplay>0&&w.push(j.jsx("div",{ref:"newMessageDivider",children:j.jsx(b("cr:832269"),{newMessagesCount:a.state.newMessagesCountForDisplay})},"new-message-divider"));if(!I||L.timestamp-I.timestamp>l){N=!0;I=j.jsx(f,{date:new Date(L.timestamp),ref:"db:"+L.message_id},"db:"+L.message_id);x.length===0&&w.push(I)}I=o(L);if(I&&F[I]!==L.message_id){I=a.$1(L,F);w.push(I);return"continue"}if(L.action_type=="ma-type:log-message"){I=(H=L)!=null?(H=H.log_message_data)!=null?H.message_type:H:H;var O=(G=L)!=null?(G=G.log_message_data)!=null?(G=G.untypedData)!=null?G.friend_request_subtype:G:G:G,P=I==="parties_presence",Q=I==="instant_game_update",R=I==="group_poll";O=I==="messenger_icebreaker_vote_cast"||I==="confirm_friend_request"&&O&&O.toLowerCase()==="icebreaker";var S=["lightweight_event_create","lightweight_event_update","lightweight_event_delete","lightweight_event_update_time","lightweight_event_update_title","lightweight_event_update_location","lightweight_event_notify_before_event","lightweight_event_notify","lightweight_event_rsvp"].includes(I);if((h===d("MercuryShareAttachmentRenderLocations").CHAT||h===d("MercuryShareAttachmentRenderLocations").MESSENGER)&&(L.log_message_type==="log:video-call"||L.log_message_type==="log:phone-call"||I==="messenger_call_log")){I=a.$2(L,E,A,B,n,C,D,M,F,i);w.push(I)}else{I=a.$3(L,F);e=L.message_id;!Q&&!R&&!S&&!O&&x.push(I);if(P)return"continue";(x.length===K.length||Q||R||S||O)&&(a.$4(x,w,e,y,r),x=[]);(Q||R||S||O)&&w.push(I)}return"continue"}K=c("immutable").List(K);var T=s(A,B,n,F),U=!u(C,K,T),V=t(D,M),W=v(a.props.deliveryTimestamp,M),X=K.first().author,Y=d("MessengerMessage.bs").getPersona(M),Z=E===L.author;P=Z?0:m+k;var $=a.props.maxBubbleWidth?a.props.maxBubbleWidth-P:null;w.push(j.jsx(d("MessengerPresenceProvider.bs").jsComponent,{subscribeToIDs:X?[X]:null,children:function(b){return j.jsx(q,{activeMessageID:p(z,K),author:X,deliveryTimestamp:W,forGameChat:g,hasDateBreak:N,isCanonical:a.props.isCanonical,isFromViewer:Z,isPageMessage:a.props.isPageMessage,isLastMessageGroup:n===B-1,isOnline:X?d("MessengerParticipantUtils.bs").has(b,X):!1,lastReadTimestamp:V,maxBubbleWidth:$,messages:K,nextTimestamp:T,onReactionSwap:a.props.onReactionSwap,onAttachmentLoad:a.props.onAttachmentLoad,onMessageDeselect:a.$5,onMessageSelect:a.$6,onStickerClick:a.props.onStickerClick,onReplyToMessage:a.props.onReplyToMessage,pageID:a.props.isPageMessage===!0?a.props.viewer:null,persona:Y,readReceipts:U?C:c("immutable").OrderedMap(),ref:function(b){return a.refs["mg:"+L.message_id]=b},thread:a.props.thread,threadID:a.props.threadID,scrollToRepliedMessage:a.props.scrollToRepliedMessage,selectedMessageId:i,rolesIDWithColor:a.props.rolesIDWithColor},"mg:"+L.message_id)}},"pp:"+L.message_id))};for(var J=0;J1?b.push(j.jsx(e,{style:d,children:a},"mg:"+c)):b.push(j.jsx("div",{children:a},"mg:"+c)))};f.$2=function(a,b,e,f,g,h,i,k,l,m){var n=this,o,p,q=this.props.MessageGroup;p=((p=a)!=null?(p=p.log_message_data)!=null?p.untypedData:p:p)||{};o=(o=a)!=null?(o=o.log_message_data)!=null?o.message_type:o:o;if(o==="messenger_call_log"){o={message_type:"messenger_call_log",call_capture_attachments:p.call_capture_attachments,caller:d("MercuryIDs").getParticipantIDFromUserID(c("nullthrows")(p.caller_id,"caller id")),callee:d("MercuryIDs").getParticipantIDFromUserID(c("nullthrows")(p.callee_id,"callee id")),server_info_data:p.server_info,thread_id:a.thread_fbid,answered:p.event!=="missed_call",log_message_type:p.video?"log:video-call":"log:phone-call",event:p.event,added_participants:null,removed_participants:null,untypedData:null,image:null,name:null};a=babelHelpers["extends"]({},a,{log_message_data:o})}p={attach_type:"share",share:{style_list:["rtc_call_log","fallback"],log_message_body:a.log_message_body,log_message_data:a.log_message_data,log_message_type:a.log_message_type,timestamp:a.timestamp}};o=babelHelpers["extends"]({},a,{attachments:[p],body:""});var r=c("immutable").List([o]),w=s(e,f,g,l),x=!u(h,r,w),y=t(i,k),z=v(this.props.deliveryTimestamp,k),A=r.first().author;return j.jsx(d("MessengerPresenceProvider.bs").jsComponent,{subscribeToIDs:A?[A]:null,children:function(e){return j.jsx(q,{author:r.first().author,deliveryTimestamp:z,forGameChat:n.props.forGameChat,isCanonical:n.props.isCanonical,isFromViewer:b===a.author,isOnline:A?d("MessengerParticipantUtils.bs").has(e,A):!1,isPageMessage:n.props.isPageMessage,lastReadTimestamp:y,maxBubbleWidth:n.props.maxBubbleWidth,messages:r,nextTimestamp:w,onAttachmentLoad:n.props.onAttachmentLoad,onMessageDeselect:n.$5,onMessageSelect:n.$6,onStickerClick:n.props.onStickerClick,readReceipts:x?h:c("immutable").OrderedMap(),selectedMessageId:m,thread:n.props.thread,threadID:n.props.threadID})}},a.message_id)};f.$3=function(a,b){var c=this.props.LogMessage,e=n(a);b=e?b[e]:null;return a.log_message_type!=="log:error-msg"?j.jsx(c,{className:this.props.location===d("MercuryShareAttachmentRenderLocations").CHAT?"_5w0o":null,onLogMessageExpanded:this.props.onAttachmentLoad,loadMoreMessages:this.props.loadMoreMessages,message:a,onImageLoad:this.props.onAttachmentLoad,viewer:this.props.viewer,isPageMessage:this.props.isPageMessage,thread:this.props.thread,isLastOfType:b===a.message_id},a.message_id):null};f.$1=function(a,b){b=b[c("nullthrows")(o(a),"other group id first message")];var e=this.props.LogMessage;return j.jsx(e,{className:this.props.location===d("MercuryShareAttachmentRenderLocations").CHAT?"_5w0o":null,onLogMessageExpanded:this.props.onAttachmentLoad,loadMoreMessages:this.props.loadMoreMessages,message:a,onImageLoad:this.props.onAttachmentLoad,viewer:this.props.viewer,thread:this.props.thread,isLastOfType:b===a.message_id},a.message_id)};return e}(j.PureComponent);function p(a,b){return b.find(function(b){return b.message_id===a})?a:null}function q(a){return(a=a)!=null?(a=a.log_message_data)!=null?(a=a.untypedData)!=null?a.icebreaker_type:a:a:a}function r(a){var b=(a==null?void 0:a.action_type)==="ma-type:log-message";a=(a==null?void 0:(a=a.log_message_data)==null?void 0:a.message_type)==="messenger_call_log";return b&&!a}function s(a,b,c,d){if(c>=b-1)return Infinity;var e=a[c+1][0],f=o(e);if(f&&d[f]!==e.message_id||r(e))return s(a,b,c+1,d);else return e.timestamp}function t(a,b){return b.timestamp>a?a:Infinity}function u(a,b,c){return b.isEmpty()||!a.isEmpty()&&(a.last().action=c)}function v(a,b){return b.timestamp>a?a:Infinity}g["default"]=a}),98);
-----
MercuryMessageGroup",["MercuryAttachmentLayoutTypeHelper","MercuryShareAttachmentRenderLocations","MercuryThreadlistConstants","MessengerLightweightActionUtils","MessengerMessage.bs","enumerate"],(function(a,b,c,d,e,f){"use strict";var g={calculateMessageGroups:function(a,c){var d=[],e=null,f={value:null};a=b("enumerate")(a);var h;while(!(h=a.next()).done){var i=g.canAppendMessageToLastGroup(f.value,h.value,c);i||(e=[],d.push(e));e.push(h.value);f=h}return d},canAppendMessageToLastGroup:function(a,c,d){var e=b("MercuryThreadlistConstants").GROUPING_THRESHOLD;if(!a||h(a,d)||h(c,d)||a.author!=c.author||a.timestampb("MercuryThreadlistConstants").MAX_CHARS_BEFORE_BREAK)}function i(a){a=a.attachments[0];return!a||a.attach_type==="sticker"||a.attach_type==="animated_image"||b("MercuryAttachmentLayoutTypeHelper").isAdminType(a)}e.exports=g}),null);
-----
MessengerLightweightActionUtils",[],(function(a,b,c,d,e,f){"use strict";function g(a){return!!(a&&a.attach_type==="share"&&a.share&&a.share.target&&a.share.target.lwa_type)}function a(a){a=a==null?void 0:a.attachments;return!!(a&&a.length===1&&g(a[0]))}function b(a){return a.attachments[0].share.title}function c(a){return a[0].share.title}f.isLWAAttachment=g;f.isLWAMessage=a;f.getCollapsedLWAText=b;f.getLWASnippetText=c}),66);
-----
MercuryAttachmentSnippetRenderer",["fbt","CurrentUser","MercuryAttachmentSnippetType","MercuryAudioType","MercuryGiftSnippetRenderer","MessengerLightweightActionUtils","P2PSnippetStringUtils","StickerConstants","react"],(function(a,b,c,d,e,f,g){"use strict";var h;h||b("react");var i={getAttachmentSnippetType:function(a){if(i._hasOnlyPhotos(a))return b("MercuryAttachmentSnippetType").PHOTO;if(i._hasOnlyAnimatedImages(a))return b("MercuryAttachmentSnippetType").GIF;if(i._hasOnlyVideo(a))return b("MercuryAttachmentSnippetType").VIDEO;if(i._hasAudioClip(a))return b("MercuryAttachmentSnippetType").AUDIO_CLIP;if(i._hasLikeSticker(a))return b("MercuryAttachmentSnippetType").LIKE_STICKER;if(i._hasSticker(a))return b("MercuryAttachmentSnippetType").STICKER;if(i._hasThirdPartySticker(a))return b("MercuryAttachmentSnippetType").THIRDPARTYSTICKER;if(i._hasShare(a))return b("MercuryAttachmentSnippetType").SHARE;if(i._hasGift(a))return b("MercuryAttachmentSnippetType").GIFT;if(i._hasError(a))return b("MercuryAttachmentSnippetType").ERROR;return i._hasFile(a)?b("MercuryAttachmentSnippetType").FILE:b("MercuryAttachmentSnippetType").MIXED},renderAttachmentSnippetText:function(a,c,d,e){switch(a){case b("MercuryAttachmentSnippetType").PHOTO:return i._renderPhotoAttachmentSnippetText(c,d,i._getPhotoAttachments(e));case b("MercuryAttachmentSnippetType").GIF:return i._renderAnimatedImagesAttachmentSnippetText(c,d,i._getAnimatedImageAttachments(e));case b("MercuryAttachmentSnippetType").VIDEO:return c?g._("u4f60u53d1u9001u4e86u89c6u9891u3002"):g._("{sender name}u53d1u9001u4e86u89c6u9891u3002",[g._param("sender name",d)]);case b("MercuryAttachmentSnippetType").AUDIO_CLIP:return c?g._("u4f60u53d1u9001u4e86u8bedu97f3u6d88u606fu3002"):g._("{name}u53d1u9001u4e86u4e00u6761u8bedu97f3u6d88u606fu3002",[g._param("name",d)]);case b("MercuryAttachmentSnippetType").STICKER:case b("MercuryAttachmentSnippetType").LIKE_STICKER:case b("MercuryAttachmentSnippetType").THIRDPARTYSTICKER:return c?g._("u4f60u53d1u4e86u4e00u4e2au8d34u56fe"):g._("{name}u53d1u6765u4e86u8d34u56fe",[g._param("name",d)]);case b("MercuryAttachmentSnippetType").SHARE:if(e&&i._hasP2PPayment(e))return i._renderP2PPaymentSnippetText(e[0]);if(e&&i._hasP2PPaymentRequest(e))return i._renderP2PPaymentRequestSnippetText(e[0]);if(e&&i._hasBusinessMessage(e))return i._renderBusinessMessageSnippetText(e[0],d);if(e&&i._hasLocation(e))return c?g._("u4f60u53d1u9001u4e86u4f4du7f6eu4fe1u606fu3002"):g._("{sender name}u53d1u9001u4e86u4f4du7f6eu4fe1u606fu3002",[g._param("sender name",d)]);if(e&&i._hasLiveLocation(e))return c?g._("u4f60u53d1u9001u4e86u5b9eu65f6u4f4du7f6eu3002"):g._("{sender name}u53d1u9001u4e86u5b9eu65f6u4f4du7f6eu3002",[g._param("sender name",d)]);if(e&&i._hasMontageDirect(e)){a=e[0];a=(a=a)!=null?(a=a.share)!=null?(a=a.media)!=null?a.source:a:a:a;return c?a?g._("u4f60u53d1u4e86u89c6u9891u3002"):g._("u4f60u53d1u4e86u4e00u5f20u7167u7247"):a?g._("u67e5u770b{sender name}u7684u5373u9605u89c6u9891u3002",[g._param("sender name",d)]):g._("u67e5u770b{sender name}u7684u5373u9605u7167u7247u3002",[g._param("sender name",d)])}if(e&&e.length===1&&b("MessengerLightweightActionUtils").isLWAAttachment(e[0]))return b("MessengerLightweightActionUtils").getLWASnippetText(e);return e&&e.length===1&&i._isGloballyRemovedMessageAttachment(e[0])?e[0].share.description:c?g._("u4f60u53d1u9001u4e86u94feu63a5"):g._("{sender name}u53d1u9001u4e86u94feu63a5",[g._param("sender name",d)]);case b("MercuryAttachmentSnippetType").GIFT:return b("MercuryGiftSnippetRenderer").renderText(c,d);case b("MercuryAttachmentSnippetType").FILE:return c?g._("u4f60u53d1u9001u4e86u9644u4ef6u3002"):g._("{sender name}u53d1u9001u4e86u9644u4ef6u3002",[g._param("sender name",d)]);case b("MercuryAttachmentSnippetType").MIXED:return c?g._("u4f60u53d1u9001u4e86u9644u4ef6u3002"):g._("{sender name}u53d1u9001u4e86u4e00u4e9bu9644u4ef6u3002",[g._param("sender name",d)]);case b("MercuryAttachmentSnippetType").ERROR:return c?g._("u4f60u53d1u9001u4e86u9644u4ef6u3002"):g._("{sender name}u53d1u9001u4e86u9644u4ef6u3002",[g._param("sender name",d)]);default:return""}},_isGloballyRemovedMessageAttachment:function(a){return a.share&&a.share.style_list&&a.share.style_list.includes("globally_deleted_message_placeholder")},_hasOnlyPhotos:function(a){return i._getPhotoAttachments(a).length===a.length},_hasThirdPartySticker:function(a){return a.length===1&&a[0].attach_type==="third_party_sticker"},_hasOnlyAnimatedImages:function(a){return i._getAnimatedImageAttachments(a).length===a.length},_hasOnlyVideo:function(a){return a.length===1&&a[0].attach_type==="video"},_hasAudioClip:function(a){var c=a[0].metadata&&a[0].metadata.type;return a.length===1&&(c===b("MercuryAudioType").AudioClip||c===b("MercuryAudioType").VoiceMessageWithTranscript)},_hasBusinessMessage:function(a){return i._hasSingleShareAttachmentOfStyle(a,"business_message_items")},_hasSticker:function(a){return a.length===1&&a[0].attach_type==="sticker"},_hasLikeSticker:function(a){if(a.length<1)return!1;var c=a[0].metadata&&a[0].metadata.stickerID;return a.length===1&&(c==b("StickerConstants").LIKE_STICKER_ID||c==b("StickerConstants").HOT_LIKE_SMALL_STICKER_ID||c==b("StickerConstants").HOT_LIKE_MEDIUM_STICKER_ID||c==b("StickerConstants").HOT_LIKE_LARGE_STICKER_ID)},_hasLocation:function(a){return i._hasSingleShareAttachmentOfStyle(a,"message_location")},_hasLiveLocation:function(a){return i._hasSingleShareAttachmentOfStyle(a,"message_live_location")},_hasMontageDirect:function(a){return i._hasSingleShareAttachmentOfStyle(a,"montage_direct")},_hasP2PPayment:function(a){return i._hasSingleShareAttachmentOfStyle(a,"orion")},_hasP2PPaymentRequest:function(a){return i._hasSingleShareAttachmentOfStyle(a,"orion_request")},_hasSingleShareAttachmentOfStyle:function(a,b){return a.length===1&&a[0].attach_type==="share"&&a[0].share&&a[0].share.style_list.indexOf(b)>=0},_hasShare:function(a){return a.length===1&&a[0].attach_type==="share"},_hasError:function(a){return a.length===1&&a[0].attach_type==="error"},_hasGift:function(a){return a.length===1&&a[0].attach_type==="gift"},_hasFile:function(a){return a.length===1&&a[0].attach_type==="file"},_getPhotoAttachments:function(a){return!a?[]:a.filter(function(a){return a.attach_type==="photo"})},_getAnimatedImageAttachments:function(a){return!a?[]:a.filter(function(a){return a.attach_type==="animated_image"})},_renderPhotoAttachmentSnippetText:function(a,b,c){if(c.length===1)if(a)return g._("u4f60u53d1u9001u4e86u4e00u5f20u7167u7247u3002");else return g._("{name}u53d1u9001u4e86u7167u7247",[g._param("name",b)]);else if(a)return g._({"*":"u4f60u53d1u9001u4e86{num_photos}u5f20u7167u7247u3002"},[g._param("num_photos",c.length,[0])]);else return g._({"*":"{name}u53d1u9001u4e86{num_photos}u5f20u7167u7247u3002"},[g._param("num_photos",c.length,[0]),g._param("name",b)])},_renderAnimatedImagesAttachmentSnippetText:function(a,b,c){if(c.length===1)if(a)return g._("u4f60u53d1u9001u4e86u4e00u5f20u52a8u56feu3002");else return g._("{name}u53d1u9001u4e86u4e00u5f20u52a8u56feu3002",[g._param("name",b)]);else if(a)return g._("u4f60u53d1u9001u4e86{num_animated_images}u5f20u52a8u56feu3002",[g._param("num_animated_images",c.length)]);else return g._("{name}u53d1u9001u4e86{num_animated_images}u5f20u52a8u56feu3002",[g._param("name",b),g._param("num_animated_images",c.length)])},_renderBusinessMessageSnippetText:function(a,b){a=a.share.target;a=a&&a.message||g._("{sender name}u53d1u9001u4e86u9644u4ef6u3002",[g._param("sender name",b)]);return a},_renderP2PPaymentSnippetText:function(a){a=a.share.target;return i.renderP2PPaymentSnippetText(b("CurrentUser").getID()===a.sender.id,a.sender.name,a.amountWithSymbol,a.status,b("CurrentUser").getID()===a.receiver.id,a.receiver.name)},_renderP2PPaymentRequestSnippetText:function(a){a=a.share.target;return i.renderP2PPaymentRequestSnippetText(b("CurrentUser").getID()===a.requester.id,a.requester.name,a.amountWithSymbol,a.currentStatus,b("CurrentUser").getID()===a.requestee.id,a.requestee.name)},renderP2PPaymentSnippetText:function(a,c,d,e,f,g){return b("P2PSnippetStringUtils").getTransferSnippetByStatus(e,a,f||!1,c||"",g||"",d)},renderP2PPaymentRequestSnippetText:function(a,c,d,e,f,g){return b("P2PSnippetStringUtils").getRequestSnippetByStatus(e,a,f||!1,c||"",g||"",d)}};e.exports=i}),130);
-----
MercuryLWARenderer",["MercuryConfig","MessengerLightweightActionUtils","MessengerTextWithEntities.react","TextWithEntities.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b;c("MercuryConfig").MessengerNewEmojiGK?b=h.jsx(c("MessengerTextWithEntities.react"),{renderEmoji:!0,renderEmoticons:!0,text:d("MessengerLightweightActionUtils").getCollapsedLWAText(a)}):b=h.jsx(c("TextWithEntities.react"),{renderEmoji:!0,renderEmoticons:!0,text:d("MessengerLightweightActionUtils").getCollapsedLWAText(a)});return h.jsx("span",{children:b})}a.displayName=a.name+" [from "+f.id+"]";g.renderCollapsedText=a}),98);
-----
MessengerLogMessage.react",["cx","ix","Image.react","MNCommerceLogMessageUtils","MercuryLWARenderer","MercuryXMATRenderer","MessengerLightweightActionUtils","MessengerLogMessageBody.react","MessengerLogMessageRenderer.bs","MessengerMessage.bs","WorkChatRedesignedMessageListCheck.bs","convertMIGColorToFIGColor","joinClasses","prop-types","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");a=d("react");var k=a.useEffect,l=a.useState,m=i("86913");function n(a){var b=a.message,e=a.thread;a=a.viewer;var f=l(null),g=f[0],h=f[1];k(function(){b.log_message_type==="log:subscribe"&&d("MessengerLogMessageRenderer.bs").renderSubscribeMessage(b,h)},[b]);if(g!=null)return g;return d("MessengerLightweightActionUtils").isLWAMessage(b)?d("MercuryLWARenderer").renderCollapsedText(b):j.jsx(c("MessengerLogMessageBody.react"),{message:b,viewer:a,thread:e})}n.displayName=n.name+" [from "+f.id+"]";b=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var e=b.prototype;e.render=function(){var a=null,b=this.$1();if(b==null&&this.props.message.log_message_type!=="log:orion"){var e=c("convertMIGColorToFIGColor")(this.props.thread&&this.props.thread.solid_color);b=d("MercuryXMATRenderer").renderText(e,this.props.message,this.props.isLastOfType,this.props.onImageLoad,this.props.isPageMessage,this.props.viewer,this.props.defaultCurrency)}return j.jsxs("div",{className:this.$2(),children:[this.$3(),j.jsx("i",{className:"_uwa"+(d("WorkChatRedesignedMessageListCheck.bs").enabled?" _8lms":"")}),j.jsx("span",{className:"_3oh-",children:b?b:j.jsx(n,{message:this.props.message,viewer:this.props.viewer,thread:this.props.thread})}),a]})};e.$1=function(){var a=this.props.message;if(c("MNCommerceLogMessageUtils").isCommercePageAdminMessage(a))return c("MNCommerceLogMessageUtils").getCommercePageManage(a,!0);return c("MNCommerceLogMessageUtils").isThreadResurrectionXMAT(a)?c("MNCommerceLogMessageUtils").getThreadResurrectionManage(a):null};e.$3=function(){return!d("MessengerMessage.bs").hasError(this.props.message)?null:j.jsx(c("Image.react"),{className:"_41-9",src:m})};e.$2=function(){var a,b=this.props.message,e=b.log_message_type==="log:unsubscribe"&&b.log_message_data.removed_participants.indexOf(b.author)!==-1,f=this.props.viewer;switch(b.log_message_type){case"log:subscribe":a="_uwb";break;case"log:unsubscribe":a=e?"_uwc":"_uwe";break;case"log:phone-call":a=b.log_message_data.caller.indexOf(f)!==-1?"_uwf":"_uwg";break;case"log:video-call":a=b.log_message_data.caller.indexOf(f)!==-1?"_uwh":"_uwi";break;case"log:thread-name":a="_uwj";break;case"log:thread-image":a="_uwk";break;case"log:error-msg":a="_uwl";break;case"log:live-listen":a="_uwm";break;case"log:wallpaper":a="_uwn";break;case"log:orion":a="_uwo";break;case"log:switch":a="_uwp";break;case"log:page-reply":a="_uwq";break}return c("joinClasses")("_497p"+(d("WorkChatRedesignedMessageListCheck.bs").enabled?" _7w5v":"")+((b.log_message_type==="log:phone-call"||b.log_message_type==="log:video-call")&&!b.log_message_data.answered?" _3no3":"")+(b.log_message_data&&b.log_message_data.message_type==="instant_game_update"?" _11es":""),a)};return b}(j.PureComponent);b.propTypes={message:c("prop-types").object.isRequired,viewer:c("prop-types").string.isRequired,isLastOfType:c("prop-types").bool.isRequired,onImageLoad:c("prop-types").func};g["default"]=b}),98);
-----
MessageList.react",["cx","Actor","CurrentUser","MercuryIDs","MercuryMessageGroup","MercuryShareAttachmentRenderLocations","MessengerDomIDs.bs","MessengerLightweightActionUtils","MessengerMessage.bs","MessengerObjectAssociationType","MessengerParticipantUtils.bs","MessengerPresenceProvider.bs","ReactDOM","cr:1140097","cr:832269","gkx","immutable","nullthrows","prop-types","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=2,k=1e3*60*60,l=6,m=function(a){var b;b=(b=a)!=null?(b=b.log_message_data)!=null?b.message_type:b:b;switch(b){case"group_poll":return(b=a)!=null?(b=b.log_message_data)!=null?(b=b.untypedData)!=null?b.question_id:b:b:b;case"instant_game_update":return(b=a)!=null?(b=b.log_message_data)!=null?(b=b.untypedData)!=null?b.game_id:b:b:b;case"lightweight_event_create":case"lightweight_event_update":case"lightweight_event_delete":case"lightweight_event_update_time":case"lightweight_event_update_title":case"lightweight_event_update_location":case"lightweight_event_notify_before_event":case"lightweight_event_notify":case"lightweight_event_rsvp":return(b=a)!=null?(b=b.log_message_data)!=null?(b=b.untypedData)!=null?b.event_id:b:b:b;case"confirm_friend_request":b=((b=a)!=null?(b=b.log_message_data)!=null?(b=b.untypedData)!=null?b.friend_request_subtype:b:b:b)||((b=a)!=null?(b=b.log_message_data)!=null?(b=b.untypedData)!=null?b.subtype:b:b:b);return!b||b.toLowerCase()!=="icebreaker"?null:p(a);case"messenger_icebreaker_vote_cast":return p(a);default:return null}},n=function(a){return d("MessengerLightweightActionUtils").isLWAMessage(a)?"lwa":null};a=function(a){babelHelpers.inheritsLoose(e,a);function e(){var b,c,d;for(var e=arguments.length,f=new Array(e),g=0;ge&&(e=g.timestamp);g=a.messages.filter(function(a){return a.timestamp<=e});var i=a.messages.filter(function(a){return a.timestamp>e});g=d("MercuryMessageGroup").calculateMessageGroups(g,c);c=d("MercuryMessageGroup").calculateMessageGroups(i,c);i=i.filter(function(a){return a.log_message_type==null}).size;return{messageGroups:[].concat(g,c),prevMessages:f,newMessagesGroupIndex:g.length,newMessagesCountForDisplay:i,lastReadTimestamp:e}}else return{messageGroups:d("MercuryMessageGroup").calculateMessageGroups(a.messages,a.location),prevMessages:a.messages};else return null};var f=e.prototype;f.render=function(){var a=this,e=this.props,f=e.DateBreak,g=e.forGameChat,h=e.location,p=e.selectedMessageId,q=e.MessageGroup,v=e.CollapsedLogMessageGroup,w=[],x=[];e=this.props.thread&&this.props.thread.solid_color;var y=e?{backgroundColor:e}:null,z=this.state.activeMessageID,A=this.state.messageGroups,B=A.length,C=this.props.readReceipts;e=C.last();var D=e?e.watermark:0,E=d("MercuryIDs").getParticipantIDFromUserID(this.props.viewer),F={};for(e=this.props.messages.size-1;e>=0;e--){var G=this.props.messages.get(e),H=m(G)||n(G);H&&!F[H]&&(F[H]=G.message_id)}var I=function(m){var I=m>0?A[m-1]:null;I=I&&I.length>0?I[I.length-1]:null;var K=A[m],L=K[0],M=K[K.length-1],N=!1;b("cr:832269")!=null&&m>0&&m===a.state.newMessagesGroupIndex&&a.state.newMessagesCountForDisplay>0&&w.push(i.jsx("div",{ref:"newMessageDivider",children:i.jsx(b("cr:832269"),{newMessagesCount:a.state.newMessagesCountForDisplay})},"new-message-divider"));if(!I||L.timestamp-I.timestamp>k){N=!0;I=i.jsx(f,{date:new Date(L.timestamp),ref:"db:"+L.message_id},"db:"+L.message_id);x.length===0&&w.push(I)}I=n(L);if(I&&F[I]!==L.message_id){I=a.$1(L,F);w.push(I);return"continue"}if(L.action_type=="ma-type:log-message"){I=(H=L)!=null?(H=H.log_message_data)!=null?H.message_type:H:H;var O=(G=L)!=null?(G=G.log_message_data)!=null?(G=G.untypedData)!=null?G.friend_request_subtype:G:G:G,P=I==="parties_presence",Q=I==="instant_game_update",R=I==="group_poll";O=I==="messenger_icebreaker_vote_cast"||I==="confirm_friend_request"&&O&&O.toLowerCase()==="icebreaker";var S=["lightweight_event_create","lightweight_event_update","lightweight_event_delete","lightweight_event_update_time","lightweight_event_update_title","lightweight_event_update_location","lightweight_event_notify_before_event","lightweight_event_notify","lightweight_event_rsvp"].includes(I);if((h===d("MercuryShareAttachmentRenderLocations").CHAT||h===d("MercuryShareAttachmentRenderLocations").MESSENGER)&&(L.log_message_type==="log:video-call"||L.log_message_type==="log:phone-call"||I==="messenger_call_log")){I=a.$2(L,E,A,B,m,C,D,M,F,p);w.push(I)}else{I=a.$3(L,F);e=L.message_id;!Q&&!R&&!S&&!O&&x.push(I);if(P)return"continue";(x.length===K.length||Q||R||S||O)&&(a.$4(x,w,e,y,v),x=[]);(Q||R||S||O)&&w.push(I)}return"continue"}K=c("immutable").List(K);var T=r(A,B,m,F),U=!t(C,K,T),V=s(D,M),W=u(a.props.deliveryTimestamp,M),X=K.first().author,Y=d("MessengerMessage.bs").getPersona(M),Z=E===L.author;P=Z?0:l+j;var $=a.props.maxBubbleWidth?a.props.maxBubbleWidth-P:null;w.push(i.jsx(d("MessengerPresenceProvider.bs").jsComponent,{subscribeToIDs:X?[X]:null,children:function(b){return i.jsx(q,{activeMessageID:o(z,K),author:X,deliveryTimestamp:W,forGameChat:g,hasDateBreak:N,isCanonical:a.props.isCanonical,isFromViewer:Z,isPageMessage:a.props.isPageMessage,isLastMessageGroup:m===B-1,isOnline:X?d("MessengerParticipantUtils.bs").has(b,X):!1,lastReadTimestamp:V,maxBubbleWidth:$,messages:K,nextTimestamp:T,onReactionSwap:a.props.onReactionSwap,onAttachmentLoad:a.props.onAttachmentLoad,onMessageDeselect:a.$5,onMessageSelect:a.$6,onStickerClick:a.props.onStickerClick,onReplyToMessage:a.props.onReplyToMessage,pageID:a.props.isPageMessage===!0?a.props.viewer:null,persona:Y,readReceipts:U?C:c("immutable").OrderedMap(),ref:function(b){return a.refs["mg:"+L.message_id]=b},thread:a.props.thread,threadID:a.props.threadID,scrollToRepliedMessage:a.props.scrollToRepliedMessage,selectedMessageId:p,rolesIDWithColor:a.props.rolesIDWithColor},"mg:"+L.message_id)}},"pp:"+L.message_id))};for(var J=0;J1?b.push(i.jsx(e,{style:d,children:a},"mg:"+c)):b.push(i.jsx("div",{children:a},"mg:"+c)))};f.$2=function(a,b,e,f,g,h,j,k,l,m){var n=this,o,p,q=this.props.MessageGroup;p=((p=a)!=null?(p=p.log_message_data)!=null?p.untypedData:p:p)||{};o=(o=a)!=null?(o=o.log_message_data)!=null?o.message_type:o:o;if(o==="messenger_call_log"){o={message_type:"messenger_call_log",call_capture_attachments:p.call_capture_attachments,caller:d("MercuryIDs").getParticipantIDFromUserID(c("nullthrows")(p.caller_id,"caller id")),callee:d("MercuryIDs").getParticipantIDFromUserID(c("nullthrows")(p.callee_id,"callee id")),server_info_data:p.server_info,thread_id:a.thread_fbid,answered:p.event!=="missed_call",log_message_type:p.video?"log:video-call":"log:phone-call",event:p.event,added_participants:null,removed_participants:null,untypedData:null,image:null,name:null};a=babelHelpers["extends"]({},a,{log_message_data:o})}p={attach_type:"share",share:{style_list:["rtc_call_log","fallback"],log_message_body:a.log_message_body,log_message_data:a.log_message_data,log_message_type:a.log_message_type,timestamp:a.timestamp}};o=babelHelpers["extends"]({},a,{attachments:[p],body:""});var v=c("immutable").List([o]),w=r(e,f,g,l),x=!t(h,v,w),y=s(j,k),z=u(this.props.deliveryTimestamp,k),A=v.first().author;return i.jsx(d("MessengerPresenceProvider.bs").jsComponent,{subscribeToIDs:A?[A]:null,children:function(e){return i.jsx(q,{author:v.first().author,deliveryTimestamp:z,forGameChat:n.props.forGameChat,isCanonical:n.props.isCanonical,isFromViewer:b===a.author,isOnline:A?d("MessengerParticipantUtils.bs").has(e,A):!1,isPageMessage:n.props.isPageMessage,lastReadTimestamp:y,maxBubbleWidth:n.props.maxBubbleWidth,messages:v,nextTimestamp:w,onAttachmentLoad:n.props.onAttachmentLoad,onMessageDeselect:n.$5,onMessageSelect:n.$6,onStickerClick:n.props.onStickerClick,readReceipts:x?h:c("immutable").OrderedMap(),selectedMessageId:m,thread:n.props.thread,threadID:n.props.threadID})}},a.message_id)};f.$3=function(a,b){var c=this.props.LogMessage,e=m(a);b=e?b[e]:null;return a.log_message_type!=="log:error-msg"?i.jsx(c,{className:this.props.location===d("MercuryShareAttachmentRenderLocations").CHAT?"_5w0o":null,onLogMessageExpanded:this.props.onAttachmentLoad,loadMoreMessages:this.props.loadMoreMessages,message:a,onImageLoad:this.props.onAttachmentLoad,viewer:this.props.viewer,isPageMessage:this.props.isPageMessage,thread:this.props.thread,isLastOfType:b===a.message_id},a.message_id):null};f.$1=function(a,b){b=b[c("nullthrows")(n(a),"other group id first message")];var e=this.props.LogMessage;return i.jsx(e,{className:this.props.location===d("MercuryShareAttachmentRenderLocations").CHAT?"_5w0o":null,onLogMessageExpanded:this.props.onAttachmentLoad,loadMoreMessages:this.props.loadMoreMessages,message:a,onImageLoad:this.props.onAttachmentLoad,viewer:this.props.viewer,thread:this.props.thread,isLastOfType:b===a.message_id},a.message_id)};return e}(i.PureComponent);a.propTypes={CollapsedLogMessageGroup:c("prop-types").func.isRequired,DateBreak:c("prop-types").func.isRequired,deliveryTimestamp:c("prop-types").number.isRequired,forGameChat:c("prop-types").bool,isCanonical:c("prop-types").bool,isPageMessage:c("prop-types").bool,location:c("prop-types").string.isRequired,LogMessage:c("prop-types").func.isRequired,loadMoreMessages:c("prop-types").func,MessageGroup:c("prop-types").func.isRequired,messages:c("prop-types").instanceOf(c("immutable").List).isRequired,onReactionSwap:c("prop-types").func,onAttachmentLoad:c("prop-types").func,onStickerClick:c("prop-types").func,onReplyToMessage:c("prop-types").func,readReceipts:c("prop-types").instanceOf(c("immutable").OrderedMap).isRequired,viewer:c("prop-types").string.isRequired,thread:c("prop-types").object,threadID:c("prop-types").string,scrollToRepliedMessage:c("prop-types").func,rolesIDWithColor:c("prop-types").any};function o(a,b){return b.find(function(b){return b.message_id===a})?a:null}function p(a){return(a=a)!=null?(a=a.log_message_data)!=null?(a=a.untypedData)!=null?a.icebreaker_type:a:a:a}function q(a){var b=(a==null?void 0:a.action_type)==="ma-type:log-message";a=(a==null?void 0:(a=a.log_message_data)==null?void 0:a.message_type)==="messenger_call_log";return b&&!a}function r(a,b,c,d){if(c>=b-1)return Infinity;var e=a[c+1][0],f=n(e);if(f&&d[f]!==e.message_id||q(e))return r(a,b,c+1,d);else return e.timestamp}function s(a,b){return b.timestamp>a?a:Infinity}function t(a,b,c){return b.isEmpty()||!a.isEmpty()&&(a.last().action=c)}function u(a,b){return b.timestamp>a?a:Infinity}g["default"]=a}),98);
-----
MercuryMessageGroup",["MercuryAttachmentLayoutTypeHelper","MercuryShareAttachmentRenderLocations","MercuryThreadlistConstants","MessengerLightweightActionUtils","MessengerMessage.bs","enumerate"],(function(a,b,c,d,e,f){"use strict";var g={calculateMessageGroups:function(a,c){var d=[],e=null,f={value:null};a=b("enumerate")(a);var h;while(!(h=a.next()).done){var i=g.canAppendMessageToLastGroup(f.value,h.value,c);i||(e=[],d.push(e));e.push(h.value);f=h}return d},canAppendMessageToLastGroup:function(a,c,d){var e=b("MercuryThreadlistConstants").GROUPING_THRESHOLD;if(!a||h(a,d)||h(c,d)||a.author!=c.author||a.timestampb("MercuryThreadlistConstants").MAX_CHARS_BEFORE_BREAK)}function i(a){a=a.attachments[0];return!a||a.attach_type==="sticker"||a.attach_type==="animated_image"||b("MercuryAttachmentLayoutTypeHelper").isAdminType(a)}e.exports=g}),null);
-----
MessengerLightweightActionUtils",[],(function(a,b,c,d,e,f){"use strict";function g(a){return!!(a&&a.attach_type==="share"&&a.share&&a.share.target&&a.share.target.lwa_type)}function a(a){a=a==null?void 0:a.attachments;return!!(a&&a.length===1&&g(a[0]))}function b(a){return a.attachments[0].share.title}function c(a){return a[0].share.title}f.isLWAAttachment=g;f.isLWAMessage=a;f.getCollapsedLWAText=b;f.getLWASnippetText=c}),66);
-----
MercuryAttachmentSnippetRenderer",["fbt","CurrentUser","MercuryAttachmentSnippetType","MercuryAudioType","MercuryGiftSnippetRenderer","MessengerLightweightActionUtils","P2PSnippetStringUtils","StickerConstants","react"],(function(a,b,c,d,e,f,g){"use strict";var h;h||b("react");var i={getAttachmentSnippetType:function(a){if(i._hasOnlyPhotos(a))return b("MercuryAttachmentSnippetType").PHOTO;if(i._hasOnlyAnimatedImages(a))return b("MercuryAttachmentSnippetType").GIF;if(i._hasOnlyVideo(a))return b("MercuryAttachmentSnippetType").VIDEO;if(i._hasAudioClip(a))return b("MercuryAttachmentSnippetType").AUDIO_CLIP;if(i._hasLikeSticker(a))return b("MercuryAttachmentSnippetType").LIKE_STICKER;if(i._hasSticker(a))return b("MercuryAttachmentSnippetType").STICKER;if(i._hasThirdPartySticker(a))return b("MercuryAttachmentSnippetType").THIRDPARTYSTICKER;if(i._hasShare(a))return b("MercuryAttachmentSnippetType").SHARE;if(i._hasGift(a))return b("MercuryAttachmentSnippetType").GIFT;if(i._hasError(a))return b("MercuryAttachmentSnippetType").ERROR;return i._hasFile(a)?b("MercuryAttachmentSnippetType").FILE:b("MercuryAttachmentSnippetType").MIXED},renderAttachmentSnippetText:function(a,c,d,e){switch(a){case b("MercuryAttachmentSnippetType").PHOTO:return i._renderPhotoAttachmentSnippetText(c,d,i._getPhotoAttachments(e));case b("MercuryAttachmentSnippetType").GIF:return i._renderAnimatedImagesAttachmentSnippetText(c,d,i._getAnimatedImageAttachments(e));case b("MercuryAttachmentSnippetType").VIDEO:return c?g._("u4f60u53d1u9001u4e86u89c6u9891u3002"):g._("{sender name}u53d1u9001u4e86u89c6u9891u3002",[g._param("sender name",d)]);case b("MercuryAttachmentSnippetType").AUDIO_CLIP:return c?g._("u4f60u53d1u9001u4e86u8bedu97f3u6d88u606fu3002"):g._("{name}u53d1u9001u4e86u4e00u6761u8bedu97f3u6d88u606fu3002",[g._param("name",d)]);case b("MercuryAttachmentSnippetType").STICKER:case b("MercuryAttachmentSnippetType").LIKE_STICKER:case b("MercuryAttachmentSnippetType").THIRDPARTYSTICKER:return c?g._("u4f60u53d1u4e86u4e00u4e2au8d34u56fe"):g._("{name}u53d1u6765u4e86u8d34u56fe",[g._param("name",d)]);case b("MercuryAttachmentSnippetType").SHARE:if(e&&i._hasP2PPayment(e))return i._renderP2PPaymentSnippetText(e[0]);if(e&&i._hasP2PPaymentRequest(e))return i._renderP2PPaymentRequestSnippetText(e[0]);if(e&&i._hasBusinessMessage(e))return i._renderBusinessMessageSnippetText(e[0],d);if(e&&i._hasLocation(e))return c?g._("u4f60u53d1u9001u4e86u4f4du7f6eu4fe1u606fu3002"):g._("{sender name}u53d1u9001u4e86u4f4du7f6eu4fe1u606fu3002",[g._param("sender name",d)]);if(e&&i._hasLiveLocation(e))return c?g._("u4f60u53d1u9001u4e86u5b9eu65f6u4f4du7f6eu3002"):g._("{sender name}u53d1u9001u4e86u5b9eu65f6u4f4du7f6eu3002",[g._param("sender name",d)]);if(e&&i._hasMontageDirect(e)){a=e[0];a=(a=a)!=null?(a=a.share)!=null?(a=a.media)!=null?a.source:a:a:a;return c?a?g._("u4f60u53d1u4e86u89c6u9891u3002"):g._("u4f60u53d1u4e86u4e00u5f20u7167u7247"):a?g._("u67e5u770b{sender name}u7684u5373u9605u89c6u9891u3002",[g._param("sender name",d)]):g._("u67e5u770b{sender name}u7684u5373u9605u7167u7247u3002",[g._param("sender name",d)])}if(e&&e.length===1&&b("MessengerLightweightActionUtils").isLWAAttachment(e[0]))return b("MessengerLightweightActionUtils").getLWASnippetText(e);return e&&e.length===1&&i._isGloballyRemovedMessageAttachment(e[0])?e[0].share.description:c?g._("u4f60u53d1u9001u4e86u94feu63a5"):g._("{sender name}u53d1u9001u4e86u94feu63a5",[g._param("sender name",d)]);case b("MercuryAttachmentSnippetType").GIFT:return b("MercuryGiftSnippetRenderer").renderText(c,d);case b("MercuryAttachmentSnippetType").FILE:return c?g._("u4f60u53d1u9001u4e86u9644u4ef6u3002"):g._("{sender name}u53d1u9001u4e86u9644u4ef6u3002",[g._param("sender name",d)]);case b("MercuryAttachmentSnippetType").MIXED:return c?g._("u4f60u53d1u9001u4e86u9644u4ef6u3002"):g._("{sender name}u53d1u9001u4e86u4e00u4e9bu9644u4ef6u3002",[g._param("sender name",d)]);case b("MercuryAttachmentSnippetType").ERROR:return c?g._("u4f60u53d1u9001u4e86u9644u4ef6u3002"):g._("{sender name}u53d1u9001u4e86u9644u4ef6u3002",[g._param("sender name",d)]);default:return""}},_isGloballyRemovedMessageAttachment:function(a){return a.share&&a.share.style_list&&a.share.style_list.includes("globally_deleted_message_placeholder")},_hasOnlyPhotos:function(a){return i._getPhotoAttachments(a).length===a.length},_hasThirdPartySticker:function(a){return a.length===1&&a[0].attach_type==="third_party_sticker"},_hasOnlyAnimatedImages:function(a){return i._getAnimatedImageAttachments(a).length===a.length},_hasOnlyVideo:function(a){return a.length===1&&a[0].attach_type==="video"},_hasAudioClip:function(a){var c=a[0].metadata&&a[0].metadata.type;return a.length===1&&(c===b("MercuryAudioType").AudioClip||c===b("MercuryAudioType").VoiceMessageWithTranscript)},_hasBusinessMessage:function(a){return i._hasSingleShareAttachmentOfStyle(a,"business_message_items")},_hasSticker:function(a){return a.length===1&&a[0].attach_type==="sticker"},_hasLikeSticker:function(a){if(a.length<1)return!1;var c=a[0].metadata&&a[0].metadata.stickerID;return a.length===1&&(c==b("StickerConstants").LIKE_STICKER_ID||c==b("StickerConstants").HOT_LIKE_SMALL_STICKER_ID||c==b("StickerConstants").HOT_LIKE_MEDIUM_STICKER_ID||c==b("StickerConstants").HOT_LIKE_LARGE_STICKER_ID)},_hasLocation:function(a){return i._hasSingleShareAttachmentOfStyle(a,"message_location")},_hasLiveLocation:function(a){return i._hasSingleShareAttachmentOfStyle(a,"message_live_location")},_hasMontageDirect:function(a){return i._hasSingleShareAttachmentOfStyle(a,"montage_direct")},_hasP2PPayment:function(a){return i._hasSingleShareAttachmentOfStyle(a,"orion")},_hasP2PPaymentRequest:function(a){return i._hasSingleShareAttachmentOfStyle(a,"orion_request")},_hasSingleShareAttachmentOfStyle:function(a,b){return a.length===1&&a[0].attach_type==="share"&&a[0].share&&a[0].share.style_list.indexOf(b)>=0},_hasShare:function(a){return a.length===1&&a[0].attach_type==="share"},_hasError:function(a){return a.length===1&&a[0].attach_type==="error"},_hasGift:function(a){return a.length===1&&a[0].attach_type==="gift"},_hasFile:function(a){return a.length===1&&a[0].attach_type==="file"},_getPhotoAttachments:function(a){return!a?[]:a.filter(function(a){return a.attach_type==="photo"})},_getAnimatedImageAttachments:function(a){return!a?[]:a.filter(function(a){return a.attach_type==="animated_image"})},_renderPhotoAttachmentSnippetText:function(a,b,c){if(c.length===1)if(a)return g._("u4f60u53d1u9001u4e86u4e00u5f20u7167u7247u3002");else return g._("{name}u53d1u9001u4e86u7167u7247",[g._param("name",b)]);else if(a)return g._({"*":"u4f60u53d1u9001u4e86{num_photos}u5f20u7167u7247u3002"},[g._param("num_photos",c.length,[0])]);else return g._({"*":"{name}u53d1u9001u4e86{num_photos}u5f20u7167u7247u3002"},[g._param("num_photos",c.length,[0]),g._param("name",b)])},_renderAnimatedImagesAttachmentSnippetText:function(a,b,c){if(c.length===1)if(a)return g._("u4f60u53d1u9001u4e86u4e00u5f20u52a8u56feu3002");else return g._("{name}u53d1u9001u4e86u4e00u5f20u52a8u56feu3002",[g._param("name",b)]);else if(a)return g._("u4f60u53d1u9001u4e86{num_animated_images}u5f20u52a8u56feu3002",[g._param("num_animated_images",c.length)]);else return g._("{name}u53d1u9001u4e86{num_animated_images}u5f20u52a8u56feu3002",[g._param("name",b),g._param("num_animated_images",c.length)])},_renderBusinessMessageSnippetText:function(a,b){a=a.share.target;a=a&&a.message||g._("{sender name}u53d1u9001u4e86u9644u4ef6u3002",[g._param("sender name",b)]);return a},_renderP2PPaymentSnippetText:function(a){a=a.share.target;return i.renderP2PPaymentSnippetText(b("CurrentUser").getID()===a.sender.id,a.sender.name,a.amountWithSymbol,a.status,b("CurrentUser").getID()===a.receiver.id,a.receiver.name)},_renderP2PPaymentRequestSnippetText:function(a){a=a.share.target;return i.renderP2PPaymentRequestSnippetText(b("CurrentUser").getID()===a.requester.id,a.requester.name,a.amountWithSymbol,a.currentStatus,b("CurrentUser").getID()===a.requestee.id,a.requestee.name)},renderP2PPaymentSnippetText:function(a,c,d,e,f,g){return b("P2PSnippetStringUtils").getTransferSnippetByStatus(e,a,f||!1,c||"",g||"",d)},renderP2PPaymentRequestSnippetText:function(a,c,d,e,f,g){return b("P2PSnippetStringUtils").getRequestSnippetByStatus(e,a,f||!1,c||"",g||"",d)}};e.exports=i}),null);
-----