;/*FB_PKG_DELIM*/

__d("CometFeedInlineComposerPressableProfilePic_profile.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CometFeedInlineComposerPressableProfilePic_profile",selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"url",storageKey:null}],type:"Entity",abstractKey:"__isEntity"},{args:null,kind:"FragmentSpread",name:"CometFeedInlineComposerProfilePic_profile"},{alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null}],type:"Profile",abstractKey:"__isProfile"};e.exports=a}),null);
__d("CometFeedInlineComposerProfilePic_profile.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[{kind:"RootArgument",name:"scale"}],kind:"Fragment",metadata:null,name:"CometFeedInlineComposerProfilePic_profile",selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:[{kind:"Literal",name:"height",value:40},{kind:"Variable",name:"scale",variableName:"scale"},{kind:"Literal",name:"width",value:40}],concreteType:"Image",kind:"LinkedField",name:"profile_picture",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:null}],type:"Profile",abstractKey:"__isProfile"};e.exports=a}),null);
__d("CometFeedInlineComposerProfilePic.react",["ix","CometFeedInlineComposerProfilePic_profile.graphql","CometProfilePhoto.react","CometRelay","react","recoverableViolation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=(j||(j=d("react"))).c,l=j;function a(a){var e=k(9);a=a.profile$key;var f;e[0]===Symbol["for"]("react.memo_cache_sentinel")?(f=i!==void 0?i:i=b("CometFeedInlineComposerProfilePic_profile.graphql"),e[0]=f):f=e[0];f=d("CometRelay").useFragment(f,a);if(f==null||f.id==null){e[1]===Symbol["for"]("react.memo_cache_sentinel")?(a=c("recoverableViolation")("Unable to fetch profile for composer profile pic","comet_composer"),e[1]=a):a=e[1];return a}a=f==null?void 0:(a=f.profile_picture)==null?void 0:a.uri;f="Composer-ProfilePic-"+f.id;var g;e[2]!==a?(g=a!=null?a:h("762679"),e[2]=a,e[3]=g):g=e[3];e[4]!==g?(a=l.jsx(c("CometProfilePhoto.react"),{shape:"circle",size:40,source:{uri:g}}),e[4]=g,e[5]=a):a=e[5];e[6]!==f||e[7]!==a?(g=l.jsx("div",{"data-testid":void 0,children:a}),e[6]=f,e[7]=a,e[8]=g):g=e[8];return g}g["default"]=a}),98);
__d("CometFeedInlineComposerPressableProfilePic.react",["fbt","CometFeedInlineComposerPressableProfilePic_profile.graphql","CometFeedInlineComposerProfilePic.react","CometPressable.react","CometRelay","react","recoverableViolation"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=(j||(j=d("react"))).c,l=j,m={profilePic:{display:"x78zum5",marginEnd:"x1emribx",marginLeft:null,marginRight:null,$$css:!0}};function a(a){var e=k(13),f=a.disableDefaultProfileURI,g=a.onClick;a=a.profile$key;var j;e[0]===Symbol["for"]("react.memo_cache_sentinel")?(j=i!==void 0?i:i=b("CometFeedInlineComposerPressableProfilePic_profile.graphql"),e[0]=j):j=e[0];j=d("CometRelay").useFragment(j,a);if(j==null){e[1]===Symbol["for"]("react.memo_cache_sentinel")?(a=c("recoverableViolation")("Unable to fetch profile for composer profile pic","comet_composer"),e[1]=a):a=e[1];return a}a=f===!0?null:j==null?void 0:j.url;e[2]!==j?(f=(j==null?void 0:j.name)!=null?h._("__JHASH__CAdiMQCOr4R__JHASH__",[h._param("userName",j==null?void 0:j.name)]):h._("__JHASH__rpsI0Frdl3u__JHASH__"),e[2]=j,e[3]=f):f=e[3];var n;e[4]!==a?(n={routeTarget:"self",url:a},e[4]=a,e[5]=n):n=e[5];e[6]!==j?(a=l.jsx(c("CometFeedInlineComposerProfilePic.react"),{profile$key:j}),e[6]=j,e[7]=a):a=e[7];e[8]!==f||e[9]!==n||e[10]!==g||e[11]!==a?(j=l.jsx(c("CometPressable.react"),{"aria-label":f,display:"inline",linkProps:n,onPress:g,overlayRadius:"50%",xstyle:m.profilePic,children:a}),e[8]=f,e[9]=n,e[10]=g,e[11]=a,e[12]=j):j=e[12];return j}g["default"]=a}),226);
__d("CometFeedInlineComposerWOYM_profile.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"CometFeedInlineComposerWOYM_profile",selections:[{kind:"InlineFragment",selections:[{alias:null,args:null,kind:"ScalarField",name:"short_name",storageKey:null}],type:"User",abstractKey:null}],type:"Actor",abstractKey:"__isActor"};e.exports=a}),null);
__d("TextInputButton.react",["ARIA_LABEL_PLACEHOLDER_FIXME","CometLineClamp.react","CometPressable.react","FDSBadge.react","TetraIcon.react","TetraProfilePhoto.react","react","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||(i=d("react"))).c,k=i,l=40,m={linkLabel:{color:"xi81zsa",fontSize:"x1lkfr7t",hyphens:"xkjl1po",overflowWrap:"x1mzt3pk",width:"xh8yej3",wordBreak:"x13faqbe",$$css:!0},linkLabelPlaceholder:{color:"xzsf02u",$$css:!0},linkLabelPreserveNewlines:{whiteSpace:"x126k92a",$$css:!0},profile:{display:"x78zum5",marginEnd:"x1w0mnb",marginStart:"xp7jhwk",$$css:!0},profileDisabled:{opacity:"xuzhngd",$$css:!0},root:{alignItems:"x6s0dn4",backgroundColor:"xmjcpbm",borderTopStartRadius:"x107yiy2",borderTopEndRadius:"xv8uw2v",borderBottomEndRadius:"x1tfwpuw",borderBottomStartRadius:"x2g32xy",display:"x78zum5",flexDirection:"x1q0g3np",flexGrow:"x1iyjqo2",height:"x1vqgdyp",justifyContent:"x1nhvcw1",paddingEnd:"xn6708d",paddingLeft:null,paddingRight:null,paddingStart:"x1ye3gou",position:"x1n2onr6",$$css:!0},rootMultiLine:{height:"xt7dq6l",minHeight:"x1ba4aug",paddingTop:"x1y1aw1k",paddingEnd:"xn6708d",paddingBottom:"xwib8y2",paddingStart:"x1ye3gou",$$css:!0},selected:{backgroundColor:"x1hr4nm9",$$css:!0}};b=k.forwardRef(a);function a(a,b){var d=j(39),e=a.disabled,f=a.hasNewContentBadge,g=a.image,i=a.isUserEnteredPreviewText,n=a.label,o=a.labelMaxLines,p=a.linkProps,q=a.onHoverIn,r=a.onHoverOut,s=a.onPress,t=a.onPressIn,u=a.preserveLabelNewlines,v=a.selected,w=a.testid;a=a.testOnly_pressed;e=e===void 0?!1:e;f=f===void 0?!1:f;i=i===void 0?!1:i;o=o===void 0?2:o;u=u===void 0?!1:u;var x=v===void 0?!1:v;v=null;if(f){d[0]===Symbol["for"]("react.memo_cache_sentinel")?(f="x14yjl9h xudhj91 x18nykt9 xww2gxu x78zum5 x1qhkwwh x6ikm8r x10wlt62 x10l6tqk x13vifvy",d[0]=f):f=d[0];var y=e?"gray":"blue";d[1]!==y?(f=k.jsx("div",{className:f,children:k.jsx(c("FDSBadge.react"),{accessibilityText:c("ARIA_LABEL_PLACEHOLDER_FIXME"),border:"white",color:y,isProfileBadge:!0,size:6})}),d[1]=y,d[2]=f):f=d[2];v=f}y=null;if(g!=null)if(g.type==="icon"){f=x===!0?"highlight":null;var z;d[3]===Symbol["for"]("react.memo_cache_sentinel")?(z="xlup9mm x1w0mnb",d[3]=z):z=d[3];f=e?"disabled":(f=f)!=null?f:"primary";d[4]!==f||d[5]!==g.icon?(z=k.jsx("div",{className:z,children:k.jsx(c("TetraIcon.react"),{color:f,icon:g.icon,size:16})}),d[4]=f,d[5]=g.icon,d[6]=z):z=d[6];y=z}else if(g.type==="profile-photo"&&g.source!=null){f=e&&m.profileDisabled;d[7]!==f?(z=(h||(h=c("stylex")))(m.profile,f),d[7]=f,d[8]=z):z=d[8];d[9]!==g.source?(f=k.jsx(c("TetraProfilePhoto.react"),{shape:"circle",size:28,source:g.source}),d[9]=g.source,d[10]=f):f=d[10];d[11]!==z||d[12]!==f?(g=k.jsx("div",{className:z,children:f}),d[11]=z,d[12]=f,d[13]=g):g=d[13];y=g}z=i===!0&&m.linkLabelPlaceholder;f=u===!0&&m.linkLabelPreserveNewlines;d[14]!==z||d[15]!==f?(g=(h||(h=c("stylex")))(m.linkLabel,z,f),d[14]=z,d[15]=f,d[16]=g):g=d[16];d[17]!==o||d[18]!==n?(i=k.jsx(c("CometLineClamp.react"),{lines:o,children:n}),d[17]=o,d[18]=n,d[19]=i):i=d[19];d[20]!==g||d[21]!==i?(u=k.jsx("div",{className:g,children:i}),d[20]=g,d[21]=i,d[22]=u):u=d[22];z=u;f=e?void 0:s;o=e?void 0:t;d[23]!==x?(n=function(){return[m.root,m.rootMultiLine,x===!0&&m.selected]},d[23]=x,d[24]=n):n=d[24];d[25]!==e||d[26]!==p||d[27]!==q||d[28]!==r||d[29]!==f||d[30]!==o||d[31]!==b||d[32]!==a||d[33]!==w||d[34]!==n||d[35]!==v||d[36]!==y||d[37]!==z?(g=k.jsxs(c("CometPressable.react"),{disabled:e,display:"inline",linkProps:p,onHoverIn:q,onHoverOut:r,onPress:f,onPressIn:o,overlayRadius:l/2,ref:b,testOnly_pressed:a,testid:void 0,xstyle:n,children:[v,y,z]}),d[25]=e,d[26]=p,d[27]=q,d[28]=r,d[29]=f,d[30]=o,d[31]=b,d[32]=a,d[33]=w,d[34]=n,d[35]=v,d[36]=y,d[37]=z,d[38]=g):g=d[38];return g}e=b;g["default"]=e}),98);
__d("CometFeedInlineComposerWOYM.react",["CometFeedInlineComposerWOYM_profile.graphql","CometRefineRef","CometRelay","TextInputButton.react","cr:1654613","mergeRefs","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){var e,f=a.additionalInputButtonRef,g=a.onHoverInPrerenderer,i=a.onHoverOutPrerenderer,k=a.onPress,l=a.onPressInPrerenderer,m=a.postPlainText,n=a.profile$key;a=a.triggerRef;n=d("CometRelay").useFragment(h!==void 0?h:h=b("CometFeedInlineComposerWOYM_profile.graphql"),n);n=b("cr:1654613")(n==null?void 0:n.short_name);e=(e=m)!=null?e:n;return j.jsx(c("TextInputButton.react"),{isUserEnteredPreviewText:m!=null,label:e,onHoverIn:g,onHoverOut:i,onPress:k,onPressIn:l,ref:c("mergeRefs")(c("CometRefineRef")(a),f),testid:void 0})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
__d("CometInlineComposerSproutListMatcher.react",["CometRelay","react","recoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||(h=d("react"))).c,j=h;function a(a){var b=i(5),c,d;b[0]!==a?(c=a.sprouts,d=babelHelpers.objectWithoutPropertiesLoose(a,["sprouts"]),b[0]=a,b[1]=c,b[2]=d):(c=b[1],d=b[2]);a=k(c,d);b[3]!==a?(c=j.jsx(j.Fragment,{children:a}),b[3]=a,b[4]=c):c=b[4];return c}function k(a,b){var e=i(7);a==null&&c("recoverableViolation")("Server failed to provide a valid inline sprouts object for the composer.","comet_composer");if(e[0]!==a){var f;f=(f=a)!=null?f:[];e[0]=a;e[1]=f}else f=e[1];if(e[2]!==b||e[3]!==f){e[5]!==b?(a=function(a,c){return j.jsx(d("CometRelay").MatchContainer,{match:a,props:b},c)},e[5]=b,e[6]=a):a=e[6];a=f.map(a);e[2]=b;e[3]=f;e[4]=a}else a=e[4];return a}g.CometInlineComposerSproutListMatcher=a;g.useMatcher=k}),98);
__d("ProfileCometComposerRootQuery$Parameters",["ProfileCometComposerRootQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("ProfileCometComposerRootQuery_facebookRelayOperation"),metadata:{},name:"ProfileCometComposerRootQuery",operationKind:"query",text:null}};e.exports=a}),null);
__d("ProfileCometComposerDialog.entrypoint",["JSResourceForInteraction","ProfileCometComposerRootQuery$Parameters","WebPixelRatio","getIsFooterModularizationEnabled.entrypointutils"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){a=a.profileID;return{queries:{composerQueryReference:{options:{fetchPolicy:"store-or-network"},parameters:c("ProfileCometComposerRootQuery$Parameters"),variables:{isFooterButtonModularizationEnabled:d("getIsFooterModularizationEnabled.entrypointutils").getIsFooterModularizationEnabled(),privacySelectorRenderLocation:"COMET_COMPOSER",profile_id:a,scale:d("WebPixelRatio").get()}}}}},root:c("JSResourceForInteraction")("ProfileCometComposerDialog.react").__setRef("ProfileCometComposerDialog.entrypoint")};g["default"]=a}),98);
__d("ProfileCometComposerDialogDeferred",["requireDeferred"],(function(a,b,c,d,e,f,g){"use strict";a=c("requireDeferred")("ProfileCometComposerDialog.react").__setRef("ProfileCometComposerDialogDeferred");b=a;g["default"]=b}),98);
__d("useCometFeedInlineComposerWOYMText",["fbt","gkx","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=(i||d("react")).c,k=c("gkx")("20836");function a(a){var b=j(3);if(k){var c;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(c=h._("__JHASH__Hf3Fx3GNVZv__JHASH__"),b[0]=c):c=b[0];return c}else{b[1]!==a?(c=a!=null?h._("__JHASH__FVtpWFx1aSi__JHASH__",[h._param("short name",a)]):h._("__JHASH___BeMvWn-nAb__JHASH__"),b[1]=a,b[2]=c):c=b[2];return c}}g["default"]=a}),226);
__d("usePostInProgress",["cr:598"],(function(a,b,c,d,e,f,g){"use strict";g["default"]=b("cr:598")}),98);
__d("usePostInProgressImpl",["JSResourceForInteraction","promiseDone","react"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useState,j=b.c,k=c("JSResourceForInteraction")("updatePostPlainTextForLexical").__setRef("usePostInProgressImpl"),l=c("JSResourceForInteraction")("updatePostPlainTextForDraftJS").__setRef("usePostInProgressImpl");function a(){var a=j(3),b=i(null),d=b[0],e=b[1];a[0]===Symbol["for"]("react.memo_cache_sentinel")?(b=function(a){(a==null?void 0:a.lexicalEditor)!=null?c("promiseDone")(k.load().then(function(b){b(a,e)})):c("promiseDone")(l.load().then(function(b){b(a,e)}))},a[0]=b):b=a[0];b=b;a[1]!==d?(b={postPlainText:d,updatePostPlainText:b},a[1]=d,a[2]=b):b=a[2];return b}g["default"]=a}),98);
__d("useProfileCometComposerDialog",["cr:1963","react","useCometComposerEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";var h,i=(h||d("react")).c;function a(a){var d,e=i(3);d=(d=a.composerType)!=null?d:"profile";var f;e[0]!==a||e[1]!==d?(f=babelHelpers["extends"]({},a,{composerDialogEntryPoint:b("cr:1963"),composerType:d}),e[0]=a,e[1]=d,e[2]=f):f=e[2];return c("useCometComposerEntryPointDialog")(f)}g["default"]=a}),98);
__d("useProfileCometComposerTrigger",["CometComposerAttachmentPluginTypes","CometComposerFooterAttachmentPluginTypes","JSResourceForInteraction","QPLUserFlow","getComposerUnsavedChangesAlert","gkx","qpl","react","useCometInteractionTracing","useComposerTerminalEventLog","useOnBeforeUnload","usePostInProgress","useProfileCometComposerDialog","useResumableComposerViewState"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useCallback,j=b.useRef,k=c("JSResourceForInteraction")("ProfileCometComposerDialog.react").__setRef("useProfileCometComposerTrigger");function a(a,b,e,f){var g=j(!1),h=c("useResumableComposerViewState")(),l=h.clearResumableViewState,m=h.getResumableViewState,n=h.saveResumableViewState;h=c("usePostInProgress")();var o=h.postPlainText,p=h.updatePostPlainText,q=j(!1);c("useOnBeforeUnload")(function(){return q.current?c("getComposerUnsavedChangesAlert")(m()):void 0});c("useComposerTerminalEventLog")(function(){return q.current},function(){return m().creationSessionID});h=i(function(a){if(g.current===!0)q.current=!1,l(),p(m());else{var b;q.current=(b=a==null?void 0:a.isDirty)!=null?b:!1;n(a);p(m())}},[l,m,n,p]);var r=function(){g.current=!1},s=function(){q.current=!0,g.current=!1},t=function(){g.current=!0};h=c("useProfileCometComposerDialog")({composerEntryPointName:"inline_composer",composerSourceSurface:"timeline",localBackupTargetID:a,onBeforeClose:h,onSave:r,onSaveError:s,onSubmit:t,profileID:a,title:b,tracePolicy:"comet.composer.profile"});var u=h[0];r=h[1];s=h[2];t=h[3];b=h[4];var v=c("useCometInteractionTracing")(c("qpl")._(30605360,"8900"),"responsive","INTERACTION");h=i(function(b){q.current=!1;var g=c("gkx")("20836"),h=m(b==null?void 0:b.additionalMediaAttachmentItems,{startWithHeaderTextStyle:g});h=babelHelpers["extends"]({},h,{videoComposerData:{shouldOpenVideoSpecificComposer:e,targetID:a}});(b==null?void 0:b.pushedPageOnLoad)==="get_messages"?h=babelHelpers["extends"]({},h,{attachmentArea:babelHelpers["extends"]({},h.attachmentArea,{activeAttachmentType:c("CometComposerAttachmentPluginTypes").GET_MESSAGES}),isGetMessagesPost:!0,isGetMessagesPostAttachmentOptional:!0}):(b==null?void 0:b.pushedPageOnLoad)==="get_whatsapp_messages"&&(h=babelHelpers["extends"]({},h,{footerAttachmentArea:{activeFooterAttachmentType:d("CometComposerFooterAttachmentPluginTypes").CometComposerFooterAttachmentPluginTypes.GET_WHATSAPP_MESSAGES},isGetWhatsAppMessagePost:!0,isGetWhatsappMessagesPostAttachmentOptional:f}));var i=k.getModuleIfRequireable()!=null;c("QPLUserFlow").start(c("qpl")._(316544852,"610"),{annotations:{bool:{revisit:i}}});v(function(a){a.onComplete(function(b){i&&a.addMetadata("revisit",1)}),u({beginningViewState:h,pushedPageOnLoad:b==null?void 0:b.pushedPageOnLoad})})},[m,a,e,u,v]);return[h,r,s,t,b,o]}g["default"]=a}),98);
__d("useProfileCometInlineComposer",["fbt","CometRouteParams","react","useProfileCometComposerTrigger"],(function(a,b,c,d,e,f,g,h){"use strict";var i;b=i||d("react");var j=b.startTransition,k=b.useEffect,l=b.useRef,m=b.c;function a(a){var b=m(12),e=a.isGetWhatsAppMessagesPostAttachmentOptional,f=a.profileID;a=a.shouldOpenVideoSpecificComposer;var g;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(g=h._("__JHASH__11LRWOwlqxK__JHASH__"),b[0]=g):g=b[0];g=g;g=c("useProfileCometComposerTrigger")(f,g,a,e);var i=g[0];a=g[1];e=g[2];var n=g[3],o=g[4];g=g[5];var p=d("CometRouteParams").useRouteParams(),q=l(null),r=String(p==null?void 0:p.modal);b[1]!==f||b[2]!==r||b[3]!==i?(p=function(){if(q.current===f)return;r!=="null"&&(q.current=f);r==="composer"?j(function(){return i()}):r==="composer_whatsapp_message"?j(function(){return i({pushedPageOnLoad:"get_whatsapp_messages"})}):r==="composer_message"&&j(function(){return i({pushedPageOnLoad:"get_messages"})})},b[1]=f,b[2]=r,b[3]=i,b[4]=p):p=b[4];k(p);b[5]!==i||b[6]!==a||b[7]!==e||b[8]!==n||b[9]!==o||b[10]!==g?(p=[i,a,e,n,o,g],b[5]=i,b[6]=a,b[7]=e,b[8]=n,b[9]=o,b[10]=g,b[11]=p):p=b[11];return p}g["default"]=a}),226);