;/*FB_PKG_DELIM*/

__d("FundraiserGKUtils.entrypointutils",["gkx"],(function(a,b,c,d,e,f,g){"use strict";function h(){return c("gkx")("23096")}function a(){return h()}function b(){return c("gkx")("23094")&&h()}function d(){return c("gkx")("20935")}g.canCreateP4CFundraiser=h;g.canCreateFundraiser=a;g.canCreateChallenge=b;g.canSeeCometVoiceSwitcher=d}),98);
__d("XCometFundraiserWithPresenceCreateDialogControllerRouteBuilder",["jsRouteBuilder"],(function(a,b,c,d,e,f,g){a=c("jsRouteBuilder")("/fundraiser/with_presence/create_dialog/",Object.freeze({is_comet_on_mobile:!1,source_data:{},default_open_dbop:!1}),void 0);b=a;g["default"]=b}),98);
__d("XFundraiserCreateForPageControllerRouteBuilder",["jsRouteBuilder"],(function(a,b,c,d,e,f,g){a=c("jsRouteBuilder")("/fund/{?page_token}/",Object.freeze({}),void 0);b=a;g["default"]=b}),98);
__d("FundraiserCreateUrlUtils",["FundraiserGKUtils.entrypointutils","XCometFundraiserWithPresenceCreateDialogControllerRouteBuilder","XFundraiserCreateForPageControllerRouteBuilder"],(function(a,b,c,d,e,f,g){"use strict";function h(a,b,c,e,f,g,h){if(!d("FundraiserGKUtils.entrypointutils").canCreateP4CFundraiser())return null;var j={default_beneficiary_type:"charity"};g===!0&&(j.default_default_donation_type="recurring_donation");b!=null&&(j.default_beneficiary_id=b);c!=null&&(j.page_id=c);e!=null&&(j.challenge_id=e);f!=null&&(j.prefill_type=f);h!=null&&(j.is_comet_on_mobile=h);return i(j,a)}function a(a,b,c,e,f,g,j,k){if(!d("FundraiserGKUtils.entrypointutils").canCreateFundraiser())return null;switch(a){case 6:return h(b,c,e,f,g,j,k);default:return i(null,b)}}function i(a,b){a=(a=a)!=null?a:{};b!=null&&(a.source=b);return c("XCometFundraiserWithPresenceCreateDialogControllerRouteBuilder").buildURL(a).toString()}function b(a){return c("XFundraiserCreateForPageControllerRouteBuilder").buildURL({page_token:a}).toString()}g.getCreatePersonToCharityFundraiserUrl=h;g.getCreateFundraiserUrl=a;g.getCreateUrl=i;g.getPageCreationShortUrl=b}),98);
__d("ProfileCometComposerRootQuery$Parameters",["CometUnifiedVideoCreation_showPrivacyMerge.relayprovider","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,providedVariables:{__relay_internal__pv__CometUnifiedVideoCreation_showPrivacyMergerelayprovider:b("CometUnifiedVideoCreation_showPrivacyMerge.relayprovider")}}};e.exports=a}),null);
__d("ProfileCometComposerDialog.entrypoint",["JSResourceForInteraction","ProfileCometComposerRootQuery$Parameters","WebPixelRatio"],(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:{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("XCometPageCreationControllerRouteBuilder",["jsRouteBuilder"],(function(a,b,c,d,e,f,g){a=c("jsRouteBuilder")("/pages/creation/",Object.freeze({should_lwi_redirect:!1}),void 0);b=a;g["default"]=b}),98);
__d("useProfileCometComposerDialog",["cr:1963","react-compiler-runtime","useCometComposerEntryPointDialog"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var e,f=d("react-compiler-runtime").c(3);e=(e=a.composerType)!=null?e:"profile";var g;f[0]!==a||f[1]!==e?(g=babelHelpers["extends"]({},a,{composerDialogEntryPoint:b("cr:1963"),composerType:e}),f[0]=a,f[1]=e,f[2]=g):g=f[2];return c("useCometComposerEntryPointDialog")(g)}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,g){var h=j(!1),l=j([]),m=c("useResumableComposerViewState")(),n=m.clearResumableViewState,o=m.getResumableViewState,p=m.saveResumableViewState;m=c("usePostInProgress")();var q=m.postPlainText,r=m.updatePostPlainText,s=j(!1);c("useOnBeforeUnload")(function(){l.current!=null&&l.current.forEach(function(a){return a()});if(s.current===!0)return c("getComposerUnsavedChangesAlert")(o())});c("useComposerTerminalEventLog")(function(){return s.current},function(){return o().creationSessionID});m=i(function(a){if(h.current===!0)s.current=!1,n(),r(o());else{var b;s.current=(b=a==null?void 0:a.isDirty)!=null?b:!1;p(a);r(o())}},[n,o,p,r]);var t=function(a,b){h.current=!1,b!=null&&(l.current=[].concat(l.current,[b]))},u=function(){s.current=!0,h.current=!1},v=function(){h.current=!0};m=c("useProfileCometComposerDialog")({composerEntryPointName:"inline_composer",composerSourceSurface:"timeline",localBackupTargetID:a,onBeforeClose:m,onSave:t,onSaveError:u,onSubmit:v,profileID:a,title:b,tracePolicy:"comet.composer.profile"});var w=m[0];t=m[1];u=m[2];v=m[3];b=m[4];var x=c("useCometInteractionTracing")(c("qpl")._(30605360,"8900"),"responsive","INTERACTION");m=i(function(b){s.current=!1;var h=c("gkx")("20836"),i=o(b==null?void 0:b.additionalMediaAttachmentItems,{startWithHeaderTextStyle:h});i=babelHelpers["extends"]({},i,g,{videoComposerData:{shouldOpenVideoSpecificComposer:e,targetID:a}});(b==null?void 0:b.pushedPageOnLoad)==="get_messages"?i=babelHelpers["extends"]({},i,{attachmentArea:babelHelpers["extends"]({},i.attachmentArea,{activeAttachmentType:c("CometComposerAttachmentPluginTypes").GET_MESSAGES}),isGetMessagesPost:!0,isGetMessagesPostAttachmentOptional:!0}):(b==null?void 0:b.pushedPageOnLoad)==="get_whatsapp_messages"&&(i=babelHelpers["extends"]({},i,{footerAttachmentArea:{activeFooterAttachmentType:d("CometComposerFooterAttachmentPluginTypes").CometComposerFooterAttachmentPluginTypes.GET_WHATSAPP_MESSAGES},isGetWhatsAppMessagePost:!0,isGetWhatsappMessagesPostAttachmentOptional:f}));var j=k.getModuleIfRequireable()!=null;c("QPLUserFlow").start(c("qpl")._(316544852,"610"),{annotations:{bool:{revisit:j}}});x(function(a){a.onComplete(function(b){j&&a.addMetadata("revisit",1)}),w({beginningViewState:i,pushedPageOnLoad:b==null?void 0:b.pushedPageOnLoad})})},[o,a,e,w,x]);return[m,t,u,v,b,q]}g["default"]=a}),98);
__d("useProfileCometInlineComposer",["fbt","CometRouteParams","react","react-compiler-runtime","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;function a(a){var b=d("react-compiler-runtime").c(12),e=a.beginningViewState,f=a.isGetWhatsAppMessagesPostAttachmentOptional,g=a.profileID;a=a.shouldOpenVideoSpecificComposer;var i;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(i=h._(/*BTDS*/"__JHASH__11LRWOwlqxK__JHASH__"),b[0]=i):i=b[0];i=i;i=c("useProfileCometComposerTrigger")(g,i,a,f,e);var m=i[0];a=i[1];f=i[2];e=i[3];var n=i[4];i=i[5];var o=d("CometRouteParams").useRouteParams(),p=l(null),q=String(o==null?void 0:o.modal);b[1]!==m||b[2]!==q||b[3]!==g?(o=function(){if(p.current===g)return;q!=="null"&&(p.current=g);q==="composer"?j(function(){return m()}):q==="composer_whatsapp_message"?j(function(){return m({pushedPageOnLoad:"get_whatsapp_messages"})}):q==="composer_message"&&j(function(){return m({pushedPageOnLoad:"get_messages"})})},b[1]=m,b[2]=q,b[3]=g,b[4]=o):o=b[4];k(o);b[5]!==m||b[6]!==f||b[7]!==e||b[8]!==n||b[9]!==i||b[10]!==a?(o=[m,a,f,e,n,i],b[5]=m,b[6]=f,b[7]=e,b[8]=n,b[9]=i,b[10]=a,b[11]=o):o=b[11];return o}g["default"]=a}),226);
__d("useProfileCometLifeEventsComposerDialog",["react-compiler-runtime","useProfileCometInlineComposer"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var b=d("react-compiler-runtime").c(10);a=a.profileID;var e;b[0]!==a?(e={profileID:a,shouldOpenVideoSpecificComposer:!1},b[0]=a,b[1]=e):e=b[1];a=c("useProfileCometInlineComposer")(e);var f=a[0];e=a[1];var g=a[2],h=a[3];a=a[4];var i;b[2]!==f?(i=function(){return f({pushedPageOnLoad:"mle"})},b[2]=f,b[3]=i):i=b[3];i=i;var j;b[4]!==g||b[5]!==h||b[6]!==i||b[7]!==a||b[8]!==e?(j=[i,e,g,h,a],b[4]=g,b[5]=h,b[6]=i,b[7]=a,b[8]=e,b[9]=j):j=b[9];return j}g["default"]=a}),98);