;/*FB_PKG_DELIM*/

__d("AsyncStorage",["Promise","WebAsyncStorage"],(function(a,b,c,d,e,f,g){"use strict";var h;a={getItem:function(a,d){return new(h||(h=b("Promise")))(function(b,e){c("WebAsyncStorage").getItem(a,function(a,c){d&&d(a,c),a!=null?e(a):b(c)})})},removeItem:function(a,d){return new(h||(h=b("Promise")))(function(b,e){c("WebAsyncStorage").removeItem(a,function(a){d&&d(a),a!=null?e(a):b()})})},setItem:function(a,d,e){return new(h||(h=b("Promise")))(function(b,f){c("WebAsyncStorage").setItem(a,d,function(a){e&&e(a),a!=null?f(a):b()})})}};d=a;g["default"]=d}),98);
__d("useBaseTypeaheadSubscriptionDataSourceFetchResolverNetwork",["react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");b.useCallback;var i=b.useEffect,j=b.useRef,k=b.useState;function a(a){var b=d("react-compiler-runtime").c(9),c=a.dataSource;a=k(!1);var e=a[0],f=a[1],g=j(null);b[0]!==c?(a=function(a){var b,d=a.onResolvePayload;a=a.requestParams;(b=g.current)==null?void 0:b.unsubscribe();g.current=c.fetchNetwork(a).subscribe({complete:function(){f(!1)},error:function(a){f(!1)},next:function(a){return d(a)},start:function(a){f(!0)},unsubscribe:function(){f(!1)}})},b[0]=c,b[1]=a):a=b[1];a=a;var h,l;b[2]===Symbol["for"]("react.memo_cache_sentinel")?(h=function(){return function(){var a;(a=g.current)==null?void 0:a.unsubscribe()}},l=[],b[2]=h,b[3]=l):(h=b[2],l=b[3]);i(h,l);b[4]!==e?(h={isLoading:e},b[4]=e,b[5]=h):h=b[5];b[6]!==a||b[7]!==h?(l=[h,a],b[6]=a,b[7]=h,b[8]=l):l=b[8];return l}g["default"]=a}),98);
__d("useBaseTypeaheadSubscriptionDataSourceFetchResolver",["cometTypeaheadODSLogFetchNetworkEvent","cr:2557","react","react-compiler-runtime","recoverableViolation","useBaseTypeaheadSubscriptionDataSourceFetchResolverNetwork","useDebouncedComet"],(function(a,b,c,d,e,f,g){"use strict";var h;e=h||d("react");e.useCallback;var i=e.useEffect,j=e.useRef;function a(a,e){var f=d("react-compiler-runtime").c(17),g=a.dataSource,h=a.dataSourceFetchConfigParams,k=a.onResolvePayload;f[0]!==h?(a=h===void 0?{}:h,f[0]=h,f[1]=a):a=f[1];h=a;a=h.requestFlow;h=h.shouldDebounceNetwork;var l=h===void 0?!0:h;f[2]!==g?(h={dataSource:g},f[2]=g,f[3]=h):h=f[3];g=c("useBaseTypeaheadSubscriptionDataSourceFetchResolverNetwork")(h);h=g[0];var m=g[1];g=h.isLoading;var n=c("useDebouncedComet")(m);f[4]!==k?(h=function(a,b){var d=b.isTraceComplete;b=b.source;try{k(a,{isTraceComplete:d,source:b})}catch(a){c("recoverableViolation")("Failed to resolve fetched payload","search")}return b},f[4]=k,f[5]=h):h=f[5];var o=h,p=j(a);f[6]!==o?(h=function(a){o(a,{isTraceComplete:!0,source:a.entries.length>0?"network":"network-no-results"}),c("cometTypeaheadODSLogFetchNetworkEvent")&&c("cometTypeaheadODSLogFetchNetworkEvent")("comet.ta.fetch",!0,1),b("cr:2557")&&b("cr:2557")(["all"],a)},f[6]=o,f[7]=h):h=f[7];var q=h;f[8]!==m||f[9]!==n||f[10]!==e||f[11]!==q||f[12]!==l?(a=function(){var a=function(a){a=a.requestParams;var b=a.requestFlow;b!=null&&(p.current=b);b={onResolvePayload:q,requestParams:babelHelpers["extends"]({},a,{requestFlow:p.current})};Boolean(l)?n(b):m(b)};e!=null&&a(e)},h=[m,n,e,q,l],f[8]=m,f[9]=n,f[10]=e,f[11]=q,f[12]=l,f[13]=a,f[14]=h):(a=f[13],h=f[14]);i(a,h);f[15]!==g?(a=[{isLoading:g}],f[15]=g,f[16]=a):a=f[16];return a}g["default"]=a}),98);
__d("useBaseTypeaheadSubscriptionDataSourceFetch",["react","react-compiler-runtime","recoverableViolation","useBaseTypeaheadSubscriptionDataSourceFetchResolver"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");b.useCallback;var i=b.useState;function a(a){var b,e=d("react-compiler-runtime").c(9),f=i(null),g=f[0],h=f[1];f=c("useBaseTypeaheadSubscriptionDataSourceFetchResolver")(a,g);a=f[0];f=a.isLoading;e[0]===Symbol["for"]("react.memo_cache_sentinel")?(a=function(a,b){b=b===void 0?"all":b;h({requestParams:a,source:b})},e[0]=a):a=e[0];var j=a;e[1]!==g?(a=function(a){a=a||{};var b=a.requestFlow;a=a.source;if(g==null){c("recoverableViolation")("Refetch cannot be called with undefined `fetchParams`","search");return}var d=g.requestParams,e=d.loggingEventTrace;d=babelHelpers.objectWithoutPropertiesLoose(d,["loggingEventTrace"]);e=babelHelpers["extends"]({loggingEventTrace:babelHelpers["extends"]({},e,{sequenceID:String(Date.now())}),requestFlow:b},d);j(e,a)},e[1]=g,e[2]=a):a=e[2];a=a;b=(b=g==null?void 0:g.source)!=null?b:"all";var k;e[3]!==f||e[4]!==b?(k={isLoading:f,source:b},e[3]=f,e[4]=b,e[5]=k):k=e[5];e[6]!==a||e[7]!==k?(f=[k,j,a],e[6]=a,e[7]=k,e[8]=f):f=e[8];return f}g["default"]=a}),98);
__d("TypeaheadLoggingFetchRequestFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1880031");b=d("FalcoLoggerInternal").create("typeahead_logging_fetch_request",a);e=b;g["default"]=e}),98);
__d("CometTypeaheadVolumeLoggingProvider",["TypeaheadLoggingFetchRequestFalcoEvent","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h=function(){return Math.random().toString()};a=function(){function a(a){this.$2=null,this.$1=a,this.$2=h()}var b=a.prototype;b.getContext=function(){return this.$1};b.getSessionID=function(){this.$2==null&&c("recoverableViolation")("Logging sessionID requested from "+this.getContext()+" surface does not exist.","search");return this.$2};b.logRequest=function(a){var b={context:this.getContext(),requestType:a,sessionID:this.getSessionID()};c("TypeaheadLoggingFetchRequestFalcoEvent").log(function(){return{fetchRequest:b}})};return a}();g["default"]=a}),98);
__d("useCometTypeaheadVolumeLoggingProvider",["CometTypeaheadVolumeLoggingProvider","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h;(h||d("react")).useMemo;function a(a){var b=d("react-compiler-runtime").c(2);a=a===void 0?"UNKNOWN":a;var e;b[0]!==a?(e=new(c("CometTypeaheadVolumeLoggingProvider"))(a),b[0]=a,b[1]=e):e=b[1];a=e;return a}g["default"]=a}),98);
__d("CometInternalTypeaheadSubscriptionProvider",["CometInternalTypeaheadEmptyFetchProvider","CometInternalTypeaheadFetchContext","react","useBaseTypeaheadSubscriptionDataSourceFetch","useCometInternalTypeaheadStateDispatcher","useCometTypeaheadVolumeLoggingProvider"],(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.useMemo;function a(a){var b=a.children,d=a.dataSource,e=a.dataSourceFetchConfigParams,f=a.loggingContext,g=a.onFetchEntries_DO_NOT_USE,h=a.traceProvider;a=c("useCometInternalTypeaheadStateDispatcher")();var l=a.dispatchActiveEntries,m=c("useCometTypeaheadVolumeLoggingProvider")(f);a=c("useBaseTypeaheadSubscriptionDataSourceFetch")({dataSource:d,dataSourceFetchConfigParams:e,onResolvePayload:j(function(a,b){var c;a=a.entries;var d=b.isTraceComplete;b=b.source;l((c=a)!=null?c:[]);m.logRequest(o);g&&g(a);h&&!h.isResolved()&&(d&&(b==="cache"&&a.length>=h.getEntriesCountForVisualComplete()?h.setEndReason("max_suggestions_reached"):b==="network"?h.setEndReason("all_queries_completed"):b==="network-no-results"&&h.setEndReason("all_queries_completed_no_network_results"),h.resolve()))},[l,g,h])});f=a[0];var n=f.isLoading,o=f.source,p=a[1],q=a[2];d=k(function(){return{fetch:p,isLoading:n,refetch:q,source:o}},[p,n,q,o]);return i.jsx(c("CometInternalTypeaheadFetchContext").Provider,{value:d,children:i.jsx(c("CometInternalTypeaheadEmptyFetchProvider"),{isLoading:n,source:o,children:b})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("BaseSubscriptionTypeahead.react",["CometHeroInteractionContextPassthrough.react","CometInternalTypeahead.react","CometInternalTypeaheadStateProvider","CometInternalTypeaheadSubscriptionProvider","emptyFunction","react","react-compiler-runtime","withCometTypeaheadInputStrategyShouldQueryStringFollowHighlightedEntry"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;b.useCallback;var j=b.useId;b.useMemo;function a(a){var b=d("react-compiler-runtime").c(77),e,f,g,h,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K;b[0]!==a?(r=a.autoOpen,B=a.autoFocus,C=a.isDisabled,D=a.errorMessage,e=a.inputStrategyRenderer,g=a.dataSource,h=a.dataSourceFetchConfigParams,E=a.decorators,k=a.emptyEntries_DO_NOT_USE,n=a.id,F=a.label,m=a.loggingContext,G=a.onBackspace,H=a.onBlur,o=a.onChange,I=a.onClose,s=a.onEnter,t=a.onEscape,p=a.onFetchEntries_DO_NOT_USE,u=a.onFocus,v=a.onOpen,q=a.onPressEntry,w=a.placeholder,x=a.shouldQueryStringFollowHighlightedEntry,y=a.shouldQueryStringUpdateFromSelectedEntryOnClick,z=a.testid,J=a.traceProvider,l=a.inputRef,A=a.viewRole,f=a.viewStrategyRenderer,K=babelHelpers.objectWithoutPropertiesLoose(a,["autoOpen","autoFocus","isDisabled","errorMessage","inputStrategyRenderer","dataSource","dataSourceFetchConfigParams","decorators","emptyEntries_DO_NOT_USE","id","label","loggingContext","onBackspace","onBlur","onChange","onClose","onEnter","onEscape","onFetchEntries_DO_NOT_USE","onFocus","onOpen","onPressEntry","placeholder","shouldQueryStringFollowHighlightedEntry","shouldQueryStringUpdateFromSelectedEntryOnClick","testid","traceProvider","inputRef","viewRole","viewStrategyRenderer"]),b[0]=a,b[1]=e,b[2]=f,b[3]=g,b[4]=h,b[5]=k,b[6]=l,b[7]=m,b[8]=n,b[9]=o,b[10]=p,b[11]=q,b[12]=r,b[13]=s,b[14]=t,b[15]=u,b[16]=v,b[17]=w,b[18]=x,b[19]=y,b[20]=z,b[21]=A,b[22]=B,b[23]=C,b[24]=D,b[25]=E,b[26]=F,b[27]=G,b[28]=H,b[29]=I,b[30]=J,b[31]=K):(e=b[1],f=b[2],g=b[3],h=b[4],k=b[5],l=b[6],m=b[7],n=b[8],o=b[9],p=b[10],q=b[11],r=b[12],s=b[13],t=b[14],u=b[15],v=b[16],w=b[17],x=b[18],y=b[19],z=b[20],A=b[21],B=b[22],C=b[23],D=b[24],E=b[25],F=b[26],G=b[27],H=b[28],I=b[29],J=b[30],K=b[31]);a=r===void 0?!1:r;r=B===void 0?!1:B;B=C===void 0?!1:C;C=D===void 0?null:D;b[32]!==E?(D=E===void 0?[]:E,b[32]=E,b[33]=D):D=b[33];E=D;D=F===void 0?"":F;F=G===void 0?c("emptyFunction"):G;G=H===void 0?c("emptyFunction"):H;H=I===void 0?c("emptyFunction"):I;I=s===void 0?c("emptyFunction"):s;s=t===void 0?c("emptyFunction"):t;t=u===void 0?c("emptyFunction"):u;u=v===void 0?c("emptyFunction"):v;v=w===void 0?"":w;w=x===void 0?!0:x;var L=y===void 0?!0:y;x=z===void 0?"":z;y=A===void 0?"listbox":A;z=j();var M;b[34]!==E?(M=c("CometInternalTypeahead.react"),E.forEach(function(a){var b=a.decorate;a=a.params;M=b(M,a)}),b[34]=E,b[35]=M):M=b[35];A=M;E=A;b[36]!==o||b[37]!==q||b[38]!==L?(A=function(a){L&&o(a.label),q&&q(a)},b[36]=o,b[37]=q,b[38]=L,b[39]=A):A=b[39];A=A;var N;b[40]!==e||b[41]!==w?(N=c("withCometTypeaheadInputStrategyShouldQueryStringFollowHighlightedEntry")(e,{shouldQueryStringFollowHighlightedEntry:w}),b[40]=e,b[41]=w,b[42]=N):N=b[42];e=N;w=e;N=D||v;D=(e=n)!=null?e:z;if(b[43]!==w||b[44]!==E||b[45]!==f||b[46]!==r||b[47]!==C||b[48]!==l||b[49]!==F||b[50]!==G||b[51]!==I||b[52]!==s||b[53]!==t||b[54]!==A||b[55]!==B||b[56]!==o||b[57]!==v||b[58]!==N||b[59]!==D||b[60]!==x||b[61]!==K||b[62]!==y){e=i.jsx(E,babelHelpers["extends"]({},K,{autoFocus:r,errorMessage:C,id:D,inputRef:l,inputStrategyRenderer:w,isDisabled:B,label:N,onBackspace:F,onBlur:G,onChange:o,onDownArrow:n=c("emptyFunction"),onEnter:I,onEscape:s,onFocus:t,onHighlightEntry:n,onPressEntry:A,onShiftTab:n,onTab:n,onUpArrow:n,placeholder:v,testid:void 0,viewRole:y,viewStrategyRenderer:f}));b[43]=w;b[44]=E;b[45]=f;b[46]=r;b[47]=C;b[48]=l;b[49]=F;b[50]=G;b[51]=I;b[52]=s;b[53]=t;b[54]=A;b[55]=B;b[56]=o;b[57]=v;b[58]=N;b[59]=D;b[60]=x;b[61]=K;b[62]=y;b[63]=e}else e=b[63];b[64]!==g||b[65]!==h||b[66]!==m||b[67]!==p||b[68]!==e||b[69]!==J?(z=i.jsx(c("CometInternalTypeaheadSubscriptionProvider"),{dataSource:g,dataSourceFetchConfigParams:h,loggingContext:m,onFetchEntries_DO_NOT_USE:p,traceProvider:J,children:e}),b[64]=g,b[65]=h,b[66]=m,b[67]=p,b[68]=e,b[69]=J,b[70]=z):z=b[70];b[71]!==a||b[72]!==k||b[73]!==H||b[74]!==u||b[75]!==z?(n=i.jsx(c("CometHeroInteractionContextPassthrough.react"),{clear:!0,children:i.jsx(c("CometInternalTypeaheadStateProvider"),{autoOpen:a,emptyEntries_DO_NOT_USE:k,onClose:H,onOpen:u,children:z})}),b[71]=a,b[72]=k,b[73]=H,b[74]=u,b[75]=z,b[76]=n):n=b[76];return n}g["default"]=a}),98);
__d("CancellablePromise",["Promise","err"],(function(a,b,c,d,e,f,g){"use strict";var h,i="CancellationToken.TokenCancelled";function a(a,d,e){return e.then(function(e){return a.isCancelled()?(h||(h=b("Promise"))).reject(c("err")(i)):d(e)})}function d(a,d){return d["catch"](function(d){return d instanceof Error&&d.message===i?(h||(h=b("Promise"))).resolve(a):(h||(h=b("Promise"))).reject(c("err"))})}g.then_=a;g.ignoreFailed=d}),98);
__d("CancellationToken",[],(function(a,b,c,d,e,f){"use strict";function a(){var a={contents:!1};return{cancel:function(){a.contents=!0},isCancelled:function(){return a.contents}}}f["default"]=a}),66);
__d("MWTopNavListDropdownTitle.react",["fbt","BaseHeading.react","Locale","MWXCircleButton.react","MWXIconArrowLeft","MWXIconArrowRight","MWXRow.react","MWXRowItem.react","MWXText.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k=[];function a(a){var b=d("react-compiler-runtime").c(16),e=a.actions,f=a.onReturn,g=a.testid;a=a.title;e=e===void 0?k:e;var i;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(i={className:"x6s0dn4 x78zum5 x2lah0s x1qughib x21xpn4 x1whwgri x1fr0stp xn5jv7c xnx504b"},b[0]=i):i=b[0];var m;b[1]!==f?(m=f!=null?j.jsx(c("MWXRowItem.react"),{children:j.jsx(c("MWXCircleButton.react"),{icon:d("Locale").isRTL()?c("MWXIconArrowRight"):c("MWXIconArrowLeft"),iconRatio:"large",label:h._(/*BTDS*/"__JHASH__sqTeJmgA5ut__JHASH__"),onPress:f,size:32,type:"deemphasized"})}):null,b[1]=f,b[2]=m):m=b[2];b[3]!==a?(f=j.jsx(c("MWXRowItem.react"),{verticalAlign:"center",children:j.jsx(c("BaseHeading.react"),{isPrimaryHeading:!0,children:j.jsx(c("MWXText.react"),{type:"headlineEmphasized1",children:a})})}),b[3]=a,b[4]=f):f=b[4];b[5]!==m||b[6]!==f?(a=j.jsxs(c("MWXRow.react"),{paddingHorizontal:0,paddingTop:0,spacingHorizontal:8,children:[m,f]}),b[5]=m,b[6]=f,b[7]=a):a=b[7];b[8]!==e?(m=e.map(l),b[8]=e,b[9]=m):m=b[9];b[10]!==m?(f=j.jsx(c("MWXRow.react"),{paddingHorizontal:0,paddingTop:0,spacingHorizontal:8,children:m}),b[10]=m,b[11]=f):f=b[11];b[12]!==a||b[13]!==f||b[14]!==g?(e=j.jsxs("header",babelHelpers["extends"]({},i,{"data-testid":void 0,children:[a,f]})),b[12]=a,b[13]=f,b[14]=g,b[15]=e):e=b[15];return e}function l(a,b){return j.jsx(c("MWXRowItem.react"),{children:a},b)}l.displayName=l.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("CometMessagingJewelDropdownContentGlimmer.react",["FDSListCellGlimmer.react","MWTopNavListDropdownTitle.react","emptyFunction","react","react-compiler-runtime","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react"),k={loadingStateCard:{boxSizing:"x9f619",height:"x20eyyc",maxWidth:"xvv7f4i",width:"x1cvmir6",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(9),e=a.isFullHeight,f=a.title;a=a.withBackButton;e=e===void 0?!1:e;a=a===void 0?!1:a;var g;b[0]!==e?(g=(h||(h=c("stylex"))).props(e&&k.loadingStateCard),b[0]=e,b[1]=g):g=b[1];b[2]!==f||b[3]!==a?(e=f!=null&&j.jsx(c("MWTopNavListDropdownTitle.react"),{onReturn:a?c("emptyFunction"):void 0,title:f}),b[2]=f,b[3]=a,b[4]=e):e=b[4];b[5]===Symbol["for"]("react.memo_cache_sentinel")?(f=j.jsx(c("FDSListCellGlimmer.react"),{imageSize:56,imageStyle:"circle",numberOfItems:Math.max(Math.ceil((window.innerHeight-72-45)/76),1)}),b[5]=f):f=b[5];b[6]!==g||b[7]!==e?(a=j.jsxs("div",babelHelpers["extends"]({},g,{children:[e,f]})),b[6]=g,b[7]=e,b[8]=a):a=b[8];return a}g["default"]=a}),98);
__d("CometMessagingJewelDropdownContent_query.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[{kind:"RootArgument",name:"__relay_internal__pv__CometMessagingJewelDropdownCMBlendedEntrpyointEnabledrelayprovider"},{kind:"RootArgument",name:"__relay_internal__pv__MWInboxTrayEnabledrelayprovider"}],kind:"Fragment",metadata:null,name:"CometMessagingJewelDropdownContent_query",selections:[{args:null,kind:"FragmentSpread",name:"MWEncryptedBackupsJewelNuxWrapper_query"},{kind:"RequiredField",field:{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"CometMessagingJewelDropdownQPBannerContainer_viewer"},{condition:"__relay_internal__pv__CometMessagingJewelDropdownCMBlendedEntrpyointEnabledrelayprovider",kind:"Condition",passingValue:!1,selections:[{fragment:{kind:"InlineFragment",selections:[{args:null,kind:"FragmentSpread",name:"CometMessagingJewelCommunitiesQPBannerContainer_viewer"}],type:"Viewer",abstractKey:null},kind:"AliasedInlineFragmentSpread",name:"cm_qp_banner"},{fragment:{kind:"InlineFragment",selections:[{args:null,kind:"FragmentSpread",name:"MWCMBlendedThreadListV2_viewer"}],type:"Viewer",abstractKey:null},kind:"AliasedInlineFragmentSpread",name:"cm_thread_list"}]}],storageKey:null},action:"THROW",path:"viewer"},{condition:"__relay_internal__pv__MWInboxTrayEnabledrelayprovider",kind:"Condition",passingValue:!0,selections:[{fragment:{kind:"InlineFragment",selections:[{args:null,kind:"FragmentSpread",name:"MWInboxTrayDeferred_query"}],type:"Query",abstractKey:null},kind:"AliasedInlineFragmentSpread",name:"inbox_tray"}]}],type:"Query",abstractKey:null};e.exports=a}),null);
__d("CometMessagingJewelDropdownQPBannerContainer_viewer.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CometMessagingJewelDropdownQPBannerContainer_viewer",selections:[{alias:"jewel_qp",args:[{kind:"Literal",name:"surface_nux_id",value:8439},{kind:"Literal",name:"trigger",value:"MESSAGING_JEWEL_OPEN"}],concreteType:"ViewerEligibleQuickPromotionsConnection",kind:"LinkedField",name:"eligible_promotions",plural:!1,selections:[{alias:null,args:null,concreteType:"QuickPromotion",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"CometQuickPromotionSections",kind:"LinkedField",name:"comet_qp_sections",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"supported",value:"3nNEjf"}],concreteType:null,kind:"LinkedField",name:"renderer_strategy",plural:!1,selections:[{kind:"InlineFragment",selections:[{args:null,documentName:"CometMessagingJewelDropdownQPBannerContainer_viewer",fragmentName:"CometQuickPromotionMessengerDesktopDownloadBannerRendererStrategy_cometQuickPromotionBaseStrategy",fragmentPropName:"cometQuickPromotionBaseStrategy",kind:"ModuleImport"}],type:"CometQuickPromotionMessengerDesktopDownloadBannerRendererStrategy",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"CometMessagingJewelDropdownQPBannerContainer_viewer",fragmentName:"CometQuickPromotionMessengerWebEPDBannerRendererStrategy_cometQuickPromotionBaseStrategy",fragmentPropName:"cometQuickPromotionBaseStrategy",kind:"ModuleImport"}],type:"CometQuickPromotionMessengerWebEPDBannerRendererStrategy",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"CometMessagingJewelDropdownQPBannerContainer_viewer",fragmentName:"CometQuickPromotionMessengerWebPrivacyPolicyNoticeBannerRendererStrategy_quickPromotionRef",fragmentPropName:"quickPromotionRef",kind:"ModuleImport"}],type:"CometQuickPromotionMessengerWebPrivacyPolicyNoticeBannerRendererStrategy",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"CometMessagingJewelDropdownQPBannerContainer_viewer",fragmentName:"CometQuickPromotionArmadilloSecurityAlertsSettingsDefaultOffBannerRendererStrategy_cometQuickPromotionBaseStrategy",fragmentPropName:"cometQuickPromotionBaseStrategy",kind:"ModuleImport"}],type:"CometQuickPromotionArmadilloSecurityAlertsSettingsDefaultOffBannerRendererStrategy",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"CometMessagingJewelDropdownQPBannerContainer_viewer",fragmentName:"CometQuickPromotionMWXCardRendererStrategy_strategy",fragmentPropName:"strategy",kind:"ModuleImport"}],type:"CometQuickPromotionMWXCardRendererStrategy",abstractKey:null}],storageKey:'renderer_strategy(supported:"3nNEjf")'}],storageKey:null}],storageKey:null}],storageKey:'eligible_promotions(surface_nux_id:8439,trigger:"MESSAGING_JEWEL_OPEN")'}],type:"Viewer",abstractKey:null};e.exports=a}),null);
__d("CometMessagingJewelDropdownQPBannerContainer.react",["CometMessagingJewelDropdownQPBannerContainer_viewer.graphql","CometMessagingJewelDropdownQPBannerPlaceholder.react","CometPageletWithDiv.react","CometQuickPromotionLoggerContext.react","CometRelay","react","react-compiler-runtime","useQuickPromotionFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){var e,f=d("react-compiler-runtime").c(9);a=a.viewer;a=d("CometRelay").useFragment(h!==void 0?h:h=b("CometMessagingJewelDropdownQPBannerContainer_viewer.graphql"),a);var g;f[0]===Symbol["for"]("react.memo_cache_sentinel")?(g={context_surface_id:8439,context_trigger:"messaging_jewel_open"},f[0]=g):g=f[0];g=c("useQuickPromotionFalcoEvent")(g);if(f[1]!==(a==null?void 0:(e=a.jewel_qp)==null?void 0:e.nodes)){e=a==null?void 0:(e=a.jewel_qp)==null?void 0:(e=e.nodes)==null?void 0:e.find(k);f[1]=a==null?void 0:(a=a.jewel_qp)==null?void 0:a.nodes;f[2]=e}else e=f[2];a=e;a=a==null?void 0:(e=a.comet_qp_sections)==null?void 0:e.renderer_strategy;if(a==null)return null;f[3]===Symbol["for"]("react.memo_cache_sentinel")?(e=j.jsx(c("CometMessagingJewelDropdownQPBannerPlaceholder.react"),{}),f[3]=e):e=f[3];var i;f[4]!==a?(i=j.jsx(d("CometRelay").MatchContainer,{match:a}),f[4]=a,f[5]=i):i=f[5];f[6]!==g||f[7]!==i?(a=j.jsx(d("CometPageletWithDiv.react").Placeholder,{fallback:e,name:"CometMessagingJewelDropdownQPBannerContainer",children:j.jsx(c("CometQuickPromotionLoggerContext.react").Provider,{value:g,children:i})}),f[6]=g,f[7]=i,f[8]=a):a=f[8];return a}function k(a){return((a=a.comet_qp_sections)==null?void 0:a.renderer_strategy)!=null}g["default"]=a}),98);
__d("MWEncryptedBackupsJewelNuxWrapperDeferred.react",["deferredLoadComponent","react","requireDeferredForDisplay"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=c("deferredLoadComponent")(c("requireDeferredForDisplay")("MWEncryptedBackupsJewelNuxWrapper.react").__setRef("MWEncryptedBackupsJewelNuxWrapperDeferred.react"));function a(a){return i.jsx(j,babelHelpers["extends"]({},a))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MWInboxContextSwitcherGlimmer.react",["MDSGlimmer.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={tabPlaceholder:{borderTopStartRadius:"x1tlxs6b",borderTopEndRadius:"x1g8br2z",borderBottomEndRadius:"x1gn5b1j",borderBottomStartRadius:"x230xth",display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",justifyContent:"xl56j7k",$$css:!0}};function a(){var a=d("react-compiler-runtime").c(1),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=i.jsx("div",babelHelpers["extends"]({className:"x78zum5 xu0aao5 x1y1aw1k xwib8y2 x1swvt13 x1pi30zi x3bhodz"},{children:i.jsx(c("MDSGlimmer.react"),{index:0,xstyle:j.tabPlaceholder})})),a[0]=b):b=a[0];return b}g["default"]=a}),98);
__d("MWInboxQuickPromotionWrapper.react",["CometErrorBoundary.react","CometPlaceholder.react","deferredLoadComponent","react","react-compiler-runtime","requireDeferredForDisplay"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=c("deferredLoadComponent")(c("requireDeferredForDisplay")("MAWUserVisibleErrorsNuxWrapper.react").__setRef("MWInboxQuickPromotionWrapper.react"));function a(a){var b=d("react-compiler-runtime").c(5),e=a.children;a=a.onError;var f;b[0]!==e?(f=i.jsx(c("CometPlaceholder.react"),{fallback:null,name:"MWInboxQuickPromotionWrapper",children:i.jsx(j,{children:e})}),b[0]=e,b[1]=f):f=b[1];b[2]!==a||b[3]!==f?(e=i.jsx(c("CometErrorBoundary.react"),{onError:a,children:f}),b[2]=a,b[3]=f,b[4]=e):e=b[4];return e}g["default"]=a}),98);
__d("MWJewelDropdownHeaderOpenInAppButton.react",["fbt","ix","Actor","FDSCircleButton.react","FDSTooltip.react","ImageIconSource","MessengerDesktopDeeplinkEventFalcoEvent","XMessengerDotComDesktopLaunchAppInterstitialControllerRouteBuilder","react","useCurrentDisplayMode","uuidv4"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react"));b=j;var l=b.useEffect,m=b.useRef;function a(a){var b=a.onClose;a=d("Actor").useActor();a=a[0];var e=m(!1),f=m(c("uuidv4")()).current,g=c("useCurrentDisplayMode")();g=g==="dark";l(function(){e.current||(e.current=!0,c("MessengerDesktopDeeplinkEventFalcoEvent").log(function(){return{event:"open_in_app_button_impression",eventLocation:"browser",eventType:"thread",funnelSessionId:f,mobile_app_source:"unknown"}}))});var j=h._(/*BTDS*/"__JHASH___3DTfSod6m3__JHASH__");a=(a=c("XMessengerDotComDesktopLaunchAppInterstitialControllerRouteBuilder").buildUri({funnel_session_id:f,id:a,origin:"FB"}).setDomain("messenger.com"))==null?void 0:(a=a.setProtocol("https"))==null?void 0:a.toString();g=g?new(c("ImageIconSource"))(i("2009370"),32,32):new(c("ImageIconSource"))(i("1996477"),32,32);return k.jsx(c("FDSTooltip.react"),{align:"end",tooltip:j,children:k.jsx(c("FDSCircleButton.react"),{color_DEPRECATED:"secondary",icon:g,label:j,linkProps:{url:a},onPress:function(){c("MessengerDesktopDeeplinkEventFalcoEvent").log(function(){return{event:"open_in_app_button_click",eventLocation:"browser",eventType:"thread",funnelSessionId:f,mobile_app_source:"unknown"}}),b()},size:32,testid:void 0,type_DEPRECATED:"deemphasized"})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("MWJewelDropdownHeaderSeeAllButton.react",["fbt","ix","FDSCircleButton.react","FDSTooltip.react","MWFacebookUserWithoutMessengerAccess","fbicon","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react");function a(a){var b=d("react-compiler-runtime").c(13),e=a.onClose,f=a.testid;a=a.url;var g=d("MWFacebookUserWithoutMessengerAccess").useIsFacebookUserWithoutMessengerAccess(),j;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(j=h._(/*BTDS*/"__JHASH__oavSR1mxJiV__JHASH__"),b[0]=j):j=b[0];j=j;var l;b[1]===Symbol["for"]("react.memo_cache_sentinel")?(l=h._(/*BTDS*/"__JHASH__62ieWPu8LFJ__JHASH__"),b[1]=l):l=b[1];l=l;g=g?l:j;b[2]===Symbol["for"]("react.memo_cache_sentinel")?(l=d("fbicon")._(i("580260"),20),b[2]=l):l=b[2];b[3]!==a?(j={url:a},b[3]=a,b[4]=j):j=b[4];b[5]!==g||b[6]!==e||b[7]!==j||b[8]!==f?(a=k.jsx(c("FDSCircleButton.react"),{color_DEPRECATED:"secondary",icon:l,label:g,linkProps:j,onPress:e,size:32,testid:void 0,type_DEPRECATED:"deemphasized"}),b[5]=g,b[6]=e,b[7]=j,b[8]=f,b[9]=a):a=b[9];b[10]!==g||b[11]!==a?(l=k.jsx(c("FDSTooltip.react"),{align:"end",tooltip:g,children:a}),b[10]=g,b[11]=a,b[12]=l):l=b[12];return l}g["default"]=a}),226);
__d("LSClearTables",[],(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.sequence([function(a){return b.forEach(b.db.table(67).fetch(),function(a){return a["delete"]()})},function(a){return b.forEach(b.db.table(66).fetch(),function(a){return a["delete"]()})},function(a){return b.forEach(b.db.table(65).fetch(),function(a){return a["delete"]()})},function(c){return a[0]===void 0||a[0]===!0?b.forEach(b.db.table(69).fetch(),function(a){return a["delete"]()}):b.resolve()}])},function(a){return b.resolve(c)}])}a.__sproc_name__="LSSearchClearTablesStoredProcedure";a.__tables__=["search_queries","server_search_sections","server_search_results","message_search_results"];e.exports=a}),null);
__d("LSClearTablesStoredProcedure",["LSClearTables","LSSynchronousPromise","Promise","cr:8709"],(function(a,b,c,d,e,f,g){var h;function a(a,e){e===void 0&&(e={});a=a.storedProcedure(c("LSClearTables"),e.clearMessageResults);return(h||(h=b("Promise"))).resolve(d("LSSynchronousPromise").maybeExtractValueIfSynchronousPromise(a))}g["default"]=a}),98);
__d("LSInsertRankingContacts",["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("limit",a[0]),d[1]=c.createArray(),d[5]=(d[1].push("search_contacts"),d[1]),d[2]=c.i64.of_float(Date.now()),d[5]=(d[1].push(c.i64.to_string(d[2])),d[1]),d[3]=c.toJSON(d[1]),d[4]=c.toJSON(d[0]),c.storedProcedure(b("LSIssueNewTask"),d[3],c.i64.cast([0,452]),d[4],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__="LSSearchInsertRankingContactsStoredProcedure";a.__tables__=[];e.exports=a}),null);
__d("LSInsertRankingContactsStoredProcedure",["LSInsertRankingContacts","LSSynchronousPromise","Promise","cr:8709"],(function(a,b,c,d,e,f,g){var h;function a(a,e){a=a.storedProcedure(c("LSInsertRankingContacts"),e.limit);return(h||(h=b("Promise"))).resolve(d("LSSynchronousPromise").maybeExtractValueIfSynchronousPromise(a))}g["default"]=a}),98);
__d("MWChatSearchInsertRankingContacts",["I64","LSFactory","LSInsertRankingContactsStoredProcedure","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h,i={contents:!1},j={contents:!1},k=(h||(h=d("I64"))).of_string("100");function a(a){if(!i.contents&&(h||(h=d("I64"))).gt(k,(h||(h=d("I64"))).zero)){i.contents=!0;c("promiseDone")(a.runInTransaction(function(a){return c("LSInsertRankingContactsStoredProcedure")(c("LSFactory")(a),{limit:k})},"readwrite",void 0,void 0,f.id+":39"),function(){j.contents=!0});return}}function b(){return j.contents}g.insertRankingContacts=a;g.isDone=b}),98);
__d("MWLSSyncRankings",["LSIntEnum","MWLSDatabaseLazySync","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h,i={contents:!1},j={contents:!1};function a(a){if(!i.contents){i.contents=!0;c("promiseDone")(d("MWLSDatabaseLazySync").sync(a,(h||(h=d("LSIntEnum"))).ofNumber(7)),function(){j.contents=!0});return}}function b(){return j.contents}g.sync=a;g.isDone=b}),98);
__d("MWPSearchIndexingSource",["I64","LSIntEnum","ReQL","ReQLSuspense"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a){return d("ReQL").toArrayAsync(d("ReQL").fromTableAscending(a.tables.contacts))}function b(a){return d("ReQL").toArrayAsync(d("ReQL").fromTableAscending(a.tables.threads).filter(function(a){return(h||(h=d("I64"))).equal(a.threadType,(i||(i=d("LSIntEnum"))).ofNumber(2))}))}function c(a,b){return d("ReQL").toArrayAsync(d("ReQL").fromTableAscending(b.tables.participants).filter(function(b){return!(h||(h=d("I64"))).equal(b.contactId,a)}).map(function(a){a=[a,d("ReQLSuspense").first(d("ReQL").fromTableAscending(b.tables.contacts).getKeyRange(a.contactId),f.id+":49")];return a}))}g.fetchContacts=a;g.fetchGroupThreads=b;g.fetchGroupParticipants=c}),98);
__d("MWPSearchOfflineOpenConversations",["gkx","minisearch"],(function(a,b,c,d,e,f,g){"use strict";e=c("gkx")("23913");f=e?{fuzzy:0,prefix:!0}:{fuzzy:.2,prefix:!0};var h=new(c("minisearch"))({fields:["content"],searchOptions:f,storeFields:["category"]});function a(a){return h.search(a)}function b(a){h.add(a)}function d(a){h.remove(a)}g.search=a;g.add=b;g.remove=d}),98);
__d("MWPSearchOfflineSearchTypes",[],(function(a,b,c,d,e,f){"use strict";a="Contact";b="ThreadName";c="ThreadParticipant";d={Contact:a,ThreadName:b,ThreadParticipant:c};f.MWPSearchType=d}),66);
__d("MWPSearchOfflineOpenConversationsUtils",["I64","LSAuthorityLevel","LSContactBitOffset","LSContactBlockedByViewerStatus","LSInitSyncCompleteSubscription","LSIntEnum","LSMessagingThreadTypeUtil","MNetRankType","MWChatSearchResultType","MWChatTemporarySearchResult","MWPSearchOfflineOpenConversations","MWPSearchOfflineSearchTypes","MWSearchThreadUtils","Promise","ReQL","asyncToGeneratorRuntime","gkx"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;function a(a,b){return"p__"+(j||(j=d("I64"))).to_string(a)+"__"+j.to_string(b)}function e(a,e){if(n.contents==null)return(h||(h=b("Promise"))).resolve([]);var f=n.contents,g=d("MWPSearchOfflineOpenConversations").search(a).filter(function(a){return o(a,e)!==!0});return c("gkx")("6792")===!0?k(f,g,a):d("LSInitSyncCompleteSubscription").maybeWaitForSyncGroup(f,(i||(i=d("LSIntEnum"))).ofNumber(7)).then(function(){return k(f,g,a)})}function k(a,b,c){return l.apply(this,arguments)}function l(){l=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,c,e){c=(yield (h||(h=b("Promise"))).all(c.map(function(c){var f=c.category.type;if(f==null)return(h||(h=b("Promise"))).resolve();switch(f){case d("MWPSearchOfflineSearchTypes").MWPSearchType.ThreadParticipant:f=p(c.id);if(f!=null){f=f[0];return u(a,(j||(j=d("I64"))).to_string(f),c.terms)}else return(h||(h=b("Promise"))).resolve();case d("MWPSearchOfflineSearchTypes").MWPSearchType.ThreadName:return u(a,c.id,c.terms);case d("MWPSearchOfflineSearchTypes").MWPSearchType.Contact:return q(a,c.id,c.terms,e)}})));c=m(c.filter(Boolean));return c});return l.apply(this,arguments)}function m(a){var b=a.filter(function(a){return a.resultType!==c("MWChatSearchResultType").GROUP}).sort(x);a=a.filter(function(a){return a.resultType===c("MWChatSearchResultType").GROUP}).sort(x);b=b.concat(a);return b}var n={contents:void 0};function o(a,b){if(b)return!1;b=a.category;return(b==null?void 0:b.type)==="Contact"?!1:!0}function p(a){a=a.split("__");if(a.length!==3)return;else return[(j||(j=d("I64"))).of_string(a[1]),j.of_string(a[2])]}function q(a,b,c,d){return r.apply(this,arguments)}function r(){r=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,e,f,g){a=(yield (h||(h=b("Promise"))).all([d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.tables.contacts).getKeyRange((j||(j=d("I64"))).of_string(e))),d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.tables.ig_contact_info).getKeyRange(j.of_string(e))),d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.tables.ranking_scores).getKeyRange(j.of_string(e),(i||(i=d("LSIntEnum"))).ofNumber(c("MNetRankType").MESSENGER_USER_SEARCH)))]));e=a[0];var k=a[1];a=a[2];if(e==null||s(e,g))return;return d("MWChatTemporarySearchResult").fromContact((a=a)!=null?a:void 0,void 0,e,(a=k)!=null?a:void 0,"offline",f,g)});return r.apply(this,arguments)}function s(a,b){var e=d("LSContactBitOffset").hasWithDefault(66,a,!1);return a.isMemorialized===!0||(j||(j=d("I64"))).equal(a.contactViewerRelationship,(j||(j=d("I64"))).one)||!(j||(j=d("I64"))).equal(a.blockedByViewerStatus,(i||(i=d("LSIntEnum"))).ofNumber(c("LSContactBlockedByViewerStatus").UNBLOCKED))||e&&t(a.name,b)}function t(a,b,c){c===void 0&&(c=.7);a=a.trim().toLowerCase();b=b.trim().toLowerCase();b=!a.startsWith(b)||b.length/a.length<c;return b}function u(a,b,c){return v.apply(this,arguments)}function v(){v=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,c,e){c=(yield (h||(h=b("Promise"))).all([d("ReQL").firstExnAsync(d("ReQL").fromTableAscending(a.tables._user_info).map(function(a){return a.facebookUserId})),d("ReQL").firstAsync(d("ReQL").leftJoin(d("ReQL").fromTableAscending(a.tables.threads).getKeyRange((j||(j=d("I64"))).of_string(c)).filter(function(a){return!w(a)}),d("ReQL").fromTableAscending(a.tables.ig_thread_info).getKeyRange(j.of_string(c))))]));var f=c[0];c=c[1];if(c==null)return(h||(h=b("Promise"))).resolve();var g=c[0];c=c[1];a=(yield h.all([d("MWSearchThreadUtils").getThreadPics(g,f,a),d("MWSearchThreadUtils").getThreadParticipants(g,a)]));var i=a[0];a=a[1];var k={contactId:j.zero,contactType:j.zero,score:j.to_float(g.lastActivityTimestampMs),scoreIndex:j.zero,scoreType:j.zero};return d("MWChatTemporarySearchResult").fromThread(g,"offline",f,i[0],i[1],a,k,e,c)});return v.apply(this,arguments)}function w(a){return a.folderName!=="inbox"||d("LSMessagingThreadTypeUtil").isChannelPreview(a.threadType)||d("LSMessagingThreadTypeUtil").isArmadilloSecure(a.threadType)&&d("LSMessagingThreadTypeUtil").isOneToOne(a.threadType)&&(j||(j=d("I64"))).equal(a.authorityLevel,(i||(i=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").OPTIMISTIC))}function x(a,b){a=a.rankingScore;a=a!=null?a.score:0;b=b.rankingScore;b=b!=null?b.score:0;if(b>a)return 1;return b<a?-1:0}g.getGroupParticipantKey=a;g.search=e;g.searchHelper=k;g.db=n}),98);
__d("MWPSearchOpenIndexer",["I64","MWPSearchOfflineOpenConversations","MWPSearchOfflineOpenConversationsUtils","MWPSearchOfflineSearchTypes","Promise","ReQL","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=new Map(),k=new Map(),l=new Map();function m(a){var b=a.id;a=a.name;b=(i||(i=d("I64"))).to_string(b);a={category:{type:d("MWPSearchOfflineSearchTypes").MWPSearchType.Contact},content:a,id:b};d("MWPSearchOfflineOpenConversations").add(a);j.set(b,a)}function n(a){var b=j.get(a);if(b!=null){j["delete"](a);d("MWPSearchOfflineOpenConversations").remove(b);return}}function o(a){var b=a.threadKey;a=a.threadName;if(a==null)return;b=(i||(i=d("I64"))).to_string(b);a={category:{type:d("MWPSearchOfflineSearchTypes").MWPSearchType.ThreadName},content:a,id:b};d("MWPSearchOfflineOpenConversations").add(a);k.set(b,a)}function p(a){var b=k.get(a);if(b!=null){k["delete"](a);d("MWPSearchOfflineOpenConversations").remove(b);return}}function q(a,b){if(b==null)return;var c=d("MWPSearchOfflineOpenConversationsUtils").getGroupParticipantKey(a.threadKey,a.contactId);b=b.name;a.nickname!=null&&(b+=" "+a.nickname);a={category:{type:d("MWPSearchOfflineSearchTypes").MWPSearchType.ThreadParticipant},content:b.trim(),id:c};d("MWPSearchOfflineOpenConversations").add(a);l.set(c,a)}function r(a,b){return s.apply(this,arguments)}function s(){s=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){a=(yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.tables.contacts).getKeyRange(b.contactId)));return q(b,a)});return s.apply(this,arguments)}function t(a,b){a=d("MWPSearchOfflineOpenConversationsUtils").getGroupParticipantKey(a,b);b=l.get(a);if(b!=null){l["delete"](a);d("MWPSearchOfflineOpenConversations").remove(b);return}}function a(a,b){switch(b.operation){case"add":return m(b.value);case"put":n((i||(i=d("I64"))).to_string(a));return m(b.value);case"delete":return n((i||(i=d("I64"))).to_string(a))}}function c(a,b){switch(b.operation){case"add":return o(b.value);case"put":p((i||(i=d("I64"))).to_string(a));return o(b.value);case"delete":return p((i||(i=d("I64"))).to_string(a))}}function e(a,c,d,e){switch(e.operation){case"add":return r(a,e.value);case"put":t(c,d);return r(a,e.value);case"delete":return(h||(h=b("Promise"))).resolve(t(c,d))}}function f(a,b,c,e){d("MWPSearchOfflineOpenConversationsUtils").db.contents=a,b.forEach(m),c.forEach(o),e.forEach(function(a){var b=a[0];a=a[1];return q(b,a)})}g.onContactChanged=a;g.onGroupThreadChanged=c;g.onGroupParticipantChanged=e;g.startInitialIndex=f}),98);
__d("MWPSearchSystem",["CurrentUser","FBLogger","I64","JSScheduler","LSClearTablesStoredProcedure","LSFactory","LSIntEnum","MWChatSearchInsertRankingContacts","MWLSSyncRankings","MWPSearchIndexingSource","MWPSearchOpenIndexer","Promise","ReQL","gkx","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l={contents:!1},m={contents:!1},n={contents:!1},o=c("gkx")("6648");function a(a){if(!n.contents){n.contents=!0;(i||(i=d("JSScheduler"))).scheduleSpeculativeCallback(function(){d("MWChatSearchInsertRankingContacts").insertRankingContacts(a);d("MWLSSyncRankings").sync(a);var e=(k||(k=d("I64"))).of_string(c("CurrentUser").getID());l.contents||(l.contents=!0,c("promiseDone")((h||(h=b("Promise"))).all([d("MWPSearchIndexingSource").fetchContacts(a),o?d("MWPSearchIndexingSource").fetchGroupThreads(a):(h||(h=b("Promise"))).resolve([]),o?d("MWPSearchIndexingSource").fetchGroupParticipants(e,a):(h||(h=b("Promise"))).resolve([])]).then(function(b){var c=b[0],e=b[1];b=b[2];d("MWPSearchOpenIndexer").startInitialIndex(a,c,e,b)}),function(){m.contents=!0},function(a){c("FBLogger")("messenger_web_search").catching(a).mustfix("Error indexing contacts for search")}),d("ReQL").fromTableAscending(a.tables.contacts).subscribe(function(a,b){a=a[0];d("MWPSearchOpenIndexer").onContactChanged(a,b)}),o&&(d("ReQL").fromTableAscending(a.tables.threads).filter(function(a){return(k||(k=d("I64"))).equal(a.threadType,(j||(j=d("LSIntEnum"))).ofNumber(2))}).subscribe(function(a,b){a=a[0];d("MWPSearchOpenIndexer").onGroupThreadChanged(a,b)}),d("ReQL").fromTableAscending(a.tables.participants,["contactId","threadKey","nickname"]).filter(function(a){return!(k||(k=d("I64"))).equal(a.contactId,e)}).subscribe(function(b,e){var f=b[0];b=b[1];c("promiseDone")(d("MWPSearchOpenIndexer").onGroupParticipantChanged(a,f,b,e))})))});return}}function e(a){return a.runInTransaction(function(a){return c("LSClearTablesStoredProcedure")(c("LSFactory")(a),{clearMessageResults:!1})},"readwrite",void 0,void 0,f.id+":123")}function p(){if(d("MWLSSyncRankings").isDone()&&d("MWChatSearchInsertRankingContacts").isDone())return m.contents;else return!1}g.makeAll=a;g.clearAll=e;g.isDone=p}),98);
__d("useMWJewelSettingsButtonBadge",["cr:4042","react"],(function(a,b,c,d,e,f,g){"use strict";var h;h||d("react");function a(){var a;a=(a=b("cr:4042")==null?void 0:b("cr:4042")())!=null?a:{};a=a.badge;a=a===void 0?null:a;return{badge:a,onButtonPress:function(){}}}g["default"]=a}),98);
__d("MWJewelDropdownHeader.react",["fbt","ix","CometHomeChatSettings.entrypoint","FDSCircleButton.react","FDSEntryPointPopoverTrigger.react","FDSTooltip.react","MWFacebookUserWithoutMessengerAccess","MWJewelDropdownHeaderOpenInAppButton.react","MWJewelDropdownHeaderSeeAllButton.react","MWJewelPopoverDialogContext.react","MWPSearchSystem","MWTopNavListDropdownTitle.react","MessengerDesktopDeepLinkUtils","MessengerWebUXLogger","emptyFunction","fbicon","gkx","react","react-compiler-runtime","useCometPreloader","useMWChatOpenNewTab","useMWJewelSettingsButtonBadge","useMWNewChatTabContainerPreload","useReStore","useShouldShowMessagingEntrypointInCometRoot"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react"));b=k;b.useCallback;var m=b.useContext;function n(a){var b=d("react-compiler-runtime").c(13),e=a.onOpenArchivedChats,f=a.onOpenMessageRequests;a=a.onOpenRestrictedAccountsList;var g;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(g=h._(/*BTDS*/"__JHASH__wPDFO2UUg3d__JHASH__"),b[0]=g):g=b[0];var j=g;g=m(c("MWJewelPopoverDialogContext.react"));var k=g.setIsOpenForDialog;g=c("useMWJewelSettingsButtonBadge")();var n=g.badge,o=g.onButtonPress;b[1]===Symbol["for"]("react.memo_cache_sentinel")?(g={},b[1]=g):g=b[1];e=(e=e)!=null?e:void 0;f=(f=f)!=null?f:void 0;a=(a=a)!=null?a:void 0;var p;b[2]!==e||b[3]!==f||b[4]!==a?(p={onOpenArchivedChats:e,onOpenMessageRequests:f,onOpenRestrictedAccountsList:a},b[2]=e,b[3]=f,b[4]=a,b[5]=p):p=b[5];b[6]!==n||b[7]!==o||b[8]!==k?(e=function(a,b,e,f,g,h){return l.jsxs(c("FDSTooltip.react"),{align:"end",tooltip:j,children:[n,l.jsx(c("FDSCircleButton.react"),{color_DEPRECATED:"secondary",icon:d("fbicon")._(i("484387"),20),label:j,onHoverIn:f,onHoverOut:g,onPress:function(){k(!1),b(),o()},onPressIn:h,ref:a,size:32,testid:void 0,type_DEPRECATED:"deemphasized"})]})},b[6]=n,b[7]=o,b[8]=k,b[9]=e):e=b[9];b[10]!==p||b[11]!==e?(f=l.jsx(c("FDSEntryPointPopoverTrigger.react"),{align:"end",entryPointParams:g,otherProps:p,popoverEntryPoint:c("CometHomeChatSettings.entrypoint"),position:"below",preloadTrigger:"button",children:e}),b[10]=p,b[11]=e,b[12]=f):f=b[12];return f}function a(a){var b=d("react-compiler-runtime").c(38),e=a.inboxUrl,f=a.onClose,g=a.onOpenArchivedChats,k=a.onOpenMessageRequests,m=a.onOpenRestrictedAccountsList,o=a.onReturn;a=a.title;var p=c("useShouldShowMessagingEntrypointInCometRoot")("CHAT"),q=c("useMWChatOpenNewTab")("jewelNewMessage"),r=c("MessengerWebUXLogger").useInteractionLogger(),s;b[0]!==p||b[1]!==r||b[2]!==f||b[3]!==q?(s=function(){p&&(q(!1),f()),r==null?void 0:r({eventName:"create_thread"})},b[0]=p,b[1]=r,b[2]=f,b[3]=q,b[4]=s):s=b[4];s=s;var t=c("useMWNewChatTabContainerPreload")(),u=t[0],v=t[1],w=(j||(j=c("useReStore")))();b[5]!==w?(t=function(){return d("MWPSearchSystem").makeAll(w)},b[5]=w,b[6]=t):t=b[6];t=t;var x=c("useCometPreloader")("button_aggressive",c("emptyFunction"),t),y=x.onHoverInPreloader,z=x.onHoverMovePreloader,A=x.onHoverOutPreloader;b[7]===Symbol["for"]("react.memo_cache_sentinel")?(x=h._(/*BTDS*/"__JHASH__JTlMNMvbiI7__JHASH__"),b[7]=x):x=b[7];x=x;var B=d("MessengerDesktopDeepLinkUtils").isMessengerDesktopDeeplinkEnabled,C=d("MWFacebookUserWithoutMessengerAccess").useIsFacebookUserWithoutMessengerAccess();B=!c("gkx")("2669")&&B()&&!C;if(B){b[8]!==f?(C=l.jsx(c("MWJewelDropdownHeaderOpenInAppButton.react"),{onClose:f}),b[8]=f,b[9]=C):C=b[9];B=C}else{b[10]!==e||b[11]!==f?(C=l.jsx(c("MWJewelDropdownHeaderSeeAllButton.react"),{onClose:f,testid:void 0,url:e}),b[10]=e,b[11]=f,b[12]=C):C=b[12];B=C}b[13]!==g||b[14]!==k||b[15]!==m?(e=l.jsx(n,{onOpenArchivedChats:g,onOpenMessageRequests:k,onOpenRestrictedAccountsList:m},"mw-jewel-settings"),b[13]=g,b[14]=k,b[15]=m,b[16]=e):e=b[16];C=B;b[17]===Symbol["for"]("react.memo_cache_sentinel")?(g=d("fbicon")._(i("507170"),16),b[17]=g):g=b[17];b[18]!==u||b[19]!==y?(k=function(a){u(a),y(a)},b[18]=u,b[19]=y,b[20]=k):k=b[20];b[21]!==v||b[22]!==A?(m=function(){v(),A()},b[21]=v,b[22]=A,b[23]=m):m=b[23];b[24]!==s||b[25]!==t||b[26]!==z||b[27]!==k||b[28]!==m?(g=l.jsx(c("FDSTooltip.react"),{align:"end",tooltip:x,children:l.jsx(c("FDSCircleButton.react"),{color_DEPRECATED:"secondary",icon:g,label:x,onFocusIn:t,onHoverIn:k,onHoverMove:z,onHoverOut:m,onPress:s,role:"button",size:32,testid:void 0,type_DEPRECATED:"deemphasized"})},"mw-jewel-new-message"),b[24]=s,b[25]=t,b[26]=z,b[27]=k,b[28]=m,b[29]=g):g=b[29];b[30]!==B||b[31]!==e||b[32]!==g?(x=[e,C,g].filter(Boolean),b[30]=B,b[31]=e,b[32]=g,b[33]=x):x=b[33];b[34]!==o||b[35]!==x||b[36]!==a?(s=l.jsx(c("MWTopNavListDropdownTitle.react"),{actions:x,onReturn:o,title:a}),b[34]=o,b[35]=x,b[36]=a,b[37]=s):s=b[37];return s}g["default"]=a}),226);
__d("MWJewelNestedFolderThreadListHeader.react",["MWTopNavListDropdownTitle.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(3),e=a.onReturn;a=a.title;var f;b[0]!==e||b[1]!==a?(f=i.jsx(c("MWTopNavListDropdownTitle.react"),{onReturn:e,title:a}),b[0]=e,b[1]=a,b[2]=f):f=b[2];return f}g["default"]=a}),98);
__d("MWJewelMessageRequestsThread.react",["fbt","ix","FDSIcon.react","I64","LSIntEnum","Locale","MWJewelThreadSnippet.react","MWXListCellStrict.react","ReQL","ReQLSuspense","fbicon","react","react-compiler-runtime","useReStore"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m,n=m||d("react");function o(){var a=d("react-compiler-runtime").c(5),b=(j||(j=c("useReStore")))(),e;a[0]!==b.tables.contacts||a[1]!==b.tables.threads?(e=function(){return d("ReQL").fromTableDescending(b.tables.threads.index("parentThreadKeyLastActivityTimestampMs")).getKeyRange((k||(k=d("LSIntEnum"))).ofNumber(-1)).filter(p).map(function(a){a=a.snippetSenderContactId;if(a!=null){a=d("ReQLSuspense").first(d("ReQL").fromTableAscending(b.tables.contacts).getKeyRange(a),f.id+":49");return a?a.name:void 0}})},a[0]=b.tables.contacts,a[1]=b.tables.threads,a[2]=e):e=a[2];var g;a[3]!==b?(g=[b],a[3]=b,a[4]=g):g=a[4];return d("ReQLSuspense").useFirst(e,g,f.id+":34")}function p(a){return(l||(l=d("I64"))).gt(a.lastActivityTimestampMs,a.lastReadWatermarkTimestampMs)}function a(a){var b=d("react-compiler-runtime").c(17),e=a.onOpenMessageRequests;a=a.unreadRequestsCount;var f;b[0]!==a?(f=h._(/*BTDS*/"__JHASH__SQMsXxQB2ND__JHASH__",[h._plural(a)]),b[0]=a,b[1]=f):f=b[1];f=f;var g;b[2]!==a?(g=h._(/*BTDS*/"__JHASH__jhOYdnXiHj7__JHASH__",[h._enum(a===1?"someone":"people",{someone:"someone",people:"people"})]),b[2]=a,b[3]=g):g=b[3];g=g;var j=o();if(j!=null)if(a===1){var k;b[4]!==j?(k=h._(/*BTDS*/"__JHASH__Lhb1JePxKuz__JHASH__",[h._param("name",j)]),b[4]=j,b[5]=k):k=b[5];g=k}else{b[6]!==j||b[7]!==a?(k=h._(/*BTDS*/"__JHASH__CG_5_9rh3Rj__JHASH__",[h._param("name",j),h._param("count",a-1)]),b[6]=j,b[7]=a,b[8]=k):k=b[8];g=k}b[9]===Symbol["for"]("react.memo_cache_sentinel")?(j={addOn:n.jsx(c("FDSIcon.react"),{color:"secondary",icon:d("Locale").isRTL()?d("fbicon")._(i("492485"),16):d("fbicon")._(i("492533"),16)}),type:"body"},a={icon:d("fbicon")._(i("542884"),24),size:56,type:"contained-icon"},b[9]=j,b[10]=a):(j=b[9],a=b[10]);b[11]!==g?(k=n.jsx(c("MWJewelThreadSnippet.react"),{isUnread:!0,text:g}),b[11]=g,b[12]=k):k=b[12];b[13]!==e||b[14]!==k||b[15]!==f?(g=n.jsx(c("MWXListCellStrict.react"),{addOnEnd:j,addOnStart:a,body:k,headline:f,level:4,onPress:e}),b[13]=e,b[14]=k,b[15]=f,b[16]=g):g=b[16];return g}g["default"]=a}),226);
__d("LSThreadsRangesQueryStoredProcedure",["LSSynchronousPromise","LSThreadsRangesQuery","Promise","cr:8709"],(function(a,b,c,d,e,f,g){var h;function a(a,e){a=a.storedProcedure(c("LSThreadsRangesQuery"),e.parentThreadKey,e.isLoadingBefore,e.isLoadingAfter,e.minThreadKey,e.maxThreadKey,e.maxLastActivityTimestampMs,e.minLastActivityTimestampMs,e.additionalPagesToFetch,e.shouldSkipE2eeThreadsRanges);return(h||(h=b("Promise"))).resolve(d("LSSynchronousPromise").maybeExtractValueIfSynchronousPromise(a))}g["default"]=a}),98);
__d("loadLSThreadsForTheFirstTime",["I64","LSFactory","LSThreadsRangesQueryStoredProcedure"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a,b){return c("LSThreadsRangesQueryStoredProcedure")(c("LSFactory")(a),{additionalPagesToFetch:(h||(h=d("I64"))).zero,isLoadingAfter:!1,isLoadingBefore:!0,maxLastActivityTimestampMs:h.max_int,maxThreadKey:h.max_int,minLastActivityTimestampMs:h.max_int,minThreadKey:h.max_int,parentThreadKey:b,shouldSkipE2eeThreadsRanges:!1})}g["default"]=a}),98);
__d("loadMoreLSThreads",["I64","LSFactory","LSThreadsRangesQueryStoredProcedure","Promise","ReQL","loadLSThreadsForTheFirstTime"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a,e){return d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.threads_ranges_v2__generated).filter(function(a){return(i||(i=d("I64"))).equal(a.parentThreadKey,e)})).then(function(f){if(f!=null)if(!f.isLoadingBefore&&f.hasMoreBefore)return c("LSThreadsRangesQueryStoredProcedure")(c("LSFactory")(a),{additionalPagesToFetch:(i||(i=d("I64"))).zero,isLoadingAfter:!1,isLoadingBefore:!0,maxLastActivityTimestampMs:f.maxLastActivityTimestampMs,maxThreadKey:f.maxThreadKey,minLastActivityTimestampMs:f.minLastActivityTimestampMs,minThreadKey:f.minThreadKey,parentThreadKey:e,shouldSkipE2eeThreadsRanges:!1});else return(h||(h=b("Promise"))).resolve();else return c("loadLSThreadsForTheFirstTime")(a,e)})}g["default"]=a}),98);
__d("useMWLSJewelLoadMoreThreads",["Int64Hooks","loadMoreLSThreads","promiseDone","react-compiler-runtime","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(a){var b=d("react-compiler-runtime").c(4),e=(h||(h=c("useReStore")))(),g,i;b[0]!==a||b[1]!==e?(g=function(){return function(){var b=e.runInTransaction(function(b){return c("loadMoreLSThreads")(b,a)},"readwrite",void 0,void 0,f.id+":26");c("promiseDone")(b)}},i=[e,a],b[0]=a,b[1]=e,b[2]=g,b[3]=i):(g=b[2],i=b[3]);return d("Int64Hooks").useMemoInt64(g,i)}g["default"]=a}),98);
__d("useMWLSLoadThreadFolderIfNotPresent",["CancellablePromise","CancellationToken","I64","Int64Hooks","ReQL","promiseDone","react-compiler-runtime","useMWLSJewelLoadMoreThreads","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a){var b=d("react-compiler-runtime").c(8),e=(i||(i=c("useReStore")))(),f=c("useMWLSJewelLoadMoreThreads")(a),g;b[0]!==e.tables.threads_ranges_v2__generated||b[1]!==f||b[2]!==a?(g=function(){var b=c("CancellationToken")();c("promiseDone")(d("CancellablePromise").ignoreFailed(void 0,d("CancellablePromise").then_(b,function(a){a==null&&f()},d("ReQL").firstAsync(d("ReQL").fromTableAscending(e.tables.threads_ranges_v2__generated).filter(function(b){return(h||(h=d("I64"))).equal(b.parentThreadKey,a)})))));return b.cancel},b[0]=e.tables.threads_ranges_v2__generated,b[1]=f,b[2]=a,b[3]=g):g=b[3];var j;b[4]!==e||b[5]!==f||b[6]!==a?(j=[f,e,a],b[4]=e,b[5]=f,b[6]=a,b[7]=j):j=b[7];d("Int64Hooks").useEffectInt64(g,j)}g["default"]=a}),98);
__d("MWLSJewelMessageRequestsThreadContainer.react",["I64","LSIntEnum","MWJewelMessageRequestsThread.react","ReQL","ReQLSuspense","react","react-compiler-runtime","useMWLSLoadThreadFolderIfNotPresent","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=k||d("react");function m(){var a=d("react-compiler-runtime").c(4),b=(h||(h=c("useReStore")))(),e;a[0]!==b.tables.threads?(e=function(){return d("ReQL").fromTableDescending(b.tables.threads.index("parentThreadKeyLastActivityTimestampMs")).getKeyRange((i||(i=d("LSIntEnum"))).ofNumber(-1)).filter(n)},a[0]=b.tables.threads,a[1]=e):e=a[1];var g;a[2]!==b?(g=[b],a[2]=b,a[3]=g):g=a[3];a=d("ReQLSuspense").useArray(e,g,f.id+":26");return a.length}function n(a){return(j||(j=d("I64"))).gt(a.lastActivityTimestampMs,a.lastReadWatermarkTimestampMs)}function a(a){var b=d("react-compiler-runtime").c(4);a=a.onOpenMessageRequests;var e;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(e=(i||(i=d("LSIntEnum"))).ofNumber(-1),b[0]=e):e=b[0];c("useMWLSLoadThreadFolderIfNotPresent")(e);e=m();if(a==null||e===0)return null;var f;b[1]!==a||b[2]!==e?(f=l.jsx(c("MWJewelMessageRequestsThread.react"),{onOpenMessageRequests:a,unreadRequestsCount:e}),b[1]=a,b[2]=e,b[3]=f):f=b[3];return f}g["default"]=a}),98);
__d("LSFilteredThreadsRangesQuery",["LSGetCursor","LSIssueNewTaskAndGetTaskID"],(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.i64.neq(a[10],void 0)?d[0]=a[10]:d[0]=c.i64.cast([0,0]),a[11]!==void 0?d[1]=a[11]:d[1]="",(a[2]&&c.i64.neq(a[7],void 0)&&c.i64.neq(a[4],void 0)||a[3]&&c.i64.neq(a[6],void 0)&&c.i64.neq(a[5],void 0))&&!(a[2]&&c.i64.neq(a[7],void 0)&&c.i64.neq(a[4],void 0)&&a[3]&&c.i64.neq(a[6],void 0)&&c.i64.neq(a[5],void 0))?c.sequence([function(e){return d[3]=a[4]==null?c.i64.cast([-2147483648,0]):a[4],d[4]=a[7]==null?c.i64.cast([0,1]):a[7],d[10]=c.i64.gt(d[4],c.i64.cast([0,1]))&&c.i64.gt(d[3],c.i64.cast([-2147483648,0])),c.storedProcedure(b("LSGetCursor"),c.i64.cast([0,1])).then(function(a){return a=a,d[2]=a[0],a})},function(e){return d[5]=new c.Map(),d[5].set("cursor",d[2]),d[5].set("filter",a[1]),d[5].set("is_after",a[3]),d[5].set("parent_thread_key",a[0]),d[5].set("reference_activity_timestamp",a[3]?a[6]:a[7]),d[5].set("reference_thread_key",a[3]?a[5]:a[4]),d[5].set("secondary_filter",d[0]),d[5].set("filter_value",d[1]),d[5].set("sync_group",c.i64.cast([0,1])),c.i64.gt(c.i64.cast([0,0]),c.i64.cast([0,0]))?(d[11]=c.i64.of_float(Date.now()),d[6]=c.i64.add(d[11],c.i64.cast([0,0]))):d[6]=c.i64.cast([0,0]),d[7]=c.toJSON(d[5]),c.storedProcedure(b("LSIssueNewTaskAndGetTaskID"),"trq",c.i64.cast([0,313]),d[7],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,d[6],c.i64.cast([0,0])).then(function(a){return a=a,d[8]=a[0],a})},function(b){return c.filter(c.db.table(247).fetch([[[a[0]]]]),function(b){return c.i64.eq(b.parentThreadKey,a[0])&&c.i64.eq(b.threadRangeFilter,a[1])&&c.i64.eq(b.secondaryThreadRangeFilter,d[0])&&b.threadRangeFilterValue===d[1]}).next().then(function(b,e){e=b.done;b=b.value;return e?c.db.table(247).add({folderName:"",parentThreadKey:a[0],minThreadKey:d[3]==null?c.i64.cast([-2147483648,0]):d[3],minLastActivityTimestampMs:d[4]==null?c.i64.cast([0,1]):d[4],threadRangeFilter:a[1],secondaryThreadRangeFilter:d[0],threadRangeFilterValue:d[1],maxLastActivityTimestampMs:c.i64.cast([0,1]),maxThreadKey:c.i64.cast([-2147483648,0]),isLoadingBefore:!0,isLoadingAfter:!1,hasMoreBefore:d[10],hasMoreAfter:!1,syncGroup:c.i64.cast([0,1])}):(b.item,c.forEach(c.filter(c.db.table(247).fetch([[[a[0]]]]),function(b){return c.i64.eq(b.parentThreadKey,a[0])&&c.i64.eq(b.threadRangeFilter,a[1])&&c.i64.eq(b.secondaryThreadRangeFilter,d[0])&&b.threadRangeFilterValue===d[1]}),function(a){var b=a.update;a.item;return b({isLoadingBefore:!0,isLoadingAfter:!1,hasMoreBefore:d[10],hasMoreAfter:!1})}))})}]):c.resolve()},function(a){return c.resolve(e)}])}a.__sproc_name__="LSMailboxFilteredThreadsRangesQueryStoredProcedure";a.__tables__=["filtered_threads_ranges_v3__generated"];e.exports=a}),null);
__d("LSFilteredThreadsRangesQueryStoredProcedure",["LSFilteredThreadsRangesQuery","LSSynchronousPromise","Promise","cr:8709"],(function(a,b,c,d,e,f,g){var h;function a(a,e){a=a.storedProcedure(c("LSFilteredThreadsRangesQuery"),e.parentThreadKey,e.filter,e.isLoadingBefore,e.isLoadingAfter,e.minThreadKey,e.maxThreadKey,e.maxLastActivityTimestampMs,e.minLastActivityTimestampMs,e.numThreads,e.numMessages,e.secondaryFilter,e.filterValue);return(h||(h=b("Promise"))).resolve(d("LSSynchronousPromise").maybeExtractValueIfSynchronousPromise(a))}g["default"]=a}),98);
__d("ReQLScrollAnchored.react",["BaseScrollableAreaContext","BaseThemeProvider.react","CometPlaceholder.react","CometSSRSuspendOnServer.react","MWXScrollableAreaStyles","intersectionObserverEntryIsIntersecting","react","react-compiler-runtime","stylex","useResizeObserver"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));b=i;b.useCallback;var aa=b.useContext,ba=b.useEffect,ca=b.useImperativeHandle,da=b.useLayoutEffect;b.useMemo;var k=b.useRef,ea=b.useState,fa=function(b){babelHelpers.inheritsLoose(a,b);function a(){var a,c;for(var d=arguments.length,e=new Array(d),f=0;f<d;f++)e[f]=arguments[f];return(a=c=b.call.apply(b,[this].concat(e))||this,c.render=function(){return c.props.children},a)||babelHelpers.assertThisInitialized(c)}var c=a.prototype;c.componentDidUpdate=function(a,b,c){b=a.children;this.props.componentDidUpdate(b,c)};c.getSnapshotBeforeUpdate=function(a){a=a.children;return this.props.getSnapshotBeforeUpdate(a)};return a}(j.PureComponent),l={contentMinHeight:{minHeight:"x1us19tq",$$css:!0},disableScrollAnchoring:{overflowAnchor:"x1xzczws",$$css:!0},overscrollBehaviorContain:{overscrollBehavior:"xish69e",$$css:!0},scrollArea:{display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",flexShrink:"xs83m0k",overflowAnchor:"x1xzczws",overflowX:"x6ikm8r",overflowY:"x1odjw0f",position:"x1n2onr6",width:"xh8yej3",$$css:!0},wrapper:{display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",overflowX:"x6ikm8r",overflowY:"x10wlt62",position:"x1n2onr6",$$css:!0}},ga=typeof ResizeObserver!=="undefined";function ha(a){var b=a.clientHeight;a=a.scrollTop;return a>b*2}function ia(a,b){return a-b.scrollTop>b.clientHeight*2}var ja=5;e=j.forwardRef(a);function a(a,b){var e=d("react-compiler-runtime").c(98),f=a.hasReachedBottom,g=a.hasReachedTop,i=a.setScrollTopInResetForBottomAnchor,m=a.initialAnchor,n=a.initialRenderComplete,o=a.onReachingBottom,p=a.onReachingTop,q=a.onScroll,r=a.onUserScroll,s=a.renderEmptyContent,t=a.renderFooter,u=a.renderHeader,v=a.renderHeaderContentSpacer,w=a.renderLoadingAnimation,x=a.isSufficientContentLoadedAbove,y=a.isSufficientContentLoadedBelow,z=a.headerStyle,A=a.snapThreshold,B=a.xstyle,C=a.shouldOverscrollBehaviourContain,D=a.elements,E=f===void 0?!0:f,F=g===void 0?!0:g,G=i===void 0?!0:i,H=x===void 0?ha:x,I=y===void 0?ia:y,J=A===void 0?5:A;a=aa(c("BaseScrollableAreaContext"));var K=k();e[0]===Symbol.for("react.memo_cache_sentinel")?(f={getDOMNode:function(){return K==null?void 0:K.current}},e[0]=f):f=e[0];e[1]!==a?(g=[].concat(a,[f]),e[1]=a,e[2]=g):g=e[2];i=g;x=i;var ka=k(),L=k();y=ea(m);A=y[0];var M=y[1],N=k(m),O=k(null);e[3]!==E||e[4]!==F||e[5]!==H||e[6]!==I||e[7]!==o||e[8]!==p?(f=function(){var a=K.current,b=L.current;if(a==null||b==null||a.offsetParent===null||b.offsetParent===null)return;b=I(b.clientHeight,a);O.current=a.scrollTop;if(!b&&!E&&o!=null){o();return}b=H(a);O.current=a.scrollTop;!b&&!F&&p!=null&&p()},e[3]=E,e[4]=F,e[5]=H,e[6]=I,e[7]=o,e[8]=p,e[9]=f):f=e[9];var P=f;e[10]!==D.length||e[11]!==P?(a=[P,D.length],e[10]=D.length,e[11]=P,e[12]=a):a=e[12];ba(P,a);e[13]!==E||e[14]!==J?(g=function(a){if(a.scrollHeight===a.clientHeight)return;var b=a.scrollHeight-a.clientHeight-a.scrollTop<J&&E?"bottom":"top";M(N.current=b);O.current=a.scrollTop},e[13]=E,e[14]=J,e[15]=g):g=e[15];var Q=g;e[16]!==q?(i=function(){var a=K.current,b=O.current;if(b==null||a==null)return;a.scrollTop!==b&&(a.scrollTop=b,q&&q(a))},e[16]=q,e[17]=i):i=e[17];var R=i;e[18]!==E||e[19]!==F||e[20]!==m||e[21]!==q||e[22]!==G||e[23]!==J?(y=function(){var a=K.current,b=L.current;if(a==null||b==null)return;m==="bottom"?(G&&(a.scrollTop=a.scrollHeight),q&&q(a)):F||(a.scrollTop=b.offsetTop,q&&q(a));E&&a.scrollHeight-a.clientHeight-a.scrollTop<J?M(N.current="bottom"):M(N.current=m);O.current=a.scrollTop},e[18]=E,e[19]=F,e[20]=m,e[21]=q,e[22]=G,e[23]=J,e[24]=y):y=e[24];var S=y,la=k(!1);e[25]!==S?(f=function(){if(la.current)return;S();la.current=!0},a=[S],e[25]=S,e[26]=f,e[27]=a):(f=e[26],a=e[27]);da(f,a);e[28]!==n||e[29]!==q?(g=function(){var a=K.current;if(a==null)return;n&&a.scrollHeight>a.clientHeight&&n();N.current==="bottom"&&(a.scrollTop=a.scrollHeight,q&&q(a));O.current=a.scrollTop},e[28]=n,e[29]=q,e[30]=g):g=e[30];var T=g;e[31]!==P||e[32]!==q||e[33]!==r||e[34]!==Q?(i=function(){var a=K.current;if(a==null)return;q&&q(a);if(a.scrollTop===O.current)return;O.current=null;P();Q(a);r&&r()},e[31]=P,e[32]=q,e[33]=r,e[34]=Q,e[35]=i):i=e[35];var U=i;e[36]!==P||e[37]!==T?(y=function(){T(),P()},e[36]=P,e[37]=T,e[38]=y):y=e[38];var V=y;e[39]!==T?(f=function(){return T()},e[39]=T,e[40]=f):f=e[40];a=f;var W=c("useResizeObserver")(a),X=c("useResizeObserver")(V);e[41]!==W?(g=function(a){W(a),L.current=a},e[41]=W,e[42]=g):g=e[42];var Y=g;e[43]!==X?(i=function(a){X(a),K.current=a},e[43]=X,e[44]=i):i=e[44];var ma=i;e[45]!==q?(y=function(a,b){if(b!=null){a=b.element;var c=b.height;b=b.scrollAreaElement;a=a.clientHeight;O.current=b.scrollTop;a!==c&&!(a<=c&&N.current==="bottom")&&(b.scrollTop=b.scrollTop+(a-c),O.current=b.scrollTop,q&&q(b))}},e[45]=q,e[46]=y):y=e[46];var Z=y;e[47]!==E||e[48]!==q?(f=function(){if(K.current!=null){var a=K.current;a.scrollTop=a.scrollHeight;O.current=a.scrollTop;q&&q(a)}M(N.current=E?"bottom":"top")},e[47]=E,e[48]=q,e[49]=f):f=e[49];var $=f;e[50]===Symbol.for("react.memo_cache_sentinel")?(a=function(){if(K.current!=null){var a=K.current,b=a.scrollHeight-a.scrollTop-a.clientHeight<ja;O.current=a.scrollTop;return b}else return!1},e[50]=a):a=e[50];var na=a,oa=k(null);e[51]===Symbol.for("react.memo_cache_sentinel")?(g=function(a,b){var d=oa.current,e=K.current;if(d!=null&&e!=null){var f=new IntersectionObserver(function(a){a=a[0];(a.boundingClientRect.height!==0||a.boundingClientRect.width!==0)&&b(c("intersectionObserverEntryIsIntersecting")(a))},{root:e,rootMargin:a+"px"});f.observe(d);return function(){return f.disconnect()}}},e[51]=g):g=e[51];var pa=g;e[52]===Symbol.for("react.memo_cache_sentinel")?(i=function(){var a=K.current;if(a!=null){var b=a.scrollHeight-a.clientHeight>0;O.current=a.scrollTop;return b}return!1},e[52]=i):i=e[52];var qa=i;e[53]===Symbol.for("react.memo_cache_sentinel")?(y=function(){var a=K.current;if(a==null)return null;var b={clientHeight:a.clientHeight,scrollHeight:a.scrollHeight,scrollTop:a.scrollTop};O.current=a.scrollTop;return b},e[53]=y):y=e[53];var ra=y;e[54]!==S||e[55]!==R||e[56]!==$?(f=function(){return{doesContentFillScroll:qa,getScrollAreaElement:function(){return K.current},getScrollerMeasurements:ra,isAtBottom:na,onCloseToBottom:pa,resetScrollPosition:S,restoreScrollPosition:R,scrollToBottom:$}},a=[qa,pa,S,R,$],e[54]=S,e[55]=R,e[56]=$,e[57]=f,e[58]=a):(f=e[57],a=e[58]);ca(b,f,a);e[59]!==D[0]||e[60]!==D.length||e[61]!==F?(g=function(a){var b=L.current,c=K.current;if(b!=null&&c!=null&&!(F&&c.scrollTop===0)&&(!a.length||D.length&&a[0].key!==D[0].key&&a.length!==D.length)){a=b.clientHeight;O.current=c.scrollTop;return{element:b,height:a,scrollAreaElement:c}}return null},e[59]=D[0],e[60]=D.length,e[61]=F,e[62]=g):g=e[62];e[63]!==D||e[64]!==Z||e[65]!==g?(i=j.jsx(fa,{componentDidUpdate:Z,getSnapshotBeforeUpdate:g,children:D}),e[63]=D,e[64]=Z,e[65]=g,e[66]=i):i=e[66];y=i;var sa=y;e[67]!==B?(b=(h||(h=c("stylex"))).props(B),e[67]=B,e[68]=b):b=e[68];e[69]!==A?(f=(h||(h=c("stylex"))).props(l.wrapper,A==="bottom"&&l.disableScrollAnchoring),e[69]=A,e[70]=f):f=e[70];e[71]!==Y||e[72]!==D.length||e[73]!==sa||e[74]!==Z||e[75]!==T||e[76]!==U||e[77]!==V||e[78]!==E||e[79]!==F||e[80]!==z||e[81]!==s||e[82]!==t||e[83]!==u||e[84]!==v||e[85]!==w||e[86]!==ma||e[87]!==C?(a=j.jsx(c("BaseThemeProvider.react"),{children:function(a,b){return j.jsxs("div",{className:(h||(h=c("stylex")))(l.scrollArea,C===!0&&l.overscrollBehaviorContain,c("MWXScrollableAreaStyles").themed,a),"data-testid":void 0,onScroll:U,ref:ma,style:b,children:[j.jsx(c("CometPlaceholder.react"),{fallback:null,name:"ReQLScrollAnchored.ScrollArea",children:j.jsx(c("CometSSRSuspendOnServer.react"),{children:!ga&&j.jsx("iframe",babelHelpers.extends({className:"x76ihet xwmqs3e x112ta8 xxxdfa6 x5yr21d x17qophe x1ty9z65 xg01cxk x47corl x10l6tqk x1yhy09f xh8yej3"},{ref:function(a){a!=null&&(a.contentWindow.onresize=V)}}))})}),j.jsxs(fa,{componentDidUpdate:Z,getSnapshotBeforeUpdate:function(){var a=ka.current,b=K.current;if(a!=null&&b!=null){O.current=b.scrollTop;if(O.current!==0){var c=a.clientHeight;return{element:a,height:c,scrollAreaElement:b}}}return null},children:[j.jsx("div",babelHelpers.extends({},h.props(z),{ref:ka,children:F?u&&u():w&&w("onTop",D.length)})),s!=null?s():null]}),v!=null&&v(),j.jsx("div",babelHelpers.extends({},h.props(D.length!==0&&!F&&!E&&l.contentMinHeight),{children:j.jsxs("div",babelHelpers.extends({className:"x1n2onr6"},{ref:Y,children:[j.jsx(c("CometPlaceholder.react"),{fallback:null,name:"ReQLScrollAnchored.elementsHOC",children:j.jsx(c("CometSSRSuspendOnServer.react"),{children:!ga&&j.jsx("iframe",babelHelpers.extends({className:"x76ihet xwmqs3e x112ta8 xxxdfa6 x5yr21d x17qophe x1ty9z65 xg01cxk x47corl x10l6tqk x1yhy09f xh8yej3"},{ref:function(a){a!=null&&(a.contentWindow.onresize=T)}}))})}),sa,j.jsx("div",babelHelpers.extends({className:"x1ey2m1c xjm9jq1 x1y332i5 x47corl x10l6tqk"},{ref:oa})),E?t&&t():w&&w("onBottom",D.length)]}))}))]})}}),e[71]=Y,e[72]=D.length,e[73]=sa,e[74]=Z,e[75]=T,e[76]=U,e[77]=V,e[78]=E,e[79]=F,e[80]=z,e[81]=s,e[82]=t,e[83]=u,e[84]=v,e[85]=w,e[86]=ma,e[87]=C,e[88]=a):a=e[88];e[89]!==f||e[90]!==a?(g=j.jsx("div",babelHelpers.extends({},f,{children:a})),e[89]=f,e[90]=a,e[91]=g):g=e[91];e[92]!==b||e[93]!==g?(i=j.jsx("div",babelHelpers.extends({},b,{children:g})),e[92]=b,e[93]=g,e[94]=i):i=e[94];e[95]!==x||e[96]!==i?(y=j.jsx(c("BaseScrollableAreaContext").Provider,{value:x,children:i}),e[95]=x,e[96]=i,e[97]=y):y=e[97];return y}f=e;g.default=f}),98);
__d("useStableValue",["I64","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(h||d("react")).useRef;function a(a){return k(a,(i||(i=d("I64"))).equal)}function k(a,b){var c=j(a);b(c.current,a)||(c.current=a);return c.current}g.useStableI64=a;g.useStableValue=k}),98);
__d("useStableBounds",["deepEquals","useStableValue"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return d("useStableValue").useStableValue(a,c("deepEquals"))}g["default"]=a}),98);
__d("ReQLPaginatedList.react",["FBLogger","I64","PromiseOrValue","ReQL","ReQLScrollAnchored.react","ReQLSuspense","SortedAsyncIterable","deepEquals","gkx","justknobx","promiseDone","react","useMergeRefs","useStableBounds","useStableValue"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=h||(h=d("react"));b=h;var l=b.useCallback,m=b.useEffect,aa=b.useLayoutEffect,n=b.useMemo,o=b.useRef,p=b.useState,q=b.useTransition;function r(a,b){return b==null?a:a.bounds(b)}function s(a){if(a instanceof Promise)throw a;return a}function t(a){return{direction:a.direction,iterator:function(b,c){var e=a.iterator(b,c);return{next:function(a){return(i||(i=d("PromiseOrValue"))).map(e.next(a),function(a){return a.done?a:{done:!1,value:[a.value[0],a.value]}})}}},keyLength:a.keyLength,subscribe:function(b,c){return a.subscribe(async function(a,c,d){c.operation==="delete"?await b(a,c,d):c.operation==="add"?await b(a,{operation:"add",value:[a,c.value]},d):c.operation==="put"&&await b(a,{operation:"put",value:[a,c.value]},d)},c)}}}function ba(a){var b=a.clientHeight;a=a.scrollTop;return a>b*2}function a(a){var b=a.bounds,e=a.direction,g=e===void 0?"asc":e;e=a.hasReachedBottom;var h=e===void 0?!0:e;e=a.hasReachedTop;var i=e===void 0?!0:e;e=a.imperativeRef;var j=a.initialAnchor,da=a.initialRenderComplete,u=a.onPageLoaded,v=a.onReachingBottom,w=a.onReachingTop,ea=a.onScroll,fa=a.onUserScroll,x=a.pageSize,y=x===void 0?15:x;x=a.renderEmptyContent;var z=a.renderFooter,ga=a.renderHeader,ha=a.renderHeaderContentSpacer,A=a.renderItem,ia=a.renderLoadingAnimation,ja=a.headerStyle,B=a.isSufficientContentLoadedAbove;B=B===void 0?ba:B;var ka=a.isSufficientContentLoadedBelow,C=a.snapThreshold;C=C===void 0?5:C;var D=a.setScrollTopInResetForBottomAnchor;D=D===void 0?!0:D;var E=a.data,F=E.ascending,G=E.descending;E=a.xstyle;var H=a.isLogDuplicatedItemEnabled;H=H===void 0?!1:H;a=a.shouldOverscrollBehaviourContain;var I=q();I[0];var J=I[1],K=c("useStableBounds")(b);if(j!=null&&j!=="top"&&j!=="bottom"){I=r(G,K).bounds({lt:j}).iterator(new WeakMap()).next();if(I instanceof Promise)throw I;j=I.done?"top":I.value[0]}var L=d("useStableValue").useStableValue(j,c("deepEquals")),M=n(function(){var a,b;L==="top"||L==null?(a=d("ReQL").empty(),b=g==="asc"?F:G):L==="bottom"?(a=g==="asc"?G:F,b=d("ReQL").empty()):(a=g==="asc"?G.bounds({lt:L}):F.bounds({gt:L}),b=g==="asc"?F.bounds({gte:L}):G.bounds({lte:L}));return{after:b,before:a}},[L,F,G,g]),N=o(!1),O=n(function(){var a=s(d("SortedAsyncIterable").toArray(r(M.before,K).take(L==="bottom"?y:0),f.id+":204")).reverse(),b=s(d("SortedAsyncIterable").toArray(r(M.after,K).take(y),f.id+":211")),c=L==="bottom"?!0:b.length<y,e=L==="top"||L==null?!0:L==="bottom"?a.length<y:!1;return{firstKey:e?void 0:L==="bottom"?(e=a[0])==null?void 0:e[0]:(a=b[0])==null?void 0:a[0],lastKey:c?void 0:(e=b[b.length-1])==null?void 0:e[0]}},[L,K,M.after,M.before,y]);b=p(function(){return{anchor:L,iterables:M,values:O}});I=b[0];var P=b[1];j=I.iterables===M&&I.anchor===L;b=j?I.values:O;var Q=b.firstKey,R=b.lastKey,S=d("ReQLSuspense").useArray(function(){return t(Q==null?r(M.before,K).take(y):r(M.before,K).bounds(g==="asc"?{gte:Q}:{lte:Q}))},[K,g,Q,M.before,y],f.id+":246"),T=n(function(){return[].concat(S).reverse()},[S]);m(function(){T.length===y&&Q==null&&J(function(){return P({anchor:L,iterables:M,values:{firstKey:T[0][0],lastKey:R}})})},[T,Q,L,M,R,y]);var U=d("ReQLSuspense").useArray(function(){return t(R==null?r(M.after,K).take(y):r(M.after,K).bounds(g==="asc"?{lte:R}:{gte:R}))},[K,g,M.after,R,y],f.id+":273");m(function(){U.length===y&&R==null&&J(function(){return P({anchor:L,iterables:M,values:{firstKey:Q,lastKey:U[U.length-1][0]}})})},[U,Q,L,M,R,y]);var V=n(function(){return[].concat(T,U)},[T,U]),W=d("ReQLSuspense").useFirst(function(){return V.length===0?d("ReQL").empty():r(M.before,K).bounds(g==="asc"?{lt:V[0][0]}:{gt:V[0][0]})},[V,K,g,M.before],f.id+":300")==null,X=d("ReQLSuspense").useFirst(function(){return V.length===0?d("ReQL").empty():r(M.after,K).bounds(g==="asc"?{gt:V[V.length-1][0]}:{lt:V[V.length-1][0]})},[V,K,g,M.after],f.id+":310")==null;j=q();var Y=j[0],la=j[1];I=l(function(){if(N.current||Y)return;if(X){if(!h&&v!=null)return v()}else{N.current=!0;c("promiseDone")(Promise.resolve(d("SortedAsyncIterable").toArray(r(g==="asc"?F:G,K).bounds(g==="asc"?{gt:V[V.length-1][0]}:{lt:V[V.length-1][0]}).take(y),f.id+":337")),function(a){N.current=!1,u!=null&&u("bottom",V[V.length-1][1],a.map(function(a){return a[1]})),la(function(){var b;return P({anchor:L,iterables:M,values:{firstKey:Q,lastKey:(b=(b=a[a.length-1])==null?void 0:b[0])!=null?b:V[V.length-1][0]}})})});return}},[Y,X,h,v,g,F,G,K,V,y,u,Q,M,L]);b=q();var ma=b[0],na=b[1],oa=o(!0);j=l(function(){if(N.current||ma)return;if(W){if(!i)return w==null?void 0:w();return}N.current=!0;c("promiseDone")(Promise.resolve(d("SortedAsyncIterable").toArray(r(g==="asc"?G:F,K).bounds(g==="asc"?{lt:V[0][0]}:{gt:V[0][0]}).take(y),f.id+":409")),function(a){N.current=!1,u!=null&&(oa.current?(oa.current=!1,u("top",null,V.slice(0,y).map(function(a){return a[1]}).reverse())):u("top",V[0][1],a.map(function(a){return a[1]}))),a.reverse(),na(function(){var b;return P({anchor:L,iterables:M,values:{firstKey:(b=(b=a[0])==null?void 0:b[0])!=null?b:V[0][0],lastKey:R}})})})},[ma,W,i,w,g,G,F,K,V,y,u,R,M,L]);var Z=W&&i?0:1,$=V.length-(X&&h?0:1);b=n(function(){var a=new Array($>Z?$-Z:0);for(var b=Z;b<$;b++){var d;a[b-Z]=A(V[b][1],{nextItem:(d=V[b+1])==null?void 0:d[1],previousItem:(d=V[b-1])==null?void 0:d[1]},c("gkx")("7810")?$-Z-b:0)}return a},[V,Z,A,$]);var pa=o(null);e=c("useMergeRefs")(pa,e);aa(function(){var a;(a=pa.current)==null?void 0:a.resetScrollPosition()},[L]);var qa=l(function(){return z==null?void 0:z(V.length>0?V[V.length-1][1]:void 0)},[V,z]);ca(H,V);return k.jsx(c("ReQLScrollAnchored.react"),{elements:b,hasReachedBottom:X&&h,hasReachedTop:W&&i,headerStyle:ja,initialAnchor:L==="bottom"?"bottom":"top",initialRenderComplete:da,isSufficientContentLoadedAbove:B,isSufficientContentLoadedBelow:ka,onReachingBottom:I,onReachingTop:j,onScroll:ea,onUserScroll:fa,pageSize:y,ref:e,renderEmptyContent:x,renderFooter:qa,renderHeader:ga,renderHeaderContentSpacer:ha,renderLoadingAnimation:ia,setScrollTopInResetForBottomAnchor:D,shouldOverscrollBehaviourContain:a,snapThreshold:C,xstyle:E})}a.displayName=a.name+" [from "+f.id+"]";function ca(a,b){var e=p(!1),f=e[0],g=e[1];m(function(){try{if(!c("justknobx")._("1789"))return;if(a&&!f){var e=new Set(),h=[];for(var i of b){var k=i[1];if(typeof k==="object"&&(k==null?void 0:k.threadKey)!=null&&(j||(j=d("I64"))).isI64(k==null?void 0:k.threadKey)){k=(j||(j=d("I64"))).to_string(k==null?void 0:k.threadKey);e.has(k)&&h.push(k);e.add(k)}}e.size!==b.length&&(g(!0),c("FBLogger")("messenger_e2ee_web").warn("Duplicated thread item detected in ReQLPaginatedList %s",h.join(",")))}}catch(a){c("FBLogger")("messenger_e2ee_web").warn("Duplicated thread item error",a)}},[b,f,a])}g.default=a}),98);
__d("ReQLPaginatedList.shared",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){return{ascending:a,descending:b}}f.fromIterables=a}),66);
__d("useMWCMMarkBumpedThreadsSeen",["Int64Hooks","asyncToGeneratorRuntime","react-compiler-runtime","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h=c("requireDeferred")("MWCMMarkBumpedThreadsSeen").__setRef("useMWCMMarkBumpedThreadsSeen");function a(a){var c=d("react-compiler-runtime").c(3),e,g;c[0]!==a?(e=function(){return{load:function(){var c=b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var b=(yield h.load());return function(c){return b.MWCMMarkBumpedThreadsSeen(a,c)}});function d(){return c.apply(this,arguments)}return d}()}},g=[a],c[0]=a,c[1]=e,c[2]=g):(e=c[1],g=c[2]);return d("Int64Hooks").useMemoInt64(e,g)}g["default"]=a}),98);
__d("useMarkSeenWhenVisible",["CometDebounce","Int64Hooks","Promise","ReQL","UserActivity","asyncToGeneratorRuntime","promiseDone","react","useMWCMMarkBumpedThreadsSeen","useMWPMarkSeen","useMWPWatchFolderFocusChanges","useReStore","useSimpleImpression","useVisibilityObserver"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;e=j||d("react");var k=e.useCallback,l=e.useRef;function a(a){var e=(i||(i=c("useReStore")))(),g=l(!1),j=c("useMWCMMarkBumpedThreadsSeen")(a),m=c("useVisibilityObserver")({onHidden:function(){g.current=!1},onVisible:function(){g.current=!0}}),n=c("useMWPMarkSeen")(a),o=c("CometDebounce")(k(function(){c("promiseDone")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var a=(yield (h||(h=b("Promise"))).all([n.load(),j.load()])),c=a[0],d=a[1];yield e.runInTransaction(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){yield c(a),yield d(a)});return function(b){return a.apply(this,arguments)}}(),"readwrite",void 0,void 0,f.id+":56")})())},[n,j,e]),{leading:!0,wait:500});c("useMWPWatchFolderFocusChanges")(o,g);c("useSimpleImpression")(o);d("Int64Hooks").useEffectInt64(function(){return d("ReQL").fromTableDescending(e.tables.threads.index("parentThreadKeyLastActivityTimestampMs"),[]).getKeyRange(a).take(1).subscribe(function(){c("UserActivity").isOnTab()&&g.current===!0&&o()})},[e,a,o]);return m}g["default"]=a}),98);
__d("MWPBaseThreadList.react",["Box.react","FBLogger","I64","Int64Hooks","LSAuthorityLevel","LSFactory","LSFilteredThreadsRangesQueryStoredProcedure","LSIntEnum","LSMessagingThreadTypeUtil","LSThreadRangeFilter","LSThreadsRangesQueryStoredProcedure","MAWIsIDBOperational","MAWMaybeWithTimeout","MWThreadListFocusableTable.react","MWThreadListSupportedThreadTypes","MWXacGating","MetaConfig","ReQL","ReQLPaginatedList.react","ReQLPaginatedList.shared","ReQLSuspense","asyncToGeneratorRuntime","gkx","isCommunityContainersEnabled","isMWXacGroupThread","mwCMIsAnyCMThread","mwCMIsThreadBumped","mwIsThreadDisabled","promiseDone","react","react-compiler-runtime","useMarkSeenWhenVisible","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=i||(i=d("react"));e=i;e.useCallback;var m=e.useEffect,n={container:{display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",flexShrink:"xs83m0k",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0},emptyContentContainer:{alignItems:"x6s0dn4",display:"x78zum5",flexGrow:"x1iyjqo2",justifyContent:"xl56j7k",$$css:!0},list:{display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",overflowX:"x6ikm8r",overflowY:"x10wlt62",$$css:!0}},o=1e4;function p(a,e,g,h){h===void 0&&(h=!1),void d("MAWMaybeWithTimeout").maybeWithTimeout(a.runInTransaction(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b;b=(yield (b=a.threads_ranges_v2__generated).get.apply(b,e));if(b==null||b.isLoadingBefore)return;g&&g();return c("LSThreadsRangesQueryStoredProcedure")(c("LSFactory")(a),{additionalPagesToFetch:(j||(j=d("I64"))).zero,isLoadingAfter:!1,isLoadingBefore:!0,maxLastActivityTimestampMs:b.maxLastActivityTimestampMs,maxThreadKey:b.maxThreadKey,minLastActivityTimestampMs:b.minLastActivityTimestampMs,minThreadKey:b.minThreadKey,parentThreadKey:b.parentThreadKey,shouldSkipE2eeThreadsRanges:h})});return function(b){return a.apply(this,arguments)}}(),"readwrite","ui",void 0,f.id+":113"),o,function(){c("FBLogger")("maw_threads").warn("Paginated threads load took longer than "+o/1e3+" seconds.\n        parent_thread_key: "+(j||(j=d("I64"))).to_string(e[0])+"\n        min_thread_key: "+j.to_string(e[1])+"\n        min_last_activity_timestamp_ms: "+j.to_string(e[2]))})}function q(a,e,g,h,i){g===void 0&&(g=(k||(k=d("LSIntEnum"))).ofNumber(c("LSThreadRangeFilter").NONE)),h===void 0&&(h=(k||(k=d("LSIntEnum"))).ofNumber(c("LSThreadRangeFilter").NONE)),void d("MAWMaybeWithTimeout").maybeWithTimeout(a.runInTransaction(function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b;b=(yield (b=a.filtered_threads_ranges_v3__generated).get.apply(b,e));if(b==null||b.isLoadingBefore)return;i&&i();return c("LSFilteredThreadsRangesQueryStoredProcedure")(c("LSFactory")(a),{filter:g,isLoadingAfter:!1,isLoadingBefore:!0,maxLastActivityTimestampMs:b.maxLastActivityTimestampMs,maxThreadKey:b.maxThreadKey,minLastActivityTimestampMs:b.minLastActivityTimestampMs,minThreadKey:b.minThreadKey,parentThreadKey:b.parentThreadKey,secondaryFilter:h})});return function(b){return a.apply(this,arguments)}}(),"readwrite","ui",void 0,f.id+":174"),o,function(){c("FBLogger")("maw_threads").warn("Filtered paginated threads load took longer than "+o/1e3+" seconds.\n        parent_thread_key: "+(j||(j=d("I64"))).to_string(e[0])+"\n        min_thread_key: "+j.to_string(e[1])+"\n        min_last_activity_timestamp_ms: "+j.to_string(e[2])+"\n        thread_range_filter: "+j.to_string(e[3])+"\n        secondary_thread_range_filter: "+j.to_string(e[5]))})}function r(a,b,e,f,g,h){e===void 0&&(e=(k||(k=d("LSIntEnum"))).ofNumber(c("LSThreadRangeFilter").NONE));f===void 0&&(f=(k||(k=d("LSIntEnum"))).ofNumber(c("LSThreadRangeFilter").NONE));h===void 0&&(h=!1);if(b==null)return;if(!b.threadRangeFilter){var i=[b.parentThreadKey,b.minThreadKey,b.minLastActivityTimestampMs];p(a,i,g,h)}else{i=[b.parentThreadKey,b.minThreadKey,b.minLastActivityTimestampMs,b.threadRangeFilter,b.folderName,b.secondaryThreadRangeFilter,b.threadRangeFilterValue];q(a,i,e,f,g)}}function s(a,e,g,h,i,l){l===void 0&&(l=!1),c("promiseDone")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var b=(yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.tables.sync_groups).getKeyRange((k||(k=d("LSIntEnum"))).ofNumber(1))));b!=null&&(j||(j=d("I64"))).equal(b.syncStatus,(k||(k=d("LSIntEnum"))).ofNumber(2))&&(yield a.runInTransaction(function(a){i==null?void 0:i();if(g==null)return c("LSThreadsRangesQueryStoredProcedure")(c("LSFactory")(a),{additionalPagesToFetch:(j||(j=d("I64"))).zero,isLoadingAfter:!1,isLoadingBefore:!0,maxLastActivityTimestampMs:j.max_int,maxThreadKey:j.max_int,minLastActivityTimestampMs:j.max_int,minThreadKey:j.max_int,parentThreadKey:e,shouldSkipE2eeThreadsRanges:l});else return c("LSFilteredThreadsRangesQueryStoredProcedure")(c("LSFactory")(a),{filter:g,isLoadingAfter:!1,isLoadingBefore:!0,maxLastActivityTimestampMs:(j||(j=d("I64"))).max_int,maxThreadKey:j.max_int,minLastActivityTimestampMs:j.max_int,minThreadKey:j.max_int,parentThreadKey:e,secondaryFilter:h})},"readwrite","ui",void 0,f.id+":288"))})())}function t(a,b,c,e){var g=d("react-compiler-runtime").c(11),h,i;g[0]!==a||g[1]!==c||g[2]!==b?(h=function(){return c==null?d("ReQL").fromTableDescending(a.tables.threads_ranges_v2__generated).getKeyRange(b):d("ReQL").empty()},i=[a,c,b],g[0]=a,g[1]=c,g[2]=b,g[3]=h,g[4]=i):(h=g[3],i=g[4]);h=d("ReQLSuspense").useFirst(h,i,f.id+":334");var k;g[5]!==a||g[6]!==c||g[7]!==b||g[8]!==e?(i=function(){return c==null?d("ReQL").empty():d("ReQL").fromTableDescending(a.tables.filtered_threads_ranges_v3__generated).getKeyRange(b).filter(function(a){return(j||(j=d("I64"))).equal(a.threadRangeFilter,c)&&(!e||(j||(j=d("I64"))).equal(a.secondaryThreadRangeFilter,e))})},k=[a,c,b,e],g[5]=a,g[6]=c,g[7]=b,g[8]=e,g[9]=i,g[10]=k):(i=g[9],k=g[10]);g=d("ReQLSuspense").useFirst(i,k,f.id+":341");return c==null?h:g}function a(a){var b=d("react-compiler-runtime").c(83),e=a.afterContent,g=a.beforeContent,i=a.containerStyle,o=a.customThreadFilter,p=a.emptyContent,q=a.filter,u=a.gridLabel,v=a.imperativeRef,w=a.isSufficientContentLoadedBelow,x=a.loadMoreThreads,y=a.loadMoreThreadsForEmptyRange,z=a.onLoadMoreThreads,A=a.onReachingTop,B=a.onScroll,C=a.onThreadsLoaded,D=a.pageSize,E=a.parentThreadKey,F=a.renderItem,G=a.renderLoadingAnimation,H=a.role,I=a.secondaryFilter,J=a.setIsEmptyInbox;a=a.shouldSkipE2eeThreadsRanges;var K=x===void 0?r:x,L=y===void 0?s:y;x=H===void 0?"grid":H;var M=a===void 0?!1:a,N=d("MAWIsIDBOperational").useIsIDBOperational(),O=(h||(h=c("useReStore")))(),P=t(O,E,q,I);y=c("MetaConfig")._("44");P!=null&&!P.isLoadingBefore&&(C&&C());b[0]!==P?(H=P!=null?(j||(j=d("I64"))).equal(P.minLastActivityTimestampMs,(j||(j=d("I64"))).zero)||(j||(j=d("I64"))).equal(P.minLastActivityTimestampMs,(j||(j=d("I64"))).one)||(y?(j||(j=d("I64"))).equal(P.minLastActivityTimestampMs,(j||(j=d("I64"))).max_int):!1)?null:P.minLastActivityTimestampMs:null,b[0]=P,b[1]=H):H=b[1];var Q=H;b[2]!==P?(a=P!=null?(j||(j=d("I64"))).equal(P.maxLastActivityTimestampMs,(j||(j=d("I64"))).zero)||(j||(j=d("I64"))).equal(P.maxLastActivityTimestampMs,(j||(j=d("I64"))).one)?null:P.maxLastActivityTimestampMs:null,b[2]=P,b[3]=a):a=b[3];var R=a;b[4]!==R||b[5]!==Q?(C=function(){var a;return{gte:d("ReQL").key((a=Q)!=null?a:(j||(j=d("I64"))).min_int),lte:d("ReQL").key((a=R)!=null?a:(j||(j=d("I64"))).max_int)}},y=[R,Q],b[4]=R,b[5]=Q,b[6]=C,b[7]=y):(C=b[6],y=b[7]);var S=d("Int64Hooks").useMemoInt64(C,y);b[8]!==o||b[9]!==O.tables.community_folders||b[10]!==O.tables.threads||b[11]!==N||b[12]!==E?(H=function(){var a,b=(a=d("ReQL")).fromTableDescending(O.tables.threads.index("parentThreadKeyLastActivityTimestampMs")).getKeyRange(E),e=a.fromTableDescending(O.tables.threads.index("secondaryParentThreadKeyLastActivityTimestampMs")).getKeyRange(E);b=a.union(b,e).map(function(a){if(!c("mwCMIsThreadBumped")(a))return{hideFromThreadlist:!1,thread:a};var b=c("gkx")("23433"),e=c("isCommunityContainersEnabled")();if(b&&e){if((j||(j=d("I64"))).equal(a.threadType,(k||(k=d("LSIntEnum"))).ofNumber(18)))return{hideFromThreadlist:!0,thread:a}}else if((j||(j=d("I64"))).equal(a.threadType,(k||(k=d("LSIntEnum"))).ofNumber(17)))return{hideFromThreadlist:!0,thread:a};b=d("ReQLSuspense").first(d("ReQL").fromTableAscending(O.tables.community_folders,["isHidden","takedownState"]).getKeyRange((j||(j=d("I64"))).equal(a.threadType,(k||(k=d("LSIntEnum"))).ofNumber(17))?a.threadKey:a.parentThreadKey),f.id+":491");e=(b==null?void 0:b.takedownState)!=null?(j||(j=d("I64"))).equal(b.takedownState,(k||(k=d("LSIntEnum"))).ofNumber(1)):!1;b=(b==null?void 0:b.isHidden)===!0;b=b||e;return{hideFromThreadlist:b,thread:a}}).filter(function(a){var b=a.hideFromThreadlist,e=a.thread;if(b)return!1;a=d("LSMessagingThreadTypeUtil").isArmadilloSecure(e.threadType);return(!a||N)&&(c("mwCMIsAnyCMThread")(e.threadType)?!c("mwIsThreadDisabled")(e.takedownState):!0)&&c("MWThreadListSupportedThreadTypes").findIndex(function(a){return(j||(j=d("I64"))).equal(e.threadType,a)})!==-1&&(k||(k=d("LSIntEnum"))).toNumber(e.authorityLevel)>c("LSAuthorityLevel").CLIENT_PARTIAL&&(d("MWXacGating").isGroupsEnabled()||!c("isMWXacGroupThread")(e))&&(!o||o(e))}).map(aa);return d("ReQLPaginatedList.shared").fromIterables(a.empty(),b)},b[8]=o,b[9]=O.tables.community_folders,b[10]=O.tables.threads,b[11]=N,b[12]=E,b[13]=H):H=b[13];b[14]!==o||b[15]!==O||b[16]!==N||b[17]!==E?(a=[O,N,E,o],b[14]=o,b[15]=O,b[16]=N,b[17]=E,b[18]=a):a=b[18];var T=d("Int64Hooks").useMemoInt64(H,a);b[19]!==S||b[20]!==T.descending?(C=function(){return T.descending.bounds(S)},b[19]=S,b[20]=T.descending,b[21]=C):C=b[21];b[22]!==S||b[23]!==T?(y=[S,T],b[22]=S,b[23]=T,b[24]=y):y=b[24];var U=d("ReQLSuspense").useFirst(C,y,f.id+":557")==null;b[25]!==U||b[26]!==J?(H=function(){J&&J(U)},a=[U,J],b[25]=U,b[26]=J,b[27]=H,b[28]=a):(H=b[27],a=b[28]);m(H,a);b[29]!==O||b[30]!==P||b[31]!==q||b[32]!==L||b[33]!==z||b[34]!==E||b[35]!==I?(C=function(){P==null&&L(O,E,q,I,z)},y=[E,P,O,q,I,z,L],b[29]=O,b[30]=P,b[31]=q,b[32]=L,b[33]=z,b[34]=E,b[35]=I,b[36]=C,b[37]=y):(C=b[36],y=b[37]);d("Int64Hooks").useEffectInt64(C,y);H=c("useMarkSeenWhenVisible")(E);b[38]!==O||b[39]!==P||b[40]!==q||b[41]!==K||b[42]!==z||b[43]!==I||b[44]!==M?(a=function(){K(O,P,q,I,z,M)},b[38]=O,b[39]=P,b[40]=q,b[41]=K,b[42]=z,b[43]=I,b[44]=M,b[45]=a):a=b[45];C=a;b[46]!==F?(y=function(a){return l.jsx(l.Fragment,{children:F(a)},(j||(j=d("I64"))).to_string(a.threadKey))},b[46]=F,b[47]=y):y=b[47];a=y;if(P==null){b[48]!==G?(y=G!=null?G("nullState",0):null,b[48]=G,b[49]=y):y=b[49];y=y}else{var V=!P.hasMoreBefore,W=!P.hasMoreAfter,X;b[50]!==P.isLoadingAfter||b[51]!==P.isLoadingBefore||b[52]!==p||b[53]!==U?(X=function(){return U&&!P.isLoadingAfter&&!P.isLoadingBefore?l.jsx(c("Box.react"),{xstyle:n.emptyContentContainer,children:p}):null},b[50]=P.isLoadingAfter,b[51]=P.isLoadingBefore,b[52]=p,b[53]=U,b[54]=X):X=b[54];var Y;b[55]!==e?(Y=function(){return e},b[55]=e,b[56]=Y):Y=b[56];var Z;b[57]!==g?(Z=function(){return g},b[57]=g,b[58]=Z):Z=b[58];var $;b[59]!==S||b[60]!==T||b[61]!==v||b[62]!==w||b[63]!==C||b[64]!==A||b[65]!==B||b[66]!==D||b[67]!==a||b[68]!==G||b[69]!==V||b[70]!==W||b[71]!==X||b[72]!==Y||b[73]!==Z?($=l.jsx(d("MWThreadListFocusableTable.react").MWThreadListFocusableTable,{children:l.jsx(c("ReQLPaginatedList.react"),{bounds:S,data:T,direction:"desc",hasReachedBottom:V,hasReachedTop:W,imperativeRef:v,isLogDuplicatedItemEnabled:!0,isSufficientContentLoadedBelow:w,onReachingBottom:C,onReachingTop:A,onScroll:B,pageSize:D,renderEmptyContent:X,renderFooter:Y,renderHeader:Z,renderItem:a,renderLoadingAnimation:G,shouldOverscrollBehaviourContain:!0,xstyle:n.list})}),b[59]=S,b[60]=T,b[61]=v,b[62]=w,b[63]=C,b[64]=A,b[65]=B,b[66]=D,b[67]=a,b[68]=G,b[69]=V,b[70]=W,b[71]=X,b[72]=Y,b[73]=Z,b[74]=$):$=b[74];y=$}b[75]!==i?(v=[n.container,i],b[75]=i,b[76]=v):v=b[76];b[77]!==y||b[78]!==u||b[79]!==x||b[80]!==v||b[81]!==H?(w=l.jsx(c("Box.react"),{"aria-label":u,"data-testid":void 0,ref:H,role:x,xstyle:v,children:y}),b[77]=y,b[78]=u,b[79]=x,b[80]=v,b[81]=H,b[82]=w):w=b[82];return w}function aa(a){a=a.thread;return a}g["default"]=a}),98);
__d("MWPParentThreadKeyContext",["react"],(function(a,b,c,d,e,f,g){"use strict";var h;a=h||d("react");b=a.createContext(null);g["default"]=b}),98);
__d("LSUpdateCommunityChannelJoiningTaskID",[],(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.forEach(b.filter(b.db.table(162).fetch([[[a[0]]],"byFbGroupId"],[[[a[0]]]]),function(c){return b.i64.eq(c.fbGroupId,a[0])||b.i64.eq(c.communityType,b.i64.cast([0,1]))&&b.i64.eq(c.folderId,a[0])}),function(b){var c=b.update;b.item;return c({joiningChannelTaskId:a[1]})})},function(a){return b.resolve(c)}])}a.__sproc_name__="LSMailboxUpdateCommunityChannelJoiningTaskIDStoredProcedure";a.__tables__=["community_folders"];e.exports=a}),null);
__d("LSUpdateCommunityChannelDirectInvite",["LSIssueNewError","LSIssueNewTaskAndGetTaskID","LSLocalize","LSOptimisticUpdateHasPendingJoinRequest","LSUpdateCommunityChannelJoiningTaskID"],(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(d){return c.i64.eq(a[1],c.i64.cast([0,1]))&&!1!==void 0&&!1?c.storedProcedure(b("LSOptimisticUpdateHasPendingJoinRequest"),a[0],!0):c.resolve()},function(a){return c.sortBy(c.db.table(115).fetch(),[["timestampMs","DESC"]]).next().then(function(a,b){var c=a.done;a=a.value;return c?d[0]=!1:(b=a.item,d[0]=b.errorShouldBeShown)})},function(a){return d[0]===!0?c.sequence([function(a){return b("LSLocalize").localizeV2Async(c.i64.cast([0,2285622730]),void 0).then(function(a){return d[11]=a})},function(a){return b("LSLocalize").localizeV2Async(c.i64.cast([0,1919524925]),void 0).then(function(a){return d[12]=a})},function(a){return c.storedProcedure(b("LSIssueNewError"),void 0,c.i64.cast([0,1545093]),d[11],d[12],void 0,void 0)}]):c.resolve()},function(e){return d[2]=new c.Map(),d[2].set("channel_id",a[0]),d[2].set("state",a[1]),d[2].set("is_request_to_join",!1!==void 0&&!1),c.i64.gt(c.i64.cast([0,0]),c.i64.cast([0,0]))?(d[11]=c.i64.of_float(Date.now()),d[3]=c.i64.add(d[11],c.i64.cast([0,0]))):d[3]=c.i64.cast([0,0]),d[4]=d[2].get("channel_id"),d[5]=c.toJSON(d[2]),c.storedProcedure(b("LSIssueNewTaskAndGetTaskID"),["community_channel_invitation","_",c.i64.to_string(d[4])].join(""),c.i64.cast([0,463]),d[5],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,d[3],c.i64.cast([0,0])).then(function(a){return a=a,d[6]=a[0],a})},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[7]=c.i64.cast([-1,4294967295]):(b=a.item,d[7]=b.parentThreadKey)})},function(a){return c.db.table(162).fetch([[[d[7]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[9]=c.i64.cast([-1,4294967295]):(b=a.item,d[9]=b.fbGroupId)})},function(e){return c.i64.eq(a[1],c.i64.cast([0,1]))?c.storedProcedure(b("LSUpdateCommunityChannelJoiningTaskID"),d[9],d[6]):c.resolve()}])},function(a){return c.resolve(e)}])}a.__sproc_name__="LSMailboxUpdateCommunityChannelDirectInviteStoredProcedure";a.__tables__=["user_visible_network_connectivity_error","threads","community_folders"];e.exports=a}),null);
__d("LSUpdateCommunityChannelDirectInviteStoredProcedure",["LSSynchronousPromise","LSUpdateCommunityChannelDirectInvite","Promise","cr:8709"],(function(a,b,c,d,e,f,g){var h;function a(a,e){a=a.storedProcedure(c("LSUpdateCommunityChannelDirectInvite"),e.channelId,e.state);return(h||(h=b("Promise"))).resolve(d("LSSynchronousPromise").maybeExtractValueIfSynchronousPromise(a))}g["default"]=a}),98);
__d("MWLSPinnedThreadUtils",["I64","Int64Hooks","LSBitFlag","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i;(h||d("react")).useCallback;function j(a){return a!=null&&d("LSBitFlag").has((i||(i=d("I64"))).lsl_((i||(i=d("I64"))).one,14),a)}function a(a){var b=d("react-compiler-runtime").c(3),c,e;b[0]!==a?(c=function(){return j(a)},e=[a],b[0]=a,b[1]=c,b[2]=e):(c=b[1],e=b[2]);return d("Int64Hooks").useMemoInt64(c,e)}function b(){return k}function k(a){return!j(a.threadTags)}g.isPinnedThread=j;g.useIsPinnedThread=a;g.useFilterPinnedThreads=b}),98);
__d("MWPThreadListItemInviteAddOn.react",["fbt","MWPBumpEntityKey","MWXCircleButton.react","MWXIconCheckmark","MWXIconCross","MWXRow.react","MWXRowItem.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k=h._(/*BTDS*/"__JHASH__ThY36iiMiSm__JHASH__"),l=h._(/*BTDS*/"__JHASH__IQ1-ytNyqLB__JHASH__");function a(a){var b=d("react-compiler-runtime").c(7),e=a.onAccept,f=a.onDecline;b[0]!==e?(a=j.jsx(c("MWXRowItem.react"),{children:j.jsx(c("MWXCircleButton.react"),{icon:c("MWXIconCheckmark"),label:k,onPress:function(a){d("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw.sidebar","thread_invite.accept"),e(a)},size:32})}),b[0]=e,b[1]=a):a=b[1];var g;b[2]!==f?(g=j.jsx(c("MWXRowItem.react"),{children:j.jsx(c("MWXCircleButton.react"),{icon:c("MWXIconCross"),label:l,onPress:function(a){d("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw.sidebar","thread_invite.decline"),f(a)},size:32})}),b[2]=f,b[3]=g):g=b[3];var h;b[4]!==a||b[5]!==g?(h=j.jsxs(c("MWXRow.react"),{paddingHorizontal:0,paddingVertical:0,verticalAlign:"center",children:[a,g]}),b[4]=a,b[5]=g,b[6]=h):h=b[6];return h}g["default"]=a}),226);
__d("MWXIconPauseChat",["MWXSvgIcon","SVGIcon","cr:12515","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=d("MWXSvgIcon").mwxSvgIcon(d("SVGIcon").svgIcon(b("cr:12515")),c("gkx")("23219"));g["default"]=a}),98);
__d("MWThreadAddOnSecondary.react",["fbt","CometOverlappingFacepile_DEPRECATED.react","CurrentEnvironment","FDSBadge.react","I64","MWPActor.react","MWXIconBellCross","MWXIconPauseChat","MWXIconPushpin","MWXIconStrict.react","MWXPressable.react","ReQL","ReQLSuspense","getLSMediaContactProfilePictureUrl","gkx","isArmadillo","react","react-compiler-runtime","useMWIsReadReceiptsDisabledForThread","useMWLSMarkThreadAsRead","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));b=k.memo;function m(a){var b=d("react-compiler-runtime").c(19),e=(i||(i=c("useReStore")))(),g=d("MWPActor.react").useActor(),h;b[0]!==e.tables.threads||b[1]!==a?(h=function(){return d("ReQL").fromTableAscending(e.tables.threads,["threadKey","lastActivityTimestampMs"]).getKeyRange(a)},b[0]=e.tables.threads,b[1]=a,b[2]=h):h=b[2];var k;b[3]!==e||b[4]!==a?(k=[e,a],b[3]=e,b[4]=a,b[5]=k):k=b[5];var l=d("ReQLSuspense").useFirst(h,k,f.id+":55"),m=c("useMWIsReadReceiptsDisabledForThread")(a);b[6]!==g||b[7]!==e.tables.contacts||b[8]!==e.tables.participants||b[9]!==m||b[10]!==l?(h=function(){if(m||l==null)return d("ReQL").empty();else return d("ReQL").fromTableAscending(e.tables.participants.index("threadKeyReadWatermarkTimestampMs"),["contactId"]).getKeyRange(l.threadKey).bounds({gte:d("ReQL").key(l.lastActivityTimestampMs)}).filter(function(a){a=a.contactId;return!(j||(j=d("I64"))).equal(a,g)}).take(3).map(function(a){a=a.contactId;a=d("ReQLSuspense").first(d("ReQL").fromTableAscending(e.tables.contacts,["name","profilePictureFallbackUrl","profilePictureUrl","profilePictureUrlExpirationTimestampMs"]).getKeyRange(a),f.id+":85");return a!=null?{alt:a.name,source:{uri:c("getLSMediaContactProfilePictureUrl")(a)}}:null})},b[6]=g,b[7]=e.tables.contacts,b[8]=e.tables.participants,b[9]=m,b[10]=l,b[11]=h):h=b[11];b[12]!==g||b[13]!==e||b[14]!==m||b[15]!==l?(k=[e,g,l,m],b[12]=g,b[13]=e,b[14]=m,b[15]=l,b[16]=k):k=b[16];h=d("ReQLSuspense").useArray(h,k,f.id+":66");b[17]!==h?(k=h.filter(Boolean),b[17]=h,b[18]=k):k=b[18];return k}function a(a){var b=d("react-compiler-runtime").c(10),e=a.entryPoint,f=a.isMuted,g=a.isPaused,i=a.isPinnedThread,j=a.isUnread,k=a.isViewerSender,o=a.lastMessageDeliveryStatusIcon;a=a.thread;var p=c("useMWLSMarkThreadAsRead")(e);e=m(a.threadKey);if(b[0]!==f||b[1]!==g||b[2]!==i||b[3]!==j||b[4]!==k||b[5]!==o||b[6]!==p||b[7]!==e){a=[];g&&a.push(l.jsx(c("MWXIconStrict.react"),{color:"disabled",icon:c("MWXIconPauseChat"),size:16}));f&&a.push(l.jsx(c("MWXIconStrict.react"),{color:"disabled",icon:c("MWXIconBellCross"),size:16}));i&&c("gkx")("9095")&&a.push(l.jsx(c("MWXIconStrict.react"),{alt:h._(/*BTDS*/"__JHASH__Ylq9BBFqyrF__JHASH__"),color:"disabled",icon:c("MWXIconPushpin"),size:16}));j?a.push(l.jsx(c("MWXPressable.react"),{"aria-hidden":!0,expanding:!0,focusable:!1,onPress:function(a){return p()},testid:void 0,children:l.jsx(c("FDSBadge.react"),{color:"blue",isProfileBadge:!0,size:c("isArmadillo")()&&c("CurrentEnvironment").messengerdotcom?10:12})})):k&&(e.length===0?o&&a.push(o):a.push(l.jsx(c("CometOverlappingFacepile_DEPRECATED.react"),{count:e.length,isTextInline:!0,items:e,screenReaderLabel:e.length===1?h._(/*BTDS*/"__JHASH__2MhSP-AMGlO__JHASH__",[h._param("=personName",e[0].alt)]):h._(/*BTDS*/"__JHASH__jJBaERf_iKB__JHASH__",[h._param("=numPeople",e.length,[0])]),size:16})));var q;b[9]===Symbol["for"]("react.memo_cache_sentinel")?(q={className:"x6s0dn4 x78zum5 xozqiw3"},b[9]=q):q=b[9];q=l.jsx("div",babelHelpers["extends"]({},q,{children:a.map(n)}));b[0]=f;b[1]=g;b[2]=i;b[3]=j;b[4]=k;b[5]=o;b[6]=p;b[7]=e;b[8]=q}else q=b[8];return q}function n(a,b){return l.jsxs(l.Fragment,{children:[b!==0?l.jsx("div",{className:"x1fsd2vl"}):null,a]},"item_"+b.toString(10))}n.displayName=n.name+" [from "+f.id+"]";e=b(a);g["default"]=e}),226);
__d("MWThreadListItemAddOnEnd.react",["fbt","FBGroupChatInviteState","I64","Int64Hooks","LSFactory","LSIntEnum","LSUpdateCommunityChannelDirectInviteStoredProcedure","MWCMGetValidId","MWJewelPopoverDialogContext.react","MWLSPinnedThreadUtils","MWPActor.react","MWPIsThreadUnread","MWPThreadListItemInviteAddOn.react","MWThreadAddOnSecondary.react","ReQL","ReQLSuspense","ThreadStatus","cometPushToast","promiseDone","react","react-compiler-runtime","requireDeferred","useMWChatCalculateIsMutedFromExpireTime","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=j||(j=d("react")),n=j.useContext,o=c("requireDeferred")("C4gEngagementFalcoEvent").__setRef("MWThreadListItemAddOnEnd.react");function p(a){var b=a.clientExtras,c=a.communityId,e=a.event,f=a.groupId,g=a.parentSurface,h=g===void 0?"channel_list":g,i=a.source,j=a.threadId;o.onReady(function(a){return a.log(function(){return{action:"tap",client_extras:b,community_id:c==null?null:(l||(l=d("I64"))).to_string(c),event:e,group_id:d("MWCMGetValidId").MWCMHasValidFbGroupId(f)?(l||(l=d("I64"))).to_string(f):null,parent_surface:h,source:i,surface:"chat_row",thread_id:(l||(l=d("I64"))).to_string(j)}})})}function a(a){var b=d("react-compiler-runtime").c(32),e=a.communityId,f=a.fbGroupId,g=a.isMaximized,j=a.messagingEntrypoint,o=a.mutedUntilMs,q=a.parentSurface,r=a.showGroupsJoinChatDialog,s=a.thread,t=(i||(i=c("useReStore")))();a=d("MWPActor.react").useActor();var u=s.snippetSenderContactId,v;b[0]!==a||b[1]!==u?(v=u!=null?(l||(l=d("I64"))).equal(u,a):!1,b[0]=a,b[1]=u,b[2]=v):v=b[2];a=v;u=(l||(l=d("I64"))).equal(s.parentThreadKey,(k||(k=d("LSIntEnum"))).ofNumber(0));v=n(c("MWJewelPopoverDialogContext.react"));var w=v.setIsOpenForDialog;v=s.hasPendingInvitation||!1;o=c("useMWChatCalculateIsMutedFromExpireTime")(o);var x=d("MWLSPinnedThreadUtils").useIsPinnedThread(s.threadTags),y=d("MWPIsThreadUnread").useIsThreadUnread(s.threadKey),z;b[3]!==s.threadStatus?(z=s.threadStatus!=null&&((l||(l=d("I64"))).equal(s.threadStatus,(l||(l=d("I64"))).of_int32(c("ThreadStatus").PAUSED))||(l||(l=d("I64"))).equal(s.threadStatus,(l||(l=d("I64"))).of_int32(c("ThreadStatus").UPGRADED_TO_COMMUNITY_AND_TO_BE_PAUSED))),b[3]=s.threadStatus,b[4]=z):z=b[4];z=z;var A;b[5]!==e||b[6]!==t||b[7]!==f||b[8]!==q||b[9]!==s.needsAdminApprovalForNewParticipant||b[10]!==s.threadKey?(A=function(){var a;c("promiseDone")(t.runInTransaction(function(a){return c("LSUpdateCommunityChannelDirectInviteStoredProcedure")(c("LSFactory")(a),{channelId:s.threadKey,state:(k||(k=d("LSIntEnum"))).ofNumber(c("FBGroupChatInviteState").DECLINED_BY_RECEIVER)})},"readwrite"));p({clientExtras:{member_join_request_enabled:((a=s.needsAdminApprovalForNewParticipant)!=null?a:!1)?"1":"0"},communityId:e,event:"invite_declined",groupId:f,parentSurface:q,source:"direct_invite_decline_button",threadId:s.threadKey});d("cometPushToast").cometPushSimpleToast(h._(/*BTDS*/"__JHASH__tNF5MX9GoB5__JHASH__").toString())},b[5]=e,b[6]=t,b[7]=f,b[8]=q,b[9]=s.needsAdminApprovalForNewParticipant,b[10]=s.threadKey,b[11]=A):A=b[11];A=A;if(v){b[12]!==e||b[13]!==f||b[14]!==j||b[15]!==q||b[16]!==w||b[17]!==r||b[18]!==s.needsAdminApprovalForNewParticipant||b[19]!==s.threadKey?(v=function(a){var b;p({clientExtras:{member_join_request_enabled:((b=s.needsAdminApprovalForNewParticipant)!=null?b:!1)?"1":"0"},communityId:e,event:"invite_accepted",groupId:f,parentSurface:q,source:"direct_invite_join_button",threadId:s.threadKey});w(j==="jewel");return r(a)},b[12]=e,b[13]=f,b[14]=j,b[15]=q,b[16]=w,b[17]=r,b[18]=s.needsAdminApprovalForNewParticipant,b[19]=s.threadKey,b[20]=v):v=b[20];var B;b[21]!==A||b[22]!==v?(B=m.jsx(c("MWPThreadListItemInviteAddOn.react"),{onAccept:v,onDecline:A}),b[21]=A,b[22]=v,b[23]=B):B=b[23];return B}if(g||!u){b[24]!==o||b[25]!==z||b[26]!==x||b[27]!==y||b[28]!==a||b[29]!==j||b[30]!==s?(A=m.jsx(c("MWThreadAddOnSecondary.react"),{entryPoint:j,isMuted:o,isPaused:z,isPinnedThread:x,isUnread:y,isViewerSender:a,lastMessageDeliveryStatusIcon:null,thread:s}),b[24]=o,b[25]=z,b[26]=x,b[27]=y,b[28]=a,b[29]=j,b[30]=s,b[31]=A):A=b[31];return A}return null}var q=m.memo(a);function b(a){var b=d("react-compiler-runtime").c(25),e,g,h,j,k;b[0]!==a?(k=a.threadKey,e=a.communityId,g=a.fbGroupId,h=a.renderAddOnEnd,j=babelHelpers.objectWithoutPropertiesLoose(a,["threadKey","communityId","fbGroupId","renderAddOnEnd"]),b[0]=a,b[1]=e,b[2]=g,b[3]=h,b[4]=j,b[5]=k):(e=b[1],g=b[2],h=b[3],j=b[4],k=b[5]);var l;b[6]!==g?(a=function(){return g},l=[g],b[6]=g,b[7]=a,b[8]=l):(a=b[7],l=b[8]);a=d("Int64Hooks").useMemoInt64(a,l);var n;b[9]!==e?(l=function(){return e},n=[e],b[9]=e,b[10]=l,b[11]=n):(l=b[10],n=b[11]);l=d("Int64Hooks").useMemoInt64(l,n);var o=(i||(i=c("useReStore")))();b[12]!==o.tables.threads||b[13]!==k?(n=function(){return d("ReQL").fromTableAscending(o.tables.threads,["threadType","threadStatus","threadKey","snippetSenderContactId","parentThreadKey","hasPendingInvitation","takedownState","needsAdminApprovalForNewParticipant","threadTags"]).getKeyRange(k)},b[12]=o.tables.threads,b[13]=k,b[14]=n):n=b[14];var p;b[15]!==o||b[16]!==k?(p=[o,k],b[15]=o,b[16]=k,b[17]=p):p=b[17];n=d("ReQLSuspense").useFirst(n,p,f.id+":242");if(h!=null){b[18]!==h?(p=h(),b[18]=h,b[19]=p):p=b[19];return p}if(n==null)return null;b[20]!==l||b[21]!==a||b[22]!==j||b[23]!==n?(h=m.jsx(q,babelHelpers["extends"]({communityId:l,fbGroupId:a,thread:n},j)),b[20]=l,b[21]=a,b[22]=j,b[23]=n,b[24]=h):h=b[24];return h}g["default"]=b}),226);
__d("MWThreadListCommunityContainer.react",["CometPlaceholder.react","GroupsCometChatsEngagementLogger","I64","Int64Hooks","LSIntEnum","LSRtcCallState","LSThreadTitle.react","MAWVault","MWCMGetValidId","MWCMThreadTypes.react","MWInboxCommunityThreadsRouteBuilder","MWPIsThreadUnread","MWThreadListConsts","MWThreadListFocusableTable.react","MWThreadListItemAddOnEnd.react","MWThreadListItemMoreActions.react","MWThreadListLastMessage.react","MWThreadSnippetForDisplay.react","MWVerticalRhythm","MWXListCellPressable.react","MWXProfilePhoto.react","MWXText.react","MessengerClientEventLogger","ReQL","ReQLSuspense","emptyFunction","getLSMediaThreadPictureUrl","gkx","mwCMisStandAloneCommunity","mwIsThreadDisabled","qex","qpl","react","react-strict-dom","requireDeferred","useMatchViewport","useMenuButtonVisibilityState","useReStore","useSinglePartialViewImpression"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=i||(i=d("react"));b=i;var m=b.useCallback,n=b.useMemo,o=c("requireDeferred")("QuickPerformanceLogger").__setRef("MWThreadListCommunityContainer.react"),p={listItemContainer:{paddingStart:"xurb0ha",paddingEnd:"x1sxyh0",paddingLeft:null,paddingRight:null,position:"x1n2onr6",$$css:!0},listItemContainerForMessengerDotCom:{paddingStart:"x16hj40l",paddingEnd:"xsyo7zv",paddingLeft:null,paddingRight:null,$$css:!0}},q=c("qpl")._(269227335,"359");function a(a){var b,e=a.containerThread,g=a.folder,i=a.messagingEntrypoint,r=a.responsive,s=a.selected,t=d("MWPIsThreadUnread").isThreadUnread(e);a=c("useSinglePartialViewImpression")({onImpressionStart:function(){d("MessengerClientEventLogger").log({business_account_user:null,event_type:"one_px_impression",is_smc:c("mwCMisStandAloneCommunity")(g.communityType),marketplace_user:null,multiple_account_user:null,surface:{entry_point:"community_container",major_surface:"inbox_tab",minor_surface:"inbox_communities"},target:{badging:{count:t?"1":"0"},button:{type:null},community:{id:(j||(j=d("I64"))).to_string(g.folderId)},group:{id:j.to_string(g.fbGroupId)},ranking:null}})}});var u=(b=c("getLSMediaThreadPictureUrl")(e))!=null?b:"",v=n(function(){return l.jsx("div",babelHelpers["extends"]({className:"x1h0ha7o xg83lxy"},{children:l.jsx(c("MWXProfilePhoto.react"),{shape:"roundedRectLarge",size:48,source:{uri:u}})}))},[u]),w=n(function(){return l.jsx(c("LSThreadTitle.react"),{thread:e})},[e]),x=d("MAWVault").unvault((b=e.snippet)!=null?b:""),y=d("Int64Hooks").useMemoInt64(function(){return l.jsx(c("MWThreadListLastMessage.react"),{hasOngoingCall:!(j||(j=d("I64"))).equal(e.ongoingCallState,(k||(k=d("LSIntEnum"))).ofNumber(c("LSRtcCallState").NO_ONGOING_CALL)),isUnread:t,lastMessageCtaType:e.lastMessageCtaType,lastMessageTimestamp:j.to_float(e.lastActivityTimestampMs),showDisappearingMessageVisualIndicator:!1,showSnippetText:!0,showTimestamp:!0,snippet:l.jsx(c("MWThreadSnippetForDisplay.react"),{snippetRaw:x,thread:e}),thread:e})},[t,x,e]),z=n(function(){var a=(j||(j=d("I64"))).to_float(g.notificationMutedUntil);return a===-1||a===0?a:a+Date.now()},[g.notificationMutedUntil]),A=d("Int64Hooks").useMemoInt64(function(){return l.jsx(c("MWThreadListItemAddOnEnd.react"),{communityId:g.folderId,fbGroupId:g.fbGroupId,isMaximized:!1,messagingEntrypoint:"inbox",mutedUntilMs:z,parentSurface:"channel_list",showGroupsJoinChatDialog:c("emptyFunction"),threadKey:e.threadKey})},[g.fbGroupId,g.folderId,e.threadKey,z]),B=c("useMenuButtonVisibilityState")(!0),C=B[1].setListItemHovered;b=m(function(){return C(!1)},[C]);var D=m(function(){return C(!0)},[C]),E=c("mwIsThreadDisabled")(void 0,g.takedownState);r=c("gkx")("24056")?!1:r;r=c("useMatchViewport")("min","width",d("MWThreadListConsts").minimumPixelsNeededForMaxDisplay)||!r;var F=E?!1:r;E=d("Int64Hooks").useMemoInt64(function(){return F?l.jsx(c("CometPlaceholder.react"),{fallback:null,name:"MWThreadListCommunityContainer",children:l.jsx(c("MWThreadListItemMoreActions.react"),{communityType:g.communityType,fbGroupId:g.fbGroupId,folderId:g.folderId,isContainerUnread:t,menuButtonVisibilityState:B,messagingEntrypoint:i,onClose:c("emptyFunction"),selected:s,thread:{threadKey:e.threadKey,threadName:e.threadName,threadType:e.threadType}})}):null},[g.communityType,g.fbGroupId,g.folderId,t,B,i,s,F,e.threadName,e.threadKey,e.threadType]);var G=d("MWInboxCommunityThreadsRouteBuilder").buildURLWithoutThread({folder_id:(j||(j=d("I64"))).to_string(e.threadKey)}),H=(h||(h=c("useReStore")))();r=d("ReQLSuspense").useArray(function(){return d("ReQL").fromTableAscending(H.tables.threads.index("parentThreadKeyLastActivityTimestampMs")).getKeyRange(g.folderId)},[H,g.folderId],f.id+":275").filter(function(a){return!(j||(j=d("I64"))).equal(a.threadType,(k||(k=d("LSIntEnum"))).ofNumber(17))&&d("MWCMThreadTypes.react").isJoinedCMThread(a.threadType)});var I=r.filter(function(a){return d("MWPIsThreadUnread").isThreadUnread(a)}),J=I.length,K=c("qex")._("1752")===!0,L=K?r.filter(function(a){return!d("MWPIsThreadUnread").isThreadUnread(a)}):r.filter(function(a){return!d("MWPIsThreadUnread").isThreadUnread(a)}).sort(function(a,b){return((a=a==null?void 0:a.threadName)!=null?a:"").localeCompare((a=b==null?void 0:b.threadName)!=null?a:"")}),M=L.length,N=K?M-1:0,O=d("MWCMGetValidId").MWCMHasValidFbGroupId(g==null?void 0:g.fbGroupId)?(j||(j=d("I64"))).to_string(g.fbGroupId):null,P=d("Int64Hooks").useCallbackInt64(function(){var a=function(a){return function(){return d("GroupsCometChatsEngagementLogger").log({action:"tap",client_extras:{is_community_container:"true",read_count:M.toString(),unread_count:J.toString()},community_id:(j||(j=d("I64"))).to_string(g.folderId),entry_point:"cm:community_container",event:"thread_open",group_id:O,source:"messenger_inbox",surface:"messenger_inbox",thread_id:a})}};if(J===1){var b=I[0]&&(j||(j=d("I64"))).to_string(I[0].threadKey);return[d("MWInboxCommunityThreadsRouteBuilder").buildURL({folder_id:(j||(j=d("I64"))).to_string(g.folderId),thread_key:b}),a(b)]}if(M>0){b=L[N]&&(j||(j=d("I64"))).to_string(L[N].threadKey);return[d("MWInboxCommunityThreadsRouteBuilder").buildURL({folder_id:(j||(j=d("I64"))).to_string(g.folderId),thread_key:b}),a(b)]}return[G,void 0]},[J,M,G,g.folderId,O,I,L,N]);r=d("Int64Hooks").useMemoInt64(function(){var a=P(),b=a[0],e=a[1];return l.jsx(c("MWXListCellPressable.react"),{addOnEnd:A,addOnStart:v,content:l.jsxs("div",{children:[l.jsx(c("MWXText.react"),{align:"start",color:"primary",numberOfLines:1,type:"headline4",children:w}),l.jsx(c("MWVerticalRhythm"),{height:8}),y]}),linkProps:{passthroughProps:{isOpenedFromCommunityContainer:!0},preventLocalNavigation:!1,url:b},onPress:function(a){var b=(a=a.nativeEvent)==null?void 0:a.timeStamp;o.onReady(function(a){a.markerStart(q,(j||(j=d("I64"))).to_int32(g.folderId),b),a.markerAnnotate(q,{bool:{is_container:!0}},{instanceKey:j.to_int32(g.folderId)})});e==null?void 0:e();d("GroupsCometChatsEngagementLogger").log({action:"tap",client_extras:{is_community_container:"true",open_thread:e==null?"false":"true",read_count:M.toString(),unread_count:J.toString()},community_id:(j||(j=d("I64"))).to_string(g.folderId),entry_point:"cm:community_container",event:"community_container_open",group_id:O,source:"messenger_inbox",surface:"messenger_inbox"});d("MessengerClientEventLogger").log({business_account_user:null,event_type:"single_click",is_smc:c("mwCMisStandAloneCommunity")(g.communityType),marketplace_user:null,multiple_account_user:null,surface:{entry_point:"community_container",major_surface:"inbox_tab",minor_surface:"inbox_communities"},target:{badging:{count:t?"1":"0"},button:{type:null},community:{id:j.to_string(g.folderId)},group:{id:j.to_string(g.fbGroupId)},ranking:null}})},selected:s})},[P,A,v,w,y,s,M,J,g.folderId,g.communityType,g.fbGroupId,O,t]);return l.jsx(d("react-strict-dom").html.div,{"data-testid":void 0,onMouseEnter:D,onMouseLeave:b,ref:a,role:"row",style:[p.listItemContainer,c("gkx")("23219")?p.listItemContainerForMessengerDotCom:!1],children:l.jsxs(d("MWThreadListFocusableTable.react").MWThreadListFocusableTableRow,{children:[l.jsx(d("MWThreadListFocusableTable.react").MWThreadListFocusableTableCell,{children:l.jsx(d("react-strict-dom").html.div,{role:"gridcell",children:r})}),E]})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MWThreadListEmptyContainer.react",["CometPlaceholder.react","JSResourceForInteraction","lazyLoadComponent","react","react-compiler-runtime","useEnsureViewerContactExistAndUpdated"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j=c("lazyLoadComponent")(c("JSResourceForInteraction")("MWThreadListNullState.react").__setRef("MWThreadListEmptyContainer.react"));function a(a){var b=d("react-compiler-runtime").c(2);a=a.parentThreadKey;c("useEnsureViewerContactExistAndUpdated")();var e;b[0]!==a?(e=i.jsx(c("CometPlaceholder.react"),{fallback:null,name:"MWThreadListEmptyContainer",children:i.jsx(j,{parentThreadKey:a})}),b[0]=a,b[1]=e):e=b[1];return e}g["default"]=a}),98);
__d("useMWLogLongSuspense",["MWPBumpEntityKey","clearTimeout","react","react-compiler-runtime","setTimeout","useMergeRefs","useVisibilityObserver"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");b.useCallback;var i=b.useEffect,j=b.useRef;function a(a,b){var d=l(a,5,b),e=l(a,15,b),f=l(a,60,b);a=l(a,300,b);return c("useMergeRefs")(d,e,f,a)}var k=/\W/g;function l(a,b,e){var f=d("react-compiler-runtime").c(11),g;f[0]!==a?(g=a.replace(k,"_"),f[0]=a,f[1]=g):g=f[1];var h=g,l=j();f[2]!==e||f[3]!==h||f[4]!==b?(a=function(){l.current=c("setTimeout")(function(){d("MWPBumpEntityKey").bumpEntityKeyWithAppId("mwp","long_suspension."+h+".suspended_"+b+"_sec"),e==null?void 0:e(b)},b*1e3)},f[2]=e,f[3]=h,f[4]=b,f[5]=a):a=f[5];g=a;f[6]===Symbol["for"]("react.memo_cache_sentinel")?(a=function(){c("clearTimeout")(l.current)},f[6]=a):a=f[6];var m=a,n;f[7]===Symbol["for"]("react.memo_cache_sentinel")?(a=function(){return m},n=[m],f[7]=a,f[8]=n):(a=f[7],n=f[8]);i(a,n);f[9]!==g?(a={onHidden:m,onVisible:g},f[9]=g,f[10]=a):a=f[10];return c("useVisibilityObserver")(a)}g["default"]=a}),98);
__d("MWThreadListGlimmer.react",["CometVisualCompletionAttributes","MWXGlimmer.react","gkx","react","react-compiler-runtime","react-strict-dom","useMWLogLongSuspense"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={glimmerBody:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",height:"xlup9mm",width:"xktia5q",$$css:!0},glimmerHeadline:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",height:"x1qx5ct2",marginBottom:"x1e56ztr",width:"x3hqpx7",$$css:!0},glimmerPhoto:{flexShrink:"x2lah0s",$$css:!0},glimmerPhoto48:{borderTopStartRadius:"xzolkzo",borderTopEndRadius:"x12go9s9",borderBottomEndRadius:"x1rnf11y",borderBottomStartRadius:"xprq8jg",height:"xsdox4t",marginEnd:"xmo9yow",width:"x1useyqa",$$css:!0},glimmerPhoto56:{borderTopStartRadius:"xzolkzo",borderTopEndRadius:"x12go9s9",borderBottomEndRadius:"x1rnf11y",borderBottomStartRadius:"xprq8jg",height:"xnnlda6",marginEnd:"xmo9yow",width:"x15yg21f",$$css:!0},glimmerRoot:{display:"x78zum5",paddingBottom:"x1a8lsjc",paddingStart:"x1swvt13",paddingEnd:"x1pi30zi",paddingLeft:null,paddingRight:null,paddingTop:"x889kno",$$css:!0},glimmerText:{display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",justifyContent:"xl56j7k",$$css:!0}},k=c("gkx")("23219"),l=i.forwardRef(function(a,b){var e=a.role;a=a.vcIgnore;return i.jsxs(d("react-strict-dom").html.div,babelHelpers["extends"]({ref:b,role:e,style:j.glimmerRoot},a===!0?c("CometVisualCompletionAttributes").IGNORE:{},{children:[i.jsx(c("MWXGlimmer.react"),{index:0,xstyle:[k?j.glimmerPhoto48:j.glimmerPhoto56,j.glimmerPhoto]}),i.jsxs(d("react-strict-dom").html.div,{style:j.glimmerText,children:[i.jsx(c("MWXGlimmer.react"),{index:1,xstyle:j.glimmerHeadline}),i.jsx(c("MWXGlimmer.react"),{index:2,xstyle:j.glimmerBody})]})]}))});function a(a){var b=d("react-compiler-runtime").c(11),e=a.numberOfItems,f=a.parentComponentForDebug,g=a.role,h=a.vcIgnore;a=e===void 0?1:e;var j=c("useMWLogLongSuspense")(f+".MWThreadListGlimmer");if(b[0]!==a||b[1]!==j||b[2]!==g||b[3]!==h){b[5]!==j||b[6]!==g||b[7]!==h?(e=function(a,b){return i.jsx(l,{ref:b===0?j:void 0,role:g,vcIgnore:h},"mw_list_glimmer_"+b)},b[5]=j,b[6]=g,b[7]=h,b[8]=e):e=b[8];f=Array(a).fill(!0).map(e);b[0]=a;b[1]=j;b[2]=g;b[3]=h;b[4]=f}else f=b[4];b[9]!==f?(e=i.jsx(i.Fragment,{children:f}),b[9]=f,b[10]=e):e=b[10];return e}g["default"]=a}),98);
__d("JSSet.bs",[],(function(a,b,c,d,e,f){"use strict";function a(a){return Array.from(a.values())}f.values=a}),66);
__d("MessageRequestsBulkActionsThreadListItem",["ix","CometPressable.react","I64","JSSet.bs","MWPIsThreadUnread","MWXIcon.react","MessageRequestsBulkActionsContext.react","fbicon","react","react-compiler-runtime","useMWAriaLabelForThread"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=i||(i=d("react"));b=i;b.useCallback;var l=b.useContext,m=b.useEffect,n={pressableContent:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",display:"x1lliihq",width:"xh8yej3",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(33),e=a.thread;a=a.threadListCell;var f=l(c("MessageRequestsBulkActionsContext.react")),g=f.setBulkActionsUnreadSelectedThreads,i=f.setBulkActionsSelectedThreads,n=f.bulkActionsSelectedThreads;b[0]!==e.threadKey?(f=(j||(j=d("I64"))).to_string(e.threadKey),b[0]=e.threadKey,b[1]=f):f=b[1];var p=f;b[2]!==i||b[3]!==p?(f=function(){return i(function(a){a=new Set(d("JSSet.bs").values(a));if(a["delete"](p))return a;else return a.add(p)})},b[2]=i,b[3]=p,b[4]=f):f=b[4];f=f;var q;b[5]!==n||b[6]!==g||b[7]!==e||b[8]!==p?(q=function(){g(function(a){a=new Set(d("JSSet.bs").values(a));if(d("MWPIsThreadUnread").isThreadUnread(e)&&n.has(p))return a.add(p);else if(d("MWPIsThreadUnread").isThreadUnread(e)){a["delete"](p);return a}else return a})},b[5]=n,b[6]=g,b[7]=e,b[8]=p,b[9]=q):q=b[9];var r;b[10]!==n?(r=[n],b[10]=n,b[11]=r):r=b[11];m(q,r);b[12]!==n||b[13]!==p?(q=n.has(p),b[12]=n,b[13]=p,b[14]=q):q=b[14];r=q;q=c("useMWAriaLabelForThread")(e);var s,t;b[15]===Symbol["for"]("react.memo_cache_sentinel")?(s={className:"x6s0dn4 x78zum5 xexx8yu x1iji9kk x18d9i69 x1sln4lm"},t={className:"x1sxyh0"},b[15]=s,b[16]=t):(s=b[15],t=b[16]);var u=r?"highlight":"disabled",v;b[17]!==r?(v=r?d("fbicon")._(h("484757"),20):d("fbicon")._(h("659288"),20),b[17]=r,b[18]=v):v=b[18];b[19]!==u||b[20]!==v?(t=k.jsx("div",babelHelpers["extends"]({},t,{children:k.jsx(c("MWXIcon.react"),{color:u,hideHoverOverlay:!0,icon:v})})),b[19]=u,b[20]=v,b[21]=t):t=b[21];b[22]===Symbol["for"]("react.memo_cache_sentinel")?(u={className:"x1iyjqo2 xeuugli x47corl"},b[22]=u):u=b[22];b[23]!==a?(v=k.jsx("div",babelHelpers["extends"]({},u,{children:a})),b[23]=a,b[24]=v):v=b[24];b[25]!==v||b[26]!==t?(u=k.jsxs("div",babelHelpers["extends"]({"aria-hidden":!0},s,{children:[t,v]})),b[25]=v,b[26]=t,b[27]=u):u=b[27];b[28]!==q||b[29]!==r||b[30]!==f||b[31]!==u?(a=k.jsx(c("CometPressable.react"),{"aria-checked":r,"aria-label":q,onPress:f,role:"checkbox",xstyle:o,children:u}),b[28]=q,b[29]=r,b[30]=f,b[31]=u,b[32]=a):a=b[32];return a}function o(){return[n.pressableContent]}g["default"]=a}),98);
__d("useGroupsCometJoinChatDialog",["GroupsCometJoinChatDialog.entrypoint","I64","Int64Hooks","MWXCardedDialogLoadingState.react","react","react-compiler-runtime","useMWCMShouldGoToFullScreenChatHook","useMWXEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||(h=d("react"));h.useCallback;function k(){return j.jsx(c("MWXCardedDialogLoadingState.react"),{})}k.displayName=k.name+" [from "+f.id+"]";function a(a,b,e,f,g,h){var j=d("react-compiler-runtime").c(12),l,m;j[0]!==b||j[1]!==a.threadKey?(l=function(){var c;return{groupID:(i||(i=d("I64"))).to_string((c=b)!=null?c:(i||(i=d("I64"))).zero),threadID:i.to_string(a.threadKey)}},m=[b,a.threadKey],j[0]=b,j[1]=a.threadKey,j[2]=l,j[3]=m):(l=j[2],m=j[3]);l=d("Int64Hooks").useMemoInt64(l,m);m=c("useMWXEntryPointDialog")(c("GroupsCometJoinChatDialog.entrypoint"),l,void 0,k);var n=m[0],o=c("useMWCMShouldGoToFullScreenChatHook")(),p=a.hasPendingInvitation||!1;j[4]!==p||j[5]!==h||j[6]!==g||j[7]!==e||j[8]!==o||j[9]!==n||j[10]!==f?(l=function(){var a={invited:p,isSMC:h,onSuccess:g,parentSurface:e,shouldGoToMessenger:o,surface:f};n(a)},j[4]=p,j[5]=h,j[6]=g,j[7]=e,j[8]=o,j[9]=n,j[10]=f,j[11]=l):l=j[11];return l}g["default"]=a}),98);
__d("LSSetCommunityChannelJoiningErrorCodeForTask",[],(function(a,b,c,d,e,f){function a(){var a=arguments,b=a[a.length-1],c=[];return b.resolve(c)}a.__sproc_name__="LSMailboxSetCommunityChannelJoiningErrorCodeForTaskStoredProcedure";a.__tables__=[];e.exports=a}),null);
__d("LSJoinCommunityChannel",["LSIssueNewError","LSIssueNewTaskAndGetTaskID","LSLocalize","LSOptimisticUpdateHasPendingJoinRequest","LSSetCommunityChannelJoiningErrorCodeForTask","LSUpdateCommunityChannelJoiningTaskID"],(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([-1,4294967295]):(b=a.item,d[0]=b.parentThreadKey)})},function(a){return c.db.table(162).fetch([[[d[0]]]]).next().then(function(a,b){var e=a.done;a=a.value;return e?d[2]=c.i64.cast([-1,4294967295]):(b=a.item,c.i64.eq(b.communityType,c.i64.cast([0,1]))?d[13]=b.folderId:d[13]=b.fbGroupId,d[2]=d[13])})},function(a){return c.storedProcedure(b("LSSetCommunityChannelJoiningErrorCodeForTask"),d[2],void 0)},function(d){return a[2]?c.storedProcedure(b("LSOptimisticUpdateHasPendingJoinRequest"),a[0],!0):c.resolve()},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[4]=c.i64.cast([0,1]):(b=a.item,d[14]=b.syncGroup,c.i64.neq(d[14],void 0)?d[13]=d[14]:d[13]=c.i64.cast([0,1]),d[4]=d[13])})},function(a){return c.sortBy(c.db.table(115).fetch(),[["timestampMs","DESC"]]).next().then(function(a,b){var c=a.done;a=a.value;return c?d[6]=!1:(b=a.item,d[6]=b.errorShouldBeShown)})},function(a){return d[6]===!0?c.sequence([function(a){return b("LSLocalize").localizeV2Async(c.i64.cast([0,2285622730]),void 0).then(function(a){return d[13]=a})},function(a){return b("LSLocalize").localizeV2Async(c.i64.cast([0,1919524925]),void 0).then(function(a){return d[14]=a})},function(a){return c.storedProcedure(b("LSIssueNewError"),void 0,c.i64.cast([0,1545093]),d[13],d[14],void 0,void 0)}]):c.resolve()},function(e){return d[8]=new c.Map(),d[8].set("thread_key",a[0]),d[8].set("community_id",d[2]),d[8].set("sync_group",d[4]),d[8].set("entry_point",a[1]),d[8].set("is_request_to_join",a[2]),d[8].set("request_source",void 0),c.i64.gt(c.i64.cast([0,0]),c.i64.cast([0,0]))?(d[13]=c.i64.of_float(Date.now()),d[9]=c.i64.add(d[13],c.i64.cast([0,0]))):d[9]=c.i64.cast([0,0]),d[10]=d[8].get("thread_key"),d[11]=c.toJSON(d[8]),c.storedProcedure(b("LSIssueNewTaskAndGetTaskID"),c.i64.to_string(d[10]),c.i64.cast([0,337]),d[11],void 0,void 0,c.i64.cast([0,0]),c.i64.cast([0,0]),void 0,void 0,d[9],c.i64.cast([0,0])).then(function(a){return a=a,d[12]=a[0],a})},function(a){return c.storedProcedure(b("LSUpdateCommunityChannelJoiningTaskID"),d[2],d[12])}])},function(a){return c.resolve(e)}])}a.__sproc_name__="LSMailboxJoinCommunityChannelStoredProcedure";a.__tables__=["threads","community_folders","user_visible_network_connectivity_error"];e.exports=a}),null);
__d("LSJoinCommunityChannelStoredProcedure",["LSJoinCommunityChannel","LSSynchronousPromise","Promise","cr:8709"],(function(a,b,c,d,e,f,g){var h;function a(a,e){a=a.storedProcedure(c("LSJoinCommunityChannel"),e.threadKey,e.entryPoint,e.isRequestToJoin);return(h||(h=b("Promise"))).resolve(d("LSSynchronousPromise").maybeExtractValueIfSynchronousPromise(a))}g["default"]=a}),98);
__d("getValidMediaURL",["I64","ServerTime"],(function(a,b,c,d,e,f,g){"use strict";var h;function i(){return(h||(h=d("I64"))).of_float(d("ServerTime").getMillis()/1e3)}function j(a){if((h||(h=d("I64"))).gt(a,(h||(h=d("I64"))).zero))return(h||(h=d("I64"))).lt(a,i());else return!1}function a(a,b,c){return a!=null?j(a)?c:b:c}g["default"]=a}),98);
__d("useMWCMJoinCMThread",["C4GFalcoLoggerDeferred","CommunityMessagingEnableState","I64","Int64Hooks","JSResourceForInteraction","LSCommunityBitOffset","LSFactory","LSIntEnum","LSJoinCommunityChannelStoredProcedure","LSMailboxType","LSThreadBitOffset","LSVec","LSVerifyThreadViewStoredProcedure","ReQL","ThreadStatus","asyncToGeneratorRuntime","emptyFunction","mwCMisStandAloneCommunity","promiseDone","react","react-compiler-runtime","useGroupsCometCMOffboardingEntryPointDialog","useIsChatPreviewsEnabled","useMWNavigation","useMWXLazyDialog","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=(i||d("react")).useState,m=function(a){return(j||(j=d("I64"))).equal(a,(k||(k=d("LSIntEnum"))).ofNumber(18))||(j||(j=d("I64"))).equal(a,(k||(k=d("LSIntEnum"))).ofNumber(21))};function a(a,e){var f=d("react-compiler-runtime").c(32),g=(h||(h=c("useReStore")))(),i;f[0]!==e?(i=e?d("LSCommunityBitOffset").has(1,e):!1,f[0]=e,f[1]=i):i=f[1];var n=i;f[2]===Symbol["for"]("react.memo_cache_sentinel")?(i=c("JSResourceForInteraction")("MWCMPausedChatMemberDialog.react").__setRef("useMWCMJoinCMThread"),f[2]=i):i=f[2];i=c("useMWXLazyDialog")(i);var o=i[0],p=c("useMWNavigation")();i=l(!1);var q=i[0],r=i[1];f[3]!==(e==null?void 0:e.fbGroupId)?(i=function(){var a;return{groupID:(j||(j=d("I64"))).to_string((a=e==null?void 0:e.fbGroupId)!=null?a:(j||(j=d("I64"))).zero)}},f[3]=e==null?void 0:e.fbGroupId,f[4]=i):i=f[4];var s=e==null?void 0:e.fbGroupId,t;f[5]!==s?(t=[s],f[5]=s,f[6]=t):t=f[6];s=c("useGroupsCometCMOffboardingEntryPointDialog")(d("Int64Hooks").useMemoInt64(i,t));var u=s[0],v=a.clientThreadKey,w=a.threadKey,x=a.threadType;f[7]!==v||f[8]!==p||f[9]!==q||f[10]!==w||f[11]!==x?(i=function(){if(!q)return;m(x)&&(p.openTabOrInbox({clientThreadKey:v,threadKey:w,threadType:x},"inboxThreadList"),r(!1))},t=[x,v,w,q,p],f[7]=v,f[8]=p,f[9]=q,f[10]=w,f[11]=x,f[12]=i,f[13]=t):(i=f[12],t=f[13]);d("Int64Hooks").useEffectInt64(i,t);f[14]!==g||f[15]!==(e==null?void 0:e.communityType)||f[16]!==(e==null?void 0:e.enableState)||f[17]!==(e==null?void 0:e.fbGroupId)||f[18]!==n||f[19]!==u||f[20]!==o||f[21]!==w?(s=function(a,f,h,i){c("promiseDone")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var b,l=(yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(g.tables.threads).getKeyRange(w)));if(l==null)return;var m=function(){c("promiseDone")(g.runInTransaction(function(a){return c("LSVerifyThreadViewStoredProcedure")(c("LSFactory")(a),{contacts:c("LSVec").ofArray([]),mailboxType:(k||(k=d("LSIntEnum"))).ofNumber(c("LSMailboxType").MESSENGER),threadKey:l.threadKey,threadType:l.threadType})},"readwrite"))},p=l.hasPendingInvitation||!1,q=l.threadStatus!=null&&(j||(j=d("I64"))).equal(l.threadStatus,(j||(j=d("I64"))).of_int32(c("ThreadStatus").PAUSED));b=(j||(j=d("I64"))).equal((b=e==null?void 0:e.enableState)!=null?b:(k||(k=d("LSIntEnum"))).ofNumber(c("CommunityMessagingEnableState").ENABLED),(k||(k=d("LSIntEnum"))).ofNumber(c("CommunityMessagingEnableState").DISABLE_REQUESTED));q=!b&&q&&!d("LSThreadBitOffset").has(154,l)&&!p;if(q)return o({thread:l},c("emptyFunction"));if(!b&&d("useIsChatPreviewsEnabled").isChatPreviewsEnabled(l,e==null?void 0:e.communityType)&&h){p=f?f.metaKey||f.ctrlKey||f.shiftKey:!1;m();return h(p)}if(c("mwCMisStandAloneCommunity")(e==null?void 0:e.communityType)){!d("useIsChatPreviewsEnabled").isChatPreviewsEnabled(l,e==null?void 0:e.communityType)?(a(),r(!0)):c("promiseDone")(g.runInTransaction(function(a){r(!0);return c("LSJoinCommunityChannelStoredProcedure")(c("LSFactory")(a),{entryPoint:"",isRequestToJoin:!1,threadKey:l.threadKey})},"readwrite","ui"));return}if(l.needsAdminApprovalForNewParticipant===!0&&n&&i){d("C4GFalcoLoggerDeferred").logC4GEngagementFalcoEvent({action:"tap",client_extras:{member_join_request_enabled:"1"},community_id:(j||(j=d("I64"))).to_string(l.parentThreadKey),event:"thread_join",parent_surface:"thread_list",source:l.hasPendingInvitation===!0?"direct_invite_join_button":"join_button",surface:"messenger_inbox",thread_id:j.to_string(l.threadKey)});return i()}if(!b)return a();if((e==null?void 0:e.fbGroupId)==null)return;return u({},c("emptyFunction"))})())},f[14]=g,f[15]=e==null?void 0:e.communityType,f[16]=e==null?void 0:e.enableState,f[17]=e==null?void 0:e.fbGroupId,f[18]=n,f[19]=u,f[20]=o,f[21]=w,f[22]=s):s=f[22];a=e==null?void 0:e.communityType;i=e==null?void 0:e.enableState;t=e==null?void 0:e.fbGroupId;var y;f[23]!==g||f[24]!==n||f[25]!==u||f[26]!==o||f[27]!==t||f[28]!==a||f[29]!==i||f[30]!==w?(y=[g,a,i,t,n,u,o,w],f[23]=g,f[24]=n,f[25]=u,f[26]=o,f[27]=t,f[28]=a,f[29]=i,f[30]=w,f[31]=y):y=f[31];return d("Int64Hooks").useCallbackInt64(s,y)}g["default"]=a}),98);
__d("useMWResponsiveLogExtraData",["gkx","react-compiler-runtime","useMatchViewport"],(function(a,b,c,d,e,f,g){"use strict";function a(){var a=d("react-compiler-runtime").c(2),b=c("gkx")("24056"),e=c("useMatchViewport")("min","width",900);b="mw_responsive_layout: "+b.toString()+", is900px: "+e.toString();a[0]!==b?(e={responsive:b},a[0]=b,a[1]=e):e=a[1];return e}g["default"]=a}),98);
__d("useOnPressMWThreadListItem",["fbt","CommunityMessagingEnableState","I64","Int64Hooks","JSResourceForInteraction","LSFactory","LSIntEnum","LSJoinCommunityChannelStoredProcedure","LSMessagingThreadTypeUtil","LSPlatformWaitForTaskCompletion","LSThreadBitOffset","MAWGroupInvitesForThread","MWCMThreadTypes.react","MWPIsThreadUnread","MessengerThreadTakedownState","MessengerWebUXLogger","ReQL","ThreadStatus","asyncToGeneratorRuntime","emptyFunction","getValidMediaURL","promiseDone","react-compiler-runtime","useCommunityFolder","useGroupsCometCMDisabledChatEntryPointDialog","useMWCMJoinCMThread","useMWNavigation","useMWResponsiveLogExtraData","useMWXLazyDialog","useMWXPushErrorToast","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k;function l(a){var e=d("react-compiler-runtime").c(9),f;e[0]===Symbol["for"]("react.memo_cache_sentinel")?(f=c("JSResourceForInteraction")("MWCMPausedChannelMemberDialog.react").__setRef("useOnPressMWThreadListItem"),e[0]=f):f=e[0];f=c("useMWXLazyDialog")(f);var g=f[0],h=(k||(k=c("useReStore")))();e[1]!==h.tables.threads||e[2]!==g||e[3]!==a?(f=function(){return function(){c("promiseDone")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var b;b=(b=(yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(h.tables.threads).getKeyRange(a))))!=null?b:{};var e=b.threadName,f=b.threadPictureUrl,i=b.threadPictureUrlExpirationTimestampMs;b=b.threadPictureUrlFallback;if(i==null||f==null||b==null||e==null)return;i=c("getValidMediaURL")(i,f,b);g({threadImageUrl:i,threadTitle:e},c("emptyFunction"))})())}},e[1]=h.tables.threads,e[2]=g,e[3]=a,e[4]=f):f=e[4];var i;e[5]!==h||e[6]!==g||e[7]!==a?(i=[h,g,a],e[5]=h,e[6]=g,e[7]=a,e[8]=i):i=e[8];return d("Int64Hooks").useMemoInt64(f,i)}function a(a,e,f,g,m){var n=d("react-compiler-runtime").c(45),o=m===void 0?!0:m,p=(k||(k=c("useReStore")))(),q=c("useMWNavigation")();n[0]===Symbol["for"]("react.memo_cache_sentinel")?(m=c("JSResourceForInteraction")("MAWGroupInviteDialog.react").__setRef("useOnPressMWThreadListItem"),n[0]=m):m=n[0];m=c("useMWXLazyDialog")(m);var r=m[0],s=c("useCommunityFolder")(f),t=c("MessengerWebUXLogger").useInteractionLogger();n[1]!==f.takedownState?(m=f.takedownState!=null&&(i||(i=d("I64"))).equal(f.takedownState,(j||(j=d("LSIntEnum"))).ofNumber(c("MessengerThreadTakedownState").GEO_BLOCKED)),n[1]=f.takedownState,n[2]=m):m=n[2];var u=m;n[3]!==f.threadKey?(m=(i||(i=d("I64"))).to_string(f.threadKey),n[3]=f.threadKey,n[4]=m):m=n[4];var v;n[5]!==u||n[6]!==m?(v={isGeoBlocked:u,threadID:m},n[5]=u,n[6]=m,n[7]=v):v=n[7];m=c("useGroupsCometCMDisabledChatEntryPointDialog")(v);var w=m[0];n[8]!==f.threadType?(v=d("LSMessagingThreadTypeUtil").isPublicCMThread(f.threadType),n[8]=f.threadType,n[9]=v):v=n[9];var x=v;m=l(f.threadKey);var y=m[0],z=c("useMWCMJoinCMThread")(f,s),A=c("useMWXPushErrorToast")(),B=c("useMWResponsiveLogExtraData")();n[10]!==p||n[11]!==B||n[12]!==a||n[13]!==u||n[14]!==o||n[15]!==x||n[16]!==z||n[17]!==t||n[18]!==e||n[19]!==(s==null?void 0:s.takedownState)||n[20]!==q||n[21]!==A||n[22]!==g||n[23]!==w||n[24]!==r||n[25]!==y||n[26]!==f.threadKey?(v=function(k,l,m,n){c("promiseDone")(b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var b,v=(yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(p.tables.threads).getKeyRange(f.threadKey)));if(v==null)return;var C=d("MAWGroupInvitesForThread").isGroupInviteThread(v),D=d("LSMessagingThreadTypeUtil").isSocialChannelUnjoined(v.threadType),E=d("MWCMThreadTypes.react").isUnjoinedCMThread(v.threadType),F=d("LSMessagingThreadTypeUtil").isCMSubthread(v.threadType),G=v.threadStatus!=null&&((i||(i=d("I64"))).equal(v.threadStatus,(i||(i=d("I64"))).of_int32(c("ThreadStatus").PAUSED))||(i||(i=d("I64"))).equal(v.threadStatus,(i||(i=d("I64"))).of_int32(c("ThreadStatus").UPGRADED_TO_COMMUNITY_AND_TO_BE_PAUSED))),H=(s==null?void 0:s.takedownState)!=null&&(i||(i=d("I64"))).equal(s==null?void 0:s.takedownState,(i||(i=d("I64"))).of_int32(1)),I=v.takedownState!=null&&(i||(i=d("I64"))).equal(v.takedownState,(j||(j=d("LSIntEnum"))).ofNumber(c("MessengerThreadTakedownState").TAKEN_DOWN)),J=v.needsAdminApprovalForNewParticipant===!0;b=(i||(i=d("I64"))).equal((b=a)!=null?b:(j||(j=d("LSIntEnum"))).ofNumber(c("CommunityMessagingEnableState").ENABLED),(j||(j=d("LSIntEnum"))).ofNumber(c("CommunityMessagingEnableState").DISABLE_REQUESTED));var K=v.folderName==="inbox"?(j||(j=d("LSIntEnum"))).ofNumber(12):v.folderName==="pending"?(j||(j=d("LSIntEnum"))).ofNumber(29):(j||(j=d("LSIntEnum"))).ofNumber(30),L=d("MWPIsThreadUnread").isThreadUnread(v),M=function(a){var b={clientThreadKey:v.clientThreadKey,isUnread:L,threadKey:v.threadKey,threadType:v.threadType};if(a)return q.openInbox(b,e,K);q.openTabOrInbox(b,e,n,K);m&&m()},N=function(){g==null?void 0:g(!0),c("promiseDone")(c("LSPlatformWaitForTaskCompletion")(p,function(a){return c("LSJoinCommunityChannelStoredProcedure")(c("LSFactory")(a),{entryPoint:"messengerdotcom",isRequestToJoin:J,threadKey:f.threadKey})},"joinCommunityChannel"),function(){M(!1),g==null?void 0:g(!1)},function(){A({title:h._(/*BTDS*/"__JHASH__3PKwp9RcWIR__JHASH__")})})},O=v.hasPendingInvitation||!1;b=!b&&G&&!d("LSThreadBitOffset").has(154,v)&&!O;t==null?void 0:t({eventName:"open_thread",extraData:B,threadKey:v.threadKey,threadType:v.threadType});o||(t==null?void 0:t({eventName:"open_thread_from_mini_list",extraData:B,threadKey:v.threadKey,threadType:v.threadType}));if(x&&(I||H||u))return w({threadID:(i||(i=d("I64"))).to_string(v.threadKey)});if(E)return z(l,k,M,N);if(D&&b)return y();C?r({thread:v},c("emptyFunction")):F||M(k.metaKey||k.ctrlKey||k.shiftKey)})())},n[10]=p,n[11]=B,n[12]=a,n[13]=u,n[14]=o,n[15]=x,n[16]=z,n[17]=t,n[18]=e,n[19]=s==null?void 0:s.takedownState,n[20]=q,n[21]=A,n[22]=g,n[23]=w,n[24]=r,n[25]=y,n[26]=f.threadKey,n[27]=v):v=n[27];m=s==null?void 0:s.takedownState;var C;n[28]!==p||n[29]!==B||n[30]!==a||n[31]!==u||n[32]!==o||n[33]!==z||n[34]!==t||n[35]!==e||n[36]!==q||n[37]!==A||n[38]!==g||n[39]!==w||n[40]!==r||n[41]!==y||n[42]!==m||n[43]!==f.threadKey?(C=[p,f.threadKey,m,a,t,o,u,q,e,g,A,w,z,y,r,B],n[28]=p,n[29]=B,n[30]=a,n[31]=u,n[32]=o,n[33]=z,n[34]=t,n[35]=e,n[36]=q,n[37]=A,n[38]=g,n[39]=w,n[40]=r,n[41]=y,n[42]=m,n[43]=f.threadKey,n[44]=C):C=n[44];return d("Int64Hooks").useCallbackInt64(v,C)}g["default"]=a}),226);
__d("usePreloadRoute",["JSScheduler","react","react-compiler-runtime","useCometRouterDispatcher","useMWNavigation"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(h||d("react")).useEffect;function a(a,b){var e=d("react-compiler-runtime").c(6),f=c("useMWNavigation")(),g=c("useCometRouterDispatcher")(),h,k;e[0]!==g||e[1]!==f||e[2]!==a||e[3]!==b?(h=function(){(i||(i=d("JSScheduler"))).scheduleSpeculativeCallback(function(){g!=null&&g.prefetchRouteDefinition(f.getUrlFromThreadKey(a,b))})},k=[g,f,a,b],e[0]=g,e[1]=f,e[2]=a,e[3]=b,e[4]=h,e[5]=k):(h=e[4],k=e[5]);j(h,k)}g["default"]=a}),98);
__d("MWThreadListItem.react",["fbt","CometHeroHoldTrigger.react","CometPlaceholder.react","CometTextWithEntities.react","CurrentEnvironment","HeroInteractionIgnoreWithDiv.react","I64","Int64Hooks","LSIntEnum","LSMessagingThreadTypeUtil","LSRtcCallState","LSThreadTitle.react","MWCMJewelContext","MWCMThreadTypes.react","MWChatTextTransform","MWLogInteraction","MWPIsThreadUnread","MWThreadListConsts","MWThreadListFocusableTable.react","MWThreadListItemAddOnEnd.react","MWThreadListLastMessage.react","MWThreadPicture.react","MWThreadSnippetForDisplay.react","MWVerticalRhythm","MWXGlimmer.react","MWXListCellPressable.react","MWXSpinner.react","MWXText.react","MessageRequestsBulkActionsContext.react","MessageRequestsBulkActionsThreadListItem","MessagingCommunityChatsPauseStatus","MessengerMuteUtils","MessengerWebEntryPointsUtil","MessengerWebUXLogger","MetaConfig","ReQL","ReQLSuspense","deferredLoadComponent","emptyFunction","gkx","interaction-tracing-metrics","mwCMIsAnyCMThread","mwCMIsThreadBumped","mwCMisStandAloneCommunity","mwIsThreadDisabled","react","react-compiler-runtime","react-strict-dom","requireDeferred","useCommunityFolder","useGroupsCometChatsEngagementImpressionLogger","useGroupsCometJoinChatDialog","useIsChatPreviewsEnabled","useMWNavigation","useMWPreloadThread","useMWThreadSnippetForDisplay","useMatchViewport","useMenuButtonVisibilityState","useMergeRefs","useOnPressMWThreadListItem","usePreloadRoute","useReStore","useSimpleImpression"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||(l=d("react"));b=l;e=b.memo;b.useCallback;var n=b.useContext;b.useMemo;var o=b.useState,p=c("deferredLoadComponent")(c("requireDeferred")("MWThreadListItemMoreActions.react").__setRef("MWThreadListItem.react")),q={communityGlimmer:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",height:"x170jfvy",width:"x3hqpx7",$$css:!0},listItemContainer:{paddingStart:"xurb0ha",paddingEnd:"x1sxyh0",paddingLeft:null,paddingRight:null,position:"x1n2onr6",$$css:!0},listItemContainerDisabled:{opacity:"xbyyjgo",$$css:!0},listItemContainerForMessengerDotCom:{paddingStart:"x16hj40l",paddingEnd:"xsyo7zv",paddingLeft:null,paddingRight:null,$$css:!0},listItemContainerHiddenContent:{display:"x1lliihq",height:"xqtp20y",overflowX:"x6ikm8r",overflowY:"x10wlt62",width:"xnalus7",$$css:!0},threadBodyGlimmer:{display:"x78zum5",flexDirection:"xdt5ytf",flexGrow:"x1iyjqo2",justifyContent:"xl56j7k",$$css:!0},threadSnippetGlimmer:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",height:"xlup9mm",width:"xktia5q",$$css:!0},threadTitleGlimmer:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",height:"x1qx5ct2",marginBottom:"x1e56ztr",marginTop:"x1k70j0n",width:"x3hqpx7",$$css:!0}};function aa(a){var b=d("react-compiler-runtime").c(10),e=a.isUnread,g=a.threadKey,h=(i||(i=c("useReStore")))();b[0]!==h.tables.threads||b[1]!==g?(a=function(){return d("ReQL").fromTableAscending(h.tables.threads,["threadName","threadType","threadKey","takedownState","lastMessageCtaType","ongoingCallState","eventEndTimestampMs","eventStartTimestampMs","snippet","snippetText","threadStatus","lastActivityTimestampMs","hasPendingInvitation","disappearingSettingTtl"]).getKeyRange(g)},b[0]=h.tables.threads,b[1]=g,b[2]=a):a=b[2];var j;b[3]!==h||b[4]!==g?(j=[h,g],b[3]=h,b[4]=g,b[5]=j):j=b[5];a=d("ReQLSuspense").useFirst(a,j,f.id+":143");if(a==null)return null;b[6]===Symbol["for"]("react.memo_cache_sentinel")?(j=m.jsx(d("react-strict-dom").html.div,{style:q.threadBodyGlimmer,children:m.jsx(c("MWXGlimmer.react"),{index:2,xstyle:q.threadSnippetGlimmer})}),b[6]=j):j=b[6];b[7]!==e||b[8]!==a?(j=m.jsx(c("CometPlaceholder.react"),{fallback:j,name:"MWThreadListItem.DefaultSubtitle",children:m.jsx(r,{isUnread:e,thread:a})}),b[7]=e,b[8]=a,b[9]=j):j=b[9];return j}function r(a){var b,e=d("react-compiler-runtime").c(20),f=a.isUnread;a=a.thread;var g=c("useMWThreadSnippetForDisplay")(a),h=g.lastMessageCtaType,i=g.shouldHideTimestamp;g=g.snippet;var l;e[0]!==a.threadType?(l=d("MWCMThreadTypes.react").isUnjoinedCMThread(a.threadType),e[0]=a.threadType,e[1]=l):l=e[1];l=l;b=(b=c("gkx")("26362"))!=null?b:!1;var n;e[2]!==a.disappearingSettingTtl?(n=c("MetaConfig")._("112")&&a.disappearingSettingTtl!=null&&(j||(j=d("I64"))).gt(a.disappearingSettingTtl,(j||(j=d("I64"))).zero),e[2]=a.disappearingSettingTtl,e[3]=n):n=e[3];n=n;if(a.threadName==null&&c("mwCMIsAnyCMThread")(a.threadType)){var o;e[4]===Symbol["for"]("react.memo_cache_sentinel")?(o=m.jsxs(d("react-strict-dom").html.div,{style:q.threadBodyGlimmer,children:[m.jsx(c("MWXGlimmer.react"),{index:2,xstyle:q.threadSnippetGlimmer}),m.jsx(c("CometHeroHoldTrigger.react"),{description:"MWThreadListItem.DefaultSubtitleWithThread",hold:!0})]}),e[4]=o):o=e[4];return o}if(d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(a.threadType)&&g==null)return null;o=!(j||(j=d("I64"))).equal(a.ongoingCallState,(k||(k=d("LSIntEnum"))).ofNumber(c("LSRtcCallState").NO_ONGOING_CALL));var p;e[5]!==a.lastActivityTimestampMs?(p=(j||(j=d("I64"))).to_float(a.lastActivityTimestampMs),e[5]=a.lastActivityTimestampMs,e[6]=p):p=e[6];b=l&&(a==null?void 0:a.hasPendingInvitation)!==!0&&b;l=!l&&!i;e[7]!==g||e[8]!==a?(i=m.jsx(c("MWThreadSnippetForDisplay.react"),{snippetRaw:g,thread:a}),e[7]=g,e[8]=a,e[9]=i):i=e[9];e[10]!==n||e[11]!==f||e[12]!==h||e[13]!==o||e[14]!==p||e[15]!==b||e[16]!==l||e[17]!==i||e[18]!==a?(g=m.jsx(c("MWThreadListLastMessage.react"),{hasOngoingCall:o,isUnread:f,lastMessageCtaType:h,lastMessageTimestamp:p,showDisappearingMessageVisualIndicator:n,showSnippetText:b,showTimestamp:l,snippet:i,thread:a}),e[10]=n,e[11]=f,e[12]=h,e[13]=o,e[14]=p,e[15]=b,e[16]=l,e[17]=i,e[18]=a,e[19]=g):g=e[19];return g}function ba(a){var b=d("react-compiler-runtime").c(8),e=a.threadKey,g=(i||(i=c("useReStore")))();b[0]!==g.tables.threads||b[1]!==e?(a=function(){return d("ReQL").fromTableAscending(g.tables.threads,["threadName","threadType","threadKey"]).getKeyRange(e)},b[0]=g.tables.threads,b[1]=e,b[2]=a):a=b[2];var h;b[3]!==g||b[4]!==e?(h=[g,e],b[3]=g,b[4]=e,b[5]=h):h=b[5];a=d("ReQLSuspense").useFirst(a,h,f.id+":266");if(a==null)return null;b[6]!==a?(h=a.threadName==null&&c("mwCMIsAnyCMThread")(a.threadType)?m.jsxs(d("react-strict-dom").html.div,{style:q.threadBodyGlimmer,children:[m.jsx(c("MWXGlimmer.react"),{index:1,xstyle:q.threadTitleGlimmer}),m.jsx(c("CometHeroHoldTrigger.react"),{description:"MWThreadListItem.DefaultThreadTitle",hold:!0})]}):m.jsx(c("LSThreadTitle.react"),{thread:a}),b[6]=a,b[7]=h):h=b[7];return h}function a(a){var b=d("react-compiler-runtime").c(139),e=a.hideMoreActions,f=a.lsEntryPoint,g=a.messagingEntrypoint,i=a.onClose,l=a.onPress,r=a.onPressOverride,s=a.onThreadJoined,t=a.onThreadSelected,u=a.parentSurface,v=a.renderAddOnEnd,w=a.renderThreadPhoto,x=a.renderThreadSubtitle,y=a.renderThreadTitle,z=a.responsive,A=a.selected,B=a.thread;a=e===void 0?!1:e;var C=i===void 0?c("emptyFunction"):i;e=s===void 0?c("emptyFunction"):s;var D=t===void 0?c("emptyFunction"):t,E=u===void 0?"channel_list":u;i=n(c("MWCMJewelContext"));s=i.selectedFolderTab;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(t={eventName:"threadlist_item_impression"},b[0]=t):t=b[0];u=c("MessengerWebUXLogger").useImpressionLoggerRef(t);bb0:{if(!c("mwCMIsThreadBumped")(B)){i=!1;break bb0}if(c("CurrentEnvironment").messengerdotcom){i=E==="channel_list";break bb0}if(f==="jewel"){b[1]!==s?(t=(j||(j=d("I64"))).equal(s,j.of_int32(0)),b[1]=s,b[2]=t):t=b[2];i=t;break bb0}i=f!=="inboxThreadList"}var F=i;b[3]!==F||b[4]!==w||b[5]!==B.threadKey?(s=function(){var a;return(a=w)!=null?a:function(){return m.jsx(c("MWThreadPicture.react"),{badgeSize:c("gkx")("23219")?10:14,photoSize:c("gkx")("23219")?48:56,threadKey:B.threadKey,withAltText:!1,withCommunityPicture:F})}},t=[F,w,B.threadKey],b[3]=F,b[4]=w,b[5]=B.threadKey,b[6]=s,b[7]=t):(s=b[6],t=b[7]);var G=d("Int64Hooks").useMemoInt64(s,t);b[8]!==y||b[9]!==B.threadKey?(i=function(){var a;return(a=y)!=null?a:function(){return m.jsx(ba,{threadKey:B.threadKey})}},s=[y,B.threadKey],b[8]=y,b[9]=B.threadKey,b[10]=i,b[11]=s):(i=b[10],s=b[11]);var H=d("Int64Hooks").useMemoInt64(i,s),I=c("useCommunityFolder")(B);t=I==null?void 0:I.takedownState;b[12]!==t||b[13]!==B.takedownState?(i=c("mwIsThreadDisabled")(B.takedownState,t),b[12]=t,b[13]=B.takedownState,b[14]=i):i=b[14];var J=i,K=d("MWPIsThreadUnread").useIsThreadUnread(B.threadKey)&&!J;b[15]!==K||b[16]!==x||b[17]!==B.threadKey?(s=function(){var a;return(a=x)!=null?a:function(){return m.jsx(aa,{isUnread:K,threadKey:B.threadKey})}},t=[K,x,B.threadKey],b[15]=K,b[16]=x,b[17]=B.threadKey,b[18]=s,b[19]=t):(s=b[18],t=b[19]);var L=d("Int64Hooks").useMemoInt64(s,t);b[20]!==(I==null?void 0:I.name)||b[21]!==B.threadType?(i=function(){if(!c("mwCMIsAnyCMThread")(B.threadType)||c("CurrentEnvironment").messengerdotcom)return null;return(I==null?void 0:I.name)==null?m.jsxs(m.Fragment,{children:[m.jsx(c("MWXGlimmer.react"),{index:1,xstyle:q.communityGlimmer}),m.jsx(c("MWVerticalRhythm"),{height:8}),m.jsx(c("CometHeroHoldTrigger.react"),{description:"MWThreadListItem.Folder",hold:!0})]}):m.jsxs(m.Fragment,{children:[m.jsx(c("MWXText.react"),{align:"start",color:"secondary",numberOfLines:1,type:"meta3",children:I==null?void 0:I.name}),m.jsx(c("MWVerticalRhythm"),{height:8})]})},b[20]=I==null?void 0:I.name,b[21]=B.threadType,b[22]=i):i=b[22];s=I==null?void 0:I.name;b[23]!==s||b[24]!==B.threadType?(t=[s,B.threadType],b[23]=s,b[24]=B.threadType,b[25]=t):t=b[25];var M=d("Int64Hooks").useCallbackInt64(i,t);b[26]!==B.threadType?(s=function(){var a=d("LSMessagingThreadTypeUtil").isArmadilloSecure(B.threadType),b=d("interaction-tracing-metrics").InteractionTracingMetricsCore.currentInteractionLogger(),c;c=Number(a);b.forEach(function(a){c=((a=a.annotations["int"])==null?void 0:a.hasSecureThread)||0||c});return b.addMetadata("hasSecureThread",c?1:0)},b[26]=B.threadType,b[27]=s):s=b[27];c("useSimpleImpression")(s);b[28]!==B.parentThreadKey?(i=(j||(j=d("I64"))).to_string(B.parentThreadKey),b[28]=B.parentThreadKey,b[29]=i):i=b[29];b[30]!==I?(t=I?(j||(j=d("I64"))).to_string(I.fbGroupId):void 0,b[30]=I,b[31]=t):t=b[31];s=f==="jewel"?"jewel_inbox":"chats_inbox";var N;b[32]!==B.threadKey?(N=(j||(j=d("I64"))).to_string(B.threadKey),b[32]=B.threadKey,b[33]=N):N=b[33];var O;b[34]!==i||b[35]!==t||b[36]!==s||b[37]!==N?(O={community_id:i,event:"bumped_chat_rendered",group_id:t,parent_surface:s,source:"unknown",surface:"messenger_inbox",thread_id:N},b[34]=i,b[35]=t,b[36]=s,b[37]=N,b[38]=O):O=b[38];i=c("useGroupsCometChatsEngagementImpressionLogger")(O);b[39]!==B.threadType?(t=d("LSMessagingThreadTypeUtil").isArmadilloSecure(B.threadType),b[39]=B.threadType,b[40]=t):t=b[40];s=t;var P=c("useMWNavigation")();N=c("gkx")("24056")?!1:z;var Q=c("useMatchViewport")("min","width",d("MWThreadListConsts").minimumPixelsNeededForMaxDisplay)||!N;O=d("MWCMThreadTypes.react").isUnjoinedCMThread(B.threadType);b[41]!==(I==null?void 0:I.communityType)||b[42]!==B?(t=B.hasPendingInvitation===!0&&d("useIsChatPreviewsEnabled").isChatPreviewsEnabled(B,I==null?void 0:I.communityType),b[41]=I==null?void 0:I.communityType,b[42]=B,b[43]=t):t=b[43];var R=t;b[44]!==B?(z=d("MessengerMuteUtils").calcMuteUntilMs(B),b[44]=B,b[45]=z):z=b[45];N=z;var S=N,T=c("useMenuButtonVisibilityState")(!0);t=T[1];var U=t.setListItemFocused,V=t.setListItemHovered;z=c("mwCMIsAnyCMThread")(B.threadType);b[46]!==B.parentThreadKey?(N=(j||(j=d("I64"))).equal(B.parentThreadKey,(k||(k=d("LSIntEnum"))).ofNumber(0)),b[46]=B.parentThreadKey,b[47]=N):N=b[47];var W=N,ca=J?!1:W?Q:!(O||a);b[48]!==V?(t=function(){return V(!1)},b[48]=V,b[49]=t):t=b[49];N=t;b[50]!==V?(O=function(){return V(!0)},b[50]=V,b[51]=O):O=b[51];a=O;t=c("useMWPreloadThread")(B,s);var da=t.onHoverInPreloader,ea=t.onHoverOutPreloader,fa=t.onPressInPreloader;if(I!=null&&z){b[52]!==I.enableState||b[53]!==I.fbGroupId||b[54]!==I.folderId?(O=[I.fbGroupId,I.folderId,I.enableState],b[52]=I.enableState,b[53]=I.fbGroupId,b[54]=I.folderId,b[55]=O):O=b[55];t=O}else{b[56]===Symbol["for"]("react.memo_cache_sentinel")?(z=[void 0,void 0,void 0],b[56]=z):z=b[56];t=z}O=t;var X=O[0],ga=O[1];z=O[2];t=n(c("MessageRequestsBulkActionsContext.react"));O=t.isBulkActionsEditMode;c("usePreloadRoute")(B.threadKey,B.threadType);b[57]!==I?(t=(I==null?void 0:I.pauseStatus)!=null&&(j||(j=d("I64"))).equal(I.pauseStatus,(k||(k=d("LSIntEnum"))).ofNumber(c("MessagingCommunityChatsPauseStatus").PAUSED_BY_SOFT_ACTION))&&c("gkx")("4215"),b[57]=I,b[58]=t):t=b[58];var ha=t;b[59]!==F||b[60]!==ha||b[61]!==J||b[62]!==f||b[63]!==B.threadType?(t=function(){return d("MessengerWebEntryPointsUtil").getEntryPointShouldOverrideThreadSnippetRemoval(f)?!1:ha||!J&&!F&&d("MWCMThreadTypes.react").isJoinedCMThread(B.threadType)},b[59]=F,b[60]=ha,b[61]=J,b[62]=f,b[63]=B.threadType,b[64]=t):t=b[64];var ia=t;t=o(!1);var Y=t[0];t=t[1];var Z=c("useOnPressMWThreadListItem")(z,f,B,t,Q);z=I==null?void 0:I.communityType;b[65]!==z?(t=c("mwCMisStandAloneCommunity")(z),b[65]=z,b[66]=t):t=b[66];z=t;var $=c("useGroupsCometJoinChatDialog")(B,X,E,"messenger_inbox",e,z);b[67]!==ga||b[68]!==R||b[69]!==X||b[70]!==Q||b[71]!==J||b[72]!==g||b[73]!==S||b[74]!==C||b[75]!==Z||b[76]!==E||b[77]!==v||b[78]!==$||b[79]!==B.threadKey?(t=function(){return J||R?void 0:m.jsx(c("MWThreadListItemAddOnEnd.react"),{communityId:ga,fbGroupId:X,isMaximized:Q,messagingEntrypoint:g,mutedUntilMs:S,parentSurface:E,renderAddOnEnd:v,showGroupsJoinChatDialog:function(a){return Z(a,$,C)},threadKey:B.threadKey})},e=[ga,R,X,Q,J,g,S,C,Z,E,v,$,B.threadKey],b[67]=ga,b[68]=R,b[69]=X,b[70]=Q,b[71]=J,b[72]=g,b[73]=S,b[74]=C,b[75]=Z,b[76]=E,b[77]=v,b[78]=$,b[79]=B.threadKey,b[80]=t,b[81]=e):(t=b[80],e=b[81]);var ja=d("Int64Hooks").useMemoInt64(t,e);b[82]!==ja||b[83]!==W||b[84]!==Y||b[85]!==Q||b[86]!==J||b[87]!==ia||b[88]!==K||b[89]!==P||b[90]!==C||b[91]!==da||b[92]!==ea||b[93]!==l||b[94]!==fa||b[95]!==Z||b[96]!==r||b[97]!==D||b[98]!==M||b[99]!==G||b[100]!==L||b[101]!==H||b[102]!==A||b[103]!==U||b[104]!==$||b[105]!==B?(z=function(){var a=B.additionalThreadContext!=null?m.jsxs(m.Fragment,{children:[m.jsx(c("MWXText.react"),{align:"start",color:"secondary",numberOfLines:1,type:"meta4",children:m.jsx(c("CometTextWithEntities.react"),{text:B.additionalThreadContext,transforms:d("MWChatTextTransform").textTransforms})}),m.jsx(c("MWVerticalRhythm"),{height:8})]}):null,b=h._(/*BTDS*/"__JHASH___pGoCDzgM84__JHASH__"),e=m.jsxs(m.Fragment,{children:[m.jsx(c("MWXSpinner.react"),{color:"disabled",size:24}),m.jsx(c("CometHeroHoldTrigger.react"),{description:"MWThreadListItem.AddOnEndLoadingSpinner",hold:!0})]});return m.jsx(c("MWXListCellPressable.react"),{addOnEnd:Y?e:ja,addOnStart:G(),"aria-current":A?"page":!1,content:m.jsxs(d("react-strict-dom").html.div,{style:Q||!W?void 0:q.listItemContainerHiddenContent,children:[a,c("gkx")("11019")?m.jsx(c("HeroInteractionIgnoreWithDiv.react"),{children:M()}):M(),m.jsx(c("MWXText.react"),{align:"start",color:"primary",numberOfLines:1,type:K?"headlineEmphasized4":"headline4",children:H()}),ia()?null:m.jsxs(m.Fragment,{children:[m.jsx(c("MWVerticalRhythm"),{height:8}),Y?m.jsx(c("MWXText.react"),{type:"entityHeaderMeta3",children:b}):L()]})]}),disabled:Y,linkProps:J?void 0:{preventLocalNavigation:!0,url:P.getUrlFromThreadKey(B.threadKey,B.threadType)},onFocusChange:U,onHoverIn:da,onHoverOut:ea,onPress:function(a){d("MWLogInteraction").logPopoverOpenCancel("thread_click"),r!=null?r==null?void 0:r(a):(l==null?void 0:l(a,B),Z(a,$,C)),D()},onPressIn:fa,selected:A,size:"large"})},t=[B,Y,ja,G,A,Q,W,M,K,H,ia,L,J,P,U,da,ea,fa,r,D,l,Z,$,C],b[82]=ja,b[83]=W,b[84]=Y,b[85]=Q,b[86]=J,b[87]=ia,b[88]=K,b[89]=P,b[90]=C,b[91]=da,b[92]=ea,b[93]=l,b[94]=fa,b[95]=Z,b[96]=r,b[97]=D,b[98]=M,b[99]=G,b[100]=L,b[101]=H,b[102]=A,b[103]=U,b[104]=$,b[105]=B,b[106]=z,b[107]=t):(z=b[106],t=b[107]);e=d("Int64Hooks").useMemoInt64(z,t);b[108]!==X||b[109]!==T||b[110]!==g||b[111]!==C||b[112]!==A||b[113]!==ca||b[114]!==B.threadKey||b[115]!==B.threadName||b[116]!==B.threadType?(z=function(){return ca?m.jsx(c("CometPlaceholder.react"),{fallback:null,name:"MWThreadListItem.MoreActions",children:m.jsx(p,{fbGroupId:X,menuButtonVisibilityState:T,messagingEntrypoint:g,onClose:C,selected:A,thread:{threadKey:B.threadKey,threadName:B.threadName,threadType:B.threadType}})}):null},t=[X,T,g,C,A,ca,B.threadName,B.threadKey,B.threadType],b[108]=X,b[109]=T,b[110]=g,b[111]=C,b[112]=A,b[113]=ca,b[114]=B.threadKey,b[115]=B.threadName,b[116]=B.threadType,b[117]=z,b[118]=t):(z=b[117],t=b[118]);z=d("Int64Hooks").useMemoInt64(z,t);t=c("useMergeRefs")(u,F?i:null);u=s?"mwthreadlist-item-secure":"mwthreadlist-item-open";i=J?q.listItemContainerDisabled:!1;b[119]!==i?(s=[q.listItemContainer,i,c("gkx")("23219")?q.listItemContainerForMessengerDotCom:!1],b[119]=i,b[120]=s):s=b[120];b[121]!==O||b[122]!==B||b[123]!==e?(i=O?m.jsx(c("MessageRequestsBulkActionsThreadListItem"),{thread:B,threadListCell:e}):e,b[121]=O,b[122]=B,b[123]=e,b[124]=i):i=b[124];b[125]!==i?(O=m.jsx(d("MWThreadListFocusableTable.react").MWThreadListFocusableTableCell,{children:m.jsx(d("react-strict-dom").html.div,{role:"gridcell",children:i})}),b[125]=i,b[126]=O):O=b[126];b[127]!==z||b[128]!==O?(e=m.jsxs(d("MWThreadListFocusableTable.react").MWThreadListFocusableTableRow,{children:[O,z]}),b[127]=z,b[128]=O,b[129]=e):e=b[129];b[130]!==a||b[131]!==N||b[132]!==s||b[133]!==e?(i=m.jsx(d("react-strict-dom").html.div,{"data-testid":void 0,onMouseEnter:a,onMouseLeave:N,role:"row",style:s,children:e}),b[130]=a,b[131]=N,b[132]=s,b[133]=e,b[134]=i):i=b[134];b[135]!==t||b[136]!==u||b[137]!==i?(z=m.jsx(d("react-strict-dom").html.div,{"data-testid":void 0,ref:t,children:i}),b[135]=t,b[136]=u,b[137]=i,b[138]=z):z=b[138];return z}b=e(a);g["default"]=b}),226);
__d("MWThreadListFolderItem.react",["BaseView.react","CometTextWithEntities.react","I64","MAWVault","MWAddOnCircleContainer.react","MWCMThreadTypes.react","MWChatTextTransform","MWPIsThreadUnread","MWThreadListFocusableTable.react","MWThreadListLastMessage.react","MWXListCellPressable.react","MWXTextPairing.react","react","react-compiler-runtime","useMatchMedia"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=h||(h=d("react"));b=h;b.useCallback;b.useMemo;function a(a){var b=d("react-compiler-runtime").c(28),e=a.icon,f=a.onClick,g=a.responsive,h=a.selected,k=a.size,l=a.thread;a=a.threadName;g=c("useMatchMedia")("(min-width: 900px)")||!g;var m;b[0]!==l.snippet?(m=l.snippet!=null?d("MAWVault").unvault(l.snippet):null,b[0]=l.snippet,b[1]=m):m=b[1];m=m;m=m;var n;b[2]!==l.lastActivityTimestampMs?(n=(i||(i=d("I64"))).to_float(l.lastActivityTimestampMs),b[2]=l.lastActivityTimestampMs,b[3]=n):n=b[3];n=n;var o=d("MWPIsThreadUnread").useIsThreadUnread(l.threadKey),p;b[4]!==e||b[5]!==k?(p=j.jsx(c("MWAddOnCircleContainer.react"),{size:k,children:e}),b[4]=e,b[5]=k,b[6]=p):p=b[6];e=p;k=e;e=(p=a)!=null?p:l.threadName;a=e;b[7]!==f?(p=function(){return f()},b[7]=f,b[8]=p):p=b[8];e=p;b[9]===Symbol["for"]("react.memo_cache_sentinel")?(p={className:"xurb0ha x1sxyh0"},b[9]=p):p=b[9];var q;b[10]!==g||b[11]!==o||b[12]!==n||b[13]!==m||b[14]!==l.threadType?(q=g?j.jsx(c("MWThreadListLastMessage.react"),{hasOngoingCall:!1,isUnread:o,lastMessageCtaType:null,lastMessageTimestamp:n,showTimestamp:!d("MWCMThreadTypes.react").isUnjoinedCMThread(l.threadType),snippet:m}):null,b[10]=g,b[11]=o,b[12]=n,b[13]=m,b[14]=l.threadType,b[15]=q):q=b[15];b[16]!==a||b[17]!==g?(n=g?j.jsx(c("CometTextWithEntities.react"),{text:a.toString(),transforms:d("MWChatTextTransform").textTransforms}):null,b[16]=a,b[17]=g,b[18]=n):n=b[18];m=!o;b[19]!==n||b[20]!==m||b[21]!==q?(l=j.jsx(c("MWXTextPairing.react"),{body:q,bodyLineLimit:1,headline:n,headlineLineLimit:1,level:4,reduceEmphasis:m}),b[19]=n,b[20]=m,b[21]=q,b[22]=l):l=b[22];b[23]!==k||b[24]!==e||b[25]!==h||b[26]!==l?(a=j.jsx(c("BaseView.react"),{testid:void 0,children:j.jsx(d("MWThreadListFocusableTable.react").MWThreadListFocusableTableRow,{children:j.jsx("div",{role:"row",children:j.jsx(d("MWThreadListFocusableTable.react").MWThreadListFocusableTableCell,{children:j.jsx("div",babelHelpers["extends"]({},p,{role:"gridcell",children:j.jsx(c("MWXListCellPressable.react"),{addOnStart:k,content:l,onPress:e,selected:h,size:"large"})}))})})})}),b[23]=k,b[24]=e,b[25]=h,b[26]=l,b[27]=a):a=b[27];return a}g["default"]=a}),98);
__d("MWThreadListJobsItem.react",["fbt","ix","LSIntEnum","MWThreadListFolderItem.react","MWXIcon.react","fbicon","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=j||d("react");function a(a){var b=d("react-compiler-runtime").c(11),e=a.onClick,f=a.responsive,g=a.selected,j=a.size;a=a.thread;var m;b[0]!==e?(m=function(){return e((k||(k=d("LSIntEnum"))).ofNumber(-13))},b[0]=e,b[1]=m):m=b[1];m=m;var n;b[2]===Symbol["for"]("react.memo_cache_sentinel")?(n=l.jsx(c("MWXIcon.react"),{color:"primary",icon:d("fbicon")._(i("512668"),32),size:48}),b[2]=n):n=b[2];var o;b[3]===Symbol["for"]("react.memo_cache_sentinel")?(o=(k||(k=d("LSIntEnum"))).ofNumber(-13),b[3]=o):o=b[3];var p;b[4]===Symbol["for"]("react.memo_cache_sentinel")?(p=h._(/*BTDS*/"__JHASH__fyt3EBzeQRx__JHASH__").toString(),b[4]=p):p=b[4];b[5]!==m||b[6]!==f||b[7]!==g||b[8]!==j||b[9]!==a?(n=l.jsx(c("MWThreadListFolderItem.react"),{icon:n,onClick:m,responsive:f,selected:g,size:j,systemFolder:o,thread:a,threadName:p}),b[5]=m,b[6]=f,b[7]=g,b[8]=j,b[9]=a,b[10]=n):n=b[10];return n}g["default"]=a}),226);
__d("useVirtualizationContainerContext",["react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");b.useMemo;var i=b.useRef;function a(){var a=d("react-compiler-runtime").c(1),b=i(null);a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b={rootElementRef:b},a[0]=b):b=a[0];a=b;b=a;return b}g["default"]=a}),98);
__d("MWThreadList.react",["CometHeroHoldTrigger.react","CometHideableComponentExperiment.react","CometPageletWithDiv.react","CometRouterFocusRegion.react","CometVisualCompletion","CurrentEnvironment","FBLogger","FocusRegion.react","FocusRegionType","GroupsCometChatsEngagementLogger","I64","Int64Hooks","LSAuthorityLevel","LSIntEnum","MWCMGetValidId","MWJewelPopoverThreadlistContext.react","MWLSJewelMessageRequestsThreadContainer.react","MWPBaseThreadList.react","MWPBumpEntityKey","MWPParentThreadKeyContext","MWPThreadIsPage.react","MWPThreadsForThreadList","MWResponsiveLayoutConstants","MWResponsiveLayoutContext.react","MWThreadKey.react","MWThreadListCommunityContainer.react","MWThreadListEmptyContainer.react","MWThreadListGlimmer.react","MWThreadListItem.react","MWThreadListJobsItem.react","MWThreadListSupportedThreadTypes","MWXacGating","MessagingFolderTag","MessengerWebUXLogger","ReQL","ReQLSuspense","VirtualizationContainerContext","cr:2261","cr:6055","cr:8220","cr:8237","emptyFunction","focusScopeQueries","gkx","isCommunityContainersEnabled","isMWXacGroupThread","justknobx","mwCMIsThreadBumped","react","react-compiler-runtime","stylex","useCommunityFolder","useEmptyFunction","useGroupsCometIsInCCNegativeTest","useMWGetInboxFocusTargetFromRoute","useMWResponsiveLogExtraData","useReStore","useVirtualizationContainerContext"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m=j||(j=d("react")),n=j,o=n.useCallback,p=n.useContext,q=n.useId,r=n.useRef,s=(n=(n=b("cr:8237"))==null?void 0:n.useFilterPinnedThreads)!=null?n:c("useEmptyFunction"),t=b("cr:6055")||c("useEmptyFunction"),u={glimmerWrapper:{width:"xh8yej3",$$css:!0}};function v(a){return(k||(k=d("I64"))).equal(a.threadType,(l||(l=d("LSIntEnum"))).ofNumber(15))&&(k||(k=d("I64"))).equal(a.authorityLevel,(l||(l=d("LSIntEnum"))).ofNumber(c("LSAuthorityLevel").AUTHORITATIVE))&&(k||(k=d("I64"))).equal(a.lastReadWatermarkTimestampMs,(k||(k=d("I64"))).of_int32(-1))&&(k||(k=d("I64"))).equal(a.lastActivityTimestampMs,(k||(k=d("I64"))).of_int32(-1))}var w=5;function a(a){var e=a.lsEntryPoint,f=a.messagingEntrypoint,g=a.onClickNestedFolderThread,h=a.onClose,i=a.responsive,j=a.selected,n=a.thread,o=p(c("MWJewelPopoverThreadlistContext.react")),q=c("useCommunityFolder")({parentThreadKey:(k||(k=d("I64"))).equal(n.threadType,(l||(l=d("LSIntEnum"))).ofNumber(17))?n.threadKey:n.parentThreadKey});a=p(c("MWResponsiveLayoutContext.react"));var s=a.pushCard,t=n.threadKey;d("Int64Hooks").useEffectInt64(function(){if(b("cr:2261")==null)return;o==null?void 0:o.add(t);return function(){o==null?void 0:o["delete"](t)}},[o,t]);var u=r({loggingTimeout:null,threadKey:(k||(k=d("I64"))).of_int32(-1)}),w=r(k.of_int32(-1)),x=p(c("MWPParentThreadKeyContext"));d("Int64Hooks").useEffectInt64(function(){if(!c("justknobx")._("2234"))return;if(x!=null){var a=(k||(k=d("I64"))).to_string(n.parentThreadKey),b=k.to_string(x);!(k||(k=d("I64"))).equal(w.current,t)&&n.folderName!==c("MessagingFolderTag").COMMUNITY&&a!==b&&c("FBLogger")("messenger_threadlist_folder_inconsistency").mustfix("Render thread item expected folder %s but receive %s",b,a)}v(n)?(k||(k=d("I64"))).equal(u.current.threadKey,t)||(u.current.threadKey=t,u.current.loggingTimeout=window.setTimeout(function(){c("FBLogger")("messenger_threadlist_ghost").mustfix("Thread ID %s showing up as ghost",(k||(k=d("I64"))).to_string(t)),u.current.loggingTimeout=null},5e3)):(k||(k=d("I64"))).equal(u.current.threadKey,t)&&u.current.loggingTimeout!=null&&window.clearTimeout(u.current.loggingTimeout)},[x,n,t]);a=d("Int64Hooks").useCallbackInt64(function(){c("mwCMIsThreadBumped")({secondaryParentThreadKey:n.secondaryParentThreadKey,threadType:n.threadType})&&d("GroupsCometChatsEngagementLogger").log({action:"tap",client_extras:{is_bumped:"true"},community_id:q?(k||(k=d("I64"))).to_string(q.folderId):(k||(k=d("I64"))).to_string(n.parentThreadKey),event:"thread_open",group_id:d("MWCMGetValidId").MWCMHasValidFbGroupId(q==null?void 0:q.fbGroupId)?(k||(k=d("I64"))).to_string(q.fbGroupId):null,source:"chat_row",surface:e==="jewel"?"jewel_tray":"messenger_inbox",thread_id:(k||(k=d("I64"))).to_string(t)}),c("gkx")("24056")&&j&&s(d("MWResponsiveLayoutConstants").MWLayoutPanel.MESSAGE_LIST_PANEL)},[n.secondaryParentThreadKey,n.threadType,n.parentThreadKey,q,e,t,j,s]);if((k||(k=d("I64"))).equal(n.threadType,(l||(l=d("LSIntEnum"))).ofNumber(6))){if((k||(k=d("I64"))).equal(t,(l||(l=d("LSIntEnum"))).ofNumber(-13)))return m.jsx(c("MWThreadListJobsItem.react"),{onClick:g,responsive:i,selected:j,size:56,thread:n});else if(b("cr:2261")!=null&&(k||(k=d("I64"))).equal(t,(l||(l=d("LSIntEnum"))).ofNumber(-12)))return m.jsx(b("cr:2261"),{onClick:g,responsive:i,selected:j,size:56,thread:n});return null}g=c("isCommunityContainersEnabled")();g=d("CurrentEnvironment").messengerdotcom&&g&&c("mwCMIsThreadBumped")({secondaryParentThreadKey:n.secondaryParentThreadKey,threadType:n.threadType});return m.jsx(d("CometPageletWithDiv.react").Placeholder,{fallback:m.jsx(c("MWThreadListGlimmer.react"),{parentComponentForDebug:"MWThreadListItem"}),name:"MWThreadListThreadListRow",children:m.jsx(d("MWPThreadIsPage.react").Provider,{threadKey:n.threadKey,children:m.jsx(d("MWThreadKey.react").MWThreadKeyProvider,{id:n.threadKey,children:q!=null&&g?m.jsx(c("MWThreadListCommunityContainer.react"),{containerThread:n,folder:q,messagingEntrypoint:f,responsive:i,selected:j}):m.jsx(c("MWThreadListItem.react"),{lsEntryPoint:e,messagingEntrypoint:f,onClose:h,onThreadSelected:a,responsive:i,selected:j,size:56,thread:n})})})})}a.displayName=a.name+" [from "+f.id+"]";var x=m.memo(a);function e(a){var e=a.gridLabel,g=a.header,j=a.lsEntryPoint,n=a.onOpenMessageRequests,p=a.parentThreadKey,r=a.responsive,v=a.selectedThreadKey,z=a.setHasScrolled,A=a.setIsEmptyInbox,B=a.threadListMessagingEntrypoint,C=a.onClose,D=C===void 0?c("emptyFunction"):C;C=a.onClickNestedFolderThread;var E=C===void 0?c("emptyFunction"):C;C=a.preamble;var F=(h||(h=c("useReStore")))(),G=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(F.tables.threads_ranges_v2__generated).getKeyRange(p)},[F,p],f.id+":362"),H=d("ReQLSuspense").useArray(function(){return d("MWPThreadsForThreadList").createIterable(F,p,G,["lastActivityTimestampMs","threadType","capabilities","capabilities2","capabilities3","capabilities4","capabilities5"]).filter(function(a){if(!c("MWThreadListSupportedThreadTypes").some(function(b){return(k||(k=d("I64"))).equal(a.threadType,b)}))return!1;return d("MWXacGating").isGroupsEnabled()?!0:!c("isMWXacGroupThread")(a)}).take(5)},[F,p,G],f.id+":374").pop();a=q();var I=d("ReQLSuspense").useFirst(function(){return v!=null?d("ReQL").fromTableAscending(F.tables.threads,["parentThreadKey"]).getKeyRange(v):d("ReQL").empty()},[F,v],f.id+":408");t(a);var J=d("useGroupsCometIsInCCNegativeTest").useShouldDisableBumpToInboxForNegativeTest(),K=o(function(a){var b;if(a==null)return m.jsx("div",{});if(d("CurrentEnvironment").facebookdotcom&&c("mwCMIsThreadBumped")({secondaryParentThreadKey:a.secondaryParentThreadKey,threadType:a.threadType})&&J)return m.jsx("div",{});var e;(k||(k=d("I64"))).equal(a.threadKey,(l||(l=d("LSIntEnum"))).ofNumber(-13))||(k||(k=d("I64"))).equal(a.threadKey,(l||(l=d("LSIntEnum"))).ofNumber(-12))?e=I!=null&&(k||(k=d("I64"))).equal(a.threadKey,I.parentThreadKey):e=v!=null&&(k||(k=d("I64"))).equal(v,a.threadKey);return a!=null?m.jsx(c("CometHideableComponentExperiment.react"),{callingSurface:"thread_list",disableHiding:!0,children:m.jsx(x,{lsEntryPoint:j==="inboxThreadList"?H!=null&&(k||(k=d("I64"))).le(a.lastActivityTimestampMs,H.lastActivityTimestampMs)?"inboxRecentThreads":"inboxRemainingThreads":j,messagingEntrypoint:(b=B)!=null?b:"jewel",onClickNestedFolderThread:E,onClose:D,responsive:r,selected:e,thread:a})}):m.jsx("div",{})},[j,H,B,E,D,r,I,v,J]),L=o(function(a){z&&z(function(b){return a.scrollTop>0})},[z]),M=c("useMWResponsiveLogExtraData")();M=c("MessengerWebUXLogger").useImpressionLoggerRef({eventName:"threadlist_impression",extraData:M});var N=c("useVirtualizationContainerContext")(),O=o(function(a){N.rootElementRef.current=a==null?void 0:a.getScrollAreaElement()},[N.rootElementRef]),P=s(),Q=c("useMWGetInboxFocusTargetFromRoute")();Q=Q===1;n=m.jsx(d("CometPageletWithDiv.react").Placeholder,{className:"x78zum5 xmz0i5r x6ikm8r x10wlt62",fallback:null,name:"MWThreadList",children:m.jsx(c("MWPParentThreadKeyContext").Provider,{value:p,children:m.jsx(c("VirtualizationContainerContext").Provider,{value:N,children:m.jsx(c("MWPBaseThreadList.react"),{beforeContent:m.jsxs(m.Fragment,{children:[m.jsx(c("MWLSJewelMessageRequestsThreadContainer.react"),{onOpenMessageRequests:n}),C,b("cr:8220")&&m.jsx(b("cr:8220"),{parentThreadKey:p,renderItem:K})]}),customThreadFilter:P,emptyContent:m.jsx(c("MWThreadListEmptyContainer.react"),{parentThreadKey:p}),gridLabel:e,imperativeRef:O,onLoadMoreThreads:function(){d("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw.threadlist","load_more_threads"),c("CometVisualCompletion").addFirstMarkerPoint("threadListLoadMoreThreads")},onScroll:L,pageSize:15,parentThreadKey:p,renderItem:K,renderLoadingAnimation:function(a,b){b=a==="onBottom"&&b>w;return m.jsxs("div",babelHelpers["extends"]({},(i||(i=c("stylex"))).props(c("gkx")("1834")&&u.glimmerWrapper),{children:[m.jsx(c("MWThreadListGlimmer.react"),{numberOfItems:2,parentComponentForDebug:"MWThreadListLoadingAnimation",vcIgnore:b}),m.jsx(c("CometHeroHoldTrigger.react"),{description:"ThreadListLoadingMoreItems."+a,hold:!b})]}))},setIsEmptyInbox:A})})})});return m.jsxs("div",babelHelpers["extends"]({className:"x78zum5 xdt5ytf x1iyjqo2 x6ikm8r x10wlt62"},{id:a,ref:M,children:[g!=null?m.jsx(d("FocusRegion.react").FocusRegion,{children:g}):null,c("justknobx")._("3551")?m.jsx(y,{autoFocusQuery:d("focusScopeQueries").tabbableScopeQuery,enabled:Q&&c("justknobx")._("3811"),children:m.jsx(d("FocusRegion.react").FocusRegion,{autoFocusQuery:Q&&c("justknobx")._("3812")?d("focusScopeQueries").tabbableScopeQuery:void 0,recoverFocusQuery:d("focusScopeQueries").tabbableScopeQuery,recoverFocusStrategy:d("FocusRegionType").RecoverFocusStrategy.Nearest,children:n})}):n]}))}e.displayName=e.name+" [from "+f.id+"]";function y(a){var b=d("react-compiler-runtime").c(3),e=a.autoFocusQuery,f=a.children;a=a.enabled;if(!a)return f;b[0]!==e||b[1]!==f?(a=m.jsx(c("CometRouterFocusRegion.react"),{autoFocusQuery:e,children:f}),b[0]=e,b[1]=f,b[2]=a):a=b[2];return a}g["default"]=e}),98);
__d("MWJewelNestedFolderThreadList.react",["CometScrollView.react","CometTopNavListDropdownCard.react","MWJewelNestedFolderThreadListHeader.react","MWThreadList.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(13),e=a.folder,f=a.onClose,g=a.onReturn;a=a.title;var h;b[0]!==g||b[1]!==a?(h=i.jsx(c("MWJewelNestedFolderThreadListHeader.react"),{onReturn:g,title:a}),b[0]=g,b[1]=a,b[2]=h):h=b[2];b[3]!==a?(g=typeof a==="string"?a:a.toString(),b[3]=a,b[4]=g):g=b[4];b[5]!==e||b[6]!==f||b[7]!==g?(a=i.jsx(c("MWThreadList.react"),{gridLabel:g,lsEntryPoint:"jewelNestedFolder",onClose:f,parentThreadKey:e,responsive:!1}),b[5]=e,b[6]=f,b[7]=g,b[8]=a):a=b[8];b[9]===Symbol["for"]("react.memo_cache_sentinel")?(e=i.jsx("div",{className:"x1qx5ct2"}),b[9]=e):e=b[9];b[10]!==h||b[11]!==a?(f=i.jsx(c("CometTopNavListDropdownCard.react"),{useMaxHeight:!0,children:i.jsxs(c("CometScrollView.react"),{showsHorizontalScrollIndicator:!1,showsVerticalScrollIndicator:!0,children:[h,a,e]})}),b[10]=h,b[11]=a,b[12]=f):f=b[12];return f}g["default"]=a}),98);
__d("MWChatSearchFetchCCRecommendations",["fbt","I64","LSIntEnum","LSMessagingThreadTypeUtil","LSSearchGranularSurfaceType","LSSearchType","MNetContactItemType","MWChatTemporarySearchResult","ReQL","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=3;function a(a,b){return l.apply(this,arguments)}function l(){l=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){return(i||(i=d("I64"))).equal(b,(j||(j=d("LSIntEnum"))).ofNumber(c("LSSearchGranularSurfaceType").INSTAGRAM_ALL))?[]:o(yield m(a,k))});return l.apply(this,arguments)}function m(a,b){return n.apply(this,arguments)}function n(){n=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){a=(yield d("ReQL").toArrayAsync(d("ReQL").fromTableAscending(a.tables.cm_search_nullstate_metadata).filter(function(a){return(i||(i=d("I64"))).equal(a.threadType,(j||(j=d("LSIntEnum"))).ofNumber(18))})));return a.sort(function(a,b){a=a.score;b=b.score;return a===b?0:a>b?1:-1}).slice(0,b)});return n.apply(this,arguments)}function o(a){return a.map(function(a,b){var e=a.communityId,f=a.contextLine,g=a.score,k=a.scoreType,l=a.secondaryThreadPictureUrl,m=a.secondaryThreadPictureUrlFallback,n=a.threadKey,o=a.threadName,p=a.threadPictureUrl;a.threadPictureUrlFallback;var q=a.threadType;babelHelpers.objectWithoutPropertiesLoose(a,["communityId","contextLine","score","scoreType","secondaryThreadPictureUrl","secondaryThreadPictureUrlFallback","threadKey","threadName","threadPictureUrl","threadPictureUrlFallback","threadType"]);a={contactId:n,contactType:(j||(j=d("LSIntEnum"))).ofNumber(c("MNetContactItemType").COMMUNITY_MESSAGING_THREAD_FOR_CC_SECTION),score:g,scoreIndex:(i||(i=d("I64"))).of_int32(b),scoreType:k};return{communityId:e!=null?(i||(i=d("I64"))).to_string(e):"",displayName:o,id:i.to_string(n),imageUrl:(b=(g=p)!=null?g:l)!=null?b:"",isAiBot:i.equal(q,j.ofNumber(201)),isContact:d("LSMessagingThreadTypeUtil").isOneToOne(q),isDisappearingModeSettingOn:!1,isE2EE:d("LSMessagingThreadTypeUtil").isArmadilloSecure(q),isEPD:!1,isInstagramAccount:!1,isInstamadilloCutover:!1,isTTLCClipEnabled:!1,isTTLCGenericXMAShareEnabled:!1,isTTLCMediaShareEnabled:!1,isTTLCStoryShareEnabled:!1,isVerified:!1,rankingScore:a,resultType:d("MWChatTemporarySearchResult").getResultType(j.ofNumber(c("LSSearchType").COMMUNITY_MESSAGING_THREAD)),searchSource:"server",secondaryImageUrl:(e=(k=l)!=null?k:m)!=null?e:"",section:h._(/*BTDS*/"__JHASH__6QBjd4SVwsL__JHASH__").toString(),subtext:(o=f)!=null?o:"",threadKey:n,threadType:q}})}g.fetchCCs=a;g.mapToSearchResults=o}),226);
__d("MWChatSearchFetchGenAIBotRecommendations",["I64","LSContactViewerRelationship","LSIntEnum","LSMessagingThreadTypeUtil","LSSearchGranularSurfaceType","MNetContactItemType","MNetRankType","MWChatSearchResultType","MWChatTemporarySearchResultUtils","ReQL","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=3;function a(a,b){return k.apply(this,arguments)}function k(){k=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){return(h||(h=d("I64"))).equal(b,(i||(i=d("LSIntEnum"))).ofNumber(c("LSSearchGranularSurfaceType").INSTAGRAM_ALL))?[]:n(yield l(a,j))});return k.apply(this,arguments)}function l(a,b){return m.apply(this,arguments)}function m(){m=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){a=(yield d("ReQL").toArrayAsync(d("ReQL").fromTableAscending(a.tables.ai_bot_search_metadata)));return a.sort(function(a,b){a=a.score;b=b.score;return a===b?0:a>b?1:-1}).slice(0,b)});return m.apply(this,arguments)}function n(a){return a.map(function(a,b){var e=a.botId,f=a.contactViewerRelationship,g=a.contextLine,j=a.displayName,k=a.displayPictureUrl;a=a.score;a={contactId:e,contactType:(i||(i=d("LSIntEnum"))).ofNumber(c("MNetContactItemType").BOT),score:a,scoreIndex:(h||(h=d("I64"))).of_int32(b),scoreType:i.ofNumber(c("MNetRankType").MESSENGER_USER_SEARCH_NULLSTATE)};return{displayName:j,id:h.to_string(e),imageUrl:(b=k)!=null?b:"",isAiBot:!0,isContact:!0,isDisappearingModeSettingOn:!1,isE2EE:d("LSMessagingThreadTypeUtil").isArmadilloSecure(e),isEPD:!1,isInstagramAccount:!1,isInstamadilloCutover:!1,isTTLCClipEnabled:!1,isTTLCGenericXMAShareEnabled:!1,isTTLCMediaShareEnabled:!1,isTTLCStoryShareEnabled:!1,isVerified:!1,isViewerUnconnected:h.equal(f,i.ofNumber(c("LSContactViewerRelationship").NOT_CONTACT)),rankingScore:a,resultType:c("MWChatSearchResultType").AI_BOT,searchSource:"server",secondaryImageUrl:"",section:d("MWChatTemporarySearchResultUtils").getSectionHeaderForAIBot(),subtext:(j=g)!=null?j:"",threadKey:e,threadType:h.of_int32(201)}})}g.fetchGenAIBots=a;g.mapToSearchResults=n}),98);
__d("MWChatSearchFetchRecommendations",["LSIntEnum","LSSearchType","MWChatSearchFetchCCRecommendations","MWChatSearchFetchContactRecommendations","MWChatSearchFetchGenAIBotRecommendations","MWChatSearchIssueLightspeedQuery","Promise","emptyFunction","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(a,e,f,g,k,l){c("promiseDone")(d("MWChatSearchIssueLightspeedQuery").makeSearchQuery(e,g,k));k=e.includes((i||(i=d("LSIntEnum"))).ofNumber(c("LSSearchType").COMMUNITY_MESSAGING_THREAD));e=e.includes(i.ofNumber(c("LSSearchType").AI_BOT));c("promiseDone")((h||(h=b("Promise"))).all([d("MWChatSearchFetchContactRecommendations").fetchContacts(a,f),k?d("MWChatSearchFetchCCRecommendations").fetchCCs(a,g):[],e?d("MWChatSearchFetchGenAIBotRecommendations").fetchGenAIBots(a,g):[]]).then(function(a){var b=a[0],c=a[1];a=a[2];b=j(b,c,a);return l(b)}));return c("emptyFunction")}function j(a,b,c){return[].concat(c,b,a)}g.requestRecommendations=a;g.blendSearchResults=j}),98);
__d("MWStaticSearchEntries",["fbt","MWChatSearchResultType"],(function(a,b,c,d,e,f,g,h){"use strict";function a(a){var b=h._(/*BTDS*/"__JHASH__jyy97B7ulae__JHASH__",[h._param("param",a)]).toString();return{key:a,label:b,rawData:{displayName:b,id:a,imageUrl:"",isContact:!1,isDisappearingModeSettingOn:!1,isE2EE:!1,isEPD:!1,isInstamadilloCutover:!1,isTTLCClipEnabled:!1,isTTLCGenericXMAShareEnabled:!1,isTTLCMediaShareEnabled:!1,isTTLCStoryShareEnabled:!1,resultType:c("MWChatSearchResultType").MESSAGE,secondaryImageUrl:"",subtext:""},type:"entry"}}g.createMessageSearchHeaderEntry=a}),226);
__d("createMWChatSearchTypeaheadDataEntry",[],(function(a,b,c,d,e,f){"use strict";function a(a,b){return{key:a.id,label:a.displayName,rawData:{canViewerMessage:a.canViewerMessage,communityId:a.communityId,defaultE2eeThreadOneToOne:a.defaultE2eeThreadOneToOne,defaultE2eeThreads:a.defaultE2eeThreads,displayName:a.displayName,hasCutoverThread:a.hasCutoverThread,id:a.id,igid:a.resultIgid,imageUrl:a.imageUrl,isAiBot:a.isAiBot,isContact:a.isContact,isDisappearingModeSettingOn:a.isDisappearingModeSettingOn,isE2EE:a.isE2EE,isEPD:a.isEPD,isGroupsXacEligible:Boolean(a.isGroupsXacEligible),isInstagramAccount:Boolean(a.isInstagramAccount),isInstamadilloCutover:a.isInstamadilloCutover,isInteropEligible:a.isInteropEligible!==!1,isRestrictedByViewer:a.isRestrictedByViewer,isTTLCClipEnabled:Boolean(a.isTTLCClipEnabled),isTTLCGenericXMAShareEnabled:Boolean(a.isTTLCGenericXMAShareEnabled),isTTLCMediaShareEnabled:Boolean(a.isTTLCMediaShareEnabled),isTTLCStoryShareEnabled:Boolean(a.isTTLCStoryShareEnabled),isViewerUnconnected:a.isViewerUnconnected,isWAEligible:a.isWAEligible,otherUserId:a.otherUserId,rankingScore:a.rankingScore,reachabilityStatus:a.reachabilityStatus,renderIndex:b,resultType:a.resultType,searchResultType:a.searchResultType,searchSource:a.searchSource,secondaryImageUrl:(b=a.secondaryImageUrl)!=null?b:"",section:a.section,serverSearchResult:a.serverSearchResult,subtext:a.subtext,subtextAdditional:a.subtextAdditional,supportsE2eeSpamdStorage:a.supportsE2eeSpamdStorage,threadType:a.threadType,verificationStatus:a.isVerified?"BLUE_VERIFIED":"NOT_VERIFIED",waAddressable:a.waAddressable,waEligibility:a.waEligibility},type:"entry"}}f["default"]=a}),66);
__d("filterInstagramContactsMWChatSearchLocalEntries",["MWChatSearchSurfaces"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){return b===c("MWChatSearchSurfaces").instagramAll?a:a.filter(function(a){return!a.isInstagramAccount})}g["default"]=a}),98);
__d("mwChatSearchPayloadEnumerate",[],(function(a,b,c,d,e,f){"use strict";function a(a){var b=a.entries;a=babelHelpers.objectWithoutPropertiesLoose(a,["entries"]);var c=b.reduce(function(a,b,c){b=b.rawData.section;if(b==null)return a;b===""&&a.set(b,0);var d=a.get(b);d=d==null?c:Math.min(d,c);a.set(b,d);return a},new Map());b=b.map(function(a,b){var d=a.key,e=a.label;a=a.rawData;var f=a.section;return{key:d,label:e,rawData:babelHelpers["extends"]({},a,{renderIndex:b,sectionRenderIndex:f==null?-1:c.get(f)}),type:"entry"}});return babelHelpers["extends"]({entries:b},a)}f["default"]=a}),66);
__d("sortMWChatSearchLocalResults",["MWChatSearchResultType","gkx","qex"],(function(a,b,c,d,e,f,g){"use strict";var h={group:1,message:2,messages:3,page:4,user:0},i=c("gkx")("23913");function a(a,b){var d,e={};for(var f=0;f<a.length;f++){var g=a[f];e[g.id]=(g=g.rankingScore)==null?void 0:g.score}g=a.reduce(function(b,a){var d=a.rankingScore,e=a.resultType;e=e===c("MWChatSearchResultType").USER&&(d==null||d.score==null||d.score===0);e?b[0].push(a):b[1].push(a);return b},[[],[]]);f=g[0];g=g[1];d=(d=c("qex")._("3207"))!=null?d:!1;g=d?g:a;a=g.sort(function(a,c){var d=h[a.resultType],f=h[c.resultType];if(d!==f)return d-f;if(i&&b.length>1){d=(f=(d=a.matchedTerms)==null?void 0:d.length)!=null?f:0;f=(f=(f=c.matchedTerms)==null?void 0:f.length)!=null?f:0;if(f!==d)return f-d}d=(f=e[a.id])!=null?f:0;f=(a=e[c.id])!=null?a:0;return f-d});return d?a.concat(f):a}g["default"]=a}),98);
__d("MWChatSearchTypeaheadLightspeedSubscriptionDataSource",["FBLogger","LSIntEnum","MNetRankType","MWChatSearchFetchRecommendations","MWChatSearchFilteringUtils","MWChatSearchIssueLightspeedQuery","MWChatSearchSurfaces","MWLSSearchIssueSearchQuerySupportedTypes","MWPSearchOfflineOpenConversationsUtils","MWPSearchSystem","MWStaticSearchEntries","Promise","asyncToGeneratorRuntime","cr:3752","createMWChatSearchTypeaheadDataEntry","filterInstagramContactsMWChatSearchLocalEntries","isArmadillo","justknobx","mwChatSearchPayloadDecoratorRemoveExcluded","mwChatSearchPayloadEnumerate","promiseDone","relay-runtime/network/RelayObservable","sortMWChatSearchLocalResults"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=10,k=10,l=c("isArmadillo")();a=function(){function a(a){var b=a.database,e=a.excludedIDs;e=e===void 0?[]:e;var f=a.lightspeedSupportedTypes;f=f===void 0?d("MWLSSearchIssueSearchQuerySupportedTypes").allSupportedTypes:f;var g=a.source;g=g===void 0?c("MWChatSearchSurfaces").universal:g;var h=a.includeRecommendations;h=h===void 0?!0:h;var j=a.includeGroupSearch;j=j===void 0?!1:j;var k=a.includeMessageSearchEntry;k=k===void 0?!0:k;a=a.nullstateRankType;a=a===void 0?(i||(i=d("LSIntEnum"))).ofNumber(c("MNetRankType").MESSENGER_BLENDED_NULLSTATE):a;this.$1=[];this.$5=function(){};this.$1=e;this.$2=g===c("MWChatSearchSurfaces").omnipickerArmadillo?d("MWLSSearchIssueSearchQuerySupportedTypes").armadilloSupportedTypes:f;this.$3=g;this.$4=b;this.$6=h;this.$7=j;this.$8=k;this.$9=a;d("MWPSearchSystem").makeAll(b)}var e=a.prototype;e.resolveData=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b){b=b.map(c("createMWChatSearchTypeaheadDataEntry"));b=[].concat(this.$8&&a.query.length>1?[d("MWStaticSearchEntries").createMessageSearchHeaderEntry(a.query)]:[],b);b=d("MWChatSearchFilteringUtils").dedupeByThreadKey(b);b=(yield d("MWChatSearchFilteringUtils").filterSearchResults(b,this.$4,!1,l));var e=c("mwChatSearchPayloadDecoratorRemoveExcluded")(this.$1);return c("mwChatSearchPayloadEnumerate")(e({entries:b,params:a}))});function e(b,c){return a.apply(this,arguments)}return e}();e.fetchNetwork=function(a){var e=this;this.$5();return c("relay-runtime/network/RelayObservable").create(function(f){if(a.query.length===0){e.$5=e.fetchNullstateResults(a,f);return}var g=[],i=[],j=!1,k=(h||(h=b("Promise"))).allSettled(e.issueLocalSearchQuery(a)).then(function(){var d=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){var d=b[0];b=b[1];d=d.status==="fulfilled"?d.value:[];b=b.status==="fulfilled"?b.value:[];g=e.transformLocalSearchResults(d,b);g=c("sortMWChatSearchLocalResults")(g,a.query);d=(yield e.resolveData(a,g.concat(i)));j||f.next(d)});return function(a){return d.apply(this,arguments)}}())["catch"](function(a){c("FBLogger")("messenger_search").catching(a).mustfix("Error performing MWChatSearchIssueMAWFTSQuery.fetchResults")}),l=d("MWChatSearchIssueLightspeedQuery").requestResults_T200619723;c("justknobx")._("2003")&&(l=d("MWChatSearchIssueLightspeedQuery").requestResults);var m=l(e.$4,e.$2,e.$3,e.$7,a,function(j){i=j;j=a.query.length>0&&d("MWPSearchSystem").isDone()?k:(h||(h=b("Promise"))).resolve();c("promiseDone")(j["finally"](b("asyncToGeneratorRuntime").asyncToGenerator(function*(){var b=(yield e.resolveData(a,g.concat(i)));f.next(b);f.complete()})))});e.$5=function(){m(),j=!0}})};e.issueLocalSearchQuery=function(a){return[b("cr:3752")!=null?b("cr:3752").fetchResults(this.$2,this.$3,this.$7,a):(h||(h=b("Promise"))).resolve([]),this.$3!==c("MWChatSearchSurfaces").broadcast?d("MWPSearchOfflineOpenConversationsUtils").search(a.query,this.$7):(h||(h=b("Promise"))).resolve([])]};e.transformLocalSearchResults=function(a,b){b=j<=0?b:b.slice(0,j);a=k<=0?a:a.slice(0,k);return b.concat(a)};e.fetchNullstateResults=function(a,e){var f=this;if(!this.$6){e.next({entries:[],params:a});e.complete();return function(){}}return d("MWChatSearchFetchRecommendations").requestRecommendations(this.$4,this.$2,this.$9,this.$3,a,function(){var d=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){b=c("filterInstagramContactsMWChatSearchLocalEntries")(b,f.$3);b=(yield f.resolveData(a,b));e.next(b);e.complete()});return function(a){return d.apply(this,arguments)}}())};e.setExcludedIds=function(a){this.$1=a};return a}();g["default"]=a}),98);
__d("LsUniversalSearchDataSource",["$InternalEnum"],(function(a,b,c,d,e,f){a=b("$InternalEnum")({LOCAL_BLENDED:0,SERVER_ENTITIES_NAMED_DSQ1:1,SERVER_ENTITIES_NAMED_DSQ2:2});c=a;f["default"]=c}),66);
__d("LsUniversalSearchThreadType",["$InternalEnum"],(function(a,b,c,d,e,f){a=b("$InternalEnum")({ARMADILLO:0,TINCAN:1,OPEN_THREAD:2});c=a;f["default"]=c}),66);
__d("SearchTransportType",["$InternalEnum"],(function(a,b,c,d,e,f){a=b("$InternalEnum")({ARMADILLO:1,TINCAN:2,OPEN_THREAD:3,IG_DJANGO:4,IG_ADVANCED_CRYPTO_TRANSPORT:5,IG_MESSENGER_INFRA:6});c=a;f["default"]=c}),66);
__d("UniversalSearchEndFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("844");b=d("FalcoLoggerInternal").create("universal_search_end",a);e=b;g["default"]=e}),98);
__d("UniversalSearchResultSelectedFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("846");b=d("FalcoLoggerInternal").create("universal_search_result_selected",a);e=b;g["default"]=e}),98);
__d("UniversalSearchUISectionType",["$InternalEnum"],(function(a,b,c,d,e,f){a=b("$InternalEnum")({NULL_STATE_RECENTS:1,NULL_STATE_RECENTS_SEE_ALL:2,NULL_STATE_SUGGESTED:3,NULL_STATE_XAC_FOLLOWING:4,QUERY_SUGGESTED:5,QUERY_NON_FOLLOWING:6,QUERY_XAC_FOLLOWING:7,QUERY_XAC_NON_FOLLOWING:8,QUERY_BUSINESSES:9,QUERY_MESSAGES:10,OTHER:11,QUERY_NON_BUSINESSES:12,COMMUNITY_CHATS:13,MORE_COMMUNITY_CHATS:14,RELEVANT_SHARES:15,LATEST_SHARES:16,RECOMMENDED_COMMUNITIES:17,COMMUNITIES_AND_MORE:18,CHANNELS:19,NULL_STATE_NON_FOLLOWING:20,JOINED_CM_AND_CHANNEL:21,JOINED_CM_AND_CHANNEL_SEE_MORE:22,RECOMMENDED_CM_AND_CHANNEL:23,RECOMMENDED_CM_AND_CHANNEL_SEE_MORE:24,AI:25,AI_SEE_MORE:26,CHANNELS_SEE_MORE:27,UNJOINED_COMMUNITY_CHATS:28,MORE_UNJOINED_COMMUNITY_CHATS:29,NS_SUGGESTED_CHANNELS:30,NS_SUGGESTED_CHANNELS_SEE_MORE:31,NULL_STATE_MESSAGES:32,NULL_STATE_SUGGESTED_PROMPT:33,NULL_STATE_PYMK:34,QUERY_SUGGESTED_PROMPT:35,INVITE_TO_INSTAGRAM:36,INVITE_TO_INSTAGRAM_SEE_MORE:37,NULL_STATE_GROUP_CHATS:38,NULL_STATE_GROUP_CHATS_SEE_MORE:39,QUERY_NON_FOLLOWING_SEE_MORE:40,META_AI_SNIPPET:41,QUERY_BUSINESSES_SEE_MORE:42,QUERY_MESSAGES_SEE_MORE:43,PHOTOS_AND_VIDEOS:44,PHOTOS_AND_VIDEOS_SEE_MORE:45,LINKS:46,LINKS_SEE_MORE:47,FILES:48,FILES_SEE_MORE:49});c=a;f["default"]=c}),66);
__d("MWSearchLogging",["$InternalEnum","I64","LSMessagingThreadTypeUtil","UniversalSearchEndFalcoEvent","UniversalSearchResultSelectedFalcoEvent","gkx"],(function(a,b,c,d,e,f,g){"use strict";var h,i=b("$InternalEnum")({CM_THREADS:"cm_threads",UNJOINED_GROUPS:"unjoined_groups",NON_CONTACTS:"non_contacts",PAGES:"pages",CONTACTS_GROUPS:"contacts_groups"}),j=function(a){switch(a){case"server":return[1,2];case"offline":case"offline_nullstate":case"secure":return[0];default:return[]}};function k(a){return a===!0?1:3}function a(a){return a===!0?0:2}function l(a,b){var c=b.searchSource,d=b.section;b=b.sectionAnalyticsName;if(a==="")return 3;if(c!=="server"||d==="")return 5;a=i.cast(b);if(a==null)return 11;switch(a){case i.CM_THREADS:return 13;case i.CONTACTS_GROUPS:return 5;case i.NON_CONTACTS:return 6;case i.PAGES:return 9;default:return 11}}function m(a){return((a=a)!=null?a:-1).toString()}function e(a,b,e,f){var g=e.rawData;e=g.id;var i=g.isE2EE,n=g.isEPD,o=g.renderIndex,p=g.searchResultType,q=g.searchSource,r=g.serverSearchResult,s=m(o),t=e,u=k(i);if(r!=null){t=(o=r.resultId)!=null?o:t;u=d("LSMessagingThreadTypeUtil").isArmadilloSecure(r==null?void 0:r.threadType)?1:3;s=(h||(h=d("I64"))).to_string(r.globalIndex)}c("UniversalSearchResultSelectedFalcoEvent").log(function(){var d;return{data_sources:j(q),is_epd:c("gkx")("23390")||n,search_result:{query_string:b,result_fbid:t,result_index:s,result_type:(d=p)!=null?d:7},session_id:a,transport_type:u,ui_section:l(b,g)}});f.current||(c("UniversalSearchEndFalcoEvent").log(function(){return{end_action:7,is_epd:c("gkx")("24110")||n,session_id:a,transport_type:u}}),f.current=!0)}g.SectionAnalyticsNameType=i;g.getLoggingDataSources=j;g.getTransportType=k;g.getLsTransportType=a;g.mapSectionToSearchUISection=l;g.logResultSelected=e}),98);
__d("UniversalSearchQueryChangedFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("843");b=d("FalcoLoggerInternal").create("universal_search_query_changed",a);e=b;g["default"]=e}),98);
__d("UniversalSearchStartFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("840");b=d("FalcoLoggerInternal").create("universal_search_start",a);e=b;g["default"]=e}),98);
__d("GroupsCometGlobalChatCreationDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="9534425649934126"}),null);
__d("GroupsCometGlobalChatCreationDialogQuery$Parameters",["GroupsCometGlobalChatCreationDialogQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("GroupsCometGlobalChatCreationDialogQuery_facebookRelayOperation"),metadata:{},name:"GroupsCometGlobalChatCreationDialogQuery",operationKind:"query",text:null}};e.exports=a}),null);
__d("GroupsCometGlobalChatCreationDialog.entrypoint",["GroupsCometGlobalChatCreationDialogQuery$Parameters","JSResourceForInteraction","WebPixelRatio"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(){return{queries:{queryReference:{parameters:c("GroupsCometGlobalChatCreationDialogQuery$Parameters"),variables:{scale:d("WebPixelRatio").get()}}}}},root:c("JSResourceForInteraction")("GroupsCometGlobalChatCreationDialog.react").__setRef("GroupsCometGlobalChatCreationDialog.entrypoint")};g["default"]=a}),98);
__d("MWChatSearchTypeheadActionButtonViewItem.react",["CometTypeaheadViewItem.react","FDSSkittleIcon.react","MWXText.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(11),e=a.entry,f=a.icon,g=a.onHighlightEntry,h=a.onPressEntry;a=a.title;var j;b[0]!==f?(j=i.jsx(c("FDSSkittleIcon.react"),{color:"gray",icon:f,size:36}),b[0]=f,b[1]=j):j=b[1];f=j;b[2]===Symbol["for"]("react.memo_cache_sentinel")?(j={className:"xe8uvvx xexx8yu xsyo7zv x18d9i69 x16hj40l"},b[2]=j):j=b[2];var k;b[3]!==a?(k=i.jsx(c("MWXText.react"),{type:"body3",children:a}),b[3]=a,b[4]=k):k=b[4];b[5]!==e||b[6]!==f||b[7]!==g||b[8]!==h||b[9]!==k?(a=i.jsx("div",babelHelpers["extends"]({},j,{role:"listbox",children:i.jsx(c("CometTypeaheadViewItem.react"),{entry:e,isActive:!1,itemStartContent:f,onHighlightEntry:g,onPressEntry:h,role:"option",children:k})})),b[5]=e,b[6]=f,b[7]=g,b[8]=h,b[9]=k,b[10]=a):a=b[10];return a}g["default"]=a}),98);
__d("MessengerGroup.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 26 19",fill:"currentColor",width:"1em",height:"1em"},a,{children:[a.title!=null&&i.jsx("title",{children:a.title}),a.children!=null&&i.jsx("defs",{children:a.children}),i.jsx("path",{d:"M13 10c-2.13 0-3.96-1.5-3.96-4.75C9.04 2.6 10.71.83 13 .83c2.3 0 3.96 1.77 3.96 4.42C16.96 8.51 15.13 10 13 10zm6.62 8.33c.57 0 .88-.5.88-1.1 0-3.08-3.47-5.56-7.5-5.56-4.03 0-7.5 2.48-7.5 5.55 0 .62.3 1.11.88 1.11h13.24zm2.55-7.5c-1.57 0-2.92-1.08-2.92-3.45 0-1.93 1.23-3.21 2.92-3.21s2.91 1.28 2.91 3.21c0 2.37-1.34 3.45-2.91 3.45zm.81 6.67a.83.83 0 0 1-.83-.72l-.01-.11a6.3 6.3 0 0 0-1.7-3.65c-.2-.22-.14-.57.14-.67a4.95 4.95 0 0 1 1.59-.27c1.66 0 3.33.84 3.33 2.5 0 2.92-2.08 2.92-2.08 2.92h-.44zM.92 7.38c0 2.37 1.34 3.45 2.91 3.45s2.92-1.08 2.92-3.45c0-1.93-1.23-3.21-2.92-3.21S.92 5.45.92 7.38zm2.1 10.12h-.44S.5 17.5.5 14.58c0-1.66 1.67-2.5 3.33-2.5.54 0 1.08.1 1.6.27.27.1.33.45.13.67a6.3 6.3 0 0 0-1.7 3.65l-.01.1a.83.83 0 0 1-.83.73z"})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98);
__d("useMWLoggerEntrypoint",["gkx"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=c("gkx")("23433"),d=null;a!==void 0&&(a==="Inbox"?d=b?"messengerdotcom":"fb_groups:comet_www_inbox":a==="ChatTab"?d="fb_groups:comet_www_chat":a==="FullscreenChat"&&(d="fb_groups:comet_www_fullscreen_chat"));return d}g["default"]=a}),98);
__d("MWChatSearchTypeaheadCreateCommunityChatActionButtonViewItem.react",["fbt","$InternalEnum","GroupsCometChatsEngagementLogger","GroupsCometGlobalChatCreationDialog.entrypoint","LSThreadAttributionStore","MWChatSearchTypeheadActionButtonViewItem.react","MWLSThreadDisplayContext","MessengerGroup.svg.react","emptyFunction","react","react-compiler-runtime","useGroupsCometChatsEngagementImpressionLogger","useMWLoggerEntrypoint","useMWXEntryPointDialog"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k=b("$InternalEnum")({CHAT_HEAD:"bottom_chat_create",JEWEL:"top_chat_create"});function a(){var a=d("react-compiler-runtime").c(14),b;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b={},a[0]=b):b=a[0];b=c("useMWXEntryPointDialog")(c("GroupsCometGlobalChatCreationDialog.entrypoint"),b);var e=b[0],f=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext(),g=c("useMWLoggerEntrypoint")(f);b=d("LSThreadAttributionStore").getSourceForNewThread();var i=b==="chatheadsNewMessage"?k.CHAT_HEAD:b==="jewelNewMessage"?k.JEWEL:null;b=(b=g)!=null?b:"";if(a[1]!==b){var m;m={client_extras:{entry_point:b,origin:(m=i)!=null?m:""},event:"community_chat_button_impression",surface:"chat_creation_template_list"};a[1]=b;a[2]=m}else m=a[2];b=c("useGroupsCometChatsEngagementImpressionLogger")(m);a[3]===Symbol["for"]("react.memo_cache_sentinel")?(m={key:"newCommunityChat",label:"New Community Chat",type:"entry"},a[3]=m):m=a[3];var n;a[4]!==f||a[5]!==g||a[6]!==e?(n=function(){var a;e({entrypoint:g!=null?g:void 0,shouldCloseComposeTab:f==="ChatTab",shouldGoToMessenger:f==="Inbox"},l);d("GroupsCometChatsEngagementLogger").log({action:"tap",client_extras:{entry_point:(a=g)!=null?a:"",origin:(a=i)!=null?a:""},event:"create_cc_button_clicked",source:"create_cc_button",surface:"chat_creation_template_list"})},a[4]=f,a[5]=g,a[6]=e,a[7]=n):n=a[7];var o;a[8]===Symbol["for"]("react.memo_cache_sentinel")?(o=h._(/*BTDS*/"__JHASH__Wh17zqow6GS__JHASH__"),a[8]=o):o=a[8];a[9]!==n?(m=j.jsx(c("MWChatSearchTypeheadActionButtonViewItem.react"),{entry:m,icon:c("MessengerGroup.svg.react"),onHighlightEntry:c("emptyFunction"),onPressEntry:n,title:o}),a[9]=n,a[10]=m):m=a[10];a[11]!==b||a[12]!==m?(o=j.jsx("div",{ref:b,children:m}),a[11]=b,a[12]=m,a[13]=o):o=a[13];return o}function l(){}g["default"]=a}),226);
__d("MWCMLightSpeedChatTabActionViewItems.react",["BaseDivider.react","CurrentEnvironment","MWChatSearchTypeaheadCreateCommunityChatActionButtonViewItem.react","cr:5103","cr:6189","gkx","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={divider:{marginTop:"x1xmf6yo",marginEnd:"xktsk01",marginBottom:"x1e56ztr",marginStart:"x1d52u69",$$css:!0}};function a(){var a=d("react-compiler-runtime").c(1),e=c("gkx")("24047")&&!c("CurrentEnvironment").messengerdotcom,f=c("gkx")("24048")||c("gkx")("3379");f=e||f;var g=b("cr:5103")||b("cr:6189");a[0]===Symbol["for"]("react.memo_cache_sentinel")?(f=f?i.jsxs(i.Fragment,{children:[e&&i.jsx(c("MWChatSearchTypeaheadCreateCommunityChatActionButtonViewItem.react"),{}),g&&i.jsx(g,{}),i.jsx(c("BaseDivider.react"),{xstyle:j.divider})]}):null,a[0]=f):f=a[0];return f}g["default"]=a}),98);
__d("mwGroupEntriesForDisplay",[],(function(a,b,c,d,e,f){"use strict";function a(a){var b=new Map();for(var a=a,c=Array.isArray(a),d=0,a=c?a:a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var e,f,g;if(c){if(d>=a.length)break;g=a[d++]}else{d=a.next();if(d.done)break;g=d.value}g=g;e=(e=g.rawData.section)!=null?e:"";f=(f=b.get(e))!=null?f:[];f.push(g);b.set(e,f)}return b}f.mwGroupEntriesForDisplay=a}),66);
__d("MWChatSearchLightspeedTypeaheadViewList.react",["MWCMLightSpeedChatTabActionViewItems.react","MWXText.react","getItemRoleFromCompositeRole","mwGroupEntriesForDisplay","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useMemo;function k(a){var b=d("react-compiler-runtime").c(19),e=a.activeEntryKey,f=a.children,g=a.entries,h=a.itemRole;a=a.title;var j="chatSearchListHeading-"+a.toString().replace(/\s/g,"-");if(g!=null&&g.length>0){var k;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(k={className:"xexx8yu xsyo7zv x18d9i69 x16hj40l"},b[0]=k):k=b[0];var l;b[1]!==a||b[2]!==j?(l=a?i.jsx("div",babelHelpers["extends"]({className:"x1y1aw1k x1sxyh0 xwib8y2 xurb0ha"},{children:i.jsx(c("MWXText.react"),{id:j,isSemanticHeading:!0,type:"entityHeaderMeta1",children:a})})):null,b[1]=a,b[2]=j,b[3]=l):l=b[3];if(b[4]!==e||b[5]!==f||b[6]!==g||b[7]!==h){b[9]!==e||b[10]!==f||b[11]!==h?(a=function(a,b){var c=e===a.key;return f({entry:a,index:b,isActive:c,itemRole:h})},b[9]=e,b[10]=f,b[11]=h,b[12]=a):a=b[12];a=g.map(a);b[4]=e;b[5]=f;b[6]=g;b[7]=h;b[8]=a}else a=b[8];b[13]!==a||b[14]!==j?(g=i.jsx("ul",{"aria-labelledby":j,children:a}),b[13]=a,b[14]=j,b[15]=g):g=b[15];b[16]!==l||b[17]!==g?(a=i.jsxs("li",babelHelpers["extends"]({},k,{children:[l,g]})),b[16]=l,b[17]=g,b[18]=a):a=b[18];return a}return null}function a(a){var b=a.showActionItems,e=a.ariaProps,f=a.children,g=a.entries,h=a.highlightedEntry;a=babelHelpers.objectWithoutPropertiesLoose(a,["showActionItems","ariaProps","children","entries","highlightedEntry"]);var l=h!=null?h.key:null;a=j(function(){return d("mwGroupEntriesForDisplay").mwGroupEntriesForDisplay(g)},[g]);var m=c("getItemRoleFromCompositeRole")(e.role);return i.jsxs("ul",babelHelpers["extends"]({className:"x1yrsyyn x4uap5 x10b6aqq xkhd6sd"},{"data-testid":void 0,role:"listbox",children:[b&&i.jsx(c("MWCMLightSpeedChatTabActionViewItems.react"),{}),Array.from(a.entries()).map(function(a){var b=a[0];a=a[1];return i.jsx(k,{activeEntryKey:l,children:f,entries:a,itemRole:m,title:b},b)})]}))}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MWJewelLightspeedSearchTypeaheadViewList.react",["CometScrollView.react","MWChatSearchLightspeedTypeaheadViewList.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={scroll:{maxHeight:"x1wxkln1",$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(10),e,f;b[0]!==a?(f=a.xstyle,e=babelHelpers.objectWithoutPropertiesLoose(a,["xstyle"]),b[0]=a,b[1]=e,b[2]=f):(e=b[1],f=b[2]);b[3]!==f?(a=[j.scroll,f],b[3]=f,b[4]=a):a=b[4];b[5]!==e?(f=i.jsx(c("MWChatSearchLightspeedTypeaheadViewList.react"),babelHelpers["extends"]({showActionItems:!1},e)),b[5]=e,b[6]=f):f=b[6];b[7]!==a||b[8]!==f?(e=i.jsx(c("CometScrollView.react"),{showsHorizontalScrollIndicator:!1,xstyle:a,children:f}),b[7]=a,b[8]=f,b[9]=e):e=b[9];return e}g["default"]=a}),98);
__d("MWJewelSearchEmptyState.react",["fbt","MWXText.react","react","react-compiler-runtime","useCometTypeaheadEmptyState"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=d("react-compiler-runtime").c(3);a=a.queryString;var e=c("useCometTypeaheadEmptyState")(),f;b[0]!==e||b[1]!==a?(f=e?j.jsxs("div",babelHelpers["extends"]({className:"xz9dl7a xn6708d xsag5q8 x1ye3gou"},{children:[j.jsx(c("MWXText.react"),{align:"center",type:"body2",children:h._(/*BTDS*/"__JHASH__kjfZwRT5xYf__JHASH__")}),j.jsx("br",{}),j.jsx(c("MWXText.react"),{align:"center",color:"tertiary",type:"body3",children:h._(/*BTDS*/"__JHASH__vJvyHT-oIpm__JHASH__",[h._param("query",a)])})]})):null,b[0]=e,b[1]=a,b[2]=f):f=b[2];return f}g["default"]=a}),226);
__d("MWJewelSearchTypeaheadViewItemUtils",["fbt","ConstUriUtils","CurrentEnvironment","I64","LSMessagingThreadTypeUtil","LSSearchType","MWChatSearchResultType","MWSearchLogging","QPLUserFlow","UniversalSearchResultSelectedFalcoEvent","XCometMessengerControllerRouteBuilder","XMessengerDotComCometMainControllerRouteBuilder","gkx","isTlcSearchEnabled","justknobx","qpl"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=function(a){if(a==null)return null;a=a.loggingSessionId;return a};function k(a){a=(a=a)!=null?a:{};var b=a.threadType;a=a.type_;if(b==null||a==null)return!1;if(!d("LSMessagingThreadTypeUtil").isSocialChannelUnjoined(b))return!1;if((i||(i=d("I64"))).to_int32(a)!==c("LSSearchType").PUBLIC_CHANNEL)return!1;return!c("gkx")("24052")?!1:!0}function a(a){if(c("CurrentEnvironment").messengerdotcom===!0)return!1;if(c("justknobx")._("1406"))return!1;a=a===c("MWChatSearchResultType").USER||a===c("MWChatSearchResultType").GROUP;return c("isTlcSearchEnabled")()===!0&&a}function b(a){var b;b=(b=a)!=null?b:{};var c=b.threadJoinLinkHash;b=b.threadType;if(b==null||c==null)return void 0;a=k(a)||d("LSMessagingThreadTypeUtil").isUnjoinedDiscoverablePublicBroadcastChannel(b);a=a?(b=d("ConstUriUtils").getUri(c))==null?void 0:b.getPath().split("/").reverse()[1]:void 0;return a}function e(a){return a==null?!1:d("LSMessagingThreadTypeUtil").isUnjoinedDiscoverablePublicBroadcastChannel(a)}function f(a){return a==null?!1:d("LSMessagingThreadTypeUtil").isDiscoverablePublicBroadcastChannel(a)}function l(){return h._(/*BTDS*/"__JHASH__PXg4X26-RXS__JHASH__")}function m(a,b){c("CurrentEnvironment").facebookdotcom?c("XCometMessengerControllerRouteBuilder").buildURL({link_hash:a,thread_key:b}):c("XMessengerDotComCometMainControllerRouteBuilder").buildURL({link_hash:a,thread_key:b})}function n(a,b,e){if(a==null)return;var f=e.rawData,g=f.id,h=f.isE2EE,i=f.isEPD,j=f.renderIndex,k=f.searchResultType,l=f.searchSource;c("UniversalSearchResultSelectedFalcoEvent").log(function(){var e;return{data_sources:d("MWSearchLogging").getLoggingDataSources(l),is_epd:c("gkx")("23390")||i,search_result:{query_string:b,result_fbid:g,result_index:((e=j)!=null?e:-1).toString(),result_type:(e=k)!=null?e:7},session_id:a,transport_type:d("MWSearchLogging").getTransportType(h),ui_section:d("MWSearchLogging").mapSectionToSearchUISection(b,f)}})}function o(a,b,d,e){a===!0?c("QPLUserFlow").endSuccess(c("qpl")._(25312244,"1683")):c("QPLUserFlow").endCancel(c("qpl")._(25312244,"1683")),n(b,d,e)}g.getSessionId=j;g.isUnjoinedPublicChat=k;g.shouldUpdateThreadKey=a;g.genLinkHash=b;g.isUnjoinedBroadcastChannel=e;g.isBroadcastChannel=f;g.gete2eeAttributionSubtext=l;g.getChatNavigationUrl=m;g.logSearchResultClickHepler=n;g.logSearchResultClick=o}),226);
__d("MWXPageVerificationIcon.react",["BaseTheme.react","CometPageVerificationIcon.react","gkx","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={dark:{accent:"var(--icon-accent-color)",secondary:"var(--icon-secondary-color)",white:"var(--icon-white-color)"},light:{accent:"var(--icon-accent-color)",secondary:"var(--icon-secondary-color)",white:"var(--icon-white-color)"},type:"VARIABLES"};function a(a){var b=d("react-compiler-runtime").c(3),e;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(e={display:"inline"},b[0]=e):e=b[0];b[1]!==a?(e=i.jsx(c("BaseTheme.react"),{config:c("gkx")("7347")?j:void 0,style:e,children:i.jsx(c("CometPageVerificationIcon.react"),babelHelpers["extends"]({},a))}),b[1]=a,b[2]=e):e=b[2];return e}g["default"]=a}),98);
__d("UniversalSearchImpressionFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("845");b=d("FalcoLoggerInternal").create("universal_search_impression",a);e=b;g["default"]=e}),98);
__d("useUniversalSearchImpressionFalcoEvent",["MWSearchLogging","UniversalSearchImpressionFalcoEvent","react","react-compiler-runtime","usePartialViewImpression"],(function(a,b,c,d,e,f,g){"use strict";var h;(h||d("react")).useCallback;function a(a){var b=d("react-compiler-runtime").c(15),e=a.cmGroupId,f=a.entry,g=a.instanceId,h=a.queryString,i=f.rawData;a=i.id;var j=i.isE2EE,k=i.isEPD;f=i.renderIndex;var l=i.searchResultType,m=i.searchSource;a=a;var n=a;f=(a=f)!=null?a:-1;b[0]!==f?(a=f.toString(),b[0]=f,b[1]=a):a=b[1];var o=a;b[2]!==e||b[3]!==g||b[4]!==j||b[5]!==k||b[6]!==h||b[7]!==i||b[8]!==n||b[9]!==o||b[10]!==l||b[11]!==m?(f=function(){if(g==null)return;c("UniversalSearchImpressionFalcoEvent").log(function(){var a;return{cm_group_id:e,data_sources:d("MWSearchLogging").getLoggingDataSources(m),impression_selected:!1,is_epd:k,search_result:{query_string:h,result_fbid:n,result_index:o,result_type:(a=l)!=null?a:7},session_id:g,transport_type:d("MWSearchLogging").getTransportType(j),ui_section:d("MWSearchLogging").mapSectionToSearchUISection(h,i)}})},b[2]=e,b[3]=g,b[4]=j,b[5]=k,b[6]=h,b[7]=i,b[8]=n,b[9]=o,b[10]=l,b[11]=m,b[12]=f):f=b[12];a=f;b[13]!==a?(f={onImpressionStart:a},b[13]=a,b[14]=f):f=b[14];return c("usePartialViewImpression")(f)}g["default"]=a}),98);
__d("MWJewelSearchTypeaheadViewItem.react",["BaseMiddot.react","CometTypeaheadViewItem.react","FBLogger","I64","LSIntEnum","LSMessagingThreadTypeUtil","MAWThreadCutover","MWChatFacepile.react","MWChatProfile.react","MWChatSearchResultType","MWJewelSearchTypeaheadViewItemUtils","MWXIconMagnifyingGlass","MWXIconStrict.react","MWXPageVerificationIcon.react","MWXText.react","MWXTextPairing.react","cr:393","cr:4538","cr:4539","deferredLoadComponent","isStringNullOrEmpty","mwCMIsAnyCMThread","react","requireDeferred","useMWNavigation","useUniversalSearchImpressionFalcoEvent"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=h||(h=d("react")),l=h.useState,m=c("deferredLoadComponent")(c("requireDeferred")("MAWChatVerifyCutover.react").__setRef("MWJewelSearchTypeaheadViewItem.react")),n={contentRoot:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",marginTop:"xdj266r",marginBottom:"xat24cr",paddingTop:"x1y1aw1k",paddingEnd:"x1sxyh0",paddingBottom:"xwib8y2",paddingStart:"xurb0ha",":hover_backgroundColor":"x8du52y",$$css:!0}};function a(a){var e=a.entry,f=a.extraViewItemProps,g=a.onPressEntry,h=a.queryString;a=babelHelpers.objectWithoutPropertiesLoose(a,["entry","extraViewItemProps","onPressEntry","queryString"]);var o=e.rawData,p=o.id,q=o.imageUrl,r=o.isE2EE,s=o.isInstagramAccount,t=o.isInteropEligible,u=o.otherUserId,v=o.resultType,w=o.secondaryImageUrl,x=o.section,y=o.serverSearchResult,z=o.subtext,A=o.subtextAdditional,B=o.threadType,C=o.verificationStatus,D=b("cr:4538")==null?void 0:b("cr:4538")(),E=b("cr:4539")==null?void 0:b("cr:4539")({onSuccess:function(a){return D==null?void 0:D(a)}}),F=d("MAWThreadCutover").useShouldHideE2eeAttribution((i||(i=d("I64"))).of_string_opt(p),B),G=c("useMWNavigation")(),H=B!=null&&c("mwCMIsAnyCMThread")(B),I=d("MWJewelSearchTypeaheadViewItemUtils").getSessionId(f);f=c("useUniversalSearchImpressionFalcoEvent")({entry:e,instanceId:I,isCommunityChat:H,queryString:h});var J=l(),K=J[0];J=J[1];u=u;r=r&&!F?d("MWJewelSearchTypeaheadViewItemUtils").gete2eeAttributionSubtext():z;F=v===c("MWChatSearchResultType").MESSAGE?k.jsx("div",babelHelpers["extends"]({className:"x1qhmfi1 x14yjl9h xudhj91 x18nykt9 xww2gxu x1y1aw1k x1sxyh0 xwib8y2 xurb0ha"},{children:k.jsx(c("MWXIconStrict.react"),{color:"primary",icon:c("MWXIconMagnifyingGlass"),size:20})})):w!==""?(B?d("LSMessagingThreadTypeUtil").isOneToOne(B):!1)?k.jsx(c("MWChatProfile.react"),{size:36,src:w}):k.jsx(c("MWChatFacepile.react"),{firstParticipantURI:q,secondParticipantURI:w,size:36}):k.jsx(c("MWChatProfile.react"),{size:36,src:q});var L=(z=K)!=null?z:p,M=d("MWJewelSearchTypeaheadViewItemUtils").genLinkHash(y);w=babelHelpers["extends"]({},e,{key:L,rawData:babelHelpers["extends"]({},o,{id:L},u==null&&p!==L?{otherUserId:p}:{})});q=C==="BLUE_VERIFIED"||C==="GRAY_VERIFIED";if(c("isStringNullOrEmpty")(e.label)){c("FBLogger")("search").warn("Empty search result label for entry: %s",e.rawData.id);return null}return k.jsx("div",{ref:f,children:k.jsxs(c("CometTypeaheadViewItem.react"),babelHelpers["extends"]({},a,{entry:w,isDisabled:s===!0&&t===!1,itemStartContent:F,linkProps:{preventLocalNavigation:!0,url:d("MWJewelSearchTypeaheadViewItemUtils").getChatNavigationUrl(M,L)},onPressEntry:d("MWJewelSearchTypeaheadViewItemUtils").isUnjoinedPublicChat(y)?function(){var a;a=(a=y)!=null?a:{};a=a.threadJoinLinkHash;a!=null&&(E==null?void 0:E(a))}:d("MWJewelSearchTypeaheadViewItemUtils").isUnjoinedBroadcastChannel(B)?function(){G.openInbox({threadKey:(i||(i=d("I64"))).of_string(L),threadLinkHash:M,threadType:(j||(j=d("LSIntEnum"))).ofNumber(153)},"jewelSearch")}:function(a,b){g(a,b),d("MWJewelSearchTypeaheadViewItemUtils").logSearchResultClick(H,I,h,e)},testid:void 0,xstyle:n.contentRoot,children:[d("MWJewelSearchTypeaheadViewItemUtils").shouldUpdateThreadKey(v)?k.jsx(m,{id:p.toString(),updateThreadKey:J}):null,k.jsx(c("MWXTextPairing.react"),{body:k.jsxs(c("MWXText.react"),{numberOfLines:1,type:"body3",children:[e.label,C!=null&&q&&!d("MWJewelSearchTypeaheadViewItemUtils").isBroadcastChannel(B)?k.jsx("span",babelHelpers["extends"]({className:"xurb0ha"},{children:k.jsx(c("MWXPageVerificationIcon.react"),{size:"small",verificationBadge:C})})):null]}),level:3,meta:r&&r!==""?k.jsxs(c("MWXText.react"),{numberOfLines:1,type:"meta4",children:[r,d("MWJewelSearchTypeaheadViewItemUtils").isBroadcastChannel(B)&&Boolean(A)&&k.jsxs(k.Fragment,{children:[C!=null&&q&&k.jsx("span",babelHelpers["extends"]({className:"x1e558r4 xxymvpz"},{children:k.jsx(c("MWXPageVerificationIcon.react"),{size:"small",verificationBadge:C})})),k.jsx(c("BaseMiddot.react"),{}),A]}),(x==null||x==="")&&Boolean(e.rawData.isInstagramAccount)?k.jsxs(k.Fragment,{children:[k.jsx(c("BaseMiddot.react"),{}),"Instagram"]}):null]}):null}),b("cr:393")!=null&&k.jsx(b("cr:393"),{rawData:w.rawData})]}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("createMWJewelSearchTypeaheadViewStrategy.react",["CometTypeaheadProgressGlimmer.react","MWJewelLightspeedSearchTypeaheadViewList.react","MWJewelSearchEmptyState.react","MWJewelSearchTypeaheadViewItem.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a,b){return function(d){var e=d.ariaProps,f=d.entries;d.extraViewProps;var g=d.highlightedEntry,h=d.isLoading;d.onAbandonTypeahead_DO_NOT_USE;var j=babelHelpers.objectWithoutPropertiesLoose(d,["ariaProps","entries","extraViewProps","highlightedEntry","isLoading","onAbandonTypeahead_DO_NOT_USE"]);d=f.length===0&&j.queryString.length>0;h=f.length>0&&h;return d?i.jsx(c("MWJewelSearchEmptyState.react"),{queryString:j.queryString}):i.jsxs(i.Fragment,{children:[i.jsx(c("MWJewelLightspeedSearchTypeaheadViewList.react"),{ariaProps:e,entries:f,highlightedEntry:g,xstyle:a,children:function(a){var d=a.entry,e=a.isActive;a=a.itemRole;return i.createElement(c("MWJewelSearchTypeaheadViewItem.react"),babelHelpers["extends"]({},j,{entry:d,extraViewItemProps:{loggingSessionId:b},isActive:e,key:d.key,role:a}))}}),h&&i.jsx(c("CometTypeaheadProgressGlimmer.react"),{})]})}}g["default"]=a}),98);
__d("MWJewelSearchSubscriptionTypeahead.react",["fbt","BaseSubscriptionTypeahead.react","CometTypeaheadBackButton.react","CometTypeaheadInputRoundedStrategy.react","CometTypeaheadLayoutContextualStrategy.react","MWChatSearchSurfaces","MWChatSearchTypeaheadLightspeedSubscriptionDataSource","MWFacebookUserWithoutMessengerAccess","MWLSSearchIssueSearchQuerySupportedTypes","MWLSThreadDisplayContext","MWPSearchSystem","MWSearchLogging","UniversalSearchEndFalcoEvent","UniversalSearchQueryChangedFalcoEvent","UniversalSearchStartFalcoEvent","cr:2012305","createMWJewelSearchTypeaheadViewStrategy.react","gkx","isArmadillo","promiseDone","react","useReStore","uuidv4","xplatToDOMRef"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react"));e=j;var l=e.useCallback,m=e.useEffect,n=e.useMemo,o=e.useRef,p=e.useState,q={searchInput:{marginTop:"x1xmf6yo",marginEnd:"x11i5rnm",marginBottom:"x1e56ztr",marginStart:"x1mh8g0r",paddingTop:"xexx8yu",paddingEnd:"x1pi30zi",paddingBottom:"x18d9i69",paddingStart:"x1swvt13",$$css:!0},searchView:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",boxShadow:"x1gnnqk1",display:"x78zum5",minHeight:"xphu8jj",$$css:!0}},r=function(a){return c("createMWJewelSearchTypeaheadViewStrategy.react")(null,a)},s=c("gkx")("24086"),t=c("gkx")("23390");function a(a){var e=a.onChange,f=a.onFocus,g=a.onPressEntry,j=a.onSelectFreeformQuery,u=babelHelpers.objectWithoutPropertiesLoose(a,["onChange","onFocus","onPressEntry","onSelectFreeformQuery"]);a=p(null);var v=a[0],w=a[1],x=o(null),y=(i||(i=c("useReStore")))(),z=o(!1);m(function(){var a=x.current;b("cr:2012305")!==null&&a!=null&&b("cr:2012305").trackTypingPerf(a,"MWJewelSearchTypeahead");return function(){b("cr:2012305")!==null&&a!=null&&b("cr:2012305").unregisterTypingPerf(a)}},[x]);var A=d("MWLSThreadDisplayContext").useMWLSThreadDisplayContext();a=n(function(){return new(c("MWChatSearchTypeaheadLightspeedSubscriptionDataSource"))({database:y,excludedIDs:[],includeGroupSearch:A!=="ChatTab",includeMessageSearchEntry:!1,includeRecommendations:!0,lightspeedSupportedTypes:d("MWLSSearchIssueSearchQuerySupportedTypes").allSupportedTypes,source:c("MWChatSearchSurfaces").universal})},[y,A]);var B=l(function(){w(null),v!=null&&(z.current||(c("UniversalSearchEndFalcoEvent").log(function(){return{end_action:8,is_epd:t,session_id:v,transport_type:null}}),z.current=!0)),e("")},[e,v]),C=l(function(a){var b=function(){g!=null&&g(a)};if(v==null){b();return}d("MWSearchLogging").logResultSelected(v,u.queryString,a,z);b()},[g,v,u.queryString]),D=l(function(){s&&c("promiseDone")(d("MWPSearchSystem").clearAll(y));var a=c("uuidv4")();w(a);z.current=!1;c("UniversalSearchStartFalcoEvent").log(function(){return{is_epd:t,session_id:a}});c("UniversalSearchQueryChangedFalcoEvent").log(function(){return{query_length:"0",query_string:null,session_id:a}})},[y]),E=l(function(a){v!=null&&c("UniversalSearchQueryChangedFalcoEvent").log(function(){return{query_length:a.length.toString(),query_string:a,session_id:v}}),e(a)},[e,v]),F=d("MWFacebookUserWithoutMessengerAccess").useIsFacebookUserWithoutMessengerAccess(),G=h._(/*BTDS*/"__JHASH__ktsKn3dbNLm__JHASH__"),H=h._(/*BTDS*/"__JHASH__wCWGz0nEOur__JHASH__");F=F?H:G;return k.jsx(c("BaseSubscriptionTypeahead.react"),{dataSource:a,dataSourceFetchConfigParams:c("isArmadillo")()?{requestFlow:"network-upon-approve"}:void 0,inputExtraProps:{hideIconAnimation:!0,hideIconOnFocus:!0},inputRef:d("xplatToDOMRef").xplatToInputRef(x),inputStartContent:v!=null?k.jsx(c("CometTypeaheadBackButton.react"),{testid:void 0}):null,inputStrategyRenderer:c("CometTypeaheadInputRoundedStrategy.react"),layoutStrategyRenderer:c("CometTypeaheadLayoutContextualStrategy.react"),loggingContext:"messenger_jewel",onChange:E,onClose:B,onFocus:f,onOpen:D,onPressEntry:C,onSelectFreeformQuery:j,placeholder:F,queryString:u.queryString,shouldHandleCloseAfterHandlePressEntry:!0,shouldQueryStringUpdateFromSelectedEntryOnClick:!1,viewStrategyRenderer:r(v),xstyles:{inputXStyle:q.searchInput,viewXStyle_DO_NOT_USE:q.searchView}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("MWJewelThreadListSearchTypeahead.react",["CometRelay","FBLogger","I64","MWChatSearchFilteringUtils","MWChatSearchResultType","MWJewelSearchSubscriptionTypeahead.react","MWPSearchSystem","MWThreadCreationUtil","QPLUserFlow","asyncToGeneratorRuntime","emptyFunction","qpl","react","react-compiler-runtime","setTimeoutCometSpeculative","useCometPreloader","useMWChatOpenTabForGroup","useMWChatOpenTabForPage","useMWChatOpenTabForUser","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));e=j;e.useCallback;var l=e.useEffect,m=e.useState;function a(a){var e=d("react-compiler-runtime").c(25),f=a.onClose;a=m("");var g=a[0];a=a[1];var j=c("useMWChatOpenTabForGroup")("jewelSearch"),o=j[0],p=c("useMWChatOpenTabForPage")("jewelSearch");j=c("useMWChatOpenTabForUser")("jewelSearch");var q=j.openTabByThreadKey,r=j.openTabForUserWithoutPreloadedNavigationData,s=(h||(h=c("useReStore")))(),t=d("CometRelay").useRelayEnvironment();e[0]!==s?(j=function(){return d("MWPSearchSystem").makeAll(s)},e[0]=s,e[1]=j):j=e[1];var u=j;e[2]!==u?(j=function(){c("setTimeoutCometSpeculative")(u,1e4)},e[2]=u,e[3]=j):j=e[3];l(j);e[4]!==s||e[5]!==t||e[6]!==q||e[7]!==r?(j=function(a,c){var e=d("MWChatSearchFilteringUtils").getIsE2ee(c.rawData);if(e)return q(a,!0);d("MWThreadCreationUtil").getIsSecureBasedOnContactCapabilitiesForOneToOneThreadV2(c,t,s).then(function(){var e=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b){var e=b.isSecureThread;b=b.reason;if(b==="default_e2ee")r({unpreloadedReason:"jewelsearch_not_support_gql",userId:a});else{var f=(yield s.tables.threads.get((i||(i=d("I64"))).of_string(a)));r({isSecureThread:e,reason:"MWJewelThreadListSearchTypeahead, FBID: "+a+", reason: "+((e=b)!=null?e:"")+", searchSource: "+((b=c.rawData.searchSource)!=null?b:"")+", otherUserId: "+((e=c.rawData.otherUserId)!=null?e:"")+", hasCutoverThread: "+((e=(b=c.rawData.hasCutoverThread)==null?void 0:b.toString())!=null?e:"false")+", threadAuthorityLevel: "+(f!=null?(i||(i=d("I64"))).to_string(f.authorityLevel):"null"),unpreloadedReason:"jewelsearch_not_support_gql",userId:a})}});return function(a){return e.apply(this,arguments)}}())["catch"](n)},e[4]=s,e[5]=t,e[6]=q,e[7]=r,e[8]=j):j=e[8];var v=j;e[9]!==f||e[10]!==o||e[11]!==p||e[12]!==v?(j=function(a){var b=a.rawData,d=b.id;b=b.resultType;bb41:switch(b){case c("MWChatSearchResultType").MESSAGE:break bb41;case c("MWChatSearchResultType").GROUP:o(d);break bb41;case c("MWChatSearchResultType").USER:case c("MWChatSearchResultType").AI_BOT:v(d,a);break bb41;case c("MWChatSearchResultType").PAGE:p(d)}f()},e[9]=f,e[10]=o,e[11]=p,e[12]=v,e[13]=j):j=e[13];j=j;var w=c("useCometPreloader")("button_aggressive",c("emptyFunction"),u),x=w.onHoverInPreloader,y=w.onHoverMovePreloader;w=w.onHoverOutPreloader;var z;e[14]!==u?(z=function(){u(),c("QPLUserFlow").start(c("qpl")._(25312244,"1683"))},e[14]=u,e[15]=z):z=e[15];e[16]!==j||e[17]!==g||e[18]!==z?(a=k.jsx(c("MWJewelSearchSubscriptionTypeahead.react"),{onChange:a,onFocus:z,onPressEntry:j,queryString:g}),e[16]=j,e[17]=g,e[18]=z,e[19]=a):a=e[19];e[20]!==x||e[21]!==y||e[22]!==w||e[23]!==a?(j=k.jsx("div",{onMouseEnter:x,onMouseLeave:w,onMouseMove:y,children:a}),e[20]=x,e[21]=y,e[22]=w,e[23]=a,e[24]=j):j=e[24];return j}function n(a){c("FBLogger")("messenger_search").mustfix("Error fetching contact capabilities: %s",a)}f=k.memo(a);g["default"]=f}),98);
__d("getInteractionIDWithInheritance",["InteractionTracingMetrics"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){var d,e;d=a==null?null:(d=c("InteractionTracingMetrics").get(a))==null?void 0:d.start;e=b==null?null:(e=c("InteractionTracingMetrics").get(b))==null?void 0:e.start;if(b!=null&&(a==null||d==null||d!=null&&e!=null&&d<e))return b;else return a}g["default"]=a}),98);
__d("useMWChatSearchClearSearchResults",["LSClearTablesStoredProcedure","LSFactory","promiseDone","react","react-compiler-runtime","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;(i||d("react")).useCallback;function a(){var a=d("react-compiler-runtime").c(2),b=(h||(h=c("useReStore")))(),e;a[0]!==b?(e=function(){c("promiseDone")(b.runInTransaction(j,"readwrite",void 0,void 0,f.id+":22"))},a[0]=b,a[1]=e):e=a[1];return e}function j(a){return c("LSClearTablesStoredProcedure")(c("LSFactory")(a))}g["default"]=a}),98);
__d("CometMessagingJewelDropdownContent.react",["fbt","CometErrorBoundary.react","CometHeroInteractionIDContext","CometHeroInteractionWithDiv.react","CometMessagingJewelCommunitiesQPBannerContainer.react","CometMessagingJewelDropdownContentGlimmer.react","CometMessagingJewelDropdownContent_query.graphql","CometMessagingJewelDropdownQPBannerContainer.react","CometPageletWithDiv.react","CometPlaceholder.react","CometRelay","CometTopNavListDropdownCard.react","CometTransientDialogProvider.react","FBLogger","I64","InteractionTracing","JSResourceForInteraction","LSContactBitOffset","LSIntEnum","LSPlatformErrorsCatcher.react","MAWUnrecoverableErrorBoundary.react","MWCMJewelContext","MWEncryptedBackupsJewelNuxWrapperDeferred.react","MWInboxContextSwitcherGlimmer.react","MWInboxQuickPromotionWrapper.react","MWJewelDropdownHeader.react","MWJewelNestedFolderThreadList.react","MWJewelPopoverDialogContext.react","MWJewelThreadListSearchTypeahead.react","MWResponsiveLayoutContext.react","MWThreadList.react","ODS","ReQL","ReQLSuspense","WebUXLoggingEntryPointContextProvider","XCometMessengerControllerRouteBuilder","cr:17196","cr:7643","deferredLoadComponent","getInteractionIDWithInheritance","gkx","lazyLoadComponent","qpl","react","react-compiler-runtime","recoverableViolation","requireDeferredForDisplay","useMWChatSearchClearSearchResults","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m,n,o=n||(n=d("react"));e=n;var p=e.memo,q=e.useCallback,r=e.useContext,s=e.useEffect,t=e.useRef,u=c("deferredLoadComponent")(c("requireDeferredForDisplay")("MWInboxContextSwitcherCond.react").__setRef("CometMessagingJewelDropdownContent.react")),v=c("lazyLoadComponent")(c("JSResourceForInteraction")("MWCMBlendedThreadListV2.react").__setRef("CometMessagingJewelDropdownContent.react")),w=c("lazyLoadComponent")(c("JSResourceForInteraction")("MAWJewelMessageRequestsAndSpamDropdownWithTab.react").__setRef("CometMessagingJewelDropdownContent.react")),x=c("lazyLoadComponent")(c("JSResourceForInteraction")("MWRestrictedAccountsList.react").__setRef("CometMessagingJewelDropdownContent.react")),y=c("lazyLoadComponent")(c("JSResourceForInteraction")("MWJewelArchivedChatsDropdown.react").__setRef("CometMessagingJewelDropdownContent.react")),z=c("lazyLoadComponent")(c("JSResourceForInteraction")("CometMessagingJewelDropdownErrorState.react").__setRef("CometMessagingJewelDropdownContent.react")),A=h._(/*BTDS*/"__JHASH__9FTPnWJWCay__JHASH__");function B(a){c("recoverableViolation")("CometMessagingJewelDropdownQPBannerContainer failed to render","messenger_web_entrypoints",{error:a})}var C=c("gkx")("22839")===!0;function D(a){var e=a.ebSoftblockUpsell,g=a.onClose,n=a.pushPage;a=a.query;var p=r(c("MWResponsiveLayoutContext.react"));p=p.isDenseMode;var z=r(c("MWJewelPopoverDialogContext.react")),D=z.setIsOpenForDialog,E=c("useMWChatSearchClearSearchResults")(),F=q(function(){E(),g()},[g,E]);s(function(){return E},[E]);z=c("XCometMessengerControllerRouteBuilder").buildURL({});var G=r(c("MWCMJewelContext")),H=G.MWCMBlendedThreadListEntrypointRef,I=G.selectedFolderTab,J=G.setSelectedFolderTab;G=r(c("CometHeroInteractionIDContext"));var K=t();G=c("getInteractionIDWithInheritance")(G,K.current);a=d("CometRelay").useFragment(i!==void 0?i:i=b("CometMessagingJewelDropdownContent_query.graphql"),a);var L=(j||(j=c("useReStore")))(),M=d("ReQLSuspense").useFirst(function(){return d("ReQL").fromTableAscending(L.tables._user_info).map(function(a){return a.facebookUserId})},[L],f.id+":193"),N=d("ReQLSuspense").useFirst(function(){return M!=null?d("ReQL").fromTableAscending(L.tables.contacts,["capabilities","capabilities2"]).getKeyRange(M):d("ReQL").empty()},[L,M],f.id+":197"),O=q(function(){var a=c("InteractionTracing").startInteraction({interactionClass:"fast",qplEvent:c("qpl")._(30607516,"756"),tracePolicy:"comet.jewel.message_requests",traceType:"INTERACTION"});n(function(b){b=b.onReturn;return o.jsx(d("CometPageletWithDiv.react").Placeholder,{fallback:o.jsx(c("CometMessagingJewelDropdownContentGlimmer.react"),{isFullHeight:!1,title:A,withBackButton:!0}),name:"MAWJewelMessageRequestsAndSpamDropdownWithTab",children:o.jsx(w,{interactionID:a,onClose:F,onReturn:b})})})},[F,n]),P=q(function(){n(function(a){a=a.onReturn;return o.jsx(x,{hidePage:a,onClose:F})})},[F,n]),Q=q(function(){(k||(k=d("ODS"))).bumpEntityKey(3185,"mw_jewel","archived_chats"),n(function(a){a=a.onReturn;return o.jsx(y,{onClose:F,onReturn:a})})},[F,n]),R=q(function(a){n(function(b){b=b.onReturn;switch((l||(l=d("I64"))).to_int32(a)){case-13:return o.jsx(c("MWJewelNestedFolderThreadList.react"),{folder:a,onClose:F,onReturn:b,title:h._(/*BTDS*/"__JHASH__yJarfmqcRDP__JHASH__")});case-12:var e=N!=null&&d("LSContactBitOffset").has(86,N),f=h._(/*BTDS*/"__JHASH__Yxm-6KVT3xg__JHASH__");e&&(f=h._(/*BTDS*/"__JHASH__2CCWbeECGXn__JHASH__"));return o.jsx(c("MWJewelNestedFolderThreadList.react"),{folder:a,onClose:F,onReturn:b,title:f});default:c("FBLogger")("messenger_web_entrypoints").mustfix("Attempted to show an unimplemented nested system folder");return null}})},[F,n,N]);Q=o.jsxs(o.Fragment,{children:[o.jsx(d("CometPageletWithDiv.react").Placeholder,{fallback:null,name:"MWJewelDropdownHeader",children:o.jsx(c("MWJewelDropdownHeader.react"),{inboxUrl:z,onClose:F,onOpenArchivedChats:Q,onOpenMessageRequests:O,onOpenRestrictedAccountsList:P,title:A})}),o.jsxs("div",babelHelpers["extends"]({className:"x1c4vz4f"},{children:[o.jsx(d("CometPageletWithDiv.react").Placeholder,{fallback:null,name:"MWJewelThreadListSearchTypeahead",children:o.jsx(c("MWJewelThreadListSearchTypeahead.react"),{onClose:F,pushPage:n})})," ",!p&&b("cr:17196")!=null&&a.inbox_tray!=null&&o.jsx(b("cr:17196"),{onClose:F,query:a.inbox_tray}),C&&o.jsx(d("CometPageletWithDiv.react").Placeholder,{fallback:o.jsx(c("MWInboxContextSwitcherGlimmer.react"),{}),name:"MWInboxContextSwitcher",children:o.jsx(u,{entryPoint:"jewel",onTabChange:function(a){(l||(l=d("I64"))).equal(a,(m||(m=d("LSIntEnum"))).ofNumber(-14))&&(K.current=c("InteractionTracing").startInteraction({interactionClass:"fast",qplEvent:c("qpl")._(30620417,"938"),tracePolicy:"comet.jewel.messenger.communities",traceType:"INTERACTION"})),D(!1),J==null?void 0:J(a)},selectedFolderTab:I})})]})),(l||(l=d("I64"))).equal(I,(m||(m=d("LSIntEnum"))).ofNumber(0))&&e==null?o.jsx(c("MWInboxQuickPromotionWrapper.react"),{onError:B,children:o.jsx(c("MWEncryptedBackupsJewelNuxWrapperDeferred.react"),{query:a,children:o.jsx(c("CometMessagingJewelDropdownQPBannerContainer.react"),{viewer:a.viewer})})}):null]});P=a.viewer.cm_thread_list;p=a.viewer.cm_qp_banner;return o.jsx(d("CometPageletWithDiv.react").Placeholder,{fallback:o.jsx(c("CometMessagingJewelDropdownContentGlimmer.react"),{isFullHeight:!0,title:A}),name:"MWJewelDropdownContent",children:o.jsx(d("WebUXLoggingEntryPointContextProvider").WebUXLoggingEntryPointContextProvider,{value:"jewel",children:o.jsx(c("CometHeroInteractionWithDiv.react"),{interactionDesc:"JewelThreadList."+((l||(l=d("I64"))).equal(I,(m||(m=d("LSIntEnum"))).ofNumber(0))?"Inbox":(l||(l=d("I64"))).equal(I,(m||(m=d("LSIntEnum"))).ofNumber(-14))?"Communities":"Other"),interactionUUID:G,children:o.jsx(c("CometTopNavListDropdownCard.react"),{testid:void 0,useFullHeight:C,useMaxHeight:!0,children:e!=null&&(l||(l=d("I64"))).equal(I,(m||(m=d("LSIntEnum"))).ofNumber(0))?o.jsxs(o.Fragment,{children:[Q,e]}):o.jsxs(o.Fragment,{children:[C&&(l||(l=d("I64"))).equal(I,(m||(m=d("LSIntEnum"))).ofNumber(-14))?o.jsx(c("CometPlaceholder.react"),{fallback:o.jsx(c("CometMessagingJewelDropdownContentGlimmer.react"),{isFullHeight:!0,title:A}),name:"CometMessagingJewelDropdownContent.MWCMBlendedThreadList",children:P!=null?o.jsx(v,{gridLabel:A.toString(),header:o.jsxs(o.Fragment,{children:[Q,p!=null&&o.jsx(c("CometErrorBoundary.react"),{onError:B,children:o.jsx(c("CometPlaceholder.react"),{fallback:null,name:"CometMessagingJewelDropdownContent.CommunitiesQPBanner",children:o.jsx(c("CometTransientDialogProvider.react"),{children:o.jsx(c("CometMessagingJewelCommunitiesQPBannerContainer.react"),{messagingEntryPoint:"jewel",onClose:F,viewer:p})})})})]}),lsEntryPoint:"jewel",messagingEntryPoint:"jewel",onClose:F,responsive:!1,viewer:P}):H!=null?o.jsx(d("CometRelay").EntryPointContainer,{entryPointReference:H,props:{gridLabel:A.toString(),header:Q,onDropdownClose:F,onError:B}}):null}):o.jsx(c("MWThreadList.react"),{gridLabel:A.toString(),header:Q,lsEntryPoint:"jewel",onClickNestedFolderThread:R,onClose:F,onOpenMessageRequests:O,parentThreadKey:I,responsive:!1}),b("cr:7643")&&o.jsx(b("cr:7643"),{onClick:F,url:z})]})})})})})}D.displayName=D.name+" [from "+f.id+"]";function a(a){var b=d("react-compiler-runtime").c(2),e=E;b[0]!==a?(e=o.jsx(c("MAWUnrecoverableErrorBoundary.react"),{fallback:e,children:o.jsx(c("CometErrorBoundary.react"),{fallback:e,children:o.jsx(c("LSPlatformErrorsCatcher.react"),{fallback:e,children:o.jsx(D,babelHelpers["extends"]({},a))})})}),b[0]=a,b[1]=e):e=b[1];return e}function E(a){return o.jsx(z,{error:a})}E.displayName=E.name+" [from "+f.id+"]";e=p(a);g["default"]=e}),226);
__d("CometMessagingJewelDropdownQuery.graphql",["CometMessagingJewelDropdownQuery_facebookRelayOperation","CometMessagingJewelDropdownCMBlendedEntrpyointEnabled.relayprovider","MWInboxTrayEnabled.relayprovider","MWInboxTrayNumberOfContactsToFetch.relayprovider","relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={defaultValue:null,kind:"LocalArgument",name:"contactsProfilePictureDimensionPx"},c={defaultValue:null,kind:"LocalArgument",name:"scale"},d={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},f={alias:null,args:null,concreteType:"MessengerDefaultEncryptedBackup",kind:"LinkedField",name:"messenger_default_encrypted_backup",plural:!1,selections:[{alias:null,args:null,concreteType:"VestaGetUserInfoResponse",kind:"LinkedField",name:"vesta_user_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"attempts_remaining",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_registered",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"login_timeout_remaining_secs",storageKey:null}],storageKey:null}],storageKey:null};return{fragment:{argumentDefinitions:[a,c],kind:"Fragment",metadata:null,name:"CometMessagingJewelDropdownQuery",selections:[{args:null,kind:"FragmentSpread",name:"CometMessagingJewelDropdownContent_query"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[c,a,{defaultValue:null,kind:"LocalArgument",name:"__relay_internal__pv__CometMessagingJewelDropdownCMBlendedEntrpyointEnabledrelayprovider"},{defaultValue:null,kind:"LocalArgument",name:"__relay_internal__pv__MWInboxTrayEnabledrelayprovider"},{defaultValue:null,kind:"LocalArgument",name:"__relay_internal__pv__MWInboxTrayNumberOfContactsToFetchrelayprovider"}],kind:"Operation",name:"CometMessagingJewelDropdownQuery",selections:[{alias:null,args:null,concreteType:"XFBEncryptedBackup",kind:"LinkedField",name:"xfb_backup",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBEBVirtualDevice",kind:"LinkedField",name:"virtual_devices",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"client_generated_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"device_type",storageKey:null},d],storageKey:null},{alias:null,args:[{kind:"Literal",name:"family_device_id",value:""}],kind:"ScalarField",name:"has_otc_eligible_devices",storageKey:'has_otc_eligible_devices(family_device_id:"")'},d,e],storageKey:null},{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[f,{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"backup_state",storageKey:null}]},{alias:"jewel_qp",args:[{kind:"Literal",name:"surface_nux_id",value:8439},{kind:"Literal",name:"trigger",value:"MESSAGING_JEWEL_OPEN"}],concreteType:"ViewerEligibleQuickPromotionsConnection",kind:"LinkedField",name:"eligible_promotions",plural:!1,selections:[{alias:null,args:null,concreteType:"QuickPromotion",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"CometQuickPromotionSections",kind:"LinkedField",name:"comet_qp_sections",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"supported",value:"3nNEjf"}],concreteType:null,kind:"LinkedField",name:"renderer_strategy",plural:!1,selections:[e,{kind:"InlineFragment",selections:[{args:null,documentName:"CometMessagingJewelDropdownQPBannerContainer_viewer",fragmentName:"CometQuickPromotionMessengerDesktopDownloadBannerRendererStrategy_cometQuickPromotionBaseStrategy",fragmentPropName:"cometQuickPromotionBaseStrategy",kind:"ModuleImport"}],type:"CometQuickPromotionMessengerDesktopDownloadBannerRendererStrategy",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"CometMessagingJewelDropdownQPBannerContainer_viewer",fragmentName:"CometQuickPromotionMessengerWebEPDBannerRendererStrategy_cometQuickPromotionBaseStrategy",fragmentPropName:"cometQuickPromotionBaseStrategy",kind:"ModuleImport"}],type:"CometQuickPromotionMessengerWebEPDBannerRendererStrategy",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"CometMessagingJewelDropdownQPBannerContainer_viewer",fragmentName:"CometQuickPromotionMessengerWebPrivacyPolicyNoticeBannerRendererStrategy_quickPromotionRef",fragmentPropName:"quickPromotionRef",kind:"ModuleImport"}],type:"CometQuickPromotionMessengerWebPrivacyPolicyNoticeBannerRendererStrategy",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"CometMessagingJewelDropdownQPBannerContainer_viewer",fragmentName:"CometQuickPromotionArmadilloSecurityAlertsSettingsDefaultOffBannerRendererStrategy_cometQuickPromotionBaseStrategy",fragmentPropName:"cometQuickPromotionBaseStrategy",kind:"ModuleImport"}],type:"CometQuickPromotionArmadilloSecurityAlertsSettingsDefaultOffBannerRendererStrategy",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"CometMessagingJewelDropdownQPBannerContainer_viewer",fragmentName:"CometQuickPromotionMWXCardRendererStrategy_strategy",fragmentPropName:"strategy",kind:"ModuleImport"}],type:"CometQuickPromotionMWXCardRendererStrategy",abstractKey:null}],storageKey:'renderer_strategy(supported:"3nNEjf")'}],storageKey:null},d],storageKey:null}],storageKey:'eligible_promotions(surface_nux_id:8439,trigger:"MESSAGING_JEWEL_OPEN")'},{condition:"__relay_internal__pv__CometMessagingJewelDropdownCMBlendedEntrpyointEnabledrelayprovider",kind:"Condition",passingValue:!1,selections:[{alias:null,args:[{kind:"Literal",name:"surface_nux_id",value:10713},{kind:"Literal",name:"trigger",value:"MESSAGING_JEWEL_COMMUNITIES_TAB_OPEN"}],concreteType:"ViewerEligibleQuickPromotionsConnection",kind:"LinkedField",name:"eligible_promotions",plural:!1,selections:[{alias:null,args:null,concreteType:"QuickPromotion",kind:"LinkedField",name:"nodes",plural:!0,selections:[{alias:null,args:null,concreteType:"CometQuickPromotionSections",kind:"LinkedField",name:"comet_qp_sections",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"supported",value:"xxYRh"}],concreteType:null,kind:"LinkedField",name:"renderer_strategy",plural:!1,selections:[e,{kind:"InlineFragment",selections:[{args:null,documentName:"CometMessagingJewelCommunitiesQPBannerContainer_viewer",fragmentName:"CometQuickPromotionMessengerWebCommunitiesBannerRendererStrategy_quickPromotionRef",fragmentPropName:"quickPromotionRef",kind:"ModuleImport"}],type:"CometQuickPromotionMessengerWebCommunitiesBannerRendererStrategy",abstractKey:null}],storageKey:'renderer_strategy(supported:"xxYRh")'}],storageKey:null},d],storageKey:null}],storageKey:'eligible_promotions(surface_nux_id:10713,trigger:"MESSAGING_JEWEL_COMMUNITIES_TAB_OPEN")'},{alias:null,args:null,concreteType:"GroupsTab",kind:"LinkedField",name:"groups_tab",plural:!1,selections:[{alias:null,args:null,concreteType:"MessengerGlobalFBGroupChat",kind:"LinkedField",name:"suggested_chats",plural:!0,selections:[d],storageKey:null}],storageKey:null}]}],storageKey:null},{"if":null,kind:"Defer",label:"MWEncryptedBackupsJewelNuxWrapper_query$defer$MWEncryptedBackupsThreadListRestoreQPWrapperDeferred_query",selections:[{"if":null,kind:"Defer",label:"MWEncryptedBackupsThreadListRestoreQPWrapperDeferred_query$defer$MWEncryptedBackupsThreadListRestoreQPWrapper_query",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[f,{alias:null,args:null,concreteType:"XFBEncryptedBackup",kind:"LinkedField",name:"encrypted_backup",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"has_seen_eb_auto_restore_notice",storageKey:null},d],storageKey:null},{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"qp_with_pin_state",storageKey:null}]}],storageKey:null}]}]},{condition:"__relay_internal__pv__MWInboxTrayEnabledrelayprovider",kind:"Condition",passingValue:!0,selections:[{"if":null,kind:"Defer",label:"MWInboxTrayDeferred_query$defer$MWInboxTray_query",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"actor",plural:!1,selections:[e,d],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"chat_visibility",storageKey:null},{alias:null,args:[{kind:"Variable",name:"count",variableName:"__relay_internal__pv__MWInboxTrayNumberOfContactsToFetchrelayprovider"}],concreteType:null,kind:"LinkedField",name:"chat_sidebar_contacts",plural:!0,selections:[e,d,{kind:"TypeDiscriminator",abstractKey:"__isProfile"},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"short_name",storageKey:null},{alias:null,args:[{kind:"Variable",name:"height",variableName:"contactsProfilePictureDimensionPx"},{kind:"Variable",name:"scale",variableName:"scale"},{kind:"Variable",name:"width",variableName:"contactsProfilePictureDimensionPx"}],concreteType:"Image",kind:"LinkedField",name:"profile_picture",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_secure_thread",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"message_capabilities2_str",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_od_cutover_eligible",storageKey:null},{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"availability",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"last_active_time",storageKey:null}]}],type:"User",abstractKey:null}],storageKey:null},{alias:null,args:[{kind:"Literal",name:"mnet_rank_type",value:["INBOX_ACTIVE_NOW"]}],concreteType:"MNetRankConnection",kind:"LinkedField",name:"mnet_ranks",plural:!1,selections:[{alias:null,args:null,concreteType:"MNetRankEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"MNetRank",kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,concreteType:"MNetItemConnection",kind:"LinkedField",name:"items",plural:!1,selections:[{alias:null,args:null,concreteType:"MNetItemEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[e,{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"user_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"rank_score",storageKey:null}],type:"MNetContactItem",abstractKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:'mnet_ranks(mnet_rank_type:["INBOX_ACTIVE_NOW"])'}],storageKey:null}]}]}]},params:{id:b("CometMessagingJewelDropdownQuery_facebookRelayOperation"),metadata:{},name:"CometMessagingJewelDropdownQuery",operationKind:"query",text:null,providedVariables:{__relay_internal__pv__CometMessagingJewelDropdownCMBlendedEntrpyointEnabledrelayprovider:b("CometMessagingJewelDropdownCMBlendedEntrpyointEnabled.relayprovider"),__relay_internal__pv__MWInboxTrayEnabledrelayprovider:b("MWInboxTrayEnabled.relayprovider"),__relay_internal__pv__MWInboxTrayNumberOfContactsToFetchrelayprovider:b("MWInboxTrayNumberOfContactsToFetch.relayprovider")}}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null);
__d("CometMessagingJewelDropdown.react",["fbt","BaseMultiStepContainer.react","BasePopoverReflowSheetContext","CometMessagingJewelDropdownContent.react","CometMessagingJewelDropdownQuery.graphql","CometRelay","CometTopNavListDropdown.react","MWLogInteraction","cr:6188","justknobx","react","react-compiler-runtime","stylex"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));e=k;e.useCallback;var m=e.useContext,n={cardWidth:{width:"x1cvmir6",$$css:!0},cardWidthReflow:{width:"x14atkfc",$$css:!0}};function a(a){var e=d("react-compiler-runtime").c(11),f=a.props;a=a.queries;var g=f.onClose;f=a.jewelQueryRef;var k=d("CometRelay").usePreloadedQuery(i!==void 0?i:i=b("CometMessagingJewelDropdownQuery.graphql"),f);a=m(c("BasePopoverReflowSheetContext"));f=a.isReflowSheet;a=o;var p;e[0]===Symbol["for"]("react.memo_cache_sentinel")?(p=h._(/*BTDS*/"__JHASH__ptC-BqtItMK__JHASH__"),e[0]=p):p=e[0];var q;e[1]!==f?(q=(j||(j=c("stylex"))).props([n.cardWidth,f&&n.cardWidthReflow]),e[1]=f,e[2]=q):q=e[2];e[3]!==g||e[4]!==k?(f=l.jsx(c("BaseMultiStepContainer.react"),{fitContentWidth:!0,onPageChange:a,children:function(a){return l.jsx(c("CometMessagingJewelDropdownContent.react"),{onClose:g,pushPage:a,query:k})}}),e[3]=g,e[4]=k,e[5]=f):f=e[5];e[6]!==q||e[7]!==f?(a=l.jsx(c("CometTopNavListDropdown.react"),{label:p,name:"MWJewelDropdown",children:l.jsx("div",babelHelpers["extends"]({},q,{children:f}))}),e[6]=q,e[7]=f,e[8]=a):a=e[8];p=a;e[9]!==p?(q=b("cr:6188")!=null?l.jsx(b("cr:6188"),{children:p}):p,e[9]=p,e[10]=q):q=e[10];return q}function o(a){a>0&&c("justknobx")._("3802")&&d("MWLogInteraction").logPopoverOpenCancel("popover_page_change")}g["default"]=a}),226);
__d("FBIconMarketplaceFilled12.svg.react",["XPlatReactSVG","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs(d("XPlatReactSVG").Svg,babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor",title:a.title},a,{children:[a.children!=null&&i.jsx(d("XPlatReactSVG").Defs,{children:a.children}),i.jsx(d("XPlatReactSVG").G,{fillRule:"evenodd",transform:"translate(-450 -1073)",children:i.jsxs(d("XPlatReactSVG").G,{children:[i.jsx(d("XPlatReactSVG").Path,{fillRule:"nonzero",d:"M108 922v5.27a.23.23 0 0 1-.23.23h-7.54a.23.23 0 0 1-.23-.23V922h-1v5.27c0 .68.55 1.23 1.23 1.23h7.54c.68 0 1.23-.55 1.23-1.23V922h-1z",transform:"translate(352 157)"}),i.jsx(d("XPlatReactSVG").Path,{d:"M109.291 919c.18 0 .3-.183.23-.348l-.686-1.609a.863.863 0 0 0-.802-.543h-8.066a.86.86 0 0 0-.799.534l-.69 1.618a.25.25 0 0 0 .23.348h10.583zm-11.041 1a.25.25 0 0 0-.25.25v1c0 .69.553 1.25 1.234 1.25h.083c.287 0 .567-.102.788-.288l.206-.194.097.082c.308.259.695.4 1.096.4h.088a1.71 1.71 0 0 0 1.106-.409l.063-.072.11.091c.305.252.688.39 1.084.39h.067c.401 0 .792-.144 1.1-.404l.068-.076.09.076c.31.261.702.404 1.107.404h.103c.404 0 .797-.145 1.11-.41l.056-.067.195.166c.236.2.534.311.843.311.72 0 1.306-.594 1.306-1.325v-.925a.25.25 0 0 0-.25-.25h-11.5zm6.75 8h-2v-3.25a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25V928z",transform:"translate(352 157)"}),i.jsx(d("XPlatReactSVG").Path,{fillRule:"nonzero",d:"M105.5 928.5h-3v-3.75a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 .75.75v3.75zm-1-1V925h-1v2.5h1z",transform:"translate(352 157)"})]})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98);
__d("FBIconPauseCircleFilled12.svg.react",["XPlatReactSVG","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){return i.jsxs(d("XPlatReactSVG").Svg,babelHelpers["extends"]({viewBox:"0 0 12 13",width:"1em",height:"1em",fill:"currentColor",title:a.title},a,{children:[a.children!=null&&i.jsx(d("XPlatReactSVG").Defs,{children:a.children}),i.jsx(d("XPlatReactSVG").G,{fillRule:"evenodd",transform:"translate(-450 -1073)",children:i.jsx(d("XPlatReactSVG").Path,{d:"M459 1081.875c0 .344-.28.625-.625.625h-.75a.626.626 0 0 1-.625-.625v-4.75c0-.344.28-.625.625-.625h.75c.344 0 .625.28.625.625v4.75zm-4 0c0 .344-.28.625-.625.625h-.75a.626.626 0 0 1-.625-.625v-4.75c0-.344.28-.625.625-.625h.75c.344 0 .625.28.625.625v4.75zm1-8.375c-3.308 0-6 2.691-6 6s2.692 6 6 6 6-2.691 6-6-2.692-6-6-6z"})})]}))}a.displayName=a.name+" [from "+f.id+"]";a._isSVG=!0;b=a;g["default"]=b}),98);
__d("LSFetchCommunitiesActivityStatus",["LSIssueNewTaskWithExtraOperations"],(function(a,b,c,d,e,f){function a(){var a=arguments,c=a[a.length-1],d=[],e=[];return c.sequence([function(a){return c.sequence([function(a){return d[0]=c.createArray(),c.forEach(c.db.table(162).fetch(),function(a){a=a.item;return d[2]=(d[0].push(a.folderId),d[0])})},function(a){return d[1]=c.i64.of_int32(d[0].length),c.i64.gt(d[1],c.i64.cast([0,0]))?(d[2]=new c.Map(),d[2].set("community_ids",d[0]),d[3]=c.toJSON(d[2]),c.storedProcedure(b("LSIssueNewTaskWithExtraOperations"),"fetch_unjoined_communities_activity_status",c.i64.cast([0,170003]),d[3],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]))):c.resolve()}])},function(a){return c.resolve(e)}])}a.__sproc_name__="LSMailboxFetchCommunitiesActivityStatusStoredProcedure";a.__tables__=["community_folders"];e.exports=a}),null);
__d("LSFetchCommunitiesActivityStatusStoredProcedure",["LSFetchCommunitiesActivityStatus","LSSynchronousPromise","Promise","cr:8709"],(function(a,b,c,d,e,f,g){var h;function a(a){a=a.storedProcedure(c("LSFetchCommunitiesActivityStatus"));return(h||(h=b("Promise"))).resolve(d("LSSynchronousPromise").maybeExtractValueIfSynchronousPromise(a))}g["default"]=a}),98);
__d("LSVerifyThreadsActivityStatus",["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("server_mode",a[1]),d[0].set("from_timestamp_ms",a[2]),d[0].set("threads",a[3]),d[0].set("session_id",a[0]),d[1]=c.toJSON(d[0]),c.storedProcedure(b("LSIssueNewTaskWithExtraOperations"),"verify_threads_activity_status",c.i64.cast([0,648]),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__="LSMailboxVerifyThreadsActivityStatusStoredProcedure";a.__tables__=[];e.exports=a}),null);
__d("LSVerifyThreadsActivityStatusStoredProcedure",["LSSynchronousPromise","LSVerifyThreadsActivityStatus","Promise","cr:8709"],(function(a,b,c,d,e,f,g){var h;function a(a,e){a=a.storedProcedure(c("LSVerifyThreadsActivityStatus"),e.sessionId,e.serverMode,e.fromTimestampMs,e.threads);return(h||(h=b("Promise"))).resolve(d("LSSynchronousPromise").maybeExtractValueIfSynchronousPromise(a))}g["default"]=a}),98);
__d("MWChatSearchResultTypeMapping",["LSSearchType","MWChatSearchResultType"],(function(a,b,c,d,e,f,g){"use strict";function a(a){switch(a){case c("MWChatSearchResultType").GROUP:return c("LSSearchType").GROUP;case c("MWChatSearchResultType").MESSAGE:return c("LSSearchType").INTEGRATED_MESSAGE_SEARCH_THREAD;case c("MWChatSearchResultType").PAGE:return c("LSSearchType").PAGE;case c("MWChatSearchResultType").USER:return c("LSSearchType").CONTACT;case c("MWChatSearchResultType").AI_BOT:return c("LSSearchType").AI_BOT}}g.mapMWChatSearchResultTypeToLSSearchType=a}),98);
__d("MWChatSearchIssueMAWFTSQuery",["I64","LSContactBitOffset","LSDatabaseSingleton","LSIntEnum","LSMessagingThreadTypeUtil","LSSearchGranularSurfaceType","LSSearchType","LSThreadBitOffset","MAWBridgeSearchMsg","MAWBridgeSendAndReceive","MAWChatJid","MNetRankType","MWChatSearchResultTypeMapping","MWChatTemporarySearchResult","MWGetOtherContactOrSelf","MWLSThreadTitle","MWSearchStandardResultTypeMappings","MWSearchThreadUtils","Promise","ReQL","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k;function l(a,b,e,f,g){return d("MAWChatJid").toThreadKeyMaybe(a.tables,b).then(function(b){if(b!=null)return d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.tables.threads).getKeyRange(b)).then(function(a){var h;return{displayName:(h=f)!=null?h:"",id:e,imageUrl:"",isAiBot:a!=null&&(i||(i=d("I64"))).equal(a.threadType,(k||(k=d("LSIntEnum"))).ofNumber(201)),isContact:!1,isDisappearingModeSettingOn:!1,isE2EE:a!=null?d("LSMessagingThreadTypeUtil").isArmadilloSecure(a.threadType):!1,isEPD:!1,isInstagramAccount:!1,isInstamadilloCutover:a!=null&&d("LSThreadBitOffset").has(214,a),isTTLCClipEnabled:a!=null&&d("LSThreadBitOffset").has(226,a),isTTLCGenericXMAShareEnabled:a!=null&&d("LSThreadBitOffset").has(231,a),isTTLCMediaShareEnabled:a!=null&&d("LSThreadBitOffset").has(228,a),isTTLCStoryShareEnabled:a!=null&&d("LSThreadBitOffset").has(229,a),isVerified:!1,matchedTerms:g,resultType:d("MWChatTemporarySearchResult").getResultType((k||(k=d("LSIntEnum"))).ofNumber(c("LSSearchType").INTEGRATED_MESSAGE_SEARCH_THREAD)),searchResultType:14,searchSource:"secure",section:"",subtext:"",threadKey:b}})})}function m(a,c){return d("ReQL").firstAsync(d("ReQL").fromTableAscending(c.tables.mi_act_mapping_table).getKeyRange(a)).then(function(a){if(a!=null)return d("ReQL").firstAsync(d("ReQL").fromTableAscending(c.tables.cutover_threads).filter(function(b){return(i||(i=d("I64"))).equal(b.armadilloThreadId,a.jid)})).then(function(b){if(b!=null)return b.openThreadId;else return a.jid});else return(h||(h=b("Promise"))).resolve()})}function n(a){var b=a.score-1e-6;return{contactId:a.contactId,contactType:a.contactType,score:b,scoreIndex:a.scoreIndex,scoreType:a.scoreType}}function o(a,b){return m(a,b).then(function(e){var f=e!=null?e:a,g=e!=null;return d("ReQL").firstAsync(d("ReQL").fromTableAscending(b.tables.ranking_scores).getKeyRange(f,(k||(k=d("LSIntEnum"))).ofNumber(c("MNetRankType").MESSENGER_USER_SEARCH))).then(function(a){if(a!=null)if(g)return n(a);else return a})})}function p(a,b,e,f){var g;g=(g=b.threadDescription)!=null?g:"";(i||(i=d("I64"))).equal(a,(k||(k=d("LSIntEnum"))).ofNumber(c("LSSearchGranularSurfaceType").INSTAGRAM_ALL))&&(g=d("MWLSThreadTitle").getThreadTitleWithSecondaryNames(b.threadDescription,e,f,b.threadType).toString());return g}function q(a,b,c,d){return r.apply(this,arguments)}function r(){r=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,e,f,g){e=(yield (h||(h=b("Promise"))).all([d("MAWChatJid").toThreadKeyMaybe(a.tables,e),d("ReQL").firstExnAsync(d("ReQL").fromTableAscending(a.tables._user_info).map(function(a){return a.facebookUserId}))]));var j=e[0];e=e[1];if(j==null)return;j=(yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.tables.threads).getKeyRange(j)));if(j==null||j.folderName!=="inbox")return;var l=(yield h.all([d("MWSearchThreadUtils").getThreadPics(j,e,a),d("MWSearchThreadUtils").getThreadParticipants(j,a),o(j.threadKey,a)])),m=l[0],n=l[1];l=l[2];var q=m[0];m=m[1];var r=d("LSMessagingThreadTypeUtil").isOneToOne(j.threadType),s=d("LSMessagingThreadTypeUtil").isGroup(j.threadType)?(k||(k=d("LSIntEnum"))).ofNumber(c("LSSearchType").GROUP):(k||(k=d("LSIntEnum"))).ofNumber(c("LSSearchType").CONTACT),t=null;r===!0&&(t=(yield d("MWGetOtherContactOrSelf").getOtherContactOrSelf(j.threadKey,e,a)));return{displayName:d("MWLSThreadTitle").getDefaultThreadTitle(j.threadName,e,n,j.threadType).toString(),id:(i||(i=d("I64"))).to_string(j.threadKey),imageUrl:q,isAiBot:i.equal(j.threadType,(k||(k=d("LSIntEnum"))).ofNumber(201)),isContact:r,isDisappearingModeSettingOn:!1,isE2EE:d("LSMessagingThreadTypeUtil").isArmadilloSecure(j.threadType),isEPD:!1,isInstagramAccount:!1,isInstamadilloCutover:d("LSThreadBitOffset").has(214,j),isTTLCClipEnabled:d("LSThreadBitOffset").has(226,j),isTTLCGenericXMAShareEnabled:d("LSThreadBitOffset").has(231,j),isTTLCMediaShareEnabled:d("LSThreadBitOffset").has(228,j),isTTLCStoryShareEnabled:d("LSThreadBitOffset").has(229,j),isVerified:t!=null?d("LSContactBitOffset").has(23,t):!1,matchedTerms:g,otherUserId:t?(i||(i=d("I64"))).to_string(t.id):void 0,rankingScore:l,resultType:d("MWChatTemporarySearchResult").getResultType(s),searchResultType:d("MWSearchStandardResultTypeMappings").mapThreadTypeToSearchStandardResultType(j.threadType),searchSource:"secure",secondaryImageUrl:m,section:"",subtext:p(f,j,e,n),threadKey:j.threadKey,threadType:j.threadType}});return r.apply(this,arguments)}function s(a,b,c){return t.apply(this,arguments)}function t(){t=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,e){var f,g=(yield d("ReQL").firstExnAsync(d("ReQL").fromTableAscending(a.tables._user_info).map(function(a){return a.facebookUserId})));b=(yield d("MAWChatJid").toThreadKeyMaybe(a.tables,b));if(b==null)return null;var h=(yield d("ReQL").firstAsync(d("ReQL").fromTableAscending(a.tables.threads).getKeyRange(b)));if(h==null)return null;g=(yield d("MWSearchThreadUtils").getThreadPics(h,g,a));a=g[0];g=g[1];var j={contactId:(i||(i=d("I64"))).zero,contactType:i.zero,score:i.to_float(h.lastActivityTimestampMs),scoreIndex:i.zero,scoreType:i.zero};return{displayName:(f=h.threadName)!=null?f:"",id:i.to_string(b),imageUrl:a,isAiBot:i.equal(h.threadType,(k||(k=d("LSIntEnum"))).ofNumber(201)),isContact:!1,isDisappearingModeSettingOn:!1,isE2EE:d("LSMessagingThreadTypeUtil").isArmadilloSecure(h.threadType),isEPD:!1,isInstagramAccount:!1,isInstamadilloCutover:d("LSThreadBitOffset").has(214,h),isTTLCClipEnabled:d("LSThreadBitOffset").has(226,h),isTTLCGenericXMAShareEnabled:d("LSThreadBitOffset").has(231,h),isTTLCMediaShareEnabled:d("LSThreadBitOffset").has(228,h),isTTLCStoryShareEnabled:d("LSThreadBitOffset").has(229,h),isVerified:!1,matchedTerms:e,rankingScore:j,resultType:d("MWChatTemporarySearchResult").getResultType(k.ofNumber(c("LSSearchType").GROUP)),searchResultType:3,searchSource:"secure",secondaryImageUrl:g,section:"",subtext:(f=h.threadDescription)!=null?f:"",threadKey:b}});return t.apply(this,arguments)}function u(a,b){return v.apply(this,arguments)}function v(){v=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,c){var e=(yield (j||(j=d("LSDatabaseSingleton"))).LSDatabaseSingleton);a=(yield (h||(h=b("Promise"))).all(a.map(function(a){switch(a.recordType){case"msg":var b=a.msg,d=b==null?void 0:b.msgId;return b==null||d==null?null:l(e,a.chatJid,d,b.content,a.matchedTerms);case"groupInfo":return s(e,a.groupJid,a.matchedTerms);case"participant":return q(e,a.threadJid,c,a.matchedTerms)}})));return a.filter(Boolean)});return v.apply(this,arguments)}function w(a,b,e){return a.filter(function(a){a=(k||(k=d("LSIntEnum"))).ofNumber(d("MWChatSearchResultTypeMapping").mapMWChatSearchResultTypeToLSSearchType(a.resultType));var f=b.includes(a);if(!f)return!1;f=(i||(i=d("I64"))).equal(a,k.ofNumber(c("LSSearchType").GROUP));return!f||e})}function a(a,b,c,e){return d("MAWBridgeSendAndReceive").sendAndReceive("backend","search",{query:e.query,searchMode:d("MAWBridgeSearchMsg").NON_MESSAGE_CONTENT_SEARCH},{timeoutMs:1e4}).then(function(a){return u(a,b)}).then(function(b){return w(b,a,c)})}g.filterSearchResults=w;g.fetchResults=a}),98);
__d("MWEBRestoreJewelSoftblockPersistentBannerWrapperDeferred.withSegmentationCheck.react",["cr:1266"],(function(a,b,c,d,e,f,g){"use strict";g["default"]=b("cr:1266")}),98);
__d("useHasOTCEligibleDevices",["MAWOneTimeCodeGating","ReQL","ReQLSuspense","react-compiler-runtime","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h;function a(){var a=d("react-compiler-runtime").c(4),b=(h||(h=c("useReStore")))(),e;a[0]!==b.tables.encrypted_backups?(e=function(){return d("ReQL").fromTableAscending(b.tables.encrypted_backups)},a[0]=b.tables.encrypted_backups,a[1]=e):e=a[1];var g;a[2]!==b?(g=[b],a[2]=b,a[3]=g):g=a[3];a=d("ReQLSuspense").useFirst(e,g,f.id+":19");return a==null||!d("MAWOneTimeCodeGating").isOneTimeCodeEnabled()?!1:a.hasOtcEligibleDevices}g["default"]=a}),98);
__d("MWEBVirtualDevicesContextProvider.react",["MAWOneTimeCodeGating","MWEBVirtualDevicesContext.react","gkx","react","react-compiler-runtime","useHasOTCEligibleDevices","useMWEncryptedBackupsListenForChangesToVirtualDevicesV2"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));h.useMemo;var j=(b=c("gkx")("24064"))!=null?b:!1;function a(a){var b=d("react-compiler-runtime").c(14),e=a.children,f=a.hasOtcEligibleDevicesInitialValue,g=a.offlineDevicesCountInitialValue;a=a.vestaClientIDInitialValue;g=g===void 0?-1:g;a=(a=a)!=null?a:void 0;var h;b[0]!==g||b[1]!==a?(h={offlineDevicesCountInitialValue:g,vestaClientIDInitialValue:a},b[0]=g,b[1]=a,b[2]=h):h=b[2];g=c("useMWEncryptedBackupsListenForChangesToVirtualDevicesV2")(h);a=g.offlineDevicesCount;h=g.vestaClientID;g=c("useHasOTCEligibleDevices")();var k;b[3]!==g||b[4]!==f?(k=d("MAWOneTimeCodeGating").isOneTimeCodeEnabled()&&(j===!0||f===!0||g),b[3]=g,b[4]=f,b[5]=k):k=b[5];g=k;f=h!=null;b[6]!==g||b[7]!==a||b[8]!==f||b[9]!==h?(k={virtualDeviceInfo:{doesUserHaveOtcEligibleDevices:g,isPINCodeRegistered:f,offlineDevicesCount:a,vestaClientID:h}},b[6]=g,b[7]=a,b[8]=f,b[9]=h,b[10]=k):k=b[10];g=k;a=g;b[11]!==e||b[12]!==a?(f=i.jsx(d("MWEBVirtualDevicesContext.react").MWEBVirtualDevicesContext.Provider,{value:a,children:e}),b[11]=e,b[12]=a,b[13]=f):f=b[13];return f}g["default"]=a}),98);
__d("MWEncryptedBackupsJewelNuxWrapper_query.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"MWEncryptedBackupsJewelNuxWrapper_query",selections:[{alias:null,args:null,concreteType:"XFBEncryptedBackup",kind:"LinkedField",name:"xfb_backup",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"useMWEncryptedBackupsGetVirtualDevicesPreloaded_xfbEncryptedBackup"},{alias:null,args:[{kind:"Literal",name:"family_device_id",value:""}],kind:"ScalarField",name:"has_otc_eligible_devices",storageKey:'has_otc_eligible_devices(family_device_id:"")'}],storageKey:null},{kind:"RequiredField",field:{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"MessengerDefaultEncryptedBackup",kind:"LinkedField",name:"messenger_default_encrypted_backup",plural:!1,selections:[{alias:null,args:null,concreteType:"VestaGetUserInfoResponse",kind:"LinkedField",name:"vesta_user_info",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"useMWChatEncryptedBackupsVestaUserInfo_vestaGetUserInfoResponse"}],storageKey:null}],storageKey:null}],storageKey:null},action:"THROW",path:"viewer"},{kind:"Defer",selections:[{args:null,kind:"FragmentSpread",name:"MWEncryptedBackupsThreadListRestoreQPWrapperDeferred_query"}]},{args:null,kind:"FragmentSpread",name:"useEncryptedBackupsProcessStatePreLoaded_query"}],type:"Query",abstractKey:null};e.exports=a}),null);
__d("useMWEncryptedBackupsGetVirtualDevicesPreloaded_xfbEncryptedBackup.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useMWEncryptedBackupsGetVirtualDevicesPreloaded_xfbEncryptedBackup",selections:[{alias:null,args:null,concreteType:"XFBEBVirtualDevice",kind:"LinkedField",name:"virtual_devices",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"client_generated_id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"device_type",storageKey:null}],storageKey:null}],type:"XFBEncryptedBackup",abstractKey:null};e.exports=a}),null);
__d("useMWEncryptedBackupsGetVirtualDevicesPreloaded",["CometRelay","react","react-compiler-runtime","useMWEncryptedBackupsGetVirtualDevicesPreloaded_xfbEncryptedBackup.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i;(i||d("react")).useCallback;function a(a){var c=d("react-compiler-runtime").c(4);a=a.encryptedBackup;var e=d("CometRelay").useFragment(h!==void 0?h:h=b("useMWEncryptedBackupsGetVirtualDevicesPreloaded_xfbEncryptedBackup.graphql"),a);c[0]!==(e==null?void 0:e.virtual_devices)?(a=function(){var a;a=0;var b;b=null;e==null?void 0:e.virtual_devices.forEach(function(c){bb13:switch(c.device_type){case"HSM":b=c.client_generated_id;break bb13;case"OFFLINE":a=a+1;a;break bb13;default:}});return{offlineDevicesCount:a,vestaClientID:b}},c[0]=e==null?void 0:e.virtual_devices,c[1]=a):a=c[1];e==null?void 0:e.virtual_devices;a=a;var f;c[2]!==a?(f={getVirtualDevices:a},c[2]=a,c[3]=f):f=c[3];return f}g["default"]=a}),98);
__d("MWEncryptedBackupsJewelNuxWrapper.react",["CometErrorBoundary.react","CometPlaceholder.react","CometRelay","HeroInteractionIgnoreWithDiv.react","JSResourceForInteraction","MWChatEncryptedBackupsQPLSource.enum","MWEBEntrypointsKillswitch.enum","MWEBMobileOnboardingEligibility","MWEBRestoreJewelSoftblockPersistentBannerWrapperDeferred.withSegmentationCheck.react","MWEBVestaUserInfoContext.react","MWEBVirtualDevicesContextProvider.react","MWEncryptedBackupsJewelNuxWrapper_query.graphql","MWEncryptedBackupsThreadListQPWrapper.react","cr:13037","cr:13789","cr:2046","react","react-compiler-runtime","useEncryptedBackupsProcessStatePreLoaded","useMWChatEncryptedBackupsVestaUserInfo","useMWEncryptedBackupsGetVirtualDevicesPreloaded"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));i.useMemo;var k=d("MWEBMobileOnboardingEligibility").requireMobileOnboardingIfEligible(c("JSResourceForInteraction")("MWEBMobileOnboardingQPBannerWrapper.react").__setRef("MWEncryptedBackupsJewelNuxWrapper.react"));function a(a){var e,f,g=d("react-compiler-runtime").c(23),i=a.children;a=a.query;a=d("CometRelay").useFragment(h!==void 0?h:h=b("MWEncryptedBackupsJewelNuxWrapper_query.graphql"),a);var k;g[0]!==a?(k={entrypoint:c("MWEBEntrypointsKillswitch.enum").JEWEL_THREADLIST,query:a},g[0]=a,g[1]=k):k=g[1];k=c("useEncryptedBackupsProcessStatePreLoaded")(k);e=(e=a.viewer.messenger_default_encrypted_backup)==null?void 0:e.vesta_user_info;var m;g[2]!==e?(m={vestaGetUserInfoResponse$key:e},g[2]=e,g[3]=m):m=g[3];e=c("useMWChatEncryptedBackupsVestaUserInfo")(m);g[4]!==e.attemptsRemaining||g[5]!==e.loginTimeoutRemainingSecs?(m={attemptsRemaining:e.attemptsRemaining,loginTimeoutRemainingSecs:e.loginTimeoutRemainingSecs,vestaClientID:null},g[4]=e.attemptsRemaining,g[5]=e.loginTimeoutRemainingSecs,g[6]=m):m=g[6];e=m;m=e;e=a==null?void 0:a.xfb_backup;var n;g[7]!==e?(n={encryptedBackup:e},g[7]=e,g[8]=n):n=g[8];e=c("useMWEncryptedBackupsGetVirtualDevicesPreloaded")(n);n=e.getVirtualDevices;g[9]!==n?(e=n(),g[9]=n,g[10]=e):e=g[10];n=e;e=n.offlineDevicesCount;n=n.vestaClientID;f=(f=a==null?void 0:(f=a.xfb_backup)==null?void 0:f.has_otc_eligible_devices)!=null?f:void 0;var o;g[11]!==k||g[12]!==i||g[13]!==a?(o=j.jsx(l,{backupState:k,children:i,fragment:a}),g[11]=k,g[12]=i,g[13]=a,g[14]=o):o=g[14];g[15]!==o||g[16]!==m?(k=j.jsx(d("MWEBVestaUserInfoContext.react").MWEBVestaUserInfoContext.Provider,{value:m,children:o}),g[15]=o,g[16]=m,g[17]=k):k=g[17];g[18]!==e||g[19]!==k||g[20]!==f||g[21]!==n?(i=j.jsx(c("MWEBVirtualDevicesContextProvider.react"),{hasOtcEligibleDevicesInitialValue:f,offlineDevicesCountInitialValue:e,vestaClientIDInitialValue:n,children:k}),g[18]=e,g[19]=k,g[20]=f,g[21]=n,g[22]=i):i=g[22];return i}function l(a){var e=d("react-compiler-runtime").c(7),f=a.backupState,g=a.children;a=a.fragment;switch(f){case 4:e[0]!==g||e[1]!==a?(f=b("cr:2046")||c("MWEBRestoreJewelSoftblockPersistentBannerWrapperDeferred.withSegmentationCheck.react")?j.jsx(c("HeroInteractionIgnoreWithDiv.react"),{children:j.jsx(c("CometErrorBoundary.react"),{fallback:function(){return g},children:c("MWEBRestoreJewelSoftblockPersistentBannerWrapperDeferred.withSegmentationCheck.react")!=null?j.jsx(c("MWEBRestoreJewelSoftblockPersistentBannerWrapperDeferred.withSegmentationCheck.react"),{trigger:d("MWEncryptedBackupsThreadListQPWrapper.react").MWEncryptedBackupsQPTrigger.JEWEL,children:g}):b("cr:2046")!=null&&j.jsx(b("cr:2046"),{fragmentKey:a,trigger:d("MWEncryptedBackupsThreadListQPWrapper.react").MWEncryptedBackupsQPTrigger.JEWEL,children:g})})}):g,e[0]=g,e[1]=a,e[2]=f):f=e[2];return f;case 2:e[3]!==g?(a=b("cr:13037")?j.jsx(b("cr:13037"),{source:c("MWChatEncryptedBackupsQPLSource.enum").JEWEL_THREADLIST_QP,children:g}):g,e[3]=g,e[4]=a):a=e[4];var h=a;e[5]!==h?(f=j.jsx(c("HeroInteractionIgnoreWithDiv.react"),{children:j.jsx(c("CometErrorBoundary.react"),{fallback:function(){return h},children:b("cr:13789")?j.jsx(c("CometPlaceholder.react"),{fallback:null,name:"MWEncryptedBackupsJewelNuxWrapper.OnboardingThreadListQP",children:j.jsx(b("cr:13789"),{source:c("MWChatEncryptedBackupsQPLSource.enum").JEWEL_THREADLIST_QP,children:h})}):j.jsx(k,{fallback:h,props:{children:h,source:c("MWChatEncryptedBackupsQPLSource.enum").JEWEL_THREADLIST_ONBOARDING_QP,trigger:d("MWEncryptedBackupsThreadListQPWrapper.react").MWEncryptedBackupsQPTrigger.JEWEL}})})}),e[5]=h,e[6]=f):f=e[6];return f;default:return g}}g["default"]=a}),98);
__d("MWEncryptedBackupsThreadListRestoreQPWrapperDeferredWithEBCheck.react",["cr:9938"],(function(a,b,c,d,e,f,g){"use strict";g["default"]=b("cr:9938")}),98);
__d("useHasUnjoinedCMThreads",["LSIntEnum","ReQL","ReQLSuspense","react-compiler-runtime","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i;function a(){var a=d("react-compiler-runtime").c(4),b=(i||(i=c("useReStore")))(),e;a[0]!==b.tables.threads?(e=function(){return d("ReQL").union(d("ReQL").fromTableDescending(b.tables.threads.index("threadTypeLastActivityTimestampMs")).getKeyRange((h||(h=d("LSIntEnum"))).ofNumber(24)),d("ReQL").fromTableDescending(b.tables.threads.index("threadTypeLastActivityTimestampMs")).getKeyRange(h.ofNumber(19)))},a[0]=b.tables.threads,a[1]=e):e=a[1];var g;a[2]!==b?(g=[b],a[2]=b,a[3]=g):g=a[3];return!!d("ReQLSuspense").useFirst(e,g,f.id+":22")}g["default"]=a}),98);
__d("MessengerAsyncStorage",["AsyncStorage"],(function(a,b,c,d,e,f,g){"use strict";g["default"]=c("AsyncStorage")}),98);
__d("useMWCMVerifyActivityStatusOnMountAndFocus",["FBLogger","I64","LSDict","LSFactory","LSFetchCommunitiesActivityStatusStoredProcedure","LSVec","LSVerifyThreadsActivityStatusStoredProcedure","MessengerAsyncStorage","MetaConfig","ServerTime","VisibilityAPI","clearInterval","isCommunityContainersEnabled","promiseDone","react","react-compiler-runtime","setInterval","useReStore"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;b=i||d("react");b.useCallback;var k=b.useEffect;b.useMemo;var l=b.useRef,m=b.useState,n=1e3*60*60,o=n*3;function p(a){return(j||(j=d("I64"))).add(j.lsl_(j.of_float(a[0]),32),j.of_float(a[1]))}function q(a){return[(j||(j=d("I64"))).to_float(j.lsr_(a,32)),j.to_float(j.and_(a,j.of_int32(4294967295)))]}function a(a,b){var e=d("react-compiler-runtime").c(33),g=(h||(h=c("useReStore")))(),i=l(null),t="__"+a+".fromTimestampMs__",u;e[0]===Symbol["for"]("react.memo_cache_sentinel")?(u=q((j||(j=d("I64"))).of_float(d("ServerTime").getMillis()-o)),e[0]=u):u=e[0];u=u;u=m(u);var v=u[0],w=u[1],x=l(v),y;e[1]!==v?(u=function(){x.current=v},y=[v],e[1]=v,e[2]=u,e[3]=y):(u=e[2],y=e[3]);k(u,y);var z=l(!1);e[4]===Symbol["for"]("react.memo_cache_sentinel")?(u=c("MetaConfig")._("55")?["JOINED_PUBLIC_CHANNELS"]:[],e[4]=u):u=e[4];y=u;e[5]!==a?(u=c("MetaConfig")._("95")||a==="ContextSwitcher"?["JOINED_COMMUNITY_CHANNELS"]:[],e[5]=a,e[6]=u):u=e[6];a=u;e[7]!==a?(u=[].concat(y,a),e[7]=a,e[8]=u):u=e[8];y=u;var A=y;e[9]===Symbol["for"]("react.memo_cache_sentinel")?(a=c("isCommunityContainersEnabled")(),e[9]=a):a=e[9];var B=a;e[10]!==g||e[11]!==t||e[12]!==A?(u=function(){A.length>0&&c("promiseDone")(c("MessengerAsyncStorage").getItem(t).then(function(a){if(a!=null){var b=JSON.parse(a);b!=null&&(B&&c("promiseDone")(g.runInTransaction(s,"readwrite",void 0,void 0,f.id+":103")),c("promiseDone")(g.runInTransaction(function(a){return c("LSVerifyThreadsActivityStatusStoredProcedure")(c("LSFactory")(a),{fromTimestampMs:p(b),serverMode:c("LSVec").ofArray(A),threads:new(c("LSDict"))([])})},"readwrite",void 0,void 0,f.id+":114")))}})["catch"](r),function(){z.current=!0;var a=q((j||(j=d("I64"))).of_float(d("ServerTime").getMillis()));c("promiseDone")(c("MessengerAsyncStorage").setItem(t,JSON.stringify(a)),function(){w(a)})})},e[10]=g,e[11]=t,e[12]=A,e[13]=u):u=e[13];var C=u;e[14]===Symbol["for"]("react.memo_cache_sentinel")?(y=function(){i.current!=null&&(c("clearInterval")(i.current),i.current=null)},e[14]=y):y=e[14];var D=y;e[15]!==C?(a=function(){if(i.current!=null)return;if(c("MetaConfig")._("96")){var a;i.current=c("setInterval")(C,(a=c("MetaConfig")._("43"))!=null?a:n)}},e[15]=C,e[16]=a):a=e[16];var E=a;e[17]!==E||e[18]!==C?(u=function(){var a=d("ServerTime").getMillis()-(j||(j=d("I64"))).to_float(p(x.current));i.current==null&&E();a>=((a=c("MetaConfig")._("43"))!=null?a:n)&&C()},e[17]=E,e[18]=C,e[19]=u):u=e[19];var F=u;e[20]!==F||e[21]!==b?(y=function(){d("VisibilityAPI").isVisibilityHidden()?D():b&&c("MetaConfig")._("97")&&F()},e[20]=F,e[21]=b,e[22]=y):y=e[22];var G=y;e[23]!==E||e[24]!==C||e[25]!==G?(a=function(){var a;a=null;z.current||(C(),d("VisibilityAPI").canUseVisibilityAPI&&(a=d("VisibilityAPI").onVisibilityChange(G)),E());return function(){a!=null&&d("VisibilityAPI").removeVisibiltyChangeListener(a),i.current!=null&&(c("clearInterval")(i.current),i.current=null)}},e[23]=E,e[24]=C,e[25]=G,e[26]=a):a=e[26];e[27]!==F||e[28]!==E||e[29]!==b||e[30]!==C||e[31]!==G?(u=[D,F,E,b,C,G],e[27]=F,e[28]=E,e[29]=b,e[30]=C,e[31]=G,e[32]=u):u=e[32];k(a,u)}function r(a){c("FBLogger")("messenger_web_product").catching(a).mustfix("Failed to set timestamp for thread activity status")}function s(a){return c("LSFetchCommunitiesActivityStatusStoredProcedure")(c("LSFactory")(a))}g["default"]=a}),98);
__d("MWInboxContextSwitcher.react",["fbt","C4GFalcoLoggerDeferred","FDSPivotLinkTabs.react","I64","LSFactory","LSIntEnum","MWChatBadgeCountUpdates.react","MWInboxPersistedUIState","MWLogInteraction","MWPBumpEntityKey","Promise","ReQL","ReQLSuspense","cr:7085","promiseDone","react","react-compiler-runtime","useHasUnjoinedCMThreads","useMWCMVerifyActivityStatusOnMountAndFocus","useReStore","useSinglePartialViewImpression"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m,n=m||(m=d("react")),o=m.useEffect,p={tabContainer:{paddingTop:"x1y1aw1k",paddingBottom:"xwib8y2",paddingStart:"x1swvt13",paddingEnd:"x1pi30zi",paddingLeft:null,paddingRight:null,$$css:!0}};function a(a){var b=d("react-compiler-runtime").c(27),e=a.entryPoint,g=a.onTabChange,i=a.selectedFolderTab,m=(j||(j=c("useReStore")))();c("useMWCMVerifyActivityStatusOnMountAndFocus")("ContextSwitcher",e==="inbox");var s;b[0]!==m?(a=function(){c("promiseDone")(m.runInTransaction(r,"readwrite",void 0,void 0,f.id+":80"))},s=[m],b[0]=m,b[1]=a,b[2]=s):(a=b[1],s=b[2]);o(a,s);b[3]!==m.tables.threads?(a=function(){var a=[d("ReQL").fromTableDescending(m.tables.threads.index("threadTypeLastActivityTimestampMs")).getKeyRange((k||(k=d("LSIntEnum"))).ofNumber(23)),d("ReQL").fromTableDescending(m.tables.threads.index("threadTypeLastActivityTimestampMs")).getKeyRange(k.ofNumber(18)),d("ReQL").fromTableDescending(m.tables.threads.index("threadTypeLastActivityTimestampMs")).getKeyRange(k.ofNumber(21))];return d("ReQL").union.apply(void 0,a)},b[3]=m.tables.threads,b[4]=a):a=b[4];b[5]!==m?(s=[m],b[5]=m,b[6]=s):s=b[6];a=!!d("ReQLSuspense").useFirst(a,s,f.id+":90");var t=c("useHasUnjoinedCMThreads")();s=d("MWInboxPersistedUIState").usePersistedUIState(t,"__MWInboxContextSwitcher.hasViewedSuggestedChats__");var u=s[0],v=s[1];b[7]===Symbol["for"]("react.memo_cache_sentinel")?(s=(k||(k=d("LSIntEnum"))).ofNumber(0),b[7]=s):s=b[7];s=d("MWChatBadgeCountUpdates.react").useUnseenThreadCount(s);s=s!=null&&s>0;var w=d("MWChatBadgeCountUpdates.react").useHasUnseenCommunityThreads(),x=t&&!u,y=e==="jewel"?"jewel_tray":"messenger_inbox",z=e==="inbox"?"jewel_inbox":"chats_inbox",A;b[8]!==z||b[9]!==y?(A={onImpressionStart:function(){d("C4GFalcoLoggerDeferred").logC4GEngagementFalcoEvent({action:"impression",event:"blended_threadlist_community_tab_rendered",parent_surface:z,source:"blended_threadlist_community_tab",surface:y})}},b[8]=z,b[9]=y,b[10]=A):A=b[10];A=c("useSinglePartialViewImpression")(A);if(b[11]!==e||b[12]!==a||b[13]!==t||b[14]!==x||b[15]!==w||b[16]!==s||b[17]!==u||b[18]!==A||b[19]!==g||b[20]!==z||b[21]!==i||b[22]!==v||b[23]!==y){var B=[{folder:(k||(k=d("LSIntEnum"))).ofNumber(0),hasNewContentBadge:s,isShown:!0,label:h._(/*BTDS*/"__JHASH__4dBM4WjAtAu__JHASH__"),odsAction:"inbox_tab_click"},{folder:k.ofNumber(-14),hasNewContentBadge:w||x,isShown:a||t,label:h._(/*BTDS*/"__JHASH___yDrE8px4gt__JHASH__"),logClick:function(){d("C4GFalcoLoggerDeferred").logC4GEngagementFalcoEvent({action:"tap",event:"blended_threadlist_community_tab_clicked",parent_surface:z,source:"blended_threadlist_community_tab",surface:y}),d("MWLogInteraction").logPopoverOpenCancel("cm_navigation")},odsAction:"communities_tab_click",ref:A}];B=B.filter(q).map(function(a,b){var c=a.folder;b=a.hasNewContentBadge;a.isShown;var f=a.logClick,h=a.odsAction,j=a.ref;a=babelHelpers.objectWithoutPropertiesLoose(a,["folder","hasNewContentBadge","isShown","logClick","odsAction","ref"]);return babelHelpers["extends"]({},a,{hasNewContentBadge:b,onPress:function(){(l||(l=d("I64"))).equal(c,(k||(k=d("LSIntEnum"))).ofNumber(-14))&&t&&!u&&v(!0),d("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw.contextswitcher."+e,h),f==null?void 0:f(),g(c)},ref:j,selected:(l||(l=d("I64"))).equal(c,i),testid:(l||(l=d("I64"))).equal(c,(k||(k=d("LSIntEnum"))).ofNumber(-14))?"communities_tab":void 0})});b[11]=e;b[12]=a;b[13]=t;b[14]=x;b[15]=w;b[16]=s;b[17]=u;b[18]=A;b[19]=g;b[20]=z;b[21]=i;b[22]=v;b[23]=y;b[24]=B}else B=b[24];a=B;b[25]!==a?(x=n.jsx(c("FDSPivotLinkTabs.react"),{linkType:"deemphasized",tabs:a,tabsContainerStyle:p.tabContainer}),b[25]=a,b[26]=x):x=b[26];return x}function q(a){return a.isShown}function r(a){return b("cr:7085")!=null?b("cr:7085")(c("LSFactory")(a)):(i||(i=b("Promise"))).resolve()}g["default"]=a}),226);
__d("MWInboxContextSwitcherCond.react",["cr:8635","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var c=d("react-compiler-runtime").c(2),e;c[0]!==a?(e=b("cr:8635")?i.jsx(b("cr:8635"),babelHelpers["extends"]({},a)):null,c[0]=a,c[1]=e):e=c[1];return e}g["default"]=a}),98);
__d("MWJewelMessengerLink.react",["fbt","MWFacebookUserWithoutMessengerAccess","MWXLink.react","MWXText.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=d("react-compiler-runtime").c(8),e=a.onClick;a=a.url;var f=d("MWFacebookUserWithoutMessengerAccess").useIsFacebookUserWithoutMessengerAccess(),g;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(g=h._(/*BTDS*/"__JHASH__oavSR1mxJiV__JHASH__"),b[0]=g):g=b[0];g=g;var i;b[1]===Symbol["for"]("react.memo_cache_sentinel")?(i=h._(/*BTDS*/"__JHASH__62ieWPu8LFJ__JHASH__"),b[1]=i):i=b[1];i=i;f=f?i:g;b[2]===Symbol["for"]("react.memo_cache_sentinel")?(i={className:"xlsxne2 x1l90r2v x1i80of2"},b[2]=i):i=b[2];b[3]===Symbol["for"]("react.memo_cache_sentinel")?(g={inboxEntrypoint:"jewelLink"},b[3]=g):g=b[3];b[4]!==f||b[5]!==e||b[6]!==a?(i=j.jsx("div",babelHelpers["extends"]({},i,{"data-testid":void 0,children:j.jsx(c("MWXText.react"),{align:"center",color:"blueLink",type:"bodyLink3",children:j.jsx(c("MWXLink.react"),{href:a,onClick:e,traceParams:g,children:f})})})),b[4]=f,b[5]=e,b[6]=a,b[7]=i):i=b[7];return i}g["default"]=a}),226);
__d("MWJewelMessengerAppLinkV2.react",["Actor","CometPageletWithDiv.react","MWFacebookUserWithoutMessengerAccess","MWJewelMessengerLink.react","MWXLink.react","MWXText.react","MessengerDesktopDeepLinkUtils","MessengerDesktopDeeplinkEventFalcoEvent","react","react-compiler-runtime","uuidv4"],(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.useRef;function a(a){var b=d("react-compiler-runtime").c(9),e=a.onClick;a=a.url;var f;b[0]!==e||b[1]!==a?(f=i.jsx(c("MWJewelMessengerLink.react"),{onClick:e,url:a}),b[0]=e,b[1]=a,b[2]=f):f=b[2];var g;b[3]!==e||b[4]!==a?(g=i.jsx(l,{onClick:e,url:a}),b[3]=e,b[4]=a,b[5]=g):g=b[5];b[6]!==f||b[7]!==g?(e=i.jsx(d("CometPageletWithDiv.react").Placeholder,{fallback:f,name:"MWJewelMessengerAppLink",children:g}),b[6]=f,b[7]=g,b[8]=e):e=b[8];return e}function l(a){var b=d("react-compiler-runtime").c(4),e=a.onClick;a=a.url;var f=d("MWFacebookUserWithoutMessengerAccess").useIsFacebookUserWithoutMessengerAccess(),g;b[0]!==f||b[1]!==e||b[2]!==a?(g=d("MessengerDesktopDeepLinkUtils").isMessengerDesktopDeeplinkEnabled()&&!f?i.jsx(m,{onClick:e}):i.jsx(c("MWJewelMessengerLink.react"),{onClick:e,url:a}),b[0]=f,b[1]=e,b[2]=a,b[3]=g):g=b[3];return g}function m(a){var b=a.onClick,e=k(!1),f=k(c("uuidv4")()).current;a=d("Actor").useActor();a=a[0];j(function(){e.current||(e.current=!0,c("MessengerDesktopDeeplinkEventFalcoEvent").log(function(){return{event:"open_messenger_app_link_impression",eventLocation:"browser",eventType:"thread",funnelSessionId:f,mobile_app_source:"unknown"}}))});var g=d("MessengerDesktopDeepLinkUtils").getDeeplinkButtonLabel();a=d("MessengerDesktopDeepLinkUtils").getDeeplinkButtonURI({funnel_session_id:f,id:a,origin:"FB"});return i.jsx("div",babelHelpers["extends"]({className:"xlsxne2 x1l90r2v x1i80of2"},{"data-testid":void 0,children:i.jsx(c("MWXText.react"),{align:"center",color:"blueLink",type:"bodyLink3",children:i.jsx(c("MWXLink.react"),{href:a,onClick:function(){c("MessengerDesktopDeeplinkEventFalcoEvent").log(function(){return{event:"open_messenger_app_link_click",eventLocation:"browser",eventType:"thread",funnelSessionId:f,mobile_app_source:"unknown"}}),b()},children:g})})}))}m.displayName=m.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("MWXIconMarketplace",["MWXSvgIcon","SVGIcon","cr:12489","gkx"],(function(a,b,c,d,e,f,g){"use strict";a=d("MWXSvgIcon").mwxSvgIcon(d("SVGIcon").svgIcon(b("cr:12489")),c("gkx")("23219"));g["default"]=a}),98);
__d("MWThreadListMarketplaceItem.react",["fbt","CometMarketplaceLogger","LSContactBitOffset","LSIntEnum","MWPBumpEntityKey","MWThreadListFolderItem.react","MWXIconGroup","MWXIconMarketplace","MWXIconStrict.react","ReQL","ReQLSuspense","react","react-compiler-runtime","useLogMarketplaceClick","useReStore"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react")),m=k.useEffect;function a(a){var b=d("react-compiler-runtime").c(27),e=a.onClick,g=a.responsive,k=a.selected,p=a.size;a=a.thread;var q=c("useLogMarketplaceClick")("marketplace_inbox_folder"),r=(i||(i=c("useReStore")))(),s;b[0]!==r.tables._user_info?(s=function(){return d("ReQL").fromTableAscending(r.tables._user_info).map(o)},b[0]=r.tables._user_info,b[1]=s):s=b[1];var t;b[2]!==r?(t=[r],b[2]=r,b[3]=t):t=b[3];var u=d("ReQLSuspense").useFirst(s,t,f.id+":50");b[4]!==r.tables.contacts||b[5]!==u?(s=function(){return u!=null?d("ReQL").fromTableAscending(r.tables.contacts,["capabilities","capabilities2"]).getKeyRange(u):d("ReQL").empty()},b[4]=r.tables.contacts,b[5]=u,b[6]=s):s=b[6];b[7]!==r||b[8]!==u?(t=[r,u],b[7]=r,b[8]=u,b[9]=t):t=b[9];s=d("ReQLSuspense").useFirst(s,t,f.id+":55");t=s!=null&&d("LSContactBitOffset").has(86,s);b[10]===Symbol["for"]("react.memo_cache_sentinel")?(s=[],b[10]=s):s=b[10];m(n,s);b[11]===Symbol["for"]("react.memo_cache_sentinel")?(s=h._(/*BTDS*/"__JHASH__0Ktcc3EsRI7__JHASH__").toString(),b[11]=s):s=b[11];s=s;var v=c("MWXIconMarketplace");if(t===!0){b[12]===Symbol["for"]("react.memo_cache_sentinel")?(t=h._(/*BTDS*/"__JHASH__C-8UKByNynj__JHASH__").toString(),b[12]=t):t=b[12];s=t;v=c("MWXIconGroup")}b[13]!==v?(t=l.jsx(c("MWXIconStrict.react"),{color:"primary",icon:v,size:36}),b[13]=v,b[14]=t):t=b[14];b[15]!==q||b[16]!==e?(v=function(){q();e((j||(j=d("LSIntEnum"))).ofNumber(-12));return d("MWPBumpEntityKey").bumpEntityKeyWithAppId("mw.sidebar","marketplace_threads")},b[15]=q,b[16]=e,b[17]=v):v=b[17];var w;b[18]===Symbol["for"]("react.memo_cache_sentinel")?(w=(j||(j=d("LSIntEnum"))).ofNumber(-12),b[18]=w):w=b[18];b[19]!==g||b[20]!==k||b[21]!==p||b[22]!==t||b[23]!==v||b[24]!==a||b[25]!==s?(w=l.jsx(c("MWThreadListFolderItem.react"),{icon:t,onClick:v,responsive:g,selected:k,size:p,systemFolder:w,thread:a,threadName:s}),b[19]=g,b[20]=k,b[21]=p,b[22]=t,b[23]=v,b[24]=a,b[25]=s,b[26]=w):w=b[26];return w}function n(){return d("CometMarketplaceLogger").logImpression("marketplace_inbox_folder")}function o(a){return a.facebookUserId}g["default"]=a}),226);