;/*FB_PKG_DELIM*/

__d("CometFeedClickToMessengerPrivateMessagingDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="6449898285102926"}),null);
__d("CometFeedClickToMessengerPrivateMessagingDialogQuery$Parameters",["CometFeedClickToMessengerPrivateMessagingDialogQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("CometFeedClickToMessengerPrivateMessagingDialogQuery_facebookRelayOperation"),metadata:{},name:"CometFeedClickToMessengerPrivateMessagingDialogQuery",operationKind:"query",text:null}};e.exports=a}),null);
__d("CometFeedClickToMessengerPrivateMessagingDialog.entrypoint",["CometFeedClickToMessengerPrivateMessagingDialogQuery$Parameters","JSResourceForInteraction"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){a=a.profilePlusID;return{queries:{CometFeedClickToMessengerPrivateMessagingDialogQueryReference:{parameters:b("CometFeedClickToMessengerPrivateMessagingDialogQuery$Parameters"),variables:{profilePlusID:a}}}}},root:c("JSResourceForInteraction")("CometFeedClickToMessengerPrivateMessagingDialog.react").__setRef("CometFeedClickToMessengerPrivateMessagingDialog.entrypoint")};g["default"]=a}),98);
__d("FDSDialogCloseCallbackContext.react",["react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));b=h;c=b.createContext;b.useCallback;var j=b.useContext,k=c(null);function l(){return j(k)}function a(a){var b=d("react-compiler-runtime").c(6),c=a.children,e=a.onClose,f=l();b[0]!==e||b[1]!==f?(a=function(){e!=null&&e(),f!=null&&f()},b[0]=e,b[1]=f,b[2]=a):a=b[2];a=a;var g;b[3]!==c||b[4]!==a?(g=i.jsx(k.Provider,{value:a,children:c}),b[3]=c,b[4]=a,b[5]=g):g=b[5];return g}g.FDSDialogCloseCallbackContext=k;g.useFDSDialogCloseCallbackContext=l;g.FDSDialogCloseCallbackContextProvider=a}),98);
__d("FDSInfoCircleFilled20Icon",["cr:14038"],(function(a,b,c,d,e,f,g){"use strict";g["default"]=b("cr:14038")}),98);
__d("FDSInfoCircleFilled20PNGIcon.react",["ix","fbicon"],(function(a,b,c,d,e,f,g,h){"use strict";a=d("fbicon")._(h("479177"),20);b=a;g["default"]=b}),98);
__d("XCometProfileControllerRouteBuilder",["jsRouteBuilder"],(function(a,b,c,d,e,f,g){a=c("jsRouteBuilder")("/profile.php",Object.freeze({show_switched_toast:!1,show_switched_tooltip:!1,is_tour_dismissed:!1,is_tour_completed:!1,show_podcast_settings:!1,show_community_review_changes:!1,should_open_composer:!1,badge_type:"NEW_MEMBER",show_community_rollback_toast:!1,show_community_rollback:!1,show_follower_visibility_disclosure:!1}),new Set(["show_switched_toast","show_switched_tooltip","is_tour_dismissed","is_tour_completed","show_podcast_settings","show_community_review_changes","should_open_composer","show_community_rollback_toast","show_community_rollback","show_follower_visibility_disclosure"]));b=a;g["default"]=b}),98);
__d("useMWGetThreadDataForContact",["CometRelay","I64","LSDatabaseSingleton","WALoggerDeferred","asyncToGeneratorRuntime","gkx","promiseDone","react","react-compiler-runtime","requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;(h||d("react")).useCallback;var k=c("requireDeferred")("MAWVerifyThreadCutover").__setRef("useMWGetThreadDataForContact");function a(){var a=d("react-compiler-runtime").c(2),e=d("CometRelay").useRelayEnvironment(),f;a[0]!==e?(f=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=a.preloadedNavigationData;a=a.userId;var f=b==null?void 0:b.isSecureThread;if(f===!0)return{threadStatus:"SECURE"};f=b==null?void 0:b.contactCapabilities2;b=b==null?void 0:b.isOdCutoverEligible;var g=(i||(i=d("I64"))).of_string(a),h=(yield k.load());b=(yield h.verifyContactCutoverOrOndemandCutoverOrDefaultE2EE((j||(j=d("LSDatabaseSingleton"))).LSDatabaseSingleton,e,g,b,f));f=b==="cutover";b=b==="on_demand_cutover";if(f===!0&&(!b||c("gkx")("7867"))){h=(yield h.getCutoverThread((j||(j=d("LSDatabaseSingleton"))).LSDatabaseSingleton,(i||(i=d("I64"))).of_string(a)));!h&&!b&&c("gkx")("7867")&&c("promiseDone")(d("WALoggerDeferred").logWithTags(["MWChatOpenTabForUser","OpenTab"],["No existing MI mapping found for cutover thread"],"WARN"));a=h?h.serverThreadKey:g;g=h!=null||b;return{isCutover:f,isSecure:g,threadStatus:"CUTOVER",verifiedThreadKey:a}}return{threadStatus:"OPEN"}});return function(b){return a.apply(this,arguments)}}(),a[0]=e,a[1]=f):f=a[1];return f}g["default"]=a}),98);
__d("useMWBaseChatOpenTabForUser",["I64","LSDatabaseSingleton","LSIntEnum","LSThreadAttributionStore","MAWStateContext.react","MWChatInteraction","MWChatStateActions","MWChatStateV2.react","MWChatStateV2Types","asyncToGeneratorRuntime","dispatchOpenChatTabTraceLogging","performanceNow","qex","react","react-compiler-runtime","requireDeferred","useCometFeedNoRoutingNavigationEventLogger","useMWChatOpenTabTraceProvider","useMWGetThreadDataForContact"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l;e=i||d("react");e.useCallback;var m=e.useContext;e.useMemo;var n=c("requireDeferred")("MAWVerifyThreadCutover").__setRef("useMWBaseChatOpenTabForUser"),o=c("requireDeferred")("MWChatLogOpenChatTab").__setRef("useMWBaseChatOpenTabForUser"),p=c("requireDeferred")("MWChatOpenSecureTabForUserCallback").__setRef("useMWBaseChatOpenTabForUser"),q=c("requireDeferred")("MWLSPreloadThreadForContact").__setRef("useMWBaseChatOpenTabForUser");function a(a,e){var f=d("react-compiler-runtime").c(36),g=a!=null?a:!1,i=c("useMWChatOpenTabTraceProvider")(),q=c("useCometFeedNoRoutingNavigationEventLogger")(),s=r,t=d("MWChatStateV2.react").useDispatch(),u=m(d("MAWStateContext.react").MAWDispatchContext);f[0]!==t||f[1]!==g?(a=function(a,b){a={clientThreadKey:void 0,threadKey:a,threadType:(j||(j=d("LSIntEnum"))).ofNumber(1)};c("dispatchOpenChatTabTraceLogging")(b,a,"useMWBaseChatOpenTabForUser.openOpenTab");t(d("MWChatStateActions").openTab(Date.now(),{shouldFocus:!g},{threadKeyDescriptor:a,type:d("MWChatStateV2Types").MWChatStateTabType.ChatTab}))},f[0]=t,f[1]=g,f[2]=a):a=f[2];var v=a;f[3]!==t||f[4]!==g?(a=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c){var d=(yield p.load());return d.openChatTab(a,g,t,b,c)});return function(b,c,d){return a.apply(this,arguments)}}(),f[3]=t,f[4]=g,f[5]=a):a=f[5];var w=a;f[6]!==e||f[7]!==q?(a=function(a,b){q(Date.now(),"","messenger"),d("LSThreadAttributionStore").setSource(a,e),o.onReady(function(c){return c.logOpenUserTab(b,a,e)})},f[6]=e,f[7]=q,f[8]=a):a=f[8];var x=a,y=c("useMWGetThreadDataForContact")();f[9]!==e||f[10]!==y||f[11]!==x||f[12]!==v||f[13]!==w||f[14]!==i?(a=function(a){var f=a.preloadedNavigationData,g=a.reason,j=a.userId;f=f==null?void 0:f.isSecureThread;var k=(l||(l=d("I64"))).of_string(j);f=f===!0?15:1;i(function(){var e=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b,e){var f=(h||(h=c("performanceNow")))(),i=(yield y(a));if(i.threadStatus==="SECURE"){var k;x(j,!0);d("MWChatInteraction").set(j,b);return w(j,"with FBID, secure: "+((k=g)!=null?k:"unknown"),e)}else if(i.threadStatus==="CUTOVER"){k=(l||(l=d("I64"))).to_string(i.verifiedThreadKey);e.addAnnotationInt("is_cutover",i.isCutover?1:0);x(k,i.isSecure);d("MWChatInteraction").set(k,b);e.addAnnotationBoolean("is_secure",i.isSecure);e.addAnnotation("thread_id",k);e.setTracePolicy("comet.messenger.chat_tab.cutover");e.addSubspan("verify_and_get_cutover_thread","AppTiming",f,(h||(h=c("performanceNow")))());return w(j,"with FBID, cutover",e)}else{d("MWChatInteraction").set(j,b);x(j,!1);e.addSubspan("verify_and_get_cutover_thread","AppTiming",f,(h||(h=c("performanceNow")))());return v((l||(l=d("I64"))).of_string(j),e)}});return function(a,b){return e.apply(this,arguments)}}(),f,e,k)},f[9]=e,f[10]=y,f[11]=x,f[12]=v,f[13]=w,f[14]=i,f[15]=a):a=f[15];a=a;a=a;var z;f[16]!==y||f[17]!==u?(z=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=(yield y(a));if(b.threadStatus==="OPEN")return s(a);b=(yield p.load());return b.preloadSecureThreadForUser(a.userId,"preload",u)});return function(b){return a.apply(this,arguments)}}(),f[16]=y,f[17]=u,f[18]=z):z=f[18];z=z;var A;f[19]!==x||f[20]!==v||f[21]!==w?(A=function(a,b,e,f,g){x(a,b);d("MWChatInteraction").set(a,e);if(b===!0){f.addAnnotationBoolean("is_secure",b);f.addAnnotation("thread_id",a);f.setTracePolicy("comet.messenger.chat_tab.cutover");f.addSubspan("verify_and_get_cutover_thread","AppTiming",g,(h||(h=c("performanceNow")))());return w(a,"with threadKey",f)}else{f.addSubspan("verify_and_get_cutover_thread","AppTiming",g,(h||(h=c("performanceNow")))());return v((l||(l=d("I64"))).of_string(a),f)}},f[19]=x,f[20]=v,f[21]=w,f[22]=A):A=f[22];var B=A;f[23]!==t||f[24]!==e||f[25]!==x||f[26]!==B||f[27]!==g||f[28]!==i?(A=function(a,f){var m=f?15:1;i(function(){var e=b("asyncToGeneratorRuntime").asyncToGenerator(function*(b,e){if(f===!0){x(a,f);d("MWChatInteraction").set(a,b);var i=(l||(l=d("I64"))).of_string(a);i={clientThreadKey:void 0,threadKey:i,threadType:(j||(j=d("LSIntEnum"))).ofNumber(15)};c("dispatchOpenChatTabTraceLogging")(e,i,"useMWBaseChatOpenTabForUser.openTabByThreadKey");return t(d("MWChatStateActions").openTab(Date.now(),{shouldFocus:!g},{threadKeyDescriptor:i,type:d("MWChatStateV2Types").MWChatStateTabType.ChatTab}))}else{i=(h||(h=c("performanceNow")))();var m=(yield n.load());m=(yield m.verifyThreadCutover((k||(k=d("LSDatabaseSingleton"))).LSDatabaseSingleton,(l||(l=d("I64"))).of_string(a)));return B(a,m,b,e,i)}});return function(a,b){return e.apply(this,arguments)}}(),m,e,(l||(l=d("I64"))).of_string(a))},f[23]=t,f[24]=e,f[25]=x,f[26]=B,f[27]=g,f[28]=i,f[29]=A):A=f[29];A=A;A=A;var C;f[30]!==z?(C=c("qex")._("3438")?z:s,f[30]=z,f[31]=C):C=f[31];f[32]!==A||f[33]!==a||f[34]!==C?(z={openTabByThreadKey:A,openTabForUser:a,preloadThread:C},f[32]=A,f[33]=a,f[34]=C,f[35]=z):z=f[35];return z}function r(a){return s.apply(this,arguments)}function s(){s=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){var b=(yield q.load());return b.verifyThreadExists(a.userId)});return s.apply(this,arguments)}g["default"]=a}),98);
__d("useMWChatOpenTabForPage",["I64","LSIntEnum","LSThreadAttributionStore","MWChatInteraction","MWChatStateActions","MWChatStateV2.react","MWChatStateV2Types","dispatchOpenChatTabTraceLogging","react","react-compiler-runtime","recoverableViolation","requireDeferred","useCometFeedNoRoutingNavigationEventLogger","useMWChatOpenTabTraceProvider"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;(h||d("react")).useMemo;var k=c("requireDeferred")("MWChatLogOpenChatTab").__setRef("useMWChatOpenTabForPage");function a(a,b){var e=d("react-compiler-runtime").c(6),f=(b=b==null?void 0:b.preventAutofocus_DO_NOT_USE)!=null?b:!1,g=c("useMWChatOpenTabTraceProvider")(),h=c("useCometFeedNoRoutingNavigationEventLogger")(),l=d("MWChatStateV2.react").useDispatch();e[0]!==l||e[1]!==a||e[2]!==h||e[3]!==f||e[4]!==g?(b=function(b,e){var m=(e=e)!=null?e:!1;h(Date.now(),"","messenger");d("LSThreadAttributionStore").setSource(b,a);k.onReady(function(c){return c.logOpenPageTab(void 0,b,a)});return g(function(a,e){d("MWChatInteraction").set(b,a);if(m){c("recoverableViolation")("Opening secure converstions with pages not supported","messenger_web_entrypoints");return}else{a={clientThreadKey:void 0,threadKey:(i||(i=d("I64"))).of_string(b),threadType:(j||(j=d("LSIntEnum"))).ofNumber(1)};c("dispatchOpenChatTabTraceLogging")(e,a,"useMWChatOpenTabForPage");return l(d("MWChatStateActions").openTab(Date.now(),{shouldFocus:!f},{threadKeyDescriptor:a,type:d("MWChatStateV2Types").MWChatStateTabType.ChatTab}))}},14,a,(i||(i=d("I64"))).of_string(b))},e[0]=l,e[1]=a,e[2]=h,e[3]=f,e[4]=g,e[5]=b):b=e[5];e=b;return e}g["default"]=a}),98);
__d("useMWChatOpenTabForUser",["FBLogger","MWChatEncryptedBackupsUpsellChatTabVisibilityContext","emptyFunction","react","react-compiler-runtime","useMWBaseChatOpenTabForUser"],(function(a,b,c,d,e,f,g){"use strict";var h;(h||d("react")).useMemo;function a(a,b){var e=d("react-compiler-runtime").c(16),f;e[0]!==b?(f={},b!=null&&(f.preventAutofocus=b.preventAutofocus_DO_NOT_USE),e[0]=b,e[1]=f):f=e[1];b=c("useMWBaseChatOpenTabForUser")(f.preventAutofocus,a);var g=b.openTabByThreadKey,h=b.openTabForUser,i=b.preloadThread;f=d("MWChatEncryptedBackupsUpsellChatTabVisibilityContext").useMWChatEncryptedBackupsUpsellChatTabEnabled();a=f[0];b=d("MWChatEncryptedBackupsUpsellChatTabVisibilityContext").useMWChatEncryptedBackupsUpsellChatTabOpen();f=b[0];var j=b[1];bb0:{if(a&&!f){e[2]!==j?(b={openTabByThreadKey:function(){return j(!0)},openTabForUser:function(){return j(!0)},openTabForUserWithoutPreloadedNavigationData:function(){return j(!0)},preloadThread:c("emptyFunction")},e[2]=j,e[3]=b):b=e[3];a=b;break bb0}e[4]!==g?(f=function(a,b){return g(a,(a=b)!=null?a:!1)},e[4]=g,e[5]=f):f=e[5];var k;e[6]!==h?(b=function(a){var b=a.preloadedNavigationData,c=a.reason;a=a.userId;h({preloadedNavigationData:babelHelpers["extends"]({},b),reason:"useMWChatOpenTabForUser: "+((b=c)!=null?b:"unknown"),userId:a})},k=function(a){var b=a.isSecureThread,d=a.reason,e=a.unpreloadedReason;a=a.userId;c("FBLogger")("useMWChatOpenTabForUser").info("Chat tab opened without preloaded navigation data. Reason: %s",e);h({preloadedNavigationData:{isSecureThread:b===!0},reason:"useMWChatOpenTabForUser: "+((e=d)!=null?e:"unknown"),userId:a})},e[6]=h,e[7]=b,e[8]=k):(b=e[7],k=e[8]);var l;e[9]!==i?(l=function(a){var b=a.preloadedNavigationData,c=a.reason;a=a.userId;return void i({preloadedNavigationData:babelHelpers["extends"]({},b),reason:c,userId:a})},e[9]=i,e[10]=l):l=e[10];var m;e[11]!==f||e[12]!==b||e[13]!==k||e[14]!==l?(m={openTabByThreadKey:f,openTabForUser:b,openTabForUserWithoutPreloadedNavigationData:k,preloadThread:l},e[11]=f,e[12]=b,e[13]=k,e[14]=l,e[15]=m):m=e[15];a=m}return a}g["default"]=a}),98);
__d("useUserThreadNavigationData_inline_user.graphql",[],(function(a,b,c,d,e,f){"use strict";a={kind:"InlineDataFragment",name:"useUserThreadNavigationData_inline_user"};e.exports=a}),null);
__d("useUserThreadNavigationData_user.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"useUserThreadNavigationData_user",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",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}],type:"User",abstractKey:null};e.exports=a}),null);
__d("useUserThreadNavigationData",["CometRelay","cr:4866","react-compiler-runtime","useEmptyFunction","useUserThreadNavigationData_inline_user.graphql","useUserThreadNavigationData_user.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j;j=(j=b("cr:4866"))!=null?j:{useUpdateContactServerDefaultE2eeOneToOneCapabilityCache:c("useEmptyFunction")};var k=j.useUpdateContactServerDefaultE2eeOneToOneCapabilityCache;c=h!==void 0?h:h=b("useUserThreadNavigationData_inline_user.graphql");function a(a,b){b.is_secure_thread!=null&&a.setValue(b.is_secure_thread,"is_secure_thread"),b.message_capabilities2_str!=null&&a.setValue(b.message_capabilities2_str,"message_capabilities2_str"),b.is_od_cutover_eligible!=null&&a.setValue(b.is_od_cutover_eligible,"is_od_cutover_eligible")}function e(a){if(a==null)return!1;var b=a.getValue("is_secure_thread"),c=a.getValue("message_capabilities2_str");a=a.getValue("is_od_cutover_eligible");return b!==void 0&&c!==void 0&&a!==void 0}function f(a){var c=d("react-compiler-runtime").c(7);a=d("CometRelay").useFragment(i!==void 0?i:i=b("useUserThreadNavigationData_user.graphql"),a);var e=(a==null?void 0:a.is_secure_thread)===!0,f=a==null?void 0:a.id,g=a==null?void 0:a.message_capabilities2_str,h;c[0]!==f||c[1]!==g?(h={contactId:f,serverContactCapabilities2:g},c[0]=f,c[1]=g,c[2]=h):h=c[2];k(h);g=(f=a==null?void 0:a.message_capabilities2_str)!=null?f:"0";h=(a==null?void 0:a.is_od_cutover_eligible)===!0;c[3]!==e||c[4]!==g||c[5]!==h?(f={contactCapabilities2:g,isOdCutoverEligible:h,isSecureThread:e},c[3]=e,c[4]=g,c[5]=h,c[6]=f):f=c[6];return f}g.USER_THREAD_DATA_INLINE_FRAGMENT=c;g.updateWithInlineData=a;g.contactRecordHasNavigationData=e;g.useUserThreadNavigationData=f}),98);
//# sourceURL=https://static.xx.fbcdn.net/rsrc.php/v4/yO/r/IjP2PS0gz2V.js
