;/*FB_PKG_DELIM*/

__d("CometProfileListDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="8317894541563306"}),null);
__d("CometProfileListDialogQuery$Parameters",["CometProfileListDialogQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("CometProfileListDialogQuery_facebookRelayOperation"),metadata:{},name:"CometProfileListDialogQuery",operationKind:"query",text:null}};e.exports=a}),null);
__d("CometProfileListDialog.entrypoint",["CometProfileListDialogQuery$Parameters","JSResourceForInteraction","WebPixelRatio"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){var c=a.listType;a=a.sourceID;return{queries:{cometMutualFriendsQueryReference:{parameters:b("CometProfileListDialogQuery$Parameters"),variables:{listType:c,scale:d("WebPixelRatio").get(),sourceID:a}}}}},root:c("JSResourceForInteraction")("CometProfileListDialog.react").__setRef("CometProfileListDialog.entrypoint")};g["default"]=a}),98);
__d("FriendRequestError",[],(function(a,b,c,d,e,f){"use strict";a=Object.freeze({SELF_OVER_FRIEND_LIMIT:1431006,SELF_OVER_FRIEND_LIMIT_SUBSCRIBED:1431016,SIGMA_WARN:1407026});f["default"]=a}),66);
__d("FriendingCometErrorHandler.react",["fbt","CometRelayErrorHandling","FriendRequestError","JSResourceForInteraction","SilenceableErrorMessageUtils","cometPushToast","react","useCometLazyDialog"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=(i||d("react")).useCallback,k=c("JSResourceForInteraction")("FriendingCometErrorDialog.react").__setRef("FriendingCometErrorHandler.react");function a(a){var b=c("useCometLazyDialog")(k),e=b[0],f=j(function(b){var g=d("SilenceableErrorMessageUtils").getMetadataFromError(b);if(d("SilenceableErrorMessageUtils").shouldHideErrorMessage(g))return;b.name==="NetworkTransportError"?d("cometPushToast").cometPushErrorToast({message:h._("__JHASH__J83gzDrVB2V__JHASH__")},5e3):(b.code===c("FriendRequestError").SELF_OVER_FRIEND_LIMIT||b.code===c("FriendRequestError").SELF_OVER_FRIEND_LIMIT_SUBSCRIBED||b.code===c("FriendRequestError").SIGMA_WARN)&&(d("CometRelayErrorHandling").markErrorAsHandled(b),e({addFriendErrorHandler:f,addFriendId:a.addFriendId,error:b,friendingChannel:a.friendingChannel}))},[a.addFriendId,a.friendingChannel,e]);return f}g.useFriendingErrorHandler=a}),226);
__d("FriendingCometFriendRequestSendMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7607575099364225"}),null);
__d("FriendingCometFriendRequestSendMutation.graphql",["FriendingCometFriendRequestSendMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"},{defaultValue:null,kind:"LocalArgument",name:"scale"}],c=[{kind:"Variable",name:"data",variableName:"input"}],d={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"friendship_status",storageKey:null},f=[{kind:"Literal",name:"action_type",value:"FRIEND"},{kind:"Literal",name:"render_location",value:"WWW_COMET_PROFILE"}],g={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"FriendingCometFriendRequestSendMutation",selections:[{alias:null,args:c,concreteType:"FriendRequestSendResponsePayload",kind:"LinkedField",name:"friend_request_send",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"friend_requestees",plural:!0,selections:[d,e,{alias:null,args:f,concreteType:null,kind:"LinkedField",name:"profile_action",plural:!1,selections:[{args:null,kind:"FragmentSpread",name:"ProfileActionMutationUtils_action"}],storageKey:'profile_action(action_type:"FRIEND",render_location:"WWW_COMET_PROFILE")'},{args:null,kind:"FragmentSpread",name:"ProfileCometTimelineTabTopBanner_user"}],storageKey:null}],storageKey:null}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"FriendingCometFriendRequestSendMutation",selections:[{alias:null,args:c,concreteType:"FriendRequestSendResponsePayload",kind:"LinkedField",name:"friend_request_send",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"friend_requestees",plural:!0,selections:[d,e,{alias:null,args:f,concreteType:null,kind:"LinkedField",name:"profile_action",plural:!1,selections:[g,{kind:"TypeDiscriminator",abstractKey:"__isProfileAction"},{alias:null,args:[{kind:"Literal",name:"icon_color",value:"fds-black"},{kind:"Literal",name:"icon_size",value:"16"},{kind:"Literal",name:"icon_variant",value:"filled"},{kind:"Variable",name:"scale",variableName:"scale"}],concreteType:"Image",kind:"LinkedField",name:"icon_image",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"height",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"scale",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"width",storageKey:null}],storageKey:null},d,{alias:null,args:null,concreteType:"TextWithEntities",kind:"LinkedField",name:"title",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null}],storageKey:null},{kind:"ClientExtension",selections:[{alias:null,args:null,kind:"ScalarField",name:"is_optimistic_update",storageKey:null}]}],storageKey:'profile_action(action_type:"FRIEND",render_location:"WWW_COMET_PROFILE")'},{alias:null,args:[{kind:"Literal",name:"render_location",value:"TIMELINE_TAB_TOP"},{kind:"Literal",name:"supported",value:"10EN4t"}],concreteType:null,kind:"LinkedField",name:"comet_profile_banner",plural:!1,selections:[g,{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTimelineTabTopBanner_user",fragmentName:"ProfilePlusCometAdminNotice_cometProfileBanner",fragmentPropName:"cometProfileBanner",kind:"ModuleImport"}],type:"ProfilePlusAdminNoticeRenderer",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTimelineTabTopBanner_user",fragmentName:"ProfileCometTransparencyInformBanner_cometProfileBanner",fragmentPropName:"cometProfileBanner",kind:"ModuleImport"}],type:"TransparencyInformContent",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTimelineTabTopBanner_user",fragmentName:"ProfileCometAppealBanner_cometProfileBanner",fragmentPropName:"cometProfileBanner",kind:"ModuleImport"}],type:"ProfileAppealBanner",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTimelineTabTopBanner_user",fragmentName:"ProfileCometBannerGeneric_cometProfileBanner",fragmentPropName:"cometProfileBanner",kind:"ModuleImport"}],type:"ProfileBanner",abstractKey:null},{kind:"InlineFragment",selections:[{args:null,documentName:"ProfileCometTimelineTabTopBanner_user",fragmentName:"FriendingCometProfilePYMKHScroll_cometProfileBanner",fragmentPropName:"cometProfileBanner",kind:"ModuleImport"}],type:"ProfilePYMKBanner",abstractKey:null},{kind:"InlineFragment",selections:[d],type:"Node",abstractKey:"__isNode"}],storageKey:'comet_profile_banner(render_location:"TIMELINE_TAB_TOP",supported:"10EN4t")'}],storageKey:null}],storageKey:null}]},params:{id:b("FriendingCometFriendRequestSendMutation_facebookRelayOperation"),metadata:{},name:"FriendingCometFriendRequestSendMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
__d("ProfileActionFriendingMutationUtils",["fbt","ProfileActionMutationUtils","WebPixelRatio"],(function(a,b,c,d,e,f,g,h){"use strict";function a(a,b){var c="";switch(a){case"ARE_FRIENDS":c=h._("__JHASH__kIlAncPZYc2__JHASH__").toString();break;case"CAN_REQUEST":c=h._("__JHASH__g_bR-tXaMso__JHASH__").toString();break;case"INCOMING_REQUEST":c=h._("__JHASH__2MCmiN_h7kP__JHASH__").toString();break;case"OUTGOING_REQUEST":c=h._("__JHASH__UNPMiVpVS7t__JHASH__").toString();break}return{__typename:"ProfileActionFriendRequest",icon_image:{height:16*d("WebPixelRatio").get(),scale:d("WebPixelRatio").get(),uri:null,width:16*d("WebPixelRatio").get()},id:d("ProfileActionMutationUtils").getProfileActionID(b,1),is_optimistic_update:!0,title:{text:c}}}g.getOptimisticActionForFriendshipStatus=a}),226);
__d("FriendingCometFriendRequestSendMutation",["CometRelay","FriendingCometFriendRequestSendMutation.graphql","ProfileActionFriendingMutationUtils","WebPixelRatio"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("FriendingCometFriendRequestSendMutation.graphql");function a(a){var b=a.acknowledgeWarn,c=a.environment,e=a.extraAttributionData,f=a.friendingChannel,g=a.navigationChain,h=a.onError,j=a.pymkLocation;a=a.receiverID;return d("CometRelay").commitMutation(c,{mutation:i,onError:h,optimisticResponse:{friend_request_send:{friend_requestees:[{comet_profile_banner:null,friendship_status:"OUTGOING_REQUEST",id:a,profile_action:d("ProfileActionFriendingMutationUtils").getOptimisticActionForFriendshipStatus("OUTGOING_REQUEST",a)}]}},variables:{input:{attribution_id_v2:g,extra_data:e,friend_requestee_ids:[a],friending_channel:f,people_you_may_know_location:j,warn_ack_for_ids:b===!0?[a]:[]},scale:d("WebPixelRatio").get()}})}g.commit=a}),98);
__d("ProfileCometActionFriendRequestHandler_handler.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"friendship_status",storageKey:null}];return{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProfileCometActionFriendRequestHandler_handler",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"profile_action",plural:!1,selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"restrictable_profile_owner",plural:!1,selections:[{kind:"InlineFragment",selections:a,type:"User",abstractKey:null},{kind:"InlineFragment",selections:a,type:"RestrictedUser",abstractKey:null}],storageKey:null}],type:"ProfileActionFriendRequest",abstractKey:null},{args:null,kind:"FragmentSpread",name:"ProfileCometActiveFriendMenu_action"},{args:null,kind:"FragmentSpread",name:"ProfileCometIncomingFriendRequestMenu_action"}],storageKey:null}],type:"ProfileActionFriendRequestHandler",abstractKey:null}}();e.exports=a}),null);
__d("RecommendationsUnitContainerQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="7990905520930465"}),null);
__d("RecommendationsUnitContainerQuery$Parameters",["RecommendationsUnitContainerQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("RecommendationsUnitContainerQuery_facebookRelayOperation"),metadata:{},name:"RecommendationsUnitContainerQuery",operationKind:"query",text:null}};e.exports=a}),null);
__d("RecommendationsUnit.entrypoint",["JSResourceForInteraction","RecommendationsUnitContainerQuery$Parameters","WebPixelRatio"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){var b=a.parentID;a=a.renderLocation;return{queries:{queryReference:{parameters:c("RecommendationsUnitContainerQuery$Parameters"),variables:{parentID:b,renderLocation:a,scale:d("WebPixelRatio").get()}}}}},root:c("JSResourceForInteraction")("RecommendationsUnitContainer.react").__setRef("RecommendationsUnit.entrypoint")};b=a;g["default"]=b}),98);
__d("RecommendationsUnitContext_recommendationUnitFragmentRef.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"RecommendationsUnitContext_recommendationUnitFragmentRef",selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"if_viewer_can_see_pymk_unit_on_initial_load",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null}],type:"XFBProfileEntityConvergenceHeaderRenderer",abstractKey:null};e.exports=a}),null);
__d("RecommendationsUnitCardGlimmer.react",["CometCard.react","CometColumn.react","CometColumnItem.react","FDSAspectRatioContainer.react","FDSGlimmer.react","react","useVisibilityObserver"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={buttonGlimmer:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",height:"xc9qbxq",$$css:!0},contentColumn:{maxWidth:"x193iq5w",$$css:!0},imageGlimmer:{height:"x5yr21d",width:"xh8yej3",$$css:!0},subtitleGlimmer:{borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",height:"xlup9mm",width:"x65xoit",$$css:!0},titleGlimmer:{borderTopStartRadius:"x1a2cdl4",borderTopEndRadius:"xnhgr82",borderBottomEndRadius:"x1qt0ttw",borderBottomStartRadius:"xgk8upj",height:"x1qx5ct2",width:"xktia5q",$$css:!0}},k=function(){};function a(a){var b=a.index;a=a.onVisible;a=a===void 0?k:a;a=c("useVisibilityObserver")({onVisible:a,options:{rootMargin:200}});return i.jsx("div",{className:"x78zum5 x1iyjqo2 x5yr21d",children:i.jsx(c("CometCard.react"),{background:"white",border:"solid",dropShadow:2,expanding:!0,ref:a,children:i.jsx("div",{className:"x78zum5 x5yr21d",children:i.jsxs(c("CometColumn.react"),{expanding:!0,spacing:16,xstyle:j.contentColumn,children:[i.jsx(c("CometColumnItem.react"),{children:i.jsx(c("FDSAspectRatioContainer.react"),{aspectRatio:1.5,children:i.jsx(c("FDSGlimmer.react"),{index:b,xstyle:j.imageGlimmer})})}),i.jsx(c("CometColumnItem.react"),{paddingHorizontal:16,children:i.jsx(c("FDSGlimmer.react"),{index:b,xstyle:j.titleGlimmer})}),i.jsx(c("CometColumnItem.react"),{expanding:!0,paddingHorizontal:16,children:i.jsx(c("FDSGlimmer.react"),{index:b,xstyle:j.subtitleGlimmer})}),i.jsx(c("CometColumnItem.react"),{paddingHorizontal:16,paddingVertical:16,verticalAlign:"bottom",children:i.jsx(c("FDSGlimmer.react"),{index:b,xstyle:j.buttonGlimmer})})]})})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("RecommendationsUnitGlimmer.react",["CometRow.react","CometRowItem.react","FDSGlimmer.react","FDSHScroll.react","RecommendationsUnitCardGlimmer.react","gkx","range","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={linkGlimmer:{borderTopStartRadius:"xyi19xy",borderTopEndRadius:"x1ccrb07",borderBottomEndRadius:"xtf3nb5",borderBottomStartRadius:"x1pc53ja",height:"x1qx5ct2",marginBottom:"x12nagc",width:"x1exxlbk",$$css:!0},titleGlimmer:{borderTopStartRadius:"xyi19xy",borderTopEndRadius:"x1ccrb07",borderBottomEndRadius:"xtf3nb5",borderBottomStartRadius:"x1pc53ja",height:"x1qx5ct2",width:"x1oysuqx",$$css:!0}},k=c("gkx")("23053")?196:150;function a(){var a=c("range")(0,5).map(function(a){return i.jsx(d("FDSHScroll.react").Child,{children:i.jsx(c("RecommendationsUnitCardGlimmer.react"),{index:a})},a)});return i.jsxs("div",{className:"xzg4506 xycxndf xua58t2 x4xrfw5 x1lq5wgf xgqcy7u x30kzoy x9jhf4c xev17xk x1xmf6yo xz9dl7a x1pi30zi xjkvuk6 x1swvt13",children:[i.jsxs(c("CometRow.react"),{paddingHorizontal:0,paddingTop:0,spacingVertical:0,children:[i.jsx(c("CometRowItem.react"),{children:i.jsx(c("FDSGlimmer.react"),{index:0,xstyle:j.titleGlimmer})}),i.jsx(c("CometRowItem.react"),{children:i.jsx(c("FDSGlimmer.react"),{index:0,xstyle:j.linkGlimmer})})]}),i.jsx(d("FDSHScroll.react").Container,{cardWidth:{minWidth:k,type:"responsive"},gap:8,children:a})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("RecommendationsUnitContext",["CometPlaceholder.react","CometRelay","RecommendationsUnit.entrypoint","RecommendationsUnitContext_recommendationUnitFragmentRef.graphql","RecommendationsUnitGlimmer.react","RelayHooks","react","useCometRelayEntrypointContextualEnvironmentProvider"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useMemo,l=e.useState;e=function(){};var m=function(){return!1},n=j.createContext({chainExpandRecommendationsUnit:m,isRecommendationsUnitExpanded:!1,parentID:null,recommendationsUnitEntryPointContainer:null,setIsRecommendationsUnitExpanded:e,shouldExpandOnInitialLoad:!1,toggleIsRecommendationsUnitExpanded:e});function a(a){var e=a.children,f=a.parentID,g=a.recommendationUnitFragmentRef,i=a.renderLocation;a=d("RelayHooks").useFragment(h!==void 0?h:h=b("RecommendationsUnitContext_recommendationUnitFragmentRef.graphql"),g);g=c("useCometRelayEntrypointContextualEnvironmentProvider")();g=d("CometRelay").useEntryPointLoader(g,c("RecommendationsUnit.entrypoint"));var m=g[0],o=g[1];a=(a==null?void 0:(g=a.user)==null?void 0:g.if_viewer_can_see_pymk_unit_on_initial_load)!=null;g=l(a);var p=g[0],q=g[1];g=l(m!=null||a);var r=g[0],s=g[1],t=k(function(){var a;return m!=null?j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("RecommendationsUnitGlimmer.react"),{}),children:j.jsx(d("CometRelay").EntryPointContainer,{entryPointReference:m,props:{isExpanded:(a=r)!=null?a:!1}})}):null},[r,m]);a=l(!1);var u=a[0],v=a[1];g=k(function(){return{chainExpandRecommendationsUnit:function(){if(!u&&!r){o({parentID:f,renderLocation:i});v(!0);s(!0);return!0}return!1},isRecommendationsUnitExpanded:r,parentID:f,recommendationsUnitEntryPointContainer:t,setIsRecommendationsUnitExpanded:function(a){a?(o({parentID:f,renderLocation:i}),v(!0),s(!0)):s(!1)},shouldExpandOnInitialLoad:p,toggleIsRecommendationsUnitExpanded:function(){o({parentID:f,renderLocation:i}),r||v(!0),p&&q(!1),s(function(a){return!a})}}},[r,t,u,o,f,i,p]);return j.jsx(n.Provider,{value:g,children:e})}a.displayName=a.name+" [from "+f.id+"]";g.noOpFunc=e;g.noOpBoolFunc=m;g.RecommendationsUnitContext=n;g.RecommendationsUnitContextProvider=a}),98);
__d("useRecommendationsUnitChaining",["RecommendationsUnitContext","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).useContext;function a(){var a=i(d("RecommendationsUnitContext").RecommendationsUnitContext),b=a.chainExpandRecommendationsUnit,c=a.parentID;return{chainExpandRecommendationsUnit:function(a){a=a.matchParentID;return a==null||a===c?b():!1}}}g["default"]=a}),98);
__d("ProfileCometActionFriendRequestHandler.react",["Actor","CometLazyPopoverTrigger.react","CometRelay","FDSHovercardGroupContext","FriendingCometErrorHandler.react","FriendingCometFriendRequestSendMutation","JSResourceForInteraction","ProfileCometActionFriendRequestHandler_handler.graphql","ProfileCometContextualProfileContext","promiseDone","react","recoverableViolation","useMinifiedProductAttribution","useProfileCometExplicitConnectionsEventLogger","useProfileCometExplicitConnectionsImpressionLogger","useRecommendationsUnitChaining"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));e=i;var k=e.useCallback,l=e.useContext,m=c("JSResourceForInteraction")("ProfileCometActiveFriendMenu.react").__setRef("ProfileCometActionFriendRequestHandler.react"),n=c("JSResourceForInteraction")("ProfileCometIncomingFriendRequestMenu.react").__setRef("ProfileCometActionFriendRequestHandler.react"),o=c("JSResourceForInteraction")("FriendingCometFriendRequestCancelMutation").__setRef("ProfileCometActionFriendRequestHandler.react");function a(a){var e,f,g=a.children,i=a.extraAttributionData,p=a.handler,q=a.popoverPosition;a=a.source;var r=d("CometRelay").useRelayEnvironment();p=d("CometRelay").useFragment(h!==void 0?h:h=b("ProfileCometActionFriendRequestHandler_handler.graphql"),p);p=p.profile_action;var s=(p==null?void 0:(e=p.restrictable_profile_owner)==null?void 0:e.id)||"0";s==="0"&&c("recoverableViolation")("Missing profile ID","profile_comet");e=c("useRecommendationsUnitChaining")();var t=e.chainExpandRecommendationsUnit,u;switch(a){case"WWW_COMET_HOVERCARD":u="HOVERCARD";break;case"WWW_COMET_PROFILE_FRIENDS_TAB":u="PROFILE_FRIENDS_TAB";break;default:u="PROFILE_BUTTON";break}var v=d("FriendingCometErrorHandler.react").useFriendingErrorHandler({addFriendId:s,friendingChannel:u}),w=c("useMinifiedProductAttribution")();e=l(c("ProfileCometContextualProfileContext"));e=e.groupID;var x=l(c("FDSHovercardGroupContext"));x=x.groupID;var y=(e=e||x)!=null?e:"";x=d("Actor").useActor();e=x[0];x=c("useProfileCometExplicitConnectionsImpressionLogger")(e,y,s,"EC_FRIEND_REQUEST_BUTTON_VIEWED","CONTEXTUAL_VIEW");var z=c("useProfileCometExplicitConnectionsEventLogger")(e,y,s);e=k(function(){y!==""&&z("EC_FRIEND_REQUEST_BUTTON_CLICKED","CONTEXTUAL_VIEW"),t({matchParentID:s}),d("FriendingCometFriendRequestSendMutation").commit({environment:r,extraAttributionData:i,friendingChannel:u,navigationChain:w,onError:v,receiverID:s})},[t,r,i,v,u,y,z,w,s]);var A=k(function(){c("promiseDone")(o.load().then(function(a){a=a.commit;a({environment:r,friendingChannel:"PROFILE_BUTTON",navigationChain:w,onError:v,receiverID:s})}))},[r,v,w,s]);f=p==null?void 0:(f=p.restrictable_profile_owner)==null?void 0:f.friendship_status;if(f==null){c("recoverableViolation")("Failed to fetch friendship status for profile "+s,"profile_comet");return null}var B=null;switch(f){case"ARE_FRIENDS":B=m;break;case"CAN_REQUEST":return g({onPress:e,ref:y!==""?x:function(){}});case"INCOMING_REQUEST":B=n;break;case"OUTGOING_REQUEST":return g({onPress:A});case"CANNOT_REQUEST":return null;default:c("recoverableViolation")("Unknown friendship status "+f+" for profile "+s,"profile_comet");return null}return!B||!p?g({}):j.jsx(c("CometLazyPopoverTrigger.react"),{popoverProps:{action:p,source:a},popoverResource:B,position:q,preloadTrigger:"button",children:function(a,b,c,d,e,f){return g({onHoverIn:d,onHoverOut:e,onPress:b,onPressIn:f,ref:a})}})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("ProfileCometActionFriendRequestHandler_handler$normalization.graphql",[],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},b={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},c={alias:null,args:null,kind:"ScalarField",name:"friendship_status",storageKey:null},d={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"short_name",storageKey:null},f=[b];return{kind:"SplitOperation",metadata:{},name:"ProfileCometActionFriendRequestHandler_handler$normalization",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"profile_action",plural:!1,selections:[a,{kind:"InlineFragment",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"restrictable_profile_owner",plural:!1,selections:[a,{kind:"InlineFragment",selections:[b,c,{alias:null,args:null,kind:"ScalarField",name:"gender",storageKey:null},d,e],type:"User",abstractKey:null},{kind:"InlineFragment",selections:[b,c,d,e],type:"RestrictedUser",abstractKey:null},{kind:"InlineFragment",selections:f,type:"Node",abstractKey:"__isNode"}],storageKey:null},{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"profile_owner",plural:!1,selections:f,storageKey:null}],type:"ProfileActionFriendRequest",abstractKey:null},b],storageKey:null}]}}();e.exports=a}),null);