IGDComposerRichContentTrayV2.react",["CometPlaceholder.react","CometRelay","I64","IGDAnimatedImageControlsUtil","IGDComposerRichContentAvatarStickers.entrypoint","IGDComposerRichContentConstants","IGDComposerRichContentGifs.entrypoint","IGDComposerRichContentMusic.entrypoint","IGDComposerRichContentRefetchFallback.react","IGDComposerRichContentStickers.entrypoint","IGDComposerRichContentTrayV2_AvatarAvailableQuery.graphql","IGDSAvatarsPanoFilled24Icon.svg.react","IGDSBox.react","IGDSGifPanoOutline24Icon.svg.react","IGDSMusicPanoFilled24Icon.svg.react","IGDSPopover.react","IGDSSegmentedTabs.react","IGDSStickerPanoFilledIcon.svg.react","IGDThreadListNewMessageLoggingDataContext","MessengerWebUXLogger","PolarisViewerSettingsQuery","react","useCometRelayEntrypointContextualEnvironmentProvider"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=i||(i=d("react"));e=i;var l=e.useRef,m=e.useState;function n(a,b,e,f,g){var h=[];h.push({icon:c("IGDSStickerPanoFilledIcon.svg.react"),id:"stickers",isLink:!0,label:"",ref:e});a&&h.push({icon:c("IGDSAvatarsPanoFilled24Icon.svg.react"),id:"avatars",isLink:!0,label:"",ref:f});h.push({icon:c("IGDSGifPanoOutline24Icon.svg.react"),id:"gifs",isLink:!0,label:"",ref:b});d("IGDComposerRichContentConstants").shouldEnableMusicStickers()&&h.push({icon:c("IGDSMusicPanoFilled24Icon.svg.react"),id:"music",isLink:!0,label:"",ref:g});return h}function a(a){var e;a.entryPoints;a.extraProps;var g=a.props,i=g.onClose,o=g.onSendMessage;g=g.threadKey;a=a.queries.avatarQueryRef;var p=d("CometRelay").usePreloadedQuery(h!==void 0?h:h=b("IGDComposerRichContentTrayV2_AvatarAvailableQuery.graphql"),a),q=a.variables.user_id;a=(p==null||(e=p.fetch__IGUser)==null?void 0:e.user_avatar)!==null&&d("IGDComposerRichContentConstants").shouldEnableAvatarStickers();p=m("stickers");var r=p[0],s=p[1];p=c("useCometRelayEntrypointContextualEnvironmentProvider")();var t=d("CometRelay").useEntryPointLoader(p,c("IGDComposerRichContentStickers.entrypoint")),u=t[0];t=t[1];var v=d("CometRelay").useEntryPointLoader(p,c("IGDComposerRichContentAvatarStickers.entrypoint")),w=v[0],x=v[1];v=d("CometRelay").useEntryPointLoader(p,c("IGDComposerRichContentGifs.entrypoint"));var y=v[0],z=v[1];v=d("CometRelay").useEntryPointLoader(p,c("IGDComposerRichContentMusic.entrypoint"));p=v[0];var A=v[1],B=(j||(j=d("I64"))).to_string(g);v=l(!1);v.current||(t({searchQuery:"",threadFBID:B}),v.current=!0);var C=d("IGDThreadListNewMessageLoggingDataContext").useFlowInstanceIdContext(),D=c("MessengerWebUXLogger").useInteractionLogger();g=d("CometRelay").useLazyLoadQuery(c("PolarisViewerSettingsQuery"),{});g=(v=(t=g.viewer)==null||(t=t.user)==null?void 0:t.is_reduce_motion_setting_enabled)!=null?v:!1;t=d("IGDAnimatedImageControlsUtil").shouldEnableGIFPlayPause();v=c("MessengerWebUXLogger").useImpressionLoggerRef({eventName:"composer_rich_content_popover_rendered",extraData:t?{isReduceMotionSettingEnabled:String(g)}:void 0,flowInstanceId:C});var E=c("MessengerWebUXLogger").useImpressionLoggerRef({eventName:d("IGDComposerRichContentConstants").shouldEnableTenor()?"composer_tenor_gif_tab_rendered":"composer_gif_tab_rendered",extraData:t?{isReduceMotionSettingEnabled:String(g)}:void 0,flowInstanceId:C}),F=c("MessengerWebUXLogger").useImpressionLoggerRef({eventName:d("IGDComposerRichContentConstants").shouldEnableTenor()?"composer_tenor_sticker_tab_rendered":"composer_sticker_tab_rendered",extraData:t?{isReduceMotionSettingEnabled:String(g)}:void 0,flowInstanceId:C});t=c("MessengerWebUXLogger").useImpressionLoggerRef({eventName:"composer_avatar_sticker_tab_rendered",extraData:t?{isReduceMotionSettingEnabled:String(g)}:void 0,flowInstanceId:C});g=c("MessengerWebUXLogger").useImpressionLoggerRef({eventName:"composer_music_tab_rendered",flowInstanceId:C});a=n(a,E,F,t,g);E=function(a){var b="composer_sticker_tab_click";switch(a){case"gifs":b="composer_gif_tab_click";z({searchQuery:""});break;case"music":b="composer_music_tab_click";A({threadFBID:B});break;case"avatars":b="composer_avatar_sticker_tab_click";x({igid:q,searchQuery:"",threadFBID:B});break}D==null||D({eventName:b,flowInstanceId:C});s(a)};F=k.jsxs(c("IGDSBox.react"),{containerRef:v,height:d("IGDComposerRichContentConstants").STICKER_TRAY_HEIGHT,width:340,children:[k.jsx(c("IGDSSegmentedTabs.react"),{initialActiveTabIndex:a.findIndex(function(a){return a.id===r}),onChange:E,tabs:a}),k.jsxs(c("CometPlaceholder.react"),{fallback:k.jsx(c("IGDComposerRichContentRefetchFallback.react"),{height:380}),name:f.id,children:[r==="stickers"&&u&&k.jsx(d("CometRelay").EntryPointContainer,{entryPointReference:u,props:{flowInstanceId:C,onClose:i,onSendMessage:o}}),r==="gifs"&&y&&k.jsx(d("CometRelay").EntryPointContainer,{entryPointReference:y,props:{onClose:i,onSendMessage:o}}),r==="music"&&p&&k.jsx(d("CometRelay").EntryPointContainer,{entryPointReference:p,props:{onClose:i}}),r==="avatars"&&w&&k.jsx(d("CometRelay").EntryPointContainer,{entryPointReference:w,props:{flowInstanceId:C,igid:q,onClose:i}})]})]});return k.jsx(c("IGDSPopover.react"),{popoverContent:F,withArrow:!0})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
IGDChatTabsContent.entrypoint",["IGPresenceUnifiedSetupQuery$Parameters","JSResourceForInteraction","PolarisViewerSettingsQuery$Parameters","qex"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){a={presenceSetupQueryRef:{parameters:c("IGPresenceUnifiedSetupQuery$Parameters"),variables:{}}};c("qex")._("4042")===!0&&(a=babelHelpers["extends"]({},a,{viewerSettingsQueryRef:{parameters:c("PolarisViewerSettingsQuery$Parameters"),variables:{}}}));return{queries:a}},root:c("JSResourceForInteraction")("IGDChatTabsContent.react").__setRef("IGDChatTabsContent.entrypoint")};g["default"]=a}),98);
-----
useLazyLoadPolarisViewerSettingsLoggedIn",["CometRelay","PolarisViewerSettingsQuery","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";function a(){var a=d("react-compiler-runtime").c(2),b=d("CometRelay").useLazyLoadQuery(c("PolarisViewerSettingsQuery"),{});b=(b=(b=b.viewer)==null||(b=b.user)==null?void 0:b.is_reduce_motion_setting_enabled)!=null?b:!1;var e;a[0]!==b?(e={isReduceMotionSettingEnabled:b},a[0]=b,a[1]=e):e=a[1];return e}g["default"]=a}),98);
-----
IGDChatTabsContentWrapper.entrypoint",["IGPresenceUnifiedSetupQuery$Parameters","JSResourceForInteraction","PolarisViewerSettingsQuery$Parameters","qex"],(function(a,b,c,d,e,f,g){"use strict";a={getPreloadProps:function(a){a={presenceSetupQueryRef:{parameters:c("IGPresenceUnifiedSetupQuery$Parameters"),variables:{}}};c("qex")._("4042")===!0&&(a=babelHelpers["extends"]({},a,{viewerSettingsQueryRef:{parameters:c("PolarisViewerSettingsQuery$Parameters"),variables:{}}}));return{queries:a}},root:c("JSResourceForInteraction")("IGDChatTabsContentWrapper.react").__setRef("IGDChatTabsContentWrapper.entrypoint")};g["default"]=a}),98);
-----
PolarisViewerSettingsQuery",["PolarisViewerSettingsQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h;a=h!==void 0?h:h=b("PolarisViewerSettingsQuery.graphql");c=a;g["default"]=c}),98);
-----
PolarisViewerSettingsQuery.graphql",["PolarisViewerSettingsQuery_instagramRelayOperation","relay-runtime"],(function(a,b,c,d,e,f){"use strict";a=function(){var a={alias:null,args:null,kind:"ScalarField",name:"is_reduce_motion_setting_enabled",storageKey:null};return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"PolarisViewerSettingsQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[a],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"PolarisViewerSettingsQuery",selections:[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[a,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:b("PolarisViewerSettingsQuery_instagramRelayOperation"),metadata:{},name:"PolarisViewerSettingsQuery",operationKind:"query",text:null}}}();b("relay-runtime").PreloadableQueryRegistry.set(a.params.id,a);e.exports=a}),null);
-----
PolarisViewerSettingsQuery_instagramRelayOperation",[],(function(a,b,c,d,e,f){e.exports="9651765621619169"}),null);
-----
PolarisViewerSettingsQuery$Parameters",["PolarisViewerSettingsQuery_instagramRelayOperation"],(function(a,b,c,d,e,f){"use strict";a={kind:"PreloadableConcreteRequest",params:{id:b("PolarisViewerSettingsQuery_instagramRelayOperation"),metadata:{},name:"PolarisViewerSettingsQuery",operationKind:"query",text:null}};e.exports=a}),null);
-----