;/*FB_PKG_DELIM*/

__d("AccountSwitcherFilled12.svg.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs("svg",babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor"},a,{children:[a.title!=null&&i.jsx("title",{children:a.title}),a.children!=null&&i.jsx("defs",{children:a.children}),i.jsx("g",{fillRule:"evenodd",transform:"translate(-450 -1073)",children:i.jsxs("g",{children:[i.jsx("path",{d:"m104.68 920.76-1.467-1.1a.2.2 0 0 1 0-.32l1.468-1.1a.2.2 0 0 1 .32.159v2.202a.2.2 0 0 1-.32.16",transform:"translate(354 155.5)"}),i.jsx("path",{fillRule:"nonzero",d:"M104.5 920h1.5a1 1 0 0 1 1 1v.5a.5.5 0 0 0 1 0v-.5a2 2 0 0 0-2-2h-1.5a.5.5 0 0 0 0 1z",transform:"translate(354 155.5)"}),i.jsx("path",{d:"m99.32 927.24 1.467 1.1a.2.2 0 0 1 0 .32l-1.468 1.1a.2.2 0 0 1-.32-.159V927.4a.2.2 0 0 1 .32-.16",transform:"translate(354 155.5)"}),i.jsx("path",{fillRule:"nonzero",d:"M99.5 928H98a1 1 0 0 1-1-1v-.5a.5.5 0 0 0-1 0v.5a2 2 0 0 0 2 2h1.5a.5.5 0 0 0 0-1z",transform:"translate(354 155.5)"}),i.jsx("path",{d:"M106 924.75c0 .69-.448 1.25-1 1.25s-1-.56-1-1.25.285-1.25 1-1.25c.715 0 1 .56 1 1.25",transform:"translate(354 155.5)"}),i.jsx("path",{fillRule:"nonzero",d:"M106.5 924.75c0 .945-.644 1.75-1.5 1.75s-1.5-.805-1.5-1.75c0-1.016.521-1.75 1.5-1.75s1.5.734 1.5 1.75zm-1 0c0-.523-.162-.75-.5-.75-.338 0-.5.227-.5.75 0 .436.252.75.5.75s.5-.314.5-.75z",transform:"translate(354 155.5)"}),i.jsx("path",{d:"M107.03 929.5h-4.06a.471.471 0 0 1-.47-.47c0-.841.688-1.53 1.53-1.53h1.94c.842 0 1.53.688 1.53 1.53a.47.47 0 0 1-.47.47",transform:"translate(354 155.5)"}),i.jsx("path",{fillRule:"nonzero",d:"M107.03 930h-4.06a.971.971 0 0 1-.97-.97c0-1.118.912-2.03 2.03-2.03h1.94c1.118 0 2.03.912 2.03 2.03a.97.97 0 0 1-.97.97zm-.036-1.075a1.035 1.035 0 0 0-1.024-.925h-1.94c-.555 0-1.013.448-1.03 1h4l-.006-.075z",transform:"translate(354 155.5)"}),i.jsx("path",{d:"M100 919.75c0 .69-.448 1.25-1 1.25s-1-.56-1-1.25.285-1.25 1-1.25c.715 0 1 .56 1 1.25",transform:"translate(354 155.5)"}),i.jsx("path",{fillRule:"nonzero",d:"M100.5 919.75c0 .945-.644 1.75-1.5 1.75s-1.5-.805-1.5-1.75c0-1.016.521-1.75 1.5-1.75s1.5.734 1.5 1.75zm-1 0c0-.523-.162-.75-.5-.75-.338 0-.5.227-.5.75 0 .436.252.75.5.75s.5-.314.5-.75z",transform:"translate(354 155.5)"}),i.jsx("path",{d:"M101.03 924.5h-4.06a.471.471 0 0 1-.47-.47c0-.841.688-1.53 1.53-1.53h1.94c.842 0 1.53.688 1.53 1.53a.47.47 0 0 1-.47.47",transform:"translate(354 155.5)"}),i.jsx("path",{fillRule:"nonzero",d:"M101.03 925h-4.06a.971.971 0 0 1-.97-.97c0-1.118.912-2.03 2.03-2.03h1.94c1.118 0 2.03.912 2.03 2.03a.97.97 0 0 1-.97.97zm-.036-1.075A1.035 1.035 0 0 0 99.97 923h-1.94c-.555 0-1.013.448-1.03 1h4l-.006-.075z",transform:"translate(354 155.5)"})]})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98);
__d("AppFacebookCircleFilled12.svg.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs("svg",babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor"},a,{children:[a.title!=null&&i.jsx("title",{children:a.title}),a.children!=null&&i.jsx("defs",{children:a.children}),i.jsx("g",{fillRule:"evenodd",transform:"translate(-450 -1073)",children:i.jsx("path",{d:"M456 1073.5c-3.308 0-6 2.691-6 6 0 2.967 2.167 5.432 5 5.91v-4.16h-1.5v-1.75h1.5v-1.25c0-1.418.859-2.25 2.135-2.25.61 0 1.212.054 1.365.075v1.425h-.923c-.692 0-.827.472-.827.951v1.049h1.75l-.25 1.75h-1.5v4.198c2.955-.371 5.25-2.894 5.25-5.948 0-3.309-2.692-6-6-6"})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98);
__d("AppGroupsOutline20.svg.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs("svg",babelHelpers["extends"]({viewBox:"0 0 20 20",width:"1em",height:"1em",fill:"currentColor"},a,{children:[a.title!=null&&i.jsx("title",{children:a.title}),a.children!=null&&i.jsx("defs",{children:a.children}),i.jsx("g",{fillRule:"evenodd",transform:"translate(-446 -398)",children:i.jsxs("g",{children:[i.jsx("path",{fillRule:"nonzero",d:"M114.5 204.5c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10 10 4.477 10 10zm-1.5 0a8.5 8.5 0 1 0-17 0 8.5 8.5 0 0 0 17 0z",transform:"translate(351.5 203.5)"}),i.jsx("path",{d:"M110 208h.243c.693 0 1.257-.525 1.257-1.172 0-1.284-1.105-2.328-2.462-2.328-.444 0-.022.5-.022.5.462.696.734 1.529.734 2.424v.344s-.039.232.25.232m-11 0h-.243c-.693 0-1.257-.525-1.257-1.172 0-1.284 1.105-2.328 2.462-2.328.444 0 .022.5.022.5a4.364 4.364 0 0 0-.734 2.424v.344s.039.232-.25.232m2.625-5.875c0-.988-.54-1.625-1.375-1.625s-1.375.637-1.375 1.625c0 .896.617 1.625 1.375 1.625s1.375-.729 1.375-1.625m8.5 0c0-.988-.54-1.625-1.375-1.625s-1.375.637-1.375 1.625c0 .896.617 1.625 1.375 1.625s1.375-.729 1.375-1.625m-4.826 2.375h-1.598c-1.627 0-2.951 1.311-2.951 2.924v.344c0 .68.558 1.232 1.243 1.232h5.014c.685 0 1.243-.552 1.243-1.232v-.344c0-1.613-1.324-2.924-2.95-2.924m1.2-3.75c0-1.388-.766-2.25-2-2.25s-2 .862-2 2.25c0 1.24.897 2.25 2 2.25s2-1.01 2-2.25",transform:"translate(351.5 203.5)"})]})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98);
__d("BaseInfiniteScrollList.react",["BaseScrollableAreaContext","CometDialogContext","CometInfiniteScrollTrigger.react","CometScrollableArea.react","FBLogger","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useContext;function a(a){var b=a.forceBrowserDefault,d=a.items,e=a.loadingIndicator,f=a.onScroll,g=a.onScrollBottom,h=a.onScrollTop,k=a.renderItem,l=a.role,m=a.testid;m=a.xstyle;a=babelHelpers.objectWithoutPropertiesLoose(a,["forceBrowserDefault","items","loadingIndicator","onScroll","onScrollBottom","onScrollTop","renderItem","role","testid","xstyle"]);var n=j(c("CometDialogContext")),o=j(c("BaseScrollableAreaContext"));n==null&&o.length>0&&c("FBLogger")("comet_ui").blameToPreviousFrame().warn("For XPlat React compatibility, BaseInfiniteScrollList should not be nested inside scrollable containers such as BaseScrollableArea with the same orientation. It may cause unexpected behaviors and break infinite scroll in React Native platforms.");return i.jsxs(c("CometScrollableArea.react"),{forceBrowserDefault:b,horizontal:!1,onScroll:f,onScrollBottom:g,onScrollTop:h,role:l,testid:void 0,xstyle:m,children:[d.map(k),i.jsx(c("CometInfiniteScrollTrigger.react"),babelHelpers["extends"]({},a,{children:e}))]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("FriendConfirmFilled12.svg.react",["react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs("svg",babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor"},a,{children:[a.title!=null&&i.jsx("title",{children:a.title}),a.children!=null&&i.jsx("defs",{children:a.children}),i.jsx("g",{fillRule:"evenodd",transform:"translate(-450 -1073)",children:i.jsxs("g",{children:[i.jsx("path",{d:"M102.5 920.25c0 1.242-.895 2.25-2 2.25s-2-1.008-2-2.25.572-2.25 2-2.25 2 1.008 2 2.25",transform:"translate(354.5 156)"}),i.jsx("path",{fillRule:"nonzero",d:"M103 920.25c0 1.506-1.105 2.75-2.5 2.75s-2.5-1.244-2.5-2.75c0-1.638.878-2.75 2.5-2.75 1.622 0 2.5 1.112 2.5 2.75zm-1 0c0-1.13-.489-1.75-1.5-1.75-1.011 0-1.5.62-1.5 1.75 0 .979.686 1.75 1.5 1.75s1.5-.771 1.5-1.75z",transform:"translate(354.5 156)"}),i.jsx("path",{d:"M104.064 929h-7.129a.938.938 0 0 1-.935-.936v-.515a3.058 3.058 0 0 1 3.049-3.049h2.902a3.058 3.058 0 0 1 3.049 3.049v.515a.938.938 0 0 1-.936.936",transform:"translate(354.5 156)"}),i.jsx("path",{fillRule:"nonzero",d:"M104.064 929.5h-7.129c-.79 0-1.435-.645-1.435-1.436v-.515A3.558 3.558 0 0 1 99.049 924h2.902a3.558 3.558 0 0 1 3.549 3.549v.515c0 .791-.645 1.436-1.436 1.436zm0-1a.438.438 0 0 0 .436-.436v-.515c0-1.4-1.148-2.549-2.549-2.549h-2.902a2.558 2.558 0 0 0-2.55 2.549l.001.515c0 .239.197.436.435.436h7.13zm.29-7.354a.5.5 0 1 0-.708.708l1 1a.5.5 0 0 0 .708 0l2-2a.5.5 0 1 0-.708-.708L105 921.793l-.646-.647z",transform:"translate(354.5 156)"})]})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98);
__d("LSClearDiscoverableChatsParticipantsAndRanges",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1],c=[];return b.sequence([function(a){return b.sequence([function(a){return b.forEach(b.db.table(248).fetch(),function(a){return a["delete"]()})},function(a){return b.forEach(b.db.table(249).fetch(),function(a){return a["delete"]()})}])},function(a){return b.resolve(c)}])}a.__sproc_name__="LSMailboxClearDiscoverableChatsParticipantsAndRangesStoredProcedure";e.exports=a}),null);
__d("LSClearDiscoverableChatsParticipantsAndRangesStoredProcedure",["LSClearDiscoverableChatsParticipantsAndRanges","cr:8709"],(function(a,b,c,d,e,f,g){function a(a){return c("LSClearDiscoverableChatsParticipantsAndRanges")(a)}g["default"]=a}),98);
__d("LSUpsertDiscoverableChatsParticipantsRanges",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1],c=[];return b.sequence([function(c){return b.db.table(249).put({threadId:a[0],minName:"",source:a[4],maxName:a[5],isLoadingBefore:!1,isLoadingAfter:a[2],hasMoreBefore:!1,hasMoreAfter:a[1],nextPageCursor:a[3]})},function(a){return b.resolve(c)}])}a.__sproc_name__="LSMailboxUpsertDiscoverableChatsParticipantsRangesStoredProcedure";e.exports=a}),null);
__d("LSFetchDiscoverableChatParticipants",["LSIssueNewTask","LSUpsertDiscoverableChatsParticipantsRanges"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return c.sequence([function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[0]=c.i64.cast([0,1]):(b=a.item,d[7]=b.syncGroup,c.i64.neq(d[7],void 0)?d[6]=d[7]:d[6]=c.i64.cast([0,1]),d[0]=d[6])})},function(d){return c.storedProcedure(b("LSUpsertDiscoverableChatsParticipantsRanges"),a[0],!1,!0,"",a[2],a[3])},function(b){return c.db.table(9).fetch([[[a[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[2]=c.i64.cast([0,1]):(b=a.item,d[7]=b.syncGroup,c.i64.neq(d[7],void 0)?d[6]=d[7]:d[6]=c.i64.cast([0,1]),d[2]=d[6])})},function(e){return d[4]=new c.Map(),d[4].set("thread_key",a[0]),d[4].set("cursor",a[1]),d[4].set("source",a[2]),d[4].set("sync_group",d[2]),d[5]=c.toJSON(d[4]),c.storedProcedure(b("LSIssueNewTask"),"fetch_discoverable_chat_participant_list",c.i64.cast([0,110006]),d[5],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]))}])},function(a){return c.resolve(e)}])}a.__sproc_name__="LSMailboxFetchDiscoverableChatParticipantsStoredProcedure";e.exports=a}),null);
__d("LSFetchDiscoverableChatParticipantsStoredProcedure",["LSFetchDiscoverableChatParticipants","cr:8709"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.threadKey;d[1]=b.cursor;d[2]=b.source;d[3]=b.maxName;return c("LSFetchDiscoverableChatParticipants").apply(void 0,d.concat([a]))}g["default"]=a}),98);
__d("LSFetchDiscoverableChatsPersonalInboxInfo",["LSIssueNewTask"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return d[0]=new c.Map(),d[0].set("thread_key",a[0]),d[1]=c.toJSON(d[0]),c.storedProcedure(b("LSIssueNewTask"),"fetch_discoverable_chats_personal_inbox_info",c.i64.cast([0,110019]),d[1],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]))},function(a){return c.resolve(e)}])}a.__sproc_name__="LSMailboxFetchDiscoverableChatsPersonalInboxInfoStoredProcedure";e.exports=a}),null);
__d("LSFetchDiscoverableChatsPersonalInboxInfoStoredProcedure",["LSFetchDiscoverableChatsPersonalInboxInfo","cr:8709"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.threadKey;return c("LSFetchDiscoverableChatsPersonalInboxInfo").apply(void 0,d.concat([a]))}g["default"]=a}),98);
__d("LSHideBroadcastChannelFromPersonalInbox",["LSIssueNewTaskWithExtraOperations"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return d[0]=new c.Map(),d[0].set("thread_id",a[0]),d[0].set("entry_point",""),d[1]=c.toJSON(d[0]),c.storedProcedure(b("LSIssueNewTaskWithExtraOperations"),"hide_broadcast_channel_from_personal_inbox",c.i64.cast([0,110018]),d[1],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),void 0,c.i64.cast([0,0]))},function(a){return c.resolve(e)}])}a.__sproc_name__="LSMailboxHideBroadcastChannelFromPersonalInboxStoredProcedure";e.exports=a}),null);
__d("LSHideBroadcastChannelFromPersonalInboxStoredProcedure",["LSHideBroadcastChannelFromPersonalInbox","cr:8709"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.threadId;return c("LSHideBroadcastChannelFromPersonalInbox").apply(void 0,d.concat([a]))}g["default"]=a}),98);
__d("LSShowBroadcastChannelInPersonalInbox",["LSIssueNewTaskWithExtraOperations"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(e){return d[0]=new c.Map(),d[0].set("thread_id",a[0]),d[0].set("entry_point",""),d[1]=c.toJSON(d[0]),c.storedProcedure(b("LSIssueNewTaskWithExtraOperations"),"show_broadcast_channel_in_personal_inbox",c.i64.cast([0,110017]),d[1],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,c.i64.cast([0,0]),void 0,c.i64.cast([0,0]))},function(a){return c.resolve(e)}])}a.__sproc_name__="LSMailboxShowBroadcastChannelInPersonalInboxStoredProcedure";e.exports=a}),null);
__d("LSShowBroadcastChannelInPersonalInboxStoredProcedure",["LSShowBroadcastChannelInPersonalInbox","cr:8709"],(function(a,b,c,d,e,f,g){function a(a,b){var d=[];d[0]=b.threadId;return c("LSShowBroadcastChannelInPersonalInbox").apply(void 0,d.concat([a]))}g["default"]=a}),98);
__d("VideoThumbnailDuration.react",["getFormattedTimestamp","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){a=a.videoDuration;return i.jsx("div",{className:"x6s0dn4 xal61yo x1lcm9me x1yr5g0i xrt01vj x10y3i5r xrb244j x14ctfv x4r51d9 x1ncwhqj x1nn3v0j xsyo7zv x1120s5i x16hj40l x10l6tqk xxymvpz",children:c("getFormattedTimestamp")(a)})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MWInboxInfoPhotoGalleryItemThumbnailContent.react",["CometImageCover.react","I64","LSIntEnum","MWMediaGalleryVideoThumbnail.react","MWXImage.react","MessagingAttachmentType","VideoThumbnailDuration.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=h||d("react"),l={videoThumbnailPlayIcon:{position:"x10l6tqk",start:"xtzzx4i",left:null,right:null,top:"xwa60dl",transform:"x11lhmoz",$$css:!0}};function a(a){var b=a.attachment,e=a.fallbackVideoUrl,f=a.mediaRenderQpl;a=a.previewUrl;var g=(i||(i=d("I64"))).equal(b.attachmentType,(j||(j=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").VIDEO));if(g){g=Math.floor((i||(i=d("I64"))).to_float((g=b.playableDurationMs)!=null?g:(i||(i=d("I64"))).zero)/1e3);return k.jsxs("div",{className:"x1rg5ohu x5yr21d xl1xv1r x1n2onr6 xh8yej3",children:[k.jsx(c("MWMediaGalleryVideoThumbnail.react"),{alt:b.filename,fallbackVideoUrl:(e=e)!=null?e:"",mediaRenderQpl:f,previewUrl:a}),k.jsx(c("MWXImage.react"),{src:"/images/video/play_48dp.png",xstyle:l.videoThumbnailPlayIcon}),g>0?k.jsx(c("VideoThumbnailDuration.react"),{videoDuration:g}):null]})}return k.jsx(c("CometImageCover.react"),{alt:(e=b.filename)!=null?e:"",onError:function(){return f==null?void 0:f.endFail("load-image-error")},onLoad:function(){return f==null?void 0:f.endSuccess()},src:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MWMediaGalleryRenderQpl",["MWMediaRenderQplUtils"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){return d("MWMediaRenderQplUtils").useCommonMediaRenderQplForAttachment(a,b,"gallery_view")}g.useMediaGalleryRenderQpl=a}),98);
__d("MWInboxInfoPhotoGalleryItem.react",["fbt","CometPlaceholder.react","I64","JSResourceForInteraction","LSIntEnum","MWInboxInfoPhotoGalleryItemThumbnailContent.react","MWMediaGalleryRenderQpl","MWMessageListMediaPressableContainer.react","MWV2AttachmentErrorPlaceholder.react","MWV2AttachmentLoadingPlaceholder.react","MessagingAttachmentType","gkx","react","useMWV2MediaViewerURL","useMWXLazyDialog"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=i||d("react"),m={attachmentContainer:{height:"x5yr21d",$$css:!0},errorPlaceholder:{borderTopStartRadius:"x168nmei",borderTopEndRadius:"x13lgxp2",borderBottomEndRadius:"x5pf9jr",borderBottomStartRadius:"xo71vjh",$$css:!0},loadingPlaceholder:{borderTopStartRadius:"x168nmei",borderTopEndRadius:"x13lgxp2",borderBottomEndRadius:"x5pf9jr",borderBottomStartRadius:"xo71vjh",$$css:!0}};function a(a){var b=a.attachment,e=a.getPlayableUrl,f=a.getPreviewUrl,g=a.navigateToRouteForMediaViewer,h=a.onPress;a=a.threadType;a=d("MWMediaGalleryRenderQpl").useMediaGalleryRenderQpl(b,a);if(c("gkx")("1445")&&b.hasMedia===!1){a==null?void 0:a.addPoint("loading_has_media_false");return l.jsx(c("MWV2AttachmentLoadingPlaceholder.react"),{height:512,mediaRenderQpl:a,width:512,xstyle:m.loadingPlaceholder})}var i=c("gkx")("1445")?function(a){return l.jsx(c("MWV2AttachmentErrorPlaceholder.react"),{height:512,width:512,xstyle:m.errorPlaceholder})}:void 0;return l.jsx(c("CometPlaceholder.react"),{fallback:l.jsx(c("MWV2AttachmentLoadingPlaceholder.react"),{height:512,mediaRenderQpl:a,width:512,xstyle:m.loadingPlaceholder}),children:l.jsx(n,{attachment:b,getPlayableUrl:e,getPreviewUrl:f,mediaRenderQpl:a,navigateToRouteForMediaViewer:g,onPress:h,renderUnsupportedAttachment:i})})}a.displayName=a.name+" [from "+f.id+"]";function n(a){var b=a.attachment,e=a.getPlayableUrl,f=a.getPreviewUrl,g=a.mediaRenderQpl,i=a.navigateToRouteForMediaViewer,n=a.onPress;a=a.renderUnsupportedAttachment;f=(f=f(b,"MWInboxInfoPhotoGalleryItem",g))!=null?f:"";e=Boolean(f)?void 0:e(b,"MWInboxInfoPhotoGalleryItem",g);var o=c("useMWV2MediaViewerURL")(b),p=c("useMWXLazyDialog")(c("JSResourceForInteraction")("MWV2MediaViewer.react").__setRef("MWInboxInfoPhotoGalleryItem.react")),q=p[0],r=p[1];p=(j||(j=d("I64"))).equal(b.attachmentType,(k||(k=d("LSIntEnum"))).ofNumber(c("MessagingAttachmentType").VIDEO));if(f==null||f.length===0){if(!p||!c("gkx")("3368")){g==null?void 0:g.endFail("empty_preview_url");return(p=a==null?void 0:a(b))!=null?p:null}if(e==null||e.length===0){g==null?void 0:g.endFail("empty_video_preview_and_playable_url");return(p=a==null?void 0:a(b))!=null?p:null}}a=i?{passthroughProps:{origSrc:f},url:o}:void 0;return l.jsx(c("MWMessageListMediaPressableContainer.react"),{ariaLabel:h._("__JHASH__mrw3CpFXi7r__JHASH__"),attachment:b,linkProps_:a,onHoverIn:function(){if(!i)return r()},onPress:function(){n!=null&&n(b);if(!i)return q({attachment:b},function(){})},overlayDisabled:!0,testid:void 0,xstyle:m.attachmentContainer,children:l.jsx(c("MWInboxInfoPhotoGalleryItemThumbnailContent.react"),{attachment:b,fallbackVideoUrl:e,mediaRenderQpl:g,previewUrl:f})})}n.displayName=n.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("MWSharedContentCommonFbt",["fbt"],(function(a,b,c,d,e,f,g,h){"use strict";a=h._("__JHASH__7iXxkHlQ-F-__JHASH__");g.armadilloMediaGalleryMissingMediaNoticeFbt=a}),226);
__d("MWInboxInfoSharedContentEmptyTab.react",["fbt","LSMessagingThreadTypeUtil","LSThreadTitle.react","MWSharedContentCommonFbt","MWXText.react","ReQL","ReQLSuspense","gkx","react","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function l(a){switch(a){case"media":return"Photos and videos";case"files":return"Files";case"links":return"Links"}}function m(a,b){var e=d("LSMessagingThreadTypeUtil").isArmadilloSecure(b.threadType);e=e&&a==="media"&&c("gkx")("2616")===!0;if(e)return d("MWSharedContentCommonFbt").armadilloMediaGalleryMissingMediaNoticeFbt;e=l(a);if(d("LSMessagingThreadTypeUtil").isDiscoverableChannel(b.threadType))return h._("__JHASH__PpijmwC5Lut__JHASH__",[h._enum(e,{"Photos and videos":"Photos and videos",Files:"Files",Links:"Links"})]);return d("LSMessagingThreadTypeUtil").isOneToOne(b.threadType)?h._("__JHASH__6OltF4lnito__JHASH__",[h._enum(e,{"Photos and videos":"Photos and videos",Files:"Files",Links:"Links"}),h._param("name",k.jsx(c("LSThreadTitle.react"),{thread:b,wrapOutput:function(a,b){return b}}))]):h._("__JHASH__0YQmVoWIu6A__JHASH__",[h._enum(e,{"Photos and videos":"Photos and videos",Files:"Files",Links:"Links"})])}function a(a){var b=a.contentType,e=a.threadKey,g=(i||(i=c("useReStore")))();a=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(g.tables.threads,["threadType","threadKey","threadName"]).getKeyRange(e)},[g,e],f.id+":113");if(a==null)return null;var j=h._("__JHASH__F8WROxnU5px__JHASH__",[h._enum(b,{media:"media",files:"files",links:"links"})]);b=m(b,a);return k.jsxs("div",{className:"x1g7c3p3 x1n2onr6",children:[k.jsx("div",{className:"xr1yuqi xkrivgy x4ii5y1 x1gryazu xwib8y2",children:k.jsx(c("MWXText.react"),{align:"center",color:"secondary",type:"body2",children:j})}),k.jsx("div",{className:"xr1yuqi xkrivgy x4ii5y1 x1gryazu xtxm24l x1y1aw1k x4uap5 xwib8y2 xkhd6sd",children:k.jsx(c("MWXText.react"),{align:"center",color:"secondary",type:"body3",children:b})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("MWInboxInfoSharedContentTabWithFooter.react",["BasePortal.react","MWInboxInfoPanelContext.react","MWXColumnItem.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useEffect,k=b.useState;function a(a){var b=a.children,e=a.footer;a=a.shouldShowFooter;var f=d("MWInboxInfoPanelContext.react").useMWInboxInfoPanelContext(),g=f.footerContentRef;f=k(null);var h=f[0],l=f[1];j(function(){h||l(g.current)},[h,g]);return i.jsxs(i.Fragment,{children:[b,a?i.jsx(c("BasePortal.react"),{target:h,children:i.jsx(c("MWXColumnItem.react"),{paddingHorizontal:12,paddingVertical:16,children:e})}):null]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MWInboxInfoPhotoGallery.react",["CometInfiniteScrollTrigger.react","CometPhotoGrid.react","CometProgressIndicator.react","LSMessagingThreadTypeUtil","MWInboxInfoPhotoGalleryItem.react","MWInboxInfoSharedContentEmptyTab.react","MWInboxInfoSharedContentTabWithFooter.react","MWSharedContentCommonFbt","MWXText.react","gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={progressRingContainer:{display:"x78zum5",justifyContent:"xl56j7k",marginTop:"x1xmf6yo",paddingTop:"x123j3cw",paddingEnd:"x1mpkggp",paddingBottom:"xs9asl8",paddingStart:"x1t2a60a",$$css:!0}};function a(a){var b=a.threadKey;a=babelHelpers.objectWithoutPropertiesLoose(a,["threadKey"]);var d=a.hasMore,e=a.isLoading,f=a.media;return i.jsx("div",{className:"x1swvt13 x1pi30zi",children:f.length>0||d||e?i.jsx(k,babelHelpers["extends"]({},a,{navigateToRouteForMediaViewer:!1})):i.jsx(c("MWInboxInfoSharedContentEmptyTab.react"),{contentType:"media",threadKey:b})})}a.displayName=a.name+" [from "+f.id+"]";function k(a){var b=a.getPlayableUrl,e=a.getPreviewUrl,f=a.hasMore,g=a.isBackButtonPressed;g=g===void 0?!1:g;var h=a.isLoading,k=a.media,l=a.navigateToRouteForMediaViewer,m=l===void 0?!0:l;l=a.onLoadMore;var n=a.onPressMedia,o=a.threadType;a=a.uniformGrid;a=a===void 0?!0:a;var p=d("LSMessagingThreadTypeUtil").isArmadilloSecure(o);return i.jsxs(c("MWInboxInfoSharedContentTabWithFooter.react"),{footer:i.jsx(c("MWXText.react"),{align:"center",color:"tertiary",type:"meta3",children:d("MWSharedContentCommonFbt").armadilloMediaGalleryMissingMediaNoticeFbt}),shouldShowFooter:k.length>0&&p&&!g&&c("gkx")("2616")===!0,children:[i.jsx("div",{className:"xr9ek0c xfs2ol5 xjpr12u x12mruv9",children:i.jsx(c("CometPhotoGrid.react"),{uniformGrid:a,children:k.map(function(a){return i.jsx(c("MWInboxInfoPhotoGalleryItem.react"),{attachment:a,getPlayableUrl:b,getPreviewUrl:e,navigateToRouteForMediaViewer:m,onPress:n,threadType:o},a.attachmentFbid+a.messageId)})})}),i.jsx(c("CometInfiniteScrollTrigger.react"),{hasMore:f,isLoading:h,onLoadMore:l,xstyle:j.progressRingContainer,children:i.jsx(c("CometProgressIndicator.react"),{size:"default"})})]})}k.displayName=k.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MAWCutoverInboxInfoSharedMediaTab.react",["FBLogger","I64","MAWThreadCutover","MWInboxInfoPhotoGallery.react","react","recoverableViolation","useMAWLoadMoreCutoverThreadSharedAttachments","useMWV2MediaViewerOpenPlayableUrl","useMWV2MediaViewerOpenPreviewUrl","useMWV2MediaViewerSecurePlayableUrl","useMWV2MediaViewerSecurePreviewUrl"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||(h=d("react"));b=h;var k=b.useCallback,l=b.useEffect,m=b.useRef;function a(a){var b=a.isBackButtonPressed,e=a.onFirstLoadedMedia,f=a.secureThreadKey;a=a.threadType;var g=d("MAWThreadCutover").useGetCutoverOpenThreadKey(f);g==null&&c("FBLogger")("messenger_web_media").mustfix("Cutover open thread key is null for secure thread key: %s",(i||(i=d("I64"))).to_string(f));g=c("useMAWLoadMoreCutoverThreadSharedAttachments")(f,(g=g)!=null?g:(i||(i=d("I64"))).zero,{entrypoint:"media_gallery",threadType:a});var h=g.attachments,n=g.completedFirstLoad,o=g.hasMore,p=g.isLoadingMore;g=g.onLoadMore;var q=m(!1);l(function(){q.current===!1&&n===!0&&(q.current=!0,e(h))},[n,h,e]);var r=c("useMWV2MediaViewerOpenPreviewUrl")(),s=c("useMWV2MediaViewerOpenPlayableUrl")(),t=c("useMWV2MediaViewerSecurePreviewUrl")(),u=c("useMWV2MediaViewerSecurePlayableUrl")(),v=k(function(a,b,d){if(a.transportKey==="FBBroker"||a.transportKey==="FBLegacyBroker"){var e;e=(e=r(a,b))!=null?e:"";e===""&&c("FBLogger")("messenger_web_media").mustfix("Cutover Shared Media Gallery open media previewUrl is an empty string");return e}a=(e=t(a,b,d))!=null?e:"";a===""&&c("recoverableViolation")("Cutover Shared Media Gallery secure media previewUrl is an empty string","messenger_web_media",void 0,{trackOnly:!0});return a},[r,t]),w=k(function(a,b,c){if(a.transportKey==="FBBroker"||a.transportKey==="FBLegacyBroker"){var d;return(d=s(a,b))!=null?d:""}return(d=u(a,b,c))!=null?d:""},[s,u]);return j.jsx(c("MWInboxInfoPhotoGallery.react"),{getPlayableUrl:w,getPreviewUrl:v,hasMore:o,isBackButtonPressed:b,isLoading:p,media:h,navigateToRouteForMediaViewer:!1,onLoadMore:g,threadKey:f,threadType:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MWInboxInfoSharedContentFilePreview.react",["MDSSvgDocumentCompleteIcon.react","MWChatMessageId","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){a=a.messageID;a=a!=null?d("MWChatMessageId").getMessageId(a):void 0;return a==null?null:i.jsx(c("MDSSvgDocumentCompleteIcon.react"),{color:"primary",size:24})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MAWSecureInboxInfoSharedContentFile.react",["CometPlaceholder.react","MAWFilePressable.react","MWInboxInfoSharedContentFilePreview.react","MWMediaGalleryRenderQpl","MWV2AttachmentErrorPlaceholder.react","MWV2AttachmentLoadingPlaceholder.react","MWXRow.react","MWXRowItem.react","MWXTextPairing.react","gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=60,k=350,l={contentRowItem:{paddingTop:"xz9dl7a",paddingEnd:"xn6708d",paddingBottom:"xsag5q8",paddingStart:"x1ye3gou",$$css:!0},errorPlaceholder:{borderTopStartRadius:"xhw592a",borderTopEndRadius:"xwihvcr",borderBottomEndRadius:"x7wuybg",borderBottomStartRadius:"xb9tvrk",$$css:!0},fileRow:{marginTop:"xdj266r",marginEnd:"x11i5rnm",marginBottom:"xat24cr",marginStart:"x1mh8g0r",paddingTop:"xexx8yu",paddingEnd:"x4uap5",paddingBottom:"x18d9i69",paddingStart:"xkhd6sd",$$css:!0},iconRowItem:{backgroundColor:"xlhe6ec",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",height:"xdd8jsf",overflowX:"x6ikm8r",overflowY:"x10wlt62",paddingTop:"xyinxu5",paddingEnd:"xmns6w2",paddingBottom:"x1g2khh7",paddingStart:"xpkgp8e",width:"xvni27",$$css:!0},loadingPlaceholder:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",$$css:!0}};function a(a){var b=a.file,e=a.onPress;a=a.threadType;a=d("MWMediaGalleryRenderQpl").useMediaGalleryRenderQpl(b,a);return c("gkx")("1445")&&b.hasMedia===!1?i.jsx(c("MWV2AttachmentLoadingPlaceholder.react"),{height:j,mediaRenderQpl:a,width:k,xstyle:l.loadingPlaceholder}):i.jsx(c("CometPlaceholder.react"),{fallback:i.jsx(c("MWV2AttachmentLoadingPlaceholder.react"),{height:j,mediaRenderQpl:a,width:k,xstyle:l.loadingPlaceholder}),children:i.jsx(m,{file:b,mediaRenderQpl:a,onPress:e})})}a.displayName=a.name+" [from "+f.id+"]";function m(a){var b=a.file,d=a.mediaRenderQpl;a=a.onPress;return i.jsx(c("MAWFilePressable.react"),{entrypoint:"inbox_info_v1",file:b,mediaRenderQpl:d,onPress:a,renderUnsupportedAttachment:c("gkx")("1445")?function(){return i.jsx(c("MWV2AttachmentErrorPlaceholder.react"),{height:j,width:k,xstyle:l.errorPlaceholder})}:void 0,children:function(a){var b=a.filename,d=a.messageID;a=a.size;return i.jsxs(c("MWXRow.react"),{expanding:!0,paddingTop:0,verticalAlign:"center",xstyle:l.fileRow,children:[i.jsx(c("MWXRowItem.react"),{xstyle:l.iconRowItem,children:i.jsx(c("MWInboxInfoSharedContentFilePreview.react"),{messageID:d})}),i.jsx(c("MWXRowItem.react"),{expanding:!0,xstyle:l.contentRowItem,children:i.jsx(c("MWXTextPairing.react"),{body:a,bodyColor:"secondary",headline:b,headlineLineLimit:1,level:4})})]})}})}m.displayName=m.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MWInboxInfoSharedContentTheme",[],(function(a,b,c,d,e,f){"use strict";a={divider:"var(--hover-overlay)"};b={divider:"var(--hover-overlay)"};c={dark:b,light:a,type:"VARIABLES"};f.config=c}),66);
__d("MAWSecureInboxInfoSharedFilesTab.react",["BaseTheme.react","CometInfiniteScrollTrigger.react","CometProgressIndicator.react","MAWSecureInboxInfoSharedContentFile.react","MWInboxInfoSharedContentEmptyTab.react","MWInboxInfoSharedContentTheme","MWSharedAttachmentsSectionHooks","MWXColumn.react","MWXColumnItem.react","gkx","react","useMAWLoadMoreThreadSharedAttachments"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={progressIndicator:{display:"x78zum5",justifyContent:"xl56j7k",marginTop:"x1xmf6yo",paddingTop:"x123j3cw",paddingEnd:"x1mpkggp",paddingBottom:"xs9asl8",paddingStart:"x1t2a60a",$$css:!0}};function a(a){var b,e=a.thread;a=d("MWSharedAttachmentsSectionHooks").useQueryFileAttachments(e.threadKey,{removeUnsentMessages:!0});var f=a[0];a[1];var g=a[2],h=a[3];a=a[4];b=(b=a)!=null?b:!c("gkx")("2616");a=c("useMAWLoadMoreThreadSharedAttachments")(e.threadKey,a,h);h=d("MWSharedAttachmentsSectionHooks").useLoader({attachmentsRange:g,hasMore:b,loadMore:a,media:f});g=h[0];a=h[1];return f.length===0&&!b?i.jsx(c("MWInboxInfoSharedContentEmptyTab.react"),{contentType:"files",threadKey:e.threadKey}):i.jsx(c("BaseTheme.react"),{config:d("MWInboxInfoSharedContentTheme").config,children:i.jsxs(c("MWXColumn.react"),{hasDividers:!0,paddingHorizontal:16,paddingVertical:8,spacing:20,children:[f.map(function(a){return i.jsx(c("MWXColumnItem.react"),{children:i.jsx(c("MAWSecureInboxInfoSharedContentFile.react"),{file:a,threadType:e.threadType})},a.messageId)}),i.jsx(c("MWXColumnItem.react"),{children:i.jsx(c("CometInfiniteScrollTrigger.react"),{hasMore:b,isLoading:g,onLoadMore:a,xstyle:j.progressIndicator,children:i.jsx(c("CometProgressIndicator.react"),{size:"default"})})},"infinite_scroll_trigger")]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MWInboxInfoListItem.react",["MWXColumnItem.react","MWXPressable.react","MWXRow.react","MWXRowItem.react","MWXTextPairing.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useMemo,k={containerRow:{marginTop:"xdj266r",marginEnd:"x11i5rnm",marginBottom:"xat24cr",marginStart:"x1mh8g0r",paddingTop:"xexx8yu",paddingEnd:"x4uap5",paddingBottom:"x18d9i69",paddingStart:"xkhd6sd",$$css:!0},contentItem:{paddingTop:"xz9dl7a",paddingEnd:"xn6708d",paddingBottom:"xsag5q8",paddingStart:"x1ye3gou",$$css:!0},mediaItem:{alignItems:"x6s0dn4",backgroundColor:"xlhe6ec",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",display:"x78zum5",height:"xdd8jsf",justifyContent:"xl56j7k",overflowX:"x6ikm8r",overflowY:"x10wlt62",paddingTop:"xexx8yu",paddingEnd:"x4uap5",paddingBottom:"x18d9i69",paddingStart:"xkhd6sd",width:"xvni27",$$css:!0},pressable:{overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0}};function a(a){var b=a.mediaElement,d=a.onPress,e=a.subtitle,f=a.title,g=a.url;a=j(function(){return{target:"_blank",url:g}},[g]);return i.jsx(c("MWXColumnItem.react"),{children:i.jsx(c("MWXPressable.react"),{display:"inline",linkProps:a,onPress:d,overlayDisabled:!0,xstyle:function(){return[k.pressable]},children:i.jsxs(c("MWXRow.react"),{expanding:!0,verticalAlign:"center",xstyle:k.containerRow,children:[i.jsx(c("MWXRowItem.react"),{xstyle:k.mediaItem,children:b}),i.jsx(c("MWXRowItem.react"),{expanding:!0,xstyle:k.contentItem,children:i.jsx(c("MWXTextPairing.react"),{body:e,bodyColor:"secondary",headline:f,headlineLineLimit:1,level:4})})]})})})}a.displayName=a.name+" [from "+f.id+"]";g.MWInboxInfoListItem=a}),98);
__d("MWInboxInfoSharedLink.react",["CometImageCover.react","CometPlaceholder.react","LSMediaUrlAttachment","MWInboxInfoListItem.react","MWMediaGalleryRenderQpl","MWV2AttachmentLoadingPlaceholder.react","MWXIconLink","MWXIconStrict.react","ReQL","ReQLSuspense","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useEffect,l=60,m=350,n={loadingPlaceholder:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",$$css:!0}};function a(a){var b=a.attachment,e=a.onPress;a=a.threadType;a=d("MWMediaGalleryRenderQpl").useMediaGalleryRenderQpl(b,a);return j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("MWV2AttachmentLoadingPlaceholder.react"),{height:l,mediaRenderQpl:a,width:m,xstyle:n.loadingPlaceholder}),children:j.jsx(o,{attachment:b,mediaRenderQpl:a,onPress:e})})}a.displayName=a.name+" [from "+f.id+"]";function o(a){var b,e,g=a.attachment,i=a.mediaRenderQpl;a=a.onPress;var l=(h||(h=c("useReStore")))(),m=d("ReQLSuspense").useFirst(function(){var a=g.defaultCtaId;return a!=null?d("ReQL").fromTableAscending(l.tables.attachment_ctas).getKeyRange(a):d("ReQL").empty()},[l,g.defaultCtaId],f.id+":74"),n=d("LSMediaUrlAttachment").previewUrl(g),o=d("LSMediaUrlAttachment").faviconUrl(g);k(function(){n==null&&o==null&&(i==null?void 0:i.endSuccess())},[n,o,i]);m=m==null?void 0:m.actionUrl;if(m==null)return null;b=(b=g.titleText)!=null?b:m;e=(e=g.accessibilitySummaryText)!=null?e:b;e=n!=null?j.jsx(c("CometImageCover.react"),{alt:e,onError:function(){return i==null?void 0:i.endFail("load-image-error")},onLoad:function(){return i==null?void 0:i.endSuccess()},src:n}):o!=null?j.jsx(c("CometImageCover.react"),{alt:e,onError:function(){return i==null?void 0:i.endFail("load-image-error")},onLoad:function(){return i==null?void 0:i.endSuccess()},src:o}):j.jsx(c("MWXIconStrict.react"),{color:"primary",icon:c("MWXIconLink"),size:16});return j.jsx(d("MWInboxInfoListItem.react").MWInboxInfoListItem,{mediaElement:e,onPress:a,subtitle:(e=g.subtitleText)!=null?e:"",title:b,url:m})}o.displayName=o.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MAWSecureInboxInfoSharedLinksTab.react",["BaseTheme.react","CometInfiniteScrollTrigger.react","CometProgressIndicator.react","MWInboxInfoSharedContentEmptyTab.react","MWInboxInfoSharedContentTheme","MWInboxInfoSharedLink.react","MWSharedAttachmentsSectionHooks","MWXColumn.react","MWXColumnItem.react","emptyFunction","gkx","react","useMAWLoadMoreThreadSharedAttachments"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={progressIndicator:{display:"x78zum5",justifyContent:"xl56j7k",marginTop:"x1xmf6yo",paddingTop:"x123j3cw",paddingEnd:"x1mpkggp",paddingBottom:"xs9asl8",paddingStart:"x1t2a60a",$$css:!0}};function a(a){var b,e=a.thread;a=d("MWSharedAttachmentsSectionHooks").useQueryLinkAttachments(e.threadKey,{removeUnsentMessages:!0});var f=a[0];a[1];var g=a[2],h=a[3];a=a[4];b=(b=a)!=null?b:!c("gkx")("2616");a=c("useMAWLoadMoreThreadSharedAttachments")(e.threadKey,a,h);h=d("MWSharedAttachmentsSectionHooks").useLoader({attachmentsRange:g,hasMore:b,loadMore:a,media:f});g=h[0];a=h[1];return f.length===0&&!b?i.jsx(c("MWInboxInfoSharedContentEmptyTab.react"),{contentType:"links",threadKey:e.threadKey}):i.jsx(c("BaseTheme.react"),{config:d("MWInboxInfoSharedContentTheme").config,children:i.jsxs(c("MWXColumn.react"),{hasDividers:!0,paddingHorizontal:16,paddingVertical:8,spacing:20,children:[f.map(function(a){return i.jsx(c("MWXColumnItem.react"),{children:i.jsx(c("MWInboxInfoSharedLink.react"),{attachment:a,onPress:c("emptyFunction"),threadType:e.threadType})},a.messageId)}),i.jsx(c("MWXColumnItem.react"),{children:i.jsx(c("CometInfiniteScrollTrigger.react"),{hasMore:b,isLoading:g,onLoadMore:a,xstyle:j.progressIndicator,children:i.jsx(c("CometProgressIndicator.react"),{size:"default"})})},"infinite_scroll_trigger")]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MAWSecureInboxInfoSharedMediaTab.react",["MAWDbMsg","MWInboxInfoPhotoGallery.react","MWSharedAttachmentsSectionHooks","gkx","react","recoverableViolation","useMAWLoadMoreThreadSharedAttachments","useMAWQuerySecureMediaAttachments","useMWMediaLoadingQplLogger","useMWV2MediaViewerSecurePlayableUrl","useMWV2MediaViewerSecurePreviewUrl"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useCallback,k=b.useEffect,l=b.useRef;function a(a){var b,e=a.isBackButtonPressed,f=a.onFirstLoadedMedia;a=a.thread;var g=l(!1),h=d("useMAWQuerySecureMediaAttachments").useMAWQuerySecureMediaAttachments(a.threadKey,{removeUnsentMessages:!c("gkx")("2616")}),m=h[0];h[1];var n=h[2],o=h[3];h=h[4];b=(b=h)!=null?b:!0;var p=(n==null?void 0:n.lastLoadedMessageId)!=null?d("MAWDbMsg").toMsgId(n==null?void 0:n.lastLoadedMessageId):void 0,q=c("useMWMediaLoadingQplLogger")({entrypoint:"media_gallery",threadType:a.threadType});o=c("useMAWLoadMoreThreadSharedAttachments")(a.threadKey,h,o,c("gkx")("2616")===!0?(h=p)!=null?h:void 0:void 0,q.logLoadMediaStart);p=d("MWSharedAttachmentsSectionHooks").useLoader({attachmentsRange:n,hasMore:b,loadMore:o,logLoadMediaCancel:q.logLoadMediaCancel,logLoadMediaSuccess:q.logLoadMediaSuccess,media:m});h=p[0];n=p[1];var r=p[2];k(function(){g.current===!1&&r===!0&&(g.current=!0,f(m))},[r,m,f]);var s=c("useMWV2MediaViewerSecurePreviewUrl")();o=c("useMWV2MediaViewerSecurePlayableUrl")();q=j(function(a,b,d){a=s(a,b,d);a===""&&c("recoverableViolation")("MAW Shared Media Gallery previewUrl is an empty string","messenger_web_media",void 0,{trackOnly:!0});return a},[s]);return i.jsx(c("MWInboxInfoPhotoGallery.react"),{getPlayableUrl:o,getPreviewUrl:q,hasMore:b,isBackButtonPressed:e,isLoading:h,media:m,navigateToRouteForMediaViewer:!1,onLoadMore:n,threadKey:a.threadKey,threadType:a.threadType})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MDSInfiniteScrollList.react",["BaseInfiniteScrollList.react","MDSScrollableAreaStyles","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.xstyle;a=babelHelpers.objectWithoutPropertiesLoose(a,["xstyle"]);return i.jsx(c("BaseInfiniteScrollList.react"),babelHelpers["extends"]({forceBrowserDefault:!0,xstyle:[c("MDSScrollableAreaStyles").unthemed,b]},a))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MWAddMemberToGroupListCell.react",["fbt","MWXIconForListCell.react","MWXIconFriendGenericAdd","MWXListCellPressable.react","MWXText.react","react","useMWAddParticipantDialog"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.testid;b=a.thread;var d=c("useMWAddParticipantDialog")(b.threadKey,b.threadType);a={eventName:"open_add_members_dialog",threadKey:b.threadKey,threadType:b.threadType};return j.jsx(c("MWXListCellPressable.react"),{addOnStart:j.jsx(c("MWXIconForListCell.react"),{icon:c("MWXIconFriendGenericAdd"),size:"large"}),content:j.jsx(c("MWXText.react"),{type:"headline4",children:h._("__JHASH__P1CnLTqi4fK__JHASH__")}),loggingEvent:a,onPress:function(){return d()},size:"medium",testid:void 0})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("MWCMBotDetailsEntrypoint.react",["fbt","ix","CommunityBotEnabledStatus","I64","Int64Hooks","JSResourceForInteraction","LSFactory","LSIssueBotsInfoFetchStoredProcedure","MWCMBotStrings","MWInboxInfoButton.react","MWXIcon.react","MWXIconBot","MWXIconForListCell.react","MWXLazyPopoverTrigger.react","ReQL","ReQLSuspense","asyncToGeneratorRuntime","fbicon","promiseDone","react","useReStore"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m=l||d("react"),n=c("JSResourceForInteraction")("MWCMBotDetailsEntrypointDropdownMenu.react").__setRef("MWCMBotDetailsEntrypoint.react");function o(a){var b=a.bot;a=a.thread;return m.jsx(c("MWXLazyPopoverTrigger.react"),{align:"end",popoverProps:{bot:b,thread:a},popoverResource:n,popoverType:"menu",children:function(a,e){return m.jsx(c("MWInboxInfoButton.react"),{addOnEnd:m.jsx(c("MWXIcon.react"),{"aria-label":h._("__JHASH__JFJx3iugODR__JHASH__"),icon:d("fbicon")._(i("484391"),24),onPress:e,ref:a}),addOnStart:m.jsx(c("MWXIconForListCell.react"),{icon:c("MWXIconBot")}),label:b.name,subLabelElement:b.enabledStatus===c("CommunityBotEnabledStatus").ENABLED?d("MWCMBotStrings").addedToChatLegend:d("MWCMBotStrings").notAddedToChatLegend})}})}o.displayName=o.name+" [from "+f.id+"]";function a(a){var e=a.thread,g=(j||(j=c("useReStore")))();d("Int64Hooks").useEffectInt64(function(){var a=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){yield g.runInTransaction(function(a){return c("LSIssueBotsInfoFetchStoredProcedure")(c("LSFactory")(a),{threadKey:e.threadKey})},"readwrite")});return function(){return a.apply(this,arguments)}}();c("promiseDone")(a())},[g,e.threadKey]);a=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableDescending(g.tables.bots).getKeyRange(e.threadKey)},[g,e.threadKey],f.id+":95");return a.length===0?null:m.jsx(m.Fragment,{children:a.map(function(a){return m.jsx(o,{bot:a,thread:e},(k||(k=d("I64"))).to_string(a.botId))})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("MWCMInboxInfoGroupCopyLinkButton.react",["fbt","CurrentEnvironment","LSThreadBitOffset","MWCMChannelLinkShareTrigger.react","MWCMShortLinkShare.react","MWCMisStandAloneCommunity","MWInboxInfoButton.react","MWPBumpEntityKey","MWXIconForListCell.react","MWXIconMenuItemLink","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k=h._("__JHASH__c2UIg9XVAm2__JHASH__"),l=h._("__JHASH__iEaTUwEK-KE__JHASH__");function a(a){var b=a.folder;a=a.thread;var e=d("LSThreadBitOffset").has(124,a),f=c("CurrentEnvironment").facebookdotcom;return e&&f&&!c("MWCMisStandAloneCommunity")(b==null?void 0:b.communityType)?j.jsx(c("MWCMChannelLinkShareTrigger.react"),{threadKey:a.threadKey,children:function(a){return j.jsx(c("MWInboxInfoButton.react"),{addOnStart:j.jsx(c("MWXIconForListCell.react"),{icon:c("MWXIconMenuItemLink")}),label:k,onPress:a,subLabel:l})}}):j.jsx(c("MWCMShortLinkShare.react"),{thread:a,children:function(a,b){return j.jsx(c("MWInboxInfoButton.react"),{addOnStart:j.jsx(c("MWXIconForListCell.react"),{icon:c("MWXIconMenuItemLink")}),label:k,onPress:function(){d("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw.infobar","copy_link"),b()},subLabel:l})}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("MWCMInboxInfoGroupEventsButton.react",["fbt","GroupsCometChatsEngagementLogger","I64","MWInboxInfoButton.react","MWXIconCalendar","MWXIconForListCell.react","ReQL","ReQLSuspense","deferredLoadComponent","react","requireDeferredForDisplay","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=j||d("react"),m=c("deferredLoadComponent")(c("requireDeferredForDisplay")("MWInboxInfoEventsListSection.react").__setRef("MWCMInboxInfoGroupEventsButton.react"));function n(a,b){return function(){d("GroupsCometChatsEngagementLogger").log({action:"tap",client_extras:{entry_point:"inbox"},event:"render_event_list",parent_surface:"thread_view",source:"event_button",surface:"thread_settings",thread_id:(k||(k=d("I64"))).to_string(b)}),a(function(a){a=a.onReturn;return l.jsx(m,{loggingParentSurface:"thread_settings",loggingSource:"event_button",onReturn:a,threadKey:b})})}}function a(a){var b=a.pushPage,e=a.threadKey,g=(i||(i=c("useReStore")))();a=h._("__JHASH__AyF1PV5UJkW__JHASH__");var j=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(g.tables.cm_channel_events.index("eventsInThread")).getKeyRange(e).map(function(a){return d("ReQLSuspense").first(d("ReQL").fromTableAscending(g.tables.fb_events).getKeyRange(a.eventId),f.id+":75")})},[g,e],f.id+":70"),m=j.filter(function(a){return(a==null?void 0:a.startTimeMs)!=null?(k||(k=d("I64"))).to_float(a.startTimeMs)>Date.now():!1}).length;b=n(b,e);var o=m!=null&&m>0;o=o?h._("__JHASH__t79c9SrYA8D__JHASH__",[h._plural(m),h._param("Number of upcoming events",m)]):void 0;return j.length>0?l.jsx(c("MWInboxInfoButton.react"),{addOnStart:l.jsx(c("MWXIconForListCell.react"),{icon:c("MWXIconCalendar")}),label:a,onPress:b,subLabel:o}):null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("MWXIconMenuItemAppGroups",["MWXSvgIcon","SVGIcon","cr:9352","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=d("MWXSvgIcon").mwxSvgMenuItemIcon(d("SVGIcon").svgIcon(b("cr:9352")),c("gkx")("23219"));g["default"]=a}),98);
__d("MWCMInboxInfoGroupLink.react",["fbt","CurrentEnvironment","I64","MWInboxInfoButton.react","MWXIconForListCell.react","MWXIconMenuItemAppGroups","XCometGroupLandingControllerRouteBuilder","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i||d("react");function a(a){a=a.folder;var b=a.fbGroupId;a=a.name;b="https://www.facebook.com"+c("XCometGroupLandingControllerRouteBuilder").buildURL({group_id:(j||(j=d("I64"))).to_string(b)});var e=c("CurrentEnvironment").messengerdotcom?"_blank":"_self";return k.jsx(c("MWInboxInfoButton.react"),{addOnStart:k.jsx(c("MWXIconForListCell.react"),{icon:c("MWXIconMenuItemAppGroups")}),label:h._("__JHASH__XLqB3kIUlsv__JHASH__",[h._param("facebook group name",a)]),linkProps:{target:e,url:b}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("MWGroupMembershipListItemWrapper",["MWGroupMembershipListItem"],(function(a,b,c,d,e,f,g){"use strict";function a(a){switch(a.tag){case"ParticipantAndContact":return{contact:a.value[1],participant:a.value[0],type:d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.ParticipantAndContact};case"CommunityMember":return{communityMember:a.value,type:d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.CommunityMember};case"ServerSearchResult":return{serverSearchResult:a.value,type:d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.ServerSearchResult};case"BroadcastChannelParticipant":return{participant:a.value,type:d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.BroadcastChannelParticipant}}}g.tToRE=a}),98);
__d("MWDialogTextPairing.react",["MWDialogContentTypeValues","MWXTextPairing.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsx(c("MWXTextPairing.react"),babelHelpers["extends"]({},a,{level:d("MWDialogContentTypeValues").textPairingLevel}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MWLSGroupMembershipMemberCellProfilePhoto.react",["fbt","IntlVariations","MWXProfilePhoto.react","MWXTooltip.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.linkProps,d=a.name,e=a.onPress,f=a.profilePictureUrl;a=a.showTooltip;b=j.jsx(c("MWXProfilePhoto.react"),{alt:d,"aria-label":h._("__JHASH__5FWHZ8StuMQ__JHASH__",[h._name("name",d,c("IntlVariations").GENDER_UNKNOWN)]),linkProps:b,onPress:e,shape:"circle",size:36,source:{uri:f}});return a?j.jsx(c("MWXTooltip.react"),{position:"above",tooltip:h._("__JHASH__gvt-u-jxLjT__JHASH__",[h._name("name",d,c("IntlVariations").GENDER_UNKNOWN)]),children:b}):b}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("useMWLSGroupMembershipMenuQuery$Parameters",["useMWLSGroupMembershipMenuQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("useMWLSGroupMembershipMenuQuery_facebookRelayOperation"),metadata:{},name:"useMWLSGroupMembershipMenuQuery",operationKind:"query",text:null}};e.exports=a}),null);
__d("MWLSGroupMembershipMenu.entrypoint",["JSResourceForInteraction","useMWLSGroupMembershipMenuQuery$Parameters"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){var b=a.groupID;a=a.userID;return{queries:{groupMembershipMenuQueryRef:{parameters:c("useMWLSGroupMembershipMenuQuery$Parameters"),variables:{groupID:b,userID:a}}}}},root:c("JSResourceForInteraction")("MWLSGroupMembershipMenu.react").__setRef("MWLSGroupMembershipMenu.entrypoint")};g["default"]=a}),98);
__d("MWLSGroupMembershipMemberCell.react",["fbt","BaseMiddotSeparator.react","GenderConst","I64","Int64Hooks","LSContactBlockedByViewerStatus","LSContactGenderToGenderConst","LSFactory","LSGroupParticipantJoinState","LSIntEnum","LSIssueCommunityAdminModerationActionsFetchStoredProcedure","LSThreadBitOffset","LSWhatsAppConnectStatus","MWCMThreadTypes.react","MWGroupMembershipListItem","MWLSContactTypeExactUtils","MWLSGroupMembershipMemberCellProfilePhoto.react","MWLSGroupMembershipMenu.entrypoint","MWPActor.react","MWXCircleButton.react","MWXEntryPointPopoverTrigger.react","MWXIconDots3Horizontal","MWXListCell.react","MWXText.react","MWXTextPairing.react","getFBTSafeGenderFromGenderConst","getLSMediaContactProfilePictureUrl","pageID","promiseDone","react","useMWNavigateToThreadFromGroupMembership","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=j||(j=d("react")),n=j.useMemo,o=h._("__JHASH__3WTOYPxVm2l__JHASH__"),p=h._("__JHASH__J1b76x4xKfs__JHASH__"),q=h._("__JHASH__d3jtAkHct5c__JHASH__"),r="member_list_profile_sheet_source_"+c("pageID");function s(a,b){return n(function(){if(a.type===d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.ServerSearchResult&&a.serverSearchResult.contextLine!=="")return[m.jsx(m.Fragment,{children:a.serverSearchResult.contextLine})];var e=b.filter(function(a){return a!=null});return e.length>0?m.jsx(c("BaseMiddotSeparator.react"),{children:e}):null},[a,b])}function t(a){if(a.type===d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.ParticipantAndContact){var b=a.contact,e=a.participant,f=b.blockedByViewerStatus,g=b.contactTypeExact,h=b.gender,i=b.name,j=b.secondaryName,m=b.waConnectStatus,n=e.groupParticipantJoinState,o=e.isSuperAdmin;e=e.subscribeSource;return{gender:c("LSContactGenderToGenderConst")(h),isBlocked:!(k||(k=d("I64"))).equal(f,(l||(l=d("LSIntEnum"))).ofNumber(c("LSContactBlockedByViewerStatus").UNBLOCKED)),isInvitedByViewer:k.equal(n,l.ofNumber(c("LSGroupParticipantJoinState").INVITED)),isSuperAdmin:o===!0,name:i,nonWaAddressable:k.equal(m,l.ofNumber(c("LSWhatsAppConnectStatus").WHATSAPP_NOT_ADDRESSABLE)),profilePictureUrl:c("getLSMediaContactProfilePictureUrl")(b),secondaryName:j!=null&&d("MWLSContactTypeExactUtils").isIgContact(g)?j:null,subscribeSource:(h=e)!=null?h:null}}if(a.type===d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.CommunityMember){f=a.communityMember;n=f.isBlocked;o=f.name;i=f.nickname;m=f.profilePictureUrl;b=f.subtitle;return{gender:c("GenderConst").NOT_A_PERSON,isBlocked:(g=n)!=null?g:!1,isInvitedByViewer:!1,isSuperAdmin:!1,name:(j=i)!=null?j:o,nonWaAddressable:!1,profilePictureUrl:(e=m)!=null?e:"<PLACEHOLDER>",secondaryName:i!=null?o:null,subscribeSource:null,subtitle:b}}if(a.type===d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.BroadcastChannelParticipant){h=a.participant;f=h.isBlocked;n=h.name;g=h.nickname;j=h.profilePictureUrl;m=h.profilePictureUrlFallback;return{gender:c("GenderConst").NOT_A_PERSON,isBlocked:(e=f)!=null?e:!1,isInvitedByViewer:!1,isSuperAdmin:!1,name:(i=g)!=null?i:n,nonWaAddressable:!1,profilePictureUrl:(b=(o=j)!=null?o:m)!=null?b:"<PLACEHOLDER>",secondaryName:null,subscribeSource:null}}h=a.serverSearchResult;f=h.displayName;e=h.profilePicUrl;return{gender:c("GenderConst").NOT_A_PERSON,isBlocked:!(k||(k=d("I64"))).equal(h.blockedByViewerStatus,(l||(l=d("LSIntEnum"))).ofNumber(c("LSContactBlockedByViewerStatus").UNBLOCKED)),isInvitedByViewer:!1,isSuperAdmin:!1,name:f,nonWaAddressable:!1,profilePictureUrl:(g=e)!=null?g:"<PLACEHOLDER>",secondaryName:null,subscribeSource:null}}function u(a,b,c,e,f,g,i){var j,k,l;j=(j=d("MWGroupMembershipListItem").isAdmin(a))!=null?j:!1;k=(k=d("MWGroupMembershipListItem").isModerator(a))!=null?k:!1;l=(l=d("MWGroupMembershipListItem").isHost(a))!=null?l:!1;a=t(a);var m=a.isInvitedByViewer,n=a.isSuperAdmin,r=a.nonWaAddressable,s=a.subscribeSource;a=a.subtitle;if(b&&r&&!m)return h._("__JHASH__YJ7dDY2F-1___JHASH__").toString();if(b&&!r&&m)return h._("__JHASH__XW-fqo6HqSP__JHASH__").toString();if(s!=null&&n)return c?o:s;if(j&&e)return o;if(k&&g)return p;if(l&&f)return q;return c&&i&&a!=null?a:null}function a(a){var b=a.canMessageUser,e=a.folder,g=a.isMAWParticipantSuperAdmin,j=a.isSecure,n=a.membershipListItem,o=a.onClose,p=a.showAdminIndicator,q=a.showHostIndicator;q=q===void 0?!1:q;var v=a.showInvitedByViewerOnly;v=v===void 0?!1:v;var w=a.showModeratorIndicator,x=a.thread;a=d("MWPActor.react").useActor();var y=d("MWGroupMembershipListItem").contactId(n),z=d("LSThreadBitOffset").has(66,x)&&d("MWCMThreadTypes.react").isStandardCMThread(x.threadType),A=(i||(i=c("useReStore")))(),B=c("useMWNavigateToThreadFromGroupMembership")(),C=t(n),D=C.gender,E=C.isBlocked,F=C.isInvitedByViewer,G=C.isSuperAdmin,H=C.name,I=C.profilePictureUrl,J=C.secondaryName;C=C.subscribeSource;var K=d("MWCMThreadTypes.react").isJoinedCMThread(x.threadType),L=d("Int64Hooks").useCallbackInt64(function(){e!=null&&c("promiseDone")(A.runInTransaction(function(a){return c("LSIssueCommunityAdminModerationActionsFetchStoredProcedure")(c("LSFactory")(a),{fbGroupId:e==null?void 0:e.folderId,requestId:r,source:(l||(l=d("LSIntEnum"))).ofNumber(14),targetUserId:y,threadId:x.threadKey})},"readwrite",void 0,void 0,f.id+":316"))},[y,A,e,x.threadKey]);J=s(n,[J,u(n,j,K,p,q,w,z),E?h._("__JHASH__iywW1hlnypb__JHASH__"):null,C!=null&&!G&&!K?C:null]);p=j&&F&&!v;return m.jsx(c("MWXListCell.react"),{addOnEnd:m.jsx(c("MWXEntryPointPopoverTrigger.react"),{align:"end",entryPointParams:{groupID:(k||(k=d("I64"))).to_string((q=e==null?void 0:e.fbGroupId)!=null?q:(k||(k=d("I64"))).zero),userID:k.to_string(a)},otherProps:{folder:e,isMAWParticipantSuperAdmin:g,membershipListItem:n,onCloseDialog:o,thread:x},popoverEntryPoint:c("MWLSGroupMembershipMenu.entrypoint"),popoverType:"menu",preloadTrigger:"button",children:function(a,b,d,e,f,g,i){return m.jsx(c("MWXCircleButton.react"),{icon:c("MWXIconDots3Horizontal"),label:h._("__JHASH__-R08aUV4n3s__JHASH__",[h._name("name",H,c("getFBTSafeGenderFromGenderConst")(D))]),onHoverIn:function(a){L(),e==null?void 0:e(a)},onHoverOut:function(){f==null?void 0:f()},onPress:function(){return b()},onPressIn:g,ref:a,size:36,testid:void 0,type:"deemphasized"})}}),addOnEndVerticalAlign:"center",addOnStart:m.jsx(c("MWLSGroupMembershipMemberCellProfilePhoto.react"),{name:H,onPress:function(){B(y,j),o()},profilePictureUrl:I,showTooltip:b}),content:J!=null?m.jsx(c("MWXTextPairing.react"),{body:m.jsx(c("MWXText.react"),{color:p?"disabled":"secondary",type:"body4",children:J}),headline:m.jsx(c("MWXText.react"),{color:p?"disabled":"primary",type:"headline4",children:H}),level:4}):m.jsx(c("MWXText.react"),{align:"start",numberOfLines:1,type:"headline4",children:H}),size:"medium",testid:void 0},k.to_string(y))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("useMAWGetGroupSuperAdmin",["Int64Hooks","MAWMiActOnActThreadReadyDeferred","cr:9779","promiseDone","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,e,f){var g=(h||(h=c("useReStore")))();d("Int64Hooks").useEffectInt64(function(){if(b("cr:9779")!=null&&e){var d=b("cr:9779").sendAndReceive;c("promiseDone")(c("MAWMiActOnActThreadReadyDeferred")(g,a,"MWLSGroupMembershipMemberList.bs",function(a,b){return d("backend","getGroupSuperAdmin",{chatJid:b}).then(function(a){return f(a)})}))}},[g,e,f,a])}g["default"]=a}),98);
__d("MWLSGroupMembershipMemberList.react",["fbt","I64","LSGroupParticipantJoinState","LSIntEnum","LSMessagingThreadTypeUtil","MDSInfiniteScrollList.react","MWDialogTextPairing.react","MWGroupMembershipListItem","MWLSGroupMembershipMemberCell.react","MWMemberListGlimmer.react","MWPActor.react","emptyFunction","react","react-strict-dom","useMAWGetGroupSuperAdmin"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=i||(i=d("react"));b=i;var m=b.useCallback,n=b.useState,o={noHosts:{alignItems:"x6s0dn4",alignSelf:"xamitd3",display:"x78zum5",flexGrow:"x1iyjqo2",height:"x1egiwwb",justifyContent:"xl56j7k",width:"xdzyupr",$$css:!0}};function a(a){var b=a.disableScroll;b=b===void 0?!1:b;var e=a.doSortParticipants;e=e===void 0?!0:e;var f=a.folder,g=a.hasMore;g=g===void 0?!1:g;var i=a.isLoading;i=i===void 0?!1:i;var p=a.onClose,q=p===void 0?c("emptyFunction"):p;p=a.onLoadMore;p=p===void 0?c("emptyFunction"):p;var r=a.participantsAndContacts,s=a.showAdmodIndicator,t=a.showAdmodsOnly,u=a.showHostsOnly,v=a.showInvitedByViewerOnly,w=a.thread;a=n(c("emptyFunction"));var x=a[0];a=a[1];var y=d("MWPActor.react").isAPPlus();t=t?r.filter(function(a){var b;b=(b=d("MWGroupMembershipListItem").isAdmin(a))!=null?b:!1;a=(a=d("MWGroupMembershipListItem").isModerator(a))!=null?a:!1;return b||a}):v?r.filter(function(a){a=a.type===d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.ParticipantAndContact?a.participant.groupParticipantJoinState:(j||(j=d("LSIntEnum"))).ofNumber(c("LSGroupParticipantJoinState").MEMBER);return(k||(k=d("I64"))).equal(a,(j||(j=d("LSIntEnum"))).ofNumber(c("LSGroupParticipantJoinState").INVITED))}):u?r.filter(function(a){return(a=d("MWGroupMembershipListItem").isHost(a))!=null?a:!1}):r;r=e?t.slice(0).sort(function(a,b){if(a.type===d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.ParticipantAndContact&&b.type===d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.ParticipantAndContact)return a.contact.name.localeCompare(b.contact.name);if(a.type===d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.CommunityMember&&b.type===d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.CommunityMember)return a.communityMember.name.localeCompare(b.communityMember.name);return a.type===d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.ServerSearchResult&&b.type===d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.ServerSearchResult?a.serverSearchResult.displayName.localeCompare(b.serverSearchResult.displayName):0}):t;var z=d("LSMessagingThreadTypeUtil").isArmadilloSecure(w.threadType);c("useMAWGetGroupSuperAdmin")(w.threadKey,z,a);e=m(function(a){var b=d("MWGroupMembershipListItem").contactId(a);return l.jsx(c("MWLSGroupMembershipMemberCell.react"),{canMessageUser:!y,folder:f,isMAWParticipantSuperAdmin:z&&x!=null?x===(k||(k=d("I64"))).to_string(b):!1,isSecure:z,membershipListItem:a,onClose:q,showAdminIndicator:s,showHostIndicator:s,showInvitedByViewerOnly:v,showModeratorIndicator:s,thread:w},(k||(k=d("I64"))).to_string(b))},[f,y,z,q,s,v,x,w]);return r.length===0&&u&&i===!1&&g===!1?l.jsx(d("react-strict-dom").html.div,{style:o.noHosts,children:l.jsx(c("MWDialogTextPairing.react"),{body:h._("__JHASH__M-jFobtfz3M__JHASH__"),bodyColor:"secondary",headline:h._("__JHASH__7DQH5InZyqq__JHASH__"),textAlign:"center"})}):b?r.map(e):l.jsx(c("MDSInfiniteScrollList.react"),{hasMore:g,isLoading:i,items:r,loadingIndicator:l.jsx(c("MWMemberListGlimmer.react"),{}),onLoadMore:p,renderItem:e})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("MWParticipantsForBroadcastChannelUtils",["Int64Hooks","LSClearDiscoverableChatsParticipantsAndRangesStoredProcedure","LSFactory","LSFetchDiscoverableChatParticipantsStoredProcedure","LSIntEnum","LSMessagingThreadTypeUtil","ReQL","ReQLSuspense","promiseDone","react","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=(j||d("react")).useCallback;function a(a,b){var e=(h||(h=c("useReStore")))();d("Int64Hooks").useEffectInt64(function(){d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(a.threadType)&&c("promiseDone")(e.runInTransaction(function(e){return c("LSFetchDiscoverableChatParticipantsStoredProcedure")(c("LSFactory")(e),{cursor:"",maxName:"",source:(i||(i=d("LSIntEnum"))).ofNumber(b),threadKey:a.threadKey})},"readwrite",void 0,void 0,f.id+":39"))},[e,b,a.threadKey,a.threadType])}function b(){var a=(h||(h=c("useReStore")))();return k(function(){return a.runInTransaction(function(a){return c("LSClearDiscoverableChatsParticipantsAndRangesStoredProcedure")(c("LSFactory")(a))},"readwrite",void 0,void 0,f.id+":59")},[a])}function e(a){var b=(h||(h=c("useReStore")))();return d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(b.tables.discoverable_chat_participants_ranges_v2__generated).getKeyRange(a)},[b,a],f.id+":75")}g.useFetchBroadcastChannelMembers=a;g.useClearBroadcastChannelParticipantsList=b;g.useMWParticipantsForBroadcastChannelRanges=e}),98);
__d("MWCMInboxInfoMemberList.react",["fbt","I64","LSMessagingThreadTypeUtil","MWGroupMembershipListItemWrapper","MWLSGroupMembershipDialog.entrypoint","MWLSGroupMembershipMemberList.react","MWMemberListGlimmer.react","MWPBumpEntityKey","MWParticipantsForBroadcastChannelUtils","MWXIconForListCell.react","MWXIconGroup","MWXListCellPressable.react","MWXText.react","ReQL","ReQLSuspense","pageID","promiseDone","react","useCommunityMembers","useMWXEntryPointDialog","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=j||(j=d("react")),m=j.useEffect,n="inbox_info_member_list_"+c("pageID"),o="member_list_profile_sheet_source_"+c("pageID"),p=(k||(k=d("I64"))).of_int32(7);function a(a){var b=a.folder,e=a.thread,g=(i||(i=c("useReStore")))(),j=b==null?e.threadKey:b.folderId;d("useCommunityMembers").useFetchCommunityMembers({communityIdOrThreadKey:j,requestId:n,source:p,thread:e});var q=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(g.tables.community_members.index("communitySource")).getKeyRange(j,p,n).take(15)},[g,j],f.id+":89");d("MWParticipantsForBroadcastChannelUtils").useFetchBroadcastChannelMembers(e,0);a=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(g.tables.discoverable_chat_participants).getKeyRange(e.threadKey).take(15)},[g,e.threadKey],f.id+":101");var r=d("useCommunityMembers").useClearMemberList(),s=d("useCommunityMembers").useClearMemberList(14),t=d("MWParticipantsForBroadcastChannelUtils").useClearBroadcastChannelParticipantsList(),u=(k||(k=d("I64"))).to_string(e.threadKey),v=d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(e.threadType);v=v?a.map(function(a){return d("MWGroupMembershipListItemWrapper").tToRE({tag:"BroadcastChannelParticipant",value:a})}):q.map(function(a){return d("MWGroupMembershipListItemWrapper").tToRE({tag:"CommunityMember",value:a})});m(function(){c("promiseDone")(r(n));c("promiseDone")(s(o));c("promiseDone")(t());return function(){c("promiseDone")(r(n)),c("promiseDone")(s(o)),c("promiseDone")(t())}},[u,r,t,s]);m(function(){q.length>0&&d("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw.cm.member_list","community_members_loaded")},[q.length]);var w={folder:b};u=c("useMWXEntryPointDialog")(c("MWLSGroupMembershipDialog.entrypoint"),{groupID:k.to_string((a=b==null?void 0:b.fbGroupId)!=null?a:(k||(k=d("I64"))).zero)});var x=u[0],y=function(){return x(w)};return v.length===0?l.jsx(c("MWMemberListGlimmer.react"),{}):l.jsxs(l.Fragment,{children:[l.jsx(c("MWLSGroupMembershipMemberList.react"),{disableScroll:!0,doSortParticipants:!1,folder:b,participantsAndContacts:v,showAdmodIndicator:!0,showAdmodsOnly:!1,showHostsOnly:!1,showInvitedByViewerOnly:!1,thread:e}),l.jsx(c("MWXListCellPressable.react"),{addOnStart:l.jsx("div",{className:"x6s0dn4 xljulmy x14yjl9h xudhj91 x18nykt9 xww2gxu x78zum5 xc9qbxq xl56j7k x14qfxbe",children:l.jsx(c("MWXIconForListCell.react"),{hasBackground:!1,icon:c("MWXIconGroup"),size:"medium"})}),content:l.jsx(c("MWXText.react"),{type:"headline4",children:h._("__JHASH__BN54OIlz3MA__JHASH__")}),onPress:function(a){d("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw.cm.member_list","see_all"),y()},size:"medium"})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("MWXIconFriendGenericCheckmark",["MWXSvgIcon","SVGIcon","cr:9161","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=d("MWXSvgIcon").mwxSvgIcon(d("SVGIcon").svgIcon(b("cr:9161")),c("gkx")("23219"));g["default"]=a}),98);
__d("MWCMInboxInfoMemberRequests.react",["fbt","Int64Hooks","MWCMRequestToJoinUtils","MWInboxInfoButton.react","MWInboxInfoMemberRequestsPushPage.react","MWXIconForListCell.react","MWXIconFriendGenericCheckmark","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.pushPage,e=a.thread,f=d("Int64Hooks").useCallbackInt64(function(a){if(b!=null)return b(function(b){return j.jsx(c("MWInboxInfoMemberRequestsPushPage.react"),{onReturn:b.onReturn,parentSurface:a,threadKey:e.threadKey})})},[b,e.threadKey]);a=d("MWCMRequestToJoinUtils").memberRequestsMenuItemSubtitle(e);return j.jsx(c("MWInboxInfoButton.react"),{addOnStart:j.jsx(c("MWXIconForListCell.react"),{icon:c("MWXIconFriendGenericCheckmark")}),label:h._("__JHASH__4FAWQwvEk9h__JHASH__"),onPress:function(){return f()},subLabel:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("MWCMSubthreadlistMenuItem.react",["fbt","I64","MWInboxInfoButton.react","MWInboxInfoPanelContext.react","MWXIconForListCell.react","MWXIconMenuItemThread","ReQL","ReQLSuspense","intlSummarizeNumber","react","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||d("react");function a(a){var b=a.threadKey,e=(i||(i=c("useReStore")))();a=(a=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(e.tables.threads,["subthreadCount"]).getKeyRange(b)},[e,b],f.id+":29"))==null?void 0:a.subthreadCount;a=a!=null?"("+c("intlSummarizeNumber")((j||(j=d("I64"))).to_int32(a))+")":"";a=h._("__JHASH__B36kC69TSuv__JHASH__",[h._param("subthread_count",a)]);var g=d("MWInboxInfoPanelContext.react").useMWInboxInfoPanelContext(),k=g.setShowSubthreadList;return l.jsx(c("MWInboxInfoButton.react"),{addOnStart:l.jsx(c("MWXIconForListCell.react"),{icon:c("MWXIconMenuItemThread")}),label:a,onPress:function(){k(!0)}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("MWChannelsPersonalInboxOptInPage.react",["fbt","CometPlaceholder.react","Int64Hooks","LSFactory","LSFetchDiscoverableChatsPersonalInboxInfoStoredProcedure","LSHideBroadcastChannelFromPersonalInboxStoredProcedure","LSShowBroadcastChannelInPersonalInboxStoredProcedure","Locale","MWAdminForBroadcastChannelUtils","MWLogBroadcastChannelFalcoEvent","MWXCircleButton.react","MWXColumn.react","MWXIconArrowLeft","MWXIconArrowRight","MWXListCell.react","MWXProfilePhoto.react","MWXRow.react","MWXRowItem.react","MWXSwitch.react","MWXText.react","MWXTextPairing.react","MWXThreadThemeColor","ReQL","ReQLSuspense","getLSMediaContactProfilePictureUrl","promiseDone","react","useReStore","useSinglePartialViewImpression"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));b=j;var l=b.useCallback,m=b.useId,n=b.useState;function o(a){var b=a.channelCreator,e=a.personalInboxInfo,g=a.threadKey;a=n(e.isShownInPersonalInbox);var j=a[0],o=a[1];a=m();var p=(i||(i=c("useReStore")))(),q=h._("__JHASH__cO3zYIieEQ4__JHASH__"),r=l(function(a){c("promiseDone")(a?p.runInTransaction(function(a){return c("LSShowBroadcastChannelInPersonalInboxStoredProcedure")(c("LSFactory")(a),{threadId:g})},"readwrite",void 0,void 0,f.id+":78"):p.runInTransaction(function(a){return c("LSHideBroadcastChannelFromPersonalInboxStoredProcedure")(c("LSFactory")(a),{threadId:g})},"readwrite",void 0,void 0,f.id+":86"),function(){o(a)})},[p,g]),s=d("Int64Hooks").useCallbackInt64(function(){d("MWLogBroadcastChannelFalcoEvent").logBroadcastChannelFalcoEvent({action:2,event:276,parentSurface:11,source:62,surface:16,threadFbid:g})},[g]);s=c("useSinglePartialViewImpression")({onImpressionStart:s});return k.jsxs(k.Fragment,{children:[k.jsx(c("MWXRow.react"),{expanding:!0,children:k.jsx(c("MWXRowItem.react"),{expanding:!0,children:k.jsx(c("MWXListCell.react"),{addOnEnd:k.jsx(c("MWXSwitch.react"),{"aria-describedby":a,"aria-label":q,onValueChange:function(){r(!j)},size:"small",value:j}),addOnEndVerticalAlign:"center",addOnStart:k.jsx(c("MWXProfilePhoto.react"),{size:36,source:{uri:c("getLSMediaContactProfilePictureUrl")(b)}}),content:k.jsx(c("MWXTextPairing.react"),{headline:k.jsx(c("MWXText.react"),{type:"headline4",children:q}),level:4}),ref:s,size:"large"})})}),k.jsx(c("MWXRow.react"),{paddingHorizontal:16,paddingVertical:16,children:k.jsx(c("MWXRowItem.react"),{children:k.jsx("div",{className:"x1e558r4 x150jy0e",children:k.jsx(c("MWXText.react"),{color:"tertiary",type:"body4",children:h._("__JHASH__nO-_JTOnN3T__JHASH__",[h._param("page_name",b.name),h._param("acting_account_name",e.actingAccountName)])})})})})]})}o.displayName=o.name+" [from "+f.id+"]";function a(a){var b=a.onReturn,e=a.threadKey,g=(i||(i=c("useReStore")))();a=d("MWAdminForBroadcastChannelUtils").useFetchBroadcastChannelCreator(e);d("Int64Hooks").useEffectInt64(function(){c("promiseDone")(g.runInTransaction(function(a){return c("LSFetchDiscoverableChatsPersonalInboxInfoStoredProcedure")(c("LSFactory")(a),{threadKey:e})},"readwrite",void 0,void 0,f.id+":182"))},[g,e]);var j=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(g.tables.discoverable_chats_personal_inbox_info).getKeyRange(e)},[g,e],f.id+":193");return k.jsxs(c("MWXColumn.react"),{expanding:!0,children:[k.jsxs(c("MWXRow.react"),{align:"start",verticalAlign:"center",children:[k.jsx(c("MWXRowItem.react"),{children:k.jsx(c("MWXCircleButton.react"),{color:d("MWXThreadThemeColor").mwxThreadThemeColor("var(--mwp-header-button-color)"),icon:d("Locale").isRTL()?c("MWXIconArrowRight"):c("MWXIconArrowLeft"),label:h._("__JHASH__wSyF3E_Fmrl__JHASH__"),onPress:b,size:32,type:"deemphasized"})}),k.jsx(c("MWXRowItem.react"),{children:k.jsx(c("MWXText.react"),{type:"headlineEmphasized2",children:h._("__JHASH__iMHo6cQn9S___JHASH__")})})]}),k.jsx(c("CometPlaceholder.react"),{fallback:null,children:a!=null&&j!=null?k.jsx(o,{channelCreator:a,personalInboxInfo:j,threadKey:e}):null})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("MWEncryptedBackupsThreadListNux.react",["CometPlaceholder.react","MWEBEntrypointsKillswitch.enum","cr:2046","cr:2542","cr:8728","react","useMWEBBackupState"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function j(a){a=a.children;var d=c("useMWEBBackupState")({entrypoint:c("MWEBEntrypointsKillswitch.enum").INBOX_THREADLIST});switch(d){case 4:return b("cr:2542")||b("cr:2046")?b("cr:2542")!=null?i.jsx(b("cr:2542"),{children:a}):b("cr:2046")!=null&&i.jsx(b("cr:2046"),{queryRef:void 0,children:a}):a;case 1:return null;case 2:return b("cr:8728")?i.jsx(c("CometPlaceholder.react"),{fallback:null,children:i.jsx(b("cr:8728"),{children:a})}):a;default:return a}}j.displayName=j.name+" [from "+f.id+"]";function a(a){a=a.children;return i.jsx(c("CometPlaceholder.react"),{fallback:null,children:i.jsx(j,{children:a})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MWInboxInfoChannelCreatorProfileLink.react",["fbt","CometPageVerificationIcon.react","CurrentEnvironment","I64","LSContactBitOffset","MWAdminForBroadcastChannelUtils","MWXListCellPressable.react","MWXProfilePhoto.react","MWXText.react","MWXTextPairing.react","XCometProfileControllerRouteBuilder","getLSMediaContactProfilePictureUrl","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i||d("react"),l={creatorBadge:{display:"xt0psk2",marginStart:"xsgj6o6",marginLeft:null,marginRight:null,$$css:!0}};function a(a){var b,e;a=a.threadKey;a=d("MWAdminForBroadcastChannelUtils").useFetchBroadcastChannelCreator(a);if(a==null)return null;b=(b=c("XCometProfileControllerRouteBuilder").buildUri({id:(j||(j=d("I64"))).to_string(a.id)}).setDomain("www.facebook.com"))==null?void 0:(b=b.setProtocol("https"))==null?void 0:b.toString();var f=c("CurrentEnvironment").messengerdotcom?"_blank":"_self";e=d("LSContactBitOffset").has(23,(e=a)!=null?e:{});return k.jsx(c("MWXListCellPressable.react"),{addOnStart:k.jsx(c("MWXProfilePhoto.react"),{size:36,source:{uri:c("getLSMediaContactProfilePictureUrl")(a)}}),addOnStartVerticalAlign:"top",content:k.jsx(c("MWXTextPairing.react"),{headline:k.jsxs(k.Fragment,{children:[k.jsx(c("MWXText.react"),{type:"headline4",children:a.name}),e?k.jsx(c("CometPageVerificationIcon.react"),{size:"small",verificationBadge:"BLUE_VERIFIED",xstyle:l.creatorBadge}):null]}),level:4,meta:h._("__JHASH__NOWur2M4WPy__JHASH__")}),linkProps:{target:f,url:b},size:"medium"})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("MWXIconAccountSwitch",["MWXSvgIcon","SVGIcon","cr:8516","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=d("MWXSvgIcon").mwxSvgIcon(d("SVGIcon").svgIcon(b("cr:8516")),c("gkx")("23219"));g["default"]=a}),98);
__d("MWInboxInfoChannelPersonalInboxOptIn.react",["fbt","Int64Hooks","MWChannelsPersonalInboxOptInPage.react","MWInboxInfoButton.react","MWXIconAccountSwitch","MWXIconForListCell.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.pushPage,e=a.thread,f=d("Int64Hooks").useCallbackInt64(function(){return b(function(a){return j.jsx(c("MWChannelsPersonalInboxOptInPage.react"),{onReturn:a.onReturn,threadKey:e.threadKey})})},[b,e.threadKey]);return j.jsx(c("MWInboxInfoButton.react"),{addOnStart:j.jsx(c("MWXIconForListCell.react"),{icon:c("MWXIconAccountSwitch")}),label:h._("__JHASH__iMEghxYa-Iu__JHASH__"),onPress:function(){return f()},subLabel:void 0})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("MWXIconAppFacebook",["MWXSvgIcon","SVGIcon","cr:8932","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=d("MWXSvgIcon").mwxSvgIcon(d("SVGIcon").svgIcon(b("cr:8932")),c("gkx")("23219"));g["default"]=a}),98);
__d("MWInboxInfoEventsListSection.react",["fbt","BasePortal.react","GroupsCometChatsEngagementLogger","I64","JSResourceForInteraction","LSCommunityBitOffset","MWCMGetValidId","MWInboxInfoPanelContext.react","MWInboxInfoSubPageHeader.react","MWLSThread","MWXButton.react","MWXCircleButton.react","MWXColumn.react","MWXColumnItem.react","MWXIconAppFacebook","MWXIconDots3Horizontal","MWXImage.react","MWXLazyPopoverTrigger.react","MWXListCellPressable.react","MWXPopoverLoadingState.react","MWXTextPairing.react","ReQL","ReQLSuspense","XCometEventCreateControllerRouteBuilder","XCometEventPermalinkControllerRouteBuilder","formatDate","gkx","react","useCommunityFolder","useGroupsCometChatsEngagementImpressionLogger","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=j||(j=d("react"));b=j;var m=b.useCallback,n=b.useRef,o={eventImage:{borderTopStartRadius:"x1ykpwxx",borderTopEndRadius:"x118zf8b",borderBottomEndRadius:"xnwxkdh",borderBottomStartRadius:"xfocsrx",marginEnd:"xq8finb",marginLeft:null,marginRight:null,$$css:!0}},p=c("JSResourceForInteraction")("MWInboxInfoEventsListDropdownMenu.react").__setRef("MWInboxInfoEventsListSection.react");function q(a){var b=a.commonLoggingData,e=a.event,f=e.eventId,g=e.eventName,i=e.eventPictureUrl,j=e.eventPictureUrlFallback,m=e.numGoingUsers,n=e.numInterestedUsers;e=e.startTimeMs;a=a.isAdmin;m=(k||(k=d("I64"))).to_string(m);n=k.to_string(n);i=(i=i)!=null?i:j;j=e!=null?(k||(k=d("I64"))).to_float(e):0;e=new Date(j);var q=c("formatDate")(e,"M d");e=c("formatDate")(e,"g:ia");q=h._("__JHASH__Ah2RnxbIZcr__JHASH__",[h._param("Event start day",q),h._param("Event start time",e)]);e=j<=Date.now()&&j!==0;j=h._("__JHASH__v5PrQVy1sl6__JHASH__",[h._plural(Number(m),"number")]);m=h._("__JHASH__XSB3PsCrhNb__JHASH__",[h._plural(Number(m),"number")]);n=h._("__JHASH__fXxTlY6mdIj__JHASH__",[h._plural(Number(n),"number")]);e=e?j:m.toString()+" \u2022\xa0"+n.toString();n=(j=c("XCometEventPermalinkControllerRouteBuilder").buildUri({event_id:(k||(k=d("I64"))).to_string(f)}).setProtocol("https"))==null?void 0:(m=j.setDomain("www.facebook.com"))==null?void 0:m.toString();var r=l.jsx(c("MWXTextPairing.react"),{body:q,bodyColor:"secondary",bodyLineLimit:2,headline:g,level:4,meta:e}),s=l.jsx(c("MWXImage.react"),{height:50,src:i,xstyle:o.eventImage});j=a&&c("gkx")("24076");return j?l.jsx(c("MWXLazyPopoverTrigger.react"),{align:"end",fallback:l.jsx(c("MWXPopoverLoadingState.react"),{withArrow:!1}),popoverProps:{eventId:f},popoverResource:p,popoverType:"menu",children:function(a,b,d,e,f,g){return l.jsx(c("MWXListCellPressable.react"),{addOnEnd:l.jsx(c("MWXCircleButton.react"),{icon:c("MWXIconDots3Horizontal"),label:h._("__JHASH__BtbmbekLHtu__JHASH__"),onHoverIn:e,onHoverOut:f,onPress:b,onPressIn:g,ref:a,size:40,type:"deemphasized"}),addOnStart:s,content:r,size:"medium",testid:void 0})}}):l.jsx(c("MWXListCellPressable.react"),{addOnEnd:l.jsx(c("MWXCircleButton.react"),{icon:c("MWXIconAppFacebook"),label:h._("__JHASH__X0KyQ0oU0tZ__JHASH__"),linkProps:{target:"_blank",url:n},onPress:function(){d("GroupsCometChatsEngagementLogger").log(babelHelpers["extends"]({},b,{action:"tap",client_extras:{event_id:(k||(k=d("I64"))).to_string(f)},event:"transition_to_fb_group",parent_surface:"thread_view",source:"event_row",surface:"unknown"}))},size:40}),addOnStart:s,content:r,size:"medium",testid:void 0})}q.displayName=q.name+" [from "+f.id+"]";function r(a){a=Array.from(a).sort(function(a,b){var c;if((k||(k=d("I64"))).lt((c=a==null?void 0:a.startTimeMs)!=null?c:(k||(k=d("I64"))).zero,(c=b==null?void 0:b.startTimeMs)!=null?c:(k||(k=d("I64"))).zero))return-1;return(k||(k=d("I64"))).gt((c=a==null?void 0:a.startTimeMs)!=null?c:(k||(k=d("I64"))).zero,(a=b==null?void 0:b.startTimeMs)!=null?a:(k||(k=d("I64"))).zero)?1:0});var b=[],c=[];a.forEach(function(a){if(a==null)return a;var e=a.startTimeMs!=null?(k||(k=d("I64"))).to_float(a.startTimeMs):-1;e=e<=Date.now()&&e!==-1;e?b.push(a):c.push(a)});return c.concat(b)}function a(a){var b=a.loggingParentSurface,e=a.loggingSource,g=a.onReturn,j=a.threadKey,o=(i||(i=c("useReStore")))();a=d("MWLSThread").useThreadExn(j);var p=c("useCommunityFolder")(a),s=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(o.tables.cm_channel_events.index("eventsInThread")).getKeyRange(j).map(function(a){return d("ReQLSuspense").first(d("ReQL").fromTableAscending(o.tables.fb_events).getKeyRange(a.eventId),f.id+":276")})},[o,j],f.id+":271"),t=p!=null?d("LSCommunityBitOffset").has(9,p):!1,u=p!=null&&d("LSCommunityBitOffset").has(52,p),v=n(!1),w=m(function(){v.current=!0;return g()},[g]),x=h._("__JHASH__1bPihBJj8iC__JHASH__"),y=d("MWInboxInfoPanelContext.react").useMWInboxInfoPanelContext();y=y.footerContentRef;u=!v.current&&u;a=(a=c("XCometEventCreateControllerRouteBuilder").buildUri({group_id:p!=null?(k||(k=d("I64"))).to_string(p.fbGroupId):void 0,group_thread_id:(k||(k=d("I64"))).to_string(a.threadKey)}).setProtocol("https"))==null?void 0:(a=a.setDomain("www.facebook.com"))==null?void 0:a.toString();var z={group_id:d("MWCMGetValidId").MWCMHasValidFbGroupId(p==null?void 0:p.fbGroupId)?(k||(k=d("I64"))).to_string(p.fbGroupId):null,surface:"event_list",thread_id:(k||(k=d("I64"))).to_string(j)};p=r(s);s=c("useGroupsCometChatsEngagementImpressionLogger")(babelHelpers["extends"]({},z,{client_extras:{event_id_list:p.map(function(a){return(k||(k=d("I64"))).to_string(a.eventId)}).join(",")},event:"event_list_rendered",parent_surface:b,source:e}));return l.jsxs(l.Fragment,{children:[l.jsx(c("MWInboxInfoSubPageHeader.react"),{onPressBack:w,title:x}),l.jsx(c("MWXColumn.react"),{hasDividers:!1,paddingHorizontal:8,paddingVertical:16,ref:s,spacing:20,children:p.map(function(a){return l.jsx(c("MWXColumnItem.react"),{children:l.jsx(q,{commonLoggingData:z,event:a,isAdmin:t})},(k||(k=d("I64"))).to_string(a.eventId))})}),l.jsx(c("BasePortal.react"),{target:y.current,children:u&&l.jsx("div",{className:"x1yztbdb x1pi30zi x1swvt13",children:l.jsx(c("MWXButton.react"),{label:h._("__JHASH__jhw66QHG4uX__JHASH__"),linkProps:{target:"_blank",url:a},onPress:function(){d("GroupsCometChatsEngagementLogger").log(babelHelpers["extends"]({},z,{action:"tap",event:"create_event_clicked",parent_surface:"thread_settings",source:"create_new_event_button"}))},type:"secondary"})})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("MWInboxInfoViewPinnedMessages.react",["fbt","JSResourceForInteraction","LSMessagingThreadTypeUtil","MWBroadcastChannelLoggingShapes","MWInboxInfoButton.react","MWLogBroadcastChannelFalcoEvent","MWPBumpEntityKey","MWXIconForListCell.react","MWXIconPushpin","react","useMWXLazyDialog"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k=h._("__JHASH__xaWBg6G3BFD__JHASH__"),l=c("JSResourceForInteraction")("MWPinnedMessagesDialog.react").__setRef("MWInboxInfoViewPinnedMessages.react");function a(a){var b=a.thread;a=c("useMWXLazyDialog")(l);var e=a[0];a={eventName:"open_view_pinned_messages_dialog",threadKey:b.threadKey,threadType:b.threadType};var f=d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(b.threadType);return j.jsx(c("MWInboxInfoButton.react"),{addOnStart:j.jsx(c("MWXIconForListCell.react"),{icon:c("MWXIconPushpin")}),label:k,loggingEvent:a,onPress:function(){d("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw.infobar","view_pinned_messages"),f&&d("MWLogBroadcastChannelFalcoEvent").logBroadcastChannelFalcoEvent(babelHelpers["extends"]({},d("MWBroadcastChannelLoggingShapes").VIEW_PINNED_MESSAGES_FROM_THREAD_DETAIL,{threadFbid:b.threadKey})),e({threadKey:b.threadKey})},testid:void 0})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("MWInboxInfoGroupInfoSection.react",["LSCommunityBitOffset","MWCMBotDetailsEntrypoint.react","MWCMInboxInfoGroupEventsButton.react","MWCMInboxInfoGroupLink.react","MWCMInboxInfoMemberRequests.react","MWInboxInfoChannelCreatorProfileLink.react","MWInboxInfoChannelPersonalInboxOptIn.react","MWInboxInfoViewPinnedMessages.react","MWPActor.react","cr:3773","cr:5034","cr:902","gkx","qex","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var e=a.pushPage,f=a.thread;a=a.utilities;var g=a.folder,h=a.inviteLink,j=a.isAdmin,k=a.isChannel,l=a.isSMCC,m=a.shouldShowBotEntryPoint,n=a.shouldShowPinnedMessagesLink,o=a.showCMMemberRequestsMenuItem,p=a.showMemberRequests;a=a.showSubthreadListButton;j=k&&j&&d("MWPActor.react").isAPPlus();j=[k?i.jsx(c("MWInboxInfoChannelCreatorProfileLink.react"),{threadKey:f.threadKey},"creator-profile"):null,j&&c("gkx")("3812")&&c("qex")._("837")?i.jsx(c("MWInboxInfoChannelPersonalInboxOptIn.react"),{pushPage:e,thread:f},"channel-personal-inbox"):null,m?i.jsx(c("MWCMBotDetailsEntrypoint.react"),{thread:f},"bot"):null,k&&b("cr:902")!=null?i.jsx(b("cr:902"),{threadKey:f.threadKey},"share"):null,g!=null&&d("LSCommunityBitOffset").has(3,g)?i.jsx(c("MWCMInboxInfoGroupLink.react"),{folder:g},"group-link"):null,a&&b("cr:5034")!=null?i.jsx(b("cr:5034"),{threadKey:f.threadKey},"subthreads-button"):null,h!=null?h:null,g!=null&&!l?i.jsx(c("MWCMInboxInfoGroupEventsButton.react"),{pushPage:e,threadKey:f.threadKey},"events-button"):null,n?i.jsx(c("MWInboxInfoViewPinnedMessages.react"),{thread:f},"pin"):null,p&&b("cr:3773")!=null?i.jsx(b("cr:3773"),{pushPage:e,thread:f},"reqs"):null,o?i.jsx(c("MWCMInboxInfoMemberRequests.react"),{pushPage:e,thread:f},"cm-member-requests"):null];m=j.some(function(a){return a!=null});return m?j:null}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MWInboxInfoMemberList.react",["fbt","LSMessagingThreadTypeUtil","MWAddMemberToGroupListCell.react","MWCMIsAnyCMThread","MWGroupLimitContainer.react","MWGroupMembershipListItem","MWLSGroupMembershipMemberList.react","MWPParticipantsAndContactsForThread_DO_NOT_USE_THIS_WILL_KILL_PERFORMANCE","MWXListCell.react","MWXText.react","canMWAddMemberToGroupThread","isFeatureLimitEnabled","react","useIsReadOnlyFeatureLimitedWithThreadType","withCometPlaceholder"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function k(a){a=a.thread;return j.jsx(c("MWGroupLimitContainer.react"),{groupLimitReachedContent:j.jsx(c("MWXListCell.react"),{content:j.jsx(c("MWXText.react"),{color:"secondary",testid:void 0,type:"body4",children:h._("__JHASH____m4bWP_4pT__JHASH__")}),size:"medium"}),thread:a,children:j.jsx(c("MWAddMemberToGroupListCell.react"),{thread:a})})}k.displayName=k.name+" [from "+f.id+"]";function a(a){a=a.thread;var b=d("LSMessagingThreadTypeUtil").isArmadilloSecure(a.threadType);b=c("useIsReadOnlyFeatureLimitedWithThreadType")(a.threadType)&&(!b||c("isFeatureLimitEnabled")());b=c("canMWAddMemberToGroupThread")(a,b);var e=d("MWPParticipantsAndContactsForThread_DO_NOT_USE_THIS_WILL_KILL_PERFORMANCE").useValue(a),f=!c("MWCMIsAnyCMThread")(a.threadType);return j.jsxs(j.Fragment,{children:[j.jsx(c("MWLSGroupMembershipMemberList.react"),{disableScroll:!0,participantsAndContacts:e.map(function(a){var b=a[0];a=a[1];return{contact:a,participant:b,type:d("MWGroupMembershipListItem").MWGroupMembershipMemberTypes.ParticipantAndContact}}),showAdmodIndicator:f,showAdmodsOnly:!1,showHostsOnly:!1,showInvitedByViewerOnly:!1,thread:a}),b?j.jsx(k,{thread:a}):null]})}a.displayName=a.name+" [from "+f.id+"]";b=d("withCometPlaceholder").withCometPlaceholder(a);g["default"]=b}),226);
__d("MWInboxInfoMemberRequests.react",["fbt","Int64Hooks","MWInboxInfoButton.react","MWInboxInfoMemberRequestsPushPage.react","MWXIconForListCell.react","MWXIconFriendGenericCheckmark","ReQL","ReQLSuspense","react","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");function a(a){var b=a.pushPage,e=a.thread,g=(i||(i=c("useReStore")))();a=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(g.tables.group_membership_approval_requests,[]).getKeyRange(e.threadKey)},[g,e.threadKey],f.id+":37");a=a.length;var j=d("Int64Hooks").useCallbackInt64(function(a){if(b!=null)return b(function(b){return k.jsx(c("MWInboxInfoMemberRequestsPushPage.react"),{onReturn:b.onReturn,parentSurface:a,threadKey:e.threadKey})})},[b,e.threadKey]);return k.jsx(c("MWInboxInfoButton.react"),{addOnStart:k.jsx(c("MWXIconForListCell.react"),{icon:c("MWXIconFriendGenericCheckmark")}),label:h._("__JHASH__4FAWQwvEk9h__JHASH__"),onPress:function(){return j()},subLabel:a>0?h._("__JHASH__8y8AMiPf1gZ__JHASH__",[h._plural(a,"number")]):void 0})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("MWInboxInfoSharedContentFile.react",["fbt","I64","MWFilePressable.react","MWInboxInfoSharedContentFilePreview.react","MWXRow.react","MWXRowItem.react","MWXTextPairing.react","formatFileSize","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i||d("react"),l={contentRowItem:{paddingTop:"xz9dl7a",paddingEnd:"xn6708d",paddingBottom:"xsag5q8",paddingStart:"x1ye3gou",$$css:!0},filePressable:{overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},fileRow:{marginTop:"xdj266r",marginEnd:"x11i5rnm",marginBottom:"xat24cr",marginStart:"x1mh8g0r",paddingTop:"xexx8yu",paddingEnd:"x4uap5",paddingBottom:"x18d9i69",paddingStart:"xkhd6sd",$$css:!0},iconRowItem:{backgroundColor:"xlhe6ec",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",height:"xdd8jsf",overflowX:"x6ikm8r",overflowY:"x10wlt62",paddingTop:"xyinxu5",paddingEnd:"xmns6w2",paddingBottom:"x1g2khh7",paddingStart:"xpkgp8e",width:"xvni27",$$css:!0}};function a(a){var b=a.attachmentID,e=a.fileName,f=a.fileSize,g=a.messageID,i=a.onPress;a=a.url;e=e!=null?e:h._("__JHASH__uiTAWyhPCWI__JHASH__");f=f!=null?(j||(j=d("I64"))).to_int32(f):void 0;f=f!=null?c("formatFileSize")(f):null;return k.jsx(c("MWFilePressable.react"),{attachmentID:b,entryPoint:"inbox_info_v1",mediaRenderQpl:null,messageID:g,onPress:i,url:a,xstyle:l.filePressable,children:k.jsxs(c("MWXRow.react"),{expanding:!0,paddingTop:0,verticalAlign:"center",xstyle:l.fileRow,children:[k.jsx(c("MWXRowItem.react"),{xstyle:l.iconRowItem,children:k.jsx(c("MWInboxInfoSharedContentFilePreview.react"),{messageID:g})}),k.jsx(c("MWXRowItem.react"),{expanding:!0,xstyle:l.contentRowItem,children:k.jsx(c("MWXTextPairing.react"),{body:f,bodyColor:"secondary",headline:e,headlineLineLimit:1,level:4})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("MWInboxInfoSharedContentFilesTab.react",["BaseTheme.react","CometInfiniteScrollTrigger.react","CometProgressIndicator.react","I64","LSMediaUrlAttachment","MWChatMessageId","MWInboxInfoSharedContentEmptyTab.react","MWInboxInfoSharedContentFile.react","MWInboxInfoSharedContentLogger","MWInboxInfoSharedContentTheme","MWSharedAttachmentsSectionHooks","MWXColumn.react","MWXColumnItem.react","react","useLoadMoreThreadSharedAttachments.react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||(h=d("react"));b=h;var k=b.useCallback,l=b.useEffect,m=b.useRef,n={container:{marginBottom:"x1e56ztr",$$css:!0},progressIndicator:{display:"x78zum5",justifyContent:"xl56j7k",marginTop:"x1xmf6yo",paddingTop:"x123j3cw",paddingEnd:"x1mpkggp",paddingBottom:"xs9asl8",paddingStart:"x1t2a60a",$$css:!0}};function a(a){var b=a.isSecureThread,e=a.onFirstLoadedMedia,f=a.thread;a=d("MWSharedAttachmentsSectionHooks").useQueryFileAttachments(f.threadKey);var g=a[0],h=a[1],o=a[2];a[3];a=a[4];var p=m(!1),q=c("useLoadMoreThreadSharedAttachments.react")(h);l(function(){q()},[q]);o=d("MWSharedAttachmentsSectionHooks").useLoader({attachmentsRange:o,hasMore:(h=a)!=null?h:!0,loadMore:q,media:g});h=o[0];var r=o[1],s=o[2];l(function(){p.current===!1&&s===!0&&(p.current=!0,e(g))},[s,g,e]);var t=k(function(a){d("MWInboxInfoSharedContentLogger").logFilePress(a,f,d("MWInboxInfoSharedContentLogger").SharedContentEntrypoint.FilesTab,b,g.length)},[f,b,g]);return g.length===0&&a===!1?j.jsx(c("MWInboxInfoSharedContentEmptyTab.react"),{contentType:"files",threadKey:f.threadKey}):j.jsx(c("BaseTheme.react"),{config:d("MWInboxInfoSharedContentTheme").config,children:j.jsxs(c("MWXColumn.react"),{hasDividers:!0,paddingHorizontal:16,spacing:20,xstyle:n.container,children:[g.map(function(a){return j.jsx(c("MWXColumnItem.react"),{children:j.jsx(c("MWInboxInfoSharedContentFile.react"),{attachmentID:a.attachmentFbid,fileName:a.filename,fileSize:a.filesize,messageID:d("MWChatMessageId").makeSent((i||(i=d("I64"))).to_string(a.threadKey),a.messageId,i.to_string(a.timestampMs)),onPress:function(){return t(a)},url:d("LSMediaUrlAttachment").playableUrl(a)},a.attachmentFbid)},a.attachmentFbid)}),j.jsx(c("CometInfiniteScrollTrigger.react"),{hasMore:(o=a)!=null?o:!0,isLoading:h,onLoadMore:r,xstyle:n.progressIndicator,children:j.jsx(c("CometProgressIndicator.react"),{size:"default"})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MWInboxInfoSharedLinks.react",["BaseTheme.react","CometInfiniteScrollTrigger.react","CometProgressIndicator.react","MWInboxInfoSharedContentEmptyTab.react","MWInboxInfoSharedContentTheme","MWInboxInfoSharedLink.react","MWXColumn.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={progressIndicator:{display:"x78zum5",justifyContent:"xl56j7k",marginBottom:"x1e56ztr",marginTop:"x1xmf6yo",paddingTop:"x123j3cw",paddingEnd:"x1mpkggp",paddingBottom:"xs9asl8",paddingStart:"x1t2a60a",$$css:!0}};function a(a){var b=a.hasMore,e=a.isLoading,f=a.links,g=a.onLoadMore,h=a.onPressLink,k=a.thread;if(f.length===0&&!e&&!b)return i.jsx(c("MWInboxInfoSharedContentEmptyTab.react"),{contentType:"links",threadKey:k.threadKey});else return i.jsx(c("BaseTheme.react"),{config:d("MWInboxInfoSharedContentTheme").config,children:i.jsxs(c("MWXColumn.react"),{hasDividers:!0,paddingHorizontal:16,spacing:20,children:[f.map(function(a){return i.jsx(c("MWInboxInfoSharedLink.react"),{attachment:a,onPress:h,threadType:k.threadType},a.attachmentFbid)}),i.jsx(c("CometInfiniteScrollTrigger.react"),{hasMore:b,isLoading:e,onLoadMore:g,xstyle:j.progressIndicator,children:i.jsx(c("CometProgressIndicator.react"),{size:"default"})})]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MWInboxInfoSharedLinksSection.react",["MWInboxInfoSharedContentLogger","MWInboxInfoSharedLinks.react","MWSharedAttachmentsSectionHooks","react","useLoadMoreThreadSharedAttachments.react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useCallback,k=b.useEffect,l=b.useRef;function a(a){var b=a.isSecureThread,e=a.onFirstLoadedMedia,f=a.thread;a=d("MWSharedAttachmentsSectionHooks").useQueryLinkAttachments(f.threadKey);var g=a[0],h=a[1],m=a[2];a[3];a=a[4];var n=c("useLoadMoreThreadSharedAttachments.react")(h),o=l(!1);k(function(){n()},[n]);m=d("MWSharedAttachmentsSectionHooks").useLoader({attachmentsRange:m,hasMore:(h=a)!=null?h:!0,loadMore:n,media:g});h=m[0];var p=m[1],q=m[2];k(function(){o.current===!1&&q===!0&&(o.current=!0,e(g))},[q,g,e]);m=j(function(){d("MWInboxInfoSharedContentLogger").logLinkPress(f,d("MWInboxInfoSharedContentLogger").SharedContentEntrypoint.LinksTab,b,g.length)},[f,b,g]);return i.jsx(c("MWInboxInfoSharedLinks.react"),{hasMore:(a=a)!=null?a:!0,isLoading:h,links:g,onLoadMore:p,onPressLink:m,thread:f})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MWInboxInfoSharedMediaTab.react",["MWInboxInfoPhotoGallery.react","MWInboxInfoSharedContentLogger","MWSharedAttachmentsSectionHooks","react","useLoadMoreThreadSharedAttachments.react","useMWMediaLoadingQplLogger","useMWV2MediaViewerOpenPlayableUrl","useMWV2MediaViewerOpenPreviewUrl"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;var j=b.useCallback,k=b.useEffect,l=b.useRef;function a(a){var b=a.isSecureThread,e=a.onFirstLoadedMedia,f=a.thread,g=l(!1);a=d("MWSharedAttachmentsSectionHooks").useQueryMediaAttachments(f.threadKey);var h=a[0],m=a[1],n=a[2];a[3];a=a[4];a=a===void 0?!0:a;var o=c("useMWMediaLoadingQplLogger")({entrypoint:"media_gallery",threadType:f.threadType});m=c("useLoadMoreThreadSharedAttachments.react")(m,o.logLoadMediaStart);n=d("MWSharedAttachmentsSectionHooks").useLoader({attachmentsRange:n,hasMore:a,loadMore:m,logLoadMediaCancel:o.logLoadMediaCancel,logLoadMediaSuccess:o.logLoadMediaSuccess,media:h});m=n[0];o=n[1];var p=n[2];k(function(){g.current===!1&&p===!0&&(g.current=!0,e(h))},[p,h,e]);var q=c("useMWV2MediaViewerOpenPreviewUrl")();n=c("useMWV2MediaViewerOpenPlayableUrl")();var r=j(function(a,b,c){return(c=q(a,b))!=null?c:""},[q]),s=j(function(a){d("MWInboxInfoSharedContentLogger").logMediaPress(a,f,d("MWInboxInfoSharedContentLogger").SharedContentEntrypoint.MediaTab,b,h.length)},[f,b,h.length]);return i.jsx(c("MWInboxInfoPhotoGallery.react"),{getPlayableUrl:n,getPreviewUrl:r,hasMore:a,isLoading:m,media:h,onLoadMore:o,onPressMedia:s,threadKey:f.threadKey,threadType:f.threadType})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MWInboxInfoSharedTabContent.react",["MAWCutoverInboxInfoSharedMediaTab.react","MAWSecureInboxInfoSharedFilesTab.react","MAWSecureInboxInfoSharedLinksTab.react","MAWSecureInboxInfoSharedMediaTab.react","MWInboxInfoSharedContentFilesTab.react","MWInboxInfoSharedLinksSection.react","MWInboxInfoSharedMediaTab.react","gkx","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.isBackButtonPressed,c=a.isCutoverThread,d=a.isSecureThread,e=a.onFirstLoadedMedia,f=a.selectedTab,g=a.sharedLinksEnabled;a=a.thread;switch(f){case"media":return i.jsx(k,{isBackButtonPressed:b,isCutoverThread:c,isSecureThread:d,onFirstLoadedMedia:e,thread:a});case"files":return i.jsx(l,{isSecureThread:d,onFirstLoadedMedia:e,thread:a});case"links":return i.jsx(m,{isSecureThread:d,onFirstLoadedMedia:e,sharedLinksEnabled:g,thread:a})}return null}a.displayName=a.name+" [from "+f.id+"]";function j(a){var b=a.isSecureThread,d=a.onFirstLoadedMedia,e=a.sharedLinksEnabled;a=a.thread;if(!e)return null;return b?i.jsx(c("MAWSecureInboxInfoSharedLinksTab.react"),{thread:a}):i.jsx(c("MWInboxInfoSharedLinksSection.react"),{isSecureThread:b,onFirstLoadedMedia:d,thread:a})}j.displayName=j.name+" [from "+f.id+"]";function k(a){var b=a.isBackButtonPressed,d=a.isCutoverThread,e=a.isSecureThread,f=a.onFirstLoadedMedia;a=a.thread;if(d&&c("gkx")("2616")===!0)return i.jsx(c("MAWCutoverInboxInfoSharedMediaTab.react"),{isBackButtonPressed:b,onFirstLoadedMedia:f,secureThreadKey:a.threadKey,threadType:a.threadType});return e?i.jsx(c("MAWSecureInboxInfoSharedMediaTab.react"),{isBackButtonPressed:b,onFirstLoadedMedia:f,thread:a}):i.jsx(c("MWInboxInfoSharedMediaTab.react"),{isSecureThread:e,onFirstLoadedMedia:f,thread:a})}k.displayName=k.name+" [from "+f.id+"]";function l(a){var b=a.isSecureThread,d=a.onFirstLoadedMedia;a=a.thread;return b?i.jsx(c("MAWSecureInboxInfoSharedFilesTab.react"),{thread:a}):i.jsx(c("MWInboxInfoSharedContentFilesTab.react"),{isSecureThread:b,onFirstLoadedMedia:d,thread:a})}l.displayName=l.name+" [from "+f.id+"]";function m(a){var b=a.isSecureThread,c=a.onFirstLoadedMedia,d=a.sharedLinksEnabled;a=a.thread;return i.jsx(j,{isSecureThread:b,onFirstLoadedMedia:c,sharedLinksEnabled:d,thread:a})}m.displayName=m.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MWInboxInfoSharedContent.react",["fbt","MWInboxInfoSharedContentLogger","MWInboxInfoSharedTabContent.react","MWInboxInfoSubPageHeader.react","MWXColumn.react","MWXColumnItem.react","MWXTabs.react","react","usePrevious","withCometPlaceholder"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||(i=d("react"));b=i;var k=b.useCallback,l=b.useEffect,m=b.useMemo,n=b.useRef,o=b.useState;function p(a,b,c){var d,e,f;switch(a){case"media":f="mw_shared_media_tab";e=h._("__JHASH__Vlach4Yw5My__JHASH__");break;case"files":f="mw_shared_files_tab";e=h._("__JHASH__FHoGsrpePI0__JHASH__");break;case"links":f="mw_shared_links_tab";e=h._("__JHASH__HIyYRXboLqA__JHASH__");break}return{label:(d=e)!=null?d:"",onPress:function(){return c(a)},selected:b===a,testid:(d=f)!=null?d:""}}function a(a){var b=a.initialTab,e=a.isCutoverThread,f=a.isSecureThread,g=a.onReturn,i=a.sharedLinksEnabled,q=a.thread,r=m(function(){return["media","files"].concat(i?"links":[])},[i]);a=o((a=b)!=null?a:r[0]);var s=a[0],t=a[1],u=c("usePrevious")(s),v=n(new Set());a=k(function(a){var b;if(u==null)b=d("MWInboxInfoSharedContentLogger").SharedContentEntrypoint.ThreadDetails;else switch(u){case"media":b=d("MWInboxInfoSharedContentLogger").SharedContentEntrypoint.MediaTab;break;case"files":b=d("MWInboxInfoSharedContentLogger").SharedContentEntrypoint.FilesTab;break;case"links":b=d("MWInboxInfoSharedContentLogger").SharedContentEntrypoint.LinksTab;break}a=a.length;b!=null&&d("MWInboxInfoSharedContentLogger").logOpenTab(q,s,b,f,a);v.current.add(s)},[u,q,s,f,v]);var w=m(function(){return r.map(function(a){return p(a,s,t)})},[r,s]),x=o(!1),y=x[0],z=x[1];x=k(function(){z(!0);return g()},[g]);l(function(){d("MWInboxInfoSharedContentLogger").logOpenContentPanel(q,f)},[b,y,f,r,q]);return j.jsxs(c("MWXColumn.react"),{spacing:12,children:[j.jsx(c("MWXColumnItem.react"),{children:j.jsx(c("MWInboxInfoSubPageHeader.react"),{onPressBack:x,title:i?h._("__JHASH__IJaUCbo68p8__JHASH__"):h._("__JHASH__4EGmvHMttO2__JHASH__")})}),j.jsx(c("MWXColumnItem.react"),{paddingHorizontal:16,children:j.jsx(c("MWXTabs.react"),{tabs:w})}),j.jsx(c("MWXColumnItem.react"),{children:j.jsx(c("MWInboxInfoSharedTabContent.react"),{isBackButtonPressed:y,isCutoverThread:e,isSecureThread:f,onFirstLoadedMedia:a,selectedTab:s,sharedLinksEnabled:i,thread:q})})]})}a.displayName=a.name+" [from "+f.id+"]";e=d("withCometPlaceholder").withCometPlaceholder(a);g["default"]=e}),226);
__d("MWInfoMemberListWrapper.react",["LSMessagingThreadTypeUtil","MWInboxInfoMemberList.react","cr:4705","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var e=a.folder,f=a.isCMThread;a=a.thread;var g=d("LSMessagingThreadTypeUtil").isJoinedSocialChannelV2(a.threadType),h=d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(a.threadType);return b("cr:4705")==null||!(e!=null&&f)&&!g&&!h?i.jsx(c("MWInboxInfoMemberList.react"),{thread:a}):i.jsx(b("cr:4705"),{folder:e,thread:a})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);