;/*FB_PKG_DELIM*/

__d("CometRecommendationsUnitCard.react",["fbt","ix","ActorHovercard.react","CometBackgroundImage.react","CometCard.react","CometColumn.react","CometColumnItem.react","CometImage.react","CometLink.react","FDSAspectRatioContainer.react","FDSTextPairing.react","TetraButton.react","TetraCircleButton.react","fbicon","react","useVisibilityObserver"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react"));b=j;var l=b.useCallback,m=b.useRef,n={contentColumn:{maxWidth:"x193iq5w",$$css:!0},contentRowShort:{height:"x5kalc8",$$css:!0},contentRowStandard:{height:"x1peatla",$$css:!0},contentRowTall:{height:"xsi6dy0",$$css:!0},image:{height:"x5yr21d",objectFit:"xl1xv1r",width:"xh8yej3",$$css:!0},imageLink:{bottom:"x1ey2m1c",boxSizing:"x9f619",display:"x1lliihq",end:"xds687c",left:null,right:null,position:"x10l6tqk",start:"x17qophe",top:"x13vifvy",$$css:!0}};e=k.forwardRef(a);function a(a,b){var e=a.accessibilityLabel,f=a.actorID,g=a.badge,j=a.body,o=a.cardAction,p=a.cardContentHeightLevel,q=a.cardContext;q=q===void 0?null:q;var r=a.cardFooter;r=r===void 0?null:r;var s=a.dropShadow;s=s===void 0?2:s;var t=a.headline,u=a.imageAlt,v=a.imageAspectRatio,w=a.imageSrc,x=a.isCardContextHidden;x=x===void 0?!1:x;var y=a.linkURI,z=a.meta,A=a.onClick,B=a.onHeadlineClick,C=a.onImageClick,D=a.onImpression,E=a.onRemove;a=a.testid;var F=m(!1);a=l(function(){if(f==null)return;F.current||(D&&D(),F.current=!0)},[f,D]);a=c("useVisibilityObserver")({onVisible:a});var G=function(){A&&A(),C&&C()},H=function(){A&&A(),B&&B()};return k.jsx("div",{className:"xh8yej3","data-testid":void 0,ref:a,children:k.jsx(c("CometCard.react"),{background:"white",border:"solid",dropShadow:s,ref:b,children:k.jsxs("div",{className:"x78zum5",children:[k.jsxs(c("CometColumn.react"),{expanding:!0,paddingTop:0,paddingVertical:12,spacing:12,xstyle:n.contentColumn,children:[k.jsx(c("CometColumnItem.react"),{children:v==null?k.jsxs("div",{className:"x1vrad04 x1n2onr6 xh8yej3",children:[k.jsx(c("CometLink.react"),{"aria-hidden":e==null,"aria-label":e,href:y,onClick:G,xstyle:n.imageLink,children:k.jsx(c("CometImage.react"),{alt:u,src:w,xstyle:n.image})}),k.jsx("div",{className:"x1ey2m1c xlg9a9y xjm9jq1 x10l6tqk xh8yej3"})]}):k.jsx(c("CometLink.react"),{href:y,onClick:G,children:k.jsx(c("FDSAspectRatioContainer.react"),{aspectRatio:v,children:k.jsx(c("CometBackgroundImage.react"),{alt:u,src:w})})})}),k.jsx(c("CometColumnItem.react"),{paddingHorizontal:12,xstyle:[p===0&&n.contentRowShort,p===1&&n.contentRowStandard,p===2&&n.contentRowTall],children:k.jsx(c("FDSTextPairing.react"),{body:j,bodyColor:"secondary",headline:k.jsx(c("ActorHovercard.react"),{actorID:f,children:function(a){return k.jsxs(k.Fragment,{children:[k.jsx(c("CometLink.react"),{"aria-hidden":!1,href:y,onClick:H,ref:a,children:t}),g]})}}),headlineLineLimit:p==null?1:2,level:3,meta:z})}),!x&&k.jsx(c("CometColumnItem.react"),{paddingHorizontal:12,children:k.jsx("div",{className:"x6s0dn4 x78zum5 xlup9mm xh8yej3",children:q})}),o!=null&&k.jsx(c("CometColumnItem.react"),{expanding:!0,paddingHorizontal:12,verticalAlign:"bottom",children:k.jsx(c("TetraButton.react"),babelHelpers["extends"]({},o,{reduceEmphasis:(a=o.reduceEmphasis)!=null?a:!0}))}),r&&k.jsx(c("CometColumnItem.react"),{paddingHorizontal:12,children:r})]}),E!=null?k.jsx("div",{className:"x1k3u6ij x10l6tqk x1tk7jg1",children:k.jsx(c("TetraCircleButton.react"),{icon:d("fbicon")._(i("478233"),20),label:h._("__JHASH__tnRfHlva-bL__JHASH__"),onPress:E,size:32,testid:void 0,type:"dark-overlay"})}):null]})})})}a.displayName=a.name+" [from "+f.id+"]";b=e;g["default"]=b}),226);
__d("FriendingCometManageFriendsDialogQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="4492728260832692"}),null);
__d("FriendingCometManageFriendsDialogQuery$Parameters",["FriendingCometManageFriendsDialogQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("FriendingCometManageFriendsDialogQuery_facebookRelayOperation"),metadata:{},name:"FriendingCometManageFriendsDialogQuery",operationKind:"query",text:null}};e.exports=a}),null);
__d("FriendingCometManageFriendsDialog.entrypoint",["FriendingCometManageFriendsDialogQuery$Parameters","JSResourceForInteraction","WebPixelRatio"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(){return{queries:{queryReference:{parameters:b("FriendingCometManageFriendsDialogQuery$Parameters"),variables:{scale:d("WebPixelRatio").get()}}}}},root:c("JSResourceForInteraction")("FriendingCometManageFriendsDialog.react").__setRef("FriendingCometManageFriendsDialog.entrypoint")};g["default"]=a}),98);
__d("FriendingCometProactiveFriendingAlertImpressionUpdateMutation_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="4776188739159440"}),null);
__d("FriendingCometProactiveFriendingAlertImpressionUpdateMutation.graphql",["FriendingCometProactiveFriendingAlertImpressionUpdateMutation_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"ProactiveFriendingAlertImpressionUpdateResponsePayload",kind:"LinkedField",name:"proactive_friending_alert_impression_update",plural:!1,selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"FriendingCometProactiveFriendingAlertImpressionUpdateMutation",selections:c,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"FriendingCometProactiveFriendingAlertImpressionUpdateMutation",selections:c},params:{id:b("FriendingCometProactiveFriendingAlertImpressionUpdateMutation_facebookRelayOperation"),metadata:{},name:"FriendingCometProactiveFriendingAlertImpressionUpdateMutation",operationKind:"mutation",text:null}}}();e.exports=a}),null);
__d("FriendingCometProactiveFriendingAlertImpressionUpdateMutation",["CometRelay","FriendingCometProactiveFriendingAlertImpressionUpdateMutation.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("FriendingCometProactiveFriendingAlertImpressionUpdateMutation.graphql");function a(a,b,c){return d("CometRelay").commitMutation(a,{mutation:i,onError:c,variables:{input:b}})}g.commit=a}),98);
__d("ManageFriendsEntryPointClickFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1743888");b=d("FalcoLoggerInternal").create("manage_friends_entry_point_click",a);e=b;g["default"]=e}),98);
__d("ManageFriendsEntryPointDismissalFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1743889");b=d("FalcoLoggerInternal").create("manage_friends_entry_point_dismissal",a);e=b;g["default"]=e}),98);
__d("ManageFriendsEntryPointImpressionFalcoEvent",["FalcoLoggerInternal","getFalcoLogPolicy_DO_NOT_USE"],(function(a,b,c,d,e,f,g){"use strict";a=c("getFalcoLogPolicy_DO_NOT_USE")("1743890");b=d("FalcoLoggerInternal").create("manage_friends_entry_point_impression",a);e=b;g["default"]=e}),98);
__d("FriendingCometFriendLimitWarning.react",["fbt","ix","CometCard.react","CometRelay","FDSTextPairing.react","FriendingCometManageFriendsDialog.entrypoint","FriendingCometProactiveFriendingAlertImpressionUpdateMutation","ManageFriendsEntryPointClickFalcoEvent","ManageFriendsEntryPointDismissalFalcoEvent","ManageFriendsEntryPointImpressionFalcoEvent","TetraButton.react","TetraCircleButton.react","TetraIcon.react","fbicon","react","useCometEntryPointDialog","useVisibilityObserver"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react"));b=j;b.useCallback;var l=b.useRef,m=b.c;function a(){var a=m(29),b=d("CometRelay").useRelayEnvironment(),e;a[0]===Symbol["for"]("react.memo_cache_sentinel")?(e={},a[0]=e):e=a[0];e=c("useCometEntryPointDialog")(c("FriendingCometManageFriendsDialog.entrypoint"),e);var f=e[0],g=l(!1);a[1]!==b?(e=function(){g.current||(d("FriendingCometProactiveFriendingAlertImpressionUpdateMutation").commit(b,{}),c("ManageFriendsEntryPointImpressionFalcoEvent").log(function(){return{entry_point:"proactive_module"}}),g.current=!0)},a[1]=b,a[2]=e):e=a[2];e=e;var j;a[3]!==e?(j={onVisible:e},a[3]=e,a[4]=j):j=a[4];e=c("useVisibilityObserver")(j);var n;a[5]===Symbol["for"]("react.memo_cache_sentinel")?(j="x5yr21d",n="x6s0dn4 x1wbbese x14yjl9h xudhj91 x18nykt9 xww2gxu x972fbf xcfux6l x1qhh985 xm0m39n x9f619 x78zum5 x1fgtraw xl56j7k xexx8yu x4uap5 x18d9i69 xkhd6sd x1n2onr6 xgd8bvy",a[5]=j,a[6]=n):(j=a[5],n=a[6]);a[7]===Symbol["for"]("react.memo_cache_sentinel")?(j=k.jsx("div",{className:j,children:k.jsx("div",{className:n,children:k.jsx(c("TetraIcon.react"),{color:"white",icon:d("fbicon")._(i("502061"),16)})})}),a[7]=j):j=a[7];n=j;a[8]===Symbol["for"]("react.memo_cache_sentinel")?(j="x1iyjqo2 x1fqp7bg x1emribx x1i64zmx x1ok221b",a[8]=j):j=a[8];a[9]===Symbol["for"]("react.memo_cache_sentinel")?(j=k.jsx("div",{className:j,children:k.jsx(c("FDSTextPairing.react"),{body:h._("__JHASH__sAaqZqNPSPl__JHASH__"),headline:h._("__JHASH__ZYFUoP7rPid__JHASH__"),level:3})}),a[9]=j):j=a[9];j=j;var o;a[10]===Symbol["for"]("react.memo_cache_sentinel")?(o="x5yr21d",a[10]=o):o=a[10];var p,q;a[11]===Symbol["for"]("react.memo_cache_sentinel")?(p=d("fbicon")._(i("478238"),20),q=h._("__JHASH__tka7rMJuL69__JHASH__"),a[11]=p,a[12]=q):(p=a[11],q=a[12]);a[13]!==b?(o=k.jsx("div",{className:o,children:k.jsx(c("TetraCircleButton.react"),{color:"secondary",icon:p,label:q,onPress:function(){d("CometRelay").commitLocalUpdate(b,function(a){a=a.get(d("CometRelay").VIEWER_ID);a==null?void 0:a.setValue(!1,"should_show_proactive_friending_alert")}),c("ManageFriendsEntryPointDismissalFalcoEvent").log(function(){return{entry_point:"proactive_module"}})},size:32})}),a[13]=b,a[14]=o):o=a[14];p=o;a[15]===Symbol["for"]("react.memo_cache_sentinel")?(q=h._("__JHASH__WZrupv7wVsU__JHASH__"),a[15]=q):q=a[15];a[16]!==f?(o=k.jsx(c("TetraButton.react"),{label:q,onPress:function(){f({}),c("ManageFriendsEntryPointClickFalcoEvent").log(function(){return{entry_point:"proactive_module"}})},padding:"wide",type:"secondary"}),a[16]=f,a[17]=o):o=a[17];q=o;a[18]===Symbol["for"]("react.memo_cache_sentinel")?(o="xod5an3 xktsk01 x1d52u69 x1sy10c2",a[18]=o):o=a[18];var r,s;a[19]===Symbol["for"]("react.memo_cache_sentinel")?(r="xqy66fx x14uny0o xr1496l xvpee5o",s="x78zum5",a[19]=r,a[20]=s):(r=a[19],s=a[20]);a[21]!==p?(s=k.jsxs("div",{className:s,children:[n,j,p]}),a[21]=p,a[22]=s):s=a[22];a[23]!==s||a[24]!==q?(n=k.jsx(c("CometCard.react"),{dropShadow:2,children:k.jsxs("div",{className:r,children:[s,q]})}),a[23]=s,a[24]=q,a[25]=n):n=a[25];a[26]!==e||a[27]!==n?(j=k.jsx("div",{className:o,ref:e,children:n}),a[26]=e,a[27]=n,a[28]=j):j=a[28];return j}g["default"]=a}),226);
__d("FriendingCometPYMKCard_user.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[{kind:"RootArgument",name:"scale"},{defaultValue:230,kind:"LocalArgument",name:"size"}],kind:"Fragment",metadata:null,name:"FriendingCometPYMKCard_user",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"friendship_status",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},{alias:null,args:[{kind:"Variable",name:"height",variableName:"size"},{kind:"Variable",name:"scale",variableName:"scale"},{kind:"Variable",name:"width",variableName:"size"}],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,concreteType:"TextWithEntities",kind:"LinkedField",name:"social_context",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"text",storageKey:null}],storageKey:null},{args:[{kind:"Literal",name:"iconSize",value:16}],kind:"FragmentSpread",name:"FriendingCometMutualFriendsSocialContext_user"}],type:"User",abstractKey:null};e.exports=a}),null);
__d("FriendingCometPYMKCard.react",["fbt","ix","CometRecommendationsUnitCard.react","CometRelay","FriendingCometErrorHandler.react","FriendingCometFriendRequestCancelMutation","FriendingCometFriendRequestSendMutation","FriendingCometMutualFriendsSocialContext.react","FriendingCometPYMKCard_user.graphql","FriendingCometTestIDHelper","TetraButton.react","TetraText.react","fbicon","react","useMinifiedProductAttribution"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react"));e=k;var m=e.useCallback,n=e.useRef;function a(a){var e=d("CometRelay").useFragment(j!==void 0?j:j=b("FriendingCometPYMKCard_user.graphql"),a.user),f=a.dropShadow;f=f===void 0?2:f;var g=a.friendingChannel,k=a.hasButtonIcons;k=k===void 0?!0:k;var o=a.hasRemoveTextButton;o=o===void 0?!1:o;var p=a.logAddFriend,q=a.logClick,r=a.logImpression,s=a.onRemove,t=a.profileURI,u=a.pymkLocation;a=e.friendship_status;var v=e.id,w=e.name,x=e.profile_picture;x=x==null?void 0:x.uri;var y=d("CometRelay").useRelayEnvironment(),z=n(!1),A=n(a),B=A.current!==a;B&&(A.current=a);var C=d("FriendingCometErrorHandler.react").useFriendingErrorHandler({addFriendId:(A=v)!=null?A:"0",friendingChannel:g}),D=c("useMinifiedProductAttribution")();A=m(function(){v!=null&&(d("FriendingCometFriendRequestSendMutation").commit({environment:y,friendingChannel:g,navigationChain:D,onError:C,pymkLocation:u,receiverID:v}),p!=null&&p())},[g,y,C,v,p,D,u]);var E=m(function(){v!=null&&(z.current=!0,d("FriendingCometFriendRequestCancelMutation").commit({environment:y,friendingChannel:g,navigationChain:D,onError:C,receiverID:v}))},[g,y,C,v,D]);if(v==null||x==null||w==null)return null;var F=void 0,G=null,H=null;switch(a){case"CAN_REQUEST":F={icon:k?d("fbicon")._(i("497883"),16):null,label:h._("__JHASH__mUKWwrmibKJ__JHASH__"),onPress:A,testid:"add_button"};G=o?l.jsx("div",{className:"xh8yej3 xifccgj",children:l.jsx(c("TetraButton.react"),{icon:k?d("fbicon")._(i("664704"),16):null,label:h._("__JHASH__NBfMiFm79R7__JHASH__"),onPress:s,testid:void 0,type:"secondary"})}):null;H=z.current?h._("__JHASH__MJNiftGCp6X__JHASH__"):null;break;case"OUTGOING_REQUEST":F=o?void 0:{icon:k?d("fbicon")._(i("664704"),16):null,label:h._("__JHASH__USkLBq6Dqcv__JHASH__"),onPress:E,reduceEmphasis:!1,testid:"cancel_request_button",type:"secondary"};G=o?l.jsxs("div",{className:"x78zum5 xdt5ytf xh8yej3",children:[l.jsx("div",{className:"xh8yej3 xsdox4t"}),l.jsx("div",{className:"xh8yej3 xifccgj",children:l.jsx(c("TetraButton.react"),{icon:k?d("fbicon")._(i("664704"),16):null,label:h._("__JHASH__USkLBq6Dqcv__JHASH__"),onPress:E,testid:void 0,type:"secondary"})})]}):null;H=h._("__JHASH__TEOr0XFFOKy__JHASH__");break}a=null;if(B&&H!=null)a=l.jsx(c("TetraText.react"),{color:"secondary",numberOfLines:1,type:"body3",children:H});else{E=(k=(A=e.social_context)==null?void 0:A.text)!=null?k:"";a=E!==""?l.jsx(c("FriendingCometMutualFriendsSocialContext.react"),{iconSize:16,socialContextText:E,textType:"body3",truncateContextText:!0,user:e}):null}z.current=!1;return l.jsx(c("CometRecommendationsUnitCard.react"),{actorID:v,cardAction:F,cardContext:a,cardFooter:G,dropShadow:f,headline:w,imageAlt:w!==""?h._("__JHASH__fFxebUIHbMc__JHASH__",[h._param("name",w)]):h._("__JHASH__YYtsNPwzoFr__JHASH__"),imageSrc:x,linkURI:t,onClick:q,onImpression:r,onRemove:o?void 0:s,testid:void 0})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
__d("FriendingFDSHScrollGlimmerCard.react",["CometCard.react","FDSGlimmer.react","react","useVisibilityObserver"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||(h=d("react"))).c,j=h,k={contextGlimmer:{borderTopStartRadius:"x12myldv",borderTopEndRadius:"x1udsgas",borderBottomEndRadius:"xrc8dwe",borderBottomStartRadius:"xxxhv2y",height:"x1kpxq89",marginTop:"x1anpbxc",width:"x3hqpx7",$$css:!0},imageGlimmer:{bottom:"x1ey2m1c",boxSizing:"x9f619",end:"xds687c",left:null,right:null,position:"x10l6tqk",start:"x17qophe",top:"x13vifvy",$$css:!0},nameGlimmer:{borderTopStartRadius:"x12myldv",borderTopEndRadius:"x1udsgas",borderBottomEndRadius:"xrc8dwe",borderBottomStartRadius:"xxxhv2y",height:"x1v9usgg",marginTop:"xr9ek0c",width:"x65xoit",$$css:!0}};function a(a){var b=i(7);a=a.onVisible;var d;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(d={rootMargin:200},b[0]=d):d=b[0];b[1]!==a?(d={onVisible:a,options:d},b[1]=a,b[2]=d):d=b[2];a=c("useVisibilityObserver")(d);b[3]===Symbol["for"]("react.memo_cache_sentinel")?(d="x78zum5 x5yr21d xh8yej3",b[3]=d):d=b[3];var e;b[4]===Symbol["for"]("react.memo_cache_sentinel")?(e=j.jsxs(c("CometCard.react"),{background:"white",border:"solid",dropShadow:1,children:[j.jsx("div",{className:"x1vrad04 xh8yej3",children:j.jsx(c("FDSGlimmer.react"),{index:0,xstyle:k.imageGlimmer})}),j.jsxs("div",{className:"xk4dd5j xz9dl7a xn6708d xsag5q8 x1ye3gou",children:[j.jsx(c("FDSGlimmer.react"),{index:0,xstyle:k.nameGlimmer}),j.jsx(c("FDSGlimmer.react"),{index:0,xstyle:k.contextGlimmer})]})]}),b[4]=e):e=b[4];b[5]!==a?(d=j.jsx("div",{className:d,ref:a,children:e}),b[5]=a,b[6]=d):d=b[6];return d}g["default"]=a}),98);